Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 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 GamesConfiguration (v1configuration).
  20   *
  21   * <p>
  22   * The Publishing 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_GamesConfiguration extends Google_Service
  32  {
  33    /** View and manage your Google Play Developer account. */
  34    const ANDROIDPUBLISHER =
  35        "https://www.googleapis.com/auth/androidpublisher";
  36  
  37    public $achievementConfigurations;
  38    public $imageConfigurations;
  39    public $leaderboardConfigurations;
  40    
  41  
  42    /**
  43     * Constructs the internal representation of the GamesConfiguration service.
  44     *
  45     * @param Google_Client $client
  46     */
  47    public function __construct(Google_Client $client)
  48    {
  49      parent::__construct($client);
  50      $this->rootUrl = 'https://www.googleapis.com/';
  51      $this->servicePath = 'games/v1configuration/';
  52      $this->version = 'v1configuration';
  53      $this->serviceName = 'gamesConfiguration';
  54  
  55      $this->achievementConfigurations = new Google_Service_GamesConfiguration_AchievementConfigurations_Resource(
  56          $this,
  57          $this->serviceName,
  58          'achievementConfigurations',
  59          array(
  60            'methods' => array(
  61              'delete' => array(
  62                'path' => 'achievements/{achievementId}',
  63                'httpMethod' => 'DELETE',
  64                'parameters' => array(
  65                  'achievementId' => array(
  66                    'location' => 'path',
  67                    'type' => 'string',
  68                    'required' => true,
  69                  ),
  70                ),
  71              ),'get' => array(
  72                'path' => 'achievements/{achievementId}',
  73                'httpMethod' => 'GET',
  74                'parameters' => array(
  75                  'achievementId' => array(
  76                    'location' => 'path',
  77                    'type' => 'string',
  78                    'required' => true,
  79                  ),
  80                ),
  81              ),'insert' => array(
  82                'path' => 'applications/{applicationId}/achievements',
  83                'httpMethod' => 'POST',
  84                'parameters' => array(
  85                  'applicationId' => array(
  86                    'location' => 'path',
  87                    'type' => 'string',
  88                    'required' => true,
  89                  ),
  90                ),
  91              ),'list' => array(
  92                'path' => 'applications/{applicationId}/achievements',
  93                'httpMethod' => 'GET',
  94                'parameters' => array(
  95                  'applicationId' => array(
  96                    'location' => 'path',
  97                    'type' => 'string',
  98                    'required' => true,
  99                  ),
 100                  'pageToken' => array(
 101                    'location' => 'query',
 102                    'type' => 'string',
 103                  ),
 104                  'maxResults' => array(
 105                    'location' => 'query',
 106                    'type' => 'integer',
 107                  ),
 108                ),
 109              ),'patch' => array(
 110                'path' => 'achievements/{achievementId}',
 111                'httpMethod' => 'PATCH',
 112                'parameters' => array(
 113                  'achievementId' => array(
 114                    'location' => 'path',
 115                    'type' => 'string',
 116                    'required' => true,
 117                  ),
 118                ),
 119              ),'update' => array(
 120                'path' => 'achievements/{achievementId}',
 121                'httpMethod' => 'PUT',
 122                'parameters' => array(
 123                  'achievementId' => array(
 124                    'location' => 'path',
 125                    'type' => 'string',
 126                    'required' => true,
 127                  ),
 128                ),
 129              ),
 130            )
 131          )
 132      );
 133      $this->imageConfigurations = new Google_Service_GamesConfiguration_ImageConfigurations_Resource(
 134          $this,
 135          $this->serviceName,
 136          'imageConfigurations',
 137          array(
 138            'methods' => array(
 139              'upload' => array(
 140                'path' => 'images/{resourceId}/imageType/{imageType}',
 141                'httpMethod' => 'POST',
 142                'parameters' => array(
 143                  'resourceId' => array(
 144                    'location' => 'path',
 145                    'type' => 'string',
 146                    'required' => true,
 147                  ),
 148                  'imageType' => array(
 149                    'location' => 'path',
 150                    'type' => 'string',
 151                    'required' => true,
 152                  ),
 153                ),
 154              ),
 155            )
 156          )
 157      );
 158      $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource(
 159          $this,
 160          $this->serviceName,
 161          'leaderboardConfigurations',
 162          array(
 163            'methods' => array(
 164              'delete' => array(
 165                'path' => 'leaderboards/{leaderboardId}',
 166                'httpMethod' => 'DELETE',
 167                'parameters' => array(
 168                  'leaderboardId' => array(
 169                    'location' => 'path',
 170                    'type' => 'string',
 171                    'required' => true,
 172                  ),
 173                ),
 174              ),'get' => array(
 175                'path' => 'leaderboards/{leaderboardId}',
 176                'httpMethod' => 'GET',
 177                'parameters' => array(
 178                  'leaderboardId' => array(
 179                    'location' => 'path',
 180                    'type' => 'string',
 181                    'required' => true,
 182                  ),
 183                ),
 184              ),'insert' => array(
 185                'path' => 'applications/{applicationId}/leaderboards',
 186                'httpMethod' => 'POST',
 187                'parameters' => array(
 188                  'applicationId' => array(
 189                    'location' => 'path',
 190                    'type' => 'string',
 191                    'required' => true,
 192                  ),
 193                ),
 194              ),'list' => array(
 195                'path' => 'applications/{applicationId}/leaderboards',
 196                'httpMethod' => 'GET',
 197                'parameters' => array(
 198                  'applicationId' => array(
 199                    'location' => 'path',
 200                    'type' => 'string',
 201                    'required' => true,
 202                  ),
 203                  'pageToken' => array(
 204                    'location' => 'query',
 205                    'type' => 'string',
 206                  ),
 207                  'maxResults' => array(
 208                    'location' => 'query',
 209                    'type' => 'integer',
 210                  ),
 211                ),
 212              ),'patch' => array(
 213                'path' => 'leaderboards/{leaderboardId}',
 214                'httpMethod' => 'PATCH',
 215                'parameters' => array(
 216                  'leaderboardId' => array(
 217                    'location' => 'path',
 218                    'type' => 'string',
 219                    'required' => true,
 220                  ),
 221                ),
 222              ),'update' => array(
 223                'path' => 'leaderboards/{leaderboardId}',
 224                'httpMethod' => 'PUT',
 225                'parameters' => array(
 226                  'leaderboardId' => array(
 227                    'location' => 'path',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                ),
 232              ),
 233            )
 234          )
 235      );
 236    }
 237  }
 238  
 239  
 240  /**
 241   * The "achievementConfigurations" collection of methods.
 242   * Typical usage is:
 243   *  <code>
 244   *   $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
 245   *   $achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
 246   *  </code>
 247   */
 248  class Google_Service_GamesConfiguration_AchievementConfigurations_Resource extends Google_Service_Resource
 249  {
 250  
 251    /**
 252     * Delete the achievement configuration with the given ID.
 253     * (achievementConfigurations.delete)
 254     *
 255     * @param string $achievementId The ID of the achievement used by this method.
 256     * @param array $optParams Optional parameters.
 257     */
 258    public function delete($achievementId, $optParams = array())
 259    {
 260      $params = array('achievementId' => $achievementId);
 261      $params = array_merge($params, $optParams);
 262      return $this->call('delete', array($params));
 263    }
 264  
 265    /**
 266     * Retrieves the metadata of the achievement configuration with the given ID.
 267     * (achievementConfigurations.get)
 268     *
 269     * @param string $achievementId The ID of the achievement used by this method.
 270     * @param array $optParams Optional parameters.
 271     * @return Google_Service_GamesConfiguration_AchievementConfiguration
 272     */
 273    public function get($achievementId, $optParams = array())
 274    {
 275      $params = array('achievementId' => $achievementId);
 276      $params = array_merge($params, $optParams);
 277      return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
 278    }
 279  
 280    /**
 281     * Insert a new achievement configuration in this application.
 282     * (achievementConfigurations.insert)
 283     *
 284     * @param string $applicationId The application ID from the Google Play
 285     * developer console.
 286     * @param Google_AchievementConfiguration $postBody
 287     * @param array $optParams Optional parameters.
 288     * @return Google_Service_GamesConfiguration_AchievementConfiguration
 289     */
 290    public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
 291    {
 292      $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
 293      $params = array_merge($params, $optParams);
 294      return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
 295    }
 296  
 297    /**
 298     * Returns a list of the achievement configurations in this application.
 299     * (achievementConfigurations.listAchievementConfigurations)
 300     *
 301     * @param string $applicationId The application ID from the Google Play
 302     * developer console.
 303     * @param array $optParams Optional parameters.
 304     *
 305     * @opt_param string pageToken The token returned by the previous request.
 306     * @opt_param int maxResults The maximum number of resource configurations to
 307     * return in the response, used for paging. For any response, the actual number
 308     * of resources returned may be less than the specified maxResults.
 309     * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse
 310     */
 311    public function listAchievementConfigurations($applicationId, $optParams = array())
 312    {
 313      $params = array('applicationId' => $applicationId);
 314      $params = array_merge($params, $optParams);
 315      return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse");
 316    }
 317  
 318    /**
 319     * Update the metadata of the achievement configuration with the given ID. This
 320     * method supports patch semantics. (achievementConfigurations.patch)
 321     *
 322     * @param string $achievementId The ID of the achievement used by this method.
 323     * @param Google_AchievementConfiguration $postBody
 324     * @param array $optParams Optional parameters.
 325     * @return Google_Service_GamesConfiguration_AchievementConfiguration
 326     */
 327    public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
 328    {
 329      $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
 330      $params = array_merge($params, $optParams);
 331      return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
 332    }
 333  
 334    /**
 335     * Update the metadata of the achievement configuration with the given ID.
 336     * (achievementConfigurations.update)
 337     *
 338     * @param string $achievementId The ID of the achievement used by this method.
 339     * @param Google_AchievementConfiguration $postBody
 340     * @param array $optParams Optional parameters.
 341     * @return Google_Service_GamesConfiguration_AchievementConfiguration
 342     */
 343    public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
 344    {
 345      $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
 346      $params = array_merge($params, $optParams);
 347      return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
 348    }
 349  }
 350  
 351  /**
 352   * The "imageConfigurations" collection of methods.
 353   * Typical usage is:
 354   *  <code>
 355   *   $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
 356   *   $imageConfigurations = $gamesConfigurationService->imageConfigurations;
 357   *  </code>
 358   */
 359  class Google_Service_GamesConfiguration_ImageConfigurations_Resource extends Google_Service_Resource
 360  {
 361  
 362    /**
 363     * Uploads an image for a resource with the given ID and image type.
 364     * (imageConfigurations.upload)
 365     *
 366     * @param string $resourceId The ID of the resource used by this method.
 367     * @param string $imageType Selects which image in a resource for this method.
 368     * @param array $optParams Optional parameters.
 369     * @return Google_Service_GamesConfiguration_ImageConfiguration
 370     */
 371    public function upload($resourceId, $imageType, $optParams = array())
 372    {
 373      $params = array('resourceId' => $resourceId, 'imageType' => $imageType);
 374      $params = array_merge($params, $optParams);
 375      return $this->call('upload', array($params), "Google_Service_GamesConfiguration_ImageConfiguration");
 376    }
 377  }
 378  
 379  /**
 380   * The "leaderboardConfigurations" collection of methods.
 381   * Typical usage is:
 382   *  <code>
 383   *   $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
 384   *   $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
 385   *  </code>
 386   */
 387  class Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource extends Google_Service_Resource
 388  {
 389  
 390    /**
 391     * Delete the leaderboard configuration with the given ID.
 392     * (leaderboardConfigurations.delete)
 393     *
 394     * @param string $leaderboardId The ID of the leaderboard.
 395     * @param array $optParams Optional parameters.
 396     */
 397    public function delete($leaderboardId, $optParams = array())
 398    {
 399      $params = array('leaderboardId' => $leaderboardId);
 400      $params = array_merge($params, $optParams);
 401      return $this->call('delete', array($params));
 402    }
 403  
 404    /**
 405     * Retrieves the metadata of the leaderboard configuration with the given ID.
 406     * (leaderboardConfigurations.get)
 407     *
 408     * @param string $leaderboardId The ID of the leaderboard.
 409     * @param array $optParams Optional parameters.
 410     * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
 411     */
 412    public function get($leaderboardId, $optParams = array())
 413    {
 414      $params = array('leaderboardId' => $leaderboardId);
 415      $params = array_merge($params, $optParams);
 416      return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
 417    }
 418  
 419    /**
 420     * Insert a new leaderboard configuration in this application.
 421     * (leaderboardConfigurations.insert)
 422     *
 423     * @param string $applicationId The application ID from the Google Play
 424     * developer console.
 425     * @param Google_LeaderboardConfiguration $postBody
 426     * @param array $optParams Optional parameters.
 427     * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
 428     */
 429    public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
 430    {
 431      $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
 432      $params = array_merge($params, $optParams);
 433      return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
 434    }
 435  
 436    /**
 437     * Returns a list of the leaderboard configurations in this application.
 438     * (leaderboardConfigurations.listLeaderboardConfigurations)
 439     *
 440     * @param string $applicationId The application ID from the Google Play
 441     * developer console.
 442     * @param array $optParams Optional parameters.
 443     *
 444     * @opt_param string pageToken The token returned by the previous request.
 445     * @opt_param int maxResults The maximum number of resource configurations to
 446     * return in the response, used for paging. For any response, the actual number
 447     * of resources returned may be less than the specified maxResults.
 448     * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse
 449     */
 450    public function listLeaderboardConfigurations($applicationId, $optParams = array())
 451    {
 452      $params = array('applicationId' => $applicationId);
 453      $params = array_merge($params, $optParams);
 454      return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse");
 455    }
 456  
 457    /**
 458     * Update the metadata of the leaderboard configuration with the given ID. This
 459     * method supports patch semantics. (leaderboardConfigurations.patch)
 460     *
 461     * @param string $leaderboardId The ID of the leaderboard.
 462     * @param Google_LeaderboardConfiguration $postBody
 463     * @param array $optParams Optional parameters.
 464     * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
 465     */
 466    public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
 467    {
 468      $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
 469      $params = array_merge($params, $optParams);
 470      return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
 471    }
 472  
 473    /**
 474     * Update the metadata of the leaderboard configuration with the given ID.
 475     * (leaderboardConfigurations.update)
 476     *
 477     * @param string $leaderboardId The ID of the leaderboard.
 478     * @param Google_LeaderboardConfiguration $postBody
 479     * @param array $optParams Optional parameters.
 480     * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
 481     */
 482    public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
 483    {
 484      $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
 485      $params = array_merge($params, $optParams);
 486      return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
 487    }
 488  }
 489  
 490  
 491  
 492  
 493  class Google_Service_GamesConfiguration_AchievementConfiguration extends Google_Model
 494  {
 495    protected $internal_gapi_mappings = array(
 496    );
 497    public $achievementType;
 498    protected $draftType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
 499    protected $draftDataType = '';
 500    public $id;
 501    public $initialState;
 502    public $kind;
 503    protected $publishedType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
 504    protected $publishedDataType = '';
 505    public $stepsToUnlock;
 506    public $token;
 507  
 508  
 509    public function setAchievementType($achievementType)
 510    {
 511      $this->achievementType = $achievementType;
 512    }
 513    public function getAchievementType()
 514    {
 515      return $this->achievementType;
 516    }
 517    public function setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft)
 518    {
 519      $this->draft = $draft;
 520    }
 521    public function getDraft()
 522    {
 523      return $this->draft;
 524    }
 525    public function setId($id)
 526    {
 527      $this->id = $id;
 528    }
 529    public function getId()
 530    {
 531      return $this->id;
 532    }
 533    public function setInitialState($initialState)
 534    {
 535      $this->initialState = $initialState;
 536    }
 537    public function getInitialState()
 538    {
 539      return $this->initialState;
 540    }
 541    public function setKind($kind)
 542    {
 543      $this->kind = $kind;
 544    }
 545    public function getKind()
 546    {
 547      return $this->kind;
 548    }
 549    public function setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published)
 550    {
 551      $this->published = $published;
 552    }
 553    public function getPublished()
 554    {
 555      return $this->published;
 556    }
 557    public function setStepsToUnlock($stepsToUnlock)
 558    {
 559      $this->stepsToUnlock = $stepsToUnlock;
 560    }
 561    public function getStepsToUnlock()
 562    {
 563      return $this->stepsToUnlock;
 564    }
 565    public function setToken($token)
 566    {
 567      $this->token = $token;
 568    }
 569    public function getToken()
 570    {
 571      return $this->token;
 572    }
 573  }
 574  
 575  class Google_Service_GamesConfiguration_AchievementConfigurationDetail extends Google_Model
 576  {
 577    protected $internal_gapi_mappings = array(
 578    );
 579    protected $descriptionType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 580    protected $descriptionDataType = '';
 581    public $iconUrl;
 582    public $kind;
 583    protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 584    protected $nameDataType = '';
 585    public $pointValue;
 586    public $sortRank;
 587  
 588  
 589    public function setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description)
 590    {
 591      $this->description = $description;
 592    }
 593    public function getDescription()
 594    {
 595      return $this->description;
 596    }
 597    public function setIconUrl($iconUrl)
 598    {
 599      $this->iconUrl = $iconUrl;
 600    }
 601    public function getIconUrl()
 602    {
 603      return $this->iconUrl;
 604    }
 605    public function setKind($kind)
 606    {
 607      $this->kind = $kind;
 608    }
 609    public function getKind()
 610    {
 611      return $this->kind;
 612    }
 613    public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
 614    {
 615      $this->name = $name;
 616    }
 617    public function getName()
 618    {
 619      return $this->name;
 620    }
 621    public function setPointValue($pointValue)
 622    {
 623      $this->pointValue = $pointValue;
 624    }
 625    public function getPointValue()
 626    {
 627      return $this->pointValue;
 628    }
 629    public function setSortRank($sortRank)
 630    {
 631      $this->sortRank = $sortRank;
 632    }
 633    public function getSortRank()
 634    {
 635      return $this->sortRank;
 636    }
 637  }
 638  
 639  class Google_Service_GamesConfiguration_AchievementConfigurationListResponse extends Google_Collection
 640  {
 641    protected $collection_key = 'items';
 642    protected $internal_gapi_mappings = array(
 643    );
 644    protected $itemsType = 'Google_Service_GamesConfiguration_AchievementConfiguration';
 645    protected $itemsDataType = 'array';
 646    public $kind;
 647    public $nextPageToken;
 648  
 649  
 650    public function setItems($items)
 651    {
 652      $this->items = $items;
 653    }
 654    public function getItems()
 655    {
 656      return $this->items;
 657    }
 658    public function setKind($kind)
 659    {
 660      $this->kind = $kind;
 661    }
 662    public function getKind()
 663    {
 664      return $this->kind;
 665    }
 666    public function setNextPageToken($nextPageToken)
 667    {
 668      $this->nextPageToken = $nextPageToken;
 669    }
 670    public function getNextPageToken()
 671    {
 672      return $this->nextPageToken;
 673    }
 674  }
 675  
 676  class Google_Service_GamesConfiguration_GamesNumberAffixConfiguration extends Google_Model
 677  {
 678    protected $internal_gapi_mappings = array(
 679    );
 680    protected $fewType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 681    protected $fewDataType = '';
 682    protected $manyType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 683    protected $manyDataType = '';
 684    protected $oneType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 685    protected $oneDataType = '';
 686    protected $otherType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 687    protected $otherDataType = '';
 688    protected $twoType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 689    protected $twoDataType = '';
 690    protected $zeroType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 691    protected $zeroDataType = '';
 692  
 693  
 694    public function setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few)
 695    {
 696      $this->few = $few;
 697    }
 698    public function getFew()
 699    {
 700      return $this->few;
 701    }
 702    public function setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many)
 703    {
 704      $this->many = $many;
 705    }
 706    public function getMany()
 707    {
 708      return $this->many;
 709    }
 710    public function setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one)
 711    {
 712      $this->one = $one;
 713    }
 714    public function getOne()
 715    {
 716      return $this->one;
 717    }
 718    public function setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other)
 719    {
 720      $this->other = $other;
 721    }
 722    public function getOther()
 723    {
 724      return $this->other;
 725    }
 726    public function setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two)
 727    {
 728      $this->two = $two;
 729    }
 730    public function getTwo()
 731    {
 732      return $this->two;
 733    }
 734    public function setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero)
 735    {
 736      $this->zero = $zero;
 737    }
 738    public function getZero()
 739    {
 740      return $this->zero;
 741    }
 742  }
 743  
 744  class Google_Service_GamesConfiguration_GamesNumberFormatConfiguration extends Google_Model
 745  {
 746    protected $internal_gapi_mappings = array(
 747    );
 748    public $currencyCode;
 749    public $numDecimalPlaces;
 750    public $numberFormatType;
 751    protected $suffixType = 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration';
 752    protected $suffixDataType = '';
 753  
 754  
 755    public function setCurrencyCode($currencyCode)
 756    {
 757      $this->currencyCode = $currencyCode;
 758    }
 759    public function getCurrencyCode()
 760    {
 761      return $this->currencyCode;
 762    }
 763    public function setNumDecimalPlaces($numDecimalPlaces)
 764    {
 765      $this->numDecimalPlaces = $numDecimalPlaces;
 766    }
 767    public function getNumDecimalPlaces()
 768    {
 769      return $this->numDecimalPlaces;
 770    }
 771    public function setNumberFormatType($numberFormatType)
 772    {
 773      $this->numberFormatType = $numberFormatType;
 774    }
 775    public function getNumberFormatType()
 776    {
 777      return $this->numberFormatType;
 778    }
 779    public function setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix)
 780    {
 781      $this->suffix = $suffix;
 782    }
 783    public function getSuffix()
 784    {
 785      return $this->suffix;
 786    }
 787  }
 788  
 789  class Google_Service_GamesConfiguration_ImageConfiguration extends Google_Model
 790  {
 791    protected $internal_gapi_mappings = array(
 792    );
 793    public $imageType;
 794    public $kind;
 795    public $resourceId;
 796    public $url;
 797  
 798  
 799    public function setImageType($imageType)
 800    {
 801      $this->imageType = $imageType;
 802    }
 803    public function getImageType()
 804    {
 805      return $this->imageType;
 806    }
 807    public function setKind($kind)
 808    {
 809      $this->kind = $kind;
 810    }
 811    public function getKind()
 812    {
 813      return $this->kind;
 814    }
 815    public function setResourceId($resourceId)
 816    {
 817      $this->resourceId = $resourceId;
 818    }
 819    public function getResourceId()
 820    {
 821      return $this->resourceId;
 822    }
 823    public function setUrl($url)
 824    {
 825      $this->url = $url;
 826    }
 827    public function getUrl()
 828    {
 829      return $this->url;
 830    }
 831  }
 832  
 833  class Google_Service_GamesConfiguration_LeaderboardConfiguration extends Google_Model
 834  {
 835    protected $internal_gapi_mappings = array(
 836    );
 837    protected $draftType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
 838    protected $draftDataType = '';
 839    public $id;
 840    public $kind;
 841    protected $publishedType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
 842    protected $publishedDataType = '';
 843    public $scoreMax;
 844    public $scoreMin;
 845    public $scoreOrder;
 846    public $token;
 847  
 848  
 849    public function setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft)
 850    {
 851      $this->draft = $draft;
 852    }
 853    public function getDraft()
 854    {
 855      return $this->draft;
 856    }
 857    public function setId($id)
 858    {
 859      $this->id = $id;
 860    }
 861    public function getId()
 862    {
 863      return $this->id;
 864    }
 865    public function setKind($kind)
 866    {
 867      $this->kind = $kind;
 868    }
 869    public function getKind()
 870    {
 871      return $this->kind;
 872    }
 873    public function setPublished(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published)
 874    {
 875      $this->published = $published;
 876    }
 877    public function getPublished()
 878    {
 879      return $this->published;
 880    }
 881    public function setScoreMax($scoreMax)
 882    {
 883      $this->scoreMax = $scoreMax;
 884    }
 885    public function getScoreMax()
 886    {
 887      return $this->scoreMax;
 888    }
 889    public function setScoreMin($scoreMin)
 890    {
 891      $this->scoreMin = $scoreMin;
 892    }
 893    public function getScoreMin()
 894    {
 895      return $this->scoreMin;
 896    }
 897    public function setScoreOrder($scoreOrder)
 898    {
 899      $this->scoreOrder = $scoreOrder;
 900    }
 901    public function getScoreOrder()
 902    {
 903      return $this->scoreOrder;
 904    }
 905    public function setToken($token)
 906    {
 907      $this->token = $token;
 908    }
 909    public function getToken()
 910    {
 911      return $this->token;
 912    }
 913  }
 914  
 915  class Google_Service_GamesConfiguration_LeaderboardConfigurationDetail extends Google_Model
 916  {
 917    protected $internal_gapi_mappings = array(
 918    );
 919    public $iconUrl;
 920    public $kind;
 921    protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
 922    protected $nameDataType = '';
 923    protected $scoreFormatType = 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration';
 924    protected $scoreFormatDataType = '';
 925    public $sortRank;
 926  
 927  
 928    public function setIconUrl($iconUrl)
 929    {
 930      $this->iconUrl = $iconUrl;
 931    }
 932    public function getIconUrl()
 933    {
 934      return $this->iconUrl;
 935    }
 936    public function setKind($kind)
 937    {
 938      $this->kind = $kind;
 939    }
 940    public function getKind()
 941    {
 942      return $this->kind;
 943    }
 944    public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
 945    {
 946      $this->name = $name;
 947    }
 948    public function getName()
 949    {
 950      return $this->name;
 951    }
 952    public function setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat)
 953    {
 954      $this->scoreFormat = $scoreFormat;
 955    }
 956    public function getScoreFormat()
 957    {
 958      return $this->scoreFormat;
 959    }
 960    public function setSortRank($sortRank)
 961    {
 962      $this->sortRank = $sortRank;
 963    }
 964    public function getSortRank()
 965    {
 966      return $this->sortRank;
 967    }
 968  }
 969  
 970  class Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse extends Google_Collection
 971  {
 972    protected $collection_key = 'items';
 973    protected $internal_gapi_mappings = array(
 974    );
 975    protected $itemsType = 'Google_Service_GamesConfiguration_LeaderboardConfiguration';
 976    protected $itemsDataType = 'array';
 977    public $kind;
 978    public $nextPageToken;
 979  
 980  
 981    public function setItems($items)
 982    {
 983      $this->items = $items;
 984    }
 985    public function getItems()
 986    {
 987      return $this->items;
 988    }
 989    public function setKind($kind)
 990    {
 991      $this->kind = $kind;
 992    }
 993    public function getKind()
 994    {
 995      return $this->kind;
 996    }
 997    public function setNextPageToken($nextPageToken)
 998    {
 999      $this->nextPageToken = $nextPageToken;
1000    }
1001    public function getNextPageToken()
1002    {
1003      return $this->nextPageToken;
1004    }
1005  }
1006  
1007  class Google_Service_GamesConfiguration_LocalizedString extends Google_Model
1008  {
1009    protected $internal_gapi_mappings = array(
1010    );
1011    public $kind;
1012    public $locale;
1013    public $value;
1014  
1015  
1016    public function setKind($kind)
1017    {
1018      $this->kind = $kind;
1019    }
1020    public function getKind()
1021    {
1022      return $this->kind;
1023    }
1024    public function setLocale($locale)
1025    {
1026      $this->locale = $locale;
1027    }
1028    public function getLocale()
1029    {
1030      return $this->locale;
1031    }
1032    public function setValue($value)
1033    {
1034      $this->value = $value;
1035    }
1036    public function getValue()
1037    {
1038      return $this->value;
1039    }
1040  }
1041  
1042  class Google_Service_GamesConfiguration_LocalizedStringBundle extends Google_Collection
1043  {
1044    protected $collection_key = 'translations';
1045    protected $internal_gapi_mappings = array(
1046    );
1047    public $kind;
1048    protected $translationsType = 'Google_Service_GamesConfiguration_LocalizedString';
1049    protected $translationsDataType = 'array';
1050  
1051  
1052    public function setKind($kind)
1053    {
1054      $this->kind = $kind;
1055    }
1056    public function getKind()
1057    {
1058      return $this->kind;
1059    }
1060    public function setTranslations($translations)
1061    {
1062      $this->translations = $translations;
1063    }
1064    public function getTranslations()
1065    {
1066      return $this->translations;
1067    }
1068  }