public final class TurnBasedMatchData
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 Google Play Game Services 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 |
---|
TurnBasedMatchData() |
Modifier and Type | Method and Description |
---|---|
TurnBasedMatchData |
clone() |
byte[] |
decodeData()
The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the
URL_SAFE encoding option.
|
TurnBasedMatchData |
encodeData(byte[] data)
The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the
URL_SAFE encoding option.
|
java.lang.String |
getData()
The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the
URL_SAFE encoding option.
|
java.lang.Boolean |
getDataAvailable()
True if this match has data available but it wasn't returned in a list response; fetching the
match individually will retrieve this data.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
TurnBasedMatchData |
set(java.lang.String fieldName,
java.lang.Object value) |
TurnBasedMatchData |
setData(java.lang.String data)
The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the
URL_SAFE encoding option.
|
TurnBasedMatchData |
setDataAvailable(java.lang.Boolean dataAvailable)
True if this match has data available but it wasn't returned in a list response; fetching the
match individually will retrieve this data.
|
TurnBasedMatchData |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
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 getData()
null
for nonedecodeData()
public byte[] decodeData()
null
for nonegetData()
public TurnBasedMatchData setData(java.lang.String data)
data
- data or null
for none#encodeData()
public TurnBasedMatchData encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public java.lang.Boolean getDataAvailable()
null
for nonepublic TurnBasedMatchData setDataAvailable(java.lang.Boolean dataAvailable)
dataAvailable
- dataAvailable or null
for nonepublic java.lang.String getKind()
null
for nonepublic TurnBasedMatchData setKind(java.lang.String kind)
kind
- kind or null
for nonepublic TurnBasedMatchData set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TurnBasedMatchData clone()
clone
in class com.google.api.client.json.GenericJson