Class MutationAction.Mod (6.68.0)

public static final class MutationAction.Mod extends GeneratedMessageV3 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 Fields

DELETE_KEYS_FIELD_NUMBER

public static final int DELETE_KEYS_FIELD_NUMBER
Field Value
Type Description
int

INSERT_FIELD_NUMBER

public static final int INSERT_FIELD_NUMBER
Field Value
Type Description
int

INSERT_OR_UPDATE_FIELD_NUMBER

public static final int INSERT_OR_UPDATE_FIELD_NUMBER
Field Value
Type Description
int

REPLACE_FIELD_NUMBER

public static final int REPLACE_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_FIELD_NUMBER

public static final int UPDATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MutationAction.Mod getDefaultInstance()
Returns
Type Description
MutationAction.Mod

getDescriptor()

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

newBuilder()

public static MutationAction.Mod.Builder newBuilder()
Returns
Type Description
MutationAction.Mod.Builder

newBuilder(MutationAction.Mod prototype)

public static MutationAction.Mod.Builder newBuilder(MutationAction.Mod prototype)
Parameter
Name Description
prototype MutationAction.Mod
Returns
Type Description
MutationAction.Mod.Builder

parseDelimitedFrom(InputStream input)

public static MutationAction.Mod parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MutationAction.Mod parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MutationAction.Mod parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MutationAction.Mod parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MutationAction.Mod parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MutationAction.Mod parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationAction.Mod
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MutationAction.Mod> parser()
Returns
Type Description
Parser<Mod>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

getDeleteKeysOrBuilder()

public KeySetOrBuilder getDeleteKeysOrBuilder()

Delete rows from "table".

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

Returns
Type Description
KeySetOrBuilder

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.

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.

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

getParserForType()

public Parser<MutationAction.Mod> getParserForType()
Returns
Type Description
Parser<Mod>
Overrides

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.

getReplaceOrBuilder()

public MutationAction.InsertArgsOrBuilder getReplaceOrBuilder()

Replace existing rows of "table".

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

Returns
Type Description
MutationAction.InsertArgsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MutationAction.Mod.Builder newBuilderForType()
Returns
Type Description
MutationAction.Mod.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MutationAction.Mod.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MutationAction.Mod.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MutationAction.Mod.Builder toBuilder()
Returns
Type Description
MutationAction.Mod.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException