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 Webmasters (v3).
  20   *
  21   * <p>
  22   * Lets you view Google Webmaster Tools data for your verified sites.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/webmaster-tools/" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  #[AllowDynamicProperties]
  32  class Google_Service_Webmasters extends Google_Service
  33  {
  34    /** View and modify Webmaster Tools data for your verified sites. */
  35    const WEBMASTERS =
  36        "https://www.googleapis.com/auth/webmasters";
  37    /** View Webmaster Tools data for your verified sites. */
  38    const WEBMASTERS_READONLY =
  39        "https://www.googleapis.com/auth/webmasters.readonly";
  40  
  41    public $searchanalytics;
  42    public $sitemaps;
  43    public $sites;
  44    public $urlcrawlerrorscounts;
  45    public $urlcrawlerrorssamples;
  46    
  47  
  48    /**
  49     * Constructs the internal representation of the Webmasters service.
  50     *
  51     * @param Google_Client $client
  52     */
  53    public function __construct(Google_Client $client)
  54    {
  55      parent::__construct($client);
  56      $this->rootUrl = 'https://www.googleapis.com/';
  57      $this->servicePath = 'webmasters/v3/';
  58      $this->version = 'v3';
  59      $this->serviceName = 'webmasters';
  60  
  61      $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource(
  62          $this,
  63          $this->serviceName,
  64          'searchanalytics',
  65          array(
  66            'methods' => array(
  67              'query' => array(
  68                'path' => 'sites/{siteUrl}/searchAnalytics/query',
  69                'httpMethod' => 'POST',
  70                'parameters' => array(
  71                  'siteUrl' => array(
  72                    'location' => 'path',
  73                    'type' => 'string',
  74                    'required' => true,
  75                  ),
  76                ),
  77              ),
  78            )
  79          )
  80      );
  81      $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource(
  82          $this,
  83          $this->serviceName,
  84          'sitemaps',
  85          array(
  86            'methods' => array(
  87              'delete' => array(
  88                'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
  89                'httpMethod' => 'DELETE',
  90                'parameters' => array(
  91                  'siteUrl' => array(
  92                    'location' => 'path',
  93                    'type' => 'string',
  94                    'required' => true,
  95                  ),
  96                  'feedpath' => array(
  97                    'location' => 'path',
  98                    'type' => 'string',
  99                    'required' => true,
 100                  ),
 101                ),
 102              ),'get' => array(
 103                'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
 104                'httpMethod' => 'GET',
 105                'parameters' => array(
 106                  'siteUrl' => array(
 107                    'location' => 'path',
 108                    'type' => 'string',
 109                    'required' => true,
 110                  ),
 111                  'feedpath' => array(
 112                    'location' => 'path',
 113                    'type' => 'string',
 114                    'required' => true,
 115                  ),
 116                ),
 117              ),'list' => array(
 118                'path' => 'sites/{siteUrl}/sitemaps',
 119                'httpMethod' => 'GET',
 120                'parameters' => array(
 121                  'siteUrl' => array(
 122                    'location' => 'path',
 123                    'type' => 'string',
 124                    'required' => true,
 125                  ),
 126                  'sitemapIndex' => array(
 127                    'location' => 'query',
 128                    'type' => 'string',
 129                  ),
 130                ),
 131              ),'submit' => array(
 132                'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
 133                'httpMethod' => 'PUT',
 134                'parameters' => array(
 135                  'siteUrl' => array(
 136                    'location' => 'path',
 137                    'type' => 'string',
 138                    'required' => true,
 139                  ),
 140                  'feedpath' => array(
 141                    'location' => 'path',
 142                    'type' => 'string',
 143                    'required' => true,
 144                  ),
 145                ),
 146              ),
 147            )
 148          )
 149      );
 150      $this->sites = new Google_Service_Webmasters_Sites_Resource(
 151          $this,
 152          $this->serviceName,
 153          'sites',
 154          array(
 155            'methods' => array(
 156              'add' => array(
 157                'path' => 'sites/{siteUrl}',
 158                'httpMethod' => 'PUT',
 159                'parameters' => array(
 160                  'siteUrl' => array(
 161                    'location' => 'path',
 162                    'type' => 'string',
 163                    'required' => true,
 164                  ),
 165                ),
 166              ),'delete' => array(
 167                'path' => 'sites/{siteUrl}',
 168                'httpMethod' => 'DELETE',
 169                'parameters' => array(
 170                  'siteUrl' => array(
 171                    'location' => 'path',
 172                    'type' => 'string',
 173                    'required' => true,
 174                  ),
 175                ),
 176              ),'get' => array(
 177                'path' => 'sites/{siteUrl}',
 178                'httpMethod' => 'GET',
 179                'parameters' => array(
 180                  'siteUrl' => array(
 181                    'location' => 'path',
 182                    'type' => 'string',
 183                    'required' => true,
 184                  ),
 185                ),
 186              ),'list' => array(
 187                'path' => 'sites',
 188                'httpMethod' => 'GET',
 189                'parameters' => array(),
 190              ),
 191            )
 192          )
 193      );
 194      $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource(
 195          $this,
 196          $this->serviceName,
 197          'urlcrawlerrorscounts',
 198          array(
 199            'methods' => array(
 200              'query' => array(
 201                'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query',
 202                'httpMethod' => 'GET',
 203                'parameters' => array(
 204                  'siteUrl' => array(
 205                    'location' => 'path',
 206                    'type' => 'string',
 207                    'required' => true,
 208                  ),
 209                  'category' => array(
 210                    'location' => 'query',
 211                    'type' => 'string',
 212                  ),
 213                  'platform' => array(
 214                    'location' => 'query',
 215                    'type' => 'string',
 216                  ),
 217                  'latestCountsOnly' => array(
 218                    'location' => 'query',
 219                    'type' => 'boolean',
 220                  ),
 221                ),
 222              ),
 223            )
 224          )
 225      );
 226      $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource(
 227          $this,
 228          $this->serviceName,
 229          'urlcrawlerrorssamples',
 230          array(
 231            'methods' => array(
 232              'get' => array(
 233                'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',
 234                'httpMethod' => 'GET',
 235                'parameters' => array(
 236                  'siteUrl' => array(
 237                    'location' => 'path',
 238                    'type' => 'string',
 239                    'required' => true,
 240                  ),
 241                  'url' => array(
 242                    'location' => 'path',
 243                    'type' => 'string',
 244                    'required' => true,
 245                  ),
 246                  'category' => array(
 247                    'location' => 'query',
 248                    'type' => 'string',
 249                    'required' => true,
 250                  ),
 251                  'platform' => array(
 252                    'location' => 'query',
 253                    'type' => 'string',
 254                    'required' => true,
 255                  ),
 256                ),
 257              ),'list' => array(
 258                'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples',
 259                'httpMethod' => 'GET',
 260                'parameters' => array(
 261                  'siteUrl' => array(
 262                    'location' => 'path',
 263                    'type' => 'string',
 264                    'required' => true,
 265                  ),
 266                  'category' => array(
 267                    'location' => 'query',
 268                    'type' => 'string',
 269                    'required' => true,
 270                  ),
 271                  'platform' => array(
 272                    'location' => 'query',
 273                    'type' => 'string',
 274                    'required' => true,
 275                  ),
 276                ),
 277              ),'markAsFixed' => array(
 278                'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',
 279                'httpMethod' => 'DELETE',
 280                'parameters' => array(
 281                  'siteUrl' => array(
 282                    'location' => 'path',
 283                    'type' => 'string',
 284                    'required' => true,
 285                  ),
 286                  'url' => array(
 287                    'location' => 'path',
 288                    'type' => 'string',
 289                    'required' => true,
 290                  ),
 291                  'category' => array(
 292                    'location' => 'query',
 293                    'type' => 'string',
 294                    'required' => true,
 295                  ),
 296                  'platform' => array(
 297                    'location' => 'query',
 298                    'type' => 'string',
 299                    'required' => true,
 300                  ),
 301                ),
 302              ),
 303            )
 304          )
 305      );
 306    }
 307  }
 308  
 309  
 310  /**
 311   * The "searchanalytics" collection of methods.
 312   * Typical usage is:
 313   *  <code>
 314   *   $webmastersService = new Google_Service_Webmasters(...);
 315   *   $searchanalytics = $webmastersService->searchanalytics;
 316   *  </code>
 317   */
 318  #[AllowDynamicProperties]
 319  class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource
 320  {
 321  
 322    /**
 323     * Query your data with filters and parameters that you define. Returns zero or
 324     * more rows grouped by the row keys that you define. You must define a date
 325     * range of one or more days.
 326     *
 327     * When date is one of the group by values, any days without data are omitted
 328     * from the result list. If you need to know which days have data, issue a broad
 329     * date range query grouped by date for any metric, and see which day rows are
 330     * returned. (searchanalytics.query)
 331     *
 332     * @param string $siteUrl The site's URL, including protocol. For example:
 333     * http://www.example.com/
 334     * @param Google_SearchAnalyticsQueryRequest $postBody
 335     * @param array $optParams Optional parameters.
 336     * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse
 337     */
 338    public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array())
 339    {
 340      $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody);
 341      $params = array_merge($params, $optParams);
 342      return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse");
 343    }
 344  }
 345  
 346  /**
 347   * The "sitemaps" collection of methods.
 348   * Typical usage is:
 349   *  <code>
 350   *   $webmastersService = new Google_Service_Webmasters(...);
 351   *   $sitemaps = $webmastersService->sitemaps;
 352   *  </code>
 353   */
 354  #[AllowDynamicProperties]
 355  class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource
 356  {
 357  
 358    /**
 359     * Deletes a sitemap from this site. (sitemaps.delete)
 360     *
 361     * @param string $siteUrl The site's URL, including protocol. For example:
 362     * http://www.example.com/
 363     * @param string $feedpath The URL of the actual sitemap. For example:
 364     * http://www.example.com/sitemap.xml
 365     * @param array $optParams Optional parameters.
 366     */
 367    public function delete($siteUrl, $feedpath, $optParams = array())
 368    {
 369      $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
 370      $params = array_merge($params, $optParams);
 371      return $this->call('delete', array($params));
 372    }
 373  
 374    /**
 375     * Retrieves information about a specific sitemap. (sitemaps.get)
 376     *
 377     * @param string $siteUrl The site's URL, including protocol. For example:
 378     * http://www.example.com/
 379     * @param string $feedpath The URL of the actual sitemap. For example:
 380     * http://www.example.com/sitemap.xml
 381     * @param array $optParams Optional parameters.
 382     * @return Google_Service_Webmasters_WmxSitemap
 383     */
 384    public function get($siteUrl, $feedpath, $optParams = array())
 385    {
 386      $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
 387      $params = array_merge($params, $optParams);
 388      return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap");
 389    }
 390  
 391    /**
 392     * Lists the sitemaps-entries submitted for this site, or included in the
 393     * sitemap index file (if sitemapIndex is specified in the request).
 394     * (sitemaps.listSitemaps)
 395     *
 396     * @param string $siteUrl The site's URL, including protocol. For example:
 397     * http://www.example.com/
 398     * @param array $optParams Optional parameters.
 399     *
 400     * @opt_param string sitemapIndex A URL of a site's sitemap index. For example:
 401     * http://www.example.com/sitemapindex.xml
 402     * @return Google_Service_Webmasters_SitemapsListResponse
 403     */
 404    public function listSitemaps($siteUrl, $optParams = array())
 405    {
 406      $params = array('siteUrl' => $siteUrl);
 407      $params = array_merge($params, $optParams);
 408      return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse");
 409    }
 410  
 411    /**
 412     * Submits a sitemap for a site. (sitemaps.submit)
 413     *
 414     * @param string $siteUrl The site's URL, including protocol. For example:
 415     * http://www.example.com/
 416     * @param string $feedpath The URL of the sitemap to add. For example:
 417     * http://www.example.com/sitemap.xml
 418     * @param array $optParams Optional parameters.
 419     */
 420    public function submit($siteUrl, $feedpath, $optParams = array())
 421    {
 422      $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
 423      $params = array_merge($params, $optParams);
 424      return $this->call('submit', array($params));
 425    }
 426  }
 427  
 428  /**
 429   * The "sites" collection of methods.
 430   * Typical usage is:
 431   *  <code>
 432   *   $webmastersService = new Google_Service_Webmasters(...);
 433   *   $sites = $webmastersService->sites;
 434   *  </code>
 435   */
 436  #[AllowDynamicProperties]
 437  class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource
 438  {
 439  
 440    /**
 441     * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add)
 442     *
 443     * @param string $siteUrl The URL of the site to add.
 444     * @param array $optParams Optional parameters.
 445     */
 446    public function add($siteUrl, $optParams = array())
 447    {
 448      $params = array('siteUrl' => $siteUrl);
 449      $params = array_merge($params, $optParams);
 450      return $this->call('add', array($params));
 451    }
 452  
 453    /**
 454     * Removes a site from the set of the user's Webmaster Tools sites.
 455     * (sites.delete)
 456     *
 457     * @param string $siteUrl The URI of the property as defined in Search Console.
 458     * Examples: http://www.example.com/ or android-app://com.example/
 459     * @param array $optParams Optional parameters.
 460     */
 461    public function delete($siteUrl, $optParams = array())
 462    {
 463      $params = array('siteUrl' => $siteUrl);
 464      $params = array_merge($params, $optParams);
 465      return $this->call('delete', array($params));
 466    }
 467  
 468    /**
 469     * Retrieves information about specific site. (sites.get)
 470     *
 471     * @param string $siteUrl The URI of the property as defined in Search Console.
 472     * Examples: http://www.example.com/ or android-app://com.example/
 473     * @param array $optParams Optional parameters.
 474     * @return Google_Service_Webmasters_WmxSite
 475     */
 476    public function get($siteUrl, $optParams = array())
 477    {
 478      $params = array('siteUrl' => $siteUrl);
 479      $params = array_merge($params, $optParams);
 480      return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite");
 481    }
 482  
 483    /**
 484     * Lists the user's Webmaster Tools sites. (sites.listSites)
 485     *
 486     * @param array $optParams Optional parameters.
 487     * @return Google_Service_Webmasters_SitesListResponse
 488     */
 489    public function listSites($optParams = array())
 490    {
 491      $params = array();
 492      $params = array_merge($params, $optParams);
 493      return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse");
 494    }
 495  }
 496  
 497  /**
 498   * The "urlcrawlerrorscounts" collection of methods.
 499   * Typical usage is:
 500   *  <code>
 501   *   $webmastersService = new Google_Service_Webmasters(...);
 502   *   $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts;
 503   *  </code>
 504   */
 505  #[AllowDynamicProperties]
 506  class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource
 507  {
 508  
 509    /**
 510     * Retrieves a time series of the number of URL crawl errors per error category
 511     * and platform. (urlcrawlerrorscounts.query)
 512     *
 513     * @param string $siteUrl The site's URL, including protocol. For example:
 514     * http://www.example.com/
 515     * @param array $optParams Optional parameters.
 516     *
 517     * @opt_param string category The crawl error category. For example:
 518     * serverError. If not specified, returns results for all categories.
 519     * @opt_param string platform The user agent type (platform) that made the
 520     * request. For example: web. If not specified, returns results for all
 521     * platforms.
 522     * @opt_param bool latestCountsOnly If true, returns only the latest crawl error
 523     * counts.
 524     * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse
 525     */
 526    public function query($siteUrl, $optParams = array())
 527    {
 528      $params = array('siteUrl' => $siteUrl);
 529      $params = array_merge($params, $optParams);
 530      return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse");
 531    }
 532  }
 533  
 534  /**
 535   * The "urlcrawlerrorssamples" collection of methods.
 536   * Typical usage is:
 537   *  <code>
 538   *   $webmastersService = new Google_Service_Webmasters(...);
 539   *   $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples;
 540   *  </code>
 541   */
 542  #[AllowDynamicProperties]
 543  class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource
 544  {
 545  
 546    /**
 547     * Retrieves details about crawl errors for a site's sample URL.
 548     * (urlcrawlerrorssamples.get)
 549     *
 550     * @param string $siteUrl The site's URL, including protocol. For example:
 551     * http://www.example.com/
 552     * @param string $url The relative path (without the site) of the sample URL. It
 553     * must be one of the URLs returned by list(). For example, for the URL
 554     * https://www.example.com/pagename on the site https://www.example.com/, the
 555     * url value is pagename
 556     * @param string $category The crawl error category. For example:
 557     * authPermissions
 558     * @param string $platform The user agent type (platform) that made the request.
 559     * For example: web
 560     * @param array $optParams Optional parameters.
 561     * @return Google_Service_Webmasters_UrlCrawlErrorsSample
 562     */
 563    public function get($siteUrl, $url, $category, $platform, $optParams = array())
 564    {
 565      $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform);
 566      $params = array_merge($params, $optParams);
 567      return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample");
 568    }
 569  
 570    /**
 571     * Lists a site's sample URLs for the specified crawl error category and
 572     * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples)
 573     *
 574     * @param string $siteUrl The site's URL, including protocol. For example:
 575     * http://www.example.com/
 576     * @param string $category The crawl error category. For example:
 577     * authPermissions
 578     * @param string $platform The user agent type (platform) that made the request.
 579     * For example: web
 580     * @param array $optParams Optional parameters.
 581     * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse
 582     */
 583    public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array())
 584    {
 585      $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform);
 586      $params = array_merge($params, $optParams);
 587      return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse");
 588    }
 589  
 590    /**
 591     * Marks the provided site's sample URL as fixed, and removes it from the
 592     * samples list. (urlcrawlerrorssamples.markAsFixed)
 593     *
 594     * @param string $siteUrl The site's URL, including protocol. For example:
 595     * http://www.example.com/
 596     * @param string $url The relative path (without the site) of the sample URL. It
 597     * must be one of the URLs returned by list(). For example, for the URL
 598     * https://www.example.com/pagename on the site https://www.example.com/, the
 599     * url value is pagename
 600     * @param string $category The crawl error category. For example:
 601     * authPermissions
 602     * @param string $platform The user agent type (platform) that made the request.
 603     * For example: web
 604     * @param array $optParams Optional parameters.
 605     */
 606    public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array())
 607    {
 608      $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform);
 609      $params = array_merge($params, $optParams);
 610      return $this->call('markAsFixed', array($params));
 611    }
 612  }
 613  
 614  
 615  
 616  
 617  #[AllowDynamicProperties]
 618  class Google_Service_Webmasters_ApiDataRow extends Google_Collection
 619  {
 620    protected $collection_key = 'keys';
 621    protected $internal_gapi_mappings = array(
 622    );
 623    public $clicks;
 624    public $ctr;
 625    public $impressions;
 626    public $keys;
 627    public $position;
 628  
 629  
 630    public function setClicks($clicks)
 631    {
 632      $this->clicks = $clicks;
 633    }
 634    public function getClicks()
 635    {
 636      return $this->clicks;
 637    }
 638    public function setCtr($ctr)
 639    {
 640      $this->ctr = $ctr;
 641    }
 642    public function getCtr()
 643    {
 644      return $this->ctr;
 645    }
 646    public function setImpressions($impressions)
 647    {
 648      $this->impressions = $impressions;
 649    }
 650    public function getImpressions()
 651    {
 652      return $this->impressions;
 653    }
 654    public function setKeys($keys)
 655    {
 656      $this->keys = $keys;
 657    }
 658    public function getKeys()
 659    {
 660      return $this->keys;
 661    }
 662    public function setPosition($position)
 663    {
 664      $this->position = $position;
 665    }
 666    public function getPosition()
 667    {
 668      return $this->position;
 669    }
 670  }
 671  
 672  #[AllowDynamicProperties]
 673  class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model
 674  {
 675    protected $internal_gapi_mappings = array(
 676    );
 677    public $dimension;
 678    public $expression;
 679    public $operator;
 680  
 681  
 682    public function setDimension($dimension)
 683    {
 684      $this->dimension = $dimension;
 685    }
 686    public function getDimension()
 687    {
 688      return $this->dimension;
 689    }
 690    public function setExpression($expression)
 691    {
 692      $this->expression = $expression;
 693    }
 694    public function getExpression()
 695    {
 696      return $this->expression;
 697    }
 698    public function setOperator($operator)
 699    {
 700      $this->operator = $operator;
 701    }
 702    public function getOperator()
 703    {
 704      return $this->operator;
 705    }
 706  }
 707  
 708  #[AllowDynamicProperties]
 709  class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection
 710  {
 711    protected $collection_key = 'filters';
 712    protected $internal_gapi_mappings = array(
 713    );
 714    protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter';
 715    protected $filtersDataType = 'array';
 716    public $groupType;
 717  
 718  
 719    public function setFilters($filters)
 720    {
 721      $this->filters = $filters;
 722    }
 723    public function getFilters()
 724    {
 725      return $this->filters;
 726    }
 727    public function setGroupType($groupType)
 728    {
 729      $this->groupType = $groupType;
 730    }
 731    public function getGroupType()
 732    {
 733      return $this->groupType;
 734    }
 735  }
 736  
 737  #[AllowDynamicProperties]
 738  class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection
 739  {
 740    protected $collection_key = 'dimensions';
 741    protected $internal_gapi_mappings = array(
 742    );
 743    public $aggregationType;
 744    protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup';
 745    protected $dimensionFilterGroupsDataType = 'array';
 746    public $dimensions;
 747    public $endDate;
 748    public $rowLimit;
 749    public $searchType;
 750    public $startDate;
 751  
 752  
 753    public function setAggregationType($aggregationType)
 754    {
 755      $this->aggregationType = $aggregationType;
 756    }
 757    public function getAggregationType()
 758    {
 759      return $this->aggregationType;
 760    }
 761    public function setDimensionFilterGroups($dimensionFilterGroups)
 762    {
 763      $this->dimensionFilterGroups = $dimensionFilterGroups;
 764    }
 765    public function getDimensionFilterGroups()
 766    {
 767      return $this->dimensionFilterGroups;
 768    }
 769    public function setDimensions($dimensions)
 770    {
 771      $this->dimensions = $dimensions;
 772    }
 773    public function getDimensions()
 774    {
 775      return $this->dimensions;
 776    }
 777    public function setEndDate($endDate)
 778    {
 779      $this->endDate = $endDate;
 780    }
 781    public function getEndDate()
 782    {
 783      return $this->endDate;
 784    }
 785    public function setRowLimit($rowLimit)
 786    {
 787      $this->rowLimit = $rowLimit;
 788    }
 789    public function getRowLimit()
 790    {
 791      return $this->rowLimit;
 792    }
 793    public function setSearchType($searchType)
 794    {
 795      $this->searchType = $searchType;
 796    }
 797    public function getSearchType()
 798    {
 799      return $this->searchType;
 800    }
 801    public function setStartDate($startDate)
 802    {
 803      $this->startDate = $startDate;
 804    }
 805    public function getStartDate()
 806    {
 807      return $this->startDate;
 808    }
 809  }
 810  
 811  #[AllowDynamicProperties]
 812  class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection
 813  {
 814    protected $collection_key = 'rows';
 815    protected $internal_gapi_mappings = array(
 816    );
 817    public $responseAggregationType;
 818    protected $rowsType = 'Google_Service_Webmasters_ApiDataRow';
 819    protected $rowsDataType = 'array';
 820  
 821  
 822    public function setResponseAggregationType($responseAggregationType)
 823    {
 824      $this->responseAggregationType = $responseAggregationType;
 825    }
 826    public function getResponseAggregationType()
 827    {
 828      return $this->responseAggregationType;
 829    }
 830    public function setRows($rows)
 831    {
 832      $this->rows = $rows;
 833    }
 834    public function getRows()
 835    {
 836      return $this->rows;
 837    }
 838  }
 839  
 840  #[AllowDynamicProperties]
 841  class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection
 842  {
 843    protected $collection_key = 'sitemap';
 844    protected $internal_gapi_mappings = array(
 845    );
 846    protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap';
 847    protected $sitemapDataType = 'array';
 848  
 849  
 850    public function setSitemap($sitemap)
 851    {
 852      $this->sitemap = $sitemap;
 853    }
 854    public function getSitemap()
 855    {
 856      return $this->sitemap;
 857    }
 858  }
 859  
 860  #[AllowDynamicProperties]
 861  class Google_Service_Webmasters_SitesListResponse extends Google_Collection
 862  {
 863    protected $collection_key = 'siteEntry';
 864    protected $internal_gapi_mappings = array(
 865    );
 866    protected $siteEntryType = 'Google_Service_Webmasters_WmxSite';
 867    protected $siteEntryDataType = 'array';
 868  
 869  
 870    public function setSiteEntry($siteEntry)
 871    {
 872      $this->siteEntry = $siteEntry;
 873    }
 874    public function getSiteEntry()
 875    {
 876      return $this->siteEntry;
 877    }
 878  }
 879  
 880  #[AllowDynamicProperties]
 881  class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model
 882  {
 883    protected $internal_gapi_mappings = array(
 884    );
 885    public $count;
 886    public $timestamp;
 887  
 888  
 889    public function setCount($count)
 890    {
 891      $this->count = $count;
 892    }
 893    public function getCount()
 894    {
 895      return $this->count;
 896    }
 897    public function setTimestamp($timestamp)
 898    {
 899      $this->timestamp = $timestamp;
 900    }
 901    public function getTimestamp()
 902    {
 903      return $this->timestamp;
 904    }
 905  }
 906  
 907  #[AllowDynamicProperties]
 908  class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection
 909  {
 910    protected $collection_key = 'entries';
 911    protected $internal_gapi_mappings = array(
 912    );
 913    public $category;
 914    protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount';
 915    protected $entriesDataType = 'array';
 916    public $platform;
 917  
 918  
 919    public function setCategory($category)
 920    {
 921      $this->category = $category;
 922    }
 923    public function getCategory()
 924    {
 925      return $this->category;
 926    }
 927    public function setEntries($entries)
 928    {
 929      $this->entries = $entries;
 930    }
 931    public function getEntries()
 932    {
 933      return $this->entries;
 934    }
 935    public function setPlatform($platform)
 936    {
 937      $this->platform = $platform;
 938    }
 939    public function getPlatform()
 940    {
 941      return $this->platform;
 942    }
 943  }
 944  
 945  #[AllowDynamicProperties]
 946  class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection
 947  {
 948    protected $collection_key = 'countPerTypes';
 949    protected $internal_gapi_mappings = array(
 950    );
 951    protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType';
 952    protected $countPerTypesDataType = 'array';
 953  
 954  
 955    public function setCountPerTypes($countPerTypes)
 956    {
 957      $this->countPerTypes = $countPerTypes;
 958    }
 959    public function getCountPerTypes()
 960    {
 961      return $this->countPerTypes;
 962    }
 963  }
 964  
 965  #[AllowDynamicProperties]
 966  class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model
 967  {
 968    protected $internal_gapi_mappings = array(
 969          "firstDetected" => "first_detected",
 970          "lastCrawled" => "last_crawled",
 971    );
 972    public $firstDetected;
 973    public $lastCrawled;
 974    public $pageUrl;
 975    public $responseCode;
 976    protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails';
 977    protected $urlDetailsDataType = '';
 978  
 979  
 980    public function setFirstDetected($firstDetected)
 981    {
 982      $this->firstDetected = $firstDetected;
 983    }
 984    public function getFirstDetected()
 985    {
 986      return $this->firstDetected;
 987    }
 988    public function setLastCrawled($lastCrawled)
 989    {
 990      $this->lastCrawled = $lastCrawled;
 991    }
 992    public function getLastCrawled()
 993    {
 994      return $this->lastCrawled;
 995    }
 996    public function setPageUrl($pageUrl)
 997    {
 998      $this->pageUrl = $pageUrl;
 999    }
1000    public function getPageUrl()
1001    {
1002      return $this->pageUrl;
1003    }
1004    public function setResponseCode($responseCode)
1005    {
1006      $this->responseCode = $responseCode;
1007    }
1008    public function getResponseCode()
1009    {
1010      return $this->responseCode;
1011    }
1012    public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails)
1013    {
1014      $this->urlDetails = $urlDetails;
1015    }
1016    public function getUrlDetails()
1017    {
1018      return $this->urlDetails;
1019    }
1020  }
1021  
1022  #[AllowDynamicProperties]
1023  class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection
1024  {
1025    protected $collection_key = 'urlCrawlErrorSample';
1026    protected $internal_gapi_mappings = array(
1027    );
1028    protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample';
1029    protected $urlCrawlErrorSampleDataType = 'array';
1030  
1031  
1032    public function setUrlCrawlErrorSample($urlCrawlErrorSample)
1033    {
1034      $this->urlCrawlErrorSample = $urlCrawlErrorSample;
1035    }
1036    public function getUrlCrawlErrorSample()
1037    {
1038      return $this->urlCrawlErrorSample;
1039    }
1040  }
1041  
1042  #[AllowDynamicProperties]
1043  class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection
1044  {
1045    protected $collection_key = 'linkedFromUrls';
1046    protected $internal_gapi_mappings = array(
1047    );
1048    public $containingSitemaps;
1049    public $linkedFromUrls;
1050  
1051  
1052    public function setContainingSitemaps($containingSitemaps)
1053    {
1054      $this->containingSitemaps = $containingSitemaps;
1055    }
1056    public function getContainingSitemaps()
1057    {
1058      return $this->containingSitemaps;
1059    }
1060    public function setLinkedFromUrls($linkedFromUrls)
1061    {
1062      $this->linkedFromUrls = $linkedFromUrls;
1063    }
1064    public function getLinkedFromUrls()
1065    {
1066      return $this->linkedFromUrls;
1067    }
1068  }
1069  
1070  #[AllowDynamicProperties]
1071  class Google_Service_Webmasters_WmxSite extends Google_Model
1072  {
1073    protected $internal_gapi_mappings = array(
1074    );
1075    public $permissionLevel;
1076    public $siteUrl;
1077  
1078  
1079    public function setPermissionLevel($permissionLevel)
1080    {
1081      $this->permissionLevel = $permissionLevel;
1082    }
1083    public function getPermissionLevel()
1084    {
1085      return $this->permissionLevel;
1086    }
1087    public function setSiteUrl($siteUrl)
1088    {
1089      $this->siteUrl = $siteUrl;
1090    }
1091    public function getSiteUrl()
1092    {
1093      return $this->siteUrl;
1094    }
1095  }
1096  
1097  #[AllowDynamicProperties]
1098  class Google_Service_Webmasters_WmxSitemap extends Google_Collection
1099  {
1100    protected $collection_key = 'contents';
1101    protected $internal_gapi_mappings = array(
1102    );
1103    protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent';
1104    protected $contentsDataType = 'array';
1105    public $errors;
1106    public $isPending;
1107    public $isSitemapsIndex;
1108    public $lastDownloaded;
1109    public $lastSubmitted;
1110    public $path;
1111    public $type;
1112    public $warnings;
1113  
1114  
1115    public function setContents($contents)
1116    {
1117      $this->contents = $contents;
1118    }
1119    public function getContents()
1120    {
1121      return $this->contents;
1122    }
1123    public function setErrors($errors)
1124    {
1125      $this->errors = $errors;
1126    }
1127    public function getErrors()
1128    {
1129      return $this->errors;
1130    }
1131    public function setIsPending($isPending)
1132    {
1133      $this->isPending = $isPending;
1134    }
1135    public function getIsPending()
1136    {
1137      return $this->isPending;
1138    }
1139    public function setIsSitemapsIndex($isSitemapsIndex)
1140    {
1141      $this->isSitemapsIndex = $isSitemapsIndex;
1142    }
1143    public function getIsSitemapsIndex()
1144    {
1145      return $this->isSitemapsIndex;
1146    }
1147    public function setLastDownloaded($lastDownloaded)
1148    {
1149      $this->lastDownloaded = $lastDownloaded;
1150    }
1151    public function getLastDownloaded()
1152    {
1153      return $this->lastDownloaded;
1154    }
1155    public function setLastSubmitted($lastSubmitted)
1156    {
1157      $this->lastSubmitted = $lastSubmitted;
1158    }
1159    public function getLastSubmitted()
1160    {
1161      return $this->lastSubmitted;
1162    }
1163    public function setPath($path)
1164    {
1165      $this->path = $path;
1166    }
1167    public function getPath()
1168    {
1169      return $this->path;
1170    }
1171    public function setType($type)
1172    {
1173      $this->type = $type;
1174    }
1175    public function getType()
1176    {
1177      return $this->type;
1178    }
1179    public function setWarnings($warnings)
1180    {
1181      $this->warnings = $warnings;
1182    }
1183    public function getWarnings()
1184    {
1185      return $this->warnings;
1186    }
1187  }
1188  
1189  #[AllowDynamicProperties]
1190  class Google_Service_Webmasters_WmxSitemapContent extends Google_Model
1191  {
1192    protected $internal_gapi_mappings = array(
1193    );
1194    public $indexed;
1195    public $submitted;
1196    public $type;
1197  
1198  
1199    public function setIndexed($indexed)
1200    {
1201      $this->indexed = $indexed;
1202    }
1203    public function getIndexed()
1204    {
1205      return $this->indexed;
1206    }
1207    public function setSubmitted($submitted)
1208    {
1209      $this->submitted = $submitted;
1210    }
1211    public function getSubmitted()
1212    {
1213      return $this->submitted;
1214    }
1215    public function setType($type)
1216    {
1217      $this->type = $type;
1218    }
1219    public function getType()
1220    {
1221      return $this->type;
1222    }
1223  }