Package com.google.spanner.executor.v1
Interface ConcurrencyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Concurrency,Concurrency.Builder
public interface ConcurrencyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBatch()Indicates a batch read, must only be set to true, or unset.longSet only when batch is true.longIndicates 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.booleanTrue 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.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStalenessSeconds
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;- Returns:
- Whether the stalenessSeconds field is set.
-
getStalenessSeconds
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;- Returns:
- The stalenessSeconds.
-
hasMinReadTimestampMicros
boolean hasMinReadTimestampMicros()Indicates a boundedly stale read that reads at a timestamp >= T.
int64 min_read_timestamp_micros = 2;- Returns:
- Whether the minReadTimestampMicros field is set.
-
getMinReadTimestampMicros
long getMinReadTimestampMicros()Indicates a boundedly stale read that reads at a timestamp >= T.
int64 min_read_timestamp_micros = 2;- Returns:
- The minReadTimestampMicros.
-
hasMaxStalenessSeconds
boolean hasMaxStalenessSeconds()Indicates a boundedly stale read that is at most N seconds stale.
double max_staleness_seconds = 3;- Returns:
- Whether the maxStalenessSeconds field is set.
-
getMaxStalenessSeconds
double getMaxStalenessSeconds()Indicates a boundedly stale read that is at most N seconds stale.
double max_staleness_seconds = 3;- Returns:
- The maxStalenessSeconds.
-
hasExactTimestampMicros
boolean hasExactTimestampMicros()Indicates a read at a consistent timestamp.
int64 exact_timestamp_micros = 4;- Returns:
- Whether the exactTimestampMicros field is set.
-
getExactTimestampMicros
long getExactTimestampMicros()Indicates a read at a consistent timestamp.
int64 exact_timestamp_micros = 4;- Returns:
- The exactTimestampMicros.
-
hasStrong
boolean hasStrong()Indicates a strong read, must only be set to true, or unset.
bool strong = 5;- Returns:
- Whether the strong field is set.
-
getStrong
boolean getStrong()Indicates a strong read, must only be set to true, or unset.
bool strong = 5;- Returns:
- The strong.
-
hasBatch
boolean hasBatch()Indicates a batch read, must only be set to true, or unset.
bool batch = 6;- Returns:
- Whether the batch field is set.
-
getBatch
boolean getBatch()Indicates a batch read, must only be set to true, or unset.
bool batch = 6;- Returns:
- The batch.
-
getSnapshotEpochRead
boolean getSnapshotEpochRead()True if exact_timestamp_micros is set, and the chosen timestamp is that of a snapshot epoch.
bool snapshot_epoch_read = 7;- Returns:
- The snapshotEpochRead.
-
getSnapshotEpochRootTable
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;- Returns:
- The snapshotEpochRootTable.
-
getSnapshotEpochRootTableBytes
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;- Returns:
- The bytes for snapshotEpochRootTable.
-
getBatchReadTimestampMicros
long getBatchReadTimestampMicros()Set only when batch is true.
int64 batch_read_timestamp_micros = 9;- Returns:
- The batchReadTimestampMicros.
-
getConcurrencyModeCase
Concurrency.ConcurrencyModeCase getConcurrencyModeCase()
-