blob: 4bb50aae4c4300dab89d4e0e50aaeec4488ac8ed [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">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#cancel">cancel(matchId)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Cancel a turn-based match.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Create a turn-based match.</p>
83<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#decline">decline(matchId, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Decline an invitation to play a turn-based match.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#dismiss">dismiss(matchId)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<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">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#finish">finish(matchId, body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<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">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#get">get(matchId, includeMatchData=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Get the data for a turn-based match.</p>
95<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 <code><a href="#join">join(matchId, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Join a turn-based match.</p>
98<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 <code><a href="#leave">leave(matchId, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<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">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 <code><a href="#leaveTurn">leaveTurn(matchId, matchVersion, language=None, pendingParticipantId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Leave a turn-based match during the current player's turn, without canceling the match.</p>
104<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 <code><a href="#list">list(includeMatchData=None, language=None, maxCompletedMatches=None, maxResults=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400106<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">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111 <code><a href="#rematch">rematch(matchId, language=None, requestId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400112<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">
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 <code><a href="#sync">sync(includeMatchData=None, language=None, maxCompletedMatches=None, maxResults=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400115<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#takeTurn">takeTurn(matchId, body=None, language=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400121<p class="firstline">Commit the results of a player turn.</p>
122<h3>Method Details</h3>
123<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 <code class="details" id="cancel">cancel(matchId)</code>
John Asmuth614db982014-04-24 15:46:26 -0400125 <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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code class="details" id="create">create(body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400134 <pre>Create a turn-based match.
135
136Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700137 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400138 The object takes the form of:
139
140{ # This is a JSON template for a turn-based match creation request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
142 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
143 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
144 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
145 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400146 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;invitedPlayerIds&quot;: [ # The player ids to invite to the match.
148 &quot;A String&quot;,
149 ],
150 &quot;kind&quot;: &quot;games#turnBasedMatchCreateRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchCreateRequest.
151 &quot;requestId&quot;: &quot;A String&quot;, # A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries.
152 &quot;variant&quot;: 42, # The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible.
John Asmuth614db982014-04-24 15:46:26 -0400153 }
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
162 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
163 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
164 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
165 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
166 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400167 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
169 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
170 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
171 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
174 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
175 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
176 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400177 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;description&quot;: &quot;A String&quot;, # 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.
179 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
180 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
181 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
182 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
183 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
184 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
185 },
186 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
187 &quot;matchNumber&quot;: 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.
188 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
189 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400190 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
192 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
193 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
194 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
195 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
196 },
197 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
198 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
199 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
200 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
201 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
202 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
203 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
204 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
205 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
206 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
207 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
208 &quot;level&quot;: 42, # The level for the user.
209 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
210 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
211 },
212 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
213 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
214 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
215 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
216 &quot;level&quot;: 42, # The level for the user.
217 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
218 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
219 },
220 },
221 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
222 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
223 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
224 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
225 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
226 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
227 },
228 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
229 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
230 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
231 },
232 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
233 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
234 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
235 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
236 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
237 &quot;profileVisible&quot;: True or False,
238 },
239 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
240 },
241 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400242 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
244 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
245 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
246 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
247 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
248 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
249 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -0400250 },
251 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
253 &quot;previousMatchData&quot;: { # 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.
254 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
255 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
256 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
259 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -0400260 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
262 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
263 &quot;placing&quot;: 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.
264 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400265 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
267 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
268 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
269 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
270 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
271 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400272 },
273 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -0400275 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
277 # - &quot;MATCH_ACTIVE&quot; - The match has started.
278 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
279 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
280 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
281 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
282 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
283 # Possible values are:
284 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
285 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
286 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
287 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
288 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
289 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -0400290 }</pre>
291</div>
292
293<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 <code class="details" id="decline">decline(matchId, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400295 <pre>Decline an invitation to play a turn-based match.
296
297Args:
298 matchId: string, The ID of the match. (required)
299 language: string, The preferred language to use for strings returned by this method.
300
301Returns:
302 An object of the form:
303
304 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
306 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
307 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
308 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
309 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
310 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400311 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
313 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
314 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
315 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
318 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
319 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
320 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400321 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;description&quot;: &quot;A String&quot;, # 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.
323 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
324 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
325 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
326 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
327 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
328 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
329 },
330 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
331 &quot;matchNumber&quot;: 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.
332 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
333 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400334 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
336 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
337 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
338 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
339 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
340 },
341 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
342 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
343 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
344 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
345 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
346 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
347 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
348 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
349 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
350 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
351 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
352 &quot;level&quot;: 42, # The level for the user.
353 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
354 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
355 },
356 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
357 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
358 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
359 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
360 &quot;level&quot;: 42, # The level for the user.
361 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
362 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
363 },
364 },
365 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
366 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
367 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
368 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
369 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
370 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
371 },
372 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
373 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
374 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
375 },
376 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
377 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
378 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
379 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
380 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
381 &quot;profileVisible&quot;: True or False,
382 },
383 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
384 },
385 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400386 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
388 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
389 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
390 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
391 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
392 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
393 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -0400394 },
395 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
397 &quot;previousMatchData&quot;: { # 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.
398 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
399 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
400 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400401 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
403 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -0400404 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
406 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
407 &quot;placing&quot;: 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.
408 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400409 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
411 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
412 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
413 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
414 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
415 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400416 },
417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -0400419 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
421 # - &quot;MATCH_ACTIVE&quot; - The match has started.
422 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
423 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
424 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
425 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
426 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
427 # Possible values are:
428 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
429 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
430 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
431 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
432 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
433 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -0400434 }</pre>
435</div>
436
437<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 <code class="details" id="dismiss">dismiss(matchId)</code>
John Asmuth614db982014-04-24 15:46:26 -0400439 <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.
440
441Args:
442 matchId: string, The ID of the match. (required)
443</pre>
444</div>
445
446<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700447 <code class="details" id="finish">finish(matchId, body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400448 <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.
449
450Args:
451 matchId: string, The ID of the match. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700452 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400453 The object takes the form of:
454
455{ # This is a JSON template for a turn-based match results object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 &quot;data&quot;: { # This is a JSON template for sending a turn-based match data object. # The final match data.
457 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
458 &quot;kind&quot;: &quot;games#turnBasedMatchDataRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchDataRequest.
John Asmuth614db982014-04-24 15:46:26 -0400459 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;kind&quot;: &quot;games#turnBasedMatchResults&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchResults.
461 &quot;matchVersion&quot;: 42, # The version of the match being updated.
462 &quot;results&quot;: [ # The match results for the participants in the match.
John Asmuth614db982014-04-24 15:46:26 -0400463 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
465 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
466 &quot;placing&quot;: 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.
467 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400468 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
470 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
471 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
472 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
473 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
474 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400475 },
476 ],
477 }
478
479 language: string, The preferred language to use for strings returned by this method.
480
481Returns:
482 An object of the form:
483
484 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700485 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
486 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
487 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
488 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
489 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
490 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400491 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
493 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
494 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
495 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400496 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
498 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
499 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
500 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400501 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;description&quot;: &quot;A String&quot;, # 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.
503 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
504 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
505 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
506 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
507 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
508 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
509 },
510 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
511 &quot;matchNumber&quot;: 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.
512 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
513 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400514 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
516 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
517 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
518 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
519 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
520 },
521 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
522 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
523 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
524 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
525 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
526 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
527 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
528 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
529 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
530 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
531 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
532 &quot;level&quot;: 42, # The level for the user.
533 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
534 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
535 },
536 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
537 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
538 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
539 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
540 &quot;level&quot;: 42, # The level for the user.
541 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
542 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
543 },
544 },
545 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
546 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
547 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
548 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
549 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
550 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
551 },
552 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
553 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
554 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
555 },
556 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
557 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
558 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
559 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
560 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
561 &quot;profileVisible&quot;: True or False,
562 },
563 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
564 },
565 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400566 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
568 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
569 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
570 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
571 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
572 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
573 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -0400574 },
575 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
577 &quot;previousMatchData&quot;: { # 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.
578 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
579 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
580 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400581 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
583 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -0400584 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
586 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
587 &quot;placing&quot;: 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.
588 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400589 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
591 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
592 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
593 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
594 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
595 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400596 },
597 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -0400599 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
601 # - &quot;MATCH_ACTIVE&quot; - The match has started.
602 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
603 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
604 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
605 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
606 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
607 # Possible values are:
608 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
609 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
610 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
611 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
612 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
613 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -0400614 }</pre>
615</div>
616
617<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 <code class="details" id="get">get(matchId, includeMatchData=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400619 <pre>Get the data for a turn-based match.
620
621Args:
622 matchId: string, The ID of the match. (required)
John Asmuth614db982014-04-24 15:46:26 -0400623 includeMatchData: boolean, Get match data along with metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -0700624 language: string, The preferred language to use for strings returned by this method.
John Asmuth614db982014-04-24 15:46:26 -0400625
626Returns:
627 An object of the form:
628
629 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
631 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
632 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
633 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
634 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
635 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400636 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
638 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
639 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
640 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400641 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
643 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
644 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
645 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400646 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;description&quot;: &quot;A String&quot;, # 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.
648 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
649 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
650 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
651 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
652 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
653 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
654 },
655 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
656 &quot;matchNumber&quot;: 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.
657 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
658 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400659 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
661 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
662 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
663 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
664 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
665 },
666 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
667 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
668 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
669 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
670 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
671 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
672 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
673 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
674 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
675 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
676 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
677 &quot;level&quot;: 42, # The level for the user.
678 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
679 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
680 },
681 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
682 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
683 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
684 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
685 &quot;level&quot;: 42, # The level for the user.
686 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
687 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
688 },
689 },
690 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
691 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
692 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
693 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
694 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
695 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
696 },
697 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
698 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
699 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
700 },
701 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
702 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
703 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
704 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
705 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
706 &quot;profileVisible&quot;: True or False,
707 },
708 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
709 },
710 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400711 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
713 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
714 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
715 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
716 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
717 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
718 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -0400719 },
720 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
722 &quot;previousMatchData&quot;: { # 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.
723 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
724 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
725 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400726 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
728 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -0400729 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
731 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
732 &quot;placing&quot;: 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.
733 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400734 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
736 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
737 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
738 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
739 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
740 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400741 },
742 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -0400744 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
746 # - &quot;MATCH_ACTIVE&quot; - The match has started.
747 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
748 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
749 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
750 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
751 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
752 # Possible values are:
753 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
754 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
755 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
756 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
757 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
758 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -0400759 }</pre>
760</div>
761
762<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 <code class="details" id="join">join(matchId, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400764 <pre>Join a turn-based match.
765
766Args:
767 matchId: string, The ID of the match. (required)
768 language: string, The preferred language to use for strings returned by this method.
769
770Returns:
771 An object of the form:
772
773 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
775 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
776 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
777 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
778 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
779 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400780 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700781 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
782 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
783 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
784 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400785 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
787 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
788 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
789 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400790 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;description&quot;: &quot;A String&quot;, # 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.
792 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
793 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
794 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
795 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
796 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
797 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
798 },
799 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
800 &quot;matchNumber&quot;: 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.
801 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
802 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400803 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
805 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
806 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
807 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
808 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
809 },
810 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
811 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
812 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
813 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
814 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
815 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
816 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
817 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
818 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
819 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
820 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
821 &quot;level&quot;: 42, # The level for the user.
822 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
823 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
824 },
825 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
826 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
827 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
828 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
829 &quot;level&quot;: 42, # The level for the user.
830 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
831 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
832 },
833 },
834 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
835 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
836 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
837 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
838 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
839 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
840 },
841 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
842 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
843 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
844 },
845 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
846 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
847 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
848 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
849 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
850 &quot;profileVisible&quot;: True or False,
851 },
852 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
853 },
854 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400855 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
857 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
858 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
859 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
860 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
861 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
862 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -0400863 },
864 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700865 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
866 &quot;previousMatchData&quot;: { # 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.
867 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
868 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
869 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400870 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
872 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -0400873 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
875 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
876 &quot;placing&quot;: 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.
877 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -0400878 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
880 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
881 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
882 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
883 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
884 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -0400885 },
886 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -0400888 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
890 # - &quot;MATCH_ACTIVE&quot; - The match has started.
891 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
892 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
893 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
894 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
895 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
896 # Possible values are:
897 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
898 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
899 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
900 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
901 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
902 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -0400903 }</pre>
904</div>
905
906<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907 <code class="details" id="leave">leave(matchId, language=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 <pre>Leave a turn-based match when it is not the current player&#x27;s turn, without canceling the match.
John Asmuth614db982014-04-24 15:46:26 -0400909
910Args:
911 matchId: string, The ID of the match. (required)
912 language: string, The preferred language to use for strings returned by this method.
913
914Returns:
915 An object of the form:
916
917 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
919 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
920 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
921 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
922 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
923 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -0400924 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
926 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
927 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
928 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -0400929 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
931 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
932 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
933 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -0400934 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 &quot;description&quot;: &quot;A String&quot;, # 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.
936 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
937 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
938 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
939 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
940 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
941 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
942 },
943 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
944 &quot;matchNumber&quot;: 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.
945 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
946 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -0400947 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
949 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
950 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
951 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
952 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
953 },
954 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
955 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
956 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
957 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
958 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
959 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
960 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
961 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
962 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
963 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
964 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
965 &quot;level&quot;: 42, # The level for the user.
966 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
967 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
968 },
969 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
970 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
971 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
972 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
973 &quot;level&quot;: 42, # The level for the user.
974 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
975 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
976 },
977 },
978 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
979 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
980 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
981 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
982 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
983 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
984 },
985 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
986 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
987 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
988 },
989 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
990 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
991 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
992 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
993 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
994 &quot;profileVisible&quot;: True or False,
995 },
996 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
997 },
998 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -0400999 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1001 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1002 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1003 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1004 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1005 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1006 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001007 },
1008 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1010 &quot;previousMatchData&quot;: { # 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.
1011 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1012 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1013 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001014 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1016 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001017 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1019 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1020 &quot;placing&quot;: 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.
1021 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001022 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1024 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1025 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1026 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1027 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1028 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001029 },
1030 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001032 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1034 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1035 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1036 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1037 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1038 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1039 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1040 # Possible values are:
1041 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1042 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1043 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1044 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1045 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1046 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001047 }</pre>
1048</div>
1049
1050<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051 <code class="details" id="leaveTurn">leaveTurn(matchId, matchVersion, language=None, pendingParticipantId=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 <pre>Leave a turn-based match during the current player&#x27;s turn, without canceling the match.
John Asmuth614db982014-04-24 15:46:26 -04001053
1054Args:
1055 matchId: string, The ID of the match. (required)
1056 matchVersion: integer, The version of the match being updated. (required)
1057 language: string, The preferred language to use for strings returned by this method.
1058 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.
1059
1060Returns:
1061 An object of the form:
1062
1063 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1065 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1066 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1067 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1068 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1069 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001070 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001071 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1072 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1073 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1074 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001075 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1077 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1078 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1079 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001080 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001081 &quot;description&quot;: &quot;A String&quot;, # 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.
1082 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1083 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1084 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1085 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1086 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1087 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1088 },
1089 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1090 &quot;matchNumber&quot;: 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 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1092 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001093 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1095 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1096 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1097 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1098 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1099 },
1100 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1101 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1102 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1103 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1104 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1105 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1106 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1107 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1108 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1109 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1110 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1111 &quot;level&quot;: 42, # The level for the user.
1112 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1113 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1114 },
1115 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1116 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1117 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1118 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1119 &quot;level&quot;: 42, # The level for the user.
1120 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1121 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1122 },
1123 },
1124 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1125 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1126 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1127 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1128 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1129 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1130 },
1131 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1132 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1133 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1134 },
1135 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1136 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1137 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1138 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1139 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1140 &quot;profileVisible&quot;: True or False,
1141 },
1142 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1143 },
1144 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001145 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1147 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1148 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1149 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1150 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1151 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1152 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001153 },
1154 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001155 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1156 &quot;previousMatchData&quot;: { # 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.
1157 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1158 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1159 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001160 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1162 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001163 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1165 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1166 &quot;placing&quot;: 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.
1167 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001168 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1170 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1171 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1172 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1173 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1174 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001175 },
1176 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001178 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1180 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1181 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1182 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1183 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1184 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1185 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1186 # Possible values are:
1187 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1188 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1189 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1190 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1191 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1192 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001193 }</pre>
1194</div>
1195
1196<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 <code class="details" id="list">list(includeMatchData=None, language=None, maxCompletedMatches=None, maxResults=None, pageToken=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001198 <pre>Returns turn-based matches the player is or was involved in.
1199
1200Args:
John Asmuth614db982014-04-24 15:46:26 -04001201 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 language: string, The preferred language to use for strings returned by this method.
1203 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.
1204 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.
1205 pageToken: string, The token returned by the previous request.
John Asmuth614db982014-04-24 15:46:26 -04001206
1207Returns:
1208 An object of the form:
1209
1210 { # This is a JSON template for a list of turn-based matches.
Bu Sun Kim65020912020-05-20 12:08:20 -07001211 &quot;items&quot;: [ # The matches.
John Asmuth614db982014-04-24 15:46:26 -04001212 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001213 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1214 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1215 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1216 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1217 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1218 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001219 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001220 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1221 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1222 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1223 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001224 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001225 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1226 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1227 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1228 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001229 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 &quot;description&quot;: &quot;A String&quot;, # 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.
1231 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1232 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1233 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1234 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1235 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1236 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1237 },
1238 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1239 &quot;matchNumber&quot;: 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.
1240 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1241 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001242 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001243 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1244 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1245 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1246 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1247 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1248 },
1249 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1250 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1251 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1252 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1253 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1254 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1255 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1256 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1257 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1258 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1259 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1260 &quot;level&quot;: 42, # The level for the user.
1261 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1262 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1263 },
1264 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1265 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1266 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1267 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1268 &quot;level&quot;: 42, # The level for the user.
1269 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1270 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1271 },
1272 },
1273 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1274 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1275 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1276 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1277 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1278 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1279 },
1280 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1281 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1282 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1283 },
1284 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1285 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1286 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1287 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1288 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1289 &quot;profileVisible&quot;: True or False,
1290 },
1291 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1292 },
1293 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001294 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1296 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1297 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1298 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1299 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1300 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1301 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001302 },
1303 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001304 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1305 &quot;previousMatchData&quot;: { # 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.
1306 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1307 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1308 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001309 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001310 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1311 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001312 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1314 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1315 &quot;placing&quot;: 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.
1316 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001317 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1319 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1320 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1321 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1322 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1323 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001324 },
1325 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001326 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001327 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1329 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1330 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1331 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1332 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1333 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1334 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1335 # Possible values are:
1336 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1337 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1338 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1339 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1340 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1341 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001342 },
1343 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001344 &quot;kind&quot;: &quot;games#turnBasedMatchList&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchList.
1345 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token for the next page of results.
John Asmuth614db982014-04-24 15:46:26 -04001346 }</pre>
1347</div>
1348
1349<div class="method">
1350 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1351 <pre>Retrieves the next page of results.
1352
1353Args:
1354 previous_request: The request for the previous page. (required)
1355 previous_response: The response from the request for the previous page. (required)
1356
1357Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -04001359 page. Returns None if there are no more items in the collection.
1360 </pre>
1361</div>
1362
1363<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001364 <code class="details" id="rematch">rematch(matchId, language=None, requestId=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001365 <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&#x27;s turn.
John Asmuth614db982014-04-24 15:46:26 -04001366
1367Args:
1368 matchId: string, The ID of the match. (required)
1369 language: string, The preferred language to use for strings returned by this method.
1370 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.
1371
1372Returns:
1373 An object of the form:
1374
1375 { # This is a JSON template for a rematch response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 &quot;kind&quot;: &quot;games#turnBasedMatchRematch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchRematch.
1377 &quot;previousMatch&quot;: { # 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.
1378 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1379 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1380 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1381 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1382 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1383 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001384 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1386 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1387 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1388 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001389 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001390 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1391 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1392 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1393 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001394 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 &quot;description&quot;: &quot;A String&quot;, # 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.
1396 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1397 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1398 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1399 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1400 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1401 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1402 },
1403 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1404 &quot;matchNumber&quot;: 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.
1405 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1406 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001407 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1409 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1410 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1411 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1412 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1413 },
1414 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1415 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1416 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1417 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1418 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1419 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1420 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1421 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1422 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1423 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1424 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1425 &quot;level&quot;: 42, # The level for the user.
1426 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1427 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1428 },
1429 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1430 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1431 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1432 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1433 &quot;level&quot;: 42, # The level for the user.
1434 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1435 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1436 },
1437 },
1438 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1439 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1440 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1441 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1442 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1443 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1444 },
1445 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1446 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1447 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1448 },
1449 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1450 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1451 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1452 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1453 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1454 &quot;profileVisible&quot;: True or False,
1455 },
1456 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1457 },
1458 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001459 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001460 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1461 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1462 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1463 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1464 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1465 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1466 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001467 },
1468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1470 &quot;previousMatchData&quot;: { # 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.
1471 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1472 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1473 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001474 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1476 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001477 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1479 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1480 &quot;placing&quot;: 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.
1481 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001482 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001483 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1484 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1485 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1486 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1487 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1488 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001489 },
1490 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001491 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001492 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1494 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1495 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1496 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1497 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1498 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1499 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1500 # Possible values are:
1501 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1502 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1503 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1504 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1505 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1506 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001507 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001508 &quot;rematch&quot;: { # 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.
1509 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1510 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1511 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1512 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1513 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1514 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001515 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001516 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1517 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1518 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1519 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001520 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1522 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1523 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1524 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001525 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;description&quot;: &quot;A String&quot;, # 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.
1527 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1528 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1529 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1530 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1531 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1532 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1533 },
1534 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1535 &quot;matchNumber&quot;: 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.
1536 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1537 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001538 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001539 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1540 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1541 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1542 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1543 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1544 },
1545 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1546 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1547 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1548 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1549 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1550 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1551 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1552 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1553 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1554 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1555 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1556 &quot;level&quot;: 42, # The level for the user.
1557 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1558 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1559 },
1560 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1561 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1562 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1563 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1564 &quot;level&quot;: 42, # The level for the user.
1565 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1566 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1567 },
1568 },
1569 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1570 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1571 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1572 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1573 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1574 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1575 },
1576 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1577 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1578 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1579 },
1580 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1581 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1582 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1583 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1584 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1585 &quot;profileVisible&quot;: True or False,
1586 },
1587 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1588 },
1589 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001590 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1592 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1593 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1594 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1595 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1596 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1597 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001598 },
1599 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1601 &quot;previousMatchData&quot;: { # 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.
1602 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1603 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1604 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001605 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001606 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1607 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001608 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001609 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1610 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1611 &quot;placing&quot;: 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.
1612 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001613 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001614 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1615 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1616 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1617 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1618 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1619 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001620 },
1621 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001623 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1625 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1626 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1627 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1628 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1629 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1630 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1631 # Possible values are:
1632 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1633 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1634 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1635 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1636 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1637 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001638 },
1639 }</pre>
1640</div>
1641
1642<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001643 <code class="details" id="sync">sync(includeMatchData=None, language=None, maxCompletedMatches=None, maxResults=None, pageToken=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001644 <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.
1645
1646Args:
John Asmuth614db982014-04-24 15:46:26 -04001647 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 language: string, The preferred language to use for strings returned by this method.
1649 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.
1650 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.
1651 pageToken: string, The token returned by the previous request.
John Asmuth614db982014-04-24 15:46:26 -04001652
1653Returns:
1654 An object of the form:
1655
1656 { # This is a JSON template for a list of turn-based matches returned from a sync.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &quot;items&quot;: [ # The matches.
John Asmuth614db982014-04-24 15:46:26 -04001658 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001659 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1660 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1661 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1662 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1663 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1664 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001665 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001666 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1667 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1668 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1669 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001670 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1672 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1673 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1674 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 &quot;description&quot;: &quot;A String&quot;, # 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.
1677 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1678 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1679 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1680 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1681 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1682 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1683 },
1684 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1685 &quot;matchNumber&quot;: 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.
1686 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1687 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001688 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001689 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1690 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1691 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1692 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1693 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1694 },
1695 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1696 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1697 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1698 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1699 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1700 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1701 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1702 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1703 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1704 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1705 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1706 &quot;level&quot;: 42, # The level for the user.
1707 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1708 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1709 },
1710 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1711 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1712 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1713 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1714 &quot;level&quot;: 42, # The level for the user.
1715 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1716 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1717 },
1718 },
1719 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1720 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1721 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1722 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1723 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1724 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1725 },
1726 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1727 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1728 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1729 },
1730 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1731 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1732 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1733 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1734 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1735 &quot;profileVisible&quot;: True or False,
1736 },
1737 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1738 },
1739 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001740 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001741 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1742 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1743 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1744 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1745 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1746 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1747 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001748 },
1749 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1751 &quot;previousMatchData&quot;: { # 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.
1752 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1753 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1754 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001755 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001756 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1757 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001758 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1760 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1761 &quot;placing&quot;: 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.
1762 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001763 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001764 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1765 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1766 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1767 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1768 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1769 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001770 },
1771 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001773 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1775 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1776 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1777 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1778 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1779 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1780 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1781 # Possible values are:
1782 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1783 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1784 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1785 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1786 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1787 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001788 },
1789 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 &quot;kind&quot;: &quot;games#turnBasedMatchSync&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchSync.
1791 &quot;moreAvailable&quot;: 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.)
1792 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token for the next page of results.
John Asmuth614db982014-04-24 15:46:26 -04001793 }</pre>
1794</div>
1795
1796<div class="method">
1797 <code class="details" id="sync_next">sync_next(previous_request, previous_response)</code>
1798 <pre>Retrieves the next page of results.
1799
1800Args:
1801 previous_request: The request for the previous page. (required)
1802 previous_response: The response from the request for the previous page. (required)
1803
1804Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001805 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -04001806 page. Returns None if there are no more items in the collection.
1807 </pre>
1808</div>
1809
1810<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001811 <code class="details" id="takeTurn">takeTurn(matchId, body=None, language=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001812 <pre>Commit the results of a player turn.
1813
1814Args:
1815 matchId: string, The ID of the match. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001816 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -04001817 The object takes the form of:
1818
1819{ # This is a JSON template for the object representing a turn.
Bu Sun Kim65020912020-05-20 12:08:20 -07001820 &quot;data&quot;: { # This is a JSON template for sending a turn-based match data object. # The shared game state data after the turn is over.
1821 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1822 &quot;kind&quot;: &quot;games#turnBasedMatchDataRequest&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchDataRequest.
1823 },
1824 &quot;kind&quot;: &quot;games#turnBasedMatchTurn&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchTurn.
1825 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1826 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant who should take their turn next. May be set to the current player&#x27;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.
1827 &quot;results&quot;: [ # The match results for the participants in the match.
John Asmuth614db982014-04-24 15:46:26 -04001828 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001829 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1830 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1831 &quot;placing&quot;: 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.
1832 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001833 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001834 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1835 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1836 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1837 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1838 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1839 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001840 },
1841 ],
John Asmuth614db982014-04-24 15:46:26 -04001842 }
1843
1844 language: string, The preferred language to use for strings returned by this method.
1845
1846Returns:
1847 An object of the form:
1848
1849 { # This is a JSON template for a turn-based match resource object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001850 &quot;applicationId&quot;: &quot;A String&quot;, # The ID of the application being played.
1851 &quot;autoMatchingCriteria&quot;: { # This is a JSON template for an turn-based auto-match criteria object. # Criteria for auto-matching players into this match.
1852 &quot;exclusiveBitmask&quot;: &quot;A String&quot;, # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
1853 &quot;kind&quot;: &quot;games#turnBasedAutoMatchingCriteria&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedAutoMatchingCriteria.
1854 &quot;maxAutoMatchingPlayers&quot;: 42, # The maximum number of players that should be added to the match by auto-matching.
1855 &quot;minAutoMatchingPlayers&quot;: 42, # The minimum number of players that should be added to the match by auto-matching.
John Asmuth614db982014-04-24 15:46:26 -04001856 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001857 &quot;creationDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the match creation.
1858 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1859 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1860 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
John Asmuth614db982014-04-24 15:46:26 -04001861 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;data&quot;: { # This is a JSON template for a turn-based match data object. # The data / game state for this match.
1863 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1864 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1865 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001866 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001867 &quot;description&quot;: &quot;A String&quot;, # 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.
1868 &quot;inviterId&quot;: &quot;A String&quot;, # The ID of the participant that invited the user to the match. Not set if the user was not invited to the match.
1869 &quot;kind&quot;: &quot;games#turnBasedMatch&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatch.
1870 &quot;lastUpdateDetails&quot;: { # This is a JSON template for turn-based match modification metadata. # Details about the last update to the match.
1871 &quot;kind&quot;: &quot;games#turnBasedMatchModification&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchModification.
1872 &quot;modifiedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
1873 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant that modified the match.
1874 },
1875 &quot;matchId&quot;: &quot;A String&quot;, # Globally unique ID for a turn-based match.
1876 &quot;matchNumber&quot;: 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.
1877 &quot;matchVersion&quot;: 42, # The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
1878 &quot;participants&quot;: [ # The participants involved in the match, along with their statuses. Includes participants who have left or declined invitations.
John Asmuth614db982014-04-24 15:46:26 -04001879 { # This is a JSON template for a participant in a turn-based match.
Bu Sun Kim65020912020-05-20 12:08:20 -07001880 &quot;autoMatched&quot;: True or False, # True if this participant was auto-matched with the requesting player.
1881 &quot;autoMatchedPlayer&quot;: { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1882 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image to display for the anonymous player.
1883 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the anonymous player.
1884 &quot;kind&quot;: &quot;games#anonymousPlayer&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
1885 },
1886 &quot;id&quot;: &quot;A String&quot;, # An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.
1887 &quot;kind&quot;: &quot;games#turnBasedMatchParticipant&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchParticipant.
1888 &quot;player&quot;: { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
1889 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
1890 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
1891 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
1892 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
1893 &quot;experienceInfo&quot;: { # This is a JSON template for 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
1894 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
1895 &quot;currentLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The current level of the player.
1896 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1897 &quot;level&quot;: 42, # The level for the user.
1898 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1899 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1900 },
1901 &quot;kind&quot;: &quot;games#playerExperienceInfo&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo.
1902 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1903 &quot;nextLevel&quot;: { # This is a JSON template for 1P/3P metadata about a user&#x27;s level. # The next level of the player. If the current level is the maximum level, this should be same as the current level.
1904 &quot;kind&quot;: &quot;games#playerLevel&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel.
1905 &quot;level&quot;: 42, # The level for the user.
1906 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
1907 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
1908 },
1909 },
1910 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
1911 &quot;kind&quot;: &quot;games#player&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
1912 &quot;lastPlayedWith&quot;: { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members.
1913 &quot;autoMatched&quot;: True or False, # True if the player was auto-matched with the currently authenticated user.
1914 &quot;kind&quot;: &quot;games#played&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#played.
1915 &quot;timeMillis&quot;: &quot;A String&quot;, # The last time the player played the game in milliseconds since the epoch in UTC.
1916 },
1917 &quot;name&quot;: { # An object representation of the individual components of the player&#x27;s name. For some players, these fields may not be present.
1918 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last name.
1919 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first name.
1920 },
1921 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
1922 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
1923 &quot;profileSettings&quot;: { # This is a JSON template for profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile is visible to other players.
1924 &quot;friendsListVisibility&quot;: &quot;A String&quot;, # Whether the player&#x27;s friends list is visible to the game.
1925 &quot;kind&quot;: &quot;games#profileSettings&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings.
1926 &quot;profileVisible&quot;: True or False,
1927 },
1928 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
1929 },
1930 &quot;status&quot;: &quot;A String&quot;, # The status of the participant with respect to the match.
John Asmuth614db982014-04-24 15:46:26 -04001931 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001932 # - &quot;PARTICIPANT_NOT_INVITED_YET&quot; - 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.
1933 # - &quot;PARTICIPANT_INVITED&quot; - The participant has been invited to join the match, but has not yet responded.
1934 # - &quot;PARTICIPANT_JOINED&quot; - The participant has joined the match (either after creating it or accepting an invitation.)
1935 # - &quot;PARTICIPANT_DECLINED&quot; - The participant declined an invitation to join the match.
1936 # - &quot;PARTICIPANT_LEFT&quot; - The participant joined the match and then left it.
1937 # - &quot;PARTICIPANT_FINISHED&quot; - The participant finished playing in the match.
1938 # - &quot;PARTICIPANT_UNRESPONSIVE&quot; - The participant did not take their turn in the allotted time.
John Asmuth614db982014-04-24 15:46:26 -04001939 },
1940 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001941 &quot;pendingParticipantId&quot;: &quot;A String&quot;, # The ID of the participant that is taking a turn.
1942 &quot;previousMatchData&quot;: { # 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.
1943 &quot;data&quot;: &quot;A String&quot;, # The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
1944 &quot;dataAvailable&quot;: True or False, # True if this match has data available but it wasn&#x27;t returned in a list response; fetching the match individually will retrieve this data.
1945 &quot;kind&quot;: &quot;games#turnBasedMatchData&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchData.
John Asmuth614db982014-04-24 15:46:26 -04001946 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001947 &quot;rematchId&quot;: &quot;A String&quot;, # The ID of a rematch of this match. Only set for completed matches that have been rematched.
1948 &quot;results&quot;: [ # The results reported for this match.
John Asmuth614db982014-04-24 15:46:26 -04001949 { # This is a JSON template for a result for a match participant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001950 &quot;kind&quot;: &quot;games#participantResult&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#participantResult.
1951 &quot;participantId&quot;: &quot;A String&quot;, # The ID of the participant.
1952 &quot;placing&quot;: 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.
1953 &quot;result&quot;: &quot;A String&quot;, # The result of the participant for this match.
John Asmuth614db982014-04-24 15:46:26 -04001954 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 # - &quot;MATCH_RESULT_WIN&quot; - The participant won the match.
1956 # - &quot;MATCH_RESULT_LOSS&quot; - The participant lost the match.
1957 # - &quot;MATCH_RESULT_TIE&quot; - The participant tied the match.
1958 # - &quot;MATCH_RESULT_NONE&quot; - There was no winner for the match (nobody wins or loses this kind of game.)
1959 # - &quot;MATCH_RESULT_DISCONNECT&quot; - The participant disconnected / left during the match.
1960 # - &quot;MATCH_RESULT_DISAGREED&quot; - Different clients reported different results for this participant.
John Asmuth614db982014-04-24 15:46:26 -04001961 },
1962 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001963 &quot;status&quot;: &quot;A String&quot;, # The status of the match.
John Asmuth614db982014-04-24 15:46:26 -04001964 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 # - &quot;MATCH_AUTO_MATCHING&quot; - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
1966 # - &quot;MATCH_ACTIVE&quot; - The match has started.
1967 # - &quot;MATCH_COMPLETE&quot; - The match has finished.
1968 # - &quot;MATCH_CANCELED&quot; - The match was canceled.
1969 # - &quot;MATCH_EXPIRED&quot; - The match expired due to inactivity.
1970 # - &quot;MATCH_DELETED&quot; - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
1971 &quot;userMatchStatus&quot;: &quot;A String&quot;, # The status of the current user in the match. Derived from the match type, match status, the user&#x27;s participant status, and the pending participant for the match.
1972 # Possible values are:
1973 # - &quot;USER_INVITED&quot; - The user has been invited to join the match and has not responded yet.
1974 # - &quot;USER_AWAITING_TURN&quot; - The user is waiting for their turn.
1975 # - &quot;USER_TURN&quot; - The user has an action to take in the match.
1976 # - &quot;USER_MATCH_COMPLETED&quot; - The match has ended (it is completed, canceled, or expired.)
1977 &quot;variant&quot;: 42, # The variant / mode of the application being played; can be any integer value, or left blank.
1978 &quot;withParticipantId&quot;: &quot;A String&quot;, # The ID of another participant in the match that can be used when describing the participants the user is playing with.
John Asmuth614db982014-04-24 15:46:26 -04001979 }</pre>
1980</div>
1981
1982</body></html>