public final class ReadOnly
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ReadOnly() |
Modifier and Type | Method and Description |
---|---|
ReadOnly |
clone() |
java.lang.String |
getExactStaleness()
Executes all reads at a timestamp that is `exact_staleness` old.
|
java.lang.String |
getMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness` seconds.
|
java.lang.String |
getMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
java.lang.String |
getReadTimestamp()
Executes all reads at the given timestamp.
|
java.lang.Boolean |
getReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in the Transaction message that
describes the transaction.
|
java.lang.Boolean |
getStrong()
Read at a timestamp where all previously committed transactions are visible.
|
ReadOnly |
set(java.lang.String fieldName,
java.lang.Object value) |
ReadOnly |
setExactStaleness(java.lang.String exactStaleness)
Executes all reads at a timestamp that is `exact_staleness` old.
|
ReadOnly |
setMaxStaleness(java.lang.String maxStaleness)
Read data at a timestamp >= `NOW - max_staleness` seconds.
|
ReadOnly |
setMinReadTimestamp(java.lang.String minReadTimestamp)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
ReadOnly |
setReadTimestamp(java.lang.String readTimestamp)
Executes all reads at the given timestamp.
|
ReadOnly |
setReturnReadTimestamp(java.lang.Boolean returnReadTimestamp)
If true, the Cloud Spanner-selected read timestamp is included in the Transaction message that
describes the transaction.
|
ReadOnly |
setStrong(java.lang.Boolean strong)
Read at a timestamp where all previously committed transactions are visible.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getExactStaleness()
null
for nonepublic ReadOnly setExactStaleness(java.lang.String exactStaleness)
exactStaleness
- exactStaleness or null
for nonepublic java.lang.String getMaxStaleness()
null
for nonepublic ReadOnly setMaxStaleness(java.lang.String maxStaleness)
maxStaleness
- maxStaleness or null
for nonepublic java.lang.String getMinReadTimestamp()
null
for nonepublic ReadOnly setMinReadTimestamp(java.lang.String minReadTimestamp)
minReadTimestamp
- minReadTimestamp or null
for nonepublic java.lang.String getReadTimestamp()
null
for nonepublic ReadOnly setReadTimestamp(java.lang.String readTimestamp)
readTimestamp
- readTimestamp or null
for nonepublic java.lang.Boolean getReturnReadTimestamp()
null
for nonepublic ReadOnly setReturnReadTimestamp(java.lang.Boolean returnReadTimestamp)
returnReadTimestamp
- returnReadTimestamp or null
for nonepublic java.lang.Boolean getStrong()
null
for nonepublic ReadOnly setStrong(java.lang.Boolean strong)
strong
- strong or null
for nonepublic ReadOnly set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ReadOnly clone()
clone
in class com.google.api.client.json.GenericJson