Class Concurrency

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

public final class Concurrency extends com.google.protobuf.GeneratedMessageV3 implements ConcurrencyOrBuilder
 Concurrency for read-only transactions.
 
Protobuf type google.spanner.executor.v1.Concurrency
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Concurrency for read-only transactions.
    static enum 
     

    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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Indicates a batch read, must only be set to true, or unset.
    long
    Set only when batch is true.
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    Indicates a read at a consistent timestamp.
    double
    Indicates a boundedly stale read that is at most N seconds stale.
    long
    Indicates a boundedly stale read that reads at a timestamp >= T.
    com.google.protobuf.Parser<Concurrency>
     
    int
     
    boolean
    True if exact_timestamp_micros is set, and the chosen timestamp is that of a snapshot epoch.
    If set, this is a snapshot epoch read constrained to read only the specified log scope root table, and its children.
    com.google.protobuf.ByteString
    If set, this is a snapshot epoch read constrained to read only the specified log scope root table, and its children.
    double
    Indicates a read at a consistent timestamp that is specified relative to now.
    boolean
    Indicates a strong read, must only be set to true, or unset.
    boolean
    Indicates a batch read, must only be set to true, or unset.
    boolean
    Indicates a read at a consistent timestamp.
    int
     
    boolean
    Indicates a boundedly stale read that is at most N seconds stale.
    boolean
    Indicates a boundedly stale read that reads at a timestamp >= T.
    boolean
    Indicates a read at a consistent timestamp that is specified relative to now.
    boolean
    Indicates a strong read, must only be set to true, or unset.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Concurrency>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • STALENESS_SECONDS_FIELD_NUMBER

      public static final int STALENESS_SECONDS_FIELD_NUMBER
      See Also:
    • MIN_READ_TIMESTAMP_MICROS_FIELD_NUMBER

      public static final int MIN_READ_TIMESTAMP_MICROS_FIELD_NUMBER
      See Also:
    • MAX_STALENESS_SECONDS_FIELD_NUMBER

      public static final int MAX_STALENESS_SECONDS_FIELD_NUMBER
      See Also:
    • EXACT_TIMESTAMP_MICROS_FIELD_NUMBER

      public static final int EXACT_TIMESTAMP_MICROS_FIELD_NUMBER
      See Also:
    • STRONG_FIELD_NUMBER

      public static final int STRONG_FIELD_NUMBER
      See Also:
    • BATCH_FIELD_NUMBER

      public static final int BATCH_FIELD_NUMBER
      See Also:
    • SNAPSHOT_EPOCH_READ_FIELD_NUMBER

      public static final int SNAPSHOT_EPOCH_READ_FIELD_NUMBER
      See Also:
    • SNAPSHOT_EPOCH_ROOT_TABLE_FIELD_NUMBER

      public static final int SNAPSHOT_EPOCH_ROOT_TABLE_FIELD_NUMBER
      See Also:
    • BATCH_READ_TIMESTAMP_MICROS_FIELD_NUMBER

      public static final int BATCH_READ_TIMESTAMP_MICROS_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
    • getConcurrencyModeCase

      public Concurrency.ConcurrencyModeCase getConcurrencyModeCase()
      Specified by:
      getConcurrencyModeCase in interface ConcurrencyOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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 Concurrency parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Concurrency.Builder newBuilder()
    • newBuilder

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

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

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

      public static Concurrency getDefaultInstance()
    • parser

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

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