public class Games.Scores.Submit extends GamesRequest<PlayerScoreResponse>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Submit(String leaderboardId,
Long score)
Submits a score to the specified leaderboard.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguage()
The preferred language to use for strings returned by this method.
|
String |
getLeaderboardId()
The ID of the leaderboard.
|
Long |
getScore()
Required.
|
String |
getScoreTag()
Additional information about the score you're submitting.
|
Games.Scores.Submit |
set(String parameterName,
Object value) |
Games.Scores.Submit |
set$Xgafv(String $Xgafv)
V1 error format.
|
Games.Scores.Submit |
setAccessToken(String accessToken)
OAuth access token.
|
Games.Scores.Submit |
setAlt(String alt)
Data format for response.
|
Games.Scores.Submit |
setCallback(String callback)
JSONP
|
Games.Scores.Submit |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Games.Scores.Submit |
setKey(String key)
API key.
|
Games.Scores.Submit |
setLanguage(String language)
The preferred language to use for strings returned by this method.
|
Games.Scores.Submit |
setLeaderboardId(String leaderboardId)
The ID of the leaderboard.
|
Games.Scores.Submit |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Games.Scores.Submit |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Games.Scores.Submit |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Games.Scores.Submit |
setScore(Long score)
Required.
|
Games.Scores.Submit |
setScoreTag(String scoreTag)
Additional information about the score you're submitting.
|
Games.Scores.Submit |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Games.Scores.Submit |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Submit(String leaderboardId, Long score)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Games.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
leaderboardId - The ID of the leaderboard.score - Required. The score you're submitting. The submitted score is ignored if it is worse than a
previously submitted score, where worse depends on the leaderboard sort order. The meaning
of the score value depends on the leaderboard format type. For fixed-point, the score
represents the raw value. For time, the score represents elapsed time in milliseconds. For
currency, the score represents a value in micro units.public Games.Scores.Submit set$Xgafv(String $Xgafv)
GamesRequestset$Xgafv in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setAccessToken(String accessToken)
GamesRequestsetAccessToken in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setAlt(String alt)
GamesRequestsetAlt in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setCallback(String callback)
GamesRequestsetCallback in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setFields(String fields)
GamesRequestsetFields in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setKey(String key)
GamesRequestsetKey in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setOauthToken(String oauthToken)
GamesRequestsetOauthToken in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setPrettyPrint(Boolean prettyPrint)
GamesRequestsetPrettyPrint in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setQuotaUser(String quotaUser)
GamesRequestsetQuotaUser in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setUploadType(String uploadType)
GamesRequestsetUploadType in class GamesRequest<PlayerScoreResponse>public Games.Scores.Submit setUploadProtocol(String uploadProtocol)
GamesRequestsetUploadProtocol in class GamesRequest<PlayerScoreResponse>public String getLeaderboardId()
public Games.Scores.Submit setLeaderboardId(String leaderboardId)
public Long getScore()
public Games.Scores.Submit setScore(Long score)
public String getLanguage()
public Games.Scores.Submit setLanguage(String language)
public String getScoreTag()
public Games.Scores.Submit setScoreTag(String scoreTag)
public Games.Scores.Submit set(String parameterName, Object value)
set in class GamesRequest<PlayerScoreResponse>Copyright © 2011–2025 Google. All rights reserved.