public interface CreateDatabaseRequestOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCreateStatement()
public abstract String getCreateStatement()
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
a-z*[a-z0-9]
and be between 2 and 30 characters in length.
If the database ID is a reserved word or if it contains a hyphen, the
database ID must be enclosed in backticks (
`).
string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The createStatement. |
getCreateStatementBytes()
public abstract ByteString getCreateStatementBytes()
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
a-z*[a-z0-9]
and be between 2 and 30 characters in length.
If the database ID is a reserved word or if it contains a hyphen, the
database ID must be enclosed in backticks (
`).
string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for createStatement. |
getEncryptionConfig()
public abstract EncryptionConfig getEncryptionConfig()
Optional. The encryption configuration for the database. If this field is not specified, Cloud Spanner will encrypt/decrypt all data at rest using Google default encryption.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
EncryptionConfig | The encryptionConfig. |
getEncryptionConfigOrBuilder()
public abstract EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. The encryption configuration for the database. If this field is not specified, Cloud Spanner will encrypt/decrypt all data at rest using Google default encryption.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
EncryptionConfigOrBuilder |
getExtraStatements(int index)
public abstract String getExtraStatements(int index)
Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The extraStatements at the given index. |
getExtraStatementsBytes(int index)
public abstract ByteString getExtraStatementsBytes(int index)
Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the extraStatements at the given index. |
getExtraStatementsCount()
public abstract int getExtraStatementsCount()
Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The count of extraStatements. |
getExtraStatementsList()
public abstract List<String> getExtraStatementsList()
Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<String> | A list containing the extraStatements. |
getParent()
public abstract String getParent()
Required. The name of the instance that will serve the new database.
Values are of the form projects/<project>/instances/<instance>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public abstract ByteString getParentBytes()
Required. The name of the instance that will serve the new database.
Values are of the form projects/<project>/instances/<instance>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
hasEncryptionConfig()
public abstract boolean hasEncryptionConfig()
Optional. The encryption configuration for the database. If this field is not specified, Cloud Spanner will encrypt/decrypt all data at rest using Google default encryption.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the encryptionConfig field is set. |