Class MutationAction.Mod.Builder (6.79.0)

public static final class MutationAction.Mod.Builder extends GeneratedMessageV3.Builder<MutationAction.Mod.Builder> implements MutationAction.ModOrBuilder

Mod represents the write action that will be perform to a table. Each mod will specify exactly one action, from insert, update, insert_or_update, replace and delete.

Protobuf type google.spanner.executor.v1.MutationAction.Mod

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MutationAction.Mod build()
Returns
Type Description
MutationAction.Mod

buildPartial()

public MutationAction.Mod buildPartial()
Returns
Type Description
MutationAction.Mod

clear()

public MutationAction.Mod.Builder clear()
Returns
Type Description
MutationAction.Mod.Builder
Overrides

clearDeleteKeys()

public MutationAction.Mod.Builder clearDeleteKeys()

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Returns
Type Description
MutationAction.Mod.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInsert()

public MutationAction.Mod.Builder clearInsert()

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Returns
Type Description
MutationAction.Mod.Builder

clearInsertOrUpdate()

public MutationAction.Mod.Builder clearInsertOrUpdate()

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Returns
Type Description
MutationAction.Mod.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplace()

public MutationAction.Mod.Builder clearReplace()

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Returns
Type Description
MutationAction.Mod.Builder

clearTable()

public MutationAction.Mod.Builder clearTable()

The table to write.

string table = 1;

Returns
Type Description
MutationAction.Mod.Builder

This builder for chaining.

clearUpdate()

public MutationAction.Mod.Builder clearUpdate()

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Returns
Type Description
MutationAction.Mod.Builder

clone()

public MutationAction.Mod.Builder clone()
Returns
Type Description
MutationAction.Mod.Builder
Overrides

getDefaultInstanceForType()

public MutationAction.Mod getDefaultInstanceForType()
Returns
Type Description
MutationAction.Mod

getDeleteKeys()

public KeySet getDeleteKeys()

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Returns
Type Description
KeySet

The deleteKeys.

getDeleteKeysBuilder()

public KeySet.Builder getDeleteKeysBuilder()

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Returns
Type Description
KeySet.Builder

getDeleteKeysOrBuilder()

public KeySetOrBuilder getDeleteKeysOrBuilder()

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Returns
Type Description
KeySetOrBuilder

getDescriptorForType()

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

getInsert()

public MutationAction.InsertArgs getInsert()

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Returns
Type Description
MutationAction.InsertArgs

The insert.

getInsertBuilder()

public MutationAction.InsertArgs.Builder getInsertBuilder()

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Returns
Type Description
MutationAction.InsertArgs.Builder

getInsertOrBuilder()

public MutationAction.InsertArgsOrBuilder getInsertOrBuilder()

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Returns
Type Description
MutationAction.InsertArgsOrBuilder

getInsertOrUpdate()

public MutationAction.InsertArgs getInsertOrUpdate()

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Returns
Type Description
MutationAction.InsertArgs

The insertOrUpdate.

getInsertOrUpdateBuilder()

public MutationAction.InsertArgs.Builder getInsertOrUpdateBuilder()

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Returns
Type Description
MutationAction.InsertArgs.Builder

getInsertOrUpdateOrBuilder()

public MutationAction.InsertArgsOrBuilder getInsertOrUpdateOrBuilder()

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Returns
Type Description
MutationAction.InsertArgsOrBuilder

getReplace()

public MutationAction.InsertArgs getReplace()

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Returns
Type Description
MutationAction.InsertArgs

The replace.

getReplaceBuilder()

public MutationAction.InsertArgs.Builder getReplaceBuilder()

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Returns
Type Description
MutationAction.InsertArgs.Builder

getReplaceOrBuilder()

public MutationAction.InsertArgsOrBuilder getReplaceOrBuilder()

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Returns
Type Description
MutationAction.InsertArgsOrBuilder

getTable()

public String getTable()

The table to write.

string table = 1;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

The table to write.

string table = 1;

Returns
Type Description
ByteString

The bytes for table.

getUpdate()

public MutationAction.UpdateArgs getUpdate()

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Returns
Type Description
MutationAction.UpdateArgs

The update.

getUpdateBuilder()

public MutationAction.UpdateArgs.Builder getUpdateBuilder()

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Returns
Type Description
MutationAction.UpdateArgs.Builder

getUpdateOrBuilder()

public MutationAction.UpdateArgsOrBuilder getUpdateOrBuilder()

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Returns
Type Description
MutationAction.UpdateArgsOrBuilder

hasDeleteKeys()

public boolean hasDeleteKeys()

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Returns
Type Description
boolean

Whether the deleteKeys field is set.

hasInsert()

public boolean hasInsert()

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Returns
Type Description
boolean

Whether the insert field is set.

hasInsertOrUpdate()

public boolean hasInsertOrUpdate()

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Returns
Type Description
boolean

Whether the insertOrUpdate field is set.

hasReplace()

public boolean hasReplace()

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Returns
Type Description
boolean

Whether the replace field is set.

hasUpdate()

public boolean hasUpdate()

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Returns
Type Description
boolean

Whether the update field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeleteKeys(KeySet value)

public MutationAction.Mod.Builder mergeDeleteKeys(KeySet value)

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Parameter
Name Description
value KeySet
Returns
Type Description
MutationAction.Mod.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MutationAction.Mod other)

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

mergeInsert(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder mergeInsert(MutationAction.InsertArgs value)

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

mergeInsertOrUpdate(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder mergeInsertOrUpdate(MutationAction.InsertArgs value)

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

mergeReplace(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder mergeReplace(MutationAction.InsertArgs value)

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdate(MutationAction.UpdateArgs value)

public MutationAction.Mod.Builder mergeUpdate(MutationAction.UpdateArgs value)

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Parameter
Name Description
value MutationAction.UpdateArgs
Returns
Type Description
MutationAction.Mod.Builder

setDeleteKeys(KeySet value)

public MutationAction.Mod.Builder setDeleteKeys(KeySet value)

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Parameter
Name Description
value KeySet
Returns
Type Description
MutationAction.Mod.Builder

setDeleteKeys(KeySet.Builder builderForValue)

public MutationAction.Mod.Builder setDeleteKeys(KeySet.Builder builderForValue)

Delete rows from "table".

.google.spanner.executor.v1.KeySet delete_keys = 6;

Parameter
Name Description
builderForValue KeySet.Builder
Returns
Type Description
MutationAction.Mod.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsert(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder setInsert(MutationAction.InsertArgs value)

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

setInsert(MutationAction.InsertArgs.Builder builderForValue)

public MutationAction.Mod.Builder setInsert(MutationAction.InsertArgs.Builder builderForValue)

Exactly one of the remaining elements may be present. Insert new rows into "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;

Parameter
Name Description
builderForValue MutationAction.InsertArgs.Builder
Returns
Type Description
MutationAction.Mod.Builder

setInsertOrUpdate(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder setInsertOrUpdate(MutationAction.InsertArgs value)

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

setInsertOrUpdate(MutationAction.InsertArgs.Builder builderForValue)

public MutationAction.Mod.Builder setInsertOrUpdate(MutationAction.InsertArgs.Builder builderForValue)

Insert or update existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;

Parameter
Name Description
builderForValue MutationAction.InsertArgs.Builder
Returns
Type Description
MutationAction.Mod.Builder

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

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

setReplace(MutationAction.InsertArgs value)

public MutationAction.Mod.Builder setReplace(MutationAction.InsertArgs value)

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Parameter
Name Description
value MutationAction.InsertArgs
Returns
Type Description
MutationAction.Mod.Builder

setReplace(MutationAction.InsertArgs.Builder builderForValue)

public MutationAction.Mod.Builder setReplace(MutationAction.InsertArgs.Builder builderForValue)

Replace existing rows of "table".

.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;

Parameter
Name Description
builderForValue MutationAction.InsertArgs.Builder
Returns
Type Description
MutationAction.Mod.Builder

setTable(String value)

public MutationAction.Mod.Builder setTable(String value)

The table to write.

string table = 1;

Parameter
Name Description
value String

The table to set.

Returns
Type Description
MutationAction.Mod.Builder

This builder for chaining.

setTableBytes(ByteString value)

public MutationAction.Mod.Builder setTableBytes(ByteString value)

The table to write.

string table = 1;

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
MutationAction.Mod.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdate(MutationAction.UpdateArgs value)

public MutationAction.Mod.Builder setUpdate(MutationAction.UpdateArgs value)

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Parameter
Name Description
value MutationAction.UpdateArgs
Returns
Type Description
MutationAction.Mod.Builder

setUpdate(MutationAction.UpdateArgs.Builder builderForValue)

public MutationAction.Mod.Builder setUpdate(MutationAction.UpdateArgs.Builder builderForValue)

Update columns stored in existing rows of "table".

.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;

Parameter
Name Description
builderForValue MutationAction.UpdateArgs.Builder
Returns
Type Description
MutationAction.Mod.Builder