public final class QuestCriterion
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 |
|---|
QuestCriterion() |
| Modifier and Type | Method and Description |
|---|---|
QuestCriterion |
clone() |
QuestContribution |
getCompletionContribution()
The total number of times the associated event must be incremented for the player to complete
this quest.
|
QuestContribution |
getCurrentContribution()
The number of increments the player has made toward the completion count event increments
required to complete the quest.
|
java.lang.String |
getEventId()
The ID of the event the criterion corresponds to.
|
QuestContribution |
getInitialPlayerProgress()
The value of the event associated with this quest at the time that the quest was accepted.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
QuestCriterion |
set(java.lang.String fieldName,
java.lang.Object value) |
QuestCriterion |
setCompletionContribution(QuestContribution completionContribution)
The total number of times the associated event must be incremented for the player to complete
this quest.
|
QuestCriterion |
setCurrentContribution(QuestContribution currentContribution)
The number of increments the player has made toward the completion count event increments
required to complete the quest.
|
QuestCriterion |
setEventId(java.lang.String eventId)
The ID of the event the criterion corresponds to.
|
QuestCriterion |
setInitialPlayerProgress(QuestContribution initialPlayerProgress)
The value of the event associated with this quest at the time that the quest was accepted.
|
QuestCriterion |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic QuestContribution getCompletionContribution()
null for nonepublic QuestCriterion setCompletionContribution(QuestContribution completionContribution)
completionContribution - completionContribution or null for nonepublic QuestContribution getCurrentContribution()
null for nonepublic QuestCriterion setCurrentContribution(QuestContribution currentContribution)
currentContribution - currentContribution or null for nonepublic java.lang.String getEventId()
null for nonepublic QuestCriterion setEventId(java.lang.String eventId)
eventId - eventId or null for nonepublic QuestContribution getInitialPlayerProgress()
null for nonepublic QuestCriterion setInitialPlayerProgress(QuestContribution initialPlayerProgress)
initialPlayerProgress - initialPlayerProgress or null for nonepublic java.lang.String getKind()
null for nonepublic QuestCriterion setKind(java.lang.String kind)
kind - kind or null for nonepublic QuestCriterion set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic QuestCriterion clone()
clone in class com.google.api.client.json.GenericJson