Class UpdateCloudDatabaseDdlAction.Builder (6.74.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
Type Description
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
Name Description
values Iterable<String>

The sdlStatement to add.

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCloudDatabaseDdlAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The sdlStatement to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the sdlStatement to add.

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

build()

public UpdateCloudDatabaseDdlAction build()
Returns
Type Description
UpdateCloudDatabaseDdlAction

buildPartial()

public UpdateCloudDatabaseDdlAction buildPartial()
Returns
Type Description
UpdateCloudDatabaseDdlAction

clear()

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

clearDatabaseId()

public UpdateCloudDatabaseDdlAction.Builder clearDatabaseId()

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

string database_id = 3;

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public UpdateCloudDatabaseDdlAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCloudDatabaseDdlAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearProjectId()

public UpdateCloudDatabaseDdlAction.Builder clearProjectId()

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

string project_id = 2;

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearProtoDescriptors()

public UpdateCloudDatabaseDdlAction.Builder clearProtoDescriptors()

optional bytes proto_descriptors = 6;

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clearSdlStatement()

public UpdateCloudDatabaseDdlAction.Builder clearSdlStatement()

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

clone()

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

getDatabaseId()

public String getDatabaseId()

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

string database_id = 3;

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

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

string database_id = 3;

Returns
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public UpdateCloudDatabaseDdlAction getDefaultInstanceForType()
Returns
Type Description
UpdateCloudDatabaseDdlAction

getDescriptorForType()

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

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.

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
Type Description
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
Type Description
ByteString

The bytes for operationId.

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.

getProtoDescriptors()

public ByteString getProtoDescriptors()

optional bytes proto_descriptors = 6;

Returns
Type Description
ByteString

The protoDescriptors.

getSdlStatement(int index)

public String getSdlStatement(int index)

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of sdlStatement.

getSdlStatementList()

public ProtocolStringList getSdlStatementList()

SDL statements to apply to the database.

repeated string sdl_statement = 4;

Returns
Type Description
ProtocolStringList

A list containing the sdlStatement.

hasProtoDescriptors()

public boolean hasProtoDescriptors()

optional bytes proto_descriptors = 6;

Returns
Type Description
boolean

Whether the protoDescriptors field is set.

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 UpdateCloudDatabaseDdlAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(UpdateCloudDatabaseDdlAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCloudDatabaseDdlAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The databaseId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCloudDatabaseDdlAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The instanceId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
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
Name Description
value String

The operationId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for operationId to set.

Returns
Type Description
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
Name Description
value String

The projectId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setProtoDescriptors(ByteString value)

public UpdateCloudDatabaseDdlAction.Builder setProtoDescriptors(ByteString value)

optional bytes proto_descriptors = 6;

Parameter
Name Description
value ByteString

The protoDescriptors to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The sdlStatement to set.

Returns
Type Description
UpdateCloudDatabaseDdlAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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