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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
    • clear

      public Product.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
    • getDefaultInstanceForType

      public Product getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Product build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Product buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Product.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.Builder>
    • mergeFrom

      public Product.Builder mergeFrom(Product other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTypeValue in interface ProductOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Product.Builder setTypeValue(int value)
       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

      public ProductType 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:
      getType in interface ProductOrBuilder
      Returns:
      The type.
    • setType

      public Product.Builder setType(ProductType value)
       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

      public Product.Builder 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:
      getEngineValue in interface ProductOrBuilder
      Returns:
      The enum numeric value on the wire for engine.
    • setEngineValue

      public Product.Builder setEngineValue(int value)
       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

      public Engine 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:
      getEngine in interface ProductOrBuilder
      Returns:
      The engine.
    • setEngine

      public Product.Builder setEngine(Engine value)
       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

      public Product.Builder 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

      public String 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:
      getVersion in interface ProductOrBuilder
      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:
      getVersionBytes in interface ProductOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Product.Builder setVersion(String value)
       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

      public Product.Builder 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

      public Product.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getMinorVersion in interface ProductOrBuilder
      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:
      getMinorVersionBytes in interface ProductOrBuilder
      Returns:
      The bytes for minorVersion.
    • setMinorVersion

      public Product.Builder setMinorVersion(String value)
       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

      public Product.Builder 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

      public Product.Builder setMinorVersionBytes(com.google.protobuf.ByteString value)
       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.