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:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getTable

      public String getTable()
       The table to write.
       
      string table = 1;
      Specified by:
      getTable in interface MutationAction.ModOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       The table to write.
       
      string table = 1;
      Specified by:
      getTableBytes in interface MutationAction.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:
      hasInsert in interface MutationAction.ModOrBuilder
      Returns:
      Whether the insert field is set.
    • 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;
      Specified by:
      getInsert in interface MutationAction.ModOrBuilder
      Returns:
      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;
      Specified by:
      getInsertOrBuilder in interface MutationAction.ModOrBuilder
    • hasUpdate

      public boolean hasUpdate()
       Update columns stored in existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;
      Specified by:
      hasUpdate in interface MutationAction.ModOrBuilder
      Returns:
      Whether the update field is set.
    • getUpdate

      public MutationAction.UpdateArgs getUpdate()
       Update columns stored in existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;
      Specified by:
      getUpdate in interface MutationAction.ModOrBuilder
      Returns:
      The update.
    • getUpdateOrBuilder

      public MutationAction.UpdateArgsOrBuilder getUpdateOrBuilder()
       Update columns stored in existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;
      Specified by:
      getUpdateOrBuilder in interface MutationAction.ModOrBuilder
    • hasInsertOrUpdate

      public boolean hasInsertOrUpdate()
       Insert or update existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;
      Specified by:
      hasInsertOrUpdate in interface MutationAction.ModOrBuilder
      Returns:
      Whether the insertOrUpdate field is set.
    • getInsertOrUpdate

      public MutationAction.InsertArgs getInsertOrUpdate()
       Insert or update existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;
      Specified by:
      getInsertOrUpdate in interface MutationAction.ModOrBuilder
      Returns:
      The insertOrUpdate.
    • getInsertOrUpdateOrBuilder

      public MutationAction.InsertArgsOrBuilder getInsertOrUpdateOrBuilder()
       Insert or update existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;
      Specified by:
      getInsertOrUpdateOrBuilder in interface MutationAction.ModOrBuilder
    • hasReplace

      public boolean hasReplace()
       Replace existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;
      Specified by:
      hasReplace in interface MutationAction.ModOrBuilder
      Returns:
      Whether the replace field is set.
    • getReplace

      public MutationAction.InsertArgs getReplace()
       Replace existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;
      Specified by:
      getReplace in interface MutationAction.ModOrBuilder
      Returns:
      The replace.
    • getReplaceOrBuilder

      public MutationAction.InsertArgsOrBuilder getReplaceOrBuilder()
       Replace existing rows of "table".
       
      .google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;
      Specified by:
      getReplaceOrBuilder in interface MutationAction.ModOrBuilder
    • hasDeleteKeys

      public boolean hasDeleteKeys()
       Delete rows from "table".
       
      .google.spanner.executor.v1.KeySet delete_keys = 6;
      Specified by:
      hasDeleteKeys in interface MutationAction.ModOrBuilder
      Returns:
      Whether the deleteKeys field is set.
    • getDeleteKeys

      public KeySet getDeleteKeys()
       Delete rows from "table".
       
      .google.spanner.executor.v1.KeySet delete_keys = 6;
      Specified by:
      getDeleteKeys in interface MutationAction.ModOrBuilder
      Returns:
      The deleteKeys.
    • getDeleteKeysOrBuilder

      public KeySetOrBuilder getDeleteKeysOrBuilder()
       Delete rows from "table".
       
      .google.spanner.executor.v1.KeySet delete_keys = 6;
      Specified by:
      getDeleteKeysOrBuilder in interface MutationAction.ModOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static MutationAction.Mod parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MutationAction.Mod parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MutationAction.Mod parseDelimitedFrom(InputStream input) throws IOException
      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

      public MutationAction.Mod.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MutationAction.Mod.Builder newBuilder()
    • newBuilder

      public static MutationAction.Mod.Builder newBuilder(MutationAction.Mod prototype)
    • toBuilder

      public MutationAction.Mod.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MutationAction.Mod.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MutationAction.Mod getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MutationAction.Mod> parser()
    • getParserForType

      public com.google.protobuf.Parser<MutationAction.Mod> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MutationAction.Mod getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder