Class UpdateCloudDatabaseDdlAction.Builder (6.60.0)

public static final class UpdateCloudDatabaseDdlAction.Builder extends GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder> implements UpdateCloudDatabaseDdlActionOrBuilder

Action that updates the schema of a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.UpdateCloudDatabaseDdlAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSdlStatement(Iterable<String> values)

public UpdateCloudDatabaseDdlAction.Builder addAllSdlStatement(Iterable<String> values)

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Parameter
NameDescription
valuesIterable<String>

The sdlStatement to add.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSdlStatement(String value)

public UpdateCloudDatabaseDdlAction.Builder addSdlStatement(String value)

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Parameter
NameDescription
valueString

The sdlStatement to add.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

addSdlStatementBytes(ByteString value)

public UpdateCloudDatabaseDdlAction.Builder addSdlStatementBytes(ByteString value)

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Parameter
NameDescription
valueByteString

The bytes of the sdlStatement to add.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

build()

public UpdateCloudDatabaseDdlAction build()
Returns
TypeDescription
UpdateCloudDatabaseDdlAction

buildPartial()

public UpdateCloudDatabaseDdlAction buildPartial()
Returns
TypeDescription
UpdateCloudDatabaseDdlAction

clear()

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

clearDatabaseId()

public UpdateCloudDatabaseDdlAction.Builder clearDatabaseId()

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

string database_id = 3;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public UpdateCloudDatabaseDdlAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationId()

public UpdateCloudDatabaseDdlAction.Builder clearOperationId()

Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

string operation_id = 5;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearProjectId()

public UpdateCloudDatabaseDdlAction.Builder clearProjectId()

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

string project_id = 2;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearProtoDescriptors()

public UpdateCloudDatabaseDdlAction.Builder clearProtoDescriptors()

optional bytes proto_descriptors = 6;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearSdlStatement()

public UpdateCloudDatabaseDdlAction.Builder clearSdlStatement()

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clone()

public UpdateCloudDatabaseDdlAction.Builder clone()
Returns
TypeDescription
UpdateCloudDatabaseDdlAction.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 UpdateCloudDatabaseDdlAction getDefaultInstanceForType()
Returns
TypeDescription
UpdateCloudDatabaseDdlAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getOperationId()

public String getOperationId()

Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

string operation_id = 5;

Returns
TypeDescription
String

The operationId.

getOperationIdBytes()

public ByteString getOperationIdBytes()

Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

string operation_id = 5;

Returns
TypeDescription
ByteString

The bytes for operationId.

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 = 6;

Returns
TypeDescription
ByteString

The protoDescriptors.

getSdlStatement(int index)

public String getSdlStatement(int index)

SDL statements to apply to the 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 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 database.

repeated string sdl_statement = 4;

Returns
TypeDescription
int

The count of sdlStatement.

getSdlStatementList()

public ProtocolStringList getSdlStatementList()

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the sdlStatement.

hasProtoDescriptors()

public boolean hasProtoDescriptors()

optional bytes proto_descriptors = 6;

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateCloudDatabaseDdlAction other)

public UpdateCloudDatabaseDdlAction.Builder mergeFrom(UpdateCloudDatabaseDdlAction other)
Parameter
NameDescription
otherUpdateCloudDatabaseDdlAction
Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseId(String value)

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

This builder for chaining.

setDatabaseIdBytes(ByteString value)

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

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

This builder for chaining.

setInstanceIdBytes(ByteString value)

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

This builder for chaining.

setOperationId(String value)

public UpdateCloudDatabaseDdlAction.Builder setOperationId(String value)

Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

string operation_id = 5;

Parameter
NameDescription
valueString

The operationId to set.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setOperationIdBytes(ByteString value)

public UpdateCloudDatabaseDdlAction.Builder setOperationIdBytes(ByteString value)

Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

string operation_id = 5;

Parameter
NameDescription
valueByteString

The bytes for operationId to set.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setProjectId(String value)

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

This builder for chaining.

setProjectIdBytes(ByteString value)

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

This builder for chaining.

setProtoDescriptors(ByteString value)

public UpdateCloudDatabaseDdlAction.Builder setProtoDescriptors(ByteString value)

optional bytes proto_descriptors = 6;

Parameter
NameDescription
valueByteString

The protoDescriptors to set.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

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

public UpdateCloudDatabaseDdlAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder
Overrides

setSdlStatement(int index, String value)

public UpdateCloudDatabaseDdlAction.Builder setSdlStatement(int index, String value)

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sdlStatement to set.

Returns
TypeDescription
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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