Class UpdateCloudDatabaseAction.Builder (6.62.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCloudDatabaseAction build()
Returns
TypeDescription
UpdateCloudDatabaseAction

buildPartial()

public UpdateCloudDatabaseAction buildPartial()
Returns
TypeDescription
UpdateCloudDatabaseAction

clear()

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

clearDatabaseName()

public UpdateCloudDatabaseAction.Builder clearDatabaseName()

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

string database_name = 3;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public UpdateCloudDatabaseAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public UpdateCloudDatabaseAction.Builder clearProjectId()

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

string project_id = 2;

Returns
TypeDescription
UpdateCloudDatabaseAction.Builder

This builder for chaining.

clone()

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

getDatabaseName()

public String getDatabaseName()

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

string database_name = 3;

Returns
TypeDescription
String

The databaseName.

getDatabaseNameBytes()

public ByteString getDatabaseNameBytes()

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

string database_name = 3;

Returns
TypeDescription
ByteString

The bytes for databaseName.

getDefaultInstanceForType()

public UpdateCloudDatabaseAction getDefaultInstanceForType()
Returns
TypeDescription
UpdateCloudDatabaseAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enableDropProtection.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateCloudDatabaseAction other)

public UpdateCloudDatabaseAction.Builder mergeFrom(UpdateCloudDatabaseAction other)
Parameter
NameDescription
otherUpdateCloudDatabaseAction
Returns
TypeDescription
UpdateCloudDatabaseAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The databaseName to set.

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

The bytes for databaseName to set.

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

The enableDropProtection to set.

Returns
TypeDescription
UpdateCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instanceId to set.

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

The bytes for instanceId to set.

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

The projectId to set.

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

The bytes for projectId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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