Package com.google.spanner.executor.v1
Class CreateCloudDatabaseAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CreateCloudDatabaseActionOrBuilder,Cloneable
- Enclosing class:
- CreateCloudDatabaseAction
public static final class CreateCloudDatabaseAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
implements CreateCloudDatabaseActionOrBuilder
Action that creates a Cloud Spanner database.Protobuf type
google.spanner.executor.v1.CreateCloudDatabaseAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllSdlStatement(Iterable<String> values) SDL statements to apply to the new database.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSdlStatement(String value) SDL statements to apply to the new database.addSdlStatementBytes(com.google.protobuf.ByteString value) SDL statements to apply to the new database.build()clear()Cloud database ID (not full path), e.g.Optional SQL dialect (GOOGLESQL or POSTGRESQL).The KMS key used to encrypt the database to be created if the database should be CMEK protected.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Cloud instance ID (not path), e.g.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Cloud project ID, e.g.optional bytes proto_descriptors = 7;SDL statements to apply to the new database.clone()Cloud database ID (not full path), e.g.com.google.protobuf.ByteStringCloud database ID (not full path), e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional SQL dialect (GOOGLESQL or POSTGRESQL).com.google.protobuf.ByteStringOptional SQL dialect (GOOGLESQL or POSTGRESQL).The KMS key used to encrypt the database to be created if the database should be CMEK protected.The KMS key used to encrypt the database to be created if the database should be CMEK protected.The KMS key used to encrypt the database to be created if the database should be CMEK protected.Cloud instance ID (not path), e.g.com.google.protobuf.ByteStringCloud instance ID (not path), e.g.Cloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.com.google.protobuf.ByteStringoptional bytes proto_descriptors = 7;getSdlStatement(int index) SDL statements to apply to the new database.com.google.protobuf.ByteStringgetSdlStatementBytes(int index) SDL statements to apply to the new database.intSDL statements to apply to the new database.com.google.protobuf.ProtocolStringListSDL statements to apply to the new database.booleanOptional SQL dialect (GOOGLESQL or POSTGRESQL).booleanThe KMS key used to encrypt the database to be created if the database should be CMEK protected.booleanoptional bytes proto_descriptors = 7;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe KMS key used to encrypt the database to be created if the database should be CMEK protected.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDatabaseId(String value) Cloud database ID (not full path), e.g.setDatabaseIdBytes(com.google.protobuf.ByteString value) Cloud database ID (not full path), e.g.setDialect(String value) Optional SQL dialect (GOOGLESQL or POSTGRESQL).setDialectBytes(com.google.protobuf.ByteString value) Optional SQL dialect (GOOGLESQL or POSTGRESQL).The KMS key used to encrypt the database to be created if the database should be CMEK protected.setEncryptionConfig(EncryptionConfig.Builder builderForValue) The KMS key used to encrypt the database to be created if the database should be CMEK protected.setInstanceId(String value) Cloud instance ID (not path), e.g.setInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path), e.g.setProjectId(String value) Cloud project ID, e.g.setProjectIdBytes(com.google.protobuf.ByteString value) Cloud project ID, e.g.setProtoDescriptors(com.google.protobuf.ByteString value) optional bytes proto_descriptors = 7;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSdlStatement(int index, String value) SDL statements to apply to the new database.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
setField
public CreateCloudDatabaseAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
clearField
public CreateCloudDatabaseAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
clearOneof
public CreateCloudDatabaseAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
setRepeatedField
public CreateCloudDatabaseAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
addRepeatedField
public CreateCloudDatabaseAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateCloudDatabaseAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
mergeFrom
public CreateCloudDatabaseAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateCloudDatabaseAction.Builder>- Throws:
IOException
-
getInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Specified by:
getDatabaseIdin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Specified by:
getDatabaseIdBytesin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
getSdlStatementList
public com.google.protobuf.ProtocolStringList getSdlStatementList()SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementListin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- A list containing the sdlStatement.
-
getSdlStatementCount
public int getSdlStatementCount()SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementCountin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The count of sdlStatement.
-
getSdlStatement
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementin interfaceCreateCloudDatabaseActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sdlStatement at the given index.
-
getSdlStatementBytes
public com.google.protobuf.ByteString getSdlStatementBytes(int index) SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementBytesin interfaceCreateCloudDatabaseActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sdlStatement at the given index.
-
setSdlStatement
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Parameters:
index- The index to set the value at.value- The sdlStatement to set.- Returns:
- This builder for chaining.
-
addSdlStatement
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Parameters:
value- The sdlStatement to add.- Returns:
- This builder for chaining.
-
addAllSdlStatement
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Parameters:
values- The sdlStatement to add.- Returns:
- This builder for chaining.
-
clearSdlStatement
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Returns:
- This builder for chaining.
-
addSdlStatementBytes
SDL statements to apply to the new database.
repeated string sdl_statement = 4;- Parameters:
value- The bytes of the sdlStatement to add.- Returns:
- This builder for chaining.
-
hasEncryptionConfig
public boolean hasEncryptionConfig()The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;- Specified by:
hasEncryptionConfigin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;- Specified by:
getEncryptionConfigin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The encryptionConfig.
-
setEncryptionConfig
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; -
setEncryptionConfig
public CreateCloudDatabaseAction.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue) The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; -
mergeEncryptionConfig
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; -
clearEncryptionConfig
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; -
getEncryptionConfigBuilder
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; -
getEncryptionConfigOrBuilder
The KMS key used to encrypt the database to be created if the database should be CMEK protected.
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;- Specified by:
getEncryptionConfigOrBuilderin interfaceCreateCloudDatabaseActionOrBuilder
-
hasDialect
public boolean hasDialect()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Specified by:
hasDialectin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- Whether the dialect field is set.
-
getDialect
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Specified by:
getDialectin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The dialect.
-
getDialectBytes
public com.google.protobuf.ByteString getDialectBytes()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Specified by:
getDialectBytesin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The bytes for dialect.
-
setDialect
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Parameters:
value- The dialect to set.- Returns:
- This builder for chaining.
-
clearDialect
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Returns:
- This builder for chaining.
-
setDialectBytes
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;- Parameters:
value- The bytes for dialect to set.- Returns:
- This builder for chaining.
-
hasProtoDescriptors
public boolean hasProtoDescriptors()optional bytes proto_descriptors = 7;- Specified by:
hasProtoDescriptorsin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- Whether the protoDescriptors field is set.
-
getProtoDescriptors
public com.google.protobuf.ByteString getProtoDescriptors()optional bytes proto_descriptors = 7;- Specified by:
getProtoDescriptorsin interfaceCreateCloudDatabaseActionOrBuilder- Returns:
- The protoDescriptors.
-
setProtoDescriptors
optional bytes proto_descriptors = 7;- Parameters:
value- The protoDescriptors to set.- Returns:
- This builder for chaining.
-
clearProtoDescriptors
optional bytes proto_descriptors = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateCloudDatabaseAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-
mergeUnknownFields
public final CreateCloudDatabaseAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder>
-