public final class RoomParticipant
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 |
---|
RoomParticipant() |
Modifier and Type | Method and Description |
---|---|
RoomParticipant |
clone() |
java.lang.Boolean |
getAutoMatched()
True if this participant was auto-matched with the requesting player.
|
AnonymousPlayer |
getAutoMatchedPlayer()
Information about a player that has been anonymously auto-matched against the requesting
player.
|
java.util.List<java.lang.String> |
getCapabilities()
The capabilities which can be used when communicating with this participant.
|
RoomClientAddress |
getClientAddress()
Client address for the participant.
|
java.lang.Boolean |
getConnected()
True if this participant is in the fully connected set of peers in the room.
|
java.lang.String |
getId()
An identifier for the participant in the scope of the room.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
java.lang.String |
getLeaveReason()
The reason the participant left the room; populated if the participant status is
PARTICIPANT_LEFT.
|
Player |
getPlayer()
Information about the player.
|
java.lang.String |
getStatus()
The status of the participant with respect to the room.
|
RoomParticipant |
set(java.lang.String fieldName,
java.lang.Object value) |
RoomParticipant |
setAutoMatched(java.lang.Boolean autoMatched)
True if this participant was auto-matched with the requesting player.
|
RoomParticipant |
setAutoMatchedPlayer(AnonymousPlayer autoMatchedPlayer)
Information about a player that has been anonymously auto-matched against the requesting
player.
|
RoomParticipant |
setCapabilities(java.util.List<java.lang.String> capabilities)
The capabilities which can be used when communicating with this participant.
|
RoomParticipant |
setClientAddress(RoomClientAddress clientAddress)
Client address for the participant.
|
RoomParticipant |
setConnected(java.lang.Boolean connected)
True if this participant is in the fully connected set of peers in the room.
|
RoomParticipant |
setId(java.lang.String id)
An identifier for the participant in the scope of the room.
|
RoomParticipant |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
RoomParticipant |
setLeaveReason(java.lang.String leaveReason)
The reason the participant left the room; populated if the participant status is
PARTICIPANT_LEFT.
|
RoomParticipant |
setPlayer(Player player)
Information about the player.
|
RoomParticipant |
setStatus(java.lang.String status)
The status of the participant with respect to the room.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getAutoMatched()
null
for nonepublic RoomParticipant setAutoMatched(java.lang.Boolean autoMatched)
autoMatched
- autoMatched or null
for nonepublic AnonymousPlayer getAutoMatchedPlayer()
null
for nonepublic RoomParticipant setAutoMatchedPlayer(AnonymousPlayer autoMatchedPlayer)
autoMatchedPlayer
- autoMatchedPlayer or null
for nonepublic java.util.List<java.lang.String> getCapabilities()
null
for nonepublic RoomParticipant setCapabilities(java.util.List<java.lang.String> capabilities)
capabilities
- capabilities or null
for nonepublic RoomClientAddress getClientAddress()
null
for nonepublic RoomParticipant setClientAddress(RoomClientAddress clientAddress)
clientAddress
- clientAddress or null
for nonepublic java.lang.Boolean getConnected()
null
for nonepublic RoomParticipant setConnected(java.lang.Boolean connected)
connected
- connected or null
for nonepublic java.lang.String getId()
null
for nonepublic RoomParticipant setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic RoomParticipant setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getLeaveReason()
null
for nonepublic RoomParticipant setLeaveReason(java.lang.String leaveReason)
leaveReason
- leaveReason or null
for nonepublic Player getPlayer()
null
for nonepublic RoomParticipant setPlayer(Player player)
player
- player or null
for nonepublic java.lang.String getStatus()
null
for nonepublic RoomParticipant setStatus(java.lang.String status)
status
- status or null
for nonepublic RoomParticipant set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public RoomParticipant clone()
clone
in class com.google.api.client.json.GenericJson