Class Database (0.65.0)
public final class Database extends GeneratedMessageV3 implements DatabaseOrBuilder
Message describing Database object.
Protobuf type google.cloud.alloydb.v1alpha.Database
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CHARACTER_TYPE_FIELD_NUMBER
public static final int CHARACTER_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CHARSET_FIELD_NUMBER
public static final int CHARSET_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
COLLATION_FIELD_NUMBER
public static final int COLLATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DATABASE_TEMPLATE_FIELD_NUMBER
public static final int DATABASE_TEMPLATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IS_TEMPLATE_DATABASE_FIELD_NUMBER
public static final int IS_TEMPLATE_DATABASE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IS_TEMPLATE_FIELD_NUMBER
public static final int IS_TEMPLATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Database getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Database.Builder newBuilder()
newBuilder(Database prototype)
public static Database.Builder newBuilder(Database prototype)
Parameter |
Name |
Description |
prototype |
Database
|
public static Database parseDelimitedFrom(InputStream input)
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Database parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Database parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(CodedInputStream input)
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(InputStream input)
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Database parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Database> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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];
Returns |
Type |
Description |
String |
The characterType.
|
getCharacterTypeBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for characterType.
|
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];
Returns |
Type |
Description |
String |
The charset.
|
getCharsetBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for charset.
|
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];
Returns |
Type |
Description |
String |
The collation.
|
getCollationBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for collation.
|
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];
Returns |
Type |
Description |
String |
The databaseTemplate.
|
getDatabaseTemplateBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for databaseTemplate.
|
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
getIsTemplate() (deprecated)
public boolean getIsTemplate()
Deprecated. google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
google/cloud/alloydb/v1alpha/resources.proto;l=1767
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 |
Type |
Description |
boolean |
The isTemplate.
|
getIsTemplateDatabase()
public boolean getIsTemplateDatabase()
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The isTemplateDatabase.
|
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];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Database> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasIsTemplateDatabase()
public boolean hasIsTemplateDatabase()
Optional. Whether the database is a template database.
optional bool is_template_database = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the isTemplateDatabase field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Database.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Database.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Database.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]