public static final class TransactionOptions.ReadOnly.Builder extends com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getExactStaleness()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
com.google.protobuf.Duration.Builder |
getExactStalenessBuilder()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
com.google.protobuf.DurationOrBuilder |
getExactStalenessOrBuilder()
Executes all reads at a timestamp that is `exact_staleness`
old.
|
com.google.protobuf.Duration |
getMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
com.google.protobuf.Duration.Builder |
getMaxStalenessBuilder()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
com.google.protobuf.DurationOrBuilder |
getMaxStalenessOrBuilder()
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
com.google.protobuf.Timestamp |
getMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
com.google.protobuf.Timestamp.Builder |
getMinReadTimestampBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
com.google.protobuf.TimestampOrBuilder |
getMinReadTimestampOrBuilder()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
com.google.protobuf.Timestamp |
getReadTimestamp()
Executes all reads at the given timestamp.
|
com.google.protobuf.Timestamp.Builder |
getReadTimestampBuilder()
Executes all reads at the given timestamp.
|
com.google.protobuf.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.
|
boolean |
hasStrong()
Read at a timestamp where all previously committed transactions
are visible.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionOptions.ReadOnly.Builder |
mergeExactStaleness(com.google.protobuf.Duration value)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionOptions.ReadOnly.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionOptions.ReadOnly.Builder |
mergeFrom(TransactionOptions.ReadOnly other) |
TransactionOptions.ReadOnly.Builder |
mergeMaxStaleness(com.google.protobuf.Duration value)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
mergeMinReadTimestamp(com.google.protobuf.Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
mergeReadTimestamp(com.google.protobuf.Timestamp value)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionOptions.ReadOnly.Builder |
setExactStaleness(com.google.protobuf.Duration.Builder builderForValue)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
setExactStaleness(com.google.protobuf.Duration value)
Executes all reads at a timestamp that is `exact_staleness`
old.
|
TransactionOptions.ReadOnly.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionOptions.ReadOnly.Builder |
setMaxStaleness(com.google.protobuf.Duration.Builder builderForValue)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
setMaxStaleness(com.google.protobuf.Duration value)
Read data at a timestamp >= `NOW - max_staleness`
seconds.
|
TransactionOptions.ReadOnly.Builder |
setMinReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
setMinReadTimestamp(com.google.protobuf.Timestamp value)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
TransactionOptions.ReadOnly.Builder |
setReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
setReadTimestamp(com.google.protobuf.Timestamp value)
Executes all reads at the given timestamp.
|
TransactionOptions.ReadOnly.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
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(com.google.protobuf.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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransactionOptions.ReadOnly build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransactionOptions.ReadOnly buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransactionOptions.ReadOnly.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(TransactionOptions.ReadOnly other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public TransactionOptions.ReadOnly.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>IOExceptionpublic TransactionOptions.ReadOnly.TimestampBoundCase getTimestampBoundCase()
getTimestampBoundCase in interface TransactionOptions.ReadOnlyOrBuilderpublic TransactionOptions.ReadOnly.Builder clearTimestampBound()
public boolean hasStrong()
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;hasStrong in interface TransactionOptions.ReadOnlyOrBuilderpublic 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;value - The strong to set.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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;value - The returnReadTimestamp to set.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>public final TransactionOptions.ReadOnly.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>Copyright © 2022 Google LLC. All rights reserved.