Package com.google.spanner.v1
Class TransactionOptions.ReadOnly.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
com.google.spanner.v1.TransactionOptions.ReadOnly.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionOptions.ReadOnlyOrBuilder,Cloneable
- Enclosing class:
- TransactionOptions.ReadOnly
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Executes all reads at a timestamp that is `exact_staleness` old.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Read data at a timestamp >= `NOW - max_staleness` seconds.Executes all reads at a timestamp >= `min_read_timestamp`.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Executes all reads at the given timestamp.If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.Read at a timestamp where all previously committed transactions are visible.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationExecutes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.Duration.BuilderExecutes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.DurationOrBuilderExecutes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.DurationRead data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.Duration.BuilderRead data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.DurationOrBuilderRead data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.TimestampExecutes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.Timestamp.BuilderExecutes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.TimestampOrBuilderExecutes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.TimestampExecutes all reads at the given timestamp.com.google.protobuf.Timestamp.BuilderExecutes all reads at the given timestamp.com.google.protobuf.TimestampOrBuilderExecutes all reads at the given timestamp.booleanIf true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.booleanRead at a timestamp where all previously committed transactions are visible.booleanExecutes all reads at a timestamp that is `exact_staleness` old.booleanRead data at a timestamp >= `NOW - max_staleness` seconds.booleanExecutes all reads at a timestamp >= `min_read_timestamp`.booleanExecutes all reads at the given timestamp.booleanRead at a timestamp where all previously committed transactions are visible.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeExactStaleness(com.google.protobuf.Duration value) Executes all reads at a timestamp that is `exact_staleness` old.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxStaleness(com.google.protobuf.Duration value) Read data at a timestamp >= `NOW - max_staleness` seconds.mergeMinReadTimestamp(com.google.protobuf.Timestamp value) Executes all reads at a timestamp >= `min_read_timestamp`.mergeReadTimestamp(com.google.protobuf.Timestamp value) Executes all reads at the given timestamp.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExactStaleness(com.google.protobuf.Duration value) Executes all reads at a timestamp that is `exact_staleness` old.setExactStaleness(com.google.protobuf.Duration.Builder builderForValue) Executes all reads at a timestamp that is `exact_staleness` old.setMaxStaleness(com.google.protobuf.Duration value) Read data at a timestamp >= `NOW - max_staleness` seconds.setMaxStaleness(com.google.protobuf.Duration.Builder builderForValue) Read data at a timestamp >= `NOW - max_staleness` seconds.setMinReadTimestamp(com.google.protobuf.Timestamp value) Executes all reads at a timestamp >= `min_read_timestamp`.setMinReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Executes all reads at a timestamp >= `min_read_timestamp`.setReadTimestamp(com.google.protobuf.Timestamp value) Executes all reads at the given timestamp.setReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Executes all reads at the given timestamp.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.setStrong(boolean value) Read at a timestamp where all previously committed transactions are visible.setUnknownFields(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<TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.Builder>
-
setField
public TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.Builder>
-
clearField
public TransactionOptions.ReadOnly.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
-
clearOneof
public TransactionOptions.ReadOnly.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
-
setRepeatedField
public TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.Builder>
-
addRepeatedField
public TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
-
mergeFrom
public TransactionOptions.ReadOnly.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<TransactionOptions.ReadOnly.Builder>- Throws:
IOException
-
getTimestampBoundCase
- Specified by:
getTimestampBoundCasein interfaceTransactionOptions.ReadOnlyOrBuilder
-
clearTimestampBound
-
hasStrong
public boolean hasStrong()Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;- Specified by:
hasStrongin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- Whether the strong field is set.
-
getStrong
public boolean getStrong()Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;- Specified by:
getStrongin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The strong.
-
setStrong
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;- Parameters:
value- The strong to set.- Returns:
- This builder for chaining.
-
clearStrong
Read at a timestamp where all previously committed transactions are visible.
bool strong = 1;- Returns:
- This builder for chaining.
-
hasMinReadTimestamp
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;- Specified by:
hasMinReadTimestampin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- Whether the minReadTimestamp field is set.
-
getMinReadTimestamp
public 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;- Specified by:
getMinReadTimestampin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The minReadTimestamp.
-
setMinReadTimestamp
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; -
setMinReadTimestamp
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; -
mergeMinReadTimestamp
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; -
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; -
getMinReadTimestampBuilder
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; -
getMinReadTimestampOrBuilder
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;- Specified by:
getMinReadTimestampOrBuilderin interfaceTransactionOptions.ReadOnlyOrBuilder
-
hasMaxStaleness
public 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;- Specified by:
hasMaxStalenessin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- Whether the maxStaleness field is set.
-
getMaxStaleness
public 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;- Specified by:
getMaxStalenessin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The maxStaleness.
-
setMaxStaleness
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; -
setMaxStaleness
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; -
mergeMaxStaleness
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; -
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; -
getMaxStalenessBuilder
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; -
getMaxStalenessOrBuilder
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;- Specified by:
getMaxStalenessOrBuilderin interfaceTransactionOptions.ReadOnlyOrBuilder
-
hasReadTimestamp
public 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;- Specified by:
hasReadTimestampin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- Whether the readTimestamp field is set.
-
getReadTimestamp
public 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;- Specified by:
getReadTimestampin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The readTimestamp.
-
setReadTimestamp
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; -
setReadTimestamp
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; -
mergeReadTimestamp
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; -
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; -
getReadTimestampBuilder
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; -
getReadTimestampOrBuilder
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;- Specified by:
getReadTimestampOrBuilderin interfaceTransactionOptions.ReadOnlyOrBuilder
-
hasExactStaleness
public 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;- Specified by:
hasExactStalenessin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- Whether the exactStaleness field is set.
-
getExactStaleness
public 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;- Specified by:
getExactStalenessin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The exactStaleness.
-
setExactStaleness
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; -
setExactStaleness
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; -
mergeExactStaleness
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; -
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; -
getExactStalenessBuilder
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; -
getExactStalenessOrBuilder
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;- Specified by:
getExactStalenessOrBuilderin interfaceTransactionOptions.ReadOnlyOrBuilder
-
getReturnReadTimestamp
public 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;- Specified by:
getReturnReadTimestampin interfaceTransactionOptions.ReadOnlyOrBuilder- Returns:
- The returnReadTimestamp.
-
setReturnReadTimestamp
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;- Parameters:
value- The returnReadTimestamp to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TransactionOptions.ReadOnly.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
-
mergeUnknownFields
public final TransactionOptions.ReadOnly.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder>
-