Class Concurrency.Builder

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

public static final class Concurrency.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder> implements ConcurrencyOrBuilder
 Concurrency for read-only transactions.
 
Protobuf type google.spanner.executor.v1.Concurrency
  • 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<Concurrency.Builder>
    • clear

      public Concurrency.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<Concurrency.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<Concurrency.Builder>
    • getDefaultInstanceForType

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

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

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

      public Concurrency.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<Concurrency.Builder>
    • setField

      public Concurrency.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<Concurrency.Builder>
    • clearField

      public Concurrency.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<Concurrency.Builder>
    • clearOneof

      public Concurrency.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<Concurrency.Builder>
    • setRepeatedField

      public Concurrency.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<Concurrency.Builder>
    • addRepeatedField

      public Concurrency.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<Concurrency.Builder>
    • mergeFrom

      public Concurrency.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<Concurrency.Builder>
    • mergeFrom

      public Concurrency.Builder mergeFrom(Concurrency other)
    • isInitialized

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

      public Concurrency.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<Concurrency.Builder>
      Throws:
      IOException
    • getConcurrencyModeCase

      public Concurrency.ConcurrencyModeCase getConcurrencyModeCase()
      Specified by:
      getConcurrencyModeCase in interface ConcurrencyOrBuilder
    • clearConcurrencyMode

      public Concurrency.Builder clearConcurrencyMode()
    • hasStalenessSeconds

      public boolean hasStalenessSeconds()
       Indicates a read at a consistent timestamp that is specified relative to
       now. That is, if the caller has specified an exact staleness of s
       seconds, we will read at now - s.
       
      double staleness_seconds = 1;
      Specified by:
      hasStalenessSeconds in interface ConcurrencyOrBuilder
      Returns:
      Whether the stalenessSeconds field is set.
    • getStalenessSeconds

      public double getStalenessSeconds()
       Indicates a read at a consistent timestamp that is specified relative to
       now. That is, if the caller has specified an exact staleness of s
       seconds, we will read at now - s.
       
      double staleness_seconds = 1;
      Specified by:
      getStalenessSeconds in interface ConcurrencyOrBuilder
      Returns:
      The stalenessSeconds.
    • setStalenessSeconds

      public Concurrency.Builder setStalenessSeconds(double value)
       Indicates a read at a consistent timestamp that is specified relative to
       now. That is, if the caller has specified an exact staleness of s
       seconds, we will read at now - s.
       
      double staleness_seconds = 1;
      Parameters:
      value - The stalenessSeconds to set.
      Returns:
      This builder for chaining.
    • clearStalenessSeconds

      public Concurrency.Builder clearStalenessSeconds()
       Indicates a read at a consistent timestamp that is specified relative to
       now. That is, if the caller has specified an exact staleness of s
       seconds, we will read at now - s.
       
      double staleness_seconds = 1;
      Returns:
      This builder for chaining.
    • hasMinReadTimestampMicros

      public boolean hasMinReadTimestampMicros()
       Indicates a boundedly stale read that reads at a timestamp >= T.
       
      int64 min_read_timestamp_micros = 2;
      Specified by:
      hasMinReadTimestampMicros in interface ConcurrencyOrBuilder
      Returns:
      Whether the minReadTimestampMicros field is set.
    • getMinReadTimestampMicros

      public long getMinReadTimestampMicros()
       Indicates a boundedly stale read that reads at a timestamp >= T.
       
      int64 min_read_timestamp_micros = 2;
      Specified by:
      getMinReadTimestampMicros in interface ConcurrencyOrBuilder
      Returns:
      The minReadTimestampMicros.
    • setMinReadTimestampMicros

      public Concurrency.Builder setMinReadTimestampMicros(long value)
       Indicates a boundedly stale read that reads at a timestamp >= T.
       
      int64 min_read_timestamp_micros = 2;
      Parameters:
      value - The minReadTimestampMicros to set.
      Returns:
      This builder for chaining.
    • clearMinReadTimestampMicros

      public Concurrency.Builder clearMinReadTimestampMicros()
       Indicates a boundedly stale read that reads at a timestamp >= T.
       
      int64 min_read_timestamp_micros = 2;
      Returns:
      This builder for chaining.
    • hasMaxStalenessSeconds

      public boolean hasMaxStalenessSeconds()
       Indicates a boundedly stale read that is at most N seconds stale.
       
      double max_staleness_seconds = 3;
      Specified by:
      hasMaxStalenessSeconds in interface ConcurrencyOrBuilder
      Returns:
      Whether the maxStalenessSeconds field is set.
    • getMaxStalenessSeconds

      public double getMaxStalenessSeconds()
       Indicates a boundedly stale read that is at most N seconds stale.
       
      double max_staleness_seconds = 3;
      Specified by:
      getMaxStalenessSeconds in interface ConcurrencyOrBuilder
      Returns:
      The maxStalenessSeconds.
    • setMaxStalenessSeconds

      public Concurrency.Builder setMaxStalenessSeconds(double value)
       Indicates a boundedly stale read that is at most N seconds stale.
       
      double max_staleness_seconds = 3;
      Parameters:
      value - The maxStalenessSeconds to set.
      Returns:
      This builder for chaining.
    • clearMaxStalenessSeconds

      public Concurrency.Builder clearMaxStalenessSeconds()
       Indicates a boundedly stale read that is at most N seconds stale.
       
      double max_staleness_seconds = 3;
      Returns:
      This builder for chaining.
    • hasExactTimestampMicros

      public boolean hasExactTimestampMicros()
       Indicates a read at a consistent timestamp.
       
      int64 exact_timestamp_micros = 4;
      Specified by:
      hasExactTimestampMicros in interface ConcurrencyOrBuilder
      Returns:
      Whether the exactTimestampMicros field is set.
    • getExactTimestampMicros

      public long getExactTimestampMicros()
       Indicates a read at a consistent timestamp.
       
      int64 exact_timestamp_micros = 4;
      Specified by:
      getExactTimestampMicros in interface ConcurrencyOrBuilder
      Returns:
      The exactTimestampMicros.
    • setExactTimestampMicros

      public Concurrency.Builder setExactTimestampMicros(long value)
       Indicates a read at a consistent timestamp.
       
      int64 exact_timestamp_micros = 4;
      Parameters:
      value - The exactTimestampMicros to set.
      Returns:
      This builder for chaining.
    • clearExactTimestampMicros

      public Concurrency.Builder clearExactTimestampMicros()
       Indicates a read at a consistent timestamp.
       
      int64 exact_timestamp_micros = 4;
      Returns:
      This builder for chaining.
    • hasStrong

      public boolean hasStrong()
       Indicates a strong read, must only be set to true, or unset.
       
      bool strong = 5;
      Specified by:
      hasStrong in interface ConcurrencyOrBuilder
      Returns:
      Whether the strong field is set.
    • getStrong

      public boolean getStrong()
       Indicates a strong read, must only be set to true, or unset.
       
      bool strong = 5;
      Specified by:
      getStrong in interface ConcurrencyOrBuilder
      Returns:
      The strong.
    • setStrong

      public Concurrency.Builder setStrong(boolean value)
       Indicates a strong read, must only be set to true, or unset.
       
      bool strong = 5;
      Parameters:
      value - The strong to set.
      Returns:
      This builder for chaining.
    • clearStrong

      public Concurrency.Builder clearStrong()
       Indicates a strong read, must only be set to true, or unset.
       
      bool strong = 5;
      Returns:
      This builder for chaining.
    • hasBatch

      public boolean hasBatch()
       Indicates a batch read, must only be set to true, or unset.
       
      bool batch = 6;
      Specified by:
      hasBatch in interface ConcurrencyOrBuilder
      Returns:
      Whether the batch field is set.
    • getBatch

      public boolean getBatch()
       Indicates a batch read, must only be set to true, or unset.
       
      bool batch = 6;
      Specified by:
      getBatch in interface ConcurrencyOrBuilder
      Returns:
      The batch.
    • setBatch

      public Concurrency.Builder setBatch(boolean value)
       Indicates a batch read, must only be set to true, or unset.
       
      bool batch = 6;
      Parameters:
      value - The batch to set.
      Returns:
      This builder for chaining.
    • clearBatch

      public Concurrency.Builder clearBatch()
       Indicates a batch read, must only be set to true, or unset.
       
      bool batch = 6;
      Returns:
      This builder for chaining.
    • getSnapshotEpochRead

      public boolean getSnapshotEpochRead()
       True if exact_timestamp_micros is set, and the chosen timestamp is that of
       a snapshot epoch.
       
      bool snapshot_epoch_read = 7;
      Specified by:
      getSnapshotEpochRead in interface ConcurrencyOrBuilder
      Returns:
      The snapshotEpochRead.
    • setSnapshotEpochRead

      public Concurrency.Builder setSnapshotEpochRead(boolean value)
       True if exact_timestamp_micros is set, and the chosen timestamp is that of
       a snapshot epoch.
       
      bool snapshot_epoch_read = 7;
      Parameters:
      value - The snapshotEpochRead to set.
      Returns:
      This builder for chaining.
    • clearSnapshotEpochRead

      public Concurrency.Builder clearSnapshotEpochRead()
       True if exact_timestamp_micros is set, and the chosen timestamp is that of
       a snapshot epoch.
       
      bool snapshot_epoch_read = 7;
      Returns:
      This builder for chaining.
    • getSnapshotEpochRootTable

      public String getSnapshotEpochRootTable()
       If set, this is a snapshot epoch read constrained to read only the
       specified log scope root table, and its children. Will not be set for full
       database epochs.
       
      string snapshot_epoch_root_table = 8;
      Specified by:
      getSnapshotEpochRootTable in interface ConcurrencyOrBuilder
      Returns:
      The snapshotEpochRootTable.
    • getSnapshotEpochRootTableBytes

      public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes()
       If set, this is a snapshot epoch read constrained to read only the
       specified log scope root table, and its children. Will not be set for full
       database epochs.
       
      string snapshot_epoch_root_table = 8;
      Specified by:
      getSnapshotEpochRootTableBytes in interface ConcurrencyOrBuilder
      Returns:
      The bytes for snapshotEpochRootTable.
    • setSnapshotEpochRootTable

      public Concurrency.Builder setSnapshotEpochRootTable(String value)
       If set, this is a snapshot epoch read constrained to read only the
       specified log scope root table, and its children. Will not be set for full
       database epochs.
       
      string snapshot_epoch_root_table = 8;
      Parameters:
      value - The snapshotEpochRootTable to set.
      Returns:
      This builder for chaining.
    • clearSnapshotEpochRootTable

      public Concurrency.Builder clearSnapshotEpochRootTable()
       If set, this is a snapshot epoch read constrained to read only the
       specified log scope root table, and its children. Will not be set for full
       database epochs.
       
      string snapshot_epoch_root_table = 8;
      Returns:
      This builder for chaining.
    • setSnapshotEpochRootTableBytes

      public Concurrency.Builder setSnapshotEpochRootTableBytes(com.google.protobuf.ByteString value)
       If set, this is a snapshot epoch read constrained to read only the
       specified log scope root table, and its children. Will not be set for full
       database epochs.
       
      string snapshot_epoch_root_table = 8;
      Parameters:
      value - The bytes for snapshotEpochRootTable to set.
      Returns:
      This builder for chaining.
    • getBatchReadTimestampMicros

      public long getBatchReadTimestampMicros()
       Set only when batch is true.
       
      int64 batch_read_timestamp_micros = 9;
      Specified by:
      getBatchReadTimestampMicros in interface ConcurrencyOrBuilder
      Returns:
      The batchReadTimestampMicros.
    • setBatchReadTimestampMicros

      public Concurrency.Builder setBatchReadTimestampMicros(long value)
       Set only when batch is true.
       
      int64 batch_read_timestamp_micros = 9;
      Parameters:
      value - The batchReadTimestampMicros to set.
      Returns:
      This builder for chaining.
    • clearBatchReadTimestampMicros

      public Concurrency.Builder clearBatchReadTimestampMicros()
       Set only when batch is true.
       
      int64 batch_read_timestamp_micros = 9;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Concurrency.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<Concurrency.Builder>
    • mergeUnknownFields

      public final Concurrency.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<Concurrency.Builder>