public static final class CreateCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder> implements CreateCloudDatabaseActionOrBuilder
Action that creates a Cloud Spanner database.
Protobuf type google.spanner.executor.v1.CreateCloudDatabaseAction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateCloudDatabaseAction.BuilderImplements
CreateCloudDatabaseActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllSdlStatement(Iterable<String> values)
public CreateCloudDatabaseAction.Builder addAllSdlStatement(Iterable<String> values)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The sdlStatement to add. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
addSdlStatement(String value)
public CreateCloudDatabaseAction.Builder addSdlStatement(String value)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameter | |
---|---|
Name | Description |
value | String The sdlStatement to add. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
addSdlStatementBytes(ByteString value)
public CreateCloudDatabaseAction.Builder addSdlStatementBytes(ByteString value)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the sdlStatement to add. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
build()
public CreateCloudDatabaseAction build()
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction |
buildPartial()
public CreateCloudDatabaseAction buildPartial()
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction |
clear()
public CreateCloudDatabaseAction.Builder clear()
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
clearDatabaseId()
public CreateCloudDatabaseAction.Builder clearDatabaseId()
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clearDialect()
public CreateCloudDatabaseAction.Builder clearDialect()
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clearEncryptionConfig()
public CreateCloudDatabaseAction.Builder 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;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
clearInstanceId()
public CreateCloudDatabaseAction.Builder clearInstanceId()
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
clearProjectId()
public CreateCloudDatabaseAction.Builder clearProjectId()
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clearProtoDescriptors()
public CreateCloudDatabaseAction.Builder clearProtoDescriptors()
optional bytes proto_descriptors = 7;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clearSdlStatement()
public CreateCloudDatabaseAction.Builder clearSdlStatement()
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
clone()
public CreateCloudDatabaseAction.Builder clone()
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
getDatabaseId()
public String getDatabaseId()
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;
Returns | |
---|---|
Type | Description |
String | The databaseId. |
getDatabaseIdBytes()
public ByteString getDatabaseIdBytes()
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for databaseId. |
getDefaultInstanceForType()
public CreateCloudDatabaseAction getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDialect()
public String getDialect()
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Returns | |
---|---|
Type | Description |
String | The dialect. |
getDialectBytes()
public ByteString getDialectBytes()
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for dialect. |
getEncryptionConfig()
public EncryptionConfig 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;
Returns | |
---|---|
Type | Description |
EncryptionConfig | The encryptionConfig. |
getEncryptionConfigBuilder()
public EncryptionConfig.Builder 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;
Returns | |
---|---|
Type | Description |
EncryptionConfig.Builder |
getEncryptionConfigOrBuilder()
public EncryptionConfigOrBuilder 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;
Returns | |
---|---|
Type | Description |
EncryptionConfigOrBuilder |
getInstanceId()
public String getInstanceId()
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Returns | |
---|---|
Type | Description |
String | The instanceId. |
getInstanceIdBytes()
public ByteString getInstanceIdBytes()
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for instanceId. |
getProjectId()
public String getProjectId()
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Returns | |
---|---|
Type | Description |
String | The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for projectId. |
getProtoDescriptors()
public ByteString getProtoDescriptors()
optional bytes proto_descriptors = 7;
Returns | |
---|---|
Type | Description |
ByteString | The protoDescriptors. |
getSdlStatement(int index)
public String getSdlStatement(int index)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The sdlStatement at the given index. |
getSdlStatementBytes(int index)
public ByteString getSdlStatementBytes(int index)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the sdlStatement at the given index. |
getSdlStatementCount()
public int getSdlStatementCount()
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Returns | |
---|---|
Type | Description |
int | The count of sdlStatement. |
getSdlStatementList()
public ProtocolStringList getSdlStatementList()
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the sdlStatement. |
hasDialect()
public boolean hasDialect()
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Returns | |
---|---|
Type | Description |
boolean | Whether the dialect field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the encryptionConfig field is set. |
hasProtoDescriptors()
public boolean hasProtoDescriptors()
optional bytes proto_descriptors = 7;
Returns | |
---|---|
Type | Description |
boolean | Whether the protoDescriptors field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEncryptionConfig(EncryptionConfig value)
public CreateCloudDatabaseAction.Builder mergeEncryptionConfig(EncryptionConfig value)
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;
Parameter | |
---|---|
Name | Description |
value | EncryptionConfig |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
mergeFrom(CreateCloudDatabaseAction other)
public CreateCloudDatabaseAction.Builder mergeFrom(CreateCloudDatabaseAction other)
Parameter | |
---|---|
Name | Description |
other | CreateCloudDatabaseAction |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
setDatabaseId(String value)
public CreateCloudDatabaseAction.Builder setDatabaseId(String value)
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;
Parameter | |
---|---|
Name | Description |
value | String The databaseId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setDatabaseIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setDatabaseIdBytes(ByteString value)
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for databaseId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setDialect(String value)
public CreateCloudDatabaseAction.Builder setDialect(String value)
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Parameter | |
---|---|
Name | Description |
value | String The dialect to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setDialectBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setDialectBytes(ByteString value)
Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
optional string dialect = 6;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for dialect to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setEncryptionConfig(EncryptionConfig value)
public CreateCloudDatabaseAction.Builder setEncryptionConfig(EncryptionConfig value)
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;
Parameter | |
---|---|
Name | Description |
value | EncryptionConfig |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
setEncryptionConfig(EncryptionConfig.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | EncryptionConfig.Builder |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
setInstanceId(String value)
public CreateCloudDatabaseAction.Builder setInstanceId(String value)
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Parameter | |
---|---|
Name | Description |
value | String The instanceId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setInstanceIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setInstanceIdBytes(ByteString value)
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for instanceId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setProjectId(String value)
public CreateCloudDatabaseAction.Builder setProjectId(String value)
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Parameter | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setProjectIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setProjectIdBytes(ByteString value)
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setProtoDescriptors(ByteString value)
public CreateCloudDatabaseAction.Builder setProtoDescriptors(ByteString value)
optional bytes proto_descriptors = 7;
Parameter | |
---|---|
Name | Description |
value | ByteString The protoDescriptors to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCloudDatabaseAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |
setSdlStatement(int index, String value)
public CreateCloudDatabaseAction.Builder setSdlStatement(int index, String value)
SDL statements to apply to the new database.
repeated string sdl_statement = 4;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The sdlStatement to set. |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateCloudDatabaseAction.Builder |