Package com.google.spanner.executor.v1
Class MutationAction.Mod
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.MutationAction.Mod
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MutationAction.ModOrBuilder,Serializable
- Enclosing class:
- MutationAction
public static final class MutationAction.Mod
extends com.google.protobuf.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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMod represents the write action that will be perform to a table.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MutationAction.ModDelete rows from "table".Delete rows from "table".static final com.google.protobuf.Descriptors.DescriptorExactly one of the remaining elements may be present.Exactly one of the remaining elements may be present.Insert or update existing rows of "table".Insert or update existing rows of "table".com.google.protobuf.Parser<MutationAction.Mod>Replace existing rows of "table".Replace existing rows of "table".intgetTable()The table to write.com.google.protobuf.ByteStringThe table to write.Update columns stored in existing rows of "table".Update columns stored in existing rows of "table".booleanDelete rows from "table".inthashCode()booleanExactly one of the remaining elements may be present.booleanInsert or update existing rows of "table".booleanReplace existing rows of "table".booleanUpdate columns stored in existing rows of "table".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic MutationAction.Mod.Builderstatic MutationAction.Mod.BuildernewBuilder(MutationAction.Mod prototype) protected MutationAction.Mod.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MutationAction.ModparseDelimitedFrom(InputStream input) static MutationAction.ModparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MutationAction.ModparseFrom(byte[] data) static MutationAction.ModparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MutationAction.ModparseFrom(com.google.protobuf.ByteString data) static MutationAction.ModparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MutationAction.ModparseFrom(com.google.protobuf.CodedInputStream input) static MutationAction.ModparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MutationAction.ModparseFrom(InputStream input) static MutationAction.ModparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MutationAction.ModparseFrom(ByteBuffer data) static MutationAction.ModparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MutationAction.Mod>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER- See Also:
-
INSERT_FIELD_NUMBER
public static final int INSERT_FIELD_NUMBER- See Also:
-
UPDATE_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER- See Also:
-
INSERT_OR_UPDATE_FIELD_NUMBER
public static final int INSERT_OR_UPDATE_FIELD_NUMBER- See Also:
-
REPLACE_FIELD_NUMBER
public static final int REPLACE_FIELD_NUMBER- See Also:
-
DELETE_KEYS_FIELD_NUMBER
public static final int DELETE_KEYS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTable
The table to write.
string table = 1;- Specified by:
getTablein interfaceMutationAction.ModOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()The table to write.
string table = 1;- Specified by:
getTableBytesin interfaceMutationAction.ModOrBuilder- Returns:
- The bytes for table.
-
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;- Specified by:
hasInsertin interfaceMutationAction.ModOrBuilder- Returns:
- Whether the insert field is set.
-
getInsert
Exactly one of the remaining elements may be present. Insert new rows into "table".
.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;- Specified by:
getInsertin interfaceMutationAction.ModOrBuilder- Returns:
- The insert.
-
getInsertOrBuilder
Exactly one of the remaining elements may be present. Insert new rows into "table".
.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;- Specified by:
getInsertOrBuilderin interfaceMutationAction.ModOrBuilder
-
hasUpdate
public boolean hasUpdate()Update columns stored in existing rows of "table".
.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;- Specified by:
hasUpdatein interfaceMutationAction.ModOrBuilder- Returns:
- Whether the update field is set.
-
getUpdate
Update columns stored in existing rows of "table".
.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;- Specified by:
getUpdatein interfaceMutationAction.ModOrBuilder- Returns:
- The update.
-
getUpdateOrBuilder
Update columns stored in existing rows of "table".
.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;- Specified by:
getUpdateOrBuilderin interfaceMutationAction.ModOrBuilder
-
hasInsertOrUpdate
public boolean hasInsertOrUpdate()Insert or update existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;- Specified by:
hasInsertOrUpdatein interfaceMutationAction.ModOrBuilder- Returns:
- Whether the insertOrUpdate field is set.
-
getInsertOrUpdate
Insert or update existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;- Specified by:
getInsertOrUpdatein interfaceMutationAction.ModOrBuilder- Returns:
- The insertOrUpdate.
-
getInsertOrUpdateOrBuilder
Insert or update existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;- Specified by:
getInsertOrUpdateOrBuilderin interfaceMutationAction.ModOrBuilder
-
hasReplace
public boolean hasReplace()Replace existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;- Specified by:
hasReplacein interfaceMutationAction.ModOrBuilder- Returns:
- Whether the replace field is set.
-
getReplace
Replace existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;- Specified by:
getReplacein interfaceMutationAction.ModOrBuilder- Returns:
- The replace.
-
getReplaceOrBuilder
Replace existing rows of "table".
.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;- Specified by:
getReplaceOrBuilderin interfaceMutationAction.ModOrBuilder
-
hasDeleteKeys
public boolean hasDeleteKeys()Delete rows from "table".
.google.spanner.executor.v1.KeySet delete_keys = 6;- Specified by:
hasDeleteKeysin interfaceMutationAction.ModOrBuilder- Returns:
- Whether the deleteKeys field is set.
-
getDeleteKeys
Delete rows from "table".
.google.spanner.executor.v1.KeySet delete_keys = 6;- Specified by:
getDeleteKeysin interfaceMutationAction.ModOrBuilder- Returns:
- The deleteKeys.
-
getDeleteKeysOrBuilder
Delete rows from "table".
.google.spanner.executor.v1.KeySet delete_keys = 6;- Specified by:
getDeleteKeysOrBuilderin interfaceMutationAction.ModOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MutationAction.Mod parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MutationAction.Mod parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MutationAction.Mod parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MutationAction.Mod parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MutationAction.Mod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MutationAction.Mod parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MutationAction.Mod parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MutationAction.Mod parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MutationAction.Mod parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MutationAction.Mod parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MutationAction.Mod.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-