Class StartTransactionAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
com.google.spanner.executor.v1.StartTransactionAction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StartTransactionActionOrBuilder, Cloneable
Enclosing class:
StartTransactionAction

public static final class StartTransactionAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder> implements StartTransactionActionOrBuilder
 StartTransactionAction defines an action of initializing a transaction.
 
Protobuf type google.spanner.executor.v1.StartTransactionAction
  • Method Details

    • 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.Builder<StartTransactionAction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • getDefaultInstanceForType

      public StartTransactionAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • setField

      public StartTransactionAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • clearField

      public StartTransactionAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • clearOneof

      public StartTransactionAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • setRepeatedField

      public StartTransactionAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • addRepeatedField

      public StartTransactionAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • mergeFrom

      public StartTransactionAction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartTransactionAction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • mergeFrom

      public StartTransactionAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartTransactionAction.Builder>
      Throws:
      IOException
    • 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.
    • setConcurrency

      public StartTransactionAction.Builder setConcurrency(Concurrency value)
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
    • setConcurrency

      public StartTransactionAction.Builder setConcurrency(Concurrency.Builder builderForValue)
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
    • mergeConcurrency

      public StartTransactionAction.Builder mergeConcurrency(Concurrency value)
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
    • clearConcurrency

      public StartTransactionAction.Builder clearConcurrency()
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
    • getConcurrencyBuilder

      public Concurrency.Builder getConcurrencyBuilder()
       Concurrency is for read-only transactions and must be omitted for
       read-write transactions.
       
      optional .google.spanner.executor.v1.Concurrency concurrency = 1;
    • 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
    • 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
    • setTable

      public StartTransactionAction.Builder setTable(int index, TableMetadata value)
       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;
    • setTable

      public StartTransactionAction.Builder setTable(int index, TableMetadata.Builder builderForValue)
       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;
    • addTable

       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;
    • addTable

      public StartTransactionAction.Builder addTable(int index, TableMetadata value)
       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;
    • addTable

      public StartTransactionAction.Builder addTable(TableMetadata.Builder builderForValue)
       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;
    • addTable

      public StartTransactionAction.Builder addTable(int index, TableMetadata.Builder builderForValue)
       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;
    • addAllTable

      public StartTransactionAction.Builder addAllTable(Iterable<? extends TableMetadata> values)
       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;
    • clearTable

      public StartTransactionAction.Builder clearTable()
       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;
    • removeTable

      public StartTransactionAction.Builder removeTable(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;
    • getTableBuilder

      public TableMetadata.Builder getTableBuilder(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;
    • 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
    • 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
    • addTableBuilder

      public TableMetadata.Builder addTableBuilder()
       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;
    • addTableBuilder

      public TableMetadata.Builder addTableBuilder(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;
    • getTableBuilderList

      public List<TableMetadata.Builder> getTableBuilderList()
       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;
    • 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.
    • setTransactionSeed

      public StartTransactionAction.Builder setTransactionSeed(String value)
       Transaction_seed contains workid and op pair for this transaction, used for
       testing.
       
      string transaction_seed = 3;
      Parameters:
      value - The transactionSeed to set.
      Returns:
      This builder for chaining.
    • clearTransactionSeed

      public StartTransactionAction.Builder clearTransactionSeed()
       Transaction_seed contains workid and op pair for this transaction, used for
       testing.
       
      string transaction_seed = 3;
      Returns:
      This builder for chaining.
    • setTransactionSeedBytes

      public StartTransactionAction.Builder setTransactionSeedBytes(com.google.protobuf.ByteString value)
       Transaction_seed contains workid and op pair for this transaction, used for
       testing.
       
      string transaction_seed = 3;
      Parameters:
      value - The bytes for transactionSeed to set.
      Returns:
      This builder for chaining.
    • 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.
    • setExecutionOptions

      public StartTransactionAction.Builder setExecutionOptions(TransactionExecutionOptions value)
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
    • setExecutionOptions

      public StartTransactionAction.Builder setExecutionOptions(TransactionExecutionOptions.Builder builderForValue)
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
    • mergeExecutionOptions

      public StartTransactionAction.Builder mergeExecutionOptions(TransactionExecutionOptions value)
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
    • clearExecutionOptions

      public StartTransactionAction.Builder clearExecutionOptions()
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
    • getExecutionOptionsBuilder

      public TransactionExecutionOptions.Builder getExecutionOptionsBuilder()
       Execution options (e.g., whether transaction is opaque, optimistic).
       
      optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;
    • 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
    • setUnknownFields

      public final StartTransactionAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
    • mergeUnknownFields

      public final StartTransactionAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>