Package com.google.spanner.executor.v1
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 ClassesModifier and TypeClassDescriptionstatic final classConcurrency for read-only transactions.static enumNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetBatch()Indicates a batch read, must only be set to true, or unset.longSet only when batch is true.static Concurrencystatic final com.google.protobuf.Descriptors.DescriptorlongIndicates a read at a consistent timestamp.doubleIndicates a boundedly stale read that is at most N seconds stale.longIndicates a boundedly stale read that reads at a timestamp >= T.com.google.protobuf.Parser<Concurrency>intbooleanTrue 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.ByteStringIf set, this is a snapshot epoch read constrained to read only the specified log scope root table, and its children.doubleIndicates a read at a consistent timestamp that is specified relative to now.booleanIndicates a strong read, must only be set to true, or unset.booleanhasBatch()Indicates a batch read, must only be set to true, or unset.booleanIndicates a read at a consistent timestamp.inthashCode()booleanIndicates a boundedly stale read that is at most N seconds stale.booleanIndicates a boundedly stale read that reads at a timestamp >= T.booleanIndicates a read at a consistent timestamp that is specified relative to now.booleanIndicates a strong read, must only be set to true, or unset.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Concurrency.Builderstatic Concurrency.BuildernewBuilder(Concurrency prototype) protected Concurrency.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ConcurrencyparseDelimitedFrom(InputStream input) static ConcurrencyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConcurrencyparseFrom(byte[] data) static ConcurrencyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConcurrencyparseFrom(com.google.protobuf.ByteString data) static ConcurrencyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConcurrencyparseFrom(com.google.protobuf.CodedInputStream input) static ConcurrencyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConcurrencyparseFrom(InputStream input) static ConcurrencyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConcurrencyparseFrom(ByteBuffer data) static ConcurrencyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Concurrency>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getConcurrencyModeCase
- Specified by:
getConcurrencyModeCasein interfaceConcurrencyOrBuilder
-
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:
hasStalenessSecondsin interfaceConcurrencyOrBuilder- 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:
getStalenessSecondsin interfaceConcurrencyOrBuilder- 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:
hasMinReadTimestampMicrosin interfaceConcurrencyOrBuilder- 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:
getMinReadTimestampMicrosin interfaceConcurrencyOrBuilder- 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:
hasMaxStalenessSecondsin interfaceConcurrencyOrBuilder- 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:
getMaxStalenessSecondsin interfaceConcurrencyOrBuilder- Returns:
- The maxStalenessSeconds.
-
hasExactTimestampMicros
public boolean hasExactTimestampMicros()Indicates a read at a consistent timestamp.
int64 exact_timestamp_micros = 4;- Specified by:
hasExactTimestampMicrosin interfaceConcurrencyOrBuilder- 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:
getExactTimestampMicrosin interfaceConcurrencyOrBuilder- Returns:
- The exactTimestampMicros.
-
hasStrong
public boolean hasStrong()Indicates a strong read, must only be set to true, or unset.
bool strong = 5;- Specified by:
hasStrongin interfaceConcurrencyOrBuilder- 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:
getStrongin interfaceConcurrencyOrBuilder- Returns:
- The strong.
-
hasBatch
public boolean hasBatch()Indicates a batch read, must only be set to true, or unset.
bool batch = 6;- Specified by:
hasBatchin interfaceConcurrencyOrBuilder- 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:
getBatchin interfaceConcurrencyOrBuilder- 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:
getSnapshotEpochReadin interfaceConcurrencyOrBuilder- Returns:
- The snapshotEpochRead.
-
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:
getSnapshotEpochRootTablein interfaceConcurrencyOrBuilder- 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:
getSnapshotEpochRootTableBytesin interfaceConcurrencyOrBuilder- Returns:
- The bytes for snapshotEpochRootTable.
-
getBatchReadTimestampMicros
public long getBatchReadTimestampMicros()Set only when batch is true.
int64 batch_read_timestamp_micros = 9;- Specified by:
getBatchReadTimestampMicrosin interfaceConcurrencyOrBuilder- Returns:
- The batchReadTimestampMicros.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Concurrency parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Concurrency parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Concurrency parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Concurrency.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-