Package com.google.cloud.alloydb.v1beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Input only.Deprecated.google.cloud.alloydb.v1beta.Database.is_template is deprecated.Optional.Identifier.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Input only.com.google.protobuf.ByteStringInput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDeprecated.google.cloud.alloydb.v1beta.Database.is_template is deprecated.booleanOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCharacterType(String value) Optional.setCharacterTypeBytes(com.google.protobuf.ByteString value) Optional.setCharset(String value) Optional.setCharsetBytes(com.google.protobuf.ByteString value) Optional.setCollation(String value) Optional.setCollationBytes(com.google.protobuf.ByteString value) Optional.setDatabaseTemplate(String value) Input only.setDatabaseTemplateBytes(com.google.protobuf.ByteString value) Input only.setIsTemplate(boolean value) Deprecated.google.cloud.alloydb.v1beta.Database.is_template is deprecated.setIsTemplateDatabase(boolean value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.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<Database.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<Database.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<Database.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<Database.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.Builder>- Throws:
IOException
-
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:
getNamein interfaceDatabaseOrBuilder- 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:
getNameBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
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:
getCharsetin interfaceDatabaseOrBuilder- 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:
getCharsetBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for charset.
-
setCharset
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
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
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
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:
getCollationin interfaceDatabaseOrBuilder- 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:
getCollationBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for collation.
-
setCollation
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
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
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
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:
getCharacterTypein interfaceDatabaseOrBuilder- 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:
getCharacterTypeBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for characterType.
-
setCharacterType
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
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
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.google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772Optional. 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:
getIsTemplatein interfaceDatabaseOrBuilder- Returns:
- The isTemplate.
-
setIsTemplate
Deprecated.google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772Optional. 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.google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1772Optional. 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
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:
getDatabaseTemplatein interfaceDatabaseOrBuilder- 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:
getDatabaseTemplateBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for databaseTemplate.
-
setDatabaseTemplate
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
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
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:
hasIsTemplateDatabasein interfaceDatabaseOrBuilder- 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:
getIsTemplateDatabasein interfaceDatabaseOrBuilder- Returns:
- The isTemplateDatabase.
-
setIsTemplateDatabase
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
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-