public final class Database extends GeneratedMessageV3 implements DatabaseOrBuilder
Message describing Database object.
Protobuf type google.cloud.alloydb.v1.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