public static final class CreateDatabaseRequest.Builder extends GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder> implements CreateDatabaseRequestOrBuilder
The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].Protobuf type
google.spanner.admin.database.v1.CreateDatabaseRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CreateDatabaseRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CreateDatabaseRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CreateDatabaseRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder mergeFrom(CreateDatabaseRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public CreateDatabaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CreateDatabaseRequest.Builder>
IOException
public 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) = { ... }
getParent
in interface CreateDatabaseRequestOrBuilder
public 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) = { ... }
getParentBytes
in interface CreateDatabaseRequestOrBuilder
public CreateDatabaseRequest.Builder setParent(String value)
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) = { ... }
value
- The parent to set.public CreateDatabaseRequest.Builder clearParent()
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) = { ... }
public CreateDatabaseRequest.Builder setParentBytes(ByteString value)
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) = { ... }
value
- The bytes for parent to set.public 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_\-]*[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];
getCreateStatement
in interface CreateDatabaseRequestOrBuilder
public 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_\-]*[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];
getCreateStatementBytes
in interface CreateDatabaseRequestOrBuilder
public CreateDatabaseRequest.Builder setCreateStatement(String value)
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_\-]*[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];
value
- The createStatement to set.public CreateDatabaseRequest.Builder clearCreateStatement()
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_\-]*[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];
public CreateDatabaseRequest.Builder setCreateStatementBytes(ByteString value)
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_\-]*[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];
value
- The bytes for createStatement to set.public ProtocolStringList 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];
getExtraStatementsList
in interface CreateDatabaseRequestOrBuilder
public 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];
getExtraStatementsCount
in interface CreateDatabaseRequestOrBuilder
public 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];
getExtraStatements
in interface CreateDatabaseRequestOrBuilder
index
- The index of the element to return.public 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];
getExtraStatementsBytes
in interface CreateDatabaseRequestOrBuilder
index
- The index of the value to return.public CreateDatabaseRequest.Builder setExtraStatements(int index, String value)
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];
index
- The index to set the value at.value
- The extraStatements to set.public CreateDatabaseRequest.Builder addExtraStatements(String value)
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];
value
- The extraStatements to add.public CreateDatabaseRequest.Builder addAllExtraStatements(Iterable<String> values)
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];
values
- The extraStatements to add.public CreateDatabaseRequest.Builder clearExtraStatements()
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];
public CreateDatabaseRequest.Builder addExtraStatementsBytes(ByteString value)
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];
value
- The bytes of the extraStatements to add.public 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];
hasEncryptionConfig
in interface CreateDatabaseRequestOrBuilder
public 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];
getEncryptionConfig
in interface CreateDatabaseRequestOrBuilder
public CreateDatabaseRequest.Builder setEncryptionConfig(EncryptionConfig value)
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];
public CreateDatabaseRequest.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue)
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];
public CreateDatabaseRequest.Builder mergeEncryptionConfig(EncryptionConfig value)
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];
public CreateDatabaseRequest.Builder clearEncryptionConfig()
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];
public EncryptionConfig.Builder getEncryptionConfigBuilder()
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];
public 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];
getEncryptionConfigOrBuilder
in interface CreateDatabaseRequestOrBuilder
public int getDatabaseDialectValue()
Optional. The dialect of the Cloud Spanner Database.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];
getDatabaseDialectValue
in interface CreateDatabaseRequestOrBuilder
public CreateDatabaseRequest.Builder setDatabaseDialectValue(int value)
Optional. The dialect of the Cloud Spanner Database.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The enum numeric value on the wire for databaseDialect to set.public DatabaseDialect getDatabaseDialect()
Optional. The dialect of the Cloud Spanner Database.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];
getDatabaseDialect
in interface CreateDatabaseRequestOrBuilder
public CreateDatabaseRequest.Builder setDatabaseDialect(DatabaseDialect value)
Optional. The dialect of the Cloud Spanner Database.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The databaseDialect to set.public CreateDatabaseRequest.Builder clearDatabaseDialect()
Optional. The dialect of the Cloud Spanner Database.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];
public final CreateDatabaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
public final CreateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.