public final class TurnBasedMatch
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 |
---|
TurnBasedMatch() |
Modifier and Type | Method and Description |
---|---|
TurnBasedMatch |
clone() |
java.lang.String |
getApplicationId()
The ID of the application being played.
|
TurnBasedAutoMatchingCriteria |
getAutoMatchingCriteria()
Criteria for auto-matching players into this match.
|
TurnBasedMatchModification |
getCreationDetails()
Details about the match creation.
|
TurnBasedMatchData |
getData()
The data / game state for this match.
|
java.lang.String |
getDescription()
This short description is generated by our servers based on turn state and is localized and
worded relative to the player requesting the match.
|
java.lang.String |
getInviterId()
The ID of the participant that invited the user to the match.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
TurnBasedMatchModification |
getLastUpdateDetails()
Details about the last update to the match.
|
java.lang.String |
getMatchId()
Globally unique ID for a turn-based match.
|
java.lang.Integer |
getMatchNumber()
The number of the match in a chain of rematches.
|
java.lang.Integer |
getMatchVersion()
The version of this match: an increasing counter, used to avoid out-of-date updates to the
match.
|
java.util.List<TurnBasedMatchParticipant> |
getParticipants()
The participants involved in the match, along with their statuses.
|
java.lang.String |
getPendingParticipantId()
The ID of the participant that is taking a turn.
|
TurnBasedMatchData |
getPreviousMatchData()
The data / game state for the previous match; set for the first turn of rematches only.
|
java.lang.String |
getRematchId()
The ID of a rematch of this match.
|
java.util.List<ParticipantResult> |
getResults()
The results reported for this match.
|
java.lang.String |
getStatus()
The status of the match.
|
java.lang.String |
getUserMatchStatus()
The status of the current user in the match.
|
java.lang.Integer |
getVariant()
The variant / mode of the application being played; can be any integer value, or left blank.
|
java.lang.String |
getWithParticipantId()
The ID of another participant in the match that can be used when describing the participants
the user is playing with.
|
TurnBasedMatch |
set(java.lang.String fieldName,
java.lang.Object value) |
TurnBasedMatch |
setApplicationId(java.lang.String applicationId)
The ID of the application being played.
|
TurnBasedMatch |
setAutoMatchingCriteria(TurnBasedAutoMatchingCriteria autoMatchingCriteria)
Criteria for auto-matching players into this match.
|
TurnBasedMatch |
setCreationDetails(TurnBasedMatchModification creationDetails)
Details about the match creation.
|
TurnBasedMatch |
setData(TurnBasedMatchData data)
The data / game state for this match.
|
TurnBasedMatch |
setDescription(java.lang.String description)
This short description is generated by our servers based on turn state and is localized and
worded relative to the player requesting the match.
|
TurnBasedMatch |
setInviterId(java.lang.String inviterId)
The ID of the participant that invited the user to the match.
|
TurnBasedMatch |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
TurnBasedMatch |
setLastUpdateDetails(TurnBasedMatchModification lastUpdateDetails)
Details about the last update to the match.
|
TurnBasedMatch |
setMatchId(java.lang.String matchId)
Globally unique ID for a turn-based match.
|
TurnBasedMatch |
setMatchNumber(java.lang.Integer matchNumber)
The number of the match in a chain of rematches.
|
TurnBasedMatch |
setMatchVersion(java.lang.Integer matchVersion)
The version of this match: an increasing counter, used to avoid out-of-date updates to the
match.
|
TurnBasedMatch |
setParticipants(java.util.List<TurnBasedMatchParticipant> participants)
The participants involved in the match, along with their statuses.
|
TurnBasedMatch |
setPendingParticipantId(java.lang.String pendingParticipantId)
The ID of the participant that is taking a turn.
|
TurnBasedMatch |
setPreviousMatchData(TurnBasedMatchData previousMatchData)
The data / game state for the previous match; set for the first turn of rematches only.
|
TurnBasedMatch |
setRematchId(java.lang.String rematchId)
The ID of a rematch of this match.
|
TurnBasedMatch |
setResults(java.util.List<ParticipantResult> results)
The results reported for this match.
|
TurnBasedMatch |
setStatus(java.lang.String status)
The status of the match.
|
TurnBasedMatch |
setUserMatchStatus(java.lang.String userMatchStatus)
The status of the current user in the match.
|
TurnBasedMatch |
setVariant(java.lang.Integer variant)
The variant / mode of the application being played; can be any integer value, or left blank.
|
TurnBasedMatch |
setWithParticipantId(java.lang.String withParticipantId)
The ID of another participant in the match that can be used when describing the participants
the user is playing with.
|
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 getApplicationId()
null
for nonepublic TurnBasedMatch setApplicationId(java.lang.String applicationId)
applicationId
- applicationId or null
for nonepublic TurnBasedAutoMatchingCriteria getAutoMatchingCriteria()
null
for nonepublic TurnBasedMatch setAutoMatchingCriteria(TurnBasedAutoMatchingCriteria autoMatchingCriteria)
autoMatchingCriteria
- autoMatchingCriteria or null
for nonepublic TurnBasedMatchModification getCreationDetails()
null
for nonepublic TurnBasedMatch setCreationDetails(TurnBasedMatchModification creationDetails)
creationDetails
- creationDetails or null
for nonepublic TurnBasedMatchData getData()
null
for nonepublic TurnBasedMatch setData(TurnBasedMatchData data)
data
- data or null
for nonepublic java.lang.String getDescription()
null
for nonepublic TurnBasedMatch setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getInviterId()
null
for nonepublic TurnBasedMatch setInviterId(java.lang.String inviterId)
inviterId
- inviterId or null
for nonepublic java.lang.String getKind()
null
for nonepublic TurnBasedMatch setKind(java.lang.String kind)
kind
- kind or null
for nonepublic TurnBasedMatchModification getLastUpdateDetails()
null
for nonepublic TurnBasedMatch setLastUpdateDetails(TurnBasedMatchModification lastUpdateDetails)
lastUpdateDetails
- lastUpdateDetails or null
for nonepublic java.lang.String getMatchId()
null
for nonepublic TurnBasedMatch setMatchId(java.lang.String matchId)
matchId
- matchId or null
for nonepublic java.lang.Integer getMatchNumber()
null
for nonepublic TurnBasedMatch setMatchNumber(java.lang.Integer matchNumber)
matchNumber
- matchNumber or null
for nonepublic java.lang.Integer getMatchVersion()
null
for nonepublic TurnBasedMatch setMatchVersion(java.lang.Integer matchVersion)
matchVersion
- matchVersion or null
for nonepublic java.util.List<TurnBasedMatchParticipant> getParticipants()
null
for nonepublic TurnBasedMatch setParticipants(java.util.List<TurnBasedMatchParticipant> participants)
participants
- participants or null
for nonepublic java.lang.String getPendingParticipantId()
null
for nonepublic TurnBasedMatch setPendingParticipantId(java.lang.String pendingParticipantId)
pendingParticipantId
- pendingParticipantId or null
for nonepublic TurnBasedMatchData getPreviousMatchData()
null
for nonepublic TurnBasedMatch setPreviousMatchData(TurnBasedMatchData previousMatchData)
previousMatchData
- previousMatchData or null
for nonepublic java.lang.String getRematchId()
null
for nonepublic TurnBasedMatch setRematchId(java.lang.String rematchId)
rematchId
- rematchId or null
for nonepublic java.util.List<ParticipantResult> getResults()
null
for nonepublic TurnBasedMatch setResults(java.util.List<ParticipantResult> results)
results
- results or null
for nonepublic java.lang.String getStatus()
null
for nonepublic TurnBasedMatch setStatus(java.lang.String status)
status
- status or null
for nonepublic java.lang.String getUserMatchStatus()
null
for nonepublic TurnBasedMatch setUserMatchStatus(java.lang.String userMatchStatus)
userMatchStatus
- userMatchStatus or null
for nonepublic java.lang.Integer getVariant()
null
for nonepublic TurnBasedMatch setVariant(java.lang.Integer variant)
variant
- variant or null
for nonepublic java.lang.String getWithParticipantId()
null
for nonepublic TurnBasedMatch setWithParticipantId(java.lang.String withParticipantId)
withParticipantId
- withParticipantId or null
for nonepublic TurnBasedMatch set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TurnBasedMatch clone()
clone
in class com.google.api.client.json.GenericJson