Interface DatabaseOrBuilder (0.65.0)

public interface DatabaseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCharacterType()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getIsTemplate() (deprecated)

public abstract boolean getIsTemplate()

Deprecated. google.cloud.alloydb.v1beta.Database.is_template is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1758

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 abstract 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()

public abstract 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];

Returns
Type Description
String

The name.

getNameBytes()

public abstract 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.

hasIsTemplateDatabase()

public abstract 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.