Class CreateCloudDatabaseAction.Builder (6.60.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The sdlStatement to add.

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

addSdlStatement(String value)

public CreateCloudDatabaseAction.Builder addSdlStatement(String value)

SDL statements to apply to the new database.

repeated string sdl_statement = 4;

Parameter
NameDescription
valueString

The sdlStatement to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the sdlStatement to add.

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

build()

public CreateCloudDatabaseAction build()
Returns
TypeDescription
CreateCloudDatabaseAction

buildPartial()

public CreateCloudDatabaseAction buildPartial()
Returns
TypeDescription
CreateCloudDatabaseAction

clear()

public CreateCloudDatabaseAction.Builder clear()
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

clearDatabaseId()

public CreateCloudDatabaseAction.Builder clearDatabaseId()

Cloud database ID (not full path), e.g. "db0".

string database_id = 3;

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

clearDialect()

public CreateCloudDatabaseAction.Builder clearDialect()

Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.

optional string dialect = 6;

Returns
TypeDescription
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
TypeDescription
CreateCloudDatabaseAction.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

clearInstanceId()

public CreateCloudDatabaseAction.Builder clearInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

clearProjectId()

public CreateCloudDatabaseAction.Builder clearProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

clearProtoDescriptors()

public CreateCloudDatabaseAction.Builder clearProtoDescriptors()

optional bytes proto_descriptors = 7;

Returns
TypeDescription
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
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

clone()

public CreateCloudDatabaseAction.Builder clone()
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

getDatabaseId()

public String getDatabaseId()

Cloud database ID (not full path), e.g. "db0".

string database_id = 3;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

Cloud database ID (not full path), e.g. "db0".

string database_id = 3;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public CreateCloudDatabaseAction getDefaultInstanceForType()
Returns
TypeDescription
CreateCloudDatabaseAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDialect()

public String getDialect()

Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.

optional string dialect = 6;

Returns
TypeDescription
String

The dialect.

getDialectBytes()

public ByteString getDialectBytes()

Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.

optional string dialect = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
EncryptionConfigOrBuilder

getInstanceId()

public String getInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
TypeDescription
ByteString

The bytes for projectId.

getProtoDescriptors()

public ByteString getProtoDescriptors()

optional bytes proto_descriptors = 7;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of sdlStatement.

getSdlStatementList()

public ProtocolStringList getSdlStatementList()

SDL statements to apply to the new database.

repeated string sdl_statement = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the sdlStatement.

hasDialect()

public boolean hasDialect()

Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.

optional string dialect = 6;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the encryptionConfig field is set.

hasProtoDescriptors()

public boolean hasProtoDescriptors()

optional bytes proto_descriptors = 7;

Returns
TypeDescription
boolean

Whether the protoDescriptors field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueEncryptionConfig
Returns
TypeDescription
CreateCloudDatabaseAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

mergeFrom(CreateCloudDatabaseAction other)

public CreateCloudDatabaseAction.Builder mergeFrom(CreateCloudDatabaseAction other)
Parameter
NameDescription
otherCreateCloudDatabaseAction
Returns
TypeDescription
CreateCloudDatabaseAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

setDatabaseId(String value)

public CreateCloudDatabaseAction.Builder setDatabaseId(String value)

Cloud database ID (not full path), e.g. "db0".

string database_id = 3;

Parameter
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
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
NameDescription
valueString

The dialect to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dialect to set.

Returns
TypeDescription
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
NameDescription
valueEncryptionConfig
Returns
TypeDescription
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
NameDescription
builderForValueEncryptionConfig.Builder
Returns
TypeDescription
CreateCloudDatabaseAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

setInstanceId(String value)

public CreateCloudDatabaseAction.Builder setInstanceId(String value)

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Parameter
NameDescription
valueString

The instanceId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceId to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

setProtoDescriptors(ByteString value)

public CreateCloudDatabaseAction.Builder setProtoDescriptors(ByteString value)

optional bytes proto_descriptors = 7;

Parameter
NameDescription
valueByteString

The protoDescriptors to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueString

The sdlStatement to set.

Returns
TypeDescription
CreateCloudDatabaseAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCloudDatabaseAction.Builder
Overrides