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.CreateDatabaseRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic CreateDatabaseRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic CreateDatabaseRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic CreateDatabaseRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder mergeFrom(CreateDatabaseRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public CreateDatabaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<CreateDatabaseRequest.Builder>java.io.IOExceptionpublic java.lang.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;getParent in interface CreateDatabaseRequestOrBuilderpublic 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;getParentBytes in interface CreateDatabaseRequestOrBuilderpublic CreateDatabaseRequest.Builder setParent(java.lang.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;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;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;public java.lang.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;getCreateStatement in interface CreateDatabaseRequestOrBuilderpublic 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;getCreateStatementBytes in interface CreateDatabaseRequestOrBuilderpublic CreateDatabaseRequest.Builder setCreateStatement(java.lang.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;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;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;public ProtocolStringList getExtraStatementsList()
An optional 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;getExtraStatementsList in interface CreateDatabaseRequestOrBuilderpublic int getExtraStatementsCount()
An optional 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;getExtraStatementsCount in interface CreateDatabaseRequestOrBuilderpublic java.lang.String getExtraStatements(int index)
An optional 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;getExtraStatements in interface CreateDatabaseRequestOrBuilderpublic ByteString getExtraStatementsBytes(int index)
An optional 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;getExtraStatementsBytes in interface CreateDatabaseRequestOrBuilderpublic CreateDatabaseRequest.Builder setExtraStatements(int index, java.lang.String value)
An optional 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;public CreateDatabaseRequest.Builder addExtraStatements(java.lang.String value)
An optional 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;public CreateDatabaseRequest.Builder addAllExtraStatements(java.lang.Iterable<java.lang.String> values)
An optional 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;public CreateDatabaseRequest.Builder clearExtraStatements()
An optional 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;public CreateDatabaseRequest.Builder addExtraStatementsBytes(ByteString value)
An optional 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;public final CreateDatabaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>public final CreateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder>