Class Database.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
com.google.cloud.alloydb.v1beta.Database.Builder
All Implemented Interfaces:
DatabaseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Database

public static final class Database.Builder extends com.google.protobuf.GeneratedMessage.Builder<Database.Builder> implements DatabaseOrBuilder
 Message describing Database object.
 
Protobuf type google.cloud.alloydb.v1beta.Database
  • 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<Database.Builder>
    • clear

      public Database.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<Database.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<Database.Builder>
    • getDefaultInstanceForType

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

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

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

      public Database.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<Database.Builder>
    • mergeFrom

      public Database.Builder mergeFrom(Database other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
    • mergeFrom

      public Database.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<Database.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Name of the resource in the form of
       `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DatabaseOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the resource in the form of
       `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Database.Builder setName(String value)
       Identifier. Name of the resource in the form of
       `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Database.Builder clearName()
       Identifier. Name of the resource in the form of
       `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Database.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the resource in the form of
       `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCharset

      public String getCharset()
       Optional. Immutable. Charset for the database.
       This field can contain any PostgreSQL supported charset name.
       Example values include "UTF8", "SQL_ASCII", etc.
       
      string charset = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCharset in interface DatabaseOrBuilder
      Returns:
      The charset.
    • getCharsetBytes

      public com.google.protobuf.ByteString getCharsetBytes()
       Optional. Immutable. Charset for the database.
       This field can contain any PostgreSQL supported charset name.
       Example values include "UTF8", "SQL_ASCII", etc.
       
      string charset = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCharsetBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for charset.
    • setCharset

      public Database.Builder setCharset(String value)
       Optional. Immutable. Charset for the database.
       This field can contain any PostgreSQL supported charset name.
       Example values include "UTF8", "SQL_ASCII", etc.
       
      string charset = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The charset to set.
      Returns:
      This builder for chaining.
    • clearCharset

      public Database.Builder clearCharset()
       Optional. Immutable. Charset for the database.
       This field can contain any PostgreSQL supported charset name.
       Example values include "UTF8", "SQL_ASCII", etc.
       
      string charset = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCharsetBytes

      public Database.Builder setCharsetBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. Charset for the database.
       This field can contain any PostgreSQL supported charset name.
       Example values include "UTF8", "SQL_ASCII", etc.
       
      string charset = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for charset to set.
      Returns:
      This builder for chaining.
    • getCollation

      public String getCollation()
       Optional. Immutable. lc_collate for the database.
       String sort order.
       Example values include "C", "POSIX", etc.
       
      string collation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCollation in interface DatabaseOrBuilder
      Returns:
      The collation.
    • getCollationBytes

      public com.google.protobuf.ByteString getCollationBytes()
       Optional. Immutable. lc_collate for the database.
       String sort order.
       Example values include "C", "POSIX", etc.
       
      string collation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCollationBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for collation.
    • setCollation

      public Database.Builder setCollation(String value)
       Optional. Immutable. lc_collate for the database.
       String sort order.
       Example values include "C", "POSIX", etc.
       
      string collation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The collation to set.
      Returns:
      This builder for chaining.
    • clearCollation

      public Database.Builder clearCollation()
       Optional. Immutable. lc_collate for the database.
       String sort order.
       Example values include "C", "POSIX", etc.
       
      string collation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCollationBytes

      public Database.Builder setCollationBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. lc_collate for the database.
       String sort order.
       Example values include "C", "POSIX", etc.
       
      string collation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for collation to set.
      Returns:
      This builder for chaining.
    • getCharacterType

      public String getCharacterType()
       Optional. Immutable. lc_ctype for the database.
       Character classification (What is a letter? The upper-case equivalent?).
       Example values include "C", "POSIX", etc.
       
      string character_type = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCharacterType in interface DatabaseOrBuilder
      Returns:
      The characterType.
    • getCharacterTypeBytes

      public com.google.protobuf.ByteString getCharacterTypeBytes()
       Optional. Immutable. lc_ctype for the database.
       Character classification (What is a letter? The upper-case equivalent?).
       Example values include "C", "POSIX", etc.
       
      string character_type = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCharacterTypeBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for characterType.
    • setCharacterType

      public Database.Builder setCharacterType(String value)
       Optional. Immutable. lc_ctype for the database.
       Character classification (What is a letter? The upper-case equivalent?).
       Example values include "C", "POSIX", etc.
       
      string character_type = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The characterType to set.
      Returns:
      This builder for chaining.
    • clearCharacterType

      public Database.Builder clearCharacterType()
       Optional. Immutable. lc_ctype for the database.
       Character classification (What is a letter? The upper-case equivalent?).
       Example values include "C", "POSIX", etc.
       
      string character_type = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCharacterTypeBytes

      public Database.Builder setCharacterTypeBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. lc_ctype for the database.
       Character classification (What is a letter? The upper-case equivalent?).
       Example values include "C", "POSIX", etc.
       
      string character_type = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for characterType to set.
      Returns:
      This builder for chaining.
    • getIsTemplate

      @Deprecated public boolean getIsTemplate()
      Deprecated.
      google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772
       Optional. Whether the database is a template database.
       Deprecated in favor of is_template_database.
       
      bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsTemplate in interface DatabaseOrBuilder
      Returns:
      The isTemplate.
    • setIsTemplate

      @Deprecated public Database.Builder setIsTemplate(boolean value)
      Deprecated.
      google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772
       Optional. Whether the database is a template database.
       Deprecated in favor of is_template_database.
       
      bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The isTemplate to set.
      Returns:
      This builder for chaining.
    • clearIsTemplate

      @Deprecated public Database.Builder clearIsTemplate()
      Deprecated.
      google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772
       Optional. Whether the database is a template database.
       Deprecated in favor of is_template_database.
       
      bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDatabaseTemplate

      public String getDatabaseTemplate()
       Input only. Immutable. Template of the database to be used for creating a
       new database.
       
      string database_template = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDatabaseTemplate in interface DatabaseOrBuilder
      Returns:
      The databaseTemplate.
    • getDatabaseTemplateBytes

      public com.google.protobuf.ByteString getDatabaseTemplateBytes()
       Input only. Immutable. Template of the database to be used for creating a
       new database.
       
      string database_template = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDatabaseTemplateBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for databaseTemplate.
    • setDatabaseTemplate

      public Database.Builder setDatabaseTemplate(String value)
       Input only. Immutable. Template of the database to be used for creating a
       new database.
       
      string database_template = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The databaseTemplate to set.
      Returns:
      This builder for chaining.
    • clearDatabaseTemplate

      public Database.Builder clearDatabaseTemplate()
       Input only. Immutable. Template of the database to be used for creating a
       new database.
       
      string database_template = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setDatabaseTemplateBytes

      public Database.Builder setDatabaseTemplateBytes(com.google.protobuf.ByteString value)
       Input only. Immutable. Template of the database to be used for creating a
       new database.
       
      string database_template = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for databaseTemplate to set.
      Returns:
      This builder for chaining.
    • hasIsTemplateDatabase

      public boolean hasIsTemplateDatabase()
       Optional. Whether the database is a template database.
       
      optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIsTemplateDatabase in interface DatabaseOrBuilder
      Returns:
      Whether the isTemplateDatabase field is set.
    • getIsTemplateDatabase

      public boolean getIsTemplateDatabase()
       Optional. Whether the database is a template database.
       
      optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsTemplateDatabase in interface DatabaseOrBuilder
      Returns:
      The isTemplateDatabase.
    • setIsTemplateDatabase

      public Database.Builder setIsTemplateDatabase(boolean value)
       Optional. Whether the database is a template database.
       
      optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The isTemplateDatabase to set.
      Returns:
      This builder for chaining.
    • clearIsTemplateDatabase

      public Database.Builder clearIsTemplateDatabase()
       Optional. Whether the database is a template database.
       
      optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.