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