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| Modifier and Type | Method and Description |
|---|---|
Database |
build() |
Database |
buildPartial() |
Database.Builder |
clear() |
Database.Builder |
clearCharacterType()
Optional.
|
Database.Builder |
clearCharset()
Optional.
|
Database.Builder |
clearCollation()
Optional.
|
Database.Builder |
clearDatabaseTemplate()
Input only.
|
Database.Builder |
clearIsTemplate()
Deprecated.
google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
google/cloud/alloydb/v1beta/resources.proto;l=1761
|
Database.Builder |
clearIsTemplateDatabase()
Optional.
|
Database.Builder |
clearName()
Identifier.
|
String |
getCharacterType()
Optional.
|
com.google.protobuf.ByteString |
getCharacterTypeBytes()
Optional.
|
String |
getCharset()
Optional.
|
com.google.protobuf.ByteString |
getCharsetBytes()
Optional.
|
String |
getCollation()
Optional.
|
com.google.protobuf.ByteString |
getCollationBytes()
Optional.
|
String |
getDatabaseTemplate()
Input only.
|
com.google.protobuf.ByteString |
getDatabaseTemplateBytes()
Input only.
|
Database |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsTemplate()
Deprecated.
google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
google/cloud/alloydb/v1beta/resources.proto;l=1761
|
boolean |
getIsTemplateDatabase()
Optional.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
boolean |
hasIsTemplateDatabase()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Database.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Database.Builder |
mergeFrom(Database other) |
Database.Builder |
mergeFrom(com.google.protobuf.Message other) |
Database.Builder |
setCharacterType(String value)
Optional.
|
Database.Builder |
setCharacterTypeBytes(com.google.protobuf.ByteString value)
Optional.
|
Database.Builder |
setCharset(String value)
Optional.
|
Database.Builder |
setCharsetBytes(com.google.protobuf.ByteString value)
Optional.
|
Database.Builder |
setCollation(String value)
Optional.
|
Database.Builder |
setCollationBytes(com.google.protobuf.ByteString value)
Optional.
|
Database.Builder |
setDatabaseTemplate(String value)
Input only.
|
Database.Builder |
setDatabaseTemplateBytes(com.google.protobuf.ByteString value)
Input only.
|
Database.Builder |
setIsTemplate(boolean value)
Deprecated.
google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
google/cloud/alloydb/v1beta/resources.proto;l=1761
|
Database.Builder |
setIsTemplateDatabase(boolean value)
Optional.
|
Database.Builder |
setName(String value)
Identifier.
|
Database.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>public Database.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>public Database getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Database build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Database buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Database.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>public Database.Builder mergeFrom(Database other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>public Database.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>IOExceptionpublic 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];getName in interface DatabaseOrBuilderpublic 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];getNameBytes in interface DatabaseOrBuilderpublic 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];value - The name to set.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];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];value - The bytes for name to set.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];
getCharset in interface DatabaseOrBuilderpublic 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];
getCharsetBytes in interface DatabaseOrBuilderpublic 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];
value - The charset to set.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];
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];
value - The bytes for charset to set.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];
getCollation in interface DatabaseOrBuilderpublic 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];
getCollationBytes in interface DatabaseOrBuilderpublic 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];
value - The collation to set.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];
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];
value - The bytes for collation to set.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];
getCharacterType in interface DatabaseOrBuilderpublic 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];
getCharacterTypeBytes in interface DatabaseOrBuilderpublic 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];
value - The characterType to set.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];
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];
value - The bytes for characterType to set.@Deprecated public boolean getIsTemplate()
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];
getIsTemplate in interface DatabaseOrBuilder@Deprecated public Database.Builder setIsTemplate(boolean value)
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];
value - The isTemplate to set.@Deprecated public Database.Builder clearIsTemplate()
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];
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];
getDatabaseTemplate in interface DatabaseOrBuilderpublic 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];
getDatabaseTemplateBytes in interface DatabaseOrBuilderpublic 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];
value - The databaseTemplate to set.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];
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];
value - The bytes for databaseTemplate to set.public boolean hasIsTemplateDatabase()
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
hasIsTemplateDatabase in interface DatabaseOrBuilderpublic boolean getIsTemplateDatabase()
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
getIsTemplateDatabase in interface DatabaseOrBuilderpublic Database.Builder setIsTemplateDatabase(boolean value)
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
value - The isTemplateDatabase to set.public Database.Builder clearIsTemplateDatabase()
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.