blob: a3250ef81f1fa79911db051ae102ee973e17e850 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="games_v1.html">Google Play Game Services API</a> . <a href="games_v1.rooms.html">rooms</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
80<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070081 <code><a href="#decline">decline(roomId, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
83<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#dismiss">dismiss(roomId)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#get">get(roomId, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Get the data for a room.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#join">join(roomId, body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#leave">leave(roomId, body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(language=None, maxResults=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Returns invitations to join rooms.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#reportStatus">reportStatus(roomId, body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="create">create(body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400107 <pre>Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
108
109Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400111 The object takes the form of:
112
113{ # This is a JSON template for a room creation request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
115 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
116 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
117 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
118 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400119 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;capabilities&quot;: [ # The capabilities that this client supports for realtime communication.
121 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400122 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the player creating the room.
124 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
125 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
126 },
127 &quot;invitedPlayerIds&quot;: [ # The player IDs to invite to the room.
128 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400129 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;kind&quot;: &quot;games#roomCreateRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomCreateRequest.
131 &quot;networkDiagnostics&quot;: { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client creating the room.
132 &quot;androidNetworkSubtype&quot;: 42, # The Android network subtype.
133 &quot;androidNetworkType&quot;: 42, # The Android network type.
134 &quot;iosNetworkType&quot;: 42, # iOS network type as defined in Reachability.h.
135 &quot;kind&quot;: &quot;games#networkDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics.
136 &quot;networkOperatorCode&quot;: &quot;A String&quot;, # The MCC+MNC code for the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
137 &quot;networkOperatorName&quot;: &quot;A String&quot;, # The name of the carrier of the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName
138 &quot;registrationLatencyMillis&quot;: 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.
John Asmuth614db982014-04-24 15:46:26 -0400139 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;requestId&quot;: &quot;A String&quot;, # A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries.
141 &quot;variant&quot;: 42, # The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible.
John Asmuth614db982014-04-24 15:46:26 -0400142 }
143
144 language: string, The preferred language to use for strings returned by this method.
145
146Returns:
147 An object of the form:
148
149 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
151 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
152 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
153 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
154 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
155 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400156 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
158 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
159 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400160 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
162 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
163 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
164 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400165 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
167 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
168 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
169 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
170 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
171 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
172 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
173 },
174 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400175 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
177 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
178 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
179 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
180 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400181 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
183 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400184 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
186 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
187 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
188 },
189 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
190 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
191 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
192 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
193 # Possible values are:
194 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
195 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
196 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
197 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
198 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
199 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
200 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
201 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
202 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
203 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
204 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
205 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
206 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
207 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
208 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
209 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
210 &quot;level&quot;: 42, # The level for the user.
211 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
212 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700213 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
215 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
216 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
217 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
218 &quot;level&quot;: 42, # The level for the user.
219 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
220 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700221 },
222 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
224 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
225 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
226 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
227 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
228 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
229 },
230 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
231 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
232 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
233 },
234 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
235 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
236 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
237 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
238 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
239 &quot;profileVisible&quot;: True or False,
240 },
241 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -0400242 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
244 # Possible values are:
245 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
246 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
247 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
248 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -0400249 },
250 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
252 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
253 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
254 # Possible values are:
255 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
256 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
257 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
258 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
259 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
260 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -0400261 }</pre>
262</div>
263
264<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700265 <code class="details" id="decline">decline(roomId, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400266 <pre>Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
267
268Args:
269 roomId: string, The ID of the room. (required)
270 language: string, The preferred language to use for strings returned by this method.
271
272Returns:
273 An object of the form:
274
275 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
277 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
278 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
279 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
280 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
281 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400282 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
284 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
285 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400286 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
288 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
289 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
290 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400291 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
293 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
294 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
295 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
296 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
297 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
298 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
299 },
300 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400301 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
303 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
304 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
305 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
306 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400307 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
309 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400310 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
312 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
313 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
314 },
315 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
316 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
317 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
318 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
319 # Possible values are:
320 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
321 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
322 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
323 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
324 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
325 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
326 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
327 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
328 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
329 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
330 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
331 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
332 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
333 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
334 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
335 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
336 &quot;level&quot;: 42, # The level for the user.
337 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
338 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700339 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
341 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
342 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
343 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
344 &quot;level&quot;: 42, # The level for the user.
345 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
346 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700347 },
348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
350 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
351 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
352 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
353 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
354 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
355 },
356 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
357 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
358 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
359 },
360 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
361 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
362 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
363 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
364 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
365 &quot;profileVisible&quot;: True or False,
366 },
367 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -0400368 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
370 # Possible values are:
371 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
372 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
373 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
374 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -0400375 },
376 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
378 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
379 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
380 # Possible values are:
381 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
382 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
383 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
384 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
385 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
386 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -0400387 }</pre>
388</div>
389
390<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 <code class="details" id="dismiss">dismiss(roomId)</code>
John Asmuth614db982014-04-24 15:46:26 -0400392 <pre>Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
393
394Args:
395 roomId: string, The ID of the room. (required)
396</pre>
397</div>
398
399<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 <code class="details" id="get">get(roomId, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400401 <pre>Get the data for a room.
402
403Args:
404 roomId: string, The ID of the room. (required)
405 language: string, The preferred language to use for strings returned by this method.
406
407Returns:
408 An object of the form:
409
410 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
412 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
413 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
414 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
415 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
416 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
419 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
420 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400421 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
423 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
424 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
425 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400426 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
428 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
429 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
430 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
431 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
432 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
433 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
434 },
435 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400436 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
438 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
439 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
440 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
441 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400442 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
444 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400445 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
447 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
448 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
449 },
450 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
451 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
452 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
453 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
454 # Possible values are:
455 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
456 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
457 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
458 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
459 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
460 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
461 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
462 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
463 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
464 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
465 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
466 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
467 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
468 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
469 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
470 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
471 &quot;level&quot;: 42, # The level for the user.
472 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
473 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700474 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
476 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
477 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
478 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
479 &quot;level&quot;: 42, # The level for the user.
480 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
481 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700482 },
483 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
485 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
486 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
487 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
488 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
489 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
490 },
491 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
492 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
493 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
494 },
495 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
496 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
497 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
498 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
499 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
500 &quot;profileVisible&quot;: True or False,
501 },
502 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -0400503 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
505 # Possible values are:
506 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
507 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
508 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
509 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -0400510 },
511 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
513 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
514 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
515 # Possible values are:
516 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
517 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
518 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
519 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
520 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
521 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -0400522 }</pre>
523</div>
524
525<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700526 <code class="details" id="join">join(roomId, body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400527 <pre>Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
528
529Args:
530 roomId: string, The ID of the room. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700531 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400532 The object takes the form of:
533
534{ # This is a JSON template for a join room request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;capabilities&quot;: [ # The capabilities that this client supports for realtime communication.
536 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400537 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the player joining the room.
539 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
540 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
541 },
542 &quot;kind&quot;: &quot;games#roomJoinRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomJoinRequest.
543 &quot;networkDiagnostics&quot;: { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client joining the room.
544 &quot;androidNetworkSubtype&quot;: 42, # The Android network subtype.
545 &quot;androidNetworkType&quot;: 42, # The Android network type.
546 &quot;iosNetworkType&quot;: 42, # iOS network type as defined in Reachability.h.
547 &quot;kind&quot;: &quot;games#networkDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics.
548 &quot;networkOperatorCode&quot;: &quot;A String&quot;, # The MCC+MNC code for the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
549 &quot;networkOperatorName&quot;: &quot;A String&quot;, # The name of the carrier of the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName
550 &quot;registrationLatencyMillis&quot;: 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.
551 },
John Asmuth614db982014-04-24 15:46:26 -0400552 }
553
554 language: string, The preferred language to use for strings returned by this method.
555
556Returns:
557 An object of the form:
558
559 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
561 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
562 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
563 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
564 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
565 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400566 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
568 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
569 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400570 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
572 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
573 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
574 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400575 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
577 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
578 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
579 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
580 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
581 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
582 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
583 },
584 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400585 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
587 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
588 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
589 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
590 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400591 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
593 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400594 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
596 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
597 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
598 },
599 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
600 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
601 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
602 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
603 # Possible values are:
604 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
605 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
606 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
607 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
608 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
609 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
610 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
611 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
612 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
613 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
614 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
615 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
616 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
617 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
618 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
619 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
620 &quot;level&quot;: 42, # The level for the user.
621 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
622 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700623 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700624 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
625 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
626 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
627 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
628 &quot;level&quot;: 42, # The level for the user.
629 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
630 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700631 },
632 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
634 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
635 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
636 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
637 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
638 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
639 },
640 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
641 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
642 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
643 },
644 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
645 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
646 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
647 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
648 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
649 &quot;profileVisible&quot;: True or False,
650 },
651 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -0400652 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
654 # Possible values are:
655 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
656 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
657 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
658 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -0400659 },
660 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
662 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
663 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
664 # Possible values are:
665 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
666 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
667 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
668 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
669 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
670 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -0400671 }</pre>
672</div>
673
674<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700675 <code class="details" id="leave">leave(roomId, body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400676 <pre>Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
677
678Args:
679 roomId: string, The ID of the room. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700680 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400681 The object takes the form of:
682
683{ # This is a JSON template for a leave room request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;kind&quot;: &quot;games#roomLeaveRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveRequest.
685 &quot;leaveDiagnostics&quot;: { # This is a JSON template for room leave diagnostics. # Diagnostics for a player leaving the room.
686 &quot;androidNetworkSubtype&quot;: 42, # Android network subtype. http://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype()
687 &quot;androidNetworkType&quot;: 42, # Android network type. http://developer.android.com/reference/android/net/NetworkInfo.html#getType()
688 &quot;iosNetworkType&quot;: 42, # iOS network type as defined in Reachability.h.
689 &quot;kind&quot;: &quot;games#roomLeaveDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveDiagnostics.
690 &quot;networkOperatorCode&quot;: &quot;A String&quot;, # The MCC+MNC code for the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
691 &quot;networkOperatorName&quot;: &quot;A String&quot;, # The name of the carrier of the client&#x27;s network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName
692 &quot;peerSession&quot;: [ # Diagnostics about all peer sessions.
John Asmuth614db982014-04-24 15:46:26 -0400693 { # This is a JSON template for peer session diagnostics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 &quot;connectedTimestampMillis&quot;: &quot;A String&quot;, # Connected time in milliseconds.
695 &quot;kind&quot;: &quot;games#peerSessionDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#peerSessionDiagnostics.
696 &quot;participantId&quot;: &quot;A String&quot;, # The participant ID of the peer.
697 &quot;reliableChannel&quot;: { # This is a JSON template for peer channel diagnostics. # Reliable channel diagnostics.
698 &quot;bytesReceived&quot;: { # This is a JSON template for aggregate stats. # Number of bytes received.
699 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
700 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
701 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
702 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
703 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400704 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700705 &quot;bytesSent&quot;: { # This is a JSON template for aggregate stats. # Number of bytes sent.
706 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
707 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
708 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
709 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
710 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400711 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 &quot;kind&quot;: &quot;games#peerChannelDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics.
713 &quot;numMessagesLost&quot;: 42, # Number of messages lost.
714 &quot;numMessagesReceived&quot;: 42, # Number of messages received.
715 &quot;numMessagesSent&quot;: 42, # Number of messages sent.
716 &quot;numSendFailures&quot;: 42, # Number of send failures.
717 &quot;roundtripLatencyMillis&quot;: { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds.
718 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
719 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
720 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
721 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
722 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400723 },
724 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;unreliableChannel&quot;: { # This is a JSON template for peer channel diagnostics. # Unreliable channel diagnostics.
726 &quot;bytesReceived&quot;: { # This is a JSON template for aggregate stats. # Number of bytes received.
727 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
728 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
729 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
730 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
731 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400732 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 &quot;bytesSent&quot;: { # This is a JSON template for aggregate stats. # Number of bytes sent.
734 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
735 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
736 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
737 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
738 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400739 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700740 &quot;kind&quot;: &quot;games#peerChannelDiagnostics&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics.
741 &quot;numMessagesLost&quot;: 42, # Number of messages lost.
742 &quot;numMessagesReceived&quot;: 42, # Number of messages received.
743 &quot;numMessagesSent&quot;: 42, # Number of messages sent.
744 &quot;numSendFailures&quot;: 42, # Number of send failures.
745 &quot;roundtripLatencyMillis&quot;: { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds.
746 &quot;count&quot;: &quot;A String&quot;, # The number of messages sent between a pair of peers.
747 &quot;kind&quot;: &quot;games#aggregateStats&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
748 &quot;max&quot;: &quot;A String&quot;, # The maximum amount.
749 &quot;min&quot;: &quot;A String&quot;, # The minimum amount.
750 &quot;sum&quot;: &quot;A String&quot;, # The total number of bytes sent for messages between a pair of peers.
John Asmuth614db982014-04-24 15:46:26 -0400751 },
752 },
John Asmuth614db982014-04-24 15:46:26 -0400753 },
754 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 &quot;socketsUsed&quot;: True or False, # Whether or not sockets were used.
John Asmuth614db982014-04-24 15:46:26 -0400756 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;reason&quot;: &quot;A String&quot;, # Reason for leaving the match.
758 # Possible values are:
759 # - &quot;PLAYER_LEFT&quot; - The player chose to leave the room..
760 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
761 # - &quot;REALTIME_ABANDONED&quot; - The player switched to another application and abandoned the room.
762 # - &quot;REALTIME_PEER_CONNECTION_FAILURE&quot; - The client was unable to establish a connection to other peer(s).
763 # - &quot;REALTIME_SERVER_CONNECTION_FAILURE&quot; - The client was unable to communicate with the server.
764 # - &quot;REALTIME_SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
765 # - &quot;REALTIME_TIMEOUT&quot; - The client timed out while waiting for a room.
766 # - &quot;REALTIME_CLIENT_DISCONNECTING&quot; - The client disconnects without first calling Leave.
767 # - &quot;REALTIME_SIGN_OUT&quot; - The user signed out of G+ while in the room.
768 # - &quot;REALTIME_GAME_CRASHED&quot; - The game crashed.
769 # - &quot;REALTIME_ROOM_SERVICE_CRASHED&quot; - RoomAndroidService crashed.
770 # - &quot;REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION&quot; - Another client is trying to enter a room.
771 # - &quot;REALTIME_SAME_CLIENT_ROOM_OPERATION&quot; - The same client is trying to enter a new room.
John Asmuth614db982014-04-24 15:46:26 -0400772 }
773
774 language: string, The preferred language to use for strings returned by this method.
775
776Returns:
777 An object of the form:
778
779 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
781 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
782 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
783 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
784 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
785 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400786 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
788 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
789 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400790 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
792 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
793 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
794 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400795 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
797 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
798 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
799 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
800 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
801 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
802 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
803 },
804 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400805 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
807 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
808 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
809 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
810 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400811 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
813 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400814 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
816 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
817 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
818 },
819 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
820 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
821 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
822 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
823 # Possible values are:
824 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
825 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
826 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
827 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
828 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
829 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
830 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
831 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
832 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
833 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
834 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
835 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
836 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
837 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
838 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
839 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
840 &quot;level&quot;: 42, # The level for the user.
841 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
842 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700843 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
845 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
846 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
847 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
848 &quot;level&quot;: 42, # The level for the user.
849 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
850 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700851 },
852 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
854 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
855 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
856 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
857 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
858 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
859 },
860 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
861 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
862 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
863 },
864 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
865 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
866 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
867 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
868 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
869 &quot;profileVisible&quot;: True or False,
870 },
871 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -0400872 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
874 # Possible values are:
875 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
876 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
877 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
878 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -0400879 },
880 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
882 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
883 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
884 # Possible values are:
885 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
886 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
887 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
888 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
889 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
890 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -0400891 }</pre>
892</div>
893
894<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 <code class="details" id="list">list(language=None, maxResults=None, pageToken=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400896 <pre>Returns invitations to join rooms.
897
898Args:
John Asmuth614db982014-04-24 15:46:26 -0400899 language: string, The preferred language to use for strings returned by this method.
900 maxResults: integer, The maximum number of rooms to return in the response, used for paging. For any response, the actual number of rooms to return may be less than the specified maxResults.
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 pageToken: string, The token returned by the previous request.
John Asmuth614db982014-04-24 15:46:26 -0400902
903Returns:
904 An object of the form:
905
906 { # This is a JSON template for a list of rooms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 &quot;items&quot;: [ # The rooms.
John Asmuth614db982014-04-24 15:46:26 -0400908 { # This is a JSON template for a room resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
910 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
911 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
912 &quot;kind&quot;: &quot;games#roomAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
913 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the room by auto-matching.
914 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the room by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400915 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700916 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.
917 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
918 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -0400919 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 &quot;creationDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the room creation.
921 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
922 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
923 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
John Asmuth614db982014-04-24 15:46:26 -0400924 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;description&quot;: &quot;A String&quot;, # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
926 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.
927 &quot;kind&quot;: &quot;games#room&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
928 &quot;lastUpdateDetails&quot;: { # This is a JSON template for room modification metadata. # Details about the last update to the room.
929 &quot;kind&quot;: &quot;games#roomModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
930 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
931 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the room.
932 },
933 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400934 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
936 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
937 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
938 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
939 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -0400940 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
942 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400943 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
945 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
946 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
947 },
948 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
949 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
950 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
951 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
952 # Possible values are:
953 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
954 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
955 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
956 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
957 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
958 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
959 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
960 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
961 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
962 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
963 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
964 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
965 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
966 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
967 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
968 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
969 &quot;level&quot;: 42, # The level for the user.
970 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
971 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700972 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700973 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
974 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
975 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
976 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
977 &quot;level&quot;: 42, # The level for the user.
978 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
979 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -0700980 },
981 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
983 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
984 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
985 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
986 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
987 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
988 },
989 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
990 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
991 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
992 },
993 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
994 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
995 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
996 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
997 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
998 &quot;profileVisible&quot;: True or False,
999 },
1000 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -04001001 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001002 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
1003 # Possible values are:
1004 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
1005 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
1006 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
1007 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -04001008 },
1009 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
1011 &quot;roomStatusVersion&quot;: 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
1012 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
1013 # Possible values are:
1014 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
1015 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
1016 # - &quot;ROOM_CONNECTING&quot; - Players have joined and are connecting to each other (either before or after auto-matching).
1017 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
1018 # - &quot;ROOM_DELETED&quot; - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
1019 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
John Asmuth614db982014-04-24 15:46:26 -04001020 },
1021 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &quot;kind&quot;: &quot;games#roomList&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomList.
1023 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token for the next page of results.
John Asmuth614db982014-04-24 15:46:26 -04001024 }</pre>
1025</div>
1026
1027<div class="method">
1028 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1029 <pre>Retrieves the next page of results.
1030
1031Args:
1032 previous_request: The request for the previous page. (required)
1033 previous_response: The response from the request for the previous page. (required)
1034
1035Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -04001037 page. Returns None if there are no more items in the collection.
1038 </pre>
1039</div>
1040
1041<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001042 <code class="details" id="reportStatus">reportStatus(roomId, body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001043 <pre>Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
1044
1045Args:
1046 roomId: string, The ID of the room. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001047 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -04001048 The object takes the form of:
1049
1050{ # This is a JSON template for an update on the status of peers in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 &quot;kind&quot;: &quot;games#roomP2PStatuses&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatuses.
1052 &quot;updates&quot;: [ # The updates for the peers.
John Asmuth614db982014-04-24 15:46:26 -04001053 { # This is a JSON template for an update on the status of a peer in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -07001054 &quot;connectionSetupLatencyMillis&quot;: 42, # The amount of time in milliseconds it took to establish connections with this peer.
1055 &quot;error&quot;: &quot;A String&quot;, # The error code in event of a failure.
John Asmuth614db982014-04-24 15:46:26 -04001056 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001057 # - &quot;P2P_FAILED&quot; - The client failed to establish a P2P connection with the peer.
1058 # - &quot;PRESENCE_FAILED&quot; - The client failed to register to receive P2P connections.
1059 # - &quot;RELAY_SERVER_FAILED&quot; - The client received an error when trying to use the relay server to establish a P2P connection with the peer.
1060 &quot;error_reason&quot;: &quot;A String&quot;, # More detailed diagnostic message returned in event of a failure.
1061 &quot;kind&quot;: &quot;games#roomP2PStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatus.
1062 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1063 &quot;status&quot;: &quot;A String&quot;, # The status of the peer in the room.
John Asmuth614db982014-04-24 15:46:26 -04001064 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 # - &quot;CONNECTION_ESTABLISHED&quot; - The client established a P2P connection with the peer.
1066 # - &quot;CONNECTION_FAILED&quot; - The client failed to establish directed presence with the peer.
1067 &quot;unreliableRoundtripLatencyMillis&quot;: 42, # The amount of time in milliseconds it took to send packets back and forth on the unreliable channel with this peer.
John Asmuth614db982014-04-24 15:46:26 -04001068 },
1069 ],
1070 }
1071
1072 language: string, The preferred language to use for strings returned by this method.
1073
1074Returns:
1075 An object of the form:
1076
1077 { # This is a JSON template for the status of a room that the player has joined.
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 &quot;autoMatchingStatus&quot;: { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching queue.
1079 &quot;kind&quot;: &quot;games#roomAutoMatchStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
1080 &quot;waitEstimateSeconds&quot;: 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete.
John Asmuth614db982014-04-24 15:46:26 -04001081 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001082 &quot;kind&quot;: &quot;games#roomStatus&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomStatus.
1083 &quot;participants&quot;: [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001084 { # This is a JSON template for a participant in a room.
Bu Sun Kim65020912020-05-20 12:08:20 -07001085 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1086 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1087 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1088 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1089 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
John Asmuth614db982014-04-24 15:46:26 -04001090 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 &quot;capabilities&quot;: [ # The capabilities which can be used when communicating with this participant.
1092 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -04001093 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 &quot;clientAddress&quot;: { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
1095 &quot;kind&quot;: &quot;games#roomClientAddress&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
1096 &quot;xmppAddress&quot;: &quot;A String&quot;, # The XMPP address of the client on the Google Games XMPP network.
1097 },
1098 &quot;connected&quot;: True or False, # True if this participant is in the fully connected set of peers in the room.
1099 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
1100 &quot;kind&quot;: &quot;games#roomParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
1101 &quot;leaveReason&quot;: &quot;A String&quot;, # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
1102 # Possible values are:
1103 # - &quot;PLAYER_LEFT&quot; - The player explicitly chose to leave the room.
1104 # - &quot;GAME_LEFT&quot; - The game chose to remove the player from the room.
1105 # - &quot;ABANDONED&quot; - The player switched to another application and abandoned the room.
1106 # - &quot;PEER_CONNECTION_FAILURE&quot; - The client was unable to establish or maintain a connection to other peer(s) in the room.
1107 # - &quot;SERVER_ERROR&quot; - The client received an error response when it tried to communicate with the server.
1108 # - &quot;TIMEOUT&quot; - The client timed out while waiting for players to join and connect.
1109 # - &quot;PRESENCE_FAILURE&quot; - The client&#x27;s XMPP connection ended abruptly.
1110 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1111 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1112 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1113 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1114 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1115 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1116 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1117 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1118 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1119 &quot;level&quot;: 42, # The level for the user.
1120 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1121 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -07001122 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1124 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1125 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1126 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1127 &quot;level&quot;: 42, # The level for the user.
1128 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1129 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
Craig Citro065b5302014-08-14 00:47:23 -07001130 },
1131 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001132 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1133 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1134 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1135 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1136 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1137 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1138 },
1139 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1140 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1141 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1142 },
1143 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1144 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1145 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1146 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1147 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1148 &quot;profileVisible&quot;: True or False,
1149 },
1150 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
John Asmuth614db982014-04-24 15:46:26 -04001151 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the room.
1153 # Possible values are:
1154 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the room, but has not yet responded.
1155 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the room (either after creating it or accepting an invitation.)
1156 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the room.
1157 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the room and then left it.
John Asmuth614db982014-04-24 15:46:26 -04001158 },
1159 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;roomId&quot;: &quot;A String&quot;, # Globally unique ID for a room.
1161 &quot;status&quot;: &quot;A String&quot;, # The status of the room.
1162 # Possible values are:
1163 # - &quot;ROOM_INVITING&quot; - One or more players have been invited and not responded.
1164 # - &quot;ROOM_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching.
1165 # - &quot;ROOM_CONNECTING&quot; - Players have joined are connecting to each other (either before or after auto-matching).
1166 # - &quot;ROOM_ACTIVE&quot; - All players have joined and connected to each other.
1167 # - &quot;ROOM_DELETED&quot; - All joined players have left.
1168 &quot;statusVersion&quot;: 42, # The version of the status for the room: an increasing counter, used by the client to ignore out-of-order updates to room status.
John Asmuth614db982014-04-24 15:46:26 -04001169 }</pre>
1170</div>
1171
1172</body></html>