Class UpdateCloudDatabaseAction.Builder (6.77.0)

public static final class UpdateCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<UpdateCloudDatabaseAction.Builder> implements UpdateCloudDatabaseActionOrBuilder

Action that updates a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.UpdateCloudDatabaseAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

build()

public UpdateCloudDatabaseAction build()
Returns
Type Description
UpdateCloudDatabaseAction

buildPartial()

public UpdateCloudDatabaseAction buildPartial()
Returns
Type Description
UpdateCloudDatabaseAction

clear()

public UpdateCloudDatabaseAction.Builder clear()
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

clearDatabaseName()

public UpdateCloudDatabaseAction.Builder clearDatabaseName()

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

string database_name = 3;

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clearEnableDropProtection()

public UpdateCloudDatabaseAction.Builder clearEnableDropProtection()

Updated value of enable_drop_protection, this is the only field that has supported to be updated.

bool enable_drop_protection = 4;

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

clearInstanceId()

public UpdateCloudDatabaseAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

clearProjectId()

public UpdateCloudDatabaseAction.Builder clearProjectId()

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

string project_id = 2;

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clone()

public UpdateCloudDatabaseAction.Builder clone()
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

getDatabaseName()

public String getDatabaseName()

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

string database_name = 3;

Returns
Type Description
String

The databaseName.

getDatabaseNameBytes()

public ByteString getDatabaseNameBytes()

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

string database_name = 3;

Returns
Type Description
ByteString

The bytes for databaseName.

getDefaultInstanceForType()

public UpdateCloudDatabaseAction getDefaultInstanceForType()
Returns
Type Description
UpdateCloudDatabaseAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableDropProtection()

public boolean getEnableDropProtection()

Updated value of enable_drop_protection, this is the only field that has supported to be updated.

bool enable_drop_protection = 4;

Returns
Type Description
boolean

The enableDropProtection.

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. "