Class Product.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
com.google.cloud.databasecenter.v1beta.Product.Builder
- All Implemented Interfaces:
ProductOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Product
public static final class Product.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
implements ProductOrBuilder
Product specification for databasecenter resources.Protobuf type
google.cloud.databasecenter.v1beta.Product-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.getType()Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setEngineValue(int value) Optional.setMinorVersion(String value) Optional.setMinorVersionBytes(com.google.protobuf.ByteString value) Optional.setType(ProductType value) Optional.setTypeValue(int value) Optional.setVersion(String value) Optional.setVersionBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc..
.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypeValuein interfaceProductOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc..
.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc..
.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypein interfaceProductOrBuilder- Returns:
- The type.
-
setType
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc..
.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc..
.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEngineValue
public int getEngineValue()Optional. The specific engine that the underlying database is running.
.google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEngineValuein interfaceProductOrBuilder- Returns:
- The enum numeric value on the wire for engine.
-
setEngineValue
Optional. The specific engine that the underlying database is running.
.google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for engine to set.- Returns:
- This builder for chaining.
-
getEngine
Optional. The specific engine that the underlying database is running.
.google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnginein interfaceProductOrBuilder- Returns:
- The engine.
-
setEngine
Optional. The specific engine that the underlying database is running.
.google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The engine to set.- Returns:
- This builder for chaining.
-
clearEngine
Optional. The specific engine that the underlying database is running.
.google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getVersion
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc.
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionin interfaceProductOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc.
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionBytesin interfaceProductOrBuilder- Returns:
- The bytes for version.
-
setVersion
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc.
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc.
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setVersionBytes
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc.
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getMinorVersion
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc.
string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinorVersionin interfaceProductOrBuilder- Returns:
- The minorVersion.
-
getMinorVersionBytes
public com.google.protobuf.ByteString getMinorVersionBytes()Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc.
string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinorVersionBytesin interfaceProductOrBuilder- Returns:
- The bytes for minorVersion.
-
setMinorVersion
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc.
string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The minorVersion to set.- Returns:
- This builder for chaining.
-
clearMinorVersion
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc.
string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMinorVersionBytes
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc.
string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for minorVersion to set.- Returns:
- This builder for chaining.
-