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