Package com.google.spanner.executor.v1
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Indicates a batch read, must only be set to true, or unset.Set only when batch is true.Indicates a read at a consistent timestamp.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Indicates a boundedly stale read that is at most N seconds stale.Indicates a boundedly stale read that reads at a timestamp >= T.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.Indicates a read at a consistent timestamp that is specified relative to now.Indicates a strong read, must only be set to true, or unset.clone()booleangetBatch()Indicates a batch read, must only be set to true, or unset.longSet only when batch is true.static final com.google.protobuf.Descriptors.Descriptorcom.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Concurrency other) final Concurrency.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBatch(boolean value) Indicates a batch read, must only be set to true, or unset.setBatchReadTimestampMicros(long value) Set only when batch is true.setExactTimestampMicros(long value) Indicates a read at a consistent timestamp.setMaxStalenessSeconds(double value) Indicates a boundedly stale read that is at most N seconds stale.setMinReadTimestampMicros(long value) Indicates a boundedly stale read that reads at a timestamp >= T.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSnapshotEpochRead(boolean value) True if exact_timestamp_micros is set, and the chosen timestamp is that of a snapshot epoch.setSnapshotEpochRootTable(String value) If set, this is a snapshot epoch read constrained to read only the specified log scope root table, and its children.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.setStalenessSeconds(double value) Indicates a read at a consistent timestamp that is specified relative to now.setStrong(boolean value) Indicates a strong read, must only be set to true, or unset.final Concurrency.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Concurrency.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
setField
public Concurrency.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
setRepeatedField
public Concurrency.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
addRepeatedField
public Concurrency.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Concurrency.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Concurrency.Builder>- Throws:
IOException
-
getConcurrencyModeCase
- Specified by:
getConcurrencyModeCasein interfaceConcurrencyOrBuilder
-
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:
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.
-
setStalenessSeconds
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
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:
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.
-
setMinReadTimestampMicros
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
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:
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.
-
setMaxStalenessSeconds
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
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:
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.
-
setExactTimestampMicros
Indicates a read at a consistent timestamp.
int64 exact_timestamp_micros = 4;- Parameters:
value- The exactTimestampMicros to set.- Returns:
- This builder for chaining.
-
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:
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.
-
setStrong
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
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:
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.
-
setBatch
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
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:
getSnapshotEpochReadin interfaceConcurrencyOrBuilder- Returns:
- The snapshotEpochRead.
-
setSnapshotEpochRead
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
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
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.
-
setSnapshotEpochRootTable
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
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
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:
getBatchReadTimestampMicrosin interfaceConcurrencyOrBuilder- Returns:
- The batchReadTimestampMicros.
-
setBatchReadTimestampMicros
Set only when batch is true.
int64 batch_read_timestamp_micros = 9;- Parameters:
value- The batchReadTimestampMicros to set.- Returns:
- This builder for chaining.
-
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-
mergeUnknownFields
public final Concurrency.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Concurrency.Builder>
-