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