Search moodle.org's
Developer Documentation

See Release Notes

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

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

   1  <?php
   2  /*
   3   * Copyright 2010 Google Inc.
   4   *
   5   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   6   * use this file except in compliance with the License. You may obtain a copy of
   7   * the License at
   8   *
   9   * http://www.apache.org/licenses/LICENSE-2.0
  10   *
  11   * Unless required by applicable law or agreed to in writing, software
  12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14   * License for the specific language governing permissions and limitations under
  15   * the License.
  16   */
  17  
  18  /**
  19   * Service definition for Pagespeedonline (v2).
  20   *
  21   * <p>
  22   * Lets you analyze the performance of a web page and get tailored suggestions
  23   * to make that page faster.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://developers.google.com/speed/docs/insights/v2/getting-started" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  #[AllowDynamicProperties]
  33  class Google_Service_Pagespeedonline extends Google_Service
  34  {
  35  
  36  
  37    public $pagespeedapi;
  38    
  39  
  40    /**
  41     * Constructs the internal representation of the Pagespeedonline service.
  42     *
  43     * @param Google_Client $client
  44     */
  45    public function __construct(Google_Client $client)
  46    {
  47      parent::__construct($client);
  48      $this->rootUrl = 'https://www.googleapis.com/';
  49      $this->servicePath = 'pagespeedonline/v2/';
  50      $this->version = 'v2';
  51      $this->serviceName = 'pagespeedonline';
  52  
  53      $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource(
  54          $this,
  55          $this->serviceName,
  56          'pagespeedapi',
  57          array(
  58            'methods' => array(
  59              'runpagespeed' => array(
  60                'path' => 'runPagespeed',
  61                'httpMethod' => 'GET',
  62                'parameters' => array(
  63                  'url' => array(
  64                    'location' => 'query',
  65                    'type' => 'string',
  66                    'required' => true,
  67                  ),
  68                  'screenshot' => array(
  69                    'location' => 'query',
  70                    'type' => 'boolean',
  71                  ),
  72                  'locale' => array(
  73                    'location' => 'query',
  74                    'type' => 'string',
  75                  ),
  76                  'rule' => array(
  77                    'location' => 'query',
  78                    'type' => 'string',
  79                    'repeated' => true,
  80                  ),
  81                  'strategy' => array(
  82                    'location' => 'query',
  83                    'type' => 'string',
  84                  ),
  85                  'filter_third_party_resources' => array(
  86                    'location' => 'query',
  87                    'type' => 'boolean',
  88                  ),
  89                ),
  90              ),
  91            )
  92          )
  93      );
  94    }
  95  }
  96  
  97  
  98  /**
  99   * The "pagespeedapi" collection of methods.
 100   * Typical usage is:
 101   *  <code>
 102   *   $pagespeedonlineService = new Google_Service_Pagespeedonline(...);
 103   *   $pagespeedapi = $pagespeedonlineService->pagespeedapi;
 104   *  </code>
 105   */
 106  #[AllowDynamicProperties]
 107  class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource
 108  {
 109  
 110    /**
 111     * Runs PageSpeed analysis on the page at the specified URL, and returns
 112     * PageSpeed scores, a list of suggestions to make that page faster, and other
 113     * information. (pagespeedapi.runpagespeed)
 114     *
 115     * @param string $url The URL to fetch and analyze
 116     * @param array $optParams Optional parameters.
 117     *
 118     * @opt_param bool screenshot Indicates if binary data containing a screenshot
 119     * should be included
 120     * @opt_param string locale The locale used to localize formatted results
 121     * @opt_param string rule A PageSpeed rule to run; if none are given, all rules
 122     * are run
 123     * @opt_param string strategy The analysis strategy to use
 124     * @opt_param bool filter_third_party_resources Indicates if third party
 125     * resources should be filtered out before PageSpeed analysis.
 126     * @return Google_Service_Pagespeedonline_Result
 127     */
 128    public function runpagespeed($url, $optParams = array())
 129    {
 130      $params = array('url' => $url);
 131      $params = array_merge($params, $optParams);
 132      return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result");
 133    }
 134  }
 135  
 136  
 137  
 138  
 139  #[AllowDynamicProperties]
 140  class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection
 141  {
 142    protected $collection_key = 'args';
 143    protected $internal_gapi_mappings = array(
 144    );
 145    protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args';
 146    protected $argsDataType = 'array';
 147    public $format;
 148  
 149  
 150    public function setArgs($args)
 151    {
 152      $this->args = $args;
 153    }
 154    public function getArgs()
 155    {
 156      return $this->args;
 157    }
 158    public function setFormat($format)
 159    {
 160      $this->format = $format;
 161    }
 162    public function getFormat()
 163    {
 164      return $this->format;
 165    }
 166  }
 167  
 168  #[AllowDynamicProperties]
 169  class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args extends Google_Collection
 170  {
 171    protected $collection_key = 'secondary_rects';
 172    protected $internal_gapi_mappings = array(
 173          "secondaryRects" => "secondary_rects",
 174    );
 175    public $key;
 176    protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects';
 177    protected $rectsDataType = 'array';
 178    protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects';
 179    protected $secondaryRectsDataType = 'array';
 180    public $type;
 181    public $value;
 182  
 183  
 184    public function setKey($key)
 185    {
 186      $this->key = $key;
 187    }
 188    public function getKey()
 189    {
 190      return $this->key;
 191    }
 192    public function setRects($rects)
 193    {
 194      $this->rects = $rects;
 195    }
 196    public function getRects()
 197    {
 198      return $this->rects;
 199    }
 200    public function setSecondaryRects($secondaryRects)
 201    {
 202      $this->secondaryRects = $secondaryRects;
 203    }
 204    public function getSecondaryRects()
 205    {
 206      return $this->secondaryRects;
 207    }
 208    public function setType($type)
 209    {
 210      $this->type = $type;
 211    }
 212    public function getType()
 213    {
 214      return $this->type;
 215    }
 216    public function setValue($value)
 217    {
 218      $this->value = $value;
 219    }
 220    public function getValue()
 221    {
 222      return $this->value;
 223    }
 224  }
 225  
 226  #[AllowDynamicProperties]
 227  class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects extends Google_Model
 228  {
 229    protected $internal_gapi_mappings = array(
 230    );
 231    public $height;
 232    public $left;
 233    public $top;
 234    public $width;
 235  
 236  
 237    public function setHeight($height)
 238    {
 239      $this->height = $height;
 240    }
 241    public function getHeight()
 242    {
 243      return $this->height;
 244    }
 245    public function setLeft($left)
 246    {
 247      $this->left = $left;
 248    }
 249    public function getLeft()
 250    {
 251      return $this->left;
 252    }
 253    public function setTop($top)
 254    {
 255      $this->top = $top;
 256    }
 257    public function getTop()
 258    {
 259      return $this->top;
 260    }
 261    public function setWidth($width)
 262    {
 263      $this->width = $width;
 264    }
 265    public function getWidth()
 266    {
 267      return $this->width;
 268    }
 269  }
 270  
 271  #[AllowDynamicProperties]
 272  class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model
 273  {
 274    protected $internal_gapi_mappings = array(
 275    );
 276    public $height;
 277    public $left;
 278    public $top;
 279    public $width;
 280  
 281  
 282    public function setHeight($height)
 283    {
 284      $this->height = $height;
 285    }
 286    public function getHeight()
 287    {
 288      return $this->height;
 289    }
 290    public function setLeft($left)
 291    {
 292      $this->left = $left;
 293    }
 294    public function getLeft()
 295    {
 296      return $this->left;
 297    }
 298    public function setTop($top)
 299    {
 300      $this->top = $top;
 301    }
 302    public function getTop()
 303    {
 304      return $this->top;
 305    }
 306    public function setWidth($width)
 307    {
 308      $this->width = $width;
 309    }
 310    public function getWidth()
 311    {
 312      return $this->width;
 313    }
 314  }
 315  
 316  #[AllowDynamicProperties]
 317  class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model
 318  {
 319    protected $internal_gapi_mappings = array(
 320          "mimeType" => "mime_type",
 321          "pageRect" => "page_rect",
 322    );
 323    public $data;
 324    public $height;
 325    public $key;
 326    public $mimeType;
 327    protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect';
 328    protected $pageRectDataType = '';
 329    public $width;
 330  
 331  
 332    public function setData($data)
 333    {
 334      $this->data = $data;
 335    }
 336    public function getData()
 337    {
 338      return $this->data;
 339    }
 340    public function setHeight($height)
 341    {
 342      $this->height = $height;
 343    }
 344    public function getHeight()
 345    {
 346      return $this->height;
 347    }
 348    public function setKey($key)
 349    {
 350      $this->key = $key;
 351    }
 352    public function getKey()
 353    {
 354      return $this->key;
 355    }
 356    public function setMimeType($mimeType)
 357    {
 358      $this->mimeType = $mimeType;
 359    }
 360    public function getMimeType()
 361    {
 362      return $this->mimeType;
 363    }
 364    public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect)
 365    {
 366      $this->pageRect = $pageRect;
 367    }
 368    public function getPageRect()
 369    {
 370      return $this->pageRect;
 371    }
 372    public function setWidth($width)
 373    {
 374      $this->width = $width;
 375    }
 376    public function getWidth()
 377    {
 378      return $this->width;
 379    }
 380  }
 381  
 382  #[AllowDynamicProperties]
 383  class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model
 384  {
 385    protected $internal_gapi_mappings = array(
 386    );
 387    public $height;
 388    public $left;
 389    public $top;
 390    public $width;
 391  
 392  
 393    public function setHeight($height)
 394    {
 395      $this->height = $height;
 396    }
 397    public function getHeight()
 398    {
 399      return $this->height;
 400    }
 401    public function setLeft($left)
 402    {
 403      $this->left = $left;
 404    }
 405    public function getLeft()
 406    {
 407      return $this->left;
 408    }
 409    public function setTop($top)
 410    {
 411      $this->top = $top;
 412    }
 413    public function getTop()
 414    {
 415      return $this->top;
 416    }
 417    public function setWidth($width)
 418    {
 419      $this->width = $width;
 420    }
 421    public function getWidth()
 422    {
 423      return $this->width;
 424    }
 425  }
 426  
 427  #[AllowDynamicProperties]
 428  class Google_Service_Pagespeedonline_Result extends Google_Collection
 429  {
 430    protected $collection_key = 'invalidRules';
 431    protected $internal_gapi_mappings = array(
 432    );
 433    protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults';
 434    protected $formattedResultsDataType = '';
 435    public $id;
 436    public $invalidRules;
 437    public $kind;
 438    protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats';
 439    protected $pageStatsDataType = '';
 440    public $responseCode;
 441    protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement';
 442    protected $ruleGroupsDataType = 'map';
 443    protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2';
 444    protected $screenshotDataType = '';
 445    public $title;
 446    protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion';
 447    protected $versionDataType = '';
 448  
 449  
 450    public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults)
 451    {
 452      $this->formattedResults = $formattedResults;
 453    }
 454    public function getFormattedResults()
 455    {
 456      return $this->formattedResults;
 457    }
 458    public function setId($id)
 459    {
 460      $this->id = $id;
 461    }
 462    public function getId()
 463    {
 464      return $this->id;
 465    }
 466    public function setInvalidRules($invalidRules)
 467    {
 468      $this->invalidRules = $invalidRules;
 469    }
 470    public function getInvalidRules()
 471    {
 472      return $this->invalidRules;
 473    }
 474    public function setKind($kind)
 475    {
 476      $this->kind = $kind;
 477    }
 478    public function getKind()
 479    {
 480      return $this->kind;
 481    }
 482    public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats)
 483    {
 484      $this->pageStats = $pageStats;
 485    }
 486    public function getPageStats()
 487    {
 488      return $this->pageStats;
 489    }
 490    public function setResponseCode($responseCode)
 491    {
 492      $this->responseCode = $responseCode;
 493    }
 494    public function getResponseCode()
 495    {
 496      return $this->responseCode;
 497    }
 498    public function setRuleGroups($ruleGroups)
 499    {
 500      $this->ruleGroups = $ruleGroups;
 501    }
 502    public function getRuleGroups()
 503    {
 504      return $this->ruleGroups;
 505    }
 506    public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot)
 507    {
 508      $this->screenshot = $screenshot;
 509    }
 510    public function getScreenshot()
 511    {
 512      return $this->screenshot;
 513    }
 514    public function setTitle($title)
 515    {
 516      $this->title = $title;
 517    }
 518    public function getTitle()
 519    {
 520      return $this->title;
 521    }
 522    public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version)
 523    {
 524      $this->version = $version;
 525    }
 526    public function getVersion()
 527    {
 528      return $this->version;
 529    }
 530  }
 531  
 532  #[AllowDynamicProperties]
 533  class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model
 534  {
 535    protected $internal_gapi_mappings = array(
 536    );
 537    public $locale;
 538    protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement';
 539    protected $ruleResultsDataType = 'map';
 540  
 541  
 542    public function setLocale($locale)
 543    {
 544      $this->locale = $locale;
 545    }
 546    public function getLocale()
 547    {
 548      return $this->locale;
 549    }
 550    public function setRuleResults($ruleResults)
 551    {
 552      $this->ruleResults = $ruleResults;
 553    }
 554    public function getRuleResults()
 555    {
 556      return $this->ruleResults;
 557    }
 558  }
 559  
 560  #[AllowDynamicProperties]
 561  class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model
 562  {
 563  }
 564  
 565  #[AllowDynamicProperties]
 566  class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection
 567  {
 568    protected $collection_key = 'urlBlocks';
 569    protected $internal_gapi_mappings = array(
 570    );
 571    public $groups;
 572    public $localizedRuleName;
 573    public $ruleImpact;
 574    protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
 575    protected $summaryDataType = '';
 576    protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks';
 577    protected $urlBlocksDataType = 'array';
 578  
 579  
 580    public function setGroups($groups)
 581    {
 582      $this->groups = $groups;
 583    }
 584    public function getGroups()
 585    {
 586      return $this->groups;
 587    }
 588    public function setLocalizedRuleName($localizedRuleName)
 589    {
 590      $this->localizedRuleName = $localizedRuleName;
 591    }
 592    public function getLocalizedRuleName()
 593    {
 594      return $this->localizedRuleName;
 595    }
 596    public function setRuleImpact($ruleImpact)
 597    {
 598      $this->ruleImpact = $ruleImpact;
 599    }
 600    public function getRuleImpact()
 601    {
 602      return $this->ruleImpact;
 603    }
 604    public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary)
 605    {
 606      $this->summary = $summary;
 607    }
 608    public function getSummary()
 609    {
 610      return $this->summary;
 611    }
 612    public function setUrlBlocks($urlBlocks)
 613    {
 614      $this->urlBlocks = $urlBlocks;
 615    }
 616    public function getUrlBlocks()
 617    {
 618      return $this->urlBlocks;
 619    }
 620  }
 621  
 622  #[AllowDynamicProperties]
 623  class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection
 624  {
 625    protected $collection_key = 'urls';
 626    protected $internal_gapi_mappings = array(
 627    );
 628    protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
 629    protected $headerDataType = '';
 630    protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls';
 631    protected $urlsDataType = 'array';
 632  
 633  
 634    public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header)
 635    {
 636      $this->header = $header;
 637    }
 638    public function getHeader()
 639    {
 640      return $this->header;
 641    }
 642    public function setUrls($urls)
 643    {
 644      $this->urls = $urls;
 645    }
 646    public function getUrls()
 647    {
 648      return $this->urls;
 649    }
 650  }
 651  
 652  #[AllowDynamicProperties]
 653  class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection
 654  {
 655    protected $collection_key = 'details';
 656    protected $internal_gapi_mappings = array(
 657    );
 658    protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
 659    protected $detailsDataType = 'array';
 660    protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
 661    protected $resultDataType = '';
 662  
 663  
 664    public function setDetails($details)
 665    {
 666      $this->details = $details;
 667    }
 668    public function getDetails()
 669    {
 670      return $this->details;
 671    }
 672    public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result)
 673    {
 674      $this->result = $result;
 675    }
 676    public function getResult()
 677    {
 678      return $this->result;
 679    }
 680  }
 681  
 682  #[AllowDynamicProperties]
 683  class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model
 684  {
 685    protected $internal_gapi_mappings = array(
 686    );
 687    public $cssResponseBytes;
 688    public $flashResponseBytes;
 689    public $htmlResponseBytes;
 690    public $imageResponseBytes;
 691    public $javascriptResponseBytes;
 692    public $numberCssResources;
 693    public $numberHosts;
 694    public $numberJsResources;
 695    public $numberResources;
 696    public $numberStaticResources;
 697    public $otherResponseBytes;
 698    public $textResponseBytes;
 699    public $totalRequestBytes;
 700  
 701  
 702    public function setCssResponseBytes($cssResponseBytes)
 703    {
 704      $this->cssResponseBytes = $cssResponseBytes;
 705    }
 706    public function getCssResponseBytes()
 707    {
 708      return $this->cssResponseBytes;
 709    }
 710    public function setFlashResponseBytes($flashResponseBytes)
 711    {
 712      $this->flashResponseBytes = $flashResponseBytes;
 713    }
 714    public function getFlashResponseBytes()
 715    {
 716      return $this->flashResponseBytes;
 717    }
 718    public function setHtmlResponseBytes($htmlResponseBytes)
 719    {
 720      $this->htmlResponseBytes = $htmlResponseBytes;
 721    }
 722    public function getHtmlResponseBytes()
 723    {
 724      return $this->htmlResponseBytes;
 725    }
 726    public function setImageResponseBytes($imageResponseBytes)
 727    {
 728      $this->imageResponseBytes = $imageResponseBytes;
 729    }
 730    public function getImageResponseBytes()
 731    {
 732      return $this->imageResponseBytes;
 733    }
 734    public function setJavascriptResponseBytes($javascriptResponseBytes)
 735    {
 736      $this->javascriptResponseBytes = $javascriptResponseBytes;
 737    }
 738    public function getJavascriptResponseBytes()
 739    {
 740      return $this->javascriptResponseBytes;
 741    }
 742    public function setNumberCssResources($numberCssResources)
 743    {
 744      $this->numberCssResources = $numberCssResources;
 745    }
 746    public function getNumberCssResources()
 747    {
 748      return $this->numberCssResources;
 749    }
 750    public function setNumberHosts($numberHosts)
 751    {
 752      $this->numberHosts = $numberHosts;
 753    }
 754    public function getNumberHosts()
 755    {
 756      return $this->numberHosts;
 757    }
 758    public function setNumberJsResources($numberJsResources)
 759    {
 760      $this->numberJsResources = $numberJsResources;
 761    }
 762    public function getNumberJsResources()
 763    {
 764      return $this->numberJsResources;
 765    }
 766    public function setNumberResources($numberResources)
 767    {
 768      $this->numberResources = $numberResources;
 769    }
 770    public function getNumberResources()
 771    {
 772      return $this->numberResources;
 773    }
 774    public function setNumberStaticResources($numberStaticResources)
 775    {
 776      $this->numberStaticResources = $numberStaticResources;
 777    }
 778    public function getNumberStaticResources()
 779    {
 780      return $this->numberStaticResources;
 781    }
 782    public function setOtherResponseBytes($otherResponseBytes)
 783    {
 784      $this->otherResponseBytes = $otherResponseBytes;
 785    }
 786    public function getOtherResponseBytes()
 787    {
 788      return $this->otherResponseBytes;
 789    }
 790    public function setTextResponseBytes($textResponseBytes)
 791    {
 792      $this->textResponseBytes = $textResponseBytes;
 793    }
 794    public function getTextResponseBytes()
 795    {
 796      return $this->textResponseBytes;
 797    }
 798    public function setTotalRequestBytes($totalRequestBytes)
 799    {
 800      $this->totalRequestBytes = $totalRequestBytes;
 801    }
 802    public function getTotalRequestBytes()
 803    {
 804      return $this->totalRequestBytes;
 805    }
 806  }
 807  
 808  #[AllowDynamicProperties]
 809  class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model
 810  {
 811  }
 812  
 813  #[AllowDynamicProperties]
 814  class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model
 815  {
 816    protected $internal_gapi_mappings = array(
 817    );
 818    public $score;
 819  
 820  
 821    public function setScore($score)
 822    {
 823      $this->score = $score;
 824    }
 825    public function getScore()
 826    {
 827      return $this->score;
 828    }
 829  }
 830  
 831  #[AllowDynamicProperties]
 832  class Google_Service_Pagespeedonline_ResultVersion extends Google_Model
 833  {
 834    protected $internal_gapi_mappings = array(
 835    );
 836    public $major;
 837    public $minor;
 838  
 839  
 840    public function setMajor($major)
 841    {
 842      $this->major = $major;
 843    }
 844    public function getMajor()
 845    {
 846      return $this->major;
 847    }
 848    public function setMinor($minor)
 849    {
 850      $this->minor = $minor;
 851    }
 852    public function getMinor()
 853    {
 854      return $this->minor;
 855    }
 856  }