Send feedback
Class Database (0.22.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.22.0 keyboard_arrow_down
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
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
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
getCharset()
public String getCharset ()
Optional. 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];
Returns
Type
Description
String
The charset.
getCharsetBytes()
public ByteString getCharsetBytes ()
Optional. 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];
Returns
Type
Description
ByteString
The bytes for charset.
getCollation()
public String getCollation ()
Optional. Collation for the database.
Name of the custom or native collation for postgres.
Example values include "C", "POSIX", etc
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The collation.
getCollationBytes()
public ByteString getCollationBytes ()
Optional. Collation for the database.
Name of the custom or native collation for postgres.
Example values include "C", "POSIX", etc
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for collation.
getDefaultInstanceForType()
public Database getDefaultInstanceForType ()
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
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
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]