Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

   1  <?php
   2  /*
   3   * Copyright 2010 Google Inc.
   4   *
   5   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   6   * use this file except in compliance with the License. You may obtain a copy of
   7   * the License at
   8   *
   9   * http://www.apache.org/licenses/LICENSE-2.0
  10   *
  11   * Unless required by applicable law or agreed to in writing, software
  12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14   * License for the specific language governing permissions and limitations under
  15   * the License.
  16   */
  17  
  18  /**
  19   * Service definition for GamesManagement (v1management).
  20   *
  21   * <p>
  22   * The Management API for Google Play Game Services.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  #[AllowDynamicProperties]
  32  class Google_Service_GamesManagement extends Google_Service
  33  {
  34    /** Share your Google+ profile information and view and manage your game activity. */
  35    const GAMES =
  36        "https://www.googleapis.com/auth/games";
  37    /** Know your basic profile info and list of people in your circles.. */
  38    const PLUS_LOGIN =
  39        "https://www.googleapis.com/auth/plus.login";
  40  
  41    public $achievements;
  42    public $applications;
  43    public $events;
  44    public $players;
  45    public $quests;
  46    public $rooms;
  47    public $scores;
  48    public $turnBasedMatches;
  49    
  50  
  51    /**
  52     * Constructs the internal representation of the GamesManagement service.
  53     *
  54     * @param Google_Client $client
  55     */
  56    public function __construct(Google_Client $client)
  57    {
  58      parent::__construct($client);
  59      $this->rootUrl = 'https://www.googleapis.com/';
  60      $this->servicePath = 'games/v1management/';
  61      $this->version = 'v1management';
  62      $this->serviceName = 'gamesManagement';
  63  
  64      $this->achievements = new Google_Service_GamesManagement_Achievements_Resource(
  65          $this,
  66          $this->serviceName,
  67          'achievements',
  68          array(
  69            'methods' => array(
  70              'reset' => array(
  71                'path' => 'achievements/{achievementId}/reset',
  72                'httpMethod' => 'POST',
  73                'parameters' => array(
  74                  'achievementId' => array(
  75                    'location' => 'path',
  76                    'type' => 'string',
  77                    'required' => true,
  78                  ),
  79                ),
  80              ),'resetAll' => array(
  81                'path' => 'achievements/reset',
  82                'httpMethod' => 'POST',
  83                'parameters' => array(),
  84              ),'resetAllForAllPlayers' => array(
  85                'path' => 'achievements/resetAllForAllPlayers',
  86                'httpMethod' => 'POST',
  87                'parameters' => array(),
  88              ),'resetForAllPlayers' => array(
  89                'path' => 'achievements/{achievementId}/resetForAllPlayers',
  90                'httpMethod' => 'POST',
  91                'parameters' => array(
  92                  'achievementId' => array(
  93                    'location' => 'path',
  94                    'type' => 'string',
  95                    'required' => true,
  96                  ),
  97                ),
  98              ),'resetMultipleForAllPlayers' => array(
  99                'path' => 'achievements/resetMultipleForAllPlayers',
 100                'httpMethod' => 'POST',
 101                'parameters' => array(),
 102              ),
 103            )
 104          )
 105      );
 106      $this->applications = new Google_Service_GamesManagement_Applications_Resource(
 107          $this,
 108          $this->serviceName,
 109          'applications',
 110          array(
 111            'methods' => array(
 112              'listHidden' => array(
 113                'path' => 'applications/{applicationId}/players/hidden',
 114                'httpMethod' => 'GET',
 115                'parameters' => array(
 116                  'applicationId' => array(
 117                    'location' => 'path',
 118                    'type' => 'string',
 119                    'required' => true,
 120                  ),
 121                  'pageToken' => array(
 122                    'location' => 'query',
 123                    'type' => 'string',
 124                  ),
 125                  'maxResults' => array(
 126                    'location' => 'query',
 127                    'type' => 'integer',
 128                  ),
 129                ),
 130              ),
 131            )
 132          )
 133      );
 134      $this->events = new Google_Service_GamesManagement_Events_Resource(
 135          $this,
 136          $this->serviceName,
 137          'events',
 138          array(
 139            'methods' => array(
 140              'reset' => array(
 141                'path' => 'events/{eventId}/reset',
 142                'httpMethod' => 'POST',
 143                'parameters' => array(
 144                  'eventId' => array(
 145                    'location' => 'path',
 146                    'type' => 'string',
 147                    'required' => true,
 148                  ),
 149                ),
 150              ),'resetAll' => array(
 151                'path' => 'events/reset',
 152                'httpMethod' => 'POST',
 153                'parameters' => array(),
 154              ),'resetAllForAllPlayers' => array(
 155                'path' => 'events/resetAllForAllPlayers',
 156                'httpMethod' => 'POST',
 157                'parameters' => array(),
 158              ),'resetForAllPlayers' => array(
 159                'path' => 'events/{eventId}/resetForAllPlayers',
 160                'httpMethod' => 'POST',
 161                'parameters' => array(
 162                  'eventId' => array(
 163                    'location' => 'path',
 164                    'type' => 'string',
 165                    'required' => true,
 166                  ),
 167                ),
 168              ),'resetMultipleForAllPlayers' => array(
 169                'path' => 'events/resetMultipleForAllPlayers',
 170                'httpMethod' => 'POST',
 171                'parameters' => array(),
 172              ),
 173            )
 174          )
 175      );
 176      $this->players = new Google_Service_GamesManagement_Players_Resource(
 177          $this,
 178          $this->serviceName,
 179          'players',
 180          array(
 181            'methods' => array(
 182              'hide' => array(
 183                'path' => 'applications/{applicationId}/players/hidden/{playerId}',
 184                'httpMethod' => 'POST',
 185                'parameters' => array(
 186                  'applicationId' => array(
 187                    'location' => 'path',
 188                    'type' => 'string',
 189                    'required' => true,
 190                  ),
 191                  'playerId' => array(
 192                    'location' => 'path',
 193                    'type' => 'string',
 194                    'required' => true,
 195                  ),
 196                ),
 197              ),'unhide' => array(
 198                'path' => 'applications/{applicationId}/players/hidden/{playerId}',
 199                'httpMethod' => 'DELETE',
 200                'parameters' => array(
 201                  'applicationId' => array(
 202                    'location' => 'path',
 203                    'type' => 'string',
 204                    'required' => true,
 205                  ),
 206                  'playerId' => array(
 207                    'location' => 'path',
 208                    'type' => 'string',
 209                    'required' => true,
 210                  ),
 211                ),
 212              ),
 213            )
 214          )
 215      );
 216      $this->quests = new Google_Service_GamesManagement_Quests_Resource(
 217          $this,
 218          $this->serviceName,
 219          'quests',
 220          array(
 221            'methods' => array(
 222              'reset' => array(
 223                'path' => 'quests/{questId}/reset',
 224                'httpMethod' => 'POST',
 225                'parameters' => array(
 226                  'questId' => array(
 227                    'location' => 'path',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                ),
 232              ),'resetAll' => array(
 233                'path' => 'quests/reset',
 234                'httpMethod' => 'POST',
 235                'parameters' => array(),
 236              ),'resetAllForAllPlayers' => array(
 237                'path' => 'quests/resetAllForAllPlayers',
 238                'httpMethod' => 'POST',
 239                'parameters' => array(),
 240              ),'resetForAllPlayers' => array(
 241                'path' => 'quests/{questId}/resetForAllPlayers',
 242                'httpMethod' => 'POST',
 243                'parameters' => array(
 244                  'questId' => array(
 245                    'location' => 'path',
 246                    'type' => 'string',
 247                    'required' => true,
 248                  ),
 249                ),
 250              ),'resetMultipleForAllPlayers' => array(
 251                'path' => 'quests/resetMultipleForAllPlayers',
 252                'httpMethod' => 'POST',
 253                'parameters' => array(),
 254              ),
 255            )
 256          )
 257      );
 258      $this->rooms = new Google_Service_GamesManagement_Rooms_Resource(
 259          $this,
 260          $this->serviceName,
 261          'rooms',
 262          array(
 263            'methods' => array(
 264              'reset' => array(
 265                'path' => 'rooms/reset',
 266                'httpMethod' => 'POST',
 267                'parameters' => array(),
 268              ),'resetForAllPlayers' => array(
 269                'path' => 'rooms/resetForAllPlayers',
 270                'httpMethod' => 'POST',
 271                'parameters' => array(),
 272              ),
 273            )
 274          )
 275      );
 276      $this->scores = new Google_Service_GamesManagement_Scores_Resource(
 277          $this,
 278          $this->serviceName,
 279          'scores',
 280          array(
 281            'methods' => array(
 282              'reset' => array(
 283                'path' => 'leaderboards/{leaderboardId}/scores/reset',
 284                'httpMethod' => 'POST',
 285                'parameters' => array(
 286                  'leaderboardId' => array(
 287                    'location' => 'path',
 288                    'type' => 'string',
 289                    'required' => true,
 290                  ),
 291                ),
 292              ),'resetAll' => array(
 293                'path' => 'scores/reset',
 294                'httpMethod' => 'POST',
 295                'parameters' => array(),
 296              ),'resetAllForAllPlayers' => array(
 297                'path' => 'scores/resetAllForAllPlayers',
 298                'httpMethod' => 'POST',
 299                'parameters' => array(),
 300              ),'resetForAllPlayers' => array(
 301                'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers',
 302                'httpMethod' => 'POST',
 303                'parameters' => array(
 304                  'leaderboardId' => array(
 305                    'location' => 'path',
 306                    'type' => 'string',
 307                    'required' => true,
 308                  ),
 309                ),
 310              ),'resetMultipleForAllPlayers' => array(
 311                'path' => 'scores/resetMultipleForAllPlayers',
 312                'httpMethod' => 'POST',
 313                'parameters' => array(),
 314              ),
 315            )
 316          )
 317      );
 318      $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource(
 319          $this,
 320          $this->serviceName,
 321          'turnBasedMatches',
 322          array(
 323            'methods' => array(
 324              'reset' => array(
 325                'path' => 'turnbasedmatches/reset',
 326                'httpMethod' => 'POST',
 327                'parameters' => array(),
 328              ),'resetForAllPlayers' => array(
 329                'path' => 'turnbasedmatches/resetForAllPlayers',
 330                'httpMethod' => 'POST',
 331                'parameters' => array(),
 332              ),
 333            )
 334          )
 335      );
 336    }
 337  }
 338  
 339  
 340  /**
 341   * The "achievements" collection of methods.
 342   * Typical usage is:
 343   *  <code>
 344   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 345   *   $achievements = $gamesManagementService->achievements;
 346   *  </code>
 347   */
 348  #[AllowDynamicProperties]
 349  class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource
 350  {
 351  
 352    /**
 353     * Resets the achievement with the given ID for the currently authenticated
 354     * player. This method is only accessible to whitelisted tester accounts for
 355     * your application. (achievements.reset)
 356     *
 357     * @param string $achievementId The ID of the achievement used by this method.
 358     * @param array $optParams Optional parameters.
 359     * @return Google_Service_GamesManagement_AchievementResetResponse
 360     */
 361    public function reset($achievementId, $optParams = array())
 362    {
 363      $params = array('achievementId' => $achievementId);
 364      $params = array_merge($params, $optParams);
 365      return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse");
 366    }
 367  
 368    /**
 369     * Resets all achievements for the currently authenticated player for your
 370     * application. This method is only accessible to whitelisted tester accounts
 371     * for your application. (achievements.resetAll)
 372     *
 373     * @param array $optParams Optional parameters.
 374     * @return Google_Service_GamesManagement_AchievementResetAllResponse
 375     */
 376    public function resetAll($optParams = array())
 377    {
 378      $params = array();
 379      $params = array_merge($params, $optParams);
 380      return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
 381    }
 382  
 383    /**
 384     * Resets all draft achievements for all players. This method is only available
 385     * to user accounts for your developer console.
 386     * (achievements.resetAllForAllPlayers)
 387     *
 388     * @param array $optParams Optional parameters.
 389     */
 390    public function resetAllForAllPlayers($optParams = array())
 391    {
 392      $params = array();
 393      $params = array_merge($params, $optParams);
 394      return $this->call('resetAllForAllPlayers', array($params));
 395    }
 396  
 397    /**
 398     * Resets the achievement with the given ID for all players. This method is only
 399     * available to user accounts for your developer console. Only draft
 400     * achievements can be reset. (achievements.resetForAllPlayers)
 401     *
 402     * @param string $achievementId The ID of the achievement used by this method.
 403     * @param array $optParams Optional parameters.
 404     */
 405    public function resetForAllPlayers($achievementId, $optParams = array())
 406    {
 407      $params = array('achievementId' => $achievementId);
 408      $params = array_merge($params, $optParams);
 409      return $this->call('resetForAllPlayers', array($params));
 410    }
 411  
 412    /**
 413     * Resets achievements with the given IDs for all players. This method is only
 414     * available to user accounts for your developer console. Only draft
 415     * achievements may be reset. (achievements.resetMultipleForAllPlayers)
 416     *
 417     * @param Google_AchievementResetMultipleForAllRequest $postBody
 418     * @param array $optParams Optional parameters.
 419     */
 420    public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array())
 421    {
 422      $params = array('postBody' => $postBody);
 423      $params = array_merge($params, $optParams);
 424      return $this->call('resetMultipleForAllPlayers', array($params));
 425    }
 426  }
 427  
 428  /**
 429   * The "applications" collection of methods.
 430   * Typical usage is:
 431   *  <code>
 432   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 433   *   $applications = $gamesManagementService->applications;
 434   *  </code>
 435   */
 436  #[AllowDynamicProperties]
 437  class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource
 438  {
 439  
 440    /**
 441     * Get the list of players hidden from the given application. This method is
 442     * only available to user accounts for your developer console.
 443     * (applications.listHidden)
 444     *
 445     * @param string $applicationId The application ID from the Google Play
 446     * developer console.
 447     * @param array $optParams Optional parameters.
 448     *
 449     * @opt_param string pageToken The token returned by the previous request.
 450     * @opt_param int maxResults The maximum number of player resources to return in
 451     * the response, used for paging. For any response, the actual number of player
 452     * resources returned may be less than the specified maxResults.
 453     * @return Google_Service_GamesManagement_HiddenPlayerList
 454     */
 455    public function listHidden($applicationId, $optParams = array())
 456    {
 457      $params = array('applicationId' => $applicationId);
 458      $params = array_merge($params, $optParams);
 459      return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList");
 460    }
 461  }
 462  
 463  /**
 464   * The "events" collection of methods.
 465   * Typical usage is:
 466   *  <code>
 467   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 468   *   $events = $gamesManagementService->events;
 469   *  </code>
 470   */
 471  #[AllowDynamicProperties]
 472  class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource
 473  {
 474  
 475    /**
 476     * Resets all player progress on the event with the given ID for the currently
 477     * authenticated player. This method is only accessible to whitelisted tester
 478     * accounts for your application. All quests for this player that use the event
 479     * will also be reset. (events.reset)
 480     *
 481     * @param string $eventId The ID of the event.
 482     * @param array $optParams Optional parameters.
 483     */
 484    public function reset($eventId, $optParams = array())
 485    {
 486      $params = array('eventId' => $eventId);
 487      $params = array_merge($params, $optParams);
 488      return $this->call('reset', array($params));
 489    }
 490  
 491    /**
 492     * Resets all player progress on all events for the currently authenticated
 493     * player. This method is only accessible to whitelisted tester accounts for
 494     * your application. All quests for this player will also be reset.
 495     * (events.resetAll)
 496     *
 497     * @param array $optParams Optional parameters.
 498     */
 499    public function resetAll($optParams = array())
 500    {
 501      $params = array();
 502      $params = array_merge($params, $optParams);
 503      return $this->call('resetAll', array($params));
 504    }
 505  
 506    /**
 507     * Resets all draft events for all players. This method is only available to
 508     * user accounts for your developer console. All quests that use any of these
 509     * events will also be reset. (events.resetAllForAllPlayers)
 510     *
 511     * @param array $optParams Optional parameters.
 512     */
 513    public function resetAllForAllPlayers($optParams = array())
 514    {
 515      $params = array();
 516      $params = array_merge($params, $optParams);
 517      return $this->call('resetAllForAllPlayers', array($params));
 518    }
 519  
 520    /**
 521     * Resets the event with the given ID for all players. This method is only
 522     * available to user accounts for your developer console. Only draft events can
 523     * be reset. All quests that use the event will also be reset.
 524     * (events.resetForAllPlayers)
 525     *
 526     * @param string $eventId The ID of the event.
 527     * @param array $optParams Optional parameters.
 528     */
 529    public function resetForAllPlayers($eventId, $optParams = array())
 530    {
 531      $params = array('eventId' => $eventId);
 532      $params = array_merge($params, $optParams);
 533      return $this->call('resetForAllPlayers', array($params));
 534    }
 535  
 536    /**
 537     * Resets events with the given IDs for all players. This method is only
 538     * available to user accounts for your developer console. Only draft events may
 539     * be reset. All quests that use any of the events will also be reset.
 540     * (events.resetMultipleForAllPlayers)
 541     *
 542     * @param Google_EventsResetMultipleForAllRequest $postBody
 543     * @param array $optParams Optional parameters.
 544     */
 545    public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array())
 546    {
 547      $params = array('postBody' => $postBody);
 548      $params = array_merge($params, $optParams);
 549      return $this->call('resetMultipleForAllPlayers', array($params));
 550    }
 551  }
 552  
 553  /**
 554   * The "players" collection of methods.
 555   * Typical usage is:
 556   *  <code>
 557   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 558   *   $players = $gamesManagementService->players;
 559   *  </code>
 560   */
 561  #[AllowDynamicProperties]
 562  class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource
 563  {
 564  
 565    /**
 566     * Hide the given player's leaderboard scores from the given application. This
 567     * method is only available to user accounts for your developer console.
 568     * (players.hide)
 569     *
 570     * @param string $applicationId The application ID from the Google Play
 571     * developer console.
 572     * @param string $playerId A player ID. A value of me may be used in place of
 573     * the authenticated player's ID.
 574     * @param array $optParams Optional parameters.
 575     */
 576    public function hide($applicationId, $playerId, $optParams = array())
 577    {
 578      $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
 579      $params = array_merge($params, $optParams);
 580      return $this->call('hide', array($params));
 581    }
 582  
 583    /**
 584     * Unhide the given player's leaderboard scores from the given application. This
 585     * method is only available to user accounts for your developer console.
 586     * (players.unhide)
 587     *
 588     * @param string $applicationId The application ID from the Google Play
 589     * developer console.
 590     * @param string $playerId A player ID. A value of me may be used in place of
 591     * the authenticated player's ID.
 592     * @param array $optParams Optional parameters.
 593     */
 594    public function unhide($applicationId, $playerId, $optParams = array())
 595    {
 596      $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
 597      $params = array_merge($params, $optParams);
 598      return $this->call('unhide', array($params));
 599    }
 600  }
 601  
 602  /**
 603   * The "quests" collection of methods.
 604   * Typical usage is:
 605   *  <code>
 606   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 607   *   $quests = $gamesManagementService->quests;
 608   *  </code>
 609   */
 610  #[AllowDynamicProperties]
 611  class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource
 612  {
 613  
 614    /**
 615     * Resets all player progress on the quest with the given ID for the currently
 616     * authenticated player. This method is only accessible to whitelisted tester
 617     * accounts for your application. (quests.reset)
 618     *
 619     * @param string $questId The ID of the quest.
 620     * @param array $optParams Optional parameters.
 621     */
 622    public function reset($questId, $optParams = array())
 623    {
 624      $params = array('questId' => $questId);
 625      $params = array_merge($params, $optParams);
 626      return $this->call('reset', array($params));
 627    }
 628  
 629    /**
 630     * Resets all player progress on all quests for the currently authenticated
 631     * player. This method is only accessible to whitelisted tester accounts for
 632     * your application. (quests.resetAll)
 633     *
 634     * @param array $optParams Optional parameters.
 635     */
 636    public function resetAll($optParams = array())
 637    {
 638      $params = array();
 639      $params = array_merge($params, $optParams);
 640      return $this->call('resetAll', array($params));
 641    }
 642  
 643    /**
 644     * Resets all draft quests for all players. This method is only available to
 645     * user accounts for your developer console. (quests.resetAllForAllPlayers)
 646     *
 647     * @param array $optParams Optional parameters.
 648     */
 649    public function resetAllForAllPlayers($optParams = array())
 650    {
 651      $params = array();
 652      $params = array_merge($params, $optParams);
 653      return $this->call('resetAllForAllPlayers', array($params));
 654    }
 655  
 656    /**
 657     * Resets all player progress on the quest with the given ID for all players.
 658     * This method is only available to user accounts for your developer console.
 659     * Only draft quests can be reset. (quests.resetForAllPlayers)
 660     *
 661     * @param string $questId The ID of the quest.
 662     * @param array $optParams Optional parameters.
 663     */
 664    public function resetForAllPlayers($questId, $optParams = array())
 665    {
 666      $params = array('questId' => $questId);
 667      $params = array_merge($params, $optParams);
 668      return $this->call('resetForAllPlayers', array($params));
 669    }
 670  
 671    /**
 672     * Resets quests with the given IDs for all players. This method is only
 673     * available to user accounts for your developer console. Only draft quests may
 674     * be reset. (quests.resetMultipleForAllPlayers)
 675     *
 676     * @param Google_QuestsResetMultipleForAllRequest $postBody
 677     * @param array $optParams Optional parameters.
 678     */
 679    public function resetMultipleForAllPlayers(Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody, $optParams = array())
 680    {
 681      $params = array('postBody' => $postBody);
 682      $params = array_merge($params, $optParams);
 683      return $this->call('resetMultipleForAllPlayers', array($params));
 684    }
 685  }
 686  
 687  /**
 688   * The "rooms" collection of methods.
 689   * Typical usage is:
 690   *  <code>
 691   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 692   *   $rooms = $gamesManagementService->rooms;
 693   *  </code>
 694   */
 695  #[AllowDynamicProperties]
 696  class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource
 697  {
 698  
 699    /**
 700     * Reset all rooms for the currently authenticated player for your application.
 701     * This method is only accessible to whitelisted tester accounts for your
 702     * application. (rooms.reset)
 703     *
 704     * @param array $optParams Optional parameters.
 705     */
 706    public function reset($optParams = array())
 707    {
 708      $params = array();
 709      $params = array_merge($params, $optParams);
 710      return $this->call('reset', array($params));
 711    }
 712  
 713    /**
 714     * Deletes rooms where the only room participants are from whitelisted tester
 715     * accounts for your application. This method is only available to user accounts
 716     * for your developer console. (rooms.resetForAllPlayers)
 717     *
 718     * @param array $optParams Optional parameters.
 719     */
 720    public function resetForAllPlayers($optParams = array())
 721    {
 722      $params = array();
 723      $params = array_merge($params, $optParams);
 724      return $this->call('resetForAllPlayers', array($params));
 725    }
 726  }
 727  
 728  /**
 729   * The "scores" collection of methods.
 730   * Typical usage is:
 731   *  <code>
 732   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 733   *   $scores = $gamesManagementService->scores;
 734   *  </code>
 735   */
 736  #[AllowDynamicProperties]
 737  class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource
 738  {
 739  
 740    /**
 741     * Resets scores for the leaderboard with the given ID for the currently
 742     * authenticated player. This method is only accessible to whitelisted tester
 743     * accounts for your application. (scores.reset)
 744     *
 745     * @param string $leaderboardId The ID of the leaderboard.
 746     * @param array $optParams Optional parameters.
 747     * @return Google_Service_GamesManagement_PlayerScoreResetResponse
 748     */
 749    public function reset($leaderboardId, $optParams = array())
 750    {
 751      $params = array('leaderboardId' => $leaderboardId);
 752      $params = array_merge($params, $optParams);
 753      return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse");
 754    }
 755  
 756    /**
 757     * Resets all scores for all leaderboards for the currently authenticated
 758     * players. This method is only accessible to whitelisted tester accounts for
 759     * your application. (scores.resetAll)
 760     *
 761     * @param array $optParams Optional parameters.
 762     * @return Google_Service_GamesManagement_PlayerScoreResetAllResponse
 763     */
 764    public function resetAll($optParams = array())
 765    {
 766      $params = array();
 767      $params = array_merge($params, $optParams);
 768      return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse");
 769    }
 770  
 771    /**
 772     * Resets scores for all draft leaderboards for all players. This method is only
 773     * available to user accounts for your developer console.
 774     * (scores.resetAllForAllPlayers)
 775     *
 776     * @param array $optParams Optional parameters.
 777     */
 778    public function resetAllForAllPlayers($optParams = array())
 779    {
 780      $params = array();
 781      $params = array_merge($params, $optParams);
 782      return $this->call('resetAllForAllPlayers', array($params));
 783    }
 784  
 785    /**
 786     * Resets scores for the leaderboard with the given ID for all players. This
 787     * method is only available to user accounts for your developer console. Only
 788     * draft leaderboards can be reset. (scores.resetForAllPlayers)
 789     *
 790     * @param string $leaderboardId The ID of the leaderboard.
 791     * @param array $optParams Optional parameters.
 792     */
 793    public function resetForAllPlayers($leaderboardId, $optParams = array())
 794    {
 795      $params = array('leaderboardId' => $leaderboardId);
 796      $params = array_merge($params, $optParams);
 797      return $this->call('resetForAllPlayers', array($params));
 798    }
 799  
 800    /**
 801     * Resets scores for the leaderboards with the given IDs for all players. This
 802     * method is only available to user accounts for your developer console. Only
 803     * draft leaderboards may be reset. (scores.resetMultipleForAllPlayers)
 804     *
 805     * @param Google_ScoresResetMultipleForAllRequest $postBody
 806     * @param array $optParams Optional parameters.
 807     */
 808    public function resetMultipleForAllPlayers(Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody, $optParams = array())
 809    {
 810      $params = array('postBody' => $postBody);
 811      $params = array_merge($params, $optParams);
 812      return $this->call('resetMultipleForAllPlayers', array($params));
 813    }
 814  }
 815  
 816  /**
 817   * The "turnBasedMatches" collection of methods.
 818   * Typical usage is:
 819   *  <code>
 820   *   $gamesManagementService = new Google_Service_GamesManagement(...);
 821   *   $turnBasedMatches = $gamesManagementService->turnBasedMatches;
 822   *  </code>
 823   */
 824  #[AllowDynamicProperties]
 825  class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource
 826  {
 827  
 828    /**
 829     * Reset all turn-based match data for a user. This method is only accessible to
 830     * whitelisted tester accounts for your application. (turnBasedMatches.reset)
 831     *
 832     * @param array $optParams Optional parameters.
 833     */
 834    public function reset($optParams = array())
 835    {
 836      $params = array();
 837      $params = array_merge($params, $optParams);
 838      return $this->call('reset', array($params));
 839    }
 840  
 841    /**
 842     * Deletes turn-based matches where the only match participants are from
 843     * whitelisted tester accounts for your application. This method is only
 844     * available to user accounts for your developer console.
 845     * (turnBasedMatches.resetForAllPlayers)
 846     *
 847     * @param array $optParams Optional parameters.
 848     */
 849    public function resetForAllPlayers($optParams = array())
 850    {
 851      $params = array();
 852      $params = array_merge($params, $optParams);
 853      return $this->call('resetForAllPlayers', array($params));
 854    }
 855  }
 856  
 857  
 858  
 859  
 860  #[AllowDynamicProperties]
 861  class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection
 862  {
 863    protected $collection_key = 'results';
 864    protected $internal_gapi_mappings = array(
 865    );
 866    public $kind;
 867    protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse';
 868    protected $resultsDataType = 'array';
 869  
 870  
 871    public function setKind($kind)
 872    {
 873      $this->kind = $kind;
 874    }
 875    public function getKind()
 876    {
 877      return $this->kind;
 878    }
 879    public function setResults($results)
 880    {
 881      $this->results = $results;
 882    }
 883    public function getResults()
 884    {
 885      return $this->results;
 886    }
 887  }
 888  
 889  #[AllowDynamicProperties]
 890  class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection
 891  {
 892    protected $collection_key = 'achievement_ids';
 893    protected $internal_gapi_mappings = array(
 894          "achievementIds" => "achievement_ids",
 895    );
 896    public $achievementIds;
 897    public $kind;
 898  
 899  
 900    public function setAchievementIds($achievementIds)
 901    {
 902      $this->achievementIds = $achievementIds;
 903    }
 904    public function getAchievementIds()
 905    {
 906      return $this->achievementIds;
 907    }
 908    public function setKind($kind)
 909    {
 910      $this->kind = $kind;
 911    }
 912    public function getKind()
 913    {
 914      return $this->kind;
 915    }
 916  }
 917  
 918  #[AllowDynamicProperties]
 919  class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model
 920  {
 921    protected $internal_gapi_mappings = array(
 922    );
 923    public $currentState;
 924    public $definitionId;
 925    public $kind;
 926    public $updateOccurred;
 927  
 928  
 929    public function setCurrentState($currentState)
 930    {
 931      $this->currentState = $currentState;
 932    }
 933    public function getCurrentState()
 934    {
 935      return $this->currentState;
 936    }
 937    public function setDefinitionId($definitionId)
 938    {
 939      $this->definitionId = $definitionId;
 940    }
 941    public function getDefinitionId()
 942    {
 943      return $this->definitionId;
 944    }
 945    public function setKind($kind)
 946    {
 947      $this->kind = $kind;
 948    }
 949    public function getKind()
 950    {
 951      return $this->kind;
 952    }
 953    public function setUpdateOccurred($updateOccurred)
 954    {
 955      $this->updateOccurred = $updateOccurred;
 956    }
 957    public function getUpdateOccurred()
 958    {
 959      return $this->updateOccurred;
 960    }
 961  }
 962  
 963  #[AllowDynamicProperties]
 964  class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection
 965  {
 966    protected $collection_key = 'event_ids';
 967    protected $internal_gapi_mappings = array(
 968          "eventIds" => "event_ids",
 969    );
 970    public $eventIds;
 971    public $kind;
 972  
 973  
 974    public function setEventIds($eventIds)
 975    {
 976      $this->eventIds = $eventIds;
 977    }
 978    public function getEventIds()
 979    {
 980      return $this->eventIds;
 981    }
 982    public function setKind($kind)
 983    {
 984      $this->kind = $kind;
 985    }
 986    public function getKind()
 987    {
 988      return $this->kind;
 989    }
 990  }
 991  
 992  #[AllowDynamicProperties]
 993  class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model
 994  {
 995    protected $internal_gapi_mappings = array(
 996    );
 997    public $autoMatched;
 998    public $timeMillis;
 999  
1000  
1001    public function setAutoMatched($autoMatched)
1002    {
1003      $this->autoMatched = $autoMatched;
1004    }
1005    public function getAutoMatched()
1006    {
1007      return $this->autoMatched;
1008    }
1009    public function setTimeMillis($timeMillis)
1010    {
1011      $this->timeMillis = $timeMillis;
1012    }
1013    public function getTimeMillis()
1014    {
1015      return $this->timeMillis;
1016    }
1017  }
1018  
1019  #[AllowDynamicProperties]
1020  class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model
1021  {
1022    protected $internal_gapi_mappings = array(
1023    );
1024    public $currentExperiencePoints;
1025    protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource';
1026    protected $currentLevelDataType = '';
1027    public $lastLevelUpTimestampMillis;
1028    protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource';
1029    protected $nextLevelDataType = '';
1030  
1031  
1032    public function setCurrentExperiencePoints($currentExperiencePoints)
1033    {
1034      $this->currentExperiencePoints = $currentExperiencePoints;
1035    }
1036    public function getCurrentExperiencePoints()
1037    {
1038      return $this->currentExperiencePoints;
1039    }
1040    public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel)
1041    {
1042      $this->currentLevel = $currentLevel;
1043    }
1044    public function getCurrentLevel()
1045    {
1046      return $this->currentLevel;
1047    }
1048    public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
1049    {
1050      $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
1051    }
1052    public function getLastLevelUpTimestampMillis()
1053    {
1054      return $this->lastLevelUpTimestampMillis;
1055    }
1056    public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel)
1057    {
1058      $this->nextLevel = $nextLevel;
1059    }
1060    public function getNextLevel()
1061    {
1062      return $this->nextLevel;
1063    }
1064  }
1065  
1066  #[AllowDynamicProperties]
1067  class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model
1068  {
1069    protected $internal_gapi_mappings = array(
1070    );
1071    public $level;
1072    public $maxExperiencePoints;
1073    public $minExperiencePoints;
1074  
1075  
1076    public function setLevel($level)
1077    {
1078      $this->level = $level;
1079    }
1080    public function getLevel()
1081    {
1082      return $this->level;
1083    }
1084    public function setMaxExperiencePoints($maxExperiencePoints)
1085    {
1086      $this->maxExperiencePoints = $maxExperiencePoints;
1087    }
1088    public function getMaxExperiencePoints()
1089    {
1090      return $this->maxExperiencePoints;
1091    }
1092    public function setMinExperiencePoints($minExperiencePoints)
1093    {
1094      $this->minExperiencePoints = $minExperiencePoints;
1095    }
1096    public function getMinExperiencePoints()
1097    {
1098      return $this->minExperiencePoints;
1099    }
1100  }
1101  
1102  #[AllowDynamicProperties]
1103  class Google_Service_GamesManagement_HiddenPlayer extends Google_Model
1104  {
1105    protected $internal_gapi_mappings = array(
1106    );
1107    public $hiddenTimeMillis;
1108    public $kind;
1109    protected $playerType = 'Google_Service_GamesManagement_Player';
1110    protected $playerDataType = '';
1111  
1112  
1113    public function setHiddenTimeMillis($hiddenTimeMillis)
1114    {
1115      $this->hiddenTimeMillis = $hiddenTimeMillis;
1116    }
1117    public function getHiddenTimeMillis()
1118    {
1119      return $this->hiddenTimeMillis;
1120    }
1121    public function setKind($kind)
1122    {
1123      $this->kind = $kind;
1124    }
1125    public function getKind()
1126    {
1127      return $this->kind;
1128    }
1129    public function setPlayer(Google_Service_GamesManagement_Player $player)
1130    {
1131      $this->player = $player;
1132    }
1133    public function getPlayer()
1134    {
1135      return $this->player;
1136    }
1137  }
1138  
1139  #[AllowDynamicProperties]
1140  class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection
1141  {
1142    protected $collection_key = 'items';
1143    protected $internal_gapi_mappings = array(
1144    );
1145    protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer';
1146    protected $itemsDataType = 'array';
1147    public $kind;
1148    public $nextPageToken;
1149  
1150  
1151    public function setItems($items)
1152    {
1153      $this->items = $items;
1154    }
1155    public function getItems()
1156    {
1157      return $this->items;
1158    }
1159    public function setKind($kind)
1160    {
1161      $this->kind = $kind;
1162    }
1163    public function getKind()
1164    {
1165      return $this->kind;
1166    }
1167    public function setNextPageToken($nextPageToken)
1168    {
1169      $this->nextPageToken = $nextPageToken;
1170    }
1171    public function getNextPageToken()
1172    {
1173      return $this->nextPageToken;
1174    }
1175  }
1176  
1177  #[AllowDynamicProperties]
1178  class Google_Service_GamesManagement_Player extends Google_Model
1179  {
1180    protected $internal_gapi_mappings = array(
1181    );
1182    public $avatarImageUrl;
1183    public $bannerUrlLandscape;
1184    public $bannerUrlPortrait;
1185    public $displayName;
1186    protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource';
1187    protected $experienceInfoDataType = '';
1188    public $kind;
1189    protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource';
1190    protected $lastPlayedWithDataType = '';
1191    protected $nameType = 'Google_Service_GamesManagement_PlayerName';
1192    protected $nameDataType = '';
1193    public $playerId;
1194    public $title;
1195  
1196  
1197    public function setAvatarImageUrl($avatarImageUrl)
1198    {
1199      $this->avatarImageUrl = $avatarImageUrl;
1200    }
1201    public function getAvatarImageUrl()
1202    {
1203      return $this->avatarImageUrl;
1204    }
1205    public function setBannerUrlLandscape($bannerUrlLandscape)
1206    {
1207      $this->bannerUrlLandscape = $bannerUrlLandscape;
1208    }
1209    public function getBannerUrlLandscape()
1210    {
1211      return $this->bannerUrlLandscape;
1212    }
1213    public function setBannerUrlPortrait($bannerUrlPortrait)
1214    {
1215      $this->bannerUrlPortrait = $bannerUrlPortrait;
1216    }
1217    public function getBannerUrlPortrait()
1218    {
1219      return $this->bannerUrlPortrait;
1220    }
1221    public function setDisplayName($displayName)
1222    {
1223      $this->displayName = $displayName;
1224    }
1225    public function getDisplayName()
1226    {
1227      return $this->displayName;
1228    }
1229    public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo)
1230    {
1231      $this->experienceInfo = $experienceInfo;
1232    }
1233    public function getExperienceInfo()
1234    {
1235      return $this->experienceInfo;
1236    }
1237    public function setKind($kind)
1238    {
1239      $this->kind = $kind;
1240    }
1241    public function getKind()
1242    {
1243      return $this->kind;
1244    }
1245    public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith)
1246    {
1247      $this->lastPlayedWith = $lastPlayedWith;
1248    }
1249    public function getLastPlayedWith()
1250    {
1251      return $this->lastPlayedWith;
1252    }
1253    public function setName(Google_Service_GamesManagement_PlayerName $name)
1254    {
1255      $this->name = $name;
1256    }
1257    public function getName()
1258    {
1259      return $this->name;
1260    }
1261    public function setPlayerId($playerId)
1262    {
1263      $this->playerId = $playerId;
1264    }
1265    public function getPlayerId()
1266    {
1267      return $this->playerId;
1268    }
1269    public function setTitle($title)
1270    {
1271      $this->title = $title;
1272    }
1273    public function getTitle()
1274    {
1275      return $this->title;
1276    }
1277  }
1278  
1279  #[AllowDynamicProperties]
1280  class Google_Service_GamesManagement_PlayerName extends Google_Model
1281  {
1282    protected $internal_gapi_mappings = array(
1283    );
1284    public $familyName;
1285    public $givenName;
1286  
1287  
1288    public function setFamilyName($familyName)
1289    {
1290      $this->familyName = $familyName;
1291    }
1292    public function getFamilyName()
1293    {
1294      return $this->familyName;
1295    }
1296    public function setGivenName($givenName)
1297    {
1298      $this->givenName = $givenName;
1299    }
1300    public function getGivenName()
1301    {
1302      return $this->givenName;
1303    }
1304  }
1305  
1306  #[AllowDynamicProperties]
1307  class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection
1308  {
1309    protected $collection_key = 'results';
1310    protected $internal_gapi_mappings = array(
1311    );
1312    public $kind;
1313    protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse';
1314    protected $resultsDataType = 'array';
1315  
1316  
1317    public function setKind($kind)
1318    {
1319      $this->kind = $kind;
1320    }
1321    public function getKind()
1322    {
1323      return $this->kind;
1324    }
1325    public function setResults($results)
1326    {
1327      $this->results = $results;
1328    }
1329    public function getResults()
1330    {
1331      return $this->results;
1332    }
1333  }
1334  
1335  #[AllowDynamicProperties]
1336  class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection
1337  {
1338    protected $collection_key = 'resetScoreTimeSpans';
1339    protected $internal_gapi_mappings = array(
1340    );
1341    public $definitionId;
1342    public $kind;
1343    public $resetScoreTimeSpans;
1344  
1345  
1346    public function setDefinitionId($definitionId)
1347    {
1348      $this->definitionId = $definitionId;
1349    }
1350    public function getDefinitionId()
1351    {
1352      return $this->definitionId;
1353    }
1354    public function setKind($kind)
1355    {
1356      $this->kind = $kind;
1357    }
1358    public function getKind()
1359    {
1360      return $this->kind;
1361    }
1362    public function setResetScoreTimeSpans($resetScoreTimeSpans)
1363    {
1364      $this->resetScoreTimeSpans = $resetScoreTimeSpans;
1365    }
1366    public function getResetScoreTimeSpans()
1367    {
1368      return $this->resetScoreTimeSpans;
1369    }
1370  }
1371  
1372  #[AllowDynamicProperties]
1373  class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection
1374  {
1375    protected $collection_key = 'quest_ids';
1376    protected $internal_gapi_mappings = array(
1377          "questIds" => "quest_ids",
1378    );
1379    public $kind;
1380    public $questIds;
1381  
1382  
1383    public function setKind($kind)
1384    {
1385      $this->kind = $kind;
1386    }
1387    public function getKind()
1388    {
1389      return $this->kind;
1390    }
1391    public function setQuestIds($questIds)
1392    {
1393      $this->questIds = $questIds;
1394    }
1395    public function getQuestIds()
1396    {
1397      return $this->questIds;
1398    }
1399  }
1400  
1401  #[AllowDynamicProperties]
1402  class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection
1403  {
1404    protected $collection_key = 'leaderboard_ids';
1405    protected $internal_gapi_mappings = array(
1406          "leaderboardIds" => "leaderboard_ids",
1407    );
1408    public $kind;
1409    public $leaderboardIds;
1410  
1411  
1412    public function setKind($kind)
1413    {
1414      $this->kind = $kind;
1415    }
1416    public function getKind()
1417    {
1418      return $this->kind;
1419    }
1420    public function setLeaderboardIds($leaderboardIds)
1421    {
1422      $this->leaderboardIds = $leaderboardIds;
1423    }
1424    public function getLeaderboardIds()
1425    {
1426      return $this->leaderboardIds;
1427    }
1428  }