Class MutationAction.Mod (6.62.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
TypeDescription
int

INSERT_FIELD_NUMBER

public static final int INSERT_FIELD_NUMBER
Field Value
TypeDescription
int

INSERT_OR_UPDATE_FIELD_NUMBER

public static final int INSERT_OR_UPDATE_FIELD_NUMBER
Field Value
TypeDescription
int

REPLACE_FIELD_NUMBER

public static final int REPLACE_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_FIELD_NUMBER

public static final int UPDATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MutationAction.Mod getDefaultInstance()
Returns
TypeDescription
MutationAction.Mod

getDescriptor()

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

newBuilder()

public static MutationAction.Mod.Builder newBuilder()
Returns
TypeDescription
MutationAction.Mod.Builder

newBuilder(MutationAction.Mod prototype)

public static MutationAction.Mod.Builder newBuilder(MutationAction.Mod prototype)
Parameter
NameDescription
prototypeMutationAction.Mod
Returns
TypeDescription
MutationAction.Mod.Builder

parseDelimitedFrom(InputStream input)

public static MutationAction.Mod parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MutationAction.Mod parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MutationAction.Mod parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MutationAction.Mod parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MutationAction.Mod parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MutationAction.Mod parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MutationAction.Mod parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationAction.Mod
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

getDeleteKeysOrBuilder()

public KeySetOrBuilder getDeleteKeysOrBuilder()

Delete rows from "table".

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

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

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

getParserForType()

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

getReplace()

public MutationAction.InsertArgs getReplace()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.InsertArgs

The replace.

getReplaceOrBuilder()

public MutationAction.InsertArgsOrBuilder getReplaceOrBuilder()

Replace existing rows of "table".

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

Returns
TypeDescription
MutationAction.InsertArgsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MutationAction.Mod.Builder newBuilderForType()
Returns
TypeDescription
MutationAction.Mod.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MutationAction.Mod.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MutationAction.Mod.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MutationAction.Mod.Builder toBuilder()
Returns
TypeDescription
MutationAction.Mod.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException