Class StartTransactionAction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.StartTransactionAction
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StartTransactionActionOrBuilder, Serializable

public final class StartTransactionAction extends com.google.protobuf.GeneratedMessageV3 implements StartTransactionActionOrBuilder
 StartTransactionAction defines an action of initializing a transaction.
 
Protobuf type google.spanner.executor.v1.StartTransactionAction
See Also:
  • Field Details

    • CONCURRENCY_FIELD_NUMBER

      public static final int CONCURRENCY_FIELD_NUMBER
      See Also:
    • TABLE_FIELD_NUMBER

      public static final int TABLE_FIELD_NUMBER
      See Also:
    • TRANSACTION_SEED_FIELD_NUMBER

      public static final int TRANSACTION_SEED_FIELD_NUMBER
      See Also:
    • EXECUTION_OPTIONS_FIELD_NUMBER

      public static final int EXECUTION_OPTIONS_FIELD_NUMBER
      See Also:
  • 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
    • hasConcurrency

      public boolean hasConcurrency()
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
      Specified by:
      hasConcurrency in interface StartTransactionActionOrBuilder
      Returns:
      Whether the concurrency field is set.
    • getConcurrency

      public Concurrency getConcurrency()
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
      Specified by:
      getConcurrency in interface StartTransactionActionOrBuilder
      Returns:
      The concurrency.
    • getConcurrencyOrBuilder

      public ConcurrencyOrBuilder getConcurrencyOrBuilder()
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
      Specified by:
      getConcurrencyOrBuilder in interface StartTransactionActionOrBuilder
    • getTableList

      public List<TableMetadata> getTableList()
       Metadata about tables and columns that will be involved in this
       transaction. It is to convert values of key parts correctly.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableList in interface StartTransactionActionOrBuilder
    • getTableOrBuilderList

      public List<? extends TableMetadataOrBuilder> getTableOrBuilderList()
       Metadata about tables and columns that will be involved in this
       transaction. It is to convert values of key parts correctly.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableOrBuilderList in interface StartTransactionActionOrBuilder
    • getTableCount

      public int getTableCount()
       Metadata about tables and columns that will be involved in this
       transaction. It is to convert values of key parts correctly.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableCount in interface StartTransactionActionOrBuilder
    • getTable

      public TableMetadata getTable(int index)
       Metadata about tables and columns that will be involved in this
       transaction. It is to convert values of key parts correctly.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTable in interface StartTransactionActionOrBuilder
    • getTableOrBuilder

      public TableMetadataOrBuilder getTableOrBuilder(int index)
       Metadata about tables and columns that will be involved in this
       transaction. It is to convert values of key parts correctly.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableOrBuilder in interface StartTransactionActionOrBuilder
    • getTransactionSeed

      public String getTransactionSeed()
       Transaction_seed contains workid and op pair for this transaction, used for
       testing.
       
      string transaction_seed = 3;
      Specified by:
      getTransactionSeed in interface StartTransactionActionOrBuilder
      Returns:
      The transactionSeed.
    • getTransactionSeedBytes

      public com.google.protobuf.ByteString getTransactionSeedBytes()
       Transaction_seed contains workid and op pair for this transaction, used for
       testing.
       
      string transaction_seed = 3;
      Specified by:
      getTransactionSeedBytes in interface StartTransactionActionOrBuilder
      Returns:
      The bytes for transactionSeed.
    • hasExecutionOptions

      public boolean hasExecutionOptions()
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
      Specified by:
      hasExecutionOptions in interface StartTransactionActionOrBuilder
      Returns:
      Whether the executionOptions field is set.
    • getExecutionOptions

      public TransactionExecutionOptions getExecutionOptions()
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
      Specified by:
      getExecutionOptions in interface StartTransactionActionOrBuilder
      Returns:
      The executionOptions.
    • getExecutionOptionsOrBuilder

      public TransactionExecutionOptionsOrBuilder getExecutionOptionsOrBuilder()
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
      Specified by:
      getExecutionOptionsOrBuilder in interface StartTransactionActionOrBuilder
    • 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 StartTransactionAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartTransactionAction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static StartTransactionAction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static StartTransactionAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StartTransactionAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static StartTransactionAction.Builder newBuilder()
    • newBuilder

      public static StartTransactionAction.Builder newBuilder(StartTransactionAction prototype)
    • toBuilder

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

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

      public static StartTransactionAction getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<StartTransactionAction> 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 StartTransactionAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder