Class MutationAction.Mod.Builder (6.56.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MutationAction.Mod build()
Returns
TypeDescription
MutationAction.Mod

buildPartial()

public MutationAction.Mod buildPartial()
Returns
TypeDescription
MutationAction.Mod

clear()

public MutationAction.Mod.Builder clear()
Returns
TypeDescription
MutationAction.Mod.Builder
Overrides

clearDeleteKeys()

public MutationAction.Mod.Builder clearDeleteKeys()

Delete rows from "table".

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

Returns
TypeDescription
MutationAction.Mod.Builder

clearField(Descriptors.FieldDescriptor field)

public MutationAction.Mod.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MutationAction.Mod.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplace()

public MutationAction.Mod.Builder clearReplace()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.Mod.Builder

clearTable()

public MutationAction.Mod.Builder clearTable()

The table to write.

string table = 1;

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

clone()

public MutationAction.Mod.Builder clone()
Returns
TypeDescription
MutationAction.Mod.Builder
Overrides

getDefaultInstanceForType()

public MutationAction.Mod getDefaultInstanceForType()
Returns
TypeDescription
MutationAction.Mod

getDeleteKeys()

public KeySet getDeleteKeys()

Delete rows from "table".

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

Returns
TypeDescription
KeySet

The deleteKeys.

getDeleteKeysBuilder()

public KeySet.Builder getDeleteKeysBuilder()

Delete rows from "table".

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

Returns
TypeDescription
KeySet.Builder

getDeleteKeysOrBuilder()

public KeySetOrBuilder getDeleteKeysOrBuilder()

Delete rows from "table".

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

Returns
TypeDescription
KeySetOrBuilder

getDescriptorForType()

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

getReplace()

public MutationAction.InsertArgs getReplace()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.InsertArgs

The replace.

getReplaceBuilder()

public MutationAction.InsertArgs.Builder getReplaceBuilder()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.InsertArgs.Builder

getReplaceOrBuilder()

public MutationAction.InsertArgsOrBuilder getReplaceOrBuilder()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.InsertArgsOrBuilder

getTable()

public String getTable()

The table to write.

string table = 1;

Returns
TypeDescription
String

The table.

getTableBytes()

public ByteString getTableBytes()

The table to write.

string table = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
MutationAction.UpdateArgsOrBuilder

hasDeleteKeys()

public boolean hasDeleteKeys()

Delete rows from "table".

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the update field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueKeySet
Returns
TypeDescription
MutationAction.Mod.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MutationAction.Mod other)

public MutationAction.Mod.Builder mergeFrom(MutationAction.Mod other)
Parameter
NameDescription
otherMutationAction.Mod
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
MutationAction.Mod.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MutationAction.Mod.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueMutationAction.UpdateArgs
Returns
TypeDescription
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
NameDescription
valueKeySet
Returns
TypeDescription
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
NameDescription
builderForValueKeySet.Builder
Returns
TypeDescription
MutationAction.Mod.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MutationAction.Mod.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
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
NameDescription
builderForValueMutationAction.InsertArgs.Builder
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
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
NameDescription
builderForValueMutationAction.InsertArgs.Builder
Returns
TypeDescription
MutationAction.Mod.Builder

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

public MutationAction.Mod.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueMutationAction.InsertArgs
Returns
TypeDescription
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
NameDescription
builderForValueMutationAction.InsertArgs.Builder
Returns
TypeDescription
MutationAction.Mod.Builder

setTable(String value)

public MutationAction.Mod.Builder setTable(String value)

The table to write.

string table = 1;

Parameter
NameDescription
valueString

The table to set.

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

The bytes for table to set.

Returns
TypeDescription
MutationAction.Mod.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MutationAction.Mod.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueMutationAction.UpdateArgs
Returns
TypeDescription
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
NameDescription
builderForValueMutationAction.UpdateArgs.Builder
Returns
TypeDescription
MutationAction.Mod.Builder