public static final class TransactionOptions.ReadOnly.Builder extends GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder> implements TransactionOptions.ReadOnlyOrBuilder
Message type to initiate a read-only transaction.Protobuf type
google.spanner.v1.TransactionOptions.ReadOnly| Modifier and Type | Method and Description |
|---|---|
TransactionOptions.ReadOnly.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TransactionOptions.ReadOnly |
build() |
TransactionOptions.ReadOnly |
buildPartial() |
TransactionOptions.ReadOnly.Builder |
clear() |
TransactionOptions.ReadOnly.Builder |
clearExactStaleness()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
clearField(Descriptors.FieldDescriptor field) |
TransactionOptions.ReadOnly.Builder |
clearMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
clearMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
TransactionOptions.ReadOnly.Builder |
clearReadTimestamp()
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
clearReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in
the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
|
TransactionOptions.ReadOnly.Builder |
clearStrong()
Read at a timestamp where all previously committed transactions
are visible.
|
TransactionOptions.ReadOnly.Builder |
clearTimestampBound() |
TransactionOptions.ReadOnly.Builder |
clone() |
TransactionOptions.ReadOnly |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Duration |
getExactStaleness()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
Duration.Builder |
getExactStalenessBuilder()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
DurationOrBuilder |
getExactStalenessOrBuilder()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
Duration |
getMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
Duration.Builder |
getMaxStalenessBuilder()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
DurationOrBuilder |
getMaxStalenessOrBuilder()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
Timestamp |
getMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
Timestamp.Builder |
getMinReadTimestampBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TimestampOrBuilder |
getMinReadTimestampOrBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
Timestamp |
getReadTimestamp()
Executes all reads at the given timestamp.
|
Timestamp.Builder |
getReadTimestampBuilder()
Executes all reads at the given timestamp.
|
TimestampOrBuilder |
getReadTimestampOrBuilder()
Executes all reads at the given timestamp.
|
boolean |
getReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in
the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
|
boolean |
getStrong()
Read at a timestamp where all previously committed transactions
are visible.
|
TransactionOptions.ReadOnly.TimestampBoundCase |
getTimestampBoundCase() |
boolean |
hasExactStaleness()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
boolean |
hasMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
boolean |
hasMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
boolean |
hasReadTimestamp()
Executes all reads at the given timestamp.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionOptions.ReadOnly.Builder |
mergeExactStaleness(Duration value)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
TransactionOptions.ReadOnly.Builder |
mergeFrom(Message other) |
TransactionOptions.ReadOnly.Builder |
mergeFrom(TransactionOptions.ReadOnly other) |
TransactionOptions.ReadOnly.Builder |
mergeMaxStaleness(Duration value)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
mergeMinReadTimestamp(Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
mergeReadTimestamp(Timestamp value)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
TransactionOptions.ReadOnly.Builder |
setExactStaleness(Duration.Builder builderForValue)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
setExactStaleness(Duration value)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TransactionOptions.ReadOnly.Builder |
setMaxStaleness(Duration.Builder builderForValue)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
setMaxStaleness(Duration value)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
setMinReadTimestamp(Timestamp.Builder builderForValue)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
setMinReadTimestamp(Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
setReadTimestamp(Timestamp.Builder builderForValue)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
setReadTimestamp(Timestamp value)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TransactionOptions.ReadOnly.Builder |
setReturnReadTimestamp(boolean value)
If true, the Cloud Spanner-selected read timestamp is included in
the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
|
TransactionOptions.ReadOnly.Builder |
setStrong(boolean value)
Read at a timestamp where all previously committed transactions
are visible.
|
TransactionOptions.ReadOnly.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TransactionOptions.ReadOnly build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TransactionOptions.ReadOnly buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TransactionOptions.ReadOnly.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(TransactionOptions.ReadOnly other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>java.io.IOExceptionpublic TransactionOptions.ReadOnly.TimestampBoundCase getTimestampBoundCase()
getTimestampBoundCase in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder clearTimestampBound()
public boolean getStrong()
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;getStrong in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setStrong(boolean value)
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;public TransactionOptions.ReadOnly.Builder clearStrong()
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;public boolean hasMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;hasMinReadTimestamp in interface TransactionOptions.ReadOnlyOrBuilderpublic Timestamp getMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;getMinReadTimestamp in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setMinReadTimestamp(Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;public TransactionOptions.ReadOnly.Builder setMinReadTimestamp(Timestamp.Builder builderForValue)
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;public TransactionOptions.ReadOnly.Builder mergeMinReadTimestamp(Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;public TransactionOptions.ReadOnly.Builder clearMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;public Timestamp.Builder getMinReadTimestampBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;public TimestampOrBuilder getMinReadTimestampOrBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp min_read_timestamp = 2;getMinReadTimestampOrBuilder in interface TransactionOptions.ReadOnlyOrBuilderpublic boolean hasMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;hasMaxStaleness in interface TransactionOptions.ReadOnlyOrBuilderpublic Duration getMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;getMaxStaleness in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setMaxStaleness(Duration value)
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;public TransactionOptions.ReadOnly.Builder setMaxStaleness(Duration.Builder builderForValue)
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;public TransactionOptions.ReadOnly.Builder mergeMaxStaleness(Duration value)
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;public TransactionOptions.ReadOnly.Builder clearMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;public Duration.Builder getMaxStalenessBuilder()
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;public DurationOrBuilder getMaxStalenessOrBuilder()
Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.
.google.protobuf.Duration max_staleness = 3;getMaxStalenessOrBuilder in interface TransactionOptions.ReadOnlyOrBuilderpublic boolean hasReadTimestamp()
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;hasReadTimestamp in interface TransactionOptions.ReadOnlyOrBuilderpublic Timestamp getReadTimestamp()
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;getReadTimestamp in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setReadTimestamp(Timestamp value)
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;public TransactionOptions.ReadOnly.Builder setReadTimestamp(Timestamp.Builder builderForValue)
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;public TransactionOptions.ReadOnly.Builder mergeReadTimestamp(Timestamp value)
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;public TransactionOptions.ReadOnly.Builder clearReadTimestamp()
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;public Timestamp.Builder getReadTimestampBuilder()
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;public TimestampOrBuilder getReadTimestampOrBuilder()
Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
.google.protobuf.Timestamp read_timestamp = 4;getReadTimestampOrBuilder in interface TransactionOptions.ReadOnlyOrBuilderpublic boolean hasExactStaleness()
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;hasExactStaleness in interface TransactionOptions.ReadOnlyOrBuilderpublic Duration getExactStaleness()
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;getExactStaleness in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setExactStaleness(Duration value)
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;public TransactionOptions.ReadOnly.Builder setExactStaleness(Duration.Builder builderForValue)
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;public TransactionOptions.ReadOnly.Builder mergeExactStaleness(Duration value)
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;public TransactionOptions.ReadOnly.Builder clearExactStaleness()
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;public Duration.Builder getExactStalenessBuilder()
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;public DurationOrBuilder getExactStalenessOrBuilder()
Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.
.google.protobuf.Duration exact_staleness = 5;getExactStalenessOrBuilder in interface TransactionOptions.ReadOnlyOrBuilderpublic boolean getReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
bool return_read_timestamp = 6;getReturnReadTimestamp in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder setReturnReadTimestamp(boolean value)
If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
bool return_read_timestamp = 6;public TransactionOptions.ReadOnly.Builder clearReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
bool return_read_timestamp = 6;public final TransactionOptions.ReadOnly.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public final TransactionOptions.ReadOnly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>