public final class ReadWrite
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 Datastore 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 |
---|
ReadWrite() |
Modifier and Type | Method and Description |
---|---|
ReadWrite |
clone() |
byte[] |
decodePreviousTransaction()
The transaction identifier of the transaction being retried.
|
ReadWrite |
encodePreviousTransaction(byte[] previousTransaction)
The transaction identifier of the transaction being retried.
|
java.lang.String |
getPreviousTransaction()
The transaction identifier of the transaction being retried.
|
ReadWrite |
set(java.lang.String fieldName,
java.lang.Object value) |
ReadWrite |
setPreviousTransaction(java.lang.String previousTransaction)
The transaction identifier of the transaction being retried.
|
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 getPreviousTransaction()
null
for nonedecodePreviousTransaction()
public byte[] decodePreviousTransaction()
null
for nonegetPreviousTransaction()
public ReadWrite setPreviousTransaction(java.lang.String previousTransaction)
previousTransaction
- previousTransaction or null
for none#encodePreviousTransaction()
public ReadWrite encodePreviousTransaction(byte[] previousTransaction)
The value is encoded Base64 or {@code null} for none.
public ReadWrite set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ReadWrite clone()
clone
in class com.google.api.client.json.GenericJson