blob: af5fc843c7bf2564e8754e535f01b7070788ee16 [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.turnBasedMatches.html">turnBasedMatches</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#cancel">cancel(matchId)</a></code></p>
79<p class="firstline">Cancel a turn-based match.</p>
80<p class="toc_element">
81 <code><a href="#create">create(body, language=None)</a></code></p>
82<p class="firstline">Create a turn-based match.</p>
83<p class="toc_element">
84 <code><a href="#decline">decline(matchId, language=None)</a></code></p>
85<p class="firstline">Decline an invitation to play a turn-based match.</p>
86<p class="toc_element">
87 <code><a href="#dismiss">dismiss(matchId)</a></code></p>
88<p class="firstline">Dismiss a turn-based match from the match list. The match will no longer show up in the list and will not generate notifications.</p>
89<p class="toc_element">
90 <code><a href="#finish">finish(matchId, body, language=None)</a></code></p>
91<p class="firstline">Finish a turn-based match. Each player should make this call once, after all results are in. Only the player whose turn it is may make the first call to Finish, and can pass in the final match state.</p>
92<p class="toc_element">
93 <code><a href="#get">get(matchId, language=None, includeMatchData=None)</a></code></p>
94<p class="firstline">Get the data for a turn-based match.</p>
95<p class="toc_element">
96 <code><a href="#join">join(matchId, language=None)</a></code></p>
97<p class="firstline">Join a turn-based match.</p>
98<p class="toc_element">
99 <code><a href="#leave">leave(matchId, language=None)</a></code></p>
100<p class="firstline">Leave a turn-based match when it is not the current player's turn, without canceling the match.</p>
101<p class="toc_element">
102 <code><a href="#leaveTurn">leaveTurn(matchId, matchVersion, language=None, pendingParticipantId=None)</a></code></p>
103<p class="firstline">Leave a turn-based match during the current player's turn, without canceling the match.</p>
104<p class="toc_element">
105 <code><a href="#list">list(maxCompletedMatches=None, language=None, pageToken=None, maxResults=None, includeMatchData=None)</a></code></p>
106<p class="firstline">Returns turn-based matches the player is or was involved in.</p>
107<p class="toc_element">
108 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
111 <code><a href="#rematch">rematch(matchId, language=None, requestId=None)</a></code></p>
112<p class="firstline">Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.</p>
113<p class="toc_element">
114 <code><a href="#sync">sync(maxCompletedMatches=None, language=None, pageToken=None, maxResults=None, includeMatchData=None)</a></code></p>
115<p class="firstline">Returns turn-based matches the player is or was involved in that changed since the last sync call, with the least recent changes coming first. Matches that should be removed from the local cache will have a status of MATCH_DELETED.</p>
116<p class="toc_element">
117 <code><a href="#sync_next">sync_next(previous_request, previous_response)</a></code></p>
118<p class="firstline">Retrieves the next page of results.</p>
119<p class="toc_element">
120 <code><a href="#takeTurn">takeTurn(matchId, body, language=None)</a></code></p>
121<p class="firstline">Commit the results of a player turn.</p>
122<h3>Method Details</h3>
123<div class="method">
124 <code class="details" id="cancel">cancel(matchId)</code>
125 <pre>Cancel a turn-based match.
126
127Args:
128 matchId: string, The ID of the match. (required)
129</pre>
130</div>
131
132<div class="method">
133 <code class="details" id="create">create(body, language=None)</code>
134 <pre>Create a turn-based match.
135
136Args:
137 body: object, The request body. (required)
138 The object takes the form of:
139
140{ # This is a JSON template for a turn-based match creation request.
141 "invitedPlayerIds": [ # The player ids to invite to the match.
142 "A String",
143 ],
144 "kind": "games#turnBasedMatchCreateRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchCreateRequest.
145 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
146 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
147 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
148 "exclusiveBitmask": "A String", # 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.
149 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
150 },
151 "variant": 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.
152 "requestId": "A String", # A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries.
153 }
154
155 language: string, The preferred language to use for strings returned by this method.
156
157Returns:
158 An object of the form:
159
160 { # This is a JSON template for a turn-based match resource object.
161 "status": "A String", # The status of the match.
162 # Possible values are:
163 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
164 # - "MATCH_ACTIVE" - The match has started.
165 # - "MATCH_COMPLETE" - The match has finished.
166 # - "MATCH_CANCELED" - The match was canceled.
167 # - "MATCH_EXPIRED" - The match expired due to inactivity.
168 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
169 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
170 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
171 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
172 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
173 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
174 "exclusiveBitmask": "A String", # 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.
175 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
176 },
177 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
178 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
179 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
180 "participantId": "A String", # The ID of the participant that modified the match.
181 },
182 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
183 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
184 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
185 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
186 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
187 },
188 "matchId": "A String", # Globally unique ID for a turn-based match.
189 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
190 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
191 { # This is a JSON template for a participant in a turn-based match.
192 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
193 "status": "A String", # The status of the participant with respect to the match.
194 # Possible values are:
195 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
196 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
197 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
198 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
199 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
200 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
201 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
202 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
203 "autoMatchedPlayer": { # 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.)
204 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
205 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
206 "displayName": "A String", # The name to display for the anonymous player.
207 },
208 "player": { # 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.)
209 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
210 "displayName": "A String", # The name to display for the player.
211 "name": { # An object representation of the individual components of the player's name.
212 "givenName": "A String", # The given name (first name) of this player.
213 "familyName": "A String", # The family name (last name) of this player.
214 },
215 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
216 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
217 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
218 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
219 },
220 "playerId": "A String", # The ID of the player.
221 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
222 },
223 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
224 },
225 ],
226 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
227 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
228 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
229 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
230 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
231 "participantId": "A String", # The ID of the participant that modified the match.
232 },
233 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
234 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
235 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
236 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
237 },
238 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
239 "results": [ # The results reported for this match.
240 { # This is a JSON template for a result for a match participant.
241 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
242 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
243 "participantId": "A String", # The ID of the participant.
244 "result": "A String", # The result of the participant for this match.
245 # Possible values are:
246 # - "MATCH_RESULT_WIN" - The participant won the match.
247 # - "MATCH_RESULT_LOSS" - The participant lost the match.
248 # - "MATCH_RESULT_TIE" - The participant tied the match.
249 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
250 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
251 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
252 },
253 ],
254 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
255 "applicationId": "A String", # The ID of the application being played.
256 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
257 # Possible values are:
258 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
259 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
260 # - "USER_TURN" - The user has an action to take in the match.
261 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
262 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
263 }</pre>
264</div>
265
266<div class="method">
267 <code class="details" id="decline">decline(matchId, language=None)</code>
268 <pre>Decline an invitation to play a turn-based match.
269
270Args:
271 matchId: string, The ID of the match. (required)
272 language: string, The preferred language to use for strings returned by this method.
273
274Returns:
275 An object of the form:
276
277 { # This is a JSON template for a turn-based match resource object.
278 "status": "A String", # The status of the match.
279 # Possible values are:
280 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
281 # - "MATCH_ACTIVE" - The match has started.
282 # - "MATCH_COMPLETE" - The match has finished.
283 # - "MATCH_CANCELED" - The match was canceled.
284 # - "MATCH_EXPIRED" - The match expired due to inactivity.
285 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
286 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
287 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
288 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
289 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
290 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
291 "exclusiveBitmask": "A String", # 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.
292 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
293 },
294 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
295 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
296 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
297 "participantId": "A String", # The ID of the participant that modified the match.
298 },
299 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
300 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
301 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
302 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
303 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
304 },
305 "matchId": "A String", # Globally unique ID for a turn-based match.
306 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
307 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
308 { # This is a JSON template for a participant in a turn-based match.
309 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
310 "status": "A String", # The status of the participant with respect to the match.
311 # Possible values are:
312 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
313 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
314 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
315 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
316 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
317 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
318 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
319 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
320 "autoMatchedPlayer": { # 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.)
321 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
322 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
323 "displayName": "A String", # The name to display for the anonymous player.
324 },
325 "player": { # 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.)
326 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
327 "displayName": "A String", # The name to display for the player.
328 "name": { # An object representation of the individual components of the player's name.
329 "givenName": "A String", # The given name (first name) of this player.
330 "familyName": "A String", # The family name (last name) of this player.
331 },
332 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
333 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
334 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
335 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
336 },
337 "playerId": "A String", # The ID of the player.
338 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
339 },
340 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
341 },
342 ],
343 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
344 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
345 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
346 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
347 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
348 "participantId": "A String", # The ID of the participant that modified the match.
349 },
350 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
351 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
352 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
353 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
354 },
355 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
356 "results": [ # The results reported for this match.
357 { # This is a JSON template for a result for a match participant.
358 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
359 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
360 "participantId": "A String", # The ID of the participant.
361 "result": "A String", # The result of the participant for this match.
362 # Possible values are:
363 # - "MATCH_RESULT_WIN" - The participant won the match.
364 # - "MATCH_RESULT_LOSS" - The participant lost the match.
365 # - "MATCH_RESULT_TIE" - The participant tied the match.
366 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
367 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
368 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
369 },
370 ],
371 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
372 "applicationId": "A String", # The ID of the application being played.
373 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
374 # Possible values are:
375 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
376 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
377 # - "USER_TURN" - The user has an action to take in the match.
378 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
379 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
380 }</pre>
381</div>
382
383<div class="method">
384 <code class="details" id="dismiss">dismiss(matchId)</code>
385 <pre>Dismiss a turn-based match from the match list. The match will no longer show up in the list and will not generate notifications.
386
387Args:
388 matchId: string, The ID of the match. (required)
389</pre>
390</div>
391
392<div class="method">
393 <code class="details" id="finish">finish(matchId, body, language=None)</code>
394 <pre>Finish a turn-based match. Each player should make this call once, after all results are in. Only the player whose turn it is may make the first call to Finish, and can pass in the final match state.
395
396Args:
397 matchId: string, The ID of the match. (required)
398 body: object, The request body. (required)
399 The object takes the form of:
400
401{ # This is a JSON template for a turn-based match results object.
402 "kind": "games#turnBasedMatchResults", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchResults.
403 "data": { # This is a JSON template for sending a turn-based match data object. # The final match data.
404 "kind": "games#turnBasedMatchDataRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchDataRequest.
405 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
406 },
407 "matchVersion": 42, # The version of the match being updated.
408 "results": [ # The match results for the participants in the match.
409 { # This is a JSON template for a result for a match participant.
410 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
411 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
412 "participantId": "A String", # The ID of the participant.
413 "result": "A String", # The result of the participant for this match.
414 # Possible values are:
415 # - "MATCH_RESULT_WIN" - The participant won the match.
416 # - "MATCH_RESULT_LOSS" - The participant lost the match.
417 # - "MATCH_RESULT_TIE" - The participant tied the match.
418 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
419 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
420 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
421 },
422 ],
423 }
424
425 language: string, The preferred language to use for strings returned by this method.
426
427Returns:
428 An object of the form:
429
430 { # This is a JSON template for a turn-based match resource object.
431 "status": "A String", # The status of the match.
432 # Possible values are:
433 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
434 # - "MATCH_ACTIVE" - The match has started.
435 # - "MATCH_COMPLETE" - The match has finished.
436 # - "MATCH_CANCELED" - The match was canceled.
437 # - "MATCH_EXPIRED" - The match expired due to inactivity.
438 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
439 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
440 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
441 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
442 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
443 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
444 "exclusiveBitmask": "A String", # 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.
445 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
446 },
447 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
448 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
449 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
450 "participantId": "A String", # The ID of the participant that modified the match.
451 },
452 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
453 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
454 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
455 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
456 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
457 },
458 "matchId": "A String", # Globally unique ID for a turn-based match.
459 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
460 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
461 { # This is a JSON template for a participant in a turn-based match.
462 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
463 "status": "A String", # The status of the participant with respect to the match.
464 # Possible values are:
465 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
466 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
467 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
468 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
469 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
470 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
471 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
472 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
473 "autoMatchedPlayer": { # 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.)
474 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
475 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
476 "displayName": "A String", # The name to display for the anonymous player.
477 },
478 "player": { # 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.)
479 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
480 "displayName": "A String", # The name to display for the player.
481 "name": { # An object representation of the individual components of the player's name.
482 "givenName": "A String", # The given name (first name) of this player.
483 "familyName": "A String", # The family name (last name) of this player.
484 },
485 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
486 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
487 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
488 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
489 },
490 "playerId": "A String", # The ID of the player.
491 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
492 },
493 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
494 },
495 ],
496 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
497 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
498 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
499 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
500 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
501 "participantId": "A String", # The ID of the participant that modified the match.
502 },
503 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
504 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
505 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
506 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
507 },
508 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
509 "results": [ # The results reported for this match.
510 { # This is a JSON template for a result for a match participant.
511 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
512 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
513 "participantId": "A String", # The ID of the participant.
514 "result": "A String", # The result of the participant for this match.
515 # Possible values are:
516 # - "MATCH_RESULT_WIN" - The participant won the match.
517 # - "MATCH_RESULT_LOSS" - The participant lost the match.
518 # - "MATCH_RESULT_TIE" - The participant tied the match.
519 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
520 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
521 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
522 },
523 ],
524 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
525 "applicationId": "A String", # The ID of the application being played.
526 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
527 # Possible values are:
528 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
529 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
530 # - "USER_TURN" - The user has an action to take in the match.
531 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
532 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
533 }</pre>
534</div>
535
536<div class="method">
537 <code class="details" id="get">get(matchId, language=None, includeMatchData=None)</code>
538 <pre>Get the data for a turn-based match.
539
540Args:
541 matchId: string, The ID of the match. (required)
542 language: string, The preferred language to use for strings returned by this method.
543 includeMatchData: boolean, Get match data along with metadata.
544
545Returns:
546 An object of the form:
547
548 { # This is a JSON template for a turn-based match resource object.
549 "status": "A String", # The status of the match.
550 # Possible values are:
551 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
552 # - "MATCH_ACTIVE" - The match has started.
553 # - "MATCH_COMPLETE" - The match has finished.
554 # - "MATCH_CANCELED" - The match was canceled.
555 # - "MATCH_EXPIRED" - The match expired due to inactivity.
556 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
557 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
558 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
559 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
560 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
561 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
562 "exclusiveBitmask": "A String", # 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 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
564 },
565 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
566 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
567 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
568 "participantId": "A String", # The ID of the participant that modified the match.
569 },
570 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
571 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
572 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
573 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
574 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
575 },
576 "matchId": "A String", # Globally unique ID for a turn-based match.
577 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
578 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
579 { # This is a JSON template for a participant in a turn-based match.
580 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
581 "status": "A String", # The status of the participant with respect to the match.
582 # Possible values are:
583 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
584 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
585 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
586 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
587 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
588 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
589 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
590 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
591 "autoMatchedPlayer": { # 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.)
592 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
593 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
594 "displayName": "A String", # The name to display for the anonymous player.
595 },
596 "player": { # 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.)
597 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
598 "displayName": "A String", # The name to display for the player.
599 "name": { # An object representation of the individual components of the player's name.
600 "givenName": "A String", # The given name (first name) of this player.
601 "familyName": "A String", # The family name (last name) of this player.
602 },
603 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
604 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
605 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
606 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
607 },
608 "playerId": "A String", # The ID of the player.
609 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
610 },
611 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
612 },
613 ],
614 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
615 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
616 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
617 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
618 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
619 "participantId": "A String", # The ID of the participant that modified the match.
620 },
621 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
622 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
623 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
624 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
625 },
626 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
627 "results": [ # The results reported for this match.
628 { # This is a JSON template for a result for a match participant.
629 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
630 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
631 "participantId": "A String", # The ID of the participant.
632 "result": "A String", # The result of the participant for this match.
633 # Possible values are:
634 # - "MATCH_RESULT_WIN" - The participant won the match.
635 # - "MATCH_RESULT_LOSS" - The participant lost the match.
636 # - "MATCH_RESULT_TIE" - The participant tied the match.
637 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
638 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
639 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
640 },
641 ],
642 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
643 "applicationId": "A String", # The ID of the application being played.
644 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
645 # Possible values are:
646 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
647 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
648 # - "USER_TURN" - The user has an action to take in the match.
649 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
650 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
651 }</pre>
652</div>
653
654<div class="method">
655 <code class="details" id="join">join(matchId, language=None)</code>
656 <pre>Join a turn-based match.
657
658Args:
659 matchId: string, The ID of the match. (required)
660 language: string, The preferred language to use for strings returned by this method.
661
662Returns:
663 An object of the form:
664
665 { # This is a JSON template for a turn-based match resource object.
666 "status": "A String", # The status of the match.
667 # Possible values are:
668 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
669 # - "MATCH_ACTIVE" - The match has started.
670 # - "MATCH_COMPLETE" - The match has finished.
671 # - "MATCH_CANCELED" - The match was canceled.
672 # - "MATCH_EXPIRED" - The match expired due to inactivity.
673 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
674 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
675 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
676 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
677 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
678 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
679 "exclusiveBitmask": "A String", # 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.
680 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
681 },
682 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
683 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
684 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
685 "participantId": "A String", # The ID of the participant that modified the match.
686 },
687 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
688 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
689 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
690 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
691 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
692 },
693 "matchId": "A String", # Globally unique ID for a turn-based match.
694 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
695 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
696 { # This is a JSON template for a participant in a turn-based match.
697 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
698 "status": "A String", # The status of the participant with respect to the match.
699 # Possible values are:
700 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
701 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
702 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
703 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
704 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
705 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
706 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
707 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
708 "autoMatchedPlayer": { # 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.)
709 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
710 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
711 "displayName": "A String", # The name to display for the anonymous player.
712 },
713 "player": { # 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.)
714 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
715 "displayName": "A String", # The name to display for the player.
716 "name": { # An object representation of the individual components of the player's name.
717 "givenName": "A String", # The given name (first name) of this player.
718 "familyName": "A String", # The family name (last name) of this player.
719 },
720 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
721 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
722 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
723 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
724 },
725 "playerId": "A String", # The ID of the player.
726 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
727 },
728 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
729 },
730 ],
731 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
732 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
733 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
734 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
735 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
736 "participantId": "A String", # The ID of the participant that modified the match.
737 },
738 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
739 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
740 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
741 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
742 },
743 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
744 "results": [ # The results reported for this match.
745 { # This is a JSON template for a result for a match participant.
746 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
747 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
748 "participantId": "A String", # The ID of the participant.
749 "result": "A String", # The result of the participant for this match.
750 # Possible values are:
751 # - "MATCH_RESULT_WIN" - The participant won the match.
752 # - "MATCH_RESULT_LOSS" - The participant lost the match.
753 # - "MATCH_RESULT_TIE" - The participant tied the match.
754 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
755 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
756 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
757 },
758 ],
759 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
760 "applicationId": "A String", # The ID of the application being played.
761 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
762 # Possible values are:
763 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
764 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
765 # - "USER_TURN" - The user has an action to take in the match.
766 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
767 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
768 }</pre>
769</div>
770
771<div class="method">
772 <code class="details" id="leave">leave(matchId, language=None)</code>
773 <pre>Leave a turn-based match when it is not the current player's turn, without canceling the match.
774
775Args:
776 matchId: string, The ID of the match. (required)
777 language: string, The preferred language to use for strings returned by this method.
778
779Returns:
780 An object of the form:
781
782 { # This is a JSON template for a turn-based match resource object.
783 "status": "A String", # The status of the match.
784 # Possible values are:
785 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
786 # - "MATCH_ACTIVE" - The match has started.
787 # - "MATCH_COMPLETE" - The match has finished.
788 # - "MATCH_CANCELED" - The match was canceled.
789 # - "MATCH_EXPIRED" - The match expired due to inactivity.
790 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
791 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
792 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
793 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
794 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
795 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
796 "exclusiveBitmask": "A String", # 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.
797 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
798 },
799 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
800 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
801 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
802 "participantId": "A String", # The ID of the participant that modified the match.
803 },
804 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
805 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
806 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
807 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
808 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
809 },
810 "matchId": "A String", # Globally unique ID for a turn-based match.
811 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
812 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
813 { # This is a JSON template for a participant in a turn-based match.
814 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
815 "status": "A String", # The status of the participant with respect to the match.
816 # Possible values are:
817 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
818 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
819 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
820 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
821 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
822 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
823 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
824 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
825 "autoMatchedPlayer": { # 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.)
826 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
827 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
828 "displayName": "A String", # The name to display for the anonymous player.
829 },
830 "player": { # 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.)
831 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
832 "displayName": "A String", # The name to display for the player.
833 "name": { # An object representation of the individual components of the player's name.
834 "givenName": "A String", # The given name (first name) of this player.
835 "familyName": "A String", # The family name (last name) of this player.
836 },
837 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
838 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
839 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
840 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
841 },
842 "playerId": "A String", # The ID of the player.
843 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
844 },
845 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
846 },
847 ],
848 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
849 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
850 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
851 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
852 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
853 "participantId": "A String", # The ID of the participant that modified the match.
854 },
855 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
856 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
857 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
858 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
859 },
860 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
861 "results": [ # The results reported for this match.
862 { # This is a JSON template for a result for a match participant.
863 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
864 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
865 "participantId": "A String", # The ID of the participant.
866 "result": "A String", # The result of the participant for this match.
867 # Possible values are:
868 # - "MATCH_RESULT_WIN" - The participant won the match.
869 # - "MATCH_RESULT_LOSS" - The participant lost the match.
870 # - "MATCH_RESULT_TIE" - The participant tied the match.
871 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
872 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
873 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
874 },
875 ],
876 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
877 "applicationId": "A String", # The ID of the application being played.
878 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
879 # Possible values are:
880 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
881 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
882 # - "USER_TURN" - The user has an action to take in the match.
883 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
884 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
885 }</pre>
886</div>
887
888<div class="method">
889 <code class="details" id="leaveTurn">leaveTurn(matchId, matchVersion, language=None, pendingParticipantId=None)</code>
890 <pre>Leave a turn-based match during the current player's turn, without canceling the match.
891
892Args:
893 matchId: string, The ID of the match. (required)
894 matchVersion: integer, The version of the match being updated. (required)
895 language: string, The preferred language to use for strings returned by this method.
896 pendingParticipantId: string, The ID of another participant who should take their turn next. If not set, the match will wait for other player(s) to join via automatching; this is only valid if automatch criteria is set on the match with remaining slots for automatched players.
897
898Returns:
899 An object of the form:
900
901 { # This is a JSON template for a turn-based match resource object.
902 "status": "A String", # The status of the match.
903 # Possible values are:
904 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
905 # - "MATCH_ACTIVE" - The match has started.
906 # - "MATCH_COMPLETE" - The match has finished.
907 # - "MATCH_CANCELED" - The match was canceled.
908 # - "MATCH_EXPIRED" - The match expired due to inactivity.
909 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
910 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
911 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
912 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
913 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
914 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
915 "exclusiveBitmask": "A String", # 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.
916 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
917 },
918 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
919 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
920 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
921 "participantId": "A String", # The ID of the participant that modified the match.
922 },
923 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
924 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
925 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
926 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
927 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
928 },
929 "matchId": "A String", # Globally unique ID for a turn-based match.
930 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
931 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
932 { # This is a JSON template for a participant in a turn-based match.
933 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
934 "status": "A String", # The status of the participant with respect to the match.
935 # Possible values are:
936 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
937 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
938 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
939 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
940 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
941 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
942 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
943 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
944 "autoMatchedPlayer": { # 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.)
945 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
946 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
947 "displayName": "A String", # The name to display for the anonymous player.
948 },
949 "player": { # 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.)
950 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
951 "displayName": "A String", # The name to display for the player.
952 "name": { # An object representation of the individual components of the player's name.
953 "givenName": "A String", # The given name (first name) of this player.
954 "familyName": "A String", # The family name (last name) of this player.
955 },
956 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
957 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
958 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
959 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
960 },
961 "playerId": "A String", # The ID of the player.
962 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
963 },
964 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
965 },
966 ],
967 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
968 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
969 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
970 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
971 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
972 "participantId": "A String", # The ID of the participant that modified the match.
973 },
974 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
975 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
976 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
977 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
978 },
979 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
980 "results": [ # The results reported for this match.
981 { # This is a JSON template for a result for a match participant.
982 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
983 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
984 "participantId": "A String", # The ID of the participant.
985 "result": "A String", # The result of the participant for this match.
986 # Possible values are:
987 # - "MATCH_RESULT_WIN" - The participant won the match.
988 # - "MATCH_RESULT_LOSS" - The participant lost the match.
989 # - "MATCH_RESULT_TIE" - The participant tied the match.
990 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
991 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
992 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
993 },
994 ],
995 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
996 "applicationId": "A String", # The ID of the application being played.
997 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
998 # Possible values are:
999 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1000 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1001 # - "USER_TURN" - The user has an action to take in the match.
1002 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1003 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1004 }</pre>
1005</div>
1006
1007<div class="method">
1008 <code class="details" id="list">list(maxCompletedMatches=None, language=None, pageToken=None, maxResults=None, includeMatchData=None)</code>
1009 <pre>Returns turn-based matches the player is or was involved in.
1010
1011Args:
1012 maxCompletedMatches: integer, The maximum number of completed or canceled matches to return in the response. If not set, all matches returned could be completed or canceled.
1013 language: string, The preferred language to use for strings returned by this method.
1014 pageToken: string, The token returned by the previous request.
1015 maxResults: integer, The maximum number of matches to return in the response, used for paging. For any response, the actual number of matches to return may be less than the specified maxResults.
1016 includeMatchData: boolean, True if match data should be returned in the response. Note that not all data will necessarily be returned if include_match_data is true; the server may decide to only return data for some of the matches to limit download size for the client. The remainder of the data for these matches will be retrievable on request.
1017
1018Returns:
1019 An object of the form:
1020
1021 { # This is a JSON template for a list of turn-based matches.
1022 "nextPageToken": "A String", # The pagination token for the next page of results.
1023 "items": [ # The matches.
1024 { # This is a JSON template for a turn-based match resource object.
1025 "status": "A String", # The status of the match.
1026 # Possible values are:
1027 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1028 # - "MATCH_ACTIVE" - The match has started.
1029 # - "MATCH_COMPLETE" - The match has finished.
1030 # - "MATCH_CANCELED" - The match was canceled.
1031 # - "MATCH_EXPIRED" - The match expired due to inactivity.
1032 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1033 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
1034 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1035 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1036 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1037 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
1038 "exclusiveBitmask": "A String", # 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.
1039 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
1040 },
1041 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1042 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1043 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1044 "participantId": "A String", # The ID of the participant that modified the match.
1045 },
1046 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1047 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1048 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1049 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1050 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1051 },
1052 "matchId": "A String", # Globally unique ID for a turn-based match.
1053 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1054 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
1055 { # This is a JSON template for a participant in a turn-based match.
1056 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
1057 "status": "A String", # The status of the participant with respect to the match.
1058 # Possible values are:
1059 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
1060 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
1061 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
1062 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
1063 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
1064 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
1065 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
1066 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1067 "autoMatchedPlayer": { # 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.)
1068 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1069 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
1070 "displayName": "A String", # The name to display for the anonymous player.
1071 },
1072 "player": { # 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.)
1073 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1074 "displayName": "A String", # The name to display for the player.
1075 "name": { # An object representation of the individual components of the player's name.
1076 "givenName": "A String", # The given name (first name) of this player.
1077 "familyName": "A String", # The family name (last name) of this player.
1078 },
1079 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1080 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
1081 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1082 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
1083 },
1084 "playerId": "A String", # The ID of the player.
1085 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
1086 },
1087 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1088 },
1089 ],
1090 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
1091 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1092 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1093 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1094 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1095 "participantId": "A String", # The ID of the participant that modified the match.
1096 },
1097 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
1098 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1099 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1100 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1101 },
1102 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1103 "results": [ # The results reported for this match.
1104 { # This is a JSON template for a result for a match participant.
1105 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1106 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1107 "participantId": "A String", # The ID of the participant.
1108 "result": "A String", # The result of the participant for this match.
1109 # Possible values are:
1110 # - "MATCH_RESULT_WIN" - The participant won the match.
1111 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1112 # - "MATCH_RESULT_TIE" - The participant tied the match.
1113 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1114 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1115 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1116 },
1117 ],
1118 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
1119 "applicationId": "A String", # The ID of the application being played.
1120 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
1121 # Possible values are:
1122 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1123 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1124 # - "USER_TURN" - The user has an action to take in the match.
1125 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1126 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1127 },
1128 ],
1129 "kind": "games#turnBasedMatchList", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchList.
1130 }</pre>
1131</div>
1132
1133<div class="method">
1134 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1135 <pre>Retrieves the next page of results.
1136
1137Args:
1138 previous_request: The request for the previous page. (required)
1139 previous_response: The response from the request for the previous page. (required)
1140
1141Returns:
1142 A request object that you can call 'execute()' on to request the next
1143 page. Returns None if there are no more items in the collection.
1144 </pre>
1145</div>
1146
1147<div class="method">
1148 <code class="details" id="rematch">rematch(matchId, language=None, requestId=None)</code>
1149 <pre>Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.
1150
1151Args:
1152 matchId: string, The ID of the match. (required)
1153 language: string, The preferred language to use for strings returned by this method.
1154 requestId: string, A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.
1155
1156Returns:
1157 An object of the form:
1158
1159 { # This is a JSON template for a rematch response.
1160 "rematch": { # This is a JSON template for a turn-based match resource object. # The newly created match; a rematch of the old match with the same participants.
1161 "status": "A String", # The status of the match.
1162 # Possible values are:
1163 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1164 # - "MATCH_ACTIVE" - The match has started.
1165 # - "MATCH_COMPLETE" - The match has finished.
1166 # - "MATCH_CANCELED" - The match was canceled.
1167 # - "MATCH_EXPIRED" - The match expired due to inactivity.
1168 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1169 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
1170 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1171 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1172 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1173 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
1174 "exclusiveBitmask": "A String", # 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.
1175 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
1176 },
1177 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1178 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1179 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1180 "participantId": "A String", # The ID of the participant that modified the match.
1181 },
1182 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1183 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1184 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1185 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1186 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1187 },
1188 "matchId": "A String", # Globally unique ID for a turn-based match.
1189 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1190 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
1191 { # This is a JSON template for a participant in a turn-based match.
1192 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
1193 "status": "A String", # The status of the participant with respect to the match.
1194 # Possible values are:
1195 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
1196 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
1197 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
1198 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
1199 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
1200 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
1201 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
1202 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1203 "autoMatchedPlayer": { # 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.)
1204 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1205 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
1206 "displayName": "A String", # The name to display for the anonymous player.
1207 },
1208 "player": { # 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.)
1209 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1210 "displayName": "A String", # The name to display for the player.
1211 "name": { # An object representation of the individual components of the player's name.
1212 "givenName": "A String", # The given name (first name) of this player.
1213 "familyName": "A String", # The family name (last name) of this player.
1214 },
1215 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1216 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
1217 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1218 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
1219 },
1220 "playerId": "A String", # The ID of the player.
1221 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
1222 },
1223 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1224 },
1225 ],
1226 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
1227 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1228 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1229 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1230 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1231 "participantId": "A String", # The ID of the participant that modified the match.
1232 },
1233 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
1234 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1235 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1236 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1237 },
1238 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1239 "results": [ # The results reported for this match.
1240 { # This is a JSON template for a result for a match participant.
1241 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1242 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1243 "participantId": "A String", # The ID of the participant.
1244 "result": "A String", # The result of the participant for this match.
1245 # Possible values are:
1246 # - "MATCH_RESULT_WIN" - The participant won the match.
1247 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1248 # - "MATCH_RESULT_TIE" - The participant tied the match.
1249 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1250 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1251 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1252 },
1253 ],
1254 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
1255 "applicationId": "A String", # The ID of the application being played.
1256 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
1257 # Possible values are:
1258 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1259 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1260 # - "USER_TURN" - The user has an action to take in the match.
1261 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1262 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1263 },
1264 "kind": "games#turnBasedMatchRematch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchRematch.
1265 "previousMatch": { # This is a JSON template for a turn-based match resource object. # The old match that the rematch was created from; will be updated such that the rematchId field will point at the new match.
1266 "status": "A String", # The status of the match.
1267 # Possible values are:
1268 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1269 # - "MATCH_ACTIVE" - The match has started.
1270 # - "MATCH_COMPLETE" - The match has finished.
1271 # - "MATCH_CANCELED" - The match was canceled.
1272 # - "MATCH_EXPIRED" - The match expired due to inactivity.
1273 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1274 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
1275 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1276 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1277 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1278 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
1279 "exclusiveBitmask": "A String", # 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.
1280 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
1281 },
1282 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1283 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1284 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1285 "participantId": "A String", # The ID of the participant that modified the match.
1286 },
1287 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1288 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1289 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1290 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1291 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1292 },
1293 "matchId": "A String", # Globally unique ID for a turn-based match.
1294 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1295 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
1296 { # This is a JSON template for a participant in a turn-based match.
1297 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
1298 "status": "A String", # The status of the participant with respect to the match.
1299 # Possible values are:
1300 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
1301 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
1302 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
1303 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
1304 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
1305 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
1306 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
1307 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1308 "autoMatchedPlayer": { # 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.)
1309 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1310 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
1311 "displayName": "A String", # The name to display for the anonymous player.
1312 },
1313 "player": { # 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.)
1314 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1315 "displayName": "A String", # The name to display for the player.
1316 "name": { # An object representation of the individual components of the player's name.
1317 "givenName": "A String", # The given name (first name) of this player.
1318 "familyName": "A String", # The family name (last name) of this player.
1319 },
1320 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1321 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
1322 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1323 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
1324 },
1325 "playerId": "A String", # The ID of the player.
1326 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
1327 },
1328 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1329 },
1330 ],
1331 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
1332 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1333 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1334 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1335 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1336 "participantId": "A String", # The ID of the participant that modified the match.
1337 },
1338 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
1339 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1340 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1341 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1342 },
1343 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1344 "results": [ # The results reported for this match.
1345 { # This is a JSON template for a result for a match participant.
1346 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1347 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1348 "participantId": "A String", # The ID of the participant.
1349 "result": "A String", # The result of the participant for this match.
1350 # Possible values are:
1351 # - "MATCH_RESULT_WIN" - The participant won the match.
1352 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1353 # - "MATCH_RESULT_TIE" - The participant tied the match.
1354 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1355 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1356 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1357 },
1358 ],
1359 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
1360 "applicationId": "A String", # The ID of the application being played.
1361 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
1362 # Possible values are:
1363 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1364 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1365 # - "USER_TURN" - The user has an action to take in the match.
1366 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1367 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1368 },
1369 }</pre>
1370</div>
1371
1372<div class="method">
1373 <code class="details" id="sync">sync(maxCompletedMatches=None, language=None, pageToken=None, maxResults=None, includeMatchData=None)</code>
1374 <pre>Returns turn-based matches the player is or was involved in that changed since the last sync call, with the least recent changes coming first. Matches that should be removed from the local cache will have a status of MATCH_DELETED.
1375
1376Args:
1377 maxCompletedMatches: integer, The maximum number of completed or canceled matches to return in the response. If not set, all matches returned could be completed or canceled.
1378 language: string, The preferred language to use for strings returned by this method.
1379 pageToken: string, The token returned by the previous request.
1380 maxResults: integer, The maximum number of matches to return in the response, used for paging. For any response, the actual number of matches to return may be less than the specified maxResults.
1381 includeMatchData: boolean, True if match data should be returned in the response. Note that not all data will necessarily be returned if include_match_data is true; the server may decide to only return data for some of the matches to limit download size for the client. The remainder of the data for these matches will be retrievable on request.
1382
1383Returns:
1384 An object of the form:
1385
1386 { # This is a JSON template for a list of turn-based matches returned from a sync.
1387 "nextPageToken": "A String", # The pagination token for the next page of results.
1388 "items": [ # The matches.
1389 { # This is a JSON template for a turn-based match resource object.
1390 "status": "A String", # The status of the match.
1391 # Possible values are:
1392 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1393 # - "MATCH_ACTIVE" - The match has started.
1394 # - "MATCH_COMPLETE" - The match has finished.
1395 # - "MATCH_CANCELED" - The match was canceled.
1396 # - "MATCH_EXPIRED" - The match expired due to inactivity.
1397 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1398 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
1399 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1400 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1401 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1402 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
1403 "exclusiveBitmask": "A String", # 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.
1404 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
1405 },
1406 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1407 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1408 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1409 "participantId": "A String", # The ID of the participant that modified the match.
1410 },
1411 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1412 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1413 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1414 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1415 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1416 },
1417 "matchId": "A String", # Globally unique ID for a turn-based match.
1418 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1419 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
1420 { # This is a JSON template for a participant in a turn-based match.
1421 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
1422 "status": "A String", # The status of the participant with respect to the match.
1423 # Possible values are:
1424 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
1425 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
1426 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
1427 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
1428 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
1429 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
1430 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
1431 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1432 "autoMatchedPlayer": { # 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.)
1433 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1434 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
1435 "displayName": "A String", # The name to display for the anonymous player.
1436 },
1437 "player": { # 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.)
1438 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1439 "displayName": "A String", # The name to display for the player.
1440 "name": { # An object representation of the individual components of the player's name.
1441 "givenName": "A String", # The given name (first name) of this player.
1442 "familyName": "A String", # The family name (last name) of this player.
1443 },
1444 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1445 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
1446 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1447 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
1448 },
1449 "playerId": "A String", # The ID of the player.
1450 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
1451 },
1452 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1453 },
1454 ],
1455 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
1456 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1457 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1458 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1459 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1460 "participantId": "A String", # The ID of the participant that modified the match.
1461 },
1462 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
1463 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1464 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1465 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1466 },
1467 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1468 "results": [ # The results reported for this match.
1469 { # This is a JSON template for a result for a match participant.
1470 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1471 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1472 "participantId": "A String", # The ID of the participant.
1473 "result": "A String", # The result of the participant for this match.
1474 # Possible values are:
1475 # - "MATCH_RESULT_WIN" - The participant won the match.
1476 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1477 # - "MATCH_RESULT_TIE" - The participant tied the match.
1478 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1479 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1480 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1481 },
1482 ],
1483 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
1484 "applicationId": "A String", # The ID of the application being played.
1485 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
1486 # Possible values are:
1487 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1488 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1489 # - "USER_TURN" - The user has an action to take in the match.
1490 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1491 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1492 },
1493 ],
1494 "kind": "games#turnBasedMatchSync", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchSync.
1495 "moreAvailable": True or False, # True if there were more matches available to fetch at the time the response was generated (which were not returned due to page size limits.)
1496 }</pre>
1497</div>
1498
1499<div class="method">
1500 <code class="details" id="sync_next">sync_next(previous_request, previous_response)</code>
1501 <pre>Retrieves the next page of results.
1502
1503Args:
1504 previous_request: The request for the previous page. (required)
1505 previous_response: The response from the request for the previous page. (required)
1506
1507Returns:
1508 A request object that you can call 'execute()' on to request the next
1509 page. Returns None if there are no more items in the collection.
1510 </pre>
1511</div>
1512
1513<div class="method">
1514 <code class="details" id="takeTurn">takeTurn(matchId, body, language=None)</code>
1515 <pre>Commit the results of a player turn.
1516
1517Args:
1518 matchId: string, The ID of the match. (required)
1519 body: object, The request body. (required)
1520 The object takes the form of:
1521
1522{ # This is a JSON template for the object representing a turn.
1523 "kind": "games#turnBasedMatchTurn", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchTurn.
1524 "results": [ # The match results for the participants in the match.
1525 { # This is a JSON template for a result for a match participant.
1526 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1527 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1528 "participantId": "A String", # The ID of the participant.
1529 "result": "A String", # The result of the participant for this match.
1530 # Possible values are:
1531 # - "MATCH_RESULT_WIN" - The participant won the match.
1532 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1533 # - "MATCH_RESULT_TIE" - The participant tied the match.
1534 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1535 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1536 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1537 },
1538 ],
1539 "data": { # This is a JSON template for sending a turn-based match data object. # The shared game state data after the turn is over.
1540 "kind": "games#turnBasedMatchDataRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchDataRequest.
1541 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1542 },
1543 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1544 "pendingParticipantId": "A String", # The ID of the participant who should take their turn next. May be set to the current player's participant ID to update match state without changing the turn. If not set, the match will wait for other player(s) to join via automatching; this is only valid if automatch criteria is set on the match with remaining slots for automatched players.
1545 }
1546
1547 language: string, The preferred language to use for strings returned by this method.
1548
1549Returns:
1550 An object of the form:
1551
1552 { # This is a JSON template for a turn-based match resource object.
1553 "status": "A String", # The status of the match.
1554 # Possible values are:
1555 # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1556 # - "MATCH_ACTIVE" - The match has started.
1557 # - "MATCH_COMPLETE" - The match has finished.
1558 # - "MATCH_CANCELED" - The match was canceled.
1559 # - "MATCH_EXPIRED" - The match expired due to inactivity.
1560 # - "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1561 "withParticipantId": "A String", # The ID of another participant in the match that can be used when describing the participants the user is playing with.
1562 "kind": "games#turnBasedMatch", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1563 "autoMatchingCriteria": { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1564 "kind": "games#turnBasedAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1565 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the match by auto-matching.
1566 "exclusiveBitmask": "A String", # 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.
1567 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the match by auto-matching.
1568 },
1569 "creationDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1570 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1571 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1572 "participantId": "A String", # The ID of the participant that modified the match.
1573 },
1574 "inviterId": "A String", # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1575 "data": { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1576 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1577 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1578 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1579 },
1580 "matchId": "A String", # Globally unique ID for a turn-based match.
1581 "matchVersion": 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1582 "participants": [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
1583 { # This is a JSON template for a participant in a turn-based match.
1584 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player.
1585 "status": "A String", # The status of the participant with respect to the match.
1586 # Possible values are:
1587 # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
1588 # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
1589 # - "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
1590 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
1591 # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
1592 # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
1593 # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
1594 "kind": "games#turnBasedMatchParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1595 "autoMatchedPlayer": { # 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.)
1596 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1597 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
1598 "displayName": "A String", # The name to display for the anonymous player.
1599 },
1600 "player": { # 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.)
1601 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1602 "displayName": "A String", # The name to display for the player.
1603 "name": { # An object representation of the individual components of the player's name.
1604 "givenName": "A String", # The given name (first name) of this player.
1605 "familyName": "A String", # The family name (last name) of this player.
1606 },
1607 "lastPlayedWith": { # This is a JSON template for 3P metadata about a player playing a game. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1608 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user.
1609 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1610 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC.
1611 },
1612 "playerId": "A String", # The ID of the player.
1613 "avatarImageUrl": "A String", # The base URL for the image that represents the player.
1614 },
1615 "id": "A String", # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1616 },
1617 ],
1618 "matchNumber": 42, # The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.
1619 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1620 "lastUpdateDetails": { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1621 "kind": "games#turnBasedMatchModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1622 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1623 "participantId": "A String", # The ID of the participant that modified the match.
1624 },
1625 "previousMatchData": { # This is a JSON template for a turn-based match data object. # The data / game state for the previous match; set for the first turn of rematches only.
1626 "dataAvailable": True or False, # True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data.
1627 "kind": "games#turnBasedMatchData", # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
1628 "data": "A String", # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1629 },
1630 "rematchId": "A String", # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1631 "results": [ # The results reported for this match.
1632 { # This is a JSON template for a result for a match participant.
1633 "kind": "games#participantResult", # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1634 "placing": 42, # The placement or ranking of the participant in the match results; a number from one to the number of participants in the match. Multiple participants may have the same placing value in case of a type.
1635 "participantId": "A String", # The ID of the participant.
1636 "result": "A String", # The result of the participant for this match.
1637 # Possible values are:
1638 # - "MATCH_RESULT_WIN" - The participant won the match.
1639 # - "MATCH_RESULT_LOSS" - The participant lost the match.
1640 # - "MATCH_RESULT_TIE" - The participant tied the match.
1641 # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or loses this kind of game.)
1642 # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the match.
1643 # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for this participant.
1644 },
1645 ],
1646 "pendingParticipantId": "A String", # The ID of the participant that is taking a turn.
1647 "applicationId": "A String", # The ID of the application being played.
1648 "userMatchStatus": "A String", # The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match.
1649 # Possible values are:
1650 # - "USER_INVITED" - The user has been invited to join the match and has not responded yet.
1651 # - "USER_AWAITING_TURN" - The user is waiting for their turn.
1652 # - "USER_TURN" - The user has an action to take in the match.
1653 # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
1654 "description": "A String", # This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.
1655 }</pre>
1656</div>
1657
1658</body></html>