Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

   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 Games (v1).
  20   *
  21   * <p>
  22   * The 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  class Google_Service_Games extends Google_Service
  32  {
  33    /** View and manage its own configuration data in your Google Drive. */
  34    const DRIVE_APPDATA =
  35        "https://www.googleapis.com/auth/drive.appdata";
  36    /** Share your Google+ profile information and view and manage your game activity. */
  37    const GAMES =
  38        "https://www.googleapis.com/auth/games";
  39    /** Know your basic profile info and list of people in your circles.. */
  40    const PLUS_LOGIN =
  41        "https://www.googleapis.com/auth/plus.login";
  42  
  43    public $achievementDefinitions;
  44    public $achievements;
  45    public $applications;
  46    public $events;
  47    public $leaderboards;
  48    public $metagame;
  49    public $players;
  50    public $pushtokens;
  51    public $questMilestones;
  52    public $quests;
  53    public $revisions;
  54    public $rooms;
  55    public $scores;
  56    public $snapshots;
  57    public $turnBasedMatches;
  58    
  59  
  60    /**
  61     * Constructs the internal representation of the Games service.
  62     *
  63     * @param Google_Client $client
  64     */
  65    public function __construct(Google_Client $client)
  66    {
  67      parent::__construct($client);
  68      $this->rootUrl = 'https://www.googleapis.com/';
  69      $this->servicePath = 'games/v1/';
  70      $this->version = 'v1';
  71      $this->serviceName = 'games';
  72  
  73      $this->achievementDefinitions = new Google_Service_Games_AchievementDefinitions_Resource(
  74          $this,
  75          $this->serviceName,
  76          'achievementDefinitions',
  77          array(
  78            'methods' => array(
  79              'list' => array(
  80                'path' => 'achievements',
  81                'httpMethod' => 'GET',
  82                'parameters' => array(
  83                  'pageToken' => array(
  84                    'location' => 'query',
  85                    'type' => 'string',
  86                  ),
  87                  'maxResults' => array(
  88                    'location' => 'query',
  89                    'type' => 'integer',
  90                  ),
  91                  'language' => array(
  92                    'location' => 'query',
  93                    'type' => 'string',
  94                  ),
  95                ),
  96              ),
  97            )
  98          )
  99      );
 100      $this->achievements = new Google_Service_Games_Achievements_Resource(
 101          $this,
 102          $this->serviceName,
 103          'achievements',
 104          array(
 105            'methods' => array(
 106              'increment' => array(
 107                'path' => 'achievements/{achievementId}/increment',
 108                'httpMethod' => 'POST',
 109                'parameters' => array(
 110                  'achievementId' => array(
 111                    'location' => 'path',
 112                    'type' => 'string',
 113                    'required' => true,
 114                  ),
 115                  'stepsToIncrement' => array(
 116                    'location' => 'query',
 117                    'type' => 'integer',
 118                    'required' => true,
 119                  ),
 120                  'requestId' => array(
 121                    'location' => 'query',
 122                    'type' => 'string',
 123                  ),
 124                ),
 125              ),'list' => array(
 126                'path' => 'players/{playerId}/achievements',
 127                'httpMethod' => 'GET',
 128                'parameters' => array(
 129                  'playerId' => array(
 130                    'location' => 'path',
 131                    'type' => 'string',
 132                    'required' => true,
 133                  ),
 134                  'pageToken' => array(
 135                    'location' => 'query',
 136                    'type' => 'string',
 137                  ),
 138                  'state' => array(
 139                    'location' => 'query',
 140                    'type' => 'string',
 141                  ),
 142                  'maxResults' => array(
 143                    'location' => 'query',
 144                    'type' => 'integer',
 145                  ),
 146                  'language' => array(
 147                    'location' => 'query',
 148                    'type' => 'string',
 149                  ),
 150                ),
 151              ),'reveal' => array(
 152                'path' => 'achievements/{achievementId}/reveal',
 153                'httpMethod' => 'POST',
 154                'parameters' => array(
 155                  'achievementId' => array(
 156                    'location' => 'path',
 157                    'type' => 'string',
 158                    'required' => true,
 159                  ),
 160                ),
 161              ),'setStepsAtLeast' => array(
 162                'path' => 'achievements/{achievementId}/setStepsAtLeast',
 163                'httpMethod' => 'POST',
 164                'parameters' => array(
 165                  'achievementId' => array(
 166                    'location' => 'path',
 167                    'type' => 'string',
 168                    'required' => true,
 169                  ),
 170                  'steps' => array(
 171                    'location' => 'query',
 172                    'type' => 'integer',
 173                    'required' => true,
 174                  ),
 175                ),
 176              ),'unlock' => array(
 177                'path' => 'achievements/{achievementId}/unlock',
 178                'httpMethod' => 'POST',
 179                'parameters' => array(
 180                  'achievementId' => array(
 181                    'location' => 'path',
 182                    'type' => 'string',
 183                    'required' => true,
 184                  ),
 185                ),
 186              ),'updateMultiple' => array(
 187                'path' => 'achievements/updateMultiple',
 188                'httpMethod' => 'POST',
 189                'parameters' => array(),
 190              ),
 191            )
 192          )
 193      );
 194      $this->applications = new Google_Service_Games_Applications_Resource(
 195          $this,
 196          $this->serviceName,
 197          'applications',
 198          array(
 199            'methods' => array(
 200              'get' => array(
 201                'path' => 'applications/{applicationId}',
 202                'httpMethod' => 'GET',
 203                'parameters' => array(
 204                  'applicationId' => array(
 205                    'location' => 'path',
 206                    'type' => 'string',
 207                    'required' => true,
 208                  ),
 209                  'platformType' => array(
 210                    'location' => 'query',
 211                    'type' => 'string',
 212                  ),
 213                  'language' => array(
 214                    'location' => 'query',
 215                    'type' => 'string',
 216                  ),
 217                ),
 218              ),'played' => array(
 219                'path' => 'applications/played',
 220                'httpMethod' => 'POST',
 221                'parameters' => array(),
 222              ),
 223            )
 224          )
 225      );
 226      $this->events = new Google_Service_Games_Events_Resource(
 227          $this,
 228          $this->serviceName,
 229          'events',
 230          array(
 231            'methods' => array(
 232              'listByPlayer' => array(
 233                'path' => 'events',
 234                'httpMethod' => 'GET',
 235                'parameters' => array(
 236                  'pageToken' => array(
 237                    'location' => 'query',
 238                    'type' => 'string',
 239                  ),
 240                  'maxResults' => array(
 241                    'location' => 'query',
 242                    'type' => 'integer',
 243                  ),
 244                  'language' => array(
 245                    'location' => 'query',
 246                    'type' => 'string',
 247                  ),
 248                ),
 249              ),'listDefinitions' => array(
 250                'path' => 'eventDefinitions',
 251                'httpMethod' => 'GET',
 252                'parameters' => array(
 253                  'pageToken' => array(
 254                    'location' => 'query',
 255                    'type' => 'string',
 256                  ),
 257                  'maxResults' => array(
 258                    'location' => 'query',
 259                    'type' => 'integer',
 260                  ),
 261                  'language' => array(
 262                    'location' => 'query',
 263                    'type' => 'string',
 264                  ),
 265                ),
 266              ),'record' => array(
 267                'path' => 'events',
 268                'httpMethod' => 'POST',
 269                'parameters' => array(
 270                  'language' => array(
 271                    'location' => 'query',
 272                    'type' => 'string',
 273                  ),
 274                ),
 275              ),
 276            )
 277          )
 278      );
 279      $this->leaderboards = new Google_Service_Games_Leaderboards_Resource(
 280          $this,
 281          $this->serviceName,
 282          'leaderboards',
 283          array(
 284            'methods' => array(
 285              'get' => array(
 286                'path' => 'leaderboards/{leaderboardId}',
 287                'httpMethod' => 'GET',
 288                'parameters' => array(
 289                  'leaderboardId' => array(
 290                    'location' => 'path',
 291                    'type' => 'string',
 292                    'required' => true,
 293                  ),
 294                  'language' => array(
 295                    'location' => 'query',
 296                    'type' => 'string',
 297                  ),
 298                ),
 299              ),'list' => array(
 300                'path' => 'leaderboards',
 301                'httpMethod' => 'GET',
 302                'parameters' => array(
 303                  'pageToken' => array(
 304                    'location' => 'query',
 305                    'type' => 'string',
 306                  ),
 307                  'maxResults' => array(
 308                    'location' => 'query',
 309                    'type' => 'integer',
 310                  ),
 311                  'language' => array(
 312                    'location' => 'query',
 313                    'type' => 'string',
 314                  ),
 315                ),
 316              ),
 317            )
 318          )
 319      );
 320      $this->metagame = new Google_Service_Games_Metagame_Resource(
 321          $this,
 322          $this->serviceName,
 323          'metagame',
 324          array(
 325            'methods' => array(
 326              'getMetagameConfig' => array(
 327                'path' => 'metagameConfig',
 328                'httpMethod' => 'GET',
 329                'parameters' => array(),
 330              ),'listCategoriesByPlayer' => array(
 331                'path' => 'players/{playerId}/categories/{collection}',
 332                'httpMethod' => 'GET',
 333                'parameters' => array(
 334                  'playerId' => array(
 335                    'location' => 'path',
 336                    'type' => 'string',
 337                    'required' => true,
 338                  ),
 339                  'collection' => array(
 340                    'location' => 'path',
 341                    'type' => 'string',
 342                    'required' => true,
 343                  ),
 344                  'pageToken' => array(
 345                    'location' => 'query',
 346                    'type' => 'string',
 347                  ),
 348                  'maxResults' => array(
 349                    'location' => 'query',
 350                    'type' => 'integer',
 351                  ),
 352                  'language' => array(
 353                    'location' => 'query',
 354                    'type' => 'string',
 355                  ),
 356                ),
 357              ),
 358            )
 359          )
 360      );
 361      $this->players = new Google_Service_Games_Players_Resource(
 362          $this,
 363          $this->serviceName,
 364          'players',
 365          array(
 366            'methods' => array(
 367              'get' => array(
 368                'path' => 'players/{playerId}',
 369                'httpMethod' => 'GET',
 370                'parameters' => array(
 371                  'playerId' => array(
 372                    'location' => 'path',
 373                    'type' => 'string',
 374                    'required' => true,
 375                  ),
 376                  'language' => array(
 377                    'location' => 'query',
 378                    'type' => 'string',
 379                  ),
 380                ),
 381              ),'list' => array(
 382                'path' => 'players/me/players/{collection}',
 383                'httpMethod' => 'GET',
 384                'parameters' => array(
 385                  'collection' => array(
 386                    'location' => 'path',
 387                    'type' => 'string',
 388                    'required' => true,
 389                  ),
 390                  'pageToken' => array(
 391                    'location' => 'query',
 392                    'type' => 'string',
 393                  ),
 394                  'maxResults' => array(
 395                    'location' => 'query',
 396                    'type' => 'integer',
 397                  ),
 398                  'language' => array(
 399                    'location' => 'query',
 400                    'type' => 'string',
 401                  ),
 402                ),
 403              ),
 404            )
 405          )
 406      );
 407      $this->pushtokens = new Google_Service_Games_Pushtokens_Resource(
 408          $this,
 409          $this->serviceName,
 410          'pushtokens',
 411          array(
 412            'methods' => array(
 413              'remove' => array(
 414                'path' => 'pushtokens/remove',
 415                'httpMethod' => 'POST',
 416                'parameters' => array(),
 417              ),'update' => array(
 418                'path' => 'pushtokens',
 419                'httpMethod' => 'PUT',
 420                'parameters' => array(),
 421              ),
 422            )
 423          )
 424      );
 425      $this->questMilestones = new Google_Service_Games_QuestMilestones_Resource(
 426          $this,
 427          $this->serviceName,
 428          'questMilestones',
 429          array(
 430            'methods' => array(
 431              'claim' => array(
 432                'path' => 'quests/{questId}/milestones/{milestoneId}/claim',
 433                'httpMethod' => 'PUT',
 434                'parameters' => array(
 435                  'questId' => array(
 436                    'location' => 'path',
 437                    'type' => 'string',
 438                    'required' => true,
 439                  ),
 440                  'milestoneId' => array(
 441                    'location' => 'path',
 442                    'type' => 'string',
 443                    'required' => true,
 444                  ),
 445                  'requestId' => array(
 446                    'location' => 'query',
 447                    'type' => 'string',
 448                    'required' => true,
 449                  ),
 450                ),
 451              ),
 452            )
 453          )
 454      );
 455      $this->quests = new Google_Service_Games_Quests_Resource(
 456          $this,
 457          $this->serviceName,
 458          'quests',
 459          array(
 460            'methods' => array(
 461              'accept' => array(
 462                'path' => 'quests/{questId}/accept',
 463                'httpMethod' => 'POST',
 464                'parameters' => array(
 465                  'questId' => array(
 466                    'location' => 'path',
 467                    'type' => 'string',
 468                    'required' => true,
 469                  ),
 470                  'language' => array(
 471                    'location' => 'query',
 472                    'type' => 'string',
 473                  ),
 474                ),
 475              ),'list' => array(
 476                'path' => 'players/{playerId}/quests',
 477                'httpMethod' => 'GET',
 478                'parameters' => array(
 479                  'playerId' => array(
 480                    'location' => 'path',
 481                    'type' => 'string',
 482                    'required' => true,
 483                  ),
 484                  'pageToken' => array(
 485                    'location' => 'query',
 486                    'type' => 'string',
 487                  ),
 488                  'maxResults' => array(
 489                    'location' => 'query',
 490                    'type' => 'integer',
 491                  ),
 492                  'language' => array(
 493                    'location' => 'query',
 494                    'type' => 'string',
 495                  ),
 496                ),
 497              ),
 498            )
 499          )
 500      );
 501      $this->revisions = new Google_Service_Games_Revisions_Resource(
 502          $this,
 503          $this->serviceName,
 504          'revisions',
 505          array(
 506            'methods' => array(
 507              'check' => array(
 508                'path' => 'revisions/check',
 509                'httpMethod' => 'GET',
 510                'parameters' => array(
 511                  'clientRevision' => array(
 512                    'location' => 'query',
 513                    'type' => 'string',
 514                    'required' => true,
 515                  ),
 516                ),
 517              ),
 518            )
 519          )
 520      );
 521      $this->rooms = new Google_Service_Games_Rooms_Resource(
 522          $this,
 523          $this->serviceName,
 524          'rooms',
 525          array(
 526            'methods' => array(
 527              'create' => array(
 528                'path' => 'rooms/create',
 529                'httpMethod' => 'POST',
 530                'parameters' => array(
 531                  'language' => array(
 532                    'location' => 'query',
 533                    'type' => 'string',
 534                  ),
 535                ),
 536              ),'decline' => array(
 537                'path' => 'rooms/{roomId}/decline',
 538                'httpMethod' => 'POST',
 539                'parameters' => array(
 540                  'roomId' => array(
 541                    'location' => 'path',
 542                    'type' => 'string',
 543                    'required' => true,
 544                  ),
 545                  'language' => array(
 546                    'location' => 'query',
 547                    'type' => 'string',
 548                  ),
 549                ),
 550              ),'dismiss' => array(
 551                'path' => 'rooms/{roomId}/dismiss',
 552                'httpMethod' => 'POST',
 553                'parameters' => array(
 554                  'roomId' => array(
 555                    'location' => 'path',
 556                    'type' => 'string',
 557                    'required' => true,
 558                  ),
 559                ),
 560              ),'get' => array(
 561                'path' => 'rooms/{roomId}',
 562                'httpMethod' => 'GET',
 563                'parameters' => array(
 564                  'roomId' => array(
 565                    'location' => 'path',
 566                    'type' => 'string',
 567                    'required' => true,
 568                  ),
 569                  'language' => array(
 570                    'location' => 'query',
 571                    'type' => 'string',
 572                  ),
 573                ),
 574              ),'join' => array(
 575                'path' => 'rooms/{roomId}/join',
 576                'httpMethod' => 'POST',
 577                'parameters' => array(
 578                  'roomId' => array(
 579                    'location' => 'path',
 580                    'type' => 'string',
 581                    'required' => true,
 582                  ),
 583                  'language' => array(
 584                    'location' => 'query',
 585                    'type' => 'string',
 586                  ),
 587                ),
 588              ),'leave' => array(
 589                'path' => 'rooms/{roomId}/leave',
 590                'httpMethod' => 'POST',
 591                'parameters' => array(
 592                  'roomId' => array(
 593                    'location' => 'path',
 594                    'type' => 'string',
 595                    'required' => true,
 596                  ),
 597                  'language' => array(
 598                    'location' => 'query',
 599                    'type' => 'string',
 600                  ),
 601                ),
 602              ),'list' => array(
 603                'path' => 'rooms',
 604                'httpMethod' => 'GET',
 605                'parameters' => array(
 606                  'pageToken' => array(
 607                    'location' => 'query',
 608                    'type' => 'string',
 609                  ),
 610                  'maxResults' => array(
 611                    'location' => 'query',
 612                    'type' => 'integer',
 613                  ),
 614                  'language' => array(
 615                    'location' => 'query',
 616                    'type' => 'string',
 617                  ),
 618                ),
 619              ),'reportStatus' => array(
 620                'path' => 'rooms/{roomId}/reportstatus',
 621                'httpMethod' => 'POST',
 622                'parameters' => array(
 623                  'roomId' => array(
 624                    'location' => 'path',
 625                    'type' => 'string',
 626                    'required' => true,
 627                  ),
 628                  'language' => array(
 629                    'location' => 'query',
 630                    'type' => 'string',
 631                  ),
 632                ),
 633              ),
 634            )
 635          )
 636      );
 637      $this->scores = new Google_Service_Games_Scores_Resource(
 638          $this,
 639          $this->serviceName,
 640          'scores',
 641          array(
 642            'methods' => array(
 643              'get' => array(
 644                'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}',
 645                'httpMethod' => 'GET',
 646                'parameters' => array(
 647                  'playerId' => array(
 648                    'location' => 'path',
 649                    'type' => 'string',
 650                    'required' => true,
 651                  ),
 652                  'leaderboardId' => array(
 653                    'location' => 'path',
 654                    'type' => 'string',
 655                    'required' => true,
 656                  ),
 657                  'timeSpan' => array(
 658                    'location' => 'path',
 659                    'type' => 'string',
 660                    'required' => true,
 661                  ),
 662                  'includeRankType' => array(
 663                    'location' => 'query',
 664                    'type' => 'string',
 665                  ),
 666                  'language' => array(
 667                    'location' => 'query',
 668                    'type' => 'string',
 669                  ),
 670                  'maxResults' => array(
 671                    'location' => 'query',
 672                    'type' => 'integer',
 673                  ),
 674                  'pageToken' => array(
 675                    'location' => 'query',
 676                    'type' => 'string',
 677                  ),
 678                ),
 679              ),'list' => array(
 680                'path' => 'leaderboards/{leaderboardId}/scores/{collection}',
 681                'httpMethod' => 'GET',
 682                'parameters' => array(
 683                  'leaderboardId' => array(
 684                    'location' => 'path',
 685                    'type' => 'string',
 686                    'required' => true,
 687                  ),
 688                  'collection' => array(
 689                    'location' => 'path',
 690                    'type' => 'string',
 691                    'required' => true,
 692                  ),
 693                  'timeSpan' => array(
 694                    'location' => 'query',
 695                    'type' => 'string',
 696                    'required' => true,
 697                  ),
 698                  'language' => array(
 699                    'location' => 'query',
 700                    'type' => 'string',
 701                  ),
 702                  'maxResults' => array(
 703                    'location' => 'query',
 704                    'type' => 'integer',
 705                  ),
 706                  'pageToken' => array(
 707                    'location' => 'query',
 708                    'type' => 'string',
 709                  ),
 710                ),
 711              ),'listWindow' => array(
 712                'path' => 'leaderboards/{leaderboardId}/window/{collection}',
 713                'httpMethod' => 'GET',
 714                'parameters' => array(
 715                  'leaderboardId' => array(
 716                    'location' => 'path',
 717                    'type' => 'string',
 718                    'required' => true,
 719                  ),
 720                  'collection' => array(
 721                    'location' => 'path',
 722                    'type' => 'string',
 723                    'required' => true,
 724                  ),
 725                  'timeSpan' => array(
 726                    'location' => 'query',
 727                    'type' => 'string',
 728                    'required' => true,
 729                  ),
 730                  'language' => array(
 731                    'location' => 'query',
 732                    'type' => 'string',
 733                  ),
 734                  'returnTopIfAbsent' => array(
 735                    'location' => 'query',
 736                    'type' => 'boolean',
 737                  ),
 738                  'resultsAbove' => array(
 739                    'location' => 'query',
 740                    'type' => 'integer',
 741                  ),
 742                  'maxResults' => array(
 743                    'location' => 'query',
 744                    'type' => 'integer',
 745                  ),
 746                  'pageToken' => array(
 747                    'location' => 'query',
 748                    'type' => 'string',
 749                  ),
 750                ),
 751              ),'submit' => array(
 752                'path' => 'leaderboards/{leaderboardId}/scores',
 753                'httpMethod' => 'POST',
 754                'parameters' => array(
 755                  'leaderboardId' => array(
 756                    'location' => 'path',
 757                    'type' => 'string',
 758                    'required' => true,
 759                  ),
 760                  'score' => array(
 761                    'location' => 'query',
 762                    'type' => 'string',
 763                    'required' => true,
 764                  ),
 765                  'language' => array(
 766                    'location' => 'query',
 767                    'type' => 'string',
 768                  ),
 769                  'scoreTag' => array(
 770                    'location' => 'query',
 771                    'type' => 'string',
 772                  ),
 773                ),
 774              ),'submitMultiple' => array(
 775                'path' => 'leaderboards/scores',
 776                'httpMethod' => 'POST',
 777                'parameters' => array(
 778                  'language' => array(
 779                    'location' => 'query',
 780                    'type' => 'string',
 781                  ),
 782                ),
 783              ),
 784            )
 785          )
 786      );
 787      $this->snapshots = new Google_Service_Games_Snapshots_Resource(
 788          $this,
 789          $this->serviceName,
 790          'snapshots',
 791          array(
 792            'methods' => array(
 793              'get' => array(
 794                'path' => 'snapshots/{snapshotId}',
 795                'httpMethod' => 'GET',
 796                'parameters' => array(
 797                  'snapshotId' => array(
 798                    'location' => 'path',
 799                    'type' => 'string',
 800                    'required' => true,
 801                  ),
 802                  'language' => array(
 803                    'location' => 'query',
 804                    'type' => 'string',
 805                  ),
 806                ),
 807              ),'list' => array(
 808                'path' => 'players/{playerId}/snapshots',
 809                'httpMethod' => 'GET',
 810                'parameters' => array(
 811                  'playerId' => array(
 812                    'location' => 'path',
 813                    'type' => 'string',
 814                    'required' => true,
 815                  ),
 816                  'pageToken' => array(
 817                    'location' => 'query',
 818                    'type' => 'string',
 819                  ),
 820                  'maxResults' => array(
 821                    'location' => 'query',
 822                    'type' => 'integer',
 823                  ),
 824                  'language' => array(
 825                    'location' => 'query',
 826                    'type' => 'string',
 827                  ),
 828                ),
 829              ),
 830            )
 831          )
 832      );
 833      $this->turnBasedMatches = new Google_Service_Games_TurnBasedMatches_Resource(
 834          $this,
 835          $this->serviceName,
 836          'turnBasedMatches',
 837          array(
 838            'methods' => array(
 839              'cancel' => array(
 840                'path' => 'turnbasedmatches/{matchId}/cancel',
 841                'httpMethod' => 'PUT',
 842                'parameters' => array(
 843                  'matchId' => array(
 844                    'location' => 'path',
 845                    'type' => 'string',
 846                    'required' => true,
 847                  ),
 848                ),
 849              ),'create' => array(
 850                'path' => 'turnbasedmatches/create',
 851                'httpMethod' => 'POST',
 852                'parameters' => array(
 853                  'language' => array(
 854                    'location' => 'query',
 855                    'type' => 'string',
 856                  ),
 857                ),
 858              ),'decline' => array(
 859                'path' => 'turnbasedmatches/{matchId}/decline',
 860                'httpMethod' => 'PUT',
 861                'parameters' => array(
 862                  'matchId' => array(
 863                    'location' => 'path',
 864                    'type' => 'string',
 865                    'required' => true,
 866                  ),
 867                  'language' => array(
 868                    'location' => 'query',
 869                    'type' => 'string',
 870                  ),
 871                ),
 872              ),'dismiss' => array(
 873                'path' => 'turnbasedmatches/{matchId}/dismiss',
 874                'httpMethod' => 'PUT',
 875                'parameters' => array(
 876                  'matchId' => array(
 877                    'location' => 'path',
 878                    'type' => 'string',
 879                    'required' => true,
 880                  ),
 881                ),
 882              ),'finish' => array(
 883                'path' => 'turnbasedmatches/{matchId}/finish',
 884                'httpMethod' => 'PUT',
 885                'parameters' => array(
 886                  'matchId' => array(
 887                    'location' => 'path',
 888                    'type' => 'string',
 889                    'required' => true,
 890                  ),
 891                  'language' => array(
 892                    'location' => 'query',
 893                    'type' => 'string',
 894                  ),
 895                ),
 896              ),'get' => array(
 897                'path' => 'turnbasedmatches/{matchId}',
 898                'httpMethod' => 'GET',
 899                'parameters' => array(
 900                  'matchId' => array(
 901                    'location' => 'path',
 902                    'type' => 'string',
 903                    'required' => true,
 904                  ),
 905                  'language' => array(
 906                    'location' => 'query',
 907                    'type' => 'string',
 908                  ),
 909                  'includeMatchData' => array(
 910                    'location' => 'query',
 911                    'type' => 'boolean',
 912                  ),
 913                ),
 914              ),'join' => array(
 915                'path' => 'turnbasedmatches/{matchId}/join',
 916                'httpMethod' => 'PUT',
 917                'parameters' => array(
 918                  'matchId' => array(
 919                    'location' => 'path',
 920                    'type' => 'string',
 921                    'required' => true,
 922                  ),
 923                  'language' => array(
 924                    'location' => 'query',
 925                    'type' => 'string',
 926                  ),
 927                ),
 928              ),'leave' => array(
 929                'path' => 'turnbasedmatches/{matchId}/leave',
 930                'httpMethod' => 'PUT',
 931                'parameters' => array(
 932                  'matchId' => array(
 933                    'location' => 'path',
 934                    'type' => 'string',
 935                    'required' => true,
 936                  ),
 937                  'language' => array(
 938                    'location' => 'query',
 939                    'type' => 'string',
 940                  ),
 941                ),
 942              ),'leaveTurn' => array(
 943                'path' => 'turnbasedmatches/{matchId}/leaveTurn',
 944                'httpMethod' => 'PUT',
 945                'parameters' => array(
 946                  'matchId' => array(
 947                    'location' => 'path',
 948                    'type' => 'string',
 949                    'required' => true,
 950                  ),
 951                  'matchVersion' => array(
 952                    'location' => 'query',
 953                    'type' => 'integer',
 954                    'required' => true,
 955                  ),
 956                  'language' => array(
 957                    'location' => 'query',
 958                    'type' => 'string',
 959                  ),
 960                  'pendingParticipantId' => array(
 961                    'location' => 'query',
 962                    'type' => 'string',
 963                  ),
 964                ),
 965              ),'list' => array(
 966                'path' => 'turnbasedmatches',
 967                'httpMethod' => 'GET',
 968                'parameters' => array(
 969                  'pageToken' => array(
 970                    'location' => 'query',
 971                    'type' => 'string',
 972                  ),
 973                  'maxCompletedMatches' => array(
 974                    'location' => 'query',
 975                    'type' => 'integer',
 976                  ),
 977                  'maxResults' => array(
 978                    'location' => 'query',
 979                    'type' => 'integer',
 980                  ),
 981                  'language' => array(
 982                    'location' => 'query',
 983                    'type' => 'string',
 984                  ),
 985                  'includeMatchData' => array(
 986                    'location' => 'query',
 987                    'type' => 'boolean',
 988                  ),
 989                ),
 990              ),'rematch' => array(
 991                'path' => 'turnbasedmatches/{matchId}/rematch',
 992                'httpMethod' => 'POST',
 993                'parameters' => array(
 994                  'matchId' => array(
 995                    'location' => 'path',
 996                    'type' => 'string',
 997                    'required' => true,
 998                  ),
 999                  'requestId' => array(
1000                    'location' => 'query',
1001                    'type' => 'string',
1002                  ),
1003                  'language' => array(
1004                    'location' => 'query',
1005                    'type' => 'string',
1006                  ),
1007                ),
1008              ),'sync' => array(
1009                'path' => 'turnbasedmatches/sync',
1010                'httpMethod' => 'GET',
1011                'parameters' => array(
1012                  'pageToken' => array(
1013                    'location' => 'query',
1014                    'type' => 'string',
1015                  ),
1016                  'maxCompletedMatches' => array(
1017                    'location' => 'query',
1018                    'type' => 'integer',
1019                  ),
1020                  'maxResults' => array(
1021                    'location' => 'query',
1022                    'type' => 'integer',
1023                  ),
1024                  'language' => array(
1025                    'location' => 'query',
1026                    'type' => 'string',
1027                  ),
1028                  'includeMatchData' => array(
1029                    'location' => 'query',
1030                    'type' => 'boolean',
1031                  ),
1032                ),
1033              ),'takeTurn' => array(
1034                'path' => 'turnbasedmatches/{matchId}/turn',
1035                'httpMethod' => 'PUT',
1036                'parameters' => array(
1037                  'matchId' => array(
1038                    'location' => 'path',
1039                    'type' => 'string',
1040                    'required' => true,
1041                  ),
1042                  'language' => array(
1043                    'location' => 'query',
1044                    'type' => 'string',
1045                  ),
1046                ),
1047              ),
1048            )
1049          )
1050      );
1051    }
1052  }
1053  
1054  
1055  /**
1056   * The "achievementDefinitions" collection of methods.
1057   * Typical usage is:
1058   *  <code>
1059   *   $gamesService = new Google_Service_Games(...);
1060   *   $achievementDefinitions = $gamesService->achievementDefinitions;
1061   *  </code>
1062   */
1063  class Google_Service_Games_AchievementDefinitions_Resource extends Google_Service_Resource
1064  {
1065  
1066    /**
1067     * Lists all the achievement definitions for your application.
1068     * (achievementDefinitions.listAchievementDefinitions)
1069     *
1070     * @param array $optParams Optional parameters.
1071     *
1072     * @opt_param string pageToken The token returned by the previous request.
1073     * @opt_param int maxResults The maximum number of achievement resources to
1074     * return in the response, used for paging. For any response, the actual number
1075     * of achievement resources returned may be less than the specified maxResults.
1076     * @opt_param string language The preferred language to use for strings returned
1077     * by this method.
1078     * @return Google_Service_Games_AchievementDefinitionsListResponse
1079     */
1080    public function listAchievementDefinitions($optParams = array())
1081    {
1082      $params = array();
1083      $params = array_merge($params, $optParams);
1084      return $this->call('list', array($params), "Google_Service_Games_AchievementDefinitionsListResponse");
1085    }
1086  }
1087  
1088  /**
1089   * The "achievements" collection of methods.
1090   * Typical usage is:
1091   *  <code>
1092   *   $gamesService = new Google_Service_Games(...);
1093   *   $achievements = $gamesService->achievements;
1094   *  </code>
1095   */
1096  class Google_Service_Games_Achievements_Resource extends Google_Service_Resource
1097  {
1098  
1099    /**
1100     * Increments the steps of the achievement with the given ID for the currently
1101     * authenticated player. (achievements.increment)
1102     *
1103     * @param string $achievementId The ID of the achievement used by this method.
1104     * @param int $stepsToIncrement The number of steps to increment.
1105     * @param array $optParams Optional parameters.
1106     *
1107     * @opt_param string requestId A randomly generated numeric ID for each request
1108     * specified by the caller. This number is used at the server to ensure that the
1109     * request is handled correctly across retries.
1110     * @return Google_Service_Games_AchievementIncrementResponse
1111     */
1112    public function increment($achievementId, $stepsToIncrement, $optParams = array())
1113    {
1114      $params = array('achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement);
1115      $params = array_merge($params, $optParams);
1116      return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse");
1117    }
1118  
1119    /**
1120     * Lists the progress for all your application's achievements for the currently
1121     * authenticated player. (achievements.listAchievements)
1122     *
1123     * @param string $playerId A player ID. A value of me may be used in place of
1124     * the authenticated player's ID.
1125     * @param array $optParams Optional parameters.
1126     *
1127     * @opt_param string pageToken The token returned by the previous request.
1128     * @opt_param string state Tells the server to return only achievements with the
1129     * specified state. If this parameter isn't specified, all achievements are
1130     * returned.
1131     * @opt_param int maxResults The maximum number of achievement resources to
1132     * return in the response, used for paging. For any response, the actual number
1133     * of achievement resources returned may be less than the specified maxResults.
1134     * @opt_param string language The preferred language to use for strings returned
1135     * by this method.
1136     * @return Google_Service_Games_PlayerAchievementListResponse
1137     */
1138    public function listAchievements($playerId, $optParams = array())
1139    {
1140      $params = array('playerId' => $playerId);
1141      $params = array_merge($params, $optParams);
1142      return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse");
1143    }
1144  
1145    /**
1146     * Sets the state of the achievement with the given ID to REVEALED for the
1147     * currently authenticated player. (achievements.reveal)
1148     *
1149     * @param string $achievementId The ID of the achievement used by this method.
1150     * @param array $optParams Optional parameters.
1151     * @return Google_Service_Games_AchievementRevealResponse
1152     */
1153    public function reveal($achievementId, $optParams = array())
1154    {
1155      $params = array('achievementId' => $achievementId);
1156      $params = array_merge($params, $optParams);
1157      return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse");
1158    }
1159  
1160    /**
1161     * Sets the steps for the currently authenticated player towards unlocking an
1162     * achievement. If the steps parameter is less than the current number of steps
1163     * that the player already gained for the achievement, the achievement is not
1164     * modified. (achievements.setStepsAtLeast)
1165     *
1166     * @param string $achievementId The ID of the achievement used by this method.
1167     * @param int $steps The minimum value to set the steps to.
1168     * @param array $optParams Optional parameters.
1169     * @return Google_Service_Games_AchievementSetStepsAtLeastResponse
1170     */
1171    public function setStepsAtLeast($achievementId, $steps, $optParams = array())
1172    {
1173      $params = array('achievementId' => $achievementId, 'steps' => $steps);
1174      $params = array_merge($params, $optParams);
1175      return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse");
1176    }
1177  
1178    /**
1179     * Unlocks this achievement for the currently authenticated player.
1180     * (achievements.unlock)
1181     *
1182     * @param string $achievementId The ID of the achievement used by this method.
1183     * @param array $optParams Optional parameters.
1184     * @return Google_Service_Games_AchievementUnlockResponse
1185     */
1186    public function unlock($achievementId, $optParams = array())
1187    {
1188      $params = array('achievementId' => $achievementId);
1189      $params = array_merge($params, $optParams);
1190      return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse");
1191    }
1192  
1193    /**
1194     * Updates multiple achievements for the currently authenticated player.
1195     * (achievements.updateMultiple)
1196     *
1197     * @param Google_AchievementUpdateMultipleRequest $postBody
1198     * @param array $optParams Optional parameters.
1199     * @return Google_Service_Games_AchievementUpdateMultipleResponse
1200     */
1201    public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array())
1202    {
1203      $params = array('postBody' => $postBody);
1204      $params = array_merge($params, $optParams);
1205      return $this->call('updateMultiple', array($params), "Google_Service_Games_AchievementUpdateMultipleResponse");
1206    }
1207  }
1208  
1209  /**
1210   * The "applications" collection of methods.
1211   * Typical usage is:
1212   *  <code>
1213   *   $gamesService = new Google_Service_Games(...);
1214   *   $applications = $gamesService->applications;
1215   *  </code>
1216   */
1217  class Google_Service_Games_Applications_Resource extends Google_Service_Resource
1218  {
1219  
1220    /**
1221     * Retrieves the metadata of the application with the given ID. If the requested
1222     * application is not available for the specified platformType, the returned
1223     * response will not include any instance data. (applications.get)
1224     *
1225     * @param string $applicationId The application ID from the Google Play
1226     * developer console.
1227     * @param array $optParams Optional parameters.
1228     *
1229     * @opt_param string platformType Restrict application details returned to the
1230     * specific platform.
1231     * @opt_param string language The preferred language to use for strings returned
1232     * by this method.
1233     * @return Google_Service_Games_Application
1234     */
1235    public function get($applicationId, $optParams = array())
1236    {
1237      $params = array('applicationId' => $applicationId);
1238      $params = array_merge($params, $optParams);
1239      return $this->call('get', array($params), "Google_Service_Games_Application");
1240    }
1241  
1242    /**
1243     * Indicate that the the currently authenticated user is playing your
1244     * application. (applications.played)
1245     *
1246     * @param array $optParams Optional parameters.
1247     */
1248    public function played($optParams = array())
1249    {
1250      $params = array();
1251      $params = array_merge($params, $optParams);
1252      return $this->call('played', array($params));
1253    }
1254  }
1255  
1256  /**
1257   * The "events" collection of methods.
1258   * Typical usage is:
1259   *  <code>
1260   *   $gamesService = new Google_Service_Games(...);
1261   *   $events = $gamesService->events;
1262   *  </code>
1263   */
1264  class Google_Service_Games_Events_Resource extends Google_Service_Resource
1265  {
1266  
1267    /**
1268     * Returns a list showing the current progress on events in this application for
1269     * the currently authenticated user. (events.listByPlayer)
1270     *
1271     * @param array $optParams Optional parameters.
1272     *
1273     * @opt_param string pageToken The token returned by the previous request.
1274     * @opt_param int maxResults The maximum number of events to return in the
1275     * response, used for paging. For any response, the actual number of events to
1276     * return may be less than the specified maxResults.
1277     * @opt_param string language The preferred language to use for strings returned
1278     * by this method.
1279     * @return Google_Service_Games_PlayerEventListResponse
1280     */
1281    public function listByPlayer($optParams = array())
1282    {
1283      $params = array();
1284      $params = array_merge($params, $optParams);
1285      return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse");
1286    }
1287  
1288    /**
1289     * Returns a list of the event definitions in this application.
1290     * (events.listDefinitions)
1291     *
1292     * @param array $optParams Optional parameters.
1293     *
1294     * @opt_param string pageToken The token returned by the previous request.
1295     * @opt_param int maxResults The maximum number of event definitions to return
1296     * in the response, used for paging. For any response, the actual number of
1297     * event definitions to return may be less than the specified maxResults.
1298     * @opt_param string language The preferred language to use for strings returned
1299     * by this method.
1300     * @return Google_Service_Games_EventDefinitionListResponse
1301     */
1302    public function listDefinitions($optParams = array())
1303    {
1304      $params = array();
1305      $params = array_merge($params, $optParams);
1306      return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse");
1307    }
1308  
1309    /**
1310     * Records a batch of changes to the number of times events have occurred for
1311     * the currently authenticated user of this application. (events.record)
1312     *
1313     * @param Google_EventRecordRequest $postBody
1314     * @param array $optParams Optional parameters.
1315     *
1316     * @opt_param string language The preferred language to use for strings returned
1317     * by this method.
1318     * @return Google_Service_Games_EventUpdateResponse
1319     */
1320    public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array())
1321    {
1322      $params = array('postBody' => $postBody);
1323      $params = array_merge($params, $optParams);
1324      return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse");
1325    }
1326  }
1327  
1328  /**
1329   * The "leaderboards" collection of methods.
1330   * Typical usage is:
1331   *  <code>
1332   *   $gamesService = new Google_Service_Games(...);
1333   *   $leaderboards = $gamesService->leaderboards;
1334   *  </code>
1335   */
1336  class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource
1337  {
1338  
1339    /**
1340     * Retrieves the metadata of the leaderboard with the given ID.
1341     * (leaderboards.get)
1342     *
1343     * @param string $leaderboardId The ID of the leaderboard.
1344     * @param array $optParams Optional parameters.
1345     *
1346     * @opt_param string language The preferred language to use for strings returned
1347     * by this method.
1348     * @return Google_Service_Games_Leaderboard
1349     */
1350    public function get($leaderboardId, $optParams = array())
1351    {
1352      $params = array('leaderboardId' => $leaderboardId);
1353      $params = array_merge($params, $optParams);
1354      return $this->call('get', array($params), "Google_Service_Games_Leaderboard");
1355    }
1356  
1357    /**
1358     * Lists all the leaderboard metadata for your application.
1359     * (leaderboards.listLeaderboards)
1360     *
1361     * @param array $optParams Optional parameters.
1362     *
1363     * @opt_param string pageToken The token returned by the previous request.
1364     * @opt_param int maxResults The maximum number of leaderboards to return in the
1365     * response. For any response, the actual number of leaderboards returned may be
1366     * less than the specified maxResults.
1367     * @opt_param string language The preferred language to use for strings returned
1368     * by this method.
1369     * @return Google_Service_Games_LeaderboardListResponse
1370     */
1371    public function listLeaderboards($optParams = array())
1372    {
1373      $params = array();
1374      $params = array_merge($params, $optParams);
1375      return $this->call('list', array($params), "Google_Service_Games_LeaderboardListResponse");
1376    }
1377  }
1378  
1379  /**
1380   * The "metagame" collection of methods.
1381   * Typical usage is:
1382   *  <code>
1383   *   $gamesService = new Google_Service_Games(...);
1384   *   $metagame = $gamesService->metagame;
1385   *  </code>
1386   */
1387  class Google_Service_Games_Metagame_Resource extends Google_Service_Resource
1388  {
1389  
1390    /**
1391     * Return the metagame configuration data for the calling application.
1392     * (metagame.getMetagameConfig)
1393     *
1394     * @param array $optParams Optional parameters.
1395     * @return Google_Service_Games_MetagameConfig
1396     */
1397    public function getMetagameConfig($optParams = array())
1398    {
1399      $params = array();
1400      $params = array_merge($params, $optParams);
1401      return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig");
1402    }
1403  
1404    /**
1405     * List play data aggregated per category for the player corresponding to
1406     * playerId. (metagame.listCategoriesByPlayer)
1407     *
1408     * @param string $playerId A player ID. A value of me may be used in place of
1409     * the authenticated player's ID.
1410     * @param string $collection The collection of categories for which data will be
1411     * returned.
1412     * @param array $optParams Optional parameters.
1413     *
1414     * @opt_param string pageToken The token returned by the previous request.
1415     * @opt_param int maxResults The maximum number of category resources to return
1416     * in the response, used for paging. For any response, the actual number of
1417     * category resources returned may be less than the specified maxResults.
1418     * @opt_param string language The preferred language to use for strings returned
1419     * by this method.
1420     * @return Google_Service_Games_CategoryListResponse
1421     */
1422    public function listCategoriesByPlayer($playerId, $collection, $optParams = array())
1423    {
1424      $params = array('playerId' => $playerId, 'collection' => $collection);
1425      $params = array_merge($params, $optParams);
1426      return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse");
1427    }
1428  }
1429  
1430  /**
1431   * The "players" collection of methods.
1432   * Typical usage is:
1433   *  <code>
1434   *   $gamesService = new Google_Service_Games(...);
1435   *   $players = $gamesService->players;
1436   *  </code>
1437   */
1438  class Google_Service_Games_Players_Resource extends Google_Service_Resource
1439  {
1440  
1441    /**
1442     * Retrieves the Player resource with the given ID. To retrieve the player for
1443     * the currently authenticated user, set playerId to me. (players.get)
1444     *
1445     * @param string $playerId A player ID. A value of me may be used in place of
1446     * the authenticated player's ID.
1447     * @param array $optParams Optional parameters.
1448     *
1449     * @opt_param string language The preferred language to use for strings returned
1450     * by this method.
1451     * @return Google_Service_Games_Player
1452     */
1453    public function get($playerId, $optParams = array())
1454    {
1455      $params = array('playerId' => $playerId);
1456      $params = array_merge($params, $optParams);
1457      return $this->call('get', array($params), "Google_Service_Games_Player");
1458    }
1459  
1460    /**
1461     * Get the collection of players for the currently authenticated user.
1462     * (players.listPlayers)
1463     *
1464     * @param string $collection Collection of players being retrieved
1465     * @param array $optParams Optional parameters.
1466     *
1467     * @opt_param string pageToken The token returned by the previous request.
1468     * @opt_param int maxResults The maximum number of player resources to return in
1469     * the response, used for paging. For any response, the actual number of player
1470     * resources returned may be less than the specified maxResults.
1471     * @opt_param string language The preferred language to use for strings returned
1472     * by this method.
1473     * @return Google_Service_Games_PlayerListResponse
1474     */
1475    public function listPlayers($collection, $optParams = array())
1476    {
1477      $params = array('collection' => $collection);
1478      $params = array_merge($params, $optParams);
1479      return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse");
1480    }
1481  }
1482  
1483  /**
1484   * The "pushtokens" collection of methods.
1485   * Typical usage is:
1486   *  <code>
1487   *   $gamesService = new Google_Service_Games(...);
1488   *   $pushtokens = $gamesService->pushtokens;
1489   *  </code>
1490   */
1491  class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource
1492  {
1493  
1494    /**
1495     * Removes a push token for the current user and application. Removing a non-
1496     * existent push token will report success. (pushtokens.remove)
1497     *
1498     * @param Google_PushTokenId $postBody
1499     * @param array $optParams Optional parameters.
1500     */
1501    public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array())
1502    {
1503      $params = array('postBody' => $postBody);
1504      $params = array_merge($params, $optParams);
1505      return $this->call('remove', array($params));
1506    }
1507  
1508    /**
1509     * Registers a push token for the current user and application.
1510     * (pushtokens.update)
1511     *
1512     * @param Google_PushToken $postBody
1513     * @param array $optParams Optional parameters.
1514     */
1515    public function update(Google_Service_Games_PushToken $postBody, $optParams = array())
1516    {
1517      $params = array('postBody' => $postBody);
1518      $params = array_merge($params, $optParams);
1519      return $this->call('update', array($params));
1520    }
1521  }
1522  
1523  /**
1524   * The "questMilestones" collection of methods.
1525   * Typical usage is:
1526   *  <code>
1527   *   $gamesService = new Google_Service_Games(...);
1528   *   $questMilestones = $gamesService->questMilestones;
1529   *  </code>
1530   */
1531  class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resource
1532  {
1533  
1534    /**
1535     * Report that a reward for the milestone corresponding to milestoneId for the
1536     * quest corresponding to questId has been claimed by the currently authorized
1537     * user. (questMilestones.claim)
1538     *
1539     * @param string $questId The ID of the quest.
1540     * @param string $milestoneId The ID of the milestone.
1541     * @param string $requestId A numeric ID to ensure that the request is handled
1542     * correctly across retries. Your client application must generate this ID
1543     * randomly.
1544     * @param array $optParams Optional parameters.
1545     */
1546    public function claim($questId, $milestoneId, $requestId, $optParams = array())
1547    {
1548      $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId);
1549      $params = array_merge($params, $optParams);
1550      return $this->call('claim', array($params));
1551    }
1552  }
1553  
1554  /**
1555   * The "quests" collection of methods.
1556   * Typical usage is:
1557   *  <code>
1558   *   $gamesService = new Google_Service_Games(...);
1559   *   $quests = $gamesService->quests;
1560   *  </code>
1561   */
1562  class Google_Service_Games_Quests_Resource extends Google_Service_Resource
1563  {
1564  
1565    /**
1566     * Indicates that the currently authorized user will participate in the quest.
1567     * (quests.accept)
1568     *
1569     * @param string $questId The ID of the quest.
1570     * @param array $optParams Optional parameters.
1571     *
1572     * @opt_param string language The preferred language to use for strings returned
1573     * by this method.
1574     * @return Google_Service_Games_Quest
1575     */
1576    public function accept($questId, $optParams = array())
1577    {
1578      $params = array('questId' => $questId);
1579      $params = array_merge($params, $optParams);
1580      return $this->call('accept', array($params), "Google_Service_Games_Quest");
1581    }
1582  
1583    /**
1584     * Get a list of quests for your application and the currently authenticated
1585     * player. (quests.listQuests)
1586     *
1587     * @param string $playerId A player ID. A value of me may be used in place of
1588     * the authenticated player's ID.
1589     * @param array $optParams Optional parameters.
1590     *
1591     * @opt_param string pageToken The token returned by the previous request.
1592     * @opt_param int maxResults The maximum number of quest resources to return in
1593     * the response, used for paging. For any response, the actual number of quest
1594     * resources returned may be less than the specified maxResults. Acceptable
1595     * values are 1 to 50, inclusive. (Default: 50).
1596     * @opt_param string language The preferred language to use for strings returned
1597     * by this method.
1598     * @return Google_Service_Games_QuestListResponse
1599     */
1600    public function listQuests($playerId, $optParams = array())
1601    {
1602      $params = array('playerId' => $playerId);
1603      $params = array_merge($params, $optParams);
1604      return $this->call('list', array($params), "Google_Service_Games_QuestListResponse");
1605    }
1606  }
1607  
1608  /**
1609   * The "revisions" collection of methods.
1610   * Typical usage is:
1611   *  <code>
1612   *   $gamesService = new Google_Service_Games(...);
1613   *   $revisions = $gamesService->revisions;
1614   *  </code>
1615   */
1616  class Google_Service_Games_Revisions_Resource extends Google_Service_Resource
1617  {
1618  
1619    /**
1620     * Checks whether the games client is out of date. (revisions.check)
1621     *
1622     * @param string $clientRevision The revision of the client SDK used by your
1623     * application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of
1624     * PLATFORM_TYPE are:   - "ANDROID" - Client is running the Android SDK.  -
1625     * "IOS" - Client is running the iOS SDK.  - "WEB_APP" - Client is running as a
1626     * Web App.
1627     * @param array $optParams Optional parameters.
1628     * @return Google_Service_Games_RevisionCheckResponse
1629     */
1630    public function check($clientRevision, $optParams = array())
1631    {
1632      $params = array('clientRevision' => $clientRevision);
1633      $params = array_merge($params, $optParams);
1634      return $this->call('check', array($params), "Google_Service_Games_RevisionCheckResponse");
1635    }
1636  }
1637  
1638  /**
1639   * The "rooms" collection of methods.
1640   * Typical usage is:
1641   *  <code>
1642   *   $gamesService = new Google_Service_Games(...);
1643   *   $rooms = $gamesService->rooms;
1644   *  </code>
1645   */
1646  class Google_Service_Games_Rooms_Resource extends Google_Service_Resource
1647  {
1648  
1649    /**
1650     * Create a room. For internal use by the Games SDK only. Calling this method
1651     * directly is unsupported. (rooms.create)
1652     *
1653     * @param Google_RoomCreateRequest $postBody
1654     * @param array $optParams Optional parameters.
1655     *
1656     * @opt_param string language The preferred language to use for strings returned
1657     * by this method.
1658     * @return Google_Service_Games_Room
1659     */
1660    public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array())
1661    {
1662      $params = array('postBody' => $postBody);
1663      $params = array_merge($params, $optParams);
1664      return $this->call('create', array($params), "Google_Service_Games_Room");
1665    }
1666  
1667    /**
1668     * Decline an invitation to join a room. For internal use by the Games SDK only.
1669     * Calling this method directly is unsupported. (rooms.decline)
1670     *
1671     * @param string $roomId The ID of the room.
1672     * @param array $optParams Optional parameters.
1673     *
1674     * @opt_param string language The preferred language to use for strings returned
1675     * by this method.
1676     * @return Google_Service_Games_Room
1677     */
1678    public function decline($roomId, $optParams = array())
1679    {
1680      $params = array('roomId' => $roomId);
1681      $params = array_merge($params, $optParams);
1682      return $this->call('decline', array($params), "Google_Service_Games_Room");
1683    }
1684  
1685    /**
1686     * Dismiss an invitation to join a room. For internal use by the Games SDK only.
1687     * Calling this method directly is unsupported. (rooms.dismiss)
1688     *
1689     * @param string $roomId The ID of the room.
1690     * @param array $optParams Optional parameters.
1691     */
1692    public function dismiss($roomId, $optParams = array())
1693    {
1694      $params = array('roomId' => $roomId);
1695      $params = array_merge($params, $optParams);
1696      return $this->call('dismiss', array($params));
1697    }
1698  
1699    /**
1700     * Get the data for a room. (rooms.get)
1701     *
1702     * @param string $roomId The ID of the room.
1703     * @param array $optParams Optional parameters.
1704     *
1705     * @opt_param string language The preferred language to use for strings returned
1706     * by this method.
1707     * @return Google_Service_Games_Room
1708     */
1709    public function get($roomId, $optParams = array())
1710    {
1711      $params = array('roomId' => $roomId);
1712      $params = array_merge($params, $optParams);
1713      return $this->call('get', array($params), "Google_Service_Games_Room");
1714    }
1715  
1716    /**
1717     * Join a room. For internal use by the Games SDK only. Calling this method
1718     * directly is unsupported. (rooms.join)
1719     *
1720     * @param string $roomId The ID of the room.
1721     * @param Google_RoomJoinRequest $postBody
1722     * @param array $optParams Optional parameters.
1723     *
1724     * @opt_param string language The preferred language to use for strings returned
1725     * by this method.
1726     * @return Google_Service_Games_Room
1727     */
1728    public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array())
1729    {
1730      $params = array('roomId' => $roomId, 'postBody' => $postBody);
1731      $params = array_merge($params, $optParams);
1732      return $this->call('join', array($params), "Google_Service_Games_Room");
1733    }
1734  
1735    /**
1736     * Leave a room. For internal use by the Games SDK only. Calling this method
1737     * directly is unsupported. (rooms.leave)
1738     *
1739     * @param string $roomId The ID of the room.
1740     * @param Google_RoomLeaveRequest $postBody
1741     * @param array $optParams Optional parameters.
1742     *
1743     * @opt_param string language The preferred language to use for strings returned
1744     * by this method.
1745     * @return Google_Service_Games_Room
1746     */
1747    public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array())
1748    {
1749      $params = array('roomId' => $roomId, 'postBody' => $postBody);
1750      $params = array_merge($params, $optParams);
1751      return $this->call('leave', array($params), "Google_Service_Games_Room");
1752    }
1753  
1754    /**
1755     * Returns invitations to join rooms. (rooms.listRooms)
1756     *
1757     * @param array $optParams Optional parameters.
1758     *
1759     * @opt_param string pageToken The token returned by the previous request.
1760     * @opt_param int maxResults The maximum number of rooms to return in the
1761     * response, used for paging. For any response, the actual number of rooms to
1762     * return may be less than the specified maxResults.
1763     * @opt_param string language The preferred language to use for strings returned
1764     * by this method.
1765     * @return Google_Service_Games_RoomList
1766     */
1767    public function listRooms($optParams = array())
1768    {
1769      $params = array();
1770      $params = array_merge($params, $optParams);
1771      return $this->call('list', array($params), "Google_Service_Games_RoomList");
1772    }
1773  
1774    /**
1775     * Updates sent by a client reporting the status of peers in a room. For
1776     * internal use by the Games SDK only. Calling this method directly is
1777     * unsupported. (rooms.reportStatus)
1778     *
1779     * @param string $roomId The ID of the room.
1780     * @param Google_RoomP2PStatuses $postBody
1781     * @param array $optParams Optional parameters.
1782     *
1783     * @opt_param string language The preferred language to use for strings returned
1784     * by this method.
1785     * @return Google_Service_Games_RoomStatus
1786     */
1787    public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array())
1788    {
1789      $params = array('roomId' => $roomId, 'postBody' => $postBody);
1790      $params = array_merge($params, $optParams);
1791      return $this->call('reportStatus', array($params), "Google_Service_Games_RoomStatus");
1792    }
1793  }
1794  
1795  /**
1796   * The "scores" collection of methods.
1797   * Typical usage is:
1798   *  <code>
1799   *   $gamesService = new Google_Service_Games(...);
1800   *   $scores = $gamesService->scores;
1801   *  </code>
1802   */
1803  class Google_Service_Games_Scores_Resource extends Google_Service_Resource
1804  {
1805  
1806    /**
1807     * Get high scores, and optionally ranks, in leaderboards for the currently
1808     * authenticated player. For a specific time span, leaderboardId can be set to
1809     * ALL to retrieve data for all leaderboards in a given time span. NOTE: You
1810     * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request;
1811     * only one parameter may be set to 'ALL'. (scores.get)
1812     *
1813     * @param string $playerId A player ID. A value of me may be used in place of
1814     * the authenticated player's ID.
1815     * @param string $leaderboardId The ID of the leaderboard. Can be set to 'ALL'
1816     * to retrieve data for all leaderboards for this application.
1817     * @param string $timeSpan The time span for the scores and ranks you're
1818     * requesting.
1819     * @param array $optParams Optional parameters.
1820     *
1821     * @opt_param string includeRankType The types of ranks to return. If the
1822     * parameter is omitted, no ranks will be returned.
1823     * @opt_param string language The preferred language to use for strings returned
1824     * by this method.
1825     * @opt_param int maxResults The maximum number of leaderboard scores to return
1826     * in the response. For any response, the actual number of leaderboard scores
1827     * returned may be less than the specified maxResults.
1828     * @opt_param string pageToken The token returned by the previous request.
1829     * @return Google_Service_Games_PlayerLeaderboardScoreListResponse
1830     */
1831    public function get($playerId, $leaderboardId, $timeSpan, $optParams = array())
1832    {
1833      $params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan);
1834      $params = array_merge($params, $optParams);
1835      return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse");
1836    }
1837  
1838    /**
1839     * Lists the scores in a leaderboard, starting from the top. (scores.listScores)
1840     *
1841     * @param string $leaderboardId The ID of the leaderboard.
1842     * @param string $collection The collection of scores you're requesting.
1843     * @param string $timeSpan The time span for the scores and ranks you're
1844     * requesting.
1845     * @param array $optParams Optional parameters.
1846     *
1847     * @opt_param string language The preferred language to use for strings returned
1848     * by this method.
1849     * @opt_param int maxResults The maximum number of leaderboard scores to return
1850     * in the response. For any response, the actual number of leaderboard scores
1851     * returned may be less than the specified maxResults.
1852     * @opt_param string pageToken The token returned by the previous request.
1853     * @return Google_Service_Games_LeaderboardScores
1854     */
1855    public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array())
1856    {
1857      $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan);
1858      $params = array_merge($params, $optParams);
1859      return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores");
1860    }
1861  
1862    /**
1863     * Lists the scores in a leaderboard around (and including) a player's score.
1864     * (scores.listWindow)
1865     *
1866     * @param string $leaderboardId The ID of the leaderboard.
1867     * @param string $collection The collection of scores you're requesting.
1868     * @param string $timeSpan The time span for the scores and ranks you're
1869     * requesting.
1870     * @param array $optParams Optional parameters.
1871     *
1872     * @opt_param string language The preferred language to use for strings returned
1873     * by this method.
1874     * @opt_param bool returnTopIfAbsent True if the top scores should be returned
1875     * when the player is not in the leaderboard. Defaults to true.
1876     * @opt_param int resultsAbove The preferred number of scores to return above
1877     * the player's score. More scores may be returned if the player is at the
1878     * bottom of the leaderboard; fewer may be returned if the player is at the top.
1879     * Must be less than or equal to maxResults.
1880     * @opt_param int maxResults The maximum number of leaderboard scores to return
1881     * in the response. For any response, the actual number of leaderboard scores
1882     * returned may be less than the specified maxResults.
1883     * @opt_param string pageToken The token returned by the previous request.
1884     * @return Google_Service_Games_LeaderboardScores
1885     */
1886    public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array())
1887    {
1888      $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan);
1889      $params = array_merge($params, $optParams);
1890      return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores");
1891    }
1892  
1893    /**
1894     * Submits a score to the specified leaderboard. (scores.submit)
1895     *
1896     * @param string $leaderboardId The ID of the leaderboard.
1897     * @param string $score The score you're submitting. The submitted score is
1898     * ignored if it is worse than a previously submitted score, where worse depends
1899     * on the leaderboard sort order. The meaning of the score value depends on the
1900     * leaderboard format type. For fixed-point, the score represents the raw value.
1901     * For time, the score represents elapsed time in milliseconds. For currency,
1902     * the score represents a value in micro units.
1903     * @param array $optParams Optional parameters.
1904     *
1905     * @opt_param string language The preferred language to use for strings returned
1906     * by this method.
1907     * @opt_param string scoreTag Additional information about the score you're
1908     * submitting. Values must contain no more than 64 URI-safe characters as
1909     * defined by section 2.3 of RFC 3986.
1910     * @return Google_Service_Games_PlayerScoreResponse
1911     */
1912    public function submit($leaderboardId, $score, $optParams = array())
1913    {
1914      $params = array('leaderboardId' => $leaderboardId, 'score' => $score);
1915      $params = array_merge($params, $optParams);
1916      return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse");
1917    }
1918  
1919    /**
1920     * Submits multiple scores to leaderboards. (scores.submitMultiple)
1921     *
1922     * @param Google_PlayerScoreSubmissionList $postBody
1923     * @param array $optParams Optional parameters.
1924     *
1925     * @opt_param string language The preferred language to use for strings returned
1926     * by this method.
1927     * @return Google_Service_Games_PlayerScoreListResponse
1928     */
1929    public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array())
1930    {
1931      $params = array('postBody' => $postBody);
1932      $params = array_merge($params, $optParams);
1933      return $this->call('submitMultiple', array($params), "Google_Service_Games_PlayerScoreListResponse");
1934    }
1935  }
1936  
1937  /**
1938   * The "snapshots" collection of methods.
1939   * Typical usage is:
1940   *  <code>
1941   *   $gamesService = new Google_Service_Games(...);
1942   *   $snapshots = $gamesService->snapshots;
1943   *  </code>
1944   */
1945  class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource
1946  {
1947  
1948    /**
1949     * Retrieves the metadata for a given snapshot ID. (snapshots.get)
1950     *
1951     * @param string $snapshotId The ID of the snapshot.
1952     * @param array $optParams Optional parameters.
1953     *
1954     * @opt_param string language The preferred language to use for strings returned
1955     * by this method.
1956     * @return Google_Service_Games_Snapshot
1957     */
1958    public function get($snapshotId, $optParams = array())
1959    {
1960      $params = array('snapshotId' => $snapshotId);
1961      $params = array_merge($params, $optParams);
1962      return $this->call('get', array($params), "Google_Service_Games_Snapshot");
1963    }
1964  
1965    /**
1966     * Retrieves a list of snapshots created by your application for the player
1967     * corresponding to the player ID. (snapshots.listSnapshots)
1968     *
1969     * @param string $playerId A player ID. A value of me may be used in place of
1970     * the authenticated player's ID.
1971     * @param array $optParams Optional parameters.
1972     *
1973     * @opt_param string pageToken The token returned by the previous request.
1974     * @opt_param int maxResults The maximum number of snapshot resources to return
1975     * in the response, used for paging. For any response, the actual number of
1976     * snapshot resources returned may be less than the specified maxResults.
1977     * @opt_param string language The preferred language to use for strings returned
1978     * by this method.
1979     * @return Google_Service_Games_SnapshotListResponse
1980     */
1981    public function listSnapshots($playerId, $optParams = array())
1982    {
1983      $params = array('playerId' => $playerId);
1984      $params = array_merge($params, $optParams);
1985      return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse");
1986    }
1987  }
1988  
1989  /**
1990   * The "turnBasedMatches" collection of methods.
1991   * Typical usage is:
1992   *  <code>
1993   *   $gamesService = new Google_Service_Games(...);
1994   *   $turnBasedMatches = $gamesService->turnBasedMatches;
1995   *  </code>
1996   */
1997  class Google_Service_Games_TurnBasedMatches_Resource extends Google_Service_Resource
1998  {
1999  
2000    /**
2001     * Cancel a turn-based match. (turnBasedMatches.cancel)
2002     *
2003     * @param string $matchId The ID of the match.
2004     * @param array $optParams Optional parameters.
2005     */
2006    public function cancel($matchId, $optParams = array())
2007    {
2008      $params = array('matchId' => $matchId);
2009      $params = array_merge($params, $optParams);
2010      return $this->call('cancel', array($params));
2011    }
2012  
2013    /**
2014     * Create a turn-based match. (turnBasedMatches.create)
2015     *
2016     * @param Google_TurnBasedMatchCreateRequest $postBody
2017     * @param array $optParams Optional parameters.
2018     *
2019     * @opt_param string language The preferred language to use for strings returned
2020     * by this method.
2021     * @return Google_Service_Games_TurnBasedMatch
2022     */
2023    public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array())
2024    {
2025      $params = array('postBody' => $postBody);
2026      $params = array_merge($params, $optParams);
2027      return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch");
2028    }
2029  
2030    /**
2031     * Decline an invitation to play a turn-based match. (turnBasedMatches.decline)
2032     *
2033     * @param string $matchId The ID of the match.
2034     * @param array $optParams Optional parameters.
2035     *
2036     * @opt_param string language The preferred language to use for strings returned
2037     * by this method.
2038     * @return Google_Service_Games_TurnBasedMatch
2039     */
2040    public function decline($matchId, $optParams = array())
2041    {
2042      $params = array('matchId' => $matchId);
2043      $params = array_merge($params, $optParams);
2044      return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch");
2045    }
2046  
2047    /**
2048     * Dismiss a turn-based match from the match list. The match will no longer show
2049     * up in the list and will not generate notifications.
2050     * (turnBasedMatches.dismiss)
2051     *
2052     * @param string $matchId The ID of the match.
2053     * @param array $optParams Optional parameters.
2054     */
2055    public function dismiss($matchId, $optParams = array())
2056    {
2057      $params = array('matchId' => $matchId);
2058      $params = array_merge($params, $optParams);
2059      return $this->call('dismiss', array($params));
2060    }
2061  
2062    /**
2063     * Finish a turn-based match. Each player should make this call once, after all
2064     * results are in. Only the player whose turn it is may make the first call to
2065     * Finish, and can pass in the final match state. (turnBasedMatches.finish)
2066     *
2067     * @param string $matchId The ID of the match.
2068     * @param Google_TurnBasedMatchResults $postBody
2069     * @param array $optParams Optional parameters.
2070     *
2071     * @opt_param string language The preferred language to use for strings returned
2072     * by this method.
2073     * @return Google_Service_Games_TurnBasedMatch
2074     */
2075    public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array())
2076    {
2077      $params = array('matchId' => $matchId, 'postBody' => $postBody);
2078      $params = array_merge($params, $optParams);
2079      return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch");
2080    }
2081  
2082    /**
2083     * Get the data for a turn-based match. (turnBasedMatches.get)
2084     *
2085     * @param string $matchId The ID of the match.
2086     * @param array $optParams Optional parameters.
2087     *
2088     * @opt_param string language The preferred language to use for strings returned
2089     * by this method.
2090     * @opt_param bool includeMatchData Get match data along with metadata.
2091     * @return Google_Service_Games_TurnBasedMatch
2092     */
2093    public function get($matchId, $optParams = array())
2094    {
2095      $params = array('matchId' => $matchId);
2096      $params = array_merge($params, $optParams);
2097      return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch");
2098    }
2099  
2100    /**
2101     * Join a turn-based match. (turnBasedMatches.join)
2102     *
2103     * @param string $matchId The ID of the match.
2104     * @param array $optParams Optional parameters.
2105     *
2106     * @opt_param string language The preferred language to use for strings returned
2107     * by this method.
2108     * @return Google_Service_Games_TurnBasedMatch
2109     */
2110    public function join($matchId, $optParams = array())
2111    {
2112      $params = array('matchId' => $matchId);
2113      $params = array_merge($params, $optParams);
2114      return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch");
2115    }
2116  
2117    /**
2118     * Leave a turn-based match when it is not the current player's turn, without
2119     * canceling the match. (turnBasedMatches.leave)
2120     *
2121     * @param string $matchId The ID of the match.
2122     * @param array $optParams Optional parameters.
2123     *
2124     * @opt_param string language The preferred language to use for strings returned
2125     * by this method.
2126     * @return Google_Service_Games_TurnBasedMatch
2127     */
2128    public function leave($matchId, $optParams = array())
2129    {
2130      $params = array('matchId' => $matchId);
2131      $params = array_merge($params, $optParams);
2132      return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch");
2133    }
2134  
2135    /**
2136     * Leave a turn-based match during the current player's turn, without canceling
2137     * the match. (turnBasedMatches.leaveTurn)
2138     *
2139     * @param string $matchId The ID of the match.
2140     * @param int $matchVersion The version of the match being updated.
2141     * @param array $optParams Optional parameters.
2142     *
2143     * @opt_param string language The preferred language to use for strings returned
2144     * by this method.
2145     * @opt_param string pendingParticipantId The ID of another participant who
2146     * should take their turn next. If not set, the match will wait for other
2147     * player(s) to join via automatching; this is only valid if automatch criteria
2148     * is set on the match with remaining slots for automatched players.
2149     * @return Google_Service_Games_TurnBasedMatch
2150     */
2151    public function leaveTurn($matchId, $matchVersion, $optParams = array())
2152    {
2153      $params = array('matchId' => $matchId, 'matchVersion' => $matchVersion);
2154      $params = array_merge($params, $optParams);
2155      return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch");
2156    }
2157  
2158    /**
2159     * Returns turn-based matches the player is or was involved in.
2160     * (turnBasedMatches.listTurnBasedMatches)
2161     *
2162     * @param array $optParams Optional parameters.
2163     *
2164     * @opt_param string pageToken The token returned by the previous request.
2165     * @opt_param int maxCompletedMatches The maximum number of completed or
2166     * canceled matches to return in the response. If not set, all matches returned
2167     * could be completed or canceled.
2168     * @opt_param int maxResults The maximum number of matches to return in the
2169     * response, used for paging. For any response, the actual number of matches to
2170     * return may be less than the specified maxResults.
2171     * @opt_param string language The preferred language to use for strings returned
2172     * by this method.
2173     * @opt_param bool includeMatchData True if match data should be returned in the
2174     * response. Note that not all data will necessarily be returned if
2175     * include_match_data is true; the server may decide to only return data for
2176     * some of the matches to limit download size for the client. The remainder of
2177     * the data for these matches will be retrievable on request.
2178     * @return Google_Service_Games_TurnBasedMatchList
2179     */
2180    public function listTurnBasedMatches($optParams = array())
2181    {
2182      $params = array();
2183      $params = array_merge($params, $optParams);
2184      return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList");
2185    }
2186  
2187    /**
2188     * Create a rematch of a match that was previously completed, with the same
2189     * participants. This can be called by only one player on a match still in their
2190     * list; the player must have called Finish first. Returns the newly created
2191     * match; it will be the caller's turn. (turnBasedMatches.rematch)
2192     *
2193     * @param string $matchId The ID of the match.
2194     * @param array $optParams Optional parameters.
2195     *
2196     * @opt_param string requestId A randomly generated numeric ID for each request
2197     * specified by the caller. This number is used at the server to ensure that the
2198     * request is handled correctly across retries.
2199     * @opt_param string language The preferred language to use for strings returned
2200     * by this method.
2201     * @return Google_Service_Games_TurnBasedMatchRematch
2202     */
2203    public function rematch($matchId, $optParams = array())
2204    {
2205      $params = array('matchId' => $matchId);
2206      $params = array_merge($params, $optParams);
2207      return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch");
2208    }
2209  
2210    /**
2211     * Returns turn-based matches the player is or was involved in that changed
2212     * since the last sync call, with the least recent changes coming first. Matches
2213     * that should be removed from the local cache will have a status of
2214     * MATCH_DELETED. (turnBasedMatches.sync)
2215     *
2216     * @param array $optParams Optional parameters.
2217     *
2218     * @opt_param string pageToken The token returned by the previous request.
2219     * @opt_param int maxCompletedMatches The maximum number of completed or
2220     * canceled matches to return in the response. If not set, all matches returned
2221     * could be completed or canceled.
2222     * @opt_param int maxResults The maximum number of matches to return in the
2223     * response, used for paging. For any response, the actual number of matches to
2224     * return may be less than the specified maxResults.
2225     * @opt_param string language The preferred language to use for strings returned
2226     * by this method.
2227     * @opt_param bool includeMatchData True if match data should be returned in the
2228     * response. Note that not all data will necessarily be returned if
2229     * include_match_data is true; the server may decide to only return data for
2230     * some of the matches to limit download size for the client. The remainder of
2231     * the data for these matches will be retrievable on request.
2232     * @return Google_Service_Games_TurnBasedMatchSync
2233     */
2234    public function sync($optParams = array())
2235    {
2236      $params = array();
2237      $params = array_merge($params, $optParams);
2238      return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync");
2239    }
2240  
2241    /**
2242     * Commit the results of a player turn. (turnBasedMatches.takeTurn)
2243     *
2244     * @param string $matchId The ID of the match.
2245     * @param Google_TurnBasedMatchTurn $postBody
2246     * @param array $optParams Optional parameters.
2247     *
2248     * @opt_param string language The preferred language to use for strings returned
2249     * by this method.
2250     * @return Google_Service_Games_TurnBasedMatch
2251     */
2252    public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array())
2253    {
2254      $params = array('matchId' => $matchId, 'postBody' => $postBody);
2255      $params = array_merge($params, $optParams);
2256      return $this->call('takeTurn', array($params), "Google_Service_Games_TurnBasedMatch");
2257    }
2258  }
2259  
2260  
2261  
2262  
2263  class Google_Service_Games_AchievementDefinition extends Google_Model
2264  {
2265    protected $internal_gapi_mappings = array(
2266    );
2267    public $achievementType;
2268    public $description;
2269    public $experiencePoints;
2270    public $formattedTotalSteps;
2271    public $id;
2272    public $initialState;
2273    public $isRevealedIconUrlDefault;
2274    public $isUnlockedIconUrlDefault;
2275    public $kind;
2276    public $name;
2277    public $revealedIconUrl;
2278    public $totalSteps;
2279    public $unlockedIconUrl;
2280  
2281  
2282    public function setAchievementType($achievementType)
2283    {
2284      $this->achievementType = $achievementType;
2285    }
2286    public function getAchievementType()
2287    {
2288      return $this->achievementType;
2289    }
2290    public function setDescription($description)
2291    {
2292      $this->description = $description;
2293    }
2294    public function getDescription()
2295    {
2296      return $this->description;
2297    }
2298    public function setExperiencePoints($experiencePoints)
2299    {
2300      $this->experiencePoints = $experiencePoints;
2301    }
2302    public function getExperiencePoints()
2303    {
2304      return $this->experiencePoints;
2305    }
2306    public function setFormattedTotalSteps($formattedTotalSteps)
2307    {
2308      $this->formattedTotalSteps = $formattedTotalSteps;
2309    }
2310    public function getFormattedTotalSteps()
2311    {
2312      return $this->formattedTotalSteps;
2313    }
2314    public function setId($id)
2315    {
2316      $this->id = $id;
2317    }
2318    public function getId()
2319    {
2320      return $this->id;
2321    }
2322    public function setInitialState($initialState)
2323    {
2324      $this->initialState = $initialState;
2325    }
2326    public function getInitialState()
2327    {
2328      return $this->initialState;
2329    }
2330    public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault)
2331    {
2332      $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault;
2333    }
2334    public function getIsRevealedIconUrlDefault()
2335    {
2336      return $this->isRevealedIconUrlDefault;
2337    }
2338    public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault)
2339    {
2340      $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault;
2341    }
2342    public function getIsUnlockedIconUrlDefault()
2343    {
2344      return $this->isUnlockedIconUrlDefault;
2345    }
2346    public function setKind($kind)
2347    {
2348      $this->kind = $kind;
2349    }
2350    public function getKind()
2351    {
2352      return $this->kind;
2353    }
2354    public function setName($name)
2355    {
2356      $this->name = $name;
2357    }
2358    public function getName()
2359    {
2360      return $this->name;
2361    }
2362    public function setRevealedIconUrl($revealedIconUrl)
2363    {
2364      $this->revealedIconUrl = $revealedIconUrl;
2365    }
2366    public function getRevealedIconUrl()
2367    {
2368      return $this->revealedIconUrl;
2369    }
2370    public function setTotalSteps($totalSteps)
2371    {
2372      $this->totalSteps = $totalSteps;
2373    }
2374    public function getTotalSteps()
2375    {
2376      return $this->totalSteps;
2377    }
2378    public function setUnlockedIconUrl($unlockedIconUrl)
2379    {
2380      $this->unlockedIconUrl = $unlockedIconUrl;
2381    }
2382    public function getUnlockedIconUrl()
2383    {
2384      return $this->unlockedIconUrl;
2385    }
2386  }
2387  
2388  class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection
2389  {
2390    protected $collection_key = 'items';
2391    protected $internal_gapi_mappings = array(
2392    );
2393    protected $itemsType = 'Google_Service_Games_AchievementDefinition';
2394    protected $itemsDataType = 'array';
2395    public $kind;
2396    public $nextPageToken;
2397  
2398  
2399    public function setItems($items)
2400    {
2401      $this->items = $items;
2402    }
2403    public function getItems()
2404    {
2405      return $this->items;
2406    }
2407    public function setKind($kind)
2408    {
2409      $this->kind = $kind;
2410    }
2411    public function getKind()
2412    {
2413      return $this->kind;
2414    }
2415    public function setNextPageToken($nextPageToken)
2416    {
2417      $this->nextPageToken = $nextPageToken;
2418    }
2419    public function getNextPageToken()
2420    {
2421      return $this->nextPageToken;
2422    }
2423  }
2424  
2425  class Google_Service_Games_AchievementIncrementResponse extends Google_Model
2426  {
2427    protected $internal_gapi_mappings = array(
2428    );
2429    public $currentSteps;
2430    public $kind;
2431    public $newlyUnlocked;
2432  
2433  
2434    public function setCurrentSteps($currentSteps)
2435    {
2436      $this->currentSteps = $currentSteps;
2437    }
2438    public function getCurrentSteps()
2439    {
2440      return $this->currentSteps;
2441    }
2442    public function setKind($kind)
2443    {
2444      $this->kind = $kind;
2445    }
2446    public function getKind()
2447    {
2448      return $this->kind;
2449    }
2450    public function setNewlyUnlocked($newlyUnlocked)
2451    {
2452      $this->newlyUnlocked = $newlyUnlocked;
2453    }
2454    public function getNewlyUnlocked()
2455    {
2456      return $this->newlyUnlocked;
2457    }
2458  }
2459  
2460  class Google_Service_Games_AchievementRevealResponse extends Google_Model
2461  {
2462    protected $internal_gapi_mappings = array(
2463    );
2464    public $currentState;
2465    public $kind;
2466  
2467  
2468    public function setCurrentState($currentState)
2469    {
2470      $this->currentState = $currentState;
2471    }
2472    public function getCurrentState()
2473    {
2474      return $this->currentState;
2475    }
2476    public function setKind($kind)
2477    {
2478      $this->kind = $kind;
2479    }
2480    public function getKind()
2481    {
2482      return $this->kind;
2483    }
2484  }
2485  
2486  class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model
2487  {
2488    protected $internal_gapi_mappings = array(
2489    );
2490    public $currentSteps;
2491    public $kind;
2492    public $newlyUnlocked;
2493  
2494  
2495    public function setCurrentSteps($currentSteps)
2496    {
2497      $this->currentSteps = $currentSteps;
2498    }
2499    public function getCurrentSteps()
2500    {
2501      return $this->currentSteps;
2502    }
2503    public function setKind($kind)
2504    {
2505      $this->kind = $kind;
2506    }
2507    public function getKind()
2508    {
2509      return $this->kind;
2510    }
2511    public function setNewlyUnlocked($newlyUnlocked)
2512    {
2513      $this->newlyUnlocked = $newlyUnlocked;
2514    }
2515    public function getNewlyUnlocked()
2516    {
2517      return $this->newlyUnlocked;
2518    }
2519  }
2520  
2521  class Google_Service_Games_AchievementUnlockResponse extends Google_Model
2522  {
2523    protected $internal_gapi_mappings = array(
2524    );
2525    public $kind;
2526    public $newlyUnlocked;
2527  
2528  
2529    public function setKind($kind)
2530    {
2531      $this->kind = $kind;
2532    }
2533    public function getKind()
2534    {
2535      return $this->kind;
2536    }
2537    public function setNewlyUnlocked($newlyUnlocked)
2538    {
2539      $this->newlyUnlocked = $newlyUnlocked;
2540    }
2541    public function getNewlyUnlocked()
2542    {
2543      return $this->newlyUnlocked;
2544    }
2545  }
2546  
2547  class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection
2548  {
2549    protected $collection_key = 'updates';
2550    protected $internal_gapi_mappings = array(
2551    );
2552    public $kind;
2553    protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest';
2554    protected $updatesDataType = 'array';
2555  
2556  
2557    public function setKind($kind)
2558    {
2559      $this->kind = $kind;
2560    }
2561    public function getKind()
2562    {
2563      return $this->kind;
2564    }
2565    public function setUpdates($updates)
2566    {
2567      $this->updates = $updates;
2568    }
2569    public function getUpdates()
2570    {
2571      return $this->updates;
2572    }
2573  }
2574  
2575  class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection
2576  {
2577    protected $collection_key = 'updatedAchievements';
2578    protected $internal_gapi_mappings = array(
2579    );
2580    public $kind;
2581    protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse';
2582    protected $updatedAchievementsDataType = 'array';
2583  
2584  
2585    public function setKind($kind)
2586    {
2587      $this->kind = $kind;
2588    }
2589    public function getKind()
2590    {
2591      return $this->kind;
2592    }
2593    public function setUpdatedAchievements($updatedAchievements)
2594    {
2595      $this->updatedAchievements = $updatedAchievements;
2596    }
2597    public function getUpdatedAchievements()
2598    {
2599      return $this->updatedAchievements;
2600    }
2601  }
2602  
2603  class Google_Service_Games_AchievementUpdateRequest extends Google_Model
2604  {
2605    protected $internal_gapi_mappings = array(
2606    );
2607    public $achievementId;
2608    protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement';
2609    protected $incrementPayloadDataType = '';
2610    public $kind;
2611    protected $setStepsAtLeastPayloadType = 'Google_Service_Games_GamesAchievementSetStepsAtLeast';
2612    protected $setStepsAtLeastPayloadDataType = '';
2613    public $updateType;
2614  
2615  
2616    public function setAchievementId($achievementId)
2617    {
2618      $this->achievementId = $achievementId;
2619    }
2620    public function getAchievementId()
2621    {
2622      return $this->achievementId;
2623    }
2624    public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload)
2625    {
2626      $this->incrementPayload = $incrementPayload;
2627    }
2628    public function getIncrementPayload()
2629    {
2630      return $this->incrementPayload;
2631    }
2632    public function setKind($kind)
2633    {
2634      $this->kind = $kind;
2635    }
2636    public function getKind()
2637    {
2638      return $this->kind;
2639    }
2640    public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload)
2641    {
2642      $this->setStepsAtLeastPayload = $setStepsAtLeastPayload;
2643    }
2644    public function getSetStepsAtLeastPayload()
2645    {
2646      return $this->setStepsAtLeastPayload;
2647    }
2648    public function setUpdateType($updateType)
2649    {
2650      $this->updateType = $updateType;
2651    }
2652    public function getUpdateType()
2653    {
2654      return $this->updateType;
2655    }
2656  }
2657  
2658  class Google_Service_Games_AchievementUpdateResponse extends Google_Model
2659  {
2660    protected $internal_gapi_mappings = array(
2661    );
2662    public $achievementId;
2663    public $currentState;
2664    public $currentSteps;
2665    public $kind;
2666    public $newlyUnlocked;
2667    public $updateOccurred;
2668  
2669  
2670    public function setAchievementId($achievementId)
2671    {
2672      $this->achievementId = $achievementId;
2673    }
2674    public function getAchievementId()
2675    {
2676      return $this->achievementId;
2677    }
2678    public function setCurrentState($currentState)
2679    {
2680      $this->currentState = $currentState;
2681    }
2682    public function getCurrentState()
2683    {
2684      return $this->currentState;
2685    }
2686    public function setCurrentSteps($currentSteps)
2687    {
2688      $this->currentSteps = $currentSteps;
2689    }
2690    public function getCurrentSteps()
2691    {
2692      return $this->currentSteps;
2693    }
2694    public function setKind($kind)
2695    {
2696      $this->kind = $kind;
2697    }
2698    public function getKind()
2699    {
2700      return $this->kind;
2701    }
2702    public function setNewlyUnlocked($newlyUnlocked)
2703    {
2704      $this->newlyUnlocked = $newlyUnlocked;
2705    }
2706    public function getNewlyUnlocked()
2707    {
2708      return $this->newlyUnlocked;
2709    }
2710    public function setUpdateOccurred($updateOccurred)
2711    {
2712      $this->updateOccurred = $updateOccurred;
2713    }
2714    public function getUpdateOccurred()
2715    {
2716      return $this->updateOccurred;
2717    }
2718  }
2719  
2720  class Google_Service_Games_AggregateStats extends Google_Model
2721  {
2722    protected $internal_gapi_mappings = array(
2723    );
2724    public $count;
2725    public $kind;
2726    public $max;
2727    public $min;
2728    public $sum;
2729  
2730  
2731    public function setCount($count)
2732    {
2733      $this->count = $count;
2734    }
2735    public function getCount()
2736    {
2737      return $this->count;
2738    }
2739    public function setKind($kind)
2740    {
2741      $this->kind = $kind;
2742    }
2743    public function getKind()
2744    {
2745      return $this->kind;
2746    }
2747    public function setMax($max)
2748    {
2749      $this->max = $max;
2750    }
2751    public function getMax()
2752    {
2753      return $this->max;
2754    }
2755    public function setMin($min)
2756    {
2757      $this->min = $min;
2758    }
2759    public function getMin()
2760    {
2761      return $this->min;
2762    }
2763    public function setSum($sum)
2764    {
2765      $this->sum = $sum;
2766    }
2767    public function getSum()
2768    {
2769      return $this->sum;
2770    }
2771  }
2772  
2773  class Google_Service_Games_AnonymousPlayer extends Google_Model
2774  {
2775    protected $internal_gapi_mappings = array(
2776    );
2777    public $avatarImageUrl;
2778    public $displayName;
2779    public $kind;
2780  
2781  
2782    public function setAvatarImageUrl($avatarImageUrl)
2783    {
2784      $this->avatarImageUrl = $avatarImageUrl;
2785    }
2786    public function getAvatarImageUrl()
2787    {
2788      return $this->avatarImageUrl;
2789    }
2790    public function setDisplayName($displayName)
2791    {
2792      $this->displayName = $displayName;
2793    }
2794    public function getDisplayName()
2795    {
2796      return $this->displayName;
2797    }
2798    public function setKind($kind)
2799    {
2800      $this->kind = $kind;
2801    }
2802    public function getKind()
2803    {
2804      return $this->kind;
2805    }
2806  }
2807  
2808  class Google_Service_Games_Application extends Google_Collection
2809  {
2810    protected $collection_key = 'instances';
2811    protected $internal_gapi_mappings = array(
2812          "achievementCount" => "achievement_count",
2813          "leaderboardCount" => "leaderboard_count",
2814    );
2815    public $achievementCount;
2816    protected $assetsType = 'Google_Service_Games_ImageAsset';
2817    protected $assetsDataType = 'array';
2818    public $author;
2819    protected $categoryType = 'Google_Service_Games_ApplicationCategory';
2820    protected $categoryDataType = '';
2821    public $description;
2822    public $enabledFeatures;
2823    public $id;
2824    protected $instancesType = 'Google_Service_Games_Instance';
2825    protected $instancesDataType = 'array';
2826    public $kind;
2827    public $lastUpdatedTimestamp;
2828    public $leaderboardCount;
2829    public $name;
2830    public $themeColor;
2831  
2832  
2833    public function setAchievementCount($achievementCount)
2834    {
2835      $this->achievementCount = $achievementCount;
2836    }
2837    public function getAchievementCount()
2838    {
2839      return $this->achievementCount;
2840    }
2841    public function setAssets($assets)
2842    {
2843      $this->assets = $assets;
2844    }
2845    public function getAssets()
2846    {
2847      return $this->assets;
2848    }
2849    public function setAuthor($author)
2850    {
2851      $this->author = $author;
2852    }
2853    public function getAuthor()
2854    {
2855      return $this->author;
2856    }
2857    public function setCategory(Google_Service_Games_ApplicationCategory $category)
2858    {
2859      $this->category = $category;
2860    }
2861    public function getCategory()
2862    {
2863      return $this->category;
2864    }
2865    public function setDescription($description)
2866    {
2867      $this->description = $description;
2868    }
2869    public function getDescription()
2870    {
2871      return $this->description;
2872    }
2873    public function setEnabledFeatures($enabledFeatures)
2874    {
2875      $this->enabledFeatures = $enabledFeatures;
2876    }
2877    public function getEnabledFeatures()
2878    {
2879      return $this->enabledFeatures;
2880    }
2881    public function setId($id)
2882    {
2883      $this->id = $id;
2884    }
2885    public function getId()
2886    {
2887      return $this->id;
2888    }
2889    public function setInstances($instances)
2890    {
2891      $this->instances = $instances;
2892    }
2893    public function getInstances()
2894    {
2895      return $this->instances;
2896    }
2897    public function setKind($kind)
2898    {
2899      $this->kind = $kind;
2900    }
2901    public function getKind()
2902    {
2903      return $this->kind;
2904    }
2905    public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
2906    {
2907      $this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
2908    }
2909    public function getLastUpdatedTimestamp()
2910    {
2911      return $this->lastUpdatedTimestamp;
2912    }
2913    public function setLeaderboardCount($leaderboardCount)
2914    {
2915      $this->leaderboardCount = $leaderboardCount;
2916    }
2917    public function getLeaderboardCount()
2918    {
2919      return $this->leaderboardCount;
2920    }
2921    public function setName($name)
2922    {
2923      $this->name = $name;
2924    }
2925    public function getName()
2926    {
2927      return $this->name;
2928    }
2929    public function setThemeColor($themeColor)
2930    {
2931      $this->themeColor = $themeColor;
2932    }
2933    public function getThemeColor()
2934    {
2935      return $this->themeColor;
2936    }
2937  }
2938  
2939  class Google_Service_Games_ApplicationCategory extends Google_Model
2940  {
2941    protected $internal_gapi_mappings = array(
2942    );
2943    public $kind;
2944    public $primary;
2945    public $secondary;
2946  
2947  
2948    public function setKind($kind)
2949    {
2950      $this->kind = $kind;
2951    }
2952    public function getKind()
2953    {
2954      return $this->kind;
2955    }
2956    public function setPrimary($primary)
2957    {
2958      $this->primary = $primary;
2959    }
2960    public function getPrimary()
2961    {
2962      return $this->primary;
2963    }
2964    public function setSecondary($secondary)
2965    {
2966      $this->secondary = $secondary;
2967    }
2968    public function getSecondary()
2969    {
2970      return $this->secondary;
2971    }
2972  }
2973  
2974  class Google_Service_Games_Category extends Google_Model
2975  {
2976    protected $internal_gapi_mappings = array(
2977    );
2978    public $category;
2979    public $experiencePoints;
2980    public $kind;
2981  
2982  
2983    public function setCategory($category)
2984    {
2985      $this->category = $category;
2986    }
2987    public function getCategory()
2988    {
2989      return $this->category;
2990    }
2991    public function setExperiencePoints($experiencePoints)
2992    {
2993      $this->experiencePoints = $experiencePoints;
2994    }
2995    public function getExperiencePoints()
2996    {
2997      return $this->experiencePoints;
2998    }
2999    public function setKind($kind)
3000    {
3001      $this->kind = $kind;
3002    }
3003    public function getKind()
3004    {
3005      return $this->kind;
3006    }
3007  }
3008  
3009  class Google_Service_Games_CategoryListResponse extends Google_Collection
3010  {
3011    protected $collection_key = 'items';
3012    protected $internal_gapi_mappings = array(
3013    );
3014    protected $itemsType = 'Google_Service_Games_Category';
3015    protected $itemsDataType = 'array';
3016    public $kind;
3017    public $nextPageToken;
3018  
3019  
3020    public function setItems($items)
3021    {
3022      $this->items = $items;
3023    }
3024    public function getItems()
3025    {
3026      return $this->items;
3027    }
3028    public function setKind($kind)
3029    {
3030      $this->kind = $kind;
3031    }
3032    public function getKind()
3033    {
3034      return $this->kind;
3035    }
3036    public function setNextPageToken($nextPageToken)
3037    {
3038      $this->nextPageToken = $nextPageToken;
3039    }
3040    public function getNextPageToken()
3041    {
3042      return $this->nextPageToken;
3043    }
3044  }
3045  
3046  class Google_Service_Games_EventBatchRecordFailure extends Google_Model
3047  {
3048    protected $internal_gapi_mappings = array(
3049    );
3050    public $failureCause;
3051    public $kind;
3052    protected $rangeType = 'Google_Service_Games_EventPeriodRange';
3053    protected $rangeDataType = '';
3054  
3055  
3056    public function setFailureCause($failureCause)
3057    {
3058      $this->failureCause = $failureCause;
3059    }
3060    public function getFailureCause()
3061    {
3062      return $this->failureCause;
3063    }
3064    public function setKind($kind)
3065    {
3066      $this->kind = $kind;
3067    }
3068    public function getKind()
3069    {
3070      return $this->kind;
3071    }
3072    public function setRange(Google_Service_Games_EventPeriodRange $range)
3073    {
3074      $this->range = $range;
3075    }
3076    public function getRange()
3077    {
3078      return $this->range;
3079    }
3080  }
3081  
3082  class Google_Service_Games_EventChild extends Google_Model
3083  {
3084    protected $internal_gapi_mappings = array(
3085    );
3086    public $childId;
3087    public $kind;
3088  
3089  
3090    public function setChildId($childId)
3091    {
3092      $this->childId = $childId;
3093    }
3094    public function getChildId()
3095    {
3096      return $this->childId;
3097    }
3098    public function setKind($kind)
3099    {
3100      $this->kind = $kind;
3101    }
3102    public function getKind()
3103    {
3104      return $this->kind;
3105    }
3106  }
3107  
3108  class Google_Service_Games_EventDefinition extends Google_Collection
3109  {
3110    protected $collection_key = 'childEvents';
3111    protected $internal_gapi_mappings = array(
3112    );
3113    protected $childEventsType = 'Google_Service_Games_EventChild';
3114    protected $childEventsDataType = 'array';
3115    public $description;
3116    public $displayName;
3117    public $id;
3118    public $imageUrl;
3119    public $isDefaultImageUrl;
3120    public $kind;
3121    public $visibility;
3122  
3123  
3124    public function setChildEvents($childEvents)
3125    {
3126      $this->childEvents = $childEvents;
3127    }
3128    public function getChildEvents()
3129    {
3130      return $this->childEvents;
3131    }
3132    public function setDescription($description)
3133    {
3134      $this->description = $description;
3135    }
3136    public function getDescription()
3137    {
3138      return $this->description;
3139    }
3140    public function setDisplayName($displayName)
3141    {
3142      $this->displayName = $displayName;
3143    }
3144    public function getDisplayName()
3145    {
3146      return $this->displayName;
3147    }
3148    public function setId($id)
3149    {
3150      $this->id = $id;
3151    }
3152    public function getId()
3153    {
3154      return $this->id;
3155    }
3156    public function setImageUrl($imageUrl)
3157    {
3158      $this->imageUrl = $imageUrl;
3159    }
3160    public function getImageUrl()
3161    {
3162      return $this->imageUrl;
3163    }
3164    public function setIsDefaultImageUrl($isDefaultImageUrl)
3165    {
3166      $this->isDefaultImageUrl = $isDefaultImageUrl;
3167    }
3168    public function getIsDefaultImageUrl()
3169    {
3170      return $this->isDefaultImageUrl;
3171    }
3172    public function setKind($kind)
3173    {
3174      $this->kind = $kind;
3175    }
3176    public function getKind()
3177    {
3178      return $this->kind;
3179    }
3180    public function setVisibility($visibility)
3181    {
3182      $this->visibility = $visibility;
3183    }
3184    public function getVisibility()
3185    {
3186      return $this->visibility;
3187    }
3188  }
3189  
3190  class Google_Service_Games_EventDefinitionListResponse extends Google_Collection
3191  {
3192    protected $collection_key = 'items';
3193    protected $internal_gapi_mappings = array(
3194    );
3195    protected $itemsType = 'Google_Service_Games_EventDefinition';
3196    protected $itemsDataType = 'array';
3197    public $kind;
3198    public $nextPageToken;
3199  
3200  
3201    public function setItems($items)
3202    {
3203      $this->items = $items;
3204    }
3205    public function getItems()
3206    {
3207      return $this->items;
3208    }
3209    public function setKind($kind)
3210    {
3211      $this->kind = $kind;
3212    }
3213    public function getKind()
3214    {
3215      return $this->kind;
3216    }
3217    public function setNextPageToken($nextPageToken)
3218    {
3219      $this->nextPageToken = $nextPageToken;
3220    }
3221    public function getNextPageToken()
3222    {
3223      return $this->nextPageToken;
3224    }
3225  }
3226  
3227  class Google_Service_Games_EventPeriodRange extends Google_Model
3228  {
3229    protected $internal_gapi_mappings = array(
3230    );
3231    public $kind;
3232    public $periodEndMillis;
3233    public $periodStartMillis;
3234  
3235  
3236    public function setKind($kind)
3237    {
3238      $this->kind = $kind;
3239    }
3240    public function getKind()
3241    {
3242      return $this->kind;
3243    }
3244    public function setPeriodEndMillis($periodEndMillis)
3245    {
3246      $this->periodEndMillis = $periodEndMillis;
3247    }
3248    public function getPeriodEndMillis()
3249    {
3250      return $this->periodEndMillis;
3251    }
3252    public function setPeriodStartMillis($periodStartMillis)
3253    {
3254      $this->periodStartMillis = $periodStartMillis;
3255    }
3256    public function getPeriodStartMillis()
3257    {
3258      return $this->periodStartMillis;
3259    }
3260  }
3261  
3262  class Google_Service_Games_EventPeriodUpdate extends Google_Collection
3263  {
3264    protected $collection_key = 'updates';
3265    protected $internal_gapi_mappings = array(
3266    );
3267    public $kind;
3268    protected $timePeriodType = 'Google_Service_Games_EventPeriodRange';
3269    protected $timePeriodDataType = '';
3270    protected $updatesType = 'Google_Service_Games_EventUpdateRequest';
3271    protected $updatesDataType = 'array';
3272  
3273  
3274    public function setKind($kind)
3275    {
3276      $this->kind = $kind;
3277    }
3278    public function getKind()
3279    {
3280      return $this->kind;
3281    }
3282    public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod)
3283    {
3284      $this->timePeriod = $timePeriod;
3285    }
3286    public function getTimePeriod()
3287    {
3288      return $this->timePeriod;
3289    }
3290    public function setUpdates($updates)
3291    {
3292      $this->updates = $updates;
3293    }
3294    public function getUpdates()
3295    {
3296      return $this->updates;
3297    }
3298  }
3299  
3300  class Google_Service_Games_EventRecordFailure extends Google_Model
3301  {
3302    protected $internal_gapi_mappings = array(
3303    );
3304    public $eventId;
3305    public $failureCause;
3306    public $kind;
3307  
3308  
3309    public function setEventId($eventId)
3310    {
3311      $this->eventId = $eventId;
3312    }
3313    public function getEventId()
3314    {
3315      return $this->eventId;
3316    }
3317    public function setFailureCause($failureCause)
3318    {
3319      $this->failureCause = $failureCause;
3320    }
3321    public function getFailureCause()
3322    {
3323      return $this->failureCause;
3324    }
3325    public function setKind($kind)
3326    {
3327      $this->kind = $kind;
3328    }
3329    public function getKind()
3330    {
3331      return $this->kind;
3332    }
3333  }
3334  
3335  class Google_Service_Games_EventRecordRequest extends Google_Collection
3336  {
3337    protected $collection_key = 'timePeriods';
3338    protected $internal_gapi_mappings = array(
3339    );
3340    public $currentTimeMillis;
3341    public $kind;
3342    public $requestId;
3343    protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate';
3344    protected $timePeriodsDataType = 'array';
3345  
3346  
3347    public function setCurrentTimeMillis($currentTimeMillis)
3348    {
3349      $this->currentTimeMillis = $currentTimeMillis;
3350    }
3351    public function getCurrentTimeMillis()
3352    {
3353      return $this->currentTimeMillis;
3354    }
3355    public function setKind($kind)
3356    {
3357      $this->kind = $kind;
3358    }
3359    public function getKind()
3360    {
3361      return $this->kind;
3362    }
3363    public function setRequestId($requestId)
3364    {
3365      $this->requestId = $requestId;
3366    }
3367    public function getRequestId()
3368    {
3369      return $this->requestId;
3370    }
3371    public function setTimePeriods($timePeriods)
3372    {
3373      $this->timePeriods = $timePeriods;
3374    }
3375    public function getTimePeriods()
3376    {
3377      return $this->timePeriods;
3378    }
3379  }
3380  
3381  class Google_Service_Games_EventUpdateRequest extends Google_Model
3382  {
3383    protected $internal_gapi_mappings = array(
3384    );
3385    public $definitionId;
3386    public $kind;
3387    public $updateCount;
3388  
3389  
3390    public function setDefinitionId($definitionId)
3391    {
3392      $this->definitionId = $definitionId;
3393    }
3394    public function getDefinitionId()
3395    {
3396      return $this->definitionId;
3397    }
3398    public function setKind($kind)
3399    {
3400      $this->kind = $kind;
3401    }
3402    public function getKind()
3403    {
3404      return $this->kind;
3405    }
3406    public function setUpdateCount($updateCount)
3407    {
3408      $this->updateCount = $updateCount;
3409    }
3410    public function getUpdateCount()
3411    {
3412      return $this->updateCount;
3413    }
3414  }
3415  
3416  class Google_Service_Games_EventUpdateResponse extends Google_Collection
3417  {
3418    protected $collection_key = 'playerEvents';
3419    protected $internal_gapi_mappings = array(
3420    );
3421    protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure';
3422    protected $batchFailuresDataType = 'array';
3423    protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure';
3424    protected $eventFailuresDataType = 'array';
3425    public $kind;
3426    protected $playerEventsType = 'Google_Service_Games_PlayerEvent';
3427    protected $playerEventsDataType = 'array';
3428  
3429  
3430    public function setBatchFailures($batchFailures)
3431    {
3432      $this->batchFailures = $batchFailures;
3433    }
3434    public function getBatchFailures()
3435    {
3436      return $this->batchFailures;
3437    }
3438    public function setEventFailures($eventFailures)
3439    {
3440      $this->eventFailures = $eventFailures;
3441    }
3442    public function getEventFailures()
3443    {
3444      return $this->eventFailures;
3445    }
3446    public function setKind($kind)
3447    {
3448      $this->kind = $kind;
3449    }
3450    public function getKind()
3451    {
3452      return $this->kind;
3453    }
3454    public function setPlayerEvents($playerEvents)
3455    {
3456      $this->playerEvents = $playerEvents;
3457    }
3458    public function getPlayerEvents()
3459    {
3460      return $this->playerEvents;
3461    }
3462  }
3463  
3464  class Google_Service_Games_GamesAchievementIncrement extends Google_Model
3465  {
3466    protected $internal_gapi_mappings = array(
3467    );
3468    public $kind;
3469    public $requestId;
3470    public $steps;
3471  
3472  
3473    public function setKind($kind)
3474    {
3475      $this->kind = $kind;
3476    }
3477    public function getKind()
3478    {
3479      return $this->kind;
3480    }
3481    public function setRequestId($requestId)
3482    {
3483      $this->requestId = $requestId;
3484    }
3485    public function getRequestId()
3486    {
3487      return $this->requestId;
3488    }
3489    public function setSteps($steps)
3490    {
3491      $this->steps = $steps;
3492    }
3493    public function getSteps()
3494    {
3495      return $this->steps;
3496    }
3497  }
3498  
3499  class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model
3500  {
3501    protected $internal_gapi_mappings = array(
3502    );
3503    public $kind;
3504    public $steps;
3505  
3506  
3507    public function setKind($kind)
3508    {
3509      $this->kind = $kind;
3510    }
3511    public function getKind()
3512    {
3513      return $this->kind;
3514    }
3515    public function setSteps($steps)
3516    {
3517      $this->steps = $steps;
3518    }
3519    public function getSteps()
3520    {
3521      return $this->steps;
3522    }
3523  }
3524  
3525  class Google_Service_Games_ImageAsset extends Google_Model
3526  {
3527    protected $internal_gapi_mappings = array(
3528    );
3529    public $height;
3530    public $kind;
3531    public $name;
3532    public $url;
3533    public $width;
3534  
3535  
3536    public function setHeight($height)
3537    {
3538      $this->height = $height;
3539    }
3540    public function getHeight()
3541    {
3542      return $this->height;
3543    }
3544    public function setKind($kind)
3545    {
3546      $this->kind = $kind;
3547    }
3548    public function getKind()
3549    {
3550      return $this->kind;
3551    }
3552    public function setName($name)
3553    {
3554      $this->name = $name;
3555    }
3556    public function getName()
3557    {
3558      return $this->name;
3559    }
3560    public function setUrl($url)
3561    {
3562      $this->url = $url;
3563    }
3564    public function getUrl()
3565    {
3566      return $this->url;
3567    }
3568    public function setWidth($width)
3569    {
3570      $this->width = $width;
3571    }
3572    public function getWidth()
3573    {
3574      return $this->width;
3575    }
3576  }
3577  
3578  class Google_Service_Games_Instance extends Google_Model
3579  {
3580    protected $internal_gapi_mappings = array(
3581    );
3582    public $acquisitionUri;
3583    protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails';
3584    protected $androidInstanceDataType = '';
3585    protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails';
3586    protected $iosInstanceDataType = '';
3587    public $kind;
3588    public $name;
3589    public $platformType;
3590    public $realtimePlay;
3591    public $turnBasedPlay;
3592    protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails';
3593    protected $webInstanceDataType = '';
3594  
3595  
3596    public function setAcquisitionUri($acquisitionUri)
3597    {
3598      $this->acquisitionUri = $acquisitionUri;
3599    }
3600    public function getAcquisitionUri()
3601    {
3602      return $this->acquisitionUri;
3603    }
3604    public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance)
3605    {
3606      $this->androidInstance = $androidInstance;
3607    }
3608    public function getAndroidInstance()
3609    {
3610      return $this->androidInstance;
3611    }
3612    public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance)
3613    {
3614      $this->iosInstance = $iosInstance;
3615    }
3616    public function getIosInstance()
3617    {
3618      return $this->iosInstance;
3619    }
3620    public function setKind($kind)
3621    {
3622      $this->kind = $kind;
3623    }
3624    public function getKind()
3625    {
3626      return $this->kind;
3627    }
3628    public function setName($name)
3629    {
3630      $this->name = $name;
3631    }
3632    public function getName()
3633    {
3634      return $this->name;
3635    }
3636    public function setPlatformType($platformType)
3637    {
3638      $this->platformType = $platformType;
3639    }
3640    public function getPlatformType()
3641    {
3642      return $this->platformType;
3643    }
3644    public function setRealtimePlay($realtimePlay)
3645    {
3646      $this->realtimePlay = $realtimePlay;
3647    }
3648    public function getRealtimePlay()
3649    {
3650      return $this->realtimePlay;
3651    }
3652    public function setTurnBasedPlay($turnBasedPlay)
3653    {
3654      $this->turnBasedPlay = $turnBasedPlay;
3655    }
3656    public function getTurnBasedPlay()
3657    {
3658      return $this->turnBasedPlay;
3659    }
3660    public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance)
3661    {
3662      $this->webInstance = $webInstance;
3663    }
3664    public function getWebInstance()
3665    {
3666      return $this->webInstance;
3667    }
3668  }
3669  
3670  class Google_Service_Games_InstanceAndroidDetails extends Google_Model
3671  {
3672    protected $internal_gapi_mappings = array(
3673    );
3674    public $enablePiracyCheck;
3675    public $kind;
3676    public $packageName;
3677    public $preferred;
3678  
3679  
3680    public function setEnablePiracyCheck($enablePiracyCheck)
3681    {
3682      $this->enablePiracyCheck = $enablePiracyCheck;
3683    }
3684    public function getEnablePiracyCheck()
3685    {
3686      return $this->enablePiracyCheck;
3687    }
3688    public function setKind($kind)
3689    {
3690      $this->kind = $kind;
3691    }
3692    public function getKind()
3693    {
3694      return $this->kind;
3695    }
3696    public function setPackageName($packageName)
3697    {
3698      $this->packageName = $packageName;
3699    }
3700    public function getPackageName()
3701    {
3702      return $this->packageName;
3703    }
3704    public function setPreferred($preferred)
3705    {
3706      $this->preferred = $preferred;
3707    }
3708    public function getPreferred()
3709    {
3710      return $this->preferred;
3711    }
3712  }
3713  
3714  class Google_Service_Games_InstanceIosDetails extends Google_Model
3715  {
3716    protected $internal_gapi_mappings = array(
3717    );
3718    public $bundleIdentifier;
3719    public $itunesAppId;
3720    public $kind;
3721    public $preferredForIpad;
3722    public $preferredForIphone;
3723    public $supportIpad;
3724    public $supportIphone;
3725  
3726  
3727    public function setBundleIdentifier($bundleIdentifier)
3728    {
3729      $this->bundleIdentifier = $bundleIdentifier;
3730    }
3731    public function getBundleIdentifier()
3732    {
3733      return $this->bundleIdentifier;
3734    }
3735    public function setItunesAppId($itunesAppId)
3736    {
3737      $this->itunesAppId = $itunesAppId;
3738    }
3739    public function getItunesAppId()
3740    {
3741      return $this->itunesAppId;
3742    }
3743    public function setKind($kind)
3744    {
3745      $this->kind = $kind;
3746    }
3747    public function getKind()
3748    {
3749      return $this->kind;
3750    }
3751    public function setPreferredForIpad($preferredForIpad)
3752    {
3753      $this->preferredForIpad = $preferredForIpad;
3754    }
3755    public function getPreferredForIpad()
3756    {
3757      return $this->preferredForIpad;
3758    }
3759    public function setPreferredForIphone($preferredForIphone)
3760    {
3761      $this->preferredForIphone = $preferredForIphone;
3762    }
3763    public function getPreferredForIphone()
3764    {
3765      return $this->preferredForIphone;
3766    }
3767    public function setSupportIpad($supportIpad)
3768    {
3769      $this->supportIpad = $supportIpad;
3770    }
3771    public function getSupportIpad()
3772    {
3773      return $this->supportIpad;
3774    }
3775    public function setSupportIphone($supportIphone)
3776    {
3777      $this->supportIphone = $supportIphone;
3778    }
3779    public function getSupportIphone()
3780    {
3781      return $this->supportIphone;
3782    }
3783  }
3784  
3785  class Google_Service_Games_InstanceWebDetails extends Google_Model
3786  {
3787    protected $internal_gapi_mappings = array(
3788    );
3789    public $kind;
3790    public $launchUrl;
3791    public $preferred;
3792  
3793  
3794    public function setKind($kind)
3795    {
3796      $this->kind = $kind;
3797    }
3798    public function getKind()
3799    {
3800      return $this->kind;
3801    }
3802    public function setLaunchUrl($launchUrl)
3803    {
3804      $this->launchUrl = $launchUrl;
3805    }
3806    public function getLaunchUrl()
3807    {
3808      return $this->launchUrl;
3809    }
3810    public function setPreferred($preferred)
3811    {
3812      $this->preferred = $preferred;
3813    }
3814    public function getPreferred()
3815    {
3816      return $this->preferred;
3817    }
3818  }
3819  
3820  class Google_Service_Games_Leaderboard extends Google_Model
3821  {
3822    protected $internal_gapi_mappings = array(
3823    );
3824    public $iconUrl;
3825    public $id;
3826    public $isIconUrlDefault;
3827    public $kind;
3828    public $name;
3829    public $order;
3830  
3831  
3832    public function setIconUrl($iconUrl)
3833    {
3834      $this->iconUrl = $iconUrl;
3835    }
3836    public function getIconUrl()
3837    {
3838      return $this->iconUrl;
3839    }
3840    public function setId($id)
3841    {
3842      $this->id = $id;
3843    }
3844    public function getId()
3845    {
3846      return $this->id;
3847    }
3848    public function setIsIconUrlDefault($isIconUrlDefault)
3849    {
3850      $this->isIconUrlDefault = $isIconUrlDefault;
3851    }
3852    public function getIsIconUrlDefault()
3853    {
3854      return $this->isIconUrlDefault;
3855    }
3856    public function setKind($kind)
3857    {
3858      $this->kind = $kind;
3859    }
3860    public function getKind()
3861    {
3862      return $this->kind;
3863    }
3864    public function setName($name)
3865    {
3866      $this->name = $name;
3867    }
3868    public function getName()
3869    {
3870      return $this->name;
3871    }
3872    public function setOrder($order)
3873    {
3874      $this->order = $order;
3875    }
3876    public function getOrder()
3877    {
3878      return $this->order;
3879    }
3880  }
3881  
3882  class Google_Service_Games_LeaderboardEntry extends Google_Model
3883  {
3884    protected $internal_gapi_mappings = array(
3885    );
3886    public $formattedScore;
3887    public $formattedScoreRank;
3888    public $kind;
3889    protected $playerType = 'Google_Service_Games_Player';
3890    protected $playerDataType = '';
3891    public $scoreRank;
3892    public $scoreTag;
3893    public $scoreValue;
3894    public $timeSpan;
3895    public $writeTimestampMillis;
3896  
3897  
3898    public function setFormattedScore($formattedScore)
3899    {
3900      $this->formattedScore = $formattedScore;
3901    }
3902    public function getFormattedScore()
3903    {
3904      return $this->formattedScore;
3905    }
3906    public function setFormattedScoreRank($formattedScoreRank)
3907    {
3908      $this->formattedScoreRank = $formattedScoreRank;
3909    }
3910    public function getFormattedScoreRank()
3911    {
3912      return $this->formattedScoreRank;
3913    }
3914    public function setKind($kind)
3915    {
3916      $this->kind = $kind;
3917    }
3918    public function getKind()
3919    {
3920      return $this->kind;
3921    }
3922    public function setPlayer(Google_Service_Games_Player $player)
3923    {
3924      $this->player = $player;
3925    }
3926    public function getPlayer()
3927    {
3928      return $this->player;
3929    }
3930    public function setScoreRank($scoreRank)
3931    {
3932      $this->scoreRank = $scoreRank;
3933    }
3934    public function getScoreRank()
3935    {
3936      return $this->scoreRank;
3937    }
3938    public function setScoreTag($scoreTag)
3939    {
3940      $this->scoreTag = $scoreTag;
3941    }
3942    public function getScoreTag()
3943    {
3944      return $this->scoreTag;
3945    }
3946    public function setScoreValue($scoreValue)
3947    {
3948      $this->scoreValue = $scoreValue;
3949    }
3950    public function getScoreValue()
3951    {
3952      return $this->scoreValue;
3953    }
3954    public function setTimeSpan($timeSpan)
3955    {
3956      $this->timeSpan = $timeSpan;
3957    }
3958    public function getTimeSpan()
3959    {
3960      return $this->timeSpan;
3961    }
3962    public function setWriteTimestampMillis($writeTimestampMillis)
3963    {
3964      $this->writeTimestampMillis = $writeTimestampMillis;
3965    }
3966    public function getWriteTimestampMillis()
3967    {
3968      return $this->writeTimestampMillis;
3969    }
3970  }
3971  
3972  class Google_Service_Games_LeaderboardListResponse extends Google_Collection
3973  {
3974    protected $collection_key = 'items';
3975    protected $internal_gapi_mappings = array(
3976    );
3977    protected $itemsType = 'Google_Service_Games_Leaderboard';
3978    protected $itemsDataType = 'array';
3979    public $kind;
3980    public $nextPageToken;
3981  
3982  
3983    public function setItems($items)
3984    {
3985      $this->items = $items;
3986    }
3987    public function getItems()
3988    {
3989      return $this->items;
3990    }
3991    public function setKind($kind)
3992    {
3993      $this->kind = $kind;
3994    }
3995    public function getKind()
3996    {
3997      return $this->kind;
3998    }
3999    public function setNextPageToken($nextPageToken)
4000    {
4001      $this->nextPageToken = $nextPageToken;
4002    }
4003    public function getNextPageToken()
4004    {
4005      return $this->nextPageToken;
4006    }
4007  }
4008  
4009  class Google_Service_Games_LeaderboardScoreRank extends Google_Model
4010  {
4011    protected $internal_gapi_mappings = array(
4012    );
4013    public $formattedNumScores;
4014    public $formattedRank;
4015    public $kind;
4016    public $numScores;
4017    public $rank;
4018  
4019  
4020    public function setFormattedNumScores($formattedNumScores)
4021    {
4022      $this->formattedNumScores = $formattedNumScores;
4023    }
4024    public function getFormattedNumScores()
4025    {
4026      return $this->formattedNumScores;
4027    }
4028    public function setFormattedRank($formattedRank)
4029    {
4030      $this->formattedRank = $formattedRank;
4031    }
4032    public function getFormattedRank()
4033    {
4034      return $this->formattedRank;
4035    }
4036    public function setKind($kind)
4037    {
4038      $this->kind = $kind;
4039    }
4040    public function getKind()
4041    {
4042      return $this->kind;
4043    }
4044    public function setNumScores($numScores)
4045    {
4046      $this->numScores = $numScores;
4047    }
4048    public function getNumScores()
4049    {
4050      return $this->numScores;
4051    }
4052    public function setRank($rank)
4053    {
4054      $this->rank = $rank;
4055    }
4056    public function getRank()
4057    {
4058      return $this->rank;
4059    }
4060  }
4061  
4062  class Google_Service_Games_LeaderboardScores extends Google_Collection
4063  {
4064    protected $collection_key = 'items';
4065    protected $internal_gapi_mappings = array(
4066    );
4067    protected $itemsType = 'Google_Service_Games_LeaderboardEntry';
4068    protected $itemsDataType = 'array';
4069    public $kind;
4070    public $nextPageToken;
4071    public $numScores;
4072    protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry';
4073    protected $playerScoreDataType = '';
4074    public $prevPageToken;
4075  
4076  
4077    public function setItems($items)
4078    {
4079      $this->items = $items;
4080    }
4081    public function getItems()
4082    {
4083      return $this->items;
4084    }
4085    public function setKind($kind)
4086    {
4087      $this->kind = $kind;
4088    }
4089    public function getKind()
4090    {
4091      return $this->kind;
4092    }
4093    public function setNextPageToken($nextPageToken)
4094    {
4095      $this->nextPageToken = $nextPageToken;
4096    }
4097    public function getNextPageToken()
4098    {
4099      return $this->nextPageToken;
4100    }
4101    public function setNumScores($numScores)
4102    {
4103      $this->numScores = $numScores;
4104    }
4105    public function getNumScores()
4106    {
4107      return $this->numScores;
4108    }
4109    public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore)
4110    {
4111      $this->playerScore = $playerScore;
4112    }
4113    public function getPlayerScore()
4114    {
4115      return $this->playerScore;
4116    }
4117    public function setPrevPageToken($prevPageToken)
4118    {
4119      $this->prevPageToken = $prevPageToken;
4120    }
4121    public function getPrevPageToken()
4122    {
4123      return $this->prevPageToken;
4124    }
4125  }
4126  
4127  class Google_Service_Games_MetagameConfig extends Google_Collection
4128  {
4129    protected $collection_key = 'playerLevels';
4130    protected $internal_gapi_mappings = array(
4131    );
4132    public $currentVersion;
4133    public $kind;
4134    protected $playerLevelsType = 'Google_Service_Games_PlayerLevel';
4135    protected $playerLevelsDataType = 'array';
4136  
4137  
4138    public function setCurrentVersion($currentVersion)
4139    {
4140      $this->currentVersion = $currentVersion;
4141    }
4142    public function getCurrentVersion()
4143    {
4144      return $this->currentVersion;
4145    }
4146    public function setKind($kind)
4147    {
4148      $this->kind = $kind;
4149    }
4150    public function getKind()
4151    {
4152      return $this->kind;
4153    }
4154    public function setPlayerLevels($playerLevels)
4155    {
4156      $this->playerLevels = $playerLevels;
4157    }
4158    public function getPlayerLevels()
4159    {
4160      return $this->playerLevels;
4161    }
4162  }
4163  
4164  class Google_Service_Games_NetworkDiagnostics extends Google_Model
4165  {
4166    protected $internal_gapi_mappings = array(
4167    );
4168    public $androidNetworkSubtype;
4169    public $androidNetworkType;
4170    public $iosNetworkType;
4171    public $kind;
4172    public $networkOperatorCode;
4173    public $networkOperatorName;
4174    public $registrationLatencyMillis;
4175  
4176  
4177    public function setAndroidNetworkSubtype($androidNetworkSubtype)
4178    {
4179      $this->androidNetworkSubtype = $androidNetworkSubtype;
4180    }
4181    public function getAndroidNetworkSubtype()
4182    {
4183      return $this->androidNetworkSubtype;
4184    }
4185    public function setAndroidNetworkType($androidNetworkType)
4186    {
4187      $this->androidNetworkType = $androidNetworkType;
4188    }
4189    public function getAndroidNetworkType()
4190    {
4191      return $this->androidNetworkType;
4192    }
4193    public function setIosNetworkType($iosNetworkType)
4194    {
4195      $this->iosNetworkType = $iosNetworkType;
4196    }
4197    public function getIosNetworkType()
4198    {
4199      return $this->iosNetworkType;
4200    }
4201    public function setKind($kind)
4202    {
4203      $this->kind = $kind;
4204    }
4205    public function getKind()
4206    {
4207      return $this->kind;
4208    }
4209    public function setNetworkOperatorCode($networkOperatorCode)
4210    {
4211      $this->networkOperatorCode = $networkOperatorCode;
4212    }
4213    public function getNetworkOperatorCode()
4214    {
4215      return $this->networkOperatorCode;
4216    }
4217    public function setNetworkOperatorName($networkOperatorName)
4218    {
4219      $this->networkOperatorName = $networkOperatorName;
4220    }
4221    public function getNetworkOperatorName()
4222    {
4223      return $this->networkOperatorName;
4224    }
4225    public function setRegistrationLatencyMillis($registrationLatencyMillis)
4226    {
4227      $this->registrationLatencyMillis = $registrationLatencyMillis;
4228    }
4229    public function getRegistrationLatencyMillis()
4230    {
4231      return $this->registrationLatencyMillis;
4232    }
4233  }
4234  
4235  class Google_Service_Games_ParticipantResult extends Google_Model
4236  {
4237    protected $internal_gapi_mappings = array(
4238    );
4239    public $kind;
4240    public $participantId;
4241    public $placing;
4242    public $result;
4243  
4244  
4245    public function setKind($kind)
4246    {
4247      $this->kind = $kind;
4248    }
4249    public function getKind()
4250    {
4251      return $this->kind;
4252    }
4253    public function setParticipantId($participantId)
4254    {
4255      $this->participantId = $participantId;
4256    }
4257    public function getParticipantId()
4258    {
4259      return $this->participantId;
4260    }
4261    public function setPlacing($placing)
4262    {
4263      $this->placing = $placing;
4264    }
4265    public function getPlacing()
4266    {
4267      return $this->placing;
4268    }
4269    public function setResult($result)
4270    {
4271      $this->result = $result;
4272    }
4273    public function getResult()
4274    {
4275      return $this->result;
4276    }
4277  }
4278  
4279  class Google_Service_Games_PeerChannelDiagnostics extends Google_Model
4280  {
4281    protected $internal_gapi_mappings = array(
4282    );
4283    protected $bytesReceivedType = 'Google_Service_Games_AggregateStats';
4284    protected $bytesReceivedDataType = '';
4285    protected $bytesSentType = 'Google_Service_Games_AggregateStats';
4286    protected $bytesSentDataType = '';
4287    public $kind;
4288    public $numMessagesLost;
4289    public $numMessagesReceived;
4290    public $numMessagesSent;
4291    public $numSendFailures;
4292    protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats';
4293    protected $roundtripLatencyMillisDataType = '';
4294  
4295  
4296    public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived)
4297    {
4298      $this->bytesReceived = $bytesReceived;
4299    }
4300    public function getBytesReceived()
4301    {
4302      return $this->bytesReceived;
4303    }
4304    public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent)
4305    {
4306      $this->bytesSent = $bytesSent;
4307    }
4308    public function getBytesSent()
4309    {
4310      return $this->bytesSent;
4311    }
4312    public function setKind($kind)
4313    {
4314      $this->kind = $kind;
4315    }
4316    public function getKind()
4317    {
4318      return $this->kind;
4319    }
4320    public function setNumMessagesLost($numMessagesLost)
4321    {
4322      $this->numMessagesLost = $numMessagesLost;
4323    }
4324    public function getNumMessagesLost()
4325    {
4326      return $this->numMessagesLost;
4327    }
4328    public function setNumMessagesReceived($numMessagesReceived)
4329    {
4330      $this->numMessagesReceived = $numMessagesReceived;
4331    }
4332    public function getNumMessagesReceived()
4333    {
4334      return $this->numMessagesReceived;
4335    }
4336    public function setNumMessagesSent($numMessagesSent)
4337    {
4338      $this->numMessagesSent = $numMessagesSent;
4339    }
4340    public function getNumMessagesSent()
4341    {
4342      return $this->numMessagesSent;
4343    }
4344    public function setNumSendFailures($numSendFailures)
4345    {
4346      $this->numSendFailures = $numSendFailures;
4347    }
4348    public function getNumSendFailures()
4349    {
4350      return $this->numSendFailures;
4351    }
4352    public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis)
4353    {
4354      $this->roundtripLatencyMillis = $roundtripLatencyMillis;
4355    }
4356    public function getRoundtripLatencyMillis()
4357    {
4358      return $this->roundtripLatencyMillis;
4359    }
4360  }
4361  
4362  class Google_Service_Games_PeerSessionDiagnostics extends Google_Model
4363  {
4364    protected $internal_gapi_mappings = array(
4365    );
4366    public $connectedTimestampMillis;
4367    public $kind;
4368    public $participantId;
4369    protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics';
4370    protected $reliableChannelDataType = '';
4371    protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics';
4372    protected $unreliableChannelDataType = '';
4373  
4374  
4375    public function setConnectedTimestampMillis($connectedTimestampMillis)
4376    {
4377      $this->connectedTimestampMillis = $connectedTimestampMillis;
4378    }
4379    public function getConnectedTimestampMillis()
4380    {
4381      return $this->connectedTimestampMillis;
4382    }
4383    public function setKind($kind)
4384    {
4385      $this->kind = $kind;
4386    }
4387    public function getKind()
4388    {
4389      return $this->kind;
4390    }
4391    public function setParticipantId($participantId)
4392    {
4393      $this->participantId = $participantId;
4394    }
4395    public function getParticipantId()
4396    {
4397      return $this->participantId;
4398    }
4399    public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel)
4400    {
4401      $this->reliableChannel = $reliableChannel;
4402    }
4403    public function getReliableChannel()
4404    {
4405      return $this->reliableChannel;
4406    }
4407    public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel)
4408    {
4409      $this->unreliableChannel = $unreliableChannel;
4410    }
4411    public function getUnreliableChannel()
4412    {
4413      return $this->unreliableChannel;
4414    }
4415  }
4416  
4417  class Google_Service_Games_Played extends Google_Model
4418  {
4419    protected $internal_gapi_mappings = array(
4420    );
4421    public $autoMatched;
4422    public $kind;
4423    public $timeMillis;
4424  
4425  
4426    public function setAutoMatched($autoMatched)
4427    {
4428      $this->autoMatched = $autoMatched;
4429    }
4430    public function getAutoMatched()
4431    {
4432      return $this->autoMatched;
4433    }
4434    public function setKind($kind)
4435    {
4436      $this->kind = $kind;
4437    }
4438    public function getKind()
4439    {
4440      return $this->kind;
4441    }
4442    public function setTimeMillis($timeMillis)
4443    {
4444      $this->timeMillis = $timeMillis;
4445    }
4446    public function getTimeMillis()
4447    {
4448      return $this->timeMillis;
4449    }
4450  }
4451  
4452  class Google_Service_Games_Player extends Google_Model
4453  {
4454    protected $internal_gapi_mappings = array(
4455    );
4456    public $avatarImageUrl;
4457    public $bannerUrlLandscape;
4458    public $bannerUrlPortrait;
4459    public $displayName;
4460    protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo';
4461    protected $experienceInfoDataType = '';
4462    public $kind;
4463    protected $lastPlayedWithType = 'Google_Service_Games_Played';
4464    protected $lastPlayedWithDataType = '';
4465    protected $nameType = 'Google_Service_Games_PlayerName';
4466    protected $nameDataType = '';
4467    public $playerId;
4468    public $title;
4469  
4470  
4471    public function setAvatarImageUrl($avatarImageUrl)
4472    {
4473      $this->avatarImageUrl = $avatarImageUrl;
4474    }
4475    public function getAvatarImageUrl()
4476    {
4477      return $this->avatarImageUrl;
4478    }
4479    public function setBannerUrlLandscape($bannerUrlLandscape)
4480    {
4481      $this->bannerUrlLandscape = $bannerUrlLandscape;
4482    }
4483    public function getBannerUrlLandscape()
4484    {
4485      return $this->bannerUrlLandscape;
4486    }
4487    public function setBannerUrlPortrait($bannerUrlPortrait)
4488    {
4489      $this->bannerUrlPortrait = $bannerUrlPortrait;
4490    }
4491    public function getBannerUrlPortrait()
4492    {
4493      return $this->bannerUrlPortrait;
4494    }
4495    public function setDisplayName($displayName)
4496    {
4497      $this->displayName = $displayName;
4498    }
4499    public function getDisplayName()
4500    {
4501      return $this->displayName;
4502    }
4503    public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo)
4504    {
4505      $this->experienceInfo = $experienceInfo;
4506    }
4507    public function getExperienceInfo()
4508    {
4509      return $this->experienceInfo;
4510    }
4511    public function setKind($kind)
4512    {
4513      $this->kind = $kind;
4514    }
4515    public function getKind()
4516    {
4517      return $this->kind;
4518    }
4519    public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith)
4520    {
4521      $this->lastPlayedWith = $lastPlayedWith;
4522    }
4523    public function getLastPlayedWith()
4524    {
4525      return $this->lastPlayedWith;
4526    }
4527    public function setName(Google_Service_Games_PlayerName $name)
4528    {
4529      $this->name = $name;
4530    }
4531    public function getName()
4532    {
4533      return $this->name;
4534    }
4535    public function setPlayerId($playerId)
4536    {
4537      $this->playerId = $playerId;
4538    }
4539    public function getPlayerId()
4540    {
4541      return $this->playerId;
4542    }
4543    public function setTitle($title)
4544    {
4545      $this->title = $title;
4546    }
4547    public function getTitle()
4548    {
4549      return $this->title;
4550    }
4551  }
4552  
4553  class Google_Service_Games_PlayerAchievement extends Google_Model
4554  {
4555    protected $internal_gapi_mappings = array(
4556    );
4557    public $achievementState;
4558    public $currentSteps;
4559    public $experiencePoints;
4560    public $formattedCurrentStepsString;
4561    public $id;
4562    public $kind;
4563    public $lastUpdatedTimestamp;
4564  
4565  
4566    public function setAchievementState($achievementState)
4567    {
4568      $this->achievementState = $achievementState;
4569    }
4570    public function getAchievementState()
4571    {
4572      return $this->achievementState;
4573    }
4574    public function setCurrentSteps($currentSteps)
4575    {
4576      $this->currentSteps = $currentSteps;
4577    }
4578    public function getCurrentSteps()
4579    {
4580      return $this->currentSteps;
4581    }
4582    public function setExperiencePoints($experiencePoints)
4583    {
4584      $this->experiencePoints = $experiencePoints;
4585    }
4586    public function getExperiencePoints()
4587    {
4588      return $this->experiencePoints;
4589    }
4590    public function setFormattedCurrentStepsString($formattedCurrentStepsString)
4591    {
4592      $this->formattedCurrentStepsString = $formattedCurrentStepsString;
4593    }
4594    public function getFormattedCurrentStepsString()
4595    {
4596      return $this->formattedCurrentStepsString;
4597    }
4598    public function setId($id)
4599    {
4600      $this->id = $id;
4601    }
4602    public function getId()
4603    {
4604      return $this->id;
4605    }
4606    public function setKind($kind)
4607    {
4608      $this->kind = $kind;
4609    }
4610    public function getKind()
4611    {
4612      return $this->kind;
4613    }
4614    public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
4615    {
4616      $this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
4617    }
4618    public function getLastUpdatedTimestamp()
4619    {
4620      return $this->lastUpdatedTimestamp;
4621    }
4622  }
4623  
4624  class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection
4625  {
4626    protected $collection_key = 'items';
4627    protected $internal_gapi_mappings = array(
4628    );
4629    protected $itemsType = 'Google_Service_Games_PlayerAchievement';
4630    protected $itemsDataType = 'array';
4631    public $kind;
4632    public $nextPageToken;
4633  
4634  
4635    public function setItems($items)
4636    {
4637      $this->items = $items;
4638    }
4639    public function getItems()
4640    {
4641      return $this->items;
4642    }
4643    public function setKind($kind)
4644    {
4645      $this->kind = $kind;
4646    }
4647    public function getKind()
4648    {
4649      return $this->kind;
4650    }
4651    public function setNextPageToken($nextPageToken)
4652    {
4653      $this->nextPageToken = $nextPageToken;
4654    }
4655    public function getNextPageToken()
4656    {
4657      return $this->nextPageToken;
4658    }
4659  }
4660  
4661  class Google_Service_Games_PlayerEvent extends Google_Model
4662  {
4663    protected $internal_gapi_mappings = array(
4664    );
4665    public $definitionId;
4666    public $formattedNumEvents;
4667    public $kind;
4668    public $numEvents;
4669    public $playerId;
4670  
4671  
4672    public function setDefinitionId($definitionId)
4673    {
4674      $this->definitionId = $definitionId;
4675    }
4676    public function getDefinitionId()
4677    {
4678      return $this->definitionId;
4679    }
4680    public function setFormattedNumEvents($formattedNumEvents)
4681    {
4682      $this->formattedNumEvents = $formattedNumEvents;
4683    }
4684    public function getFormattedNumEvents()
4685    {
4686      return $this->formattedNumEvents;
4687    }
4688    public function setKind($kind)
4689    {
4690      $this->kind = $kind;
4691    }
4692    public function getKind()
4693    {
4694      return $this->kind;
4695    }
4696    public function setNumEvents($numEvents)
4697    {
4698      $this->numEvents = $numEvents;
4699    }
4700    public function getNumEvents()
4701    {
4702      return $this->numEvents;
4703    }
4704    public function setPlayerId($playerId)
4705    {
4706      $this->playerId = $playerId;
4707    }
4708    public function getPlayerId()
4709    {
4710      return $this->playerId;
4711    }
4712  }
4713  
4714  class Google_Service_Games_PlayerEventListResponse extends Google_Collection
4715  {
4716    protected $collection_key = 'items';
4717    protected $internal_gapi_mappings = array(
4718    );
4719    protected $itemsType = 'Google_Service_Games_PlayerEvent';
4720    protected $itemsDataType = 'array';
4721    public $kind;
4722    public $nextPageToken;
4723  
4724  
4725    public function setItems($items)
4726    {
4727      $this->items = $items;
4728    }
4729    public function getItems()
4730    {
4731      return $this->items;
4732    }
4733    public function setKind($kind)
4734    {
4735      $this->kind = $kind;
4736    }
4737    public function getKind()
4738    {
4739      return $this->kind;
4740    }
4741    public function setNextPageToken($nextPageToken)
4742    {
4743      $this->nextPageToken = $nextPageToken;
4744    }
4745    public function getNextPageToken()
4746    {
4747      return $this->nextPageToken;
4748    }
4749  }
4750  
4751  class Google_Service_Games_PlayerExperienceInfo extends Google_Model
4752  {
4753    protected $internal_gapi_mappings = array(
4754    );
4755    public $currentExperiencePoints;
4756    protected $currentLevelType = 'Google_Service_Games_PlayerLevel';
4757    protected $currentLevelDataType = '';
4758    public $kind;
4759    public $lastLevelUpTimestampMillis;
4760    protected $nextLevelType = 'Google_Service_Games_PlayerLevel';
4761    protected $nextLevelDataType = '';
4762  
4763  
4764    public function setCurrentExperiencePoints($currentExperiencePoints)
4765    {
4766      $this->currentExperiencePoints = $currentExperiencePoints;
4767    }
4768    public function getCurrentExperiencePoints()
4769    {
4770      return $this->currentExperiencePoints;
4771    }
4772    public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel)
4773    {
4774      $this->currentLevel = $currentLevel;
4775    }
4776    public function getCurrentLevel()
4777    {
4778      return $this->currentLevel;
4779    }
4780    public function setKind($kind)
4781    {
4782      $this->kind = $kind;
4783    }
4784    public function getKind()
4785    {
4786      return $this->kind;
4787    }
4788    public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
4789    {
4790      $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
4791    }
4792    public function getLastLevelUpTimestampMillis()
4793    {
4794      return $this->lastLevelUpTimestampMillis;
4795    }
4796    public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel)
4797    {
4798      $this->nextLevel = $nextLevel;
4799    }
4800    public function getNextLevel()
4801    {
4802      return $this->nextLevel;
4803    }
4804  }
4805  
4806  class Google_Service_Games_PlayerLeaderboardScore extends Google_Model
4807  {
4808    protected $internal_gapi_mappings = array(
4809          "leaderboardId" => "leaderboard_id",
4810    );
4811    public $kind;
4812    public $leaderboardId;
4813    protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank';
4814    protected $publicRankDataType = '';
4815    public $scoreString;
4816    public $scoreTag;
4817    public $scoreValue;
4818    protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank';
4819    protected $socialRankDataType = '';
4820    public $timeSpan;
4821    public $writeTimestamp;
4822  
4823  
4824    public function setKind($kind)
4825    {
4826      $this->kind = $kind;
4827    }
4828    public function getKind()
4829    {
4830      return $this->kind;
4831    }
4832    public function setLeaderboardId($leaderboardId)
4833    {
4834      $this->leaderboardId = $leaderboardId;
4835    }
4836    public function getLeaderboardId()
4837    {
4838      return $this->leaderboardId;
4839    }
4840    public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank)
4841    {
4842      $this->publicRank = $publicRank;
4843    }
4844    public function getPublicRank()
4845    {
4846      return $this->publicRank;
4847    }
4848    public function setScoreString($scoreString)
4849    {
4850      $this->scoreString = $scoreString;
4851    }
4852    public function getScoreString()
4853    {
4854      return $this->scoreString;
4855    }
4856    public function setScoreTag($scoreTag)
4857    {
4858      $this->scoreTag = $scoreTag;
4859    }
4860    public function getScoreTag()
4861    {
4862      return $this->scoreTag;
4863    }
4864    public function setScoreValue($scoreValue)
4865    {
4866      $this->scoreValue = $scoreValue;
4867    }
4868    public function getScoreValue()
4869    {
4870      return $this->scoreValue;
4871    }
4872    public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank)
4873    {
4874      $this->socialRank = $socialRank;
4875    }
4876    public function getSocialRank()
4877    {
4878      return $this->socialRank;
4879    }
4880    public function setTimeSpan($timeSpan)
4881    {
4882      $this->timeSpan = $timeSpan;
4883    }
4884    public function getTimeSpan()
4885    {
4886      return $this->timeSpan;
4887    }
4888    public function setWriteTimestamp($writeTimestamp)
4889    {
4890      $this->writeTimestamp = $writeTimestamp;
4891    }
4892    public function getWriteTimestamp()
4893    {
4894      return $this->writeTimestamp;
4895    }
4896  }
4897  
4898  class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection
4899  {
4900    protected $collection_key = 'items';
4901    protected $internal_gapi_mappings = array(
4902    );
4903    protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore';
4904    protected $itemsDataType = 'array';
4905    public $kind;
4906    public $nextPageToken;
4907    protected $playerType = 'Google_Service_Games_Player';
4908    protected $playerDataType = '';
4909  
4910  
4911    public function setItems($items)
4912    {
4913      $this->items = $items;
4914    }
4915    public function getItems()
4916    {
4917      return $this->items;
4918    }
4919    public function setKind($kind)
4920    {
4921      $this->kind = $kind;
4922    }
4923    public function getKind()
4924    {
4925      return $this->kind;
4926    }
4927    public function setNextPageToken($nextPageToken)
4928    {
4929      $this->nextPageToken = $nextPageToken;
4930    }
4931    public function getNextPageToken()
4932    {
4933      return $this->nextPageToken;
4934    }
4935    public function setPlayer(Google_Service_Games_Player $player)
4936    {
4937      $this->player = $player;
4938    }
4939    public function getPlayer()
4940    {
4941      return $this->player;
4942    }
4943  }
4944  
4945  class Google_Service_Games_PlayerLevel extends Google_Model
4946  {
4947    protected $internal_gapi_mappings = array(
4948    );
4949    public $kind;
4950    public $level;
4951    public $maxExperiencePoints;
4952    public $minExperiencePoints;
4953  
4954  
4955    public function setKind($kind)
4956    {
4957      $this->kind = $kind;
4958    }
4959    public function getKind()
4960    {
4961      return $this->kind;
4962    }
4963    public function setLevel($level)
4964    {
4965      $this->level = $level;
4966    }
4967    public function getLevel()
4968    {
4969      return $this->level;
4970    }
4971    public function setMaxExperiencePoints($maxExperiencePoints)
4972    {
4973      $this->maxExperiencePoints = $maxExperiencePoints;
4974    }
4975    public function getMaxExperiencePoints()
4976    {
4977      return $this->maxExperiencePoints;
4978    }
4979    public function setMinExperiencePoints($minExperiencePoints)
4980    {
4981      $this->minExperiencePoints = $minExperiencePoints;
4982    }
4983    public function getMinExperiencePoints()
4984    {
4985      return $this->minExperiencePoints;
4986    }
4987  }
4988  
4989  class Google_Service_Games_PlayerListResponse extends Google_Collection
4990  {
4991    protected $collection_key = 'items';
4992    protected $internal_gapi_mappings = array(
4993    );
4994    protected $itemsType = 'Google_Service_Games_Player';
4995    protected $itemsDataType = 'array';
4996    public $kind;
4997    public $nextPageToken;
4998  
4999  
5000    public function setItems($items)
5001    {
5002      $this->items = $items;
5003    }
5004    public function getItems()
5005    {
5006      return $this->items;
5007    }
5008    public function setKind($kind)
5009    {
5010      $this->kind = $kind;
5011    }
5012    public function getKind()
5013    {
5014      return $this->kind;
5015    }
5016    public function setNextPageToken($nextPageToken)
5017    {
5018      $this->nextPageToken = $nextPageToken;
5019    }
5020    public function getNextPageToken()
5021    {
5022      return $this->nextPageToken;
5023    }
5024  }
5025  
5026  class Google_Service_Games_PlayerName extends Google_Model
5027  {
5028    protected $internal_gapi_mappings = array(
5029    );
5030    public $familyName;
5031    public $givenName;
5032  
5033  
5034    public function setFamilyName($familyName)
5035    {
5036      $this->familyName = $familyName;
5037    }
5038    public function getFamilyName()
5039    {
5040      return $this->familyName;
5041    }
5042    public function setGivenName($givenName)
5043    {
5044      $this->givenName = $givenName;
5045    }
5046    public function getGivenName()
5047    {
5048      return $this->givenName;
5049    }
5050  }
5051  
5052  class Google_Service_Games_PlayerScore extends Google_Model
5053  {
5054    protected $internal_gapi_mappings = array(
5055    );
5056    public $formattedScore;
5057    public $kind;
5058    public $score;
5059    public $scoreTag;
5060    public $timeSpan;
5061  
5062  
5063    public function setFormattedScore($formattedScore)
5064    {
5065      $this->formattedScore = $formattedScore;
5066    }
5067    public function getFormattedScore()
5068    {
5069      return $this->formattedScore;
5070    }
5071    public function setKind($kind)
5072    {
5073      $this->kind = $kind;
5074    }
5075    public function getKind()
5076    {
5077      return $this->kind;
5078    }
5079    public function setScore($score)
5080    {
5081      $this->score = $score;
5082    }
5083    public function getScore()
5084    {
5085      return $this->score;
5086    }
5087    public function setScoreTag($scoreTag)
5088    {
5089      $this->scoreTag = $scoreTag;
5090    }
5091    public function getScoreTag()
5092    {
5093      return $this->scoreTag;
5094    }
5095    public function setTimeSpan($timeSpan)
5096    {
5097      $this->timeSpan = $timeSpan;
5098    }
5099    public function getTimeSpan()
5100    {
5101      return $this->timeSpan;
5102    }
5103  }
5104  
5105  class Google_Service_Games_PlayerScoreListResponse extends Google_Collection
5106  {
5107    protected $collection_key = 'submittedScores';
5108    protected $internal_gapi_mappings = array(
5109    );
5110    public $kind;
5111    protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse';
5112    protected $submittedScoresDataType = 'array';
5113  
5114  
5115    public function setKind($kind)
5116    {
5117      $this->kind = $kind;
5118    }
5119    public function getKind()
5120    {
5121      return $this->kind;
5122    }
5123    public function setSubmittedScores($submittedScores)
5124    {
5125      $this->submittedScores = $submittedScores;
5126    }
5127    public function getSubmittedScores()
5128    {
5129      return $this->submittedScores;
5130    }
5131  }
5132  
5133  class Google_Service_Games_PlayerScoreResponse extends Google_Collection
5134  {
5135    protected $collection_key = 'unbeatenScores';
5136    protected $internal_gapi_mappings = array(
5137    );
5138    public $beatenScoreTimeSpans;
5139    public $formattedScore;
5140    public $kind;
5141    public $leaderboardId;
5142    public $scoreTag;
5143    protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore';
5144    protected $unbeatenScoresDataType = 'array';
5145  
5146  
5147    public function setBeatenScoreTimeSpans($beatenScoreTimeSpans)
5148    {
5149      $this->beatenScoreTimeSpans = $beatenScoreTimeSpans;
5150    }
5151    public function getBeatenScoreTimeSpans()
5152    {
5153      return $this->beatenScoreTimeSpans;
5154    }
5155    public function setFormattedScore($formattedScore)
5156    {
5157      $this->formattedScore = $formattedScore;
5158    }
5159    public function getFormattedScore()
5160    {
5161      return $this->formattedScore;
5162    }
5163    public function setKind($kind)
5164    {
5165      $this->kind = $kind;
5166    }
5167    public function getKind()
5168    {
5169      return $this->kind;
5170    }
5171    public function setLeaderboardId($leaderboardId)
5172    {
5173      $this->leaderboardId = $leaderboardId;
5174    }
5175    public function getLeaderboardId()
5176    {
5177      return $this->leaderboardId;
5178    }
5179    public function setScoreTag($scoreTag)
5180    {
5181      $this->scoreTag = $scoreTag;
5182    }
5183    public function getScoreTag()
5184    {
5185      return $this->scoreTag;
5186    }
5187    public function setUnbeatenScores($unbeatenScores)
5188    {
5189      $this->unbeatenScores = $unbeatenScores;
5190    }
5191    public function getUnbeatenScores()
5192    {
5193      return $this->unbeatenScores;
5194    }
5195  }
5196  
5197  class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection
5198  {
5199    protected $collection_key = 'scores';
5200    protected $internal_gapi_mappings = array(
5201    );
5202    public $kind;
5203    protected $scoresType = 'Google_Service_Games_ScoreSubmission';
5204    protected $scoresDataType = 'array';
5205  
5206  
5207    public function setKind($kind)
5208    {
5209      $this->kind = $kind;
5210    }
5211    public function getKind()
5212    {
5213      return $this->kind;
5214    }
5215    public function setScores($scores)
5216    {
5217      $this->scores = $scores;
5218    }
5219    public function getScores()
5220    {
5221      return $this->scores;
5222    }
5223  }
5224  
5225  class Google_Service_Games_PushToken extends Google_Model
5226  {
5227    protected $internal_gapi_mappings = array(
5228    );
5229    public $clientRevision;
5230    protected $idType = 'Google_Service_Games_PushTokenId';
5231    protected $idDataType = '';
5232    public $kind;
5233    public $language;
5234  
5235  
5236    public function setClientRevision($clientRevision)
5237    {
5238      $this->clientRevision = $clientRevision;
5239    }
5240    public function getClientRevision()
5241    {
5242      return $this->clientRevision;
5243    }
5244    public function setId(Google_Service_Games_PushTokenId $id)
5245    {
5246      $this->id = $id;
5247    }
5248    public function getId()
5249    {
5250      return $this->id;
5251    }
5252    public function setKind($kind)
5253    {
5254      $this->kind = $kind;
5255    }
5256    public function getKind()
5257    {
5258      return $this->kind;
5259    }
5260    public function setLanguage($language)
5261    {
5262      $this->language = $language;
5263    }
5264    public function getLanguage()
5265    {
5266      return $this->language;
5267    }
5268  }
5269  
5270  class Google_Service_Games_PushTokenId extends Google_Model
5271  {
5272    protected $internal_gapi_mappings = array(
5273    );
5274    protected $iosType = 'Google_Service_Games_PushTokenIdIos';
5275    protected $iosDataType = '';
5276    public $kind;
5277  
5278  
5279    public function setIos(Google_Service_Games_PushTokenIdIos $ios)
5280    {
5281      $this->ios = $ios;
5282    }
5283    public function getIos()
5284    {
5285      return $this->ios;
5286    }
5287    public function setKind($kind)
5288    {
5289      $this->kind = $kind;
5290    }
5291    public function getKind()
5292    {
5293      return $this->kind;
5294    }
5295  }
5296  
5297  class Google_Service_Games_PushTokenIdIos extends Google_Model
5298  {
5299    protected $internal_gapi_mappings = array(
5300          "apnsDeviceToken" => "apns_device_token",
5301          "apnsEnvironment" => "apns_environment",
5302    );
5303    public $apnsDeviceToken;
5304    public $apnsEnvironment;
5305  
5306  
5307    public function setApnsDeviceToken($apnsDeviceToken)
5308    {
5309      $this->apnsDeviceToken = $apnsDeviceToken;
5310    }
5311    public function getApnsDeviceToken()
5312    {
5313      return $this->apnsDeviceToken;
5314    }
5315    public function setApnsEnvironment($apnsEnvironment)
5316    {
5317      $this->apnsEnvironment = $apnsEnvironment;
5318    }
5319    public function getApnsEnvironment()
5320    {
5321      return $this->apnsEnvironment;
5322    }
5323  }
5324  
5325  class Google_Service_Games_Quest extends Google_Collection
5326  {
5327    protected $collection_key = 'milestones';
5328    protected $internal_gapi_mappings = array(
5329    );
5330    public $acceptedTimestampMillis;
5331    public $applicationId;
5332    public $bannerUrl;
5333    public $description;
5334    public $endTimestampMillis;
5335    public $iconUrl;
5336    public $id;
5337    public $isDefaultBannerUrl;
5338    public $isDefaultIconUrl;
5339    public $kind;
5340    public $lastUpdatedTimestampMillis;
5341    protected $milestonesType = 'Google_Service_Games_QuestMilestone';
5342    protected $milestonesDataType = 'array';
5343    public $name;
5344    public $notifyTimestampMillis;
5345    public $startTimestampMillis;
5346    public $state;
5347  
5348  
5349    public function setAcceptedTimestampMillis($acceptedTimestampMillis)
5350    {
5351      $this->acceptedTimestampMillis = $acceptedTimestampMillis;
5352    }
5353    public function getAcceptedTimestampMillis()
5354    {
5355      return $this->acceptedTimestampMillis;
5356    }
5357    public function setApplicationId($applicationId)
5358    {
5359      $this->applicationId = $applicationId;
5360    }
5361    public function getApplicationId()
5362    {
5363      return $this->applicationId;
5364    }
5365    public function setBannerUrl($bannerUrl)
5366    {
5367      $this->bannerUrl = $bannerUrl;
5368    }
5369    public function getBannerUrl()
5370    {
5371      return $this->bannerUrl;
5372    }
5373    public function setDescription($description)
5374    {
5375      $this->description = $description;
5376    }
5377    public function getDescription()
5378    {
5379      return $this->description;
5380    }
5381    public function setEndTimestampMillis($endTimestampMillis)
5382    {
5383      $this->endTimestampMillis = $endTimestampMillis;
5384    }
5385    public function getEndTimestampMillis()
5386    {
5387      return $this->endTimestampMillis;
5388    }
5389    public function setIconUrl($iconUrl)
5390    {
5391      $this->iconUrl = $iconUrl;
5392    }
5393    public function getIconUrl()
5394    {
5395      return $this->iconUrl;
5396    }
5397    public function setId($id)
5398    {
5399      $this->id = $id;
5400    }
5401    public function getId()
5402    {
5403      return $this->id;
5404    }
5405    public function setIsDefaultBannerUrl($isDefaultBannerUrl)
5406    {
5407      $this->isDefaultBannerUrl = $isDefaultBannerUrl;
5408    }
5409    public function getIsDefaultBannerUrl()
5410    {
5411      return $this->isDefaultBannerUrl;
5412    }
5413    public function setIsDefaultIconUrl($isDefaultIconUrl)
5414    {
5415      $this->isDefaultIconUrl = $isDefaultIconUrl;
5416    }
5417    public function getIsDefaultIconUrl()
5418    {
5419      return $this->isDefaultIconUrl;
5420    }
5421    public function setKind($kind)
5422    {
5423      $this->kind = $kind;
5424    }
5425    public function getKind()
5426    {
5427      return $this->kind;
5428    }
5429    public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis)
5430    {
5431      $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis;
5432    }
5433    public function getLastUpdatedTimestampMillis()
5434    {
5435      return $this->lastUpdatedTimestampMillis;
5436    }
5437    public function setMilestones($milestones)
5438    {
5439      $this->milestones = $milestones;
5440    }
5441    public function getMilestones()
5442    {
5443      return $this->milestones;
5444    }
5445    public function setName($name)
5446    {
5447      $this->name = $name;
5448    }
5449    public function getName()
5450    {
5451      return $this->name;
5452    }
5453    public function setNotifyTimestampMillis($notifyTimestampMillis)
5454    {
5455      $this->notifyTimestampMillis = $notifyTimestampMillis;
5456    }
5457    public function getNotifyTimestampMillis()
5458    {
5459      return $this->notifyTimestampMillis;
5460    }
5461    public function setStartTimestampMillis($startTimestampMillis)
5462    {
5463      $this->startTimestampMillis = $startTimestampMillis;
5464    }
5465    public function getStartTimestampMillis()
5466    {
5467      return $this->startTimestampMillis;
5468    }
5469    public function setState($state)
5470    {
5471      $this->state = $state;
5472    }
5473    public function getState()
5474    {
5475      return $this->state;
5476    }
5477  }
5478  
5479  class Google_Service_Games_QuestContribution extends Google_Model
5480  {
5481    protected $internal_gapi_mappings = array(
5482    );
5483    public $formattedValue;
5484    public $kind;
5485    public $value;
5486  
5487  
5488    public function setFormattedValue($formattedValue)
5489    {
5490      $this->formattedValue = $formattedValue;
5491    }
5492    public function getFormattedValue()
5493    {
5494      return $this->formattedValue;
5495    }
5496    public function setKind($kind)
5497    {
5498      $this->kind = $kind;
5499    }
5500    public function getKind()
5501    {
5502      return $this->kind;
5503    }
5504    public function setValue($value)
5505    {
5506      $this->value = $value;
5507    }
5508    public function getValue()
5509    {
5510      return $this->value;
5511    }
5512  }
5513  
5514  class Google_Service_Games_QuestCriterion extends Google_Model
5515  {
5516    protected $internal_gapi_mappings = array(
5517    );
5518    protected $completionContributionType = 'Google_Service_Games_QuestContribution';
5519    protected $completionContributionDataType = '';
5520    protected $currentContributionType = 'Google_Service_Games_QuestContribution';
5521    protected $currentContributionDataType = '';
5522    public $eventId;
5523    protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution';
5524    protected $initialPlayerProgressDataType = '';
5525    public $kind;
5526  
5527  
5528    public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution)
5529    {
5530      $this->completionContribution = $completionContribution;
5531    }
5532    public function getCompletionContribution()
5533    {
5534      return $this->completionContribution;
5535    }
5536    public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution)
5537    {
5538      $this->currentContribution = $currentContribution;
5539    }
5540    public function getCurrentContribution()
5541    {
5542      return $this->currentContribution;
5543    }
5544    public function setEventId($eventId)
5545    {
5546      $this->eventId = $eventId;
5547    }
5548    public function getEventId()
5549    {
5550      return $this->eventId;
5551    }
5552    public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress)
5553    {
5554      $this->initialPlayerProgress = $initialPlayerProgress;
5555    }
5556    public function getInitialPlayerProgress()
5557    {
5558      return $this->initialPlayerProgress;
5559    }
5560    public function setKind($kind)
5561    {
5562      $this->kind = $kind;
5563    }
5564    public function getKind()
5565    {
5566      return $this->kind;
5567    }
5568  }
5569  
5570  class Google_Service_Games_QuestListResponse extends Google_Collection
5571  {
5572    protected $collection_key = 'items';
5573    protected $internal_gapi_mappings = array(
5574    );
5575    protected $itemsType = 'Google_Service_Games_Quest';
5576    protected $itemsDataType = 'array';
5577    public $kind;
5578    public $nextPageToken;
5579  
5580  
5581    public function setItems($items)
5582    {
5583      $this->items = $items;
5584    }
5585    public function getItems()
5586    {
5587      return $this->items;
5588    }
5589    public function setKind($kind)
5590    {
5591      $this->kind = $kind;
5592    }
5593    public function getKind()
5594    {
5595      return $this->kind;
5596    }
5597    public function setNextPageToken($nextPageToken)
5598    {
5599      $this->nextPageToken = $nextPageToken;
5600    }
5601    public function getNextPageToken()
5602    {
5603      return $this->nextPageToken;
5604    }
5605  }
5606  
5607  class Google_Service_Games_QuestMilestone extends Google_Collection
5608  {
5609    protected $collection_key = 'criteria';
5610    protected $internal_gapi_mappings = array(
5611    );
5612    public $completionRewardData;
5613    protected $criteriaType = 'Google_Service_Games_QuestCriterion';
5614    protected $criteriaDataType = 'array';
5615    public $id;
5616    public $kind;
5617    public $state;
5618  
5619  
5620    public function setCompletionRewardData($completionRewardData)
5621    {
5622      $this->completionRewardData = $completionRewardData;
5623    }
5624    public function getCompletionRewardData()
5625    {
5626      return $this->completionRewardData;
5627    }
5628    public function setCriteria($criteria)
5629    {
5630      $this->criteria = $criteria;
5631    }
5632    public function getCriteria()
5633    {
5634      return $this->criteria;
5635    }
5636    public function setId($id)
5637    {
5638      $this->id = $id;
5639    }
5640    public function getId()
5641    {
5642      return $this->id;
5643    }
5644    public function setKind($kind)
5645    {
5646      $this->kind = $kind;
5647    }
5648    public function getKind()
5649    {
5650      return $this->kind;
5651    }
5652    public function setState($state)
5653    {
5654      $this->state = $state;
5655    }
5656    public function getState()
5657    {
5658      return $this->state;
5659    }
5660  }
5661  
5662  class Google_Service_Games_RevisionCheckResponse extends Google_Model
5663  {
5664    protected $internal_gapi_mappings = array(
5665    );
5666    public $apiVersion;
5667    public $kind;
5668    public $revisionStatus;
5669  
5670  
5671    public function setApiVersion($apiVersion)
5672    {
5673      $this->apiVersion = $apiVersion;
5674    }
5675    public function getApiVersion()
5676    {
5677      return $this->apiVersion;
5678    }
5679    public function setKind($kind)
5680    {
5681      $this->kind = $kind;
5682    }
5683    public function getKind()
5684    {
5685      return $this->kind;
5686    }
5687    public function setRevisionStatus($revisionStatus)
5688    {
5689      $this->revisionStatus = $revisionStatus;
5690    }
5691    public function getRevisionStatus()
5692    {
5693      return $this->revisionStatus;
5694    }
5695  }
5696  
5697  class Google_Service_Games_Room extends Google_Collection
5698  {
5699    protected $collection_key = 'participants';
5700    protected $internal_gapi_mappings = array(
5701    );
5702    public $applicationId;
5703    protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria';
5704    protected $autoMatchingCriteriaDataType = '';
5705    protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus';
5706    protected $autoMatchingStatusDataType = '';
5707    protected $creationDetailsType = 'Google_Service_Games_RoomModification';
5708    protected $creationDetailsDataType = '';
5709    public $description;
5710    public $inviterId;
5711    public $kind;
5712    protected $lastUpdateDetailsType = 'Google_Service_Games_RoomModification';
5713    protected $lastUpdateDetailsDataType = '';
5714    protected $participantsType = 'Google_Service_Games_RoomParticipant';
5715    protected $participantsDataType = 'array';
5716    public $roomId;
5717    public $roomStatusVersion;
5718    public $status;
5719    public $variant;
5720  
5721  
5722    public function setApplicationId($applicationId)
5723    {
5724      $this->applicationId = $applicationId;
5725    }
5726    public function getApplicationId()
5727    {
5728      return $this->applicationId;
5729    }
5730    public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria)
5731    {
5732      $this->autoMatchingCriteria = $autoMatchingCriteria;
5733    }
5734    public function getAutoMatchingCriteria()
5735    {
5736      return $this->autoMatchingCriteria;
5737    }
5738    public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus)
5739    {
5740      $this->autoMatchingStatus = $autoMatchingStatus;
5741    }
5742    public function getAutoMatchingStatus()
5743    {
5744      return $this->autoMatchingStatus;
5745    }
5746    public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails)
5747    {
5748      $this->creationDetails = $creationDetails;
5749    }
5750    public function getCreationDetails()
5751    {
5752      return $this->creationDetails;
5753    }
5754    public function setDescription($description)
5755    {
5756      $this->description = $description;
5757    }
5758    public function getDescription()
5759    {
5760      return $this->description;
5761    }
5762    public function setInviterId($inviterId)
5763    {
5764      $this->inviterId = $inviterId;
5765    }
5766    public function getInviterId()
5767    {
5768      return $this->inviterId;
5769    }
5770    public function setKind($kind)
5771    {
5772      $this->kind = $kind;
5773    }
5774    public function getKind()
5775    {
5776      return $this->kind;
5777    }
5778    public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails)
5779    {
5780      $this->lastUpdateDetails = $lastUpdateDetails;
5781    }
5782    public function getLastUpdateDetails()
5783    {
5784      return $this->lastUpdateDetails;
5785    }
5786    public function setParticipants($participants)
5787    {
5788      $this->participants = $participants;
5789    }
5790    public function getParticipants()
5791    {
5792      return $this->participants;
5793    }
5794    public function setRoomId($roomId)
5795    {
5796      $this->roomId = $roomId;
5797    }
5798    public function getRoomId()
5799    {
5800      return $this->roomId;
5801    }
5802    public function setRoomStatusVersion($roomStatusVersion)
5803    {
5804      $this->roomStatusVersion = $roomStatusVersion;
5805    }
5806    public function getRoomStatusVersion()
5807    {
5808      return $this->roomStatusVersion;
5809    }
5810    public function setStatus($status)
5811    {
5812      $this->status = $status;
5813    }
5814    public function getStatus()
5815    {
5816      return $this->status;
5817    }
5818    public function setVariant($variant)
5819    {
5820      $this->variant = $variant;
5821    }
5822    public function getVariant()
5823    {
5824      return $this->variant;
5825    }
5826  }
5827  
5828  class Google_Service_Games_RoomAutoMatchStatus extends Google_Model
5829  {
5830    protected $internal_gapi_mappings = array(
5831    );
5832    public $kind;
5833    public $waitEstimateSeconds;
5834  
5835  
5836    public function setKind($kind)
5837    {
5838      $this->kind = $kind;
5839    }
5840    public function getKind()
5841    {
5842      return $this->kind;
5843    }
5844    public function setWaitEstimateSeconds($waitEstimateSeconds)
5845    {
5846      $this->waitEstimateSeconds = $waitEstimateSeconds;
5847    }
5848    public function getWaitEstimateSeconds()
5849    {
5850      return $this->waitEstimateSeconds;
5851    }
5852  }
5853  
5854  class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model
5855  {
5856    protected $internal_gapi_mappings = array(
5857    );
5858    public $exclusiveBitmask;
5859    public $kind;
5860    public $maxAutoMatchingPlayers;
5861    public $minAutoMatchingPlayers;
5862  
5863  
5864    public function setExclusiveBitmask($exclusiveBitmask)
5865    {
5866      $this->exclusiveBitmask = $exclusiveBitmask;
5867    }
5868    public function getExclusiveBitmask()
5869    {
5870      return $this->exclusiveBitmask;
5871    }
5872    public function setKind($kind)
5873    {
5874      $this->kind = $kind;
5875    }
5876    public function getKind()
5877    {
5878      return $this->kind;
5879    }
5880    public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers)
5881    {
5882      $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers;
5883    }
5884    public function getMaxAutoMatchingPlayers()
5885    {
5886      return $this->maxAutoMatchingPlayers;
5887    }
5888    public function setMinAutoMatchingPlayers($minAutoMatchingPlayers)
5889    {
5890      $this->minAutoMatchingPlayers = $minAutoMatchingPlayers;
5891    }
5892    public function getMinAutoMatchingPlayers()
5893    {
5894      return $this->minAutoMatchingPlayers;
5895    }
5896  }
5897  
5898  class Google_Service_Games_RoomClientAddress extends Google_Model
5899  {
5900    protected $internal_gapi_mappings = array(
5901    );
5902    public $kind;
5903    public $xmppAddress;
5904  
5905  
5906    public function setKind($kind)
5907    {
5908      $this->kind = $kind;
5909    }
5910    public function getKind()
5911    {
5912      return $this->kind;
5913    }
5914    public function setXmppAddress($xmppAddress)
5915    {
5916      $this->xmppAddress = $xmppAddress;
5917    }
5918    public function getXmppAddress()
5919    {
5920      return $this->xmppAddress;
5921    }
5922  }
5923  
5924  class Google_Service_Games_RoomCreateRequest extends Google_Collection
5925  {
5926    protected $collection_key = 'invitedPlayerIds';
5927    protected $internal_gapi_mappings = array(
5928    );
5929    protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria';
5930    protected $autoMatchingCriteriaDataType = '';
5931    public $capabilities;
5932    protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
5933    protected $clientAddressDataType = '';
5934    public $invitedPlayerIds;
5935    public $kind;
5936    protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics';
5937    protected $networkDiagnosticsDataType = '';
5938    public $requestId;
5939    public $variant;
5940  
5941  
5942    public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria)
5943    {
5944      $this->autoMatchingCriteria = $autoMatchingCriteria;
5945    }
5946    public function getAutoMatchingCriteria()
5947    {
5948      return $this->autoMatchingCriteria;
5949    }
5950    public function setCapabilities($capabilities)
5951    {
5952      $this->capabilities = $capabilities;
5953    }
5954    public function getCapabilities()
5955    {
5956      return $this->capabilities;
5957    }
5958    public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
5959    {
5960      $this->clientAddress = $clientAddress;
5961    }
5962    public function getClientAddress()
5963    {
5964      return $this->clientAddress;
5965    }
5966    public function setInvitedPlayerIds($invitedPlayerIds)
5967    {
5968      $this->invitedPlayerIds = $invitedPlayerIds;
5969    }
5970    public function getInvitedPlayerIds()
5971    {
5972      return $this->invitedPlayerIds;
5973    }
5974    public function setKind($kind)
5975    {
5976      $this->kind = $kind;
5977    }
5978    public function getKind()
5979    {
5980      return $this->kind;
5981    }
5982    public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics)
5983    {
5984      $this->networkDiagnostics = $networkDiagnostics;
5985    }
5986    public function getNetworkDiagnostics()
5987    {
5988      return $this->networkDiagnostics;
5989    }
5990    public function setRequestId($requestId)
5991    {
5992      $this->requestId = $requestId;
5993    }
5994    public function getRequestId()
5995    {
5996      return $this->requestId;
5997    }
5998    public function setVariant($variant)
5999    {
6000      $this->variant = $variant;
6001    }
6002    public function getVariant()
6003    {
6004      return $this->variant;
6005    }
6006  }
6007  
6008  class Google_Service_Games_RoomJoinRequest extends Google_Collection
6009  {
6010    protected $collection_key = 'capabilities';
6011    protected $internal_gapi_mappings = array(
6012    );
6013    public $capabilities;
6014    protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
6015    protected $clientAddressDataType = '';
6016    public $kind;
6017    protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics';
6018    protected $networkDiagnosticsDataType = '';
6019  
6020  
6021    public function setCapabilities($capabilities)
6022    {
6023      $this->capabilities = $capabilities;
6024    }
6025    public function getCapabilities()
6026    {
6027      return $this->capabilities;
6028    }
6029    public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
6030    {
6031      $this->clientAddress = $clientAddress;
6032    }
6033    public function getClientAddress()
6034    {
6035      return $this->clientAddress;
6036    }
6037    public function setKind($kind)
6038    {
6039      $this->kind = $kind;
6040    }
6041    public function getKind()
6042    {
6043      return $this->kind;
6044    }
6045    public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics)
6046    {
6047      $this->networkDiagnostics = $networkDiagnostics;
6048    }
6049    public function getNetworkDiagnostics()
6050    {
6051      return $this->networkDiagnostics;
6052    }
6053  }
6054  
6055  class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection
6056  {
6057    protected $collection_key = 'peerSession';
6058    protected $internal_gapi_mappings = array(
6059    );
6060    public $androidNetworkSubtype;
6061    public $androidNetworkType;
6062    public $iosNetworkType;
6063    public $kind;
6064    public $networkOperatorCode;
6065    public $networkOperatorName;
6066    protected $peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics';
6067    protected $peerSessionDataType = 'array';
6068    public $socketsUsed;
6069  
6070  
6071    public function setAndroidNetworkSubtype($androidNetworkSubtype)
6072    {
6073      $this->androidNetworkSubtype = $androidNetworkSubtype;
6074    }
6075    public function getAndroidNetworkSubtype()
6076    {
6077      return $this->androidNetworkSubtype;
6078    }
6079    public function setAndroidNetworkType($androidNetworkType)
6080    {
6081      $this->androidNetworkType = $androidNetworkType;
6082    }
6083    public function getAndroidNetworkType()
6084    {
6085      return $this->androidNetworkType;
6086    }
6087    public function setIosNetworkType($iosNetworkType)
6088    {
6089      $this->iosNetworkType = $iosNetworkType;
6090    }
6091    public function getIosNetworkType()
6092    {
6093      return $this->iosNetworkType;
6094    }
6095    public function setKind($kind)
6096    {
6097      $this->kind = $kind;
6098    }
6099    public function getKind()
6100    {
6101      return $this->kind;
6102    }
6103    public function setNetworkOperatorCode($networkOperatorCode)
6104    {
6105      $this->networkOperatorCode = $networkOperatorCode;
6106    }
6107    public function getNetworkOperatorCode()
6108    {
6109      return $this->networkOperatorCode;
6110    }
6111    public function setNetworkOperatorName($networkOperatorName)
6112    {
6113      $this->networkOperatorName = $networkOperatorName;
6114    }
6115    public function getNetworkOperatorName()
6116    {
6117      return $this->networkOperatorName;
6118    }
6119    public function setPeerSession($peerSession)
6120    {
6121      $this->peerSession = $peerSession;
6122    }
6123    public function getPeerSession()
6124    {
6125      return $this->peerSession;
6126    }
6127    public function setSocketsUsed($socketsUsed)
6128    {
6129      $this->socketsUsed = $socketsUsed;
6130    }
6131    public function getSocketsUsed()
6132    {
6133      return $this->socketsUsed;
6134    }
6135  }
6136  
6137  class Google_Service_Games_RoomLeaveRequest extends Google_Model
6138  {
6139    protected $internal_gapi_mappings = array(
6140    );
6141    public $kind;
6142    protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics';
6143    protected $leaveDiagnosticsDataType = '';
6144    public $reason;
6145  
6146  
6147    public function setKind($kind)
6148    {
6149      $this->kind = $kind;
6150    }
6151    public function getKind()
6152    {
6153      return $this->kind;
6154    }
6155    public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics)
6156    {
6157      $this->leaveDiagnostics = $leaveDiagnostics;
6158    }
6159    public function getLeaveDiagnostics()
6160    {
6161      return $this->leaveDiagnostics;
6162    }
6163    public function setReason($reason)
6164    {
6165      $this->reason = $reason;
6166    }
6167    public function getReason()
6168    {
6169      return $this->reason;
6170    }
6171  }
6172  
6173  class Google_Service_Games_RoomList extends Google_Collection
6174  {
6175    protected $collection_key = 'items';
6176    protected $internal_gapi_mappings = array(
6177    );
6178    protected $itemsType = 'Google_Service_Games_Room';
6179    protected $itemsDataType = 'array';
6180    public $kind;
6181    public $nextPageToken;
6182  
6183  
6184    public function setItems($items)
6185    {
6186      $this->items = $items;
6187    }
6188    public function getItems()
6189    {
6190      return $this->items;
6191    }
6192    public function setKind($kind)
6193    {
6194      $this->kind = $kind;
6195    }
6196    public function getKind()
6197    {
6198      return $this->kind;
6199    }
6200    public function setNextPageToken($nextPageToken)
6201    {
6202      $this->nextPageToken = $nextPageToken;
6203    }
6204    public function getNextPageToken()
6205    {
6206      return $this->nextPageToken;
6207    }
6208  }
6209  
6210  class Google_Service_Games_RoomModification extends Google_Model
6211  {
6212    protected $internal_gapi_mappings = array(
6213    );
6214    public $kind;
6215    public $modifiedTimestampMillis;
6216    public $participantId;
6217  
6218  
6219    public function setKind($kind)
6220    {
6221      $this->kind = $kind;
6222    }
6223    public function getKind()
6224    {
6225      return $this->kind;
6226    }
6227    public function setModifiedTimestampMillis($modifiedTimestampMillis)
6228    {
6229      $this->modifiedTimestampMillis = $modifiedTimestampMillis;
6230    }
6231    public function getModifiedTimestampMillis()
6232    {
6233      return $this->modifiedTimestampMillis;
6234    }
6235    public function setParticipantId($participantId)
6236    {
6237      $this->participantId = $participantId;
6238    }
6239    public function getParticipantId()
6240    {
6241      return $this->participantId;
6242    }
6243  }
6244  
6245  class Google_Service_Games_RoomP2PStatus extends Google_Model
6246  {
6247    protected $internal_gapi_mappings = array(
6248          "errorReason" => "error_reason",
6249    );
6250    public $connectionSetupLatencyMillis;
6251    public $error;
6252    public $errorReason;
6253    public $kind;
6254    public $participantId;
6255    public $status;
6256    public $unreliableRoundtripLatencyMillis;
6257  
6258  
6259    public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis)
6260    {
6261      $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis;
6262    }
6263    public function getConnectionSetupLatencyMillis()
6264    {
6265      return $this->connectionSetupLatencyMillis;
6266    }
6267    public function setError($error)
6268    {
6269      $this->error = $error;
6270    }
6271    public function getError()
6272    {
6273      return $this->error;
6274    }
6275    public function setErrorReason($errorReason)
6276    {
6277      $this->errorReason = $errorReason;
6278    }
6279    public function getErrorReason()
6280    {
6281      return $this->errorReason;
6282    }
6283    public function setKind($kind)
6284    {
6285      $this->kind = $kind;
6286    }
6287    public function getKind()
6288    {
6289      return $this->kind;
6290    }
6291    public function setParticipantId($participantId)
6292    {
6293      $this->participantId = $participantId;
6294    }
6295    public function getParticipantId()
6296    {
6297      return $this->participantId;
6298    }
6299    public function setStatus($status)
6300    {
6301      $this->status = $status;
6302    }
6303    public function getStatus()
6304    {
6305      return $this->status;
6306    }
6307    public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis)
6308    {
6309      $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis;
6310    }
6311    public function getUnreliableRoundtripLatencyMillis()
6312    {
6313      return $this->unreliableRoundtripLatencyMillis;
6314    }
6315  }
6316  
6317  class Google_Service_Games_RoomP2PStatuses extends Google_Collection
6318  {
6319    protected $collection_key = 'updates';
6320    protected $internal_gapi_mappings = array(
6321    );
6322    public $kind;
6323    protected $updatesType = 'Google_Service_Games_RoomP2PStatus';
6324    protected $updatesDataType = 'array';
6325  
6326  
6327    public function setKind($kind)
6328    {
6329      $this->kind = $kind;
6330    }
6331    public function getKind()
6332    {
6333      return $this->kind;
6334    }
6335    public function setUpdates($updates)
6336    {
6337      $this->updates = $updates;
6338    }
6339    public function getUpdates()
6340    {
6341      return $this->updates;
6342    }
6343  }
6344  
6345  class Google_Service_Games_RoomParticipant extends Google_Collection
6346  {
6347    protected $collection_key = 'capabilities';
6348    protected $internal_gapi_mappings = array(
6349    );
6350    public $autoMatched;
6351    protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
6352    protected $autoMatchedPlayerDataType = '';
6353    public $capabilities;
6354    protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
6355    protected $clientAddressDataType = '';
6356    public $connected;
6357    public $id;
6358    public $kind;
6359    public $leaveReason;
6360    protected $playerType = 'Google_Service_Games_Player';
6361    protected $playerDataType = '';
6362    public $status;
6363  
6364  
6365    public function setAutoMatched($autoMatched)
6366    {
6367      $this->autoMatched = $autoMatched;
6368    }
6369    public function getAutoMatched()
6370    {
6371      return $this->autoMatched;
6372    }
6373    public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
6374    {
6375      $this->autoMatchedPlayer = $autoMatchedPlayer;
6376    }
6377    public function getAutoMatchedPlayer()
6378    {
6379      return $this->autoMatchedPlayer;
6380    }
6381    public function setCapabilities($capabilities)
6382    {
6383      $this->capabilities = $capabilities;
6384    }
6385    public function getCapabilities()
6386    {
6387      return $this->capabilities;
6388    }
6389    public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
6390    {
6391      $this->clientAddress = $clientAddress;
6392    }
6393    public function getClientAddress()
6394    {
6395      return $this->clientAddress;
6396    }
6397    public function setConnected($connected)
6398    {
6399      $this->connected = $connected;
6400    }
6401    public function getConnected()
6402    {
6403      return $this->connected;
6404    }
6405    public function setId($id)
6406    {
6407      $this->id = $id;
6408    }
6409    public function getId()
6410    {
6411      return $this->id;
6412    }
6413    public function setKind($kind)
6414    {
6415      $this->kind = $kind;
6416    }
6417    public function getKind()
6418    {
6419      return $this->kind;
6420    }
6421    public function setLeaveReason($leaveReason)
6422    {
6423      $this->leaveReason = $leaveReason;
6424    }
6425    public function getLeaveReason()
6426    {
6427      return $this->leaveReason;
6428    }
6429    public function setPlayer(Google_Service_Games_Player $player)
6430    {
6431      $this->player = $player;
6432    }
6433    public function getPlayer()
6434    {
6435      return $this->player;
6436    }
6437    public function setStatus($status)
6438    {
6439      $this->status = $status;
6440    }
6441    public function getStatus()
6442    {
6443      return $this->status;
6444    }
6445  }
6446  
6447  class Google_Service_Games_RoomStatus extends Google_Collection
6448  {
6449    protected $collection_key = 'participants';
6450    protected $internal_gapi_mappings = array(
6451    );
6452    protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus';
6453    protected $autoMatchingStatusDataType = '';
6454    public $kind;
6455    protected $participantsType = 'Google_Service_Games_RoomParticipant';
6456    protected $participantsDataType = 'array';
6457    public $roomId;
6458    public $status;
6459    public $statusVersion;
6460  
6461  
6462    public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus)
6463    {
6464      $this->autoMatchingStatus = $autoMatchingStatus;
6465    }
6466    public function getAutoMatchingStatus()
6467    {
6468      return $this->autoMatchingStatus;
6469    }
6470    public function setKind($kind)
6471    {
6472      $this->kind = $kind;
6473    }
6474    public function getKind()
6475    {
6476      return $this->kind;
6477    }
6478    public function setParticipants($participants)
6479    {
6480      $this->participants = $participants;
6481    }
6482    public function getParticipants()
6483    {
6484      return $this->participants;
6485    }
6486    public function setRoomId($roomId)
6487    {
6488      $this->roomId = $roomId;
6489    }
6490    public function getRoomId()
6491    {
6492      return $this->roomId;
6493    }
6494    public function setStatus($status)
6495    {
6496      $this->status = $status;
6497    }
6498    public function getStatus()
6499    {
6500      return $this->status;
6501    }
6502    public function setStatusVersion($statusVersion)
6503    {
6504      $this->statusVersion = $statusVersion;
6505    }
6506    public function getStatusVersion()
6507    {
6508      return $this->statusVersion;
6509    }
6510  }
6511  
6512  class Google_Service_Games_ScoreSubmission extends Google_Model
6513  {
6514    protected $internal_gapi_mappings = array(
6515    );
6516    public $kind;
6517    public $leaderboardId;
6518    public $score;
6519    public $scoreTag;
6520    public $signature;
6521  
6522  
6523    public function setKind($kind)
6524    {
6525      $this->kind = $kind;
6526    }
6527    public function getKind()
6528    {
6529      return $this->kind;
6530    }
6531    public function setLeaderboardId($leaderboardId)
6532    {
6533      $this->leaderboardId = $leaderboardId;
6534    }
6535    public function getLeaderboardId()
6536    {
6537      return $this->leaderboardId;
6538    }
6539    public function setScore($score)
6540    {
6541      $this->score = $score;
6542    }
6543    public function getScore()
6544    {
6545      return $this->score;
6546    }
6547    public function setScoreTag($scoreTag)
6548    {
6549      $this->scoreTag = $scoreTag;
6550    }
6551    public function getScoreTag()
6552    {
6553      return $this->scoreTag;
6554    }
6555    public function setSignature($signature)
6556    {
6557      $this->signature = $signature;
6558    }
6559    public function getSignature()
6560    {
6561      return $this->signature;
6562    }
6563  }
6564  
6565  class Google_Service_Games_Snapshot extends Google_Model
6566  {
6567    protected $internal_gapi_mappings = array(
6568    );
6569    protected $coverImageType = 'Google_Service_Games_SnapshotImage';
6570    protected $coverImageDataType = '';
6571    public $description;
6572    public $driveId;
6573    public $durationMillis;
6574    public $id;
6575    public $kind;
6576    public $lastModifiedMillis;
6577    public $progressValue;
6578    public $title;
6579    public $type;
6580    public $uniqueName;
6581  
6582  
6583    public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage)
6584    {
6585      $this->coverImage = $coverImage;
6586    }
6587    public function getCoverImage()
6588    {
6589      return $this->coverImage;
6590    }
6591    public function setDescription($description)
6592    {
6593      $this->description = $description;
6594    }
6595    public function getDescription()
6596    {
6597      return $this->description;
6598    }
6599    public function setDriveId($driveId)
6600    {
6601      $this->driveId = $driveId;
6602    }
6603    public function getDriveId()
6604    {
6605      return $this->driveId;
6606    }
6607    public function setDurationMillis($durationMillis)
6608    {
6609      $this->durationMillis = $durationMillis;
6610    }
6611    public function getDurationMillis()
6612    {
6613      return $this->durationMillis;
6614    }
6615    public function setId($id)
6616    {
6617      $this->id = $id;
6618    }
6619    public function getId()
6620    {
6621      return $this->id;
6622    }
6623    public function setKind($kind)
6624    {
6625      $this->kind = $kind;
6626    }
6627    public function getKind()
6628    {
6629      return $this->kind;
6630    }
6631    public function setLastModifiedMillis($lastModifiedMillis)
6632    {
6633      $this->lastModifiedMillis = $lastModifiedMillis;
6634    }
6635    public function getLastModifiedMillis()
6636    {
6637      return $this->lastModifiedMillis;
6638    }
6639    public function setProgressValue($progressValue)
6640    {
6641      $this->progressValue = $progressValue;
6642    }
6643    public function getProgressValue()
6644    {
6645      return $this->progressValue;
6646    }
6647    public function setTitle($title)
6648    {
6649      $this->title = $title;
6650    }
6651    public function getTitle()
6652    {
6653      return $this->title;
6654    }
6655    public function setType($type)
6656    {
6657      $this->type = $type;
6658    }
6659    public function getType()
6660    {
6661      return $this->type;
6662    }
6663    public function setUniqueName($uniqueName)
6664    {
6665      $this->uniqueName = $uniqueName;
6666    }
6667    public function getUniqueName()
6668    {
6669      return $this->uniqueName;
6670    }
6671  }
6672  
6673  class Google_Service_Games_SnapshotImage extends Google_Model
6674  {
6675    protected $internal_gapi_mappings = array(
6676          "mimeType" => "mime_type",
6677    );
6678    public $height;
6679    public $kind;
6680    public $mimeType;
6681    public $url;
6682    public $width;
6683  
6684  
6685    public function setHeight($height)
6686    {
6687      $this->height = $height;
6688    }
6689    public function getHeight()
6690    {
6691      return $this->height;
6692    }
6693    public function setKind($kind)
6694    {
6695      $this->kind = $kind;
6696    }
6697    public function getKind()
6698    {
6699      return $this->kind;
6700    }
6701    public function setMimeType($mimeType)
6702    {
6703      $this->mimeType = $mimeType;
6704    }
6705    public function getMimeType()
6706    {
6707      return $this->mimeType;
6708    }
6709    public function setUrl($url)
6710    {
6711      $this->url = $url;
6712    }
6713    public function getUrl()
6714    {
6715      return $this->url;
6716    }
6717    public function setWidth($width)
6718    {
6719      $this->width = $width;
6720    }
6721    public function getWidth()
6722    {
6723      return $this->width;
6724    }
6725  }
6726  
6727  class Google_Service_Games_SnapshotListResponse extends Google_Collection
6728  {
6729    protected $collection_key = 'items';
6730    protected $internal_gapi_mappings = array(
6731    );
6732    protected $itemsType = 'Google_Service_Games_Snapshot';
6733    protected $itemsDataType = 'array';
6734    public $kind;
6735    public $nextPageToken;
6736  
6737  
6738    public function setItems($items)
6739    {
6740      $this->items = $items;
6741    }
6742    public function getItems()
6743    {
6744      return $this->items;
6745    }
6746    public function setKind($kind)
6747    {
6748      $this->kind = $kind;
6749    }
6750    public function getKind()
6751    {
6752      return $this->kind;
6753    }
6754    public function setNextPageToken($nextPageToken)
6755    {
6756      $this->nextPageToken = $nextPageToken;
6757    }
6758    public function getNextPageToken()
6759    {
6760      return $this->nextPageToken;
6761    }
6762  }
6763  
6764  class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model
6765  {
6766    protected $internal_gapi_mappings = array(
6767    );
6768    public $exclusiveBitmask;
6769    public $kind;
6770    public $maxAutoMatchingPlayers;
6771    public $minAutoMatchingPlayers;
6772  
6773  
6774    public function setExclusiveBitmask($exclusiveBitmask)
6775    {
6776      $this->exclusiveBitmask = $exclusiveBitmask;
6777    }
6778    public function getExclusiveBitmask()
6779    {
6780      return $this->exclusiveBitmask;
6781    }
6782    public function setKind($kind)
6783    {
6784      $this->kind = $kind;
6785    }
6786    public function getKind()
6787    {
6788      return $this->kind;
6789    }
6790    public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers)
6791    {
6792      $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers;
6793    }
6794    public function getMaxAutoMatchingPlayers()
6795    {
6796      return $this->maxAutoMatchingPlayers;
6797    }
6798    public function setMinAutoMatchingPlayers($minAutoMatchingPlayers)
6799    {
6800      $this->minAutoMatchingPlayers = $minAutoMatchingPlayers;
6801    }
6802    public function getMinAutoMatchingPlayers()
6803    {
6804      return $this->minAutoMatchingPlayers;
6805    }
6806  }
6807  
6808  class Google_Service_Games_TurnBasedMatch extends Google_Collection
6809  {
6810    protected $collection_key = 'results';
6811    protected $internal_gapi_mappings = array(
6812    );
6813    public $applicationId;
6814    protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria';
6815    protected $autoMatchingCriteriaDataType = '';
6816    protected $creationDetailsType = 'Google_Service_Games_TurnBasedMatchModification';
6817    protected $creationDetailsDataType = '';
6818    protected $dataType = 'Google_Service_Games_TurnBasedMatchData';
6819    protected $dataDataType = '';
6820    public $description;
6821    public $inviterId;
6822    public $kind;
6823    protected $lastUpdateDetailsType = 'Google_Service_Games_TurnBasedMatchModification';
6824    protected $lastUpdateDetailsDataType = '';
6825    public $matchId;
6826    public $matchNumber;
6827    public $matchVersion;
6828    protected $participantsType = 'Google_Service_Games_TurnBasedMatchParticipant';
6829    protected $participantsDataType = 'array';
6830    public $pendingParticipantId;
6831    protected $previousMatchDataType = 'Google_Service_Games_TurnBasedMatchData';
6832    protected $previousMatchDataDataType = '';
6833    public $rematchId;
6834    protected $resultsType = 'Google_Service_Games_ParticipantResult';
6835    protected $resultsDataType = 'array';
6836    public $status;
6837    public $userMatchStatus;
6838    public $variant;
6839    public $withParticipantId;
6840  
6841  
6842    public function setApplicationId($applicationId)
6843    {
6844      $this->applicationId = $applicationId;
6845    }
6846    public function getApplicationId()
6847    {
6848      return $this->applicationId;
6849    }
6850    public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria)
6851    {
6852      $this->autoMatchingCriteria = $autoMatchingCriteria;
6853    }
6854    public function getAutoMatchingCriteria()
6855    {
6856      return $this->autoMatchingCriteria;
6857    }
6858    public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails)
6859    {
6860      $this->creationDetails = $creationDetails;
6861    }
6862    public function getCreationDetails()
6863    {
6864      return $this->creationDetails;
6865    }
6866    public function setData(Google_Service_Games_TurnBasedMatchData $data)
6867    {
6868      $this->data = $data;
6869    }
6870    public function getData()
6871    {
6872      return $this->data;
6873    }
6874    public function setDescription($description)
6875    {
6876      $this->description = $description;
6877    }
6878    public function getDescription()
6879    {
6880      return $this->description;
6881    }
6882    public function setInviterId($inviterId)
6883    {
6884      $this->inviterId = $inviterId;
6885    }
6886    public function getInviterId()
6887    {
6888      return $this->inviterId;
6889    }
6890    public function setKind($kind)
6891    {
6892      $this->kind = $kind;
6893    }
6894    public function getKind()
6895    {
6896      return $this->kind;
6897    }
6898    public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails)
6899    {
6900      $this->lastUpdateDetails = $lastUpdateDetails;
6901    }
6902    public function getLastUpdateDetails()
6903    {
6904      return $this->lastUpdateDetails;
6905    }
6906    public function setMatchId($matchId)
6907    {
6908      $this->matchId = $matchId;
6909    }
6910    public function getMatchId()
6911    {
6912      return $this->matchId;
6913    }
6914    public function setMatchNumber($matchNumber)
6915    {
6916      $this->matchNumber = $matchNumber;
6917    }
6918    public function getMatchNumber()
6919    {
6920      return $this->matchNumber;
6921    }
6922    public function setMatchVersion($matchVersion)
6923    {
6924      $this->matchVersion = $matchVersion;
6925    }
6926    public function getMatchVersion()
6927    {
6928      return $this->matchVersion;
6929    }
6930    public function setParticipants($participants)
6931    {
6932      $this->participants = $participants;
6933    }
6934    public function getParticipants()
6935    {
6936      return $this->participants;
6937    }
6938    public function setPendingParticipantId($pendingParticipantId)
6939    {
6940      $this->pendingParticipantId = $pendingParticipantId;
6941    }
6942    public function getPendingParticipantId()
6943    {
6944      return $this->pendingParticipantId;
6945    }
6946    public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData)
6947    {
6948      $this->previousMatchData = $previousMatchData;
6949    }
6950    public function getPreviousMatchData()
6951    {
6952      return $this->previousMatchData;
6953    }
6954    public function setRematchId($rematchId)
6955    {
6956      $this->rematchId = $rematchId;
6957    }
6958    public function getRematchId()
6959    {
6960      return $this->rematchId;
6961    }
6962    public function setResults($results)
6963    {
6964      $this->results = $results;
6965    }
6966    public function getResults()
6967    {
6968      return $this->results;
6969    }
6970    public function setStatus($status)
6971    {
6972      $this->status = $status;
6973    }
6974    public function getStatus()
6975    {
6976      return $this->status;
6977    }
6978    public function setUserMatchStatus($userMatchStatus)
6979    {
6980      $this->userMatchStatus = $userMatchStatus;
6981    }
6982    public function getUserMatchStatus()
6983    {
6984      return $this->userMatchStatus;
6985    }
6986    public function setVariant($variant)
6987    {
6988      $this->variant = $variant;
6989    }
6990    public function getVariant()
6991    {
6992      return $this->variant;
6993    }
6994    public function setWithParticipantId($withParticipantId)
6995    {
6996      $this->withParticipantId = $withParticipantId;
6997    }
6998    public function getWithParticipantId()
6999    {
7000      return $this->withParticipantId;
7001    }
7002  }
7003  
7004  class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection
7005  {
7006    protected $collection_key = 'invitedPlayerIds';
7007    protected $internal_gapi_mappings = array(
7008    );
7009    protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria';
7010    protected $autoMatchingCriteriaDataType = '';
7011    public $invitedPlayerIds;
7012    public $kind;
7013    public $requestId;
7014    public $variant;
7015  
7016  
7017    public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria)
7018    {
7019      $this->autoMatchingCriteria = $autoMatchingCriteria;
7020    }
7021    public function getAutoMatchingCriteria()
7022    {
7023      return $this->autoMatchingCriteria;
7024    }
7025    public function setInvitedPlayerIds($invitedPlayerIds)
7026    {
7027      $this->invitedPlayerIds = $invitedPlayerIds;
7028    }
7029    public function getInvitedPlayerIds()
7030    {
7031      return $this->invitedPlayerIds;
7032    }
7033    public function setKind($kind)
7034    {
7035      $this->kind = $kind;
7036    }
7037    public function getKind()
7038    {
7039      return $this->kind;
7040    }
7041    public function setRequestId($requestId)
7042    {
7043      $this->requestId = $requestId;
7044    }
7045    public function getRequestId()
7046    {
7047      return $this->requestId;
7048    }
7049    public function setVariant($variant)
7050    {
7051      $this->variant = $variant;
7052    }
7053    public function getVariant()
7054    {
7055      return $this->variant;
7056    }
7057  }
7058  
7059  class Google_Service_Games_TurnBasedMatchData extends Google_Model
7060  {
7061    protected $internal_gapi_mappings = array(
7062    );
7063    public $data;
7064    public $dataAvailable;
7065    public $kind;
7066  
7067  
7068    public function setData($data)
7069    {
7070      $this->data = $data;
7071    }
7072    public function getData()
7073    {
7074      return $this->data;
7075    }
7076    public function setDataAvailable($dataAvailable)
7077    {
7078      $this->dataAvailable = $dataAvailable;
7079    }
7080    public function getDataAvailable()
7081    {
7082      return $this->dataAvailable;
7083    }
7084    public function setKind($kind)
7085    {
7086      $this->kind = $kind;
7087    }
7088    public function getKind()
7089    {
7090      return $this->kind;
7091    }
7092  }
7093  
7094  class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model
7095  {
7096    protected $internal_gapi_mappings = array(
7097    );
7098    public $data;
7099    public $kind;
7100  
7101  
7102    public function setData($data)
7103    {
7104      $this->data = $data;
7105    }
7106    public function getData()
7107    {
7108      return $this->data;
7109    }
7110    public function setKind($kind)
7111    {
7112      $this->kind = $kind;
7113    }
7114    public function getKind()
7115    {
7116      return $this->kind;
7117    }
7118  }
7119  
7120  class Google_Service_Games_TurnBasedMatchList extends Google_Collection
7121  {
7122    protected $collection_key = 'items';
7123    protected $internal_gapi_mappings = array(
7124    );
7125    protected $itemsType = 'Google_Service_Games_TurnBasedMatch';
7126    protected $itemsDataType = 'array';
7127    public $kind;
7128    public $nextPageToken;
7129  
7130  
7131    public function setItems($items)
7132    {
7133      $this->items = $items;
7134    }
7135    public function getItems()
7136    {
7137      return $this->items;
7138    }
7139    public function setKind($kind)
7140    {
7141      $this->kind = $kind;
7142    }
7143    public function getKind()
7144    {
7145      return $this->kind;
7146    }
7147    public function setNextPageToken($nextPageToken)
7148    {
7149      $this->nextPageToken = $nextPageToken;
7150    }
7151    public function getNextPageToken()
7152    {
7153      return $this->nextPageToken;
7154    }
7155  }
7156  
7157  class Google_Service_Games_TurnBasedMatchModification extends Google_Model
7158  {
7159    protected $internal_gapi_mappings = array(
7160    );
7161    public $kind;
7162    public $modifiedTimestampMillis;
7163    public $participantId;
7164  
7165  
7166    public function setKind($kind)
7167    {
7168      $this->kind = $kind;
7169    }
7170    public function getKind()
7171    {
7172      return $this->kind;
7173    }
7174    public function setModifiedTimestampMillis($modifiedTimestampMillis)
7175    {
7176      $this->modifiedTimestampMillis = $modifiedTimestampMillis;
7177    }
7178    public function getModifiedTimestampMillis()
7179    {
7180      return $this->modifiedTimestampMillis;
7181    }
7182    public function setParticipantId($participantId)
7183    {
7184      $this->participantId = $participantId;
7185    }
7186    public function getParticipantId()
7187    {
7188      return $this->participantId;
7189    }
7190  }
7191  
7192  class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model
7193  {
7194    protected $internal_gapi_mappings = array(
7195    );
7196    public $autoMatched;
7197    protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
7198    protected $autoMatchedPlayerDataType = '';
7199    public $id;
7200    public $kind;
7201    protected $playerType = 'Google_Service_Games_Player';
7202    protected $playerDataType = '';
7203    public $status;
7204  
7205  
7206    public function setAutoMatched($autoMatched)
7207    {
7208      $this->autoMatched = $autoMatched;
7209    }
7210    public function getAutoMatched()
7211    {
7212      return $this->autoMatched;
7213    }
7214    public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
7215    {
7216      $this->autoMatchedPlayer = $autoMatchedPlayer;
7217    }
7218    public function getAutoMatchedPlayer()
7219    {
7220      return $this->autoMatchedPlayer;
7221    }
7222    public function setId($id)
7223    {
7224      $this->id = $id;
7225    }
7226    public function getId()
7227    {
7228      return $this->id;
7229    }
7230    public function setKind($kind)
7231    {
7232      $this->kind = $kind;
7233    }
7234    public function getKind()
7235    {
7236      return $this->kind;
7237    }
7238    public function setPlayer(Google_Service_Games_Player $player)
7239    {
7240      $this->player = $player;
7241    }
7242    public function getPlayer()
7243    {
7244      return $this->player;
7245    }
7246    public function setStatus($status)
7247    {
7248      $this->status = $status;
7249    }
7250    public function getStatus()
7251    {
7252      return $this->status;
7253    }
7254  }
7255  
7256  class Google_Service_Games_TurnBasedMatchRematch extends Google_Model
7257  {
7258    protected $internal_gapi_mappings = array(
7259    );
7260    public $kind;
7261    protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch';
7262    protected $previousMatchDataType = '';
7263    protected $rematchType = 'Google_Service_Games_TurnBasedMatch';
7264    protected $rematchDataType = '';
7265  
7266  
7267    public function setKind($kind)
7268    {
7269      $this->kind = $kind;
7270    }
7271    public function getKind()
7272    {
7273      return $this->kind;
7274    }
7275    public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch)
7276    {
7277      $this->previousMatch = $previousMatch;
7278    }
7279    public function getPreviousMatch()
7280    {
7281      return $this->previousMatch;
7282    }
7283    public function setRematch(Google_Service_Games_TurnBasedMatch $rematch)
7284    {
7285      $this->rematch = $rematch;
7286    }
7287    public function getRematch()
7288    {
7289      return $this->rematch;
7290    }
7291  }
7292  
7293  class Google_Service_Games_TurnBasedMatchResults extends Google_Collection
7294  {
7295    protected $collection_key = 'results';
7296    protected $internal_gapi_mappings = array(
7297    );
7298    protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest';
7299    protected $dataDataType = '';
7300    public $kind;
7301    public $matchVersion;
7302    protected $resultsType = 'Google_Service_Games_ParticipantResult';
7303    protected $resultsDataType = 'array';
7304  
7305  
7306    public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data)
7307    {
7308      $this->data = $data;
7309    }
7310    public function getData()
7311    {
7312      return $this->data;
7313    }
7314    public function setKind($kind)
7315    {
7316      $this->kind = $kind;
7317    }
7318    public function getKind()
7319    {
7320      return $this->kind;
7321    }
7322    public function setMatchVersion($matchVersion)
7323    {
7324      $this->matchVersion = $matchVersion;
7325    }
7326    public function getMatchVersion()
7327    {
7328      return $this->matchVersion;
7329    }
7330    public function setResults($results)
7331    {
7332      $this->results = $results;
7333    }
7334    public function getResults()
7335    {
7336      return $this->results;
7337    }
7338  }
7339  
7340  class Google_Service_Games_TurnBasedMatchSync extends Google_Collection
7341  {
7342    protected $collection_key = 'items';
7343    protected $internal_gapi_mappings = array(
7344    );
7345    protected $itemsType = 'Google_Service_Games_TurnBasedMatch';
7346    protected $itemsDataType = 'array';
7347    public $kind;
7348    public $moreAvailable;
7349    public $nextPageToken;
7350  
7351  
7352    public function setItems($items)
7353    {
7354      $this->items = $items;
7355    }
7356    public function getItems()
7357    {
7358      return $this->items;
7359    }
7360    public function setKind($kind)
7361    {
7362      $this->kind = $kind;
7363    }
7364    public function getKind()
7365    {
7366      return $this->kind;
7367    }
7368    public function setMoreAvailable($moreAvailable)
7369    {
7370      $this->moreAvailable = $moreAvailable;
7371    }
7372    public function getMoreAvailable()
7373    {
7374      return $this->moreAvailable;
7375    }
7376    public function setNextPageToken($nextPageToken)
7377    {
7378      $this->nextPageToken = $nextPageToken;
7379    }
7380    public function getNextPageToken()
7381    {
7382      return $this->nextPageToken;
7383    }
7384  }
7385  
7386  class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection
7387  {
7388    protected $collection_key = 'results';
7389    protected $internal_gapi_mappings = array(
7390    );
7391    protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest';
7392    protected $dataDataType = '';
7393    public $kind;
7394    public $matchVersion;
7395    public $pendingParticipantId;
7396    protected $resultsType = 'Google_Service_Games_ParticipantResult';
7397    protected $resultsDataType = 'array';
7398  
7399  
7400    public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data)
7401    {
7402      $this->data = $data;
7403    }
7404    public function getData()
7405    {
7406      return $this->data;
7407    }
7408    public function setKind($kind)
7409    {
7410      $this->kind = $kind;
7411    }
7412    public function getKind()
7413    {
7414      return $this->kind;
7415    }
7416    public function setMatchVersion($matchVersion)
7417    {
7418      $this->matchVersion = $matchVersion;
7419    }
7420    public function getMatchVersion()
7421    {
7422      return $this->matchVersion;
7423    }
7424    public function setPendingParticipantId($pendingParticipantId)
7425    {
7426      $this->pendingParticipantId = $pendingParticipantId;
7427    }
7428    public function getPendingParticipantId()
7429    {
7430      return $this->pendingParticipantId;
7431    }
7432    public function setResults($results)
7433    {
7434      $this->results = $results;
7435    }
7436    public function getResults()
7437    {
7438      return $this->results;
7439    }
7440  }