/google_api/Service/Webmasters.php

  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/v3/welcome" target="_blank">Documentation</a> 
  27. * </p> 
  28. * 
  29. * @author Google, Inc. 
  30. */ 
  31. class Google_Service_Webmasters extends Google_Service 
  32. /** View and modify Webmaster Tools data for your verified sites. */ 
  33. const WEBMASTERS = 
  34. "https://www.googleapis.com/auth/webmasters"; 
  35. /** View Webmaster Tools data for your verified sites. */ 
  36. const WEBMASTERS_READONLY = 
  37. "https://www.googleapis.com/auth/webmasters.readonly"; 
  38.  
  39. public $sitemaps; 
  40. public $sites; 
  41. public $urlcrawlerrorscounts; 
  42. public $urlcrawlerrorssamples; 
  43.  
  44.  
  45. /** 
  46. * Constructs the internal representation of the Webmasters service. 
  47. * 
  48. * @param Google_Client $client 
  49. */ 
  50. public function __construct(Google_Client $client) 
  51. parent::__construct($client); 
  52. $this->servicePath = 'webmasters/v3/'; 
  53. $this->version = 'v3'; 
  54. $this->serviceName = 'webmasters'; 
  55.  
  56. $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( 
  57. $this,  
  58. $this->serviceName,  
  59. 'sitemaps',  
  60. array( 
  61. 'methods' => array( 
  62. 'delete' => array( 
  63. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  64. 'httpMethod' => 'DELETE',  
  65. 'parameters' => array( 
  66. 'siteUrl' => array( 
  67. 'location' => 'path',  
  68. 'type' => 'string',  
  69. 'required' => true,  
  70. ),  
  71. 'feedpath' => array( 
  72. 'location' => 'path',  
  73. 'type' => 'string',  
  74. 'required' => true,  
  75. ),  
  76. ),  
  77. ), 'get' => array( 
  78. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  79. 'httpMethod' => 'GET',  
  80. 'parameters' => array( 
  81. 'siteUrl' => array( 
  82. 'location' => 'path',  
  83. 'type' => 'string',  
  84. 'required' => true,  
  85. ),  
  86. 'feedpath' => array( 
  87. 'location' => 'path',  
  88. 'type' => 'string',  
  89. 'required' => true,  
  90. ),  
  91. ),  
  92. ), 'list' => array( 
  93. 'path' => 'sites/{siteUrl}/sitemaps',  
  94. 'httpMethod' => 'GET',  
  95. 'parameters' => array( 
  96. 'siteUrl' => array( 
  97. 'location' => 'path',  
  98. 'type' => 'string',  
  99. 'required' => true,  
  100. ),  
  101. 'sitemapIndex' => array( 
  102. 'location' => 'query',  
  103. 'type' => 'string',  
  104. ),  
  105. ),  
  106. ), 'submit' => array( 
  107. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  108. 'httpMethod' => 'PUT',  
  109. 'parameters' => array( 
  110. 'siteUrl' => array( 
  111. 'location' => 'path',  
  112. 'type' => 'string',  
  113. 'required' => true,  
  114. ),  
  115. 'feedpath' => array( 
  116. 'location' => 'path',  
  117. 'type' => 'string',  
  118. 'required' => true,  
  119. ),  
  120. ),  
  121. ),  
  122. ); 
  123. $this->sites = new Google_Service_Webmasters_Sites_Resource( 
  124. $this,  
  125. $this->serviceName,  
  126. 'sites',  
  127. array( 
  128. 'methods' => array( 
  129. 'add' => array( 
  130. 'path' => 'sites/{siteUrl}',  
  131. 'httpMethod' => 'PUT',  
  132. 'parameters' => array( 
  133. 'siteUrl' => array( 
  134. 'location' => 'path',  
  135. 'type' => 'string',  
  136. 'required' => true,  
  137. ),  
  138. ),  
  139. ), 'delete' => array( 
  140. 'path' => 'sites/{siteUrl}',  
  141. 'httpMethod' => 'DELETE',  
  142. 'parameters' => array( 
  143. 'siteUrl' => array( 
  144. 'location' => 'path',  
  145. 'type' => 'string',  
  146. 'required' => true,  
  147. ),  
  148. ),  
  149. ), 'get' => array( 
  150. 'path' => 'sites/{siteUrl}',  
  151. 'httpMethod' => 'GET',  
  152. 'parameters' => array( 
  153. 'siteUrl' => array( 
  154. 'location' => 'path',  
  155. 'type' => 'string',  
  156. 'required' => true,  
  157. ),  
  158. ),  
  159. ), 'list' => array( 
  160. 'path' => 'sites',  
  161. 'httpMethod' => 'GET',  
  162. 'parameters' => array(),  
  163. ),  
  164. ); 
  165. $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( 
  166. $this,  
  167. $this->serviceName,  
  168. 'urlcrawlerrorscounts',  
  169. array( 
  170. 'methods' => array( 
  171. 'query' => array( 
  172. 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query',  
  173. 'httpMethod' => 'GET',  
  174. 'parameters' => array( 
  175. 'siteUrl' => array( 
  176. 'location' => 'path',  
  177. 'type' => 'string',  
  178. 'required' => true,  
  179. ),  
  180. 'category' => array( 
  181. 'location' => 'query',  
  182. 'type' => 'string',  
  183. ),  
  184. 'platform' => array( 
  185. 'location' => 'query',  
  186. 'type' => 'string',  
  187. ),  
  188. 'latestCountsOnly' => array( 
  189. 'location' => 'query',  
  190. 'type' => 'boolean',  
  191. ),  
  192. ),  
  193. ),  
  194. ); 
  195. $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( 
  196. $this,  
  197. $this->serviceName,  
  198. 'urlcrawlerrorssamples',  
  199. array( 
  200. 'methods' => array( 
  201. 'get' => array( 
  202. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',  
  203. 'httpMethod' => 'GET',  
  204. 'parameters' => array( 
  205. 'siteUrl' => array( 
  206. 'location' => 'path',  
  207. 'type' => 'string',  
  208. 'required' => true,  
  209. ),  
  210. 'url' => array( 
  211. 'location' => 'path',  
  212. 'type' => 'string',  
  213. 'required' => true,  
  214. ),  
  215. 'category' => array( 
  216. 'location' => 'query',  
  217. 'type' => 'string',  
  218. 'required' => true,  
  219. ),  
  220. 'platform' => array( 
  221. 'location' => 'query',  
  222. 'type' => 'string',  
  223. 'required' => true,  
  224. ),  
  225. ),  
  226. ), 'list' => array( 
  227. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples',  
  228. 'httpMethod' => 'GET',  
  229. 'parameters' => array( 
  230. 'siteUrl' => array( 
  231. 'location' => 'path',  
  232. 'type' => 'string',  
  233. 'required' => true,  
  234. ),  
  235. 'category' => array( 
  236. 'location' => 'query',  
  237. 'type' => 'string',  
  238. 'required' => true,  
  239. ),  
  240. 'platform' => array( 
  241. 'location' => 'query',  
  242. 'type' => 'string',  
  243. 'required' => true,  
  244. ),  
  245. ),  
  246. ), 'markAsFixed' => array( 
  247. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',  
  248. 'httpMethod' => 'DELETE',  
  249. 'parameters' => array( 
  250. 'siteUrl' => array( 
  251. 'location' => 'path',  
  252. 'type' => 'string',  
  253. 'required' => true,  
  254. ),  
  255. 'url' => array( 
  256. 'location' => 'path',  
  257. 'type' => 'string',  
  258. 'required' => true,  
  259. ),  
  260. 'category' => array( 
  261. 'location' => 'query',  
  262. 'type' => 'string',  
  263. 'required' => true,  
  264. ),  
  265. 'platform' => array( 
  266. 'location' => 'query',  
  267. 'type' => 'string',  
  268. 'required' => true,  
  269. ),  
  270. ),  
  271. ),  
  272. ); 
  273.  
  274.  
  275. /** 
  276. * The "sitemaps" collection of methods. 
  277. * Typical usage is: 
  278. * <code> 
  279. * $webmastersService = new Google_Service_Webmasters(...); 
  280. * $sitemaps = $webmastersService->sitemaps; 
  281. * </code> 
  282. */ 
  283. class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource 
  284.  
  285. /** 
  286. * Deletes a sitemap from this site. (sitemaps.delete) 
  287. * 
  288. * @param string $siteUrl The site's URL, including protocol, for example 
  289. * 'http://www.example.com/' 
  290. * @param string $feedpath The URL of the actual sitemap (for example 
  291. * http://www.example.com/sitemap.xml). 
  292. * @param array $optParams Optional parameters. 
  293. */ 
  294. public function delete($siteUrl, $feedpath, $optParams = array()) 
  295. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  296. $params = array_merge($params, $optParams); 
  297. return $this->call('delete', array($params)); 
  298.  
  299. /** 
  300. * Retrieves information about a specific sitemap. (sitemaps.get) 
  301. * 
  302. * @param string $siteUrl The site's URL, including protocol, for example 
  303. * 'http://www.example.com/' 
  304. * @param string $feedpath The URL of the actual sitemap (for example 
  305. * http://www.example.com/sitemap.xml). 
  306. * @param array $optParams Optional parameters. 
  307. * @return Google_Service_Webmasters_WmxSitemap 
  308. */ 
  309. public function get($siteUrl, $feedpath, $optParams = array()) 
  310. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  311. $params = array_merge($params, $optParams); 
  312. return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); 
  313.  
  314. /** 
  315. * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) 
  316. * 
  317. * @param string $siteUrl The site's URL, including protocol, for example 
  318. * 'http://www.example.com/' 
  319. * @param array $optParams Optional parameters. 
  320. * 
  321. * @opt_param string sitemapIndex A URL of a site's sitemap index. 
  322. * @return Google_Service_Webmasters_SitemapsListResponse 
  323. */ 
  324. public function listSitemaps($siteUrl, $optParams = array()) 
  325. $params = array('siteUrl' => $siteUrl); 
  326. $params = array_merge($params, $optParams); 
  327. return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); 
  328.  
  329. /** 
  330. * Submits a sitemap for a site. (sitemaps.submit) 
  331. * 
  332. * @param string $siteUrl The site's URL, including protocol, for example 
  333. * 'http://www.example.com/' 
  334. * @param string $feedpath The URL of the sitemap to add. 
  335. * @param array $optParams Optional parameters. 
  336. */ 
  337. public function submit($siteUrl, $feedpath, $optParams = array()) 
  338. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  339. $params = array_merge($params, $optParams); 
  340. return $this->call('submit', array($params)); 
  341.  
  342. /** 
  343. * The "sites" collection of methods. 
  344. * Typical usage is: 
  345. * <code> 
  346. * $webmastersService = new Google_Service_Webmasters(...); 
  347. * $sites = $webmastersService->sites; 
  348. * </code> 
  349. */ 
  350. class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource 
  351.  
  352. /** 
  353. * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) 
  354. * 
  355. * @param string $siteUrl The URL of the site to add. 
  356. * @param array $optParams Optional parameters. 
  357. */ 
  358. public function add($siteUrl, $optParams = array()) 
  359. $params = array('siteUrl' => $siteUrl); 
  360. $params = array_merge($params, $optParams); 
  361. return $this->call('add', array($params)); 
  362.  
  363. /** 
  364. * Removes a site from the set of the user's Webmaster Tools sites. 
  365. * (sites.delete) 
  366. * 
  367. * @param string $siteUrl The site's URL, including protocol, for example 
  368. * 'http://www.example.com/' 
  369. * @param array $optParams Optional parameters. 
  370. */ 
  371. public function delete($siteUrl, $optParams = array()) 
  372. $params = array('siteUrl' => $siteUrl); 
  373. $params = array_merge($params, $optParams); 
  374. return $this->call('delete', array($params)); 
  375.  
  376. /** 
  377. * Retrieves information about specific site. (sites.get) 
  378. * 
  379. * @param string $siteUrl The site's URL, including protocol, for example 
  380. * 'http://www.example.com/' 
  381. * @param array $optParams Optional parameters. 
  382. * @return Google_Service_Webmasters_WmxSite 
  383. */ 
  384. public function get($siteUrl, $optParams = array()) 
  385. $params = array('siteUrl' => $siteUrl); 
  386. $params = array_merge($params, $optParams); 
  387. return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); 
  388.  
  389. /** 
  390. * Lists your Webmaster Tools sites. (sites.listSites) 
  391. * 
  392. * @param array $optParams Optional parameters. 
  393. * @return Google_Service_Webmasters_SitesListResponse 
  394. */ 
  395. public function listSites($optParams = array()) 
  396. $params = array(); 
  397. $params = array_merge($params, $optParams); 
  398. return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); 
  399.  
  400. /** 
  401. * The "urlcrawlerrorscounts" collection of methods. 
  402. * Typical usage is: 
  403. * <code> 
  404. * $webmastersService = new Google_Service_Webmasters(...); 
  405. * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts; 
  406. * </code> 
  407. */ 
  408. class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource 
  409.  
  410. /** 
  411. * Retrieves a time series of the number of URL crawl errors per error category 
  412. * and platform. (urlcrawlerrorscounts.query) 
  413. * 
  414. * @param string $siteUrl The site's URL, including protocol, for example 
  415. * 'http://www.example.com/' 
  416. * @param array $optParams Optional parameters. 
  417. * 
  418. * @opt_param string category The crawl error category, for example 
  419. * 'serverError'. If not specified, we return results for all categories. 
  420. * @opt_param string platform The user agent type (platform) that made the 
  421. * request, for example 'web'. If not specified, we return results for all 
  422. * platforms. 
  423. * @opt_param bool latestCountsOnly If true, returns only the latest crawl error 
  424. * counts. 
  425. * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse 
  426. */ 
  427. public function query($siteUrl, $optParams = array()) 
  428. $params = array('siteUrl' => $siteUrl); 
  429. $params = array_merge($params, $optParams); 
  430. return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); 
  431.  
  432. /** 
  433. * The "urlcrawlerrorssamples" collection of methods. 
  434. * Typical usage is: 
  435. * <code> 
  436. * $webmastersService = new Google_Service_Webmasters(...); 
  437. * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples; 
  438. * </code> 
  439. */ 
  440. class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource 
  441.  
  442. /** 
  443. * Retrieves details about crawl errors for a site's sample URL. 
  444. * (urlcrawlerrorssamples.get) 
  445. * 
  446. * @param string $siteUrl The site's URL, including protocol, for example 
  447. * 'http://www.example.com/' 
  448. * @param string $url The relative path (without the site) of the sample URL; 
  449. * must be one of the URLs returned by list 
  450. * @param string $category The crawl error category, for example 
  451. * 'authPermissions' 
  452. * @param string $platform The user agent type (platform) that made the request,  
  453. * for example 'web' 
  454. * @param array $optParams Optional parameters. 
  455. * @return Google_Service_Webmasters_UrlCrawlErrorsSample 
  456. */ 
  457. public function get($siteUrl, $url, $category, $platform, $optParams = array()) 
  458. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  459. $params = array_merge($params, $optParams); 
  460. return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); 
  461.  
  462. /** 
  463. * Lists a site's sample URLs for the specified crawl error category and 
  464. * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) 
  465. * 
  466. * @param string $siteUrl The site's URL, including protocol, for example 
  467. * 'http://www.example.com/' 
  468. * @param string $category The crawl error category, for example 
  469. * 'authPermissions' 
  470. * @param string $platform The user agent type (platform) that made the request,  
  471. * for example 'web' 
  472. * @param array $optParams Optional parameters. 
  473. * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse 
  474. */ 
  475. public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) 
  476. $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); 
  477. $params = array_merge($params, $optParams); 
  478. return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); 
  479.  
  480. /** 
  481. * Marks the provided site's sample URL as fixed, and removes it from the 
  482. * samples list. (urlcrawlerrorssamples.markAsFixed) 
  483. * 
  484. * @param string $siteUrl The site's URL, including protocol, for example 
  485. * 'http://www.example.com/' 
  486. * @param string $url The relative path (without the site) of the sample URL; 
  487. * must be one of the URLs returned by list 
  488. * @param string $category The crawl error category, for example 
  489. * 'authPermissions' 
  490. * @param string $platform The user agent type (platform) that made the request,  
  491. * for example 'web' 
  492. * @param array $optParams Optional parameters. 
  493. */ 
  494. public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) 
  495. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  496. $params = array_merge($params, $optParams); 
  497. return $this->call('markAsFixed', array($params)); 
  498.  
  499.  
  500.  
  501.  
  502. class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection 
  503. protected $collection_key = 'sitemap'; 
  504. protected $internal_gapi_mappings = array( 
  505. ); 
  506. protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; 
  507. protected $sitemapDataType = 'array'; 
  508.  
  509.  
  510. public function setSitemap($sitemap) 
  511. $this->sitemap = $sitemap; 
  512. public function getSitemap() 
  513. return $this->sitemap; 
  514.  
  515. class Google_Service_Webmasters_SitesListResponse extends Google_Collection 
  516. protected $collection_key = 'siteEntry'; 
  517. protected $internal_gapi_mappings = array( 
  518. ); 
  519. protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; 
  520. protected $siteEntryDataType = 'array'; 
  521.  
  522.  
  523. public function setSiteEntry($siteEntry) 
  524. $this->siteEntry = $siteEntry; 
  525. public function getSiteEntry() 
  526. return $this->siteEntry; 
  527.  
  528. class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model 
  529. protected $internal_gapi_mappings = array( 
  530. ); 
  531. public $count; 
  532. public $timestamp; 
  533.  
  534.  
  535. public function setCount($count) 
  536. $this->count = $count; 
  537. public function getCount() 
  538. return $this->count; 
  539. public function setTimestamp($timestamp) 
  540. $this->timestamp = $timestamp; 
  541. public function getTimestamp() 
  542. return $this->timestamp; 
  543.  
  544. class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection 
  545. protected $collection_key = 'entries'; 
  546. protected $internal_gapi_mappings = array( 
  547. ); 
  548. public $category; 
  549. protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; 
  550. protected $entriesDataType = 'array'; 
  551. public $platform; 
  552.  
  553.  
  554. public function setCategory($category) 
  555. $this->category = $category; 
  556. public function getCategory() 
  557. return $this->category; 
  558. public function setEntries($entries) 
  559. $this->entries = $entries; 
  560. public function getEntries() 
  561. return $this->entries; 
  562. public function setPlatform($platform) 
  563. $this->platform = $platform; 
  564. public function getPlatform() 
  565. return $this->platform; 
  566.  
  567. class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection 
  568. protected $collection_key = 'countPerTypes'; 
  569. protected $internal_gapi_mappings = array( 
  570. ); 
  571. protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; 
  572. protected $countPerTypesDataType = 'array'; 
  573.  
  574.  
  575. public function setCountPerTypes($countPerTypes) 
  576. $this->countPerTypes = $countPerTypes; 
  577. public function getCountPerTypes() 
  578. return $this->countPerTypes; 
  579.  
  580. class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model 
  581. protected $internal_gapi_mappings = array( 
  582. "firstDetected" => "first_detected",  
  583. "lastCrawled" => "last_crawled",  
  584. ); 
  585. public $firstDetected; 
  586. public $lastCrawled; 
  587. public $pageUrl; 
  588. public $responseCode; 
  589. protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; 
  590. protected $urlDetailsDataType = ''; 
  591.  
  592.  
  593. public function setFirstDetected($firstDetected) 
  594. $this->firstDetected = $firstDetected; 
  595. public function getFirstDetected() 
  596. return $this->firstDetected; 
  597. public function setLastCrawled($lastCrawled) 
  598. $this->lastCrawled = $lastCrawled; 
  599. public function getLastCrawled() 
  600. return $this->lastCrawled; 
  601. public function setPageUrl($pageUrl) 
  602. $this->pageUrl = $pageUrl; 
  603. public function getPageUrl() 
  604. return $this->pageUrl; 
  605. public function setResponseCode($responseCode) 
  606. $this->responseCode = $responseCode; 
  607. public function getResponseCode() 
  608. return $this->responseCode; 
  609. public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) 
  610. $this->urlDetails = $urlDetails; 
  611. public function getUrlDetails() 
  612. return $this->urlDetails; 
  613.  
  614. class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection 
  615. protected $collection_key = 'urlCrawlErrorSample'; 
  616. protected $internal_gapi_mappings = array( 
  617. ); 
  618. protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; 
  619. protected $urlCrawlErrorSampleDataType = 'array'; 
  620.  
  621.  
  622. public function setUrlCrawlErrorSample($urlCrawlErrorSample) 
  623. $this->urlCrawlErrorSample = $urlCrawlErrorSample; 
  624. public function getUrlCrawlErrorSample() 
  625. return $this->urlCrawlErrorSample; 
  626.  
  627. class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection 
  628. protected $collection_key = 'linkedFromUrls'; 
  629. protected $internal_gapi_mappings = array( 
  630. ); 
  631. public $containingSitemaps; 
  632. public $linkedFromUrls; 
  633.  
  634.  
  635. public function setContainingSitemaps($containingSitemaps) 
  636. $this->containingSitemaps = $containingSitemaps; 
  637. public function getContainingSitemaps() 
  638. return $this->containingSitemaps; 
  639. public function setLinkedFromUrls($linkedFromUrls) 
  640. $this->linkedFromUrls = $linkedFromUrls; 
  641. public function getLinkedFromUrls() 
  642. return $this->linkedFromUrls; 
  643.  
  644. class Google_Service_Webmasters_WmxSite extends Google_Model 
  645. protected $internal_gapi_mappings = array( 
  646. ); 
  647. public $permissionLevel; 
  648. public $siteUrl; 
  649.  
  650.  
  651. public function setPermissionLevel($permissionLevel) 
  652. $this->permissionLevel = $permissionLevel; 
  653. public function getPermissionLevel() 
  654. return $this->permissionLevel; 
  655. public function setSiteUrl($siteUrl) 
  656. $this->siteUrl = $siteUrl; 
  657. public function getSiteUrl() 
  658. return $this->siteUrl; 
  659.  
  660. class Google_Service_Webmasters_WmxSitemap extends Google_Collection 
  661. protected $collection_key = 'contents'; 
  662. protected $internal_gapi_mappings = array( 
  663. ); 
  664. protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; 
  665. protected $contentsDataType = 'array'; 
  666. public $errors; 
  667. public $isPending; 
  668. public $isSitemapsIndex; 
  669. public $lastDownloaded; 
  670. public $lastSubmitted; 
  671. public $path; 
  672. public $type; 
  673. public $warnings; 
  674.  
  675.  
  676. public function setContents($contents) 
  677. $this->contents = $contents; 
  678. public function getContents() 
  679. return $this->contents; 
  680. public function setErrors($errors) 
  681. $this->errors = $errors; 
  682. public function getErrors() 
  683. return $this->errors; 
  684. public function setIsPending($isPending) 
  685. $this->isPending = $isPending; 
  686. public function getIsPending() 
  687. return $this->isPending; 
  688. public function setIsSitemapsIndex($isSitemapsIndex) 
  689. $this->isSitemapsIndex = $isSitemapsIndex; 
  690. public function getIsSitemapsIndex() 
  691. return $this->isSitemapsIndex; 
  692. public function setLastDownloaded($lastDownloaded) 
  693. $this->lastDownloaded = $lastDownloaded; 
  694. public function getLastDownloaded() 
  695. return $this->lastDownloaded; 
  696. public function setLastSubmitted($lastSubmitted) 
  697. $this->lastSubmitted = $lastSubmitted; 
  698. public function getLastSubmitted() 
  699. return $this->lastSubmitted; 
  700. public function setPath($path) 
  701. $this->path = $path; 
  702. public function getPath() 
  703. return $this->path; 
  704. public function setType($type) 
  705. $this->type = $type; 
  706. public function getType() 
  707. return $this->type; 
  708. public function setWarnings($warnings) 
  709. $this->warnings = $warnings; 
  710. public function getWarnings() 
  711. return $this->warnings; 
  712.  
  713. class Google_Service_Webmasters_WmxSitemapContent extends Google_Model 
  714. protected $internal_gapi_mappings = array( 
  715. ); 
  716. public $indexed; 
  717. public $submitted; 
  718. public $type; 
  719.  
  720.  
  721. public function setIndexed($indexed) 
  722. $this->indexed = $indexed; 
  723. public function getIndexed() 
  724. return $this->indexed; 
  725. public function setSubmitted($submitted) 
  726. $this->submitted = $submitted; 
  727. public function getSubmitted() 
  728. return $this->submitted; 
  729. public function setType($type) 
  730. $this->type = $type; 
  731. public function getType() 
  732. return $this->type; 
.