public final class Player
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 Games Services API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Player.Name
A representation of the individual components of the name.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
Player |
clone() |
String |
getAvatarImageUrl()
The base URL for the image that represents the player.
|
String |
getBannerUrlLandscape()
The url to the landscape mode player banner image.
|
String |
getBannerUrlPortrait()
The url to the portrait mode player banner image.
|
String |
getDisplayName()
The name to display for the player.
|
PlayerExperienceInfo |
getExperienceInfo()
An object to represent Play Game experience information for the player.
|
String |
getFriendStatus()
The friend status of the given player, relative to the requester.
|
String |
getGamePlayerId()
Per-application unique player identifier.
|
String |
getKind()
Uniquely identifies the type of this resource.
|
Player.Name |
getName()
A representation of the individual components of the name.
|
String |
getOriginalPlayerId()
The player ID that was used for this player the first time they signed into the game in
question.
|
String |
getPlayerId()
The ID of the player.
|
ProfileSettings |
getProfileSettings()
The player's profile settings.
|
String |
getTitle()
The player's title rewarded for their game activities.
|
Player |
set(String fieldName,
Object value) |
Player |
setAvatarImageUrl(String avatarImageUrl)
The base URL for the image that represents the player.
|
Player |
setBannerUrlLandscape(String bannerUrlLandscape)
The url to the landscape mode player banner image.
|
Player |
setBannerUrlPortrait(String bannerUrlPortrait)
The url to the portrait mode player banner image.
|
Player |
setDisplayName(String displayName)
The name to display for the player.
|
Player |
setExperienceInfo(PlayerExperienceInfo experienceInfo)
An object to represent Play Game experience information for the player.
|
Player |
setFriendStatus(String friendStatus)
The friend status of the given player, relative to the requester.
|
Player |
setGamePlayerId(String gamePlayerId)
Per-application unique player identifier.
|
Player |
setKind(String kind)
Uniquely identifies the type of this resource.
|
Player |
setName(Player.Name name)
A representation of the individual components of the name.
|
Player |
setOriginalPlayerId(String originalPlayerId)
The player ID that was used for this player the first time they signed into the game in
question.
|
Player |
setPlayerId(String playerId)
The ID of the player.
|
Player |
setProfileSettings(ProfileSettings profileSettings)
The player's profile settings.
|
Player |
setTitle(String title)
The player's title rewarded for their game activities.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAvatarImageUrl()
null for nonepublic Player setAvatarImageUrl(String avatarImageUrl)
avatarImageUrl - avatarImageUrl or null for nonepublic String getBannerUrlLandscape()
null for nonepublic Player setBannerUrlLandscape(String bannerUrlLandscape)
bannerUrlLandscape - bannerUrlLandscape or null for nonepublic String getBannerUrlPortrait()
null for nonepublic Player setBannerUrlPortrait(String bannerUrlPortrait)
bannerUrlPortrait - bannerUrlPortrait or null for nonepublic String getDisplayName()
null for nonepublic Player setDisplayName(String displayName)
displayName - displayName or null for nonepublic PlayerExperienceInfo getExperienceInfo()
null for nonepublic Player setExperienceInfo(PlayerExperienceInfo experienceInfo)
experienceInfo - experienceInfo or null for nonepublic String getFriendStatus()
null for nonepublic Player setFriendStatus(String friendStatus)
friendStatus - friendStatus or null for nonepublic String getGamePlayerId()
null for nonepublic Player setGamePlayerId(String gamePlayerId)
gamePlayerId - gamePlayerId or null for nonepublic String getKind()
null for nonepublic Player setKind(String kind)
kind - kind or null for nonepublic Player.Name getName()
null for nonepublic Player setName(Player.Name name)
name - name or null for nonepublic String getOriginalPlayerId()
null for nonepublic Player setOriginalPlayerId(String originalPlayerId)
originalPlayerId - originalPlayerId or null for nonepublic String getPlayerId()
null for nonepublic Player setPlayerId(String playerId)
playerId - playerId or null for nonepublic ProfileSettings getProfileSettings()
null for nonepublic Player setProfileSettings(ProfileSettings profileSettings)
profileSettings - profileSettings or null for nonepublic String getTitle()
null for nonepublic Player setTitle(String title)
title - title or null for nonepublic Player set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Player clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.