Class UpdateCloudDatabaseAction.Builder (6.66.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. "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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

mergeFrom(UpdateCloudDatabaseAction other)

public UpdateCloudDatabaseAction.Builder mergeFrom(UpdateCloudDatabaseAction other)
Parameter
Name Description
other UpdateCloudDatabaseAction
Returns
Type Description
UpdateCloudDatabaseAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides

setDatabaseName(String value)

public UpdateCloudDatabaseAction.Builder setDatabaseName(String value)

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

string database_name = 3;

Parameter
Name Description
value String

The databaseName to set.

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseNameBytes(ByteString value)

public UpdateCloudDatabaseAction.Builder setDatabaseNameBytes(ByteString value)

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

string database_name = 3;

Parameter
Name Description
value ByteString

The bytes for databaseName to set.

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setEnableDropProtection(boolean value)

public UpdateCloudDatabaseAction.Builder setEnableDropProtection(boolean value)

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

bool enable_drop_protection = 4;

Parameter
Name Description
value boolean

The enableDropProtection to set.

Returns
Type Description
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public UpdateCloudDatabaseAction.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
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public UpdateCloudDatabaseAction.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
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setProjectId(String value)

public UpdateCloudDatabaseAction.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
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public UpdateCloudDatabaseAction.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
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCloudDatabaseAction.Builder
Overrides