Package com.google.spanner.v1
Class TransactionOptions.ReadOnly.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegoogle.spanner.v1.TransactionOptions.ReadOnly
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionOptions.ReadOnly.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionOptions.ReadOnlybuild()TransactionOptions.ReadOnlybuildPartial()TransactionOptions.ReadOnly.Builderclear()TransactionOptions.ReadOnly.BuilderclearExactStaleness()Executes all reads at a timestamp that is `exact_staleness` old.TransactionOptions.ReadOnly.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransactionOptions.ReadOnly.BuilderclearMaxStaleness()Read data at a timestamp >= `NOW - max_staleness` seconds.TransactionOptions.ReadOnly.BuilderclearMinReadTimestamp()Executes all reads at a timestamp >= `min_read_timestamp`.TransactionOptions.ReadOnly.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransactionOptions.ReadOnly.BuilderclearReadTimestamp()Executes all reads at the given timestamp.TransactionOptions.ReadOnly.BuilderclearReturnReadTimestamp()If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.TransactionOptions.ReadOnly.BuilderclearStrong()Read at a timestamp where all previously committed transactions are visible.TransactionOptions.ReadOnly.BuilderclearTimestampBound()TransactionOptions.ReadOnly.Builderclone()TransactionOptions.ReadOnlygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetExactStaleness()Executes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.Duration.BuildergetExactStalenessBuilder()Executes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.DurationOrBuildergetExactStalenessOrBuilder()Executes all reads at a timestamp that is `exact_staleness` old.com.google.protobuf.DurationgetMaxStaleness()Read data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.Duration.BuildergetMaxStalenessBuilder()Read data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.DurationOrBuildergetMaxStalenessOrBuilder()Read data at a timestamp >= `NOW - max_staleness` seconds.com.google.protobuf.TimestampgetMinReadTimestamp()Executes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.Timestamp.BuildergetMinReadTimestampBuilder()Executes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.TimestampOrBuildergetMinReadTimestampOrBuilder()Executes all reads at a timestamp >= `min_read_timestamp`.com.google.protobuf.TimestampgetReadTimestamp()Executes all reads at the given timestamp.com.google.protobuf.Timestamp.BuildergetReadTimestampBuilder()Executes all reads at the given timestamp.com.google.protobuf.TimestampOrBuildergetReadTimestampOrBuilder()Executes all reads at the given timestamp.booleangetReturnReadTimestamp()If true, the Cloud Spanner-selected read timestamp is included in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.booleangetStrong()Read at a timestamp where all previously committed transactions are visible.TransactionOptions.ReadOnly.TimestampBoundCasegetTimestampBoundCase()booleanhasExactStaleness()Executes all reads at a timestamp that is `exact_staleness` old.booleanhasMaxStaleness()Read data at a timestamp >= `NOW - max_staleness` seconds.booleanhasMinReadTimestamp()Executes all reads at a timestamp >= `min_read_timestamp`.booleanhasReadTimestamp()Executes all reads at the given timestamp.booleanhasStrong()Read at a timestamp where all previously committed transactions are visible.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransactionOptions.ReadOnly.BuildermergeExactStaleness(com.google.protobuf.Duration value)Executes all reads at a timestamp that is `exact_staleness` old.TransactionOptions.ReadOnly.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransactionOptions.ReadOnly.BuildermergeFrom(com.google.protobuf.Message other)TransactionOptions.ReadOnly.BuildermergeFrom(TransactionOptions.ReadOnly other)TransactionOptions.ReadOnly.BuildermergeMaxStaleness(com.google.protobuf.Duration value)Read data at a timestamp >= `NOW - max_staleness` seconds.TransactionOptions.ReadOnly.BuildermergeMinReadTimestamp(com.google.protobuf.Timestamp value)Executes all reads at a timestamp >= `min_read_timestamp`.TransactionOptions.ReadOnly.BuildermergeReadTimestamp(com.google.protobuf.Timestamp value)Executes all reads at the given timestamp.TransactionOptions.ReadOnly.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionOptions.ReadOnly.BuildersetExactStaleness(com.google.protobuf.Duration value)Executes all reads at a timestamp that is `exact_staleness` old.TransactionOptions.ReadOnly.BuildersetExactStaleness(com.google.protobuf.Duration.Builder builderForValue)Executes all reads at a timestamp that is `exact_staleness` old.TransactionOptions.ReadOnly.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionOptions.ReadOnly.BuildersetMaxStaleness(com.google.protobuf.Duration value)Read data at a timestamp >= `NOW - max_staleness` seconds.TransactionOptions.ReadOnly.BuildersetMaxStaleness(com.google.protobuf.Duration.Builder builderForValue)Read data at a timestamp >= `NOW - max_staleness` seconds.TransactionOptions.ReadOnly.BuildersetMinReadTimestamp(com.google.protobuf.Timestamp value)Executes all reads at a timestamp >= `min_read_timestamp`.TransactionOptions.ReadOnly.BuildersetMinReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)Executes all reads at a timestamp >= `min_read_timestamp`.TransactionOptions.ReadOnly.BuildersetReadTimestamp(com.google.protobuf.Timestamp value)Executes all reads at the given timestamp.TransactionOptions.ReadOnly.BuildersetReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)Executes all reads at the given timestamp.TransactionOptions.ReadOnly.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransactionOptions.ReadOnly.BuildersetReturnReadTimestamp(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.BuildersetStrong(boolean value)Read at a timestamp where all previously committed transactions are visible.TransactionOptions.ReadOnly.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public TransactionOptions.ReadOnly getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionOptions.ReadOnly build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionOptions.ReadOnly buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionOptions.ReadOnly.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
public TransactionOptions.ReadOnly.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionOptions.ReadOnly.Builder>
-
mergeFrom
public TransactionOptions.ReadOnly.Builder mergeFrom(TransactionOptions.ReadOnly other)
-
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
public TransactionOptions.ReadOnly.TimestampBoundCase getTimestampBoundCase()
- Specified by:
getTimestampBoundCasein interfaceTransactionOptions.ReadOnlyOrBuilder
-
clearTimestampBound
public TransactionOptions.ReadOnly.Builder 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
public TransactionOptions.ReadOnly.Builder setStrong(boolean value)
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
public TransactionOptions.ReadOnly.Builder 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
public 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;
-
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
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;
-
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
public 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;
-
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
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;
-
clearMaxStaleness
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;
-
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
public 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;
-
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
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;
-
clearReadTimestamp
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;
-
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
public 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;
-
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
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;
-
clearExactStaleness
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;
-
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
public 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;- Parameters:
value- The returnReadTimestamp to set.- Returns:
- This builder for chaining.
-
clearReturnReadTimestamp
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;- 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>
-
-