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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ReadOnly() |
Modifier and Type | Method and Description |
---|---|
ReadOnly |
clone() |
String |
getExactStaleness()
Executes all reads at a timestamp that is `exact_staleness` old.
|
String |
getMaxStaleness()
Read data at a timestamp >= `NOW - max_staleness` seconds.
|
String |
getMinReadTimestamp()
Executes all reads at a timestamp >= `min_read_timestamp`.
|
String |
getReadTimestamp()
Executes all reads at the given timestamp.
|
Boolean |
getReturnReadTimestamp()
If true, the Cloud Spanner-selected read timestamp is included in the Transaction message that
describes the transaction.
|
Boolean |
getStrong()
Read at a timestamp where all previously committed transactions are visible.
|
ReadOnly |
set(String fieldName,
Object value) |
ReadOnly |
setExactStaleness(String exactStaleness)
Executes all reads at a timestamp that is `exact_staleness` old.
|
ReadOnly |
setMaxStaleness(String maxStaleness)
Read data at a timestamp >= `NOW - max_staleness` seconds.
|
ReadOnly |
setMinReadTimestamp(String minReadTimestamp)
Executes all reads at a timestamp >= `min_read_timestamp`.
|
ReadOnly |
setReadTimestamp(String readTimestamp)
Executes all reads at the given timestamp.
|
ReadOnly |
setReturnReadTimestamp(Boolean returnReadTimestamp)
If true, the Cloud Spanner-selected read timestamp is included in the Transaction message that
describes the transaction.
|
ReadOnly |
setStrong(Boolean strong)
Read at a timestamp where all previously committed transactions are visible.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getExactStaleness()
null
for nonepublic ReadOnly setExactStaleness(String exactStaleness)
exactStaleness
- exactStaleness or null
for nonepublic String getMaxStaleness()
null
for nonepublic ReadOnly setMaxStaleness(String maxStaleness)
maxStaleness
- maxStaleness or null
for nonepublic String getMinReadTimestamp()
null
for nonepublic ReadOnly setMinReadTimestamp(String minReadTimestamp)
minReadTimestamp
- minReadTimestamp or null
for nonepublic String getReadTimestamp()
null
for nonepublic ReadOnly setReadTimestamp(String readTimestamp)
readTimestamp
- readTimestamp or null
for nonepublic Boolean getReturnReadTimestamp()
null
for nonepublic ReadOnly setReturnReadTimestamp(Boolean returnReadTimestamp)
returnReadTimestamp
- returnReadTimestamp or null
for nonepublic Boolean getStrong()
null
for nonepublic ReadOnly setStrong(Boolean strong)
strong
- strong or null
for nonepublic ReadOnly set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ReadOnly clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.