gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,337 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class AmpInspectionResult extends \Google\Collection
{
/**
* Unknown verdict.
*/
public const AMP_INDEX_STATUS_VERDICT_VERDICT_UNSPECIFIED = 'VERDICT_UNSPECIFIED';
/**
* Equivalent to "Valid" for the page or item in Search Console.
*/
public const AMP_INDEX_STATUS_VERDICT_PASS = 'PASS';
/**
* Reserved, no longer in use.
*/
public const AMP_INDEX_STATUS_VERDICT_PARTIAL = 'PARTIAL';
/**
* Equivalent to "Error" or "Invalid" for the page or item in Search Console.
*/
public const AMP_INDEX_STATUS_VERDICT_FAIL = 'FAIL';
/**
* Equivalent to "Excluded" for the page or item in Search Console.
*/
public const AMP_INDEX_STATUS_VERDICT_NEUTRAL = 'NEUTRAL';
/**
* Unknown indexing status.
*/
public const INDEXING_STATE_AMP_INDEXING_STATE_UNSPECIFIED = 'AMP_INDEXING_STATE_UNSPECIFIED';
/**
* Indexing allowed.
*/
public const INDEXING_STATE_AMP_INDEXING_ALLOWED = 'AMP_INDEXING_ALLOWED';
/**
* Indexing not allowed, 'noindex' detected.
*/
public const INDEXING_STATE_BLOCKED_DUE_TO_NOINDEX = 'BLOCKED_DUE_TO_NOINDEX';
/**
* Indexing not allowed, 'unavailable_after' date expired.
*/
public const INDEXING_STATE_BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER = 'BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER';
/**
* Unknown fetch state.
*/
public const PAGE_FETCH_STATE_PAGE_FETCH_STATE_UNSPECIFIED = 'PAGE_FETCH_STATE_UNSPECIFIED';
/**
* Successful fetch.
*/
public const PAGE_FETCH_STATE_SUCCESSFUL = 'SUCCESSFUL';
/**
* Soft 404.
*/
public const PAGE_FETCH_STATE_SOFT_404 = 'SOFT_404';
/**
* Blocked by robots.txt.
*/
public const PAGE_FETCH_STATE_BLOCKED_ROBOTS_TXT = 'BLOCKED_ROBOTS_TXT';
/**
* Not found (404).
*/
public const PAGE_FETCH_STATE_NOT_FOUND = 'NOT_FOUND';
/**
* Blocked due to unauthorized request (401).
*/
public const PAGE_FETCH_STATE_ACCESS_DENIED = 'ACCESS_DENIED';
/**
* Server error (5xx).
*/
public const PAGE_FETCH_STATE_SERVER_ERROR = 'SERVER_ERROR';
/**
* Redirection error.
*/
public const PAGE_FETCH_STATE_REDIRECT_ERROR = 'REDIRECT_ERROR';
/**
* Blocked due to access forbidden (403).
*/
public const PAGE_FETCH_STATE_ACCESS_FORBIDDEN = 'ACCESS_FORBIDDEN';
/**
* Blocked due to other 4xx issue (not 403, 404).
*/
public const PAGE_FETCH_STATE_BLOCKED_4XX = 'BLOCKED_4XX';
/**
* Internal error.
*/
public const PAGE_FETCH_STATE_INTERNAL_CRAWL_ERROR = 'INTERNAL_CRAWL_ERROR';
/**
* Invalid URL.
*/
public const PAGE_FETCH_STATE_INVALID_URL = 'INVALID_URL';
/**
* Unknown robots.txt state, typically because the page wasn't fetched or
* found, or because robots.txt itself couldn't be reached.
*/
public const ROBOTS_TXT_STATE_ROBOTS_TXT_STATE_UNSPECIFIED = 'ROBOTS_TXT_STATE_UNSPECIFIED';
/**
* Crawl allowed by robots.txt.
*/
public const ROBOTS_TXT_STATE_ALLOWED = 'ALLOWED';
/**
* Crawl blocked by robots.txt.
*/
public const ROBOTS_TXT_STATE_DISALLOWED = 'DISALLOWED';
/**
* Unknown verdict.
*/
public const VERDICT_VERDICT_UNSPECIFIED = 'VERDICT_UNSPECIFIED';
/**
* Equivalent to "Valid" for the page or item in Search Console.
*/
public const VERDICT_PASS = 'PASS';
/**
* Reserved, no longer in use.
*/
public const VERDICT_PARTIAL = 'PARTIAL';
/**
* Equivalent to "Error" or "Invalid" for the page or item in Search Console.
*/
public const VERDICT_FAIL = 'FAIL';
/**
* Equivalent to "Excluded" for the page or item in Search Console.
*/
public const VERDICT_NEUTRAL = 'NEUTRAL';
protected $collection_key = 'issues';
/**
* Index status of the AMP URL.
*
* @var string
*/
public $ampIndexStatusVerdict;
/**
* URL of the AMP that was inspected. If the submitted URL is a desktop page
* that refers to an AMP version, the AMP version will be inspected.
*
* @var string
*/
public $ampUrl;
/**
* Whether or not the page blocks indexing through a noindex rule.
*
* @var string
*/
public $indexingState;
protected $issuesType = AmpIssue::class;
protected $issuesDataType = 'array';
/**
* Last time this AMP version was crawled by Google. Absent if the URL was
* never crawled successfully.
*
* @var string
*/
public $lastCrawlTime;
/**
* Whether or not Google could fetch the AMP.
*
* @var string
*/
public $pageFetchState;
/**
* Whether or not the page is blocked to Google by a robots.txt rule.
*
* @var string
*/
public $robotsTxtState;
/**
* The status of the most severe error on the page. If a page has both
* warnings and errors, the page status is error. Error status means the page
* cannot be shown in Search results.
*
* @var string
*/
public $verdict;
/**
* Index status of the AMP URL.
*
* Accepted values: VERDICT_UNSPECIFIED, PASS, PARTIAL, FAIL, NEUTRAL
*
* @param self::AMP_INDEX_STATUS_VERDICT_* $ampIndexStatusVerdict
*/
public function setAmpIndexStatusVerdict($ampIndexStatusVerdict)
{
$this->ampIndexStatusVerdict = $ampIndexStatusVerdict;
}
/**
* @return self::AMP_INDEX_STATUS_VERDICT_*
*/
public function getAmpIndexStatusVerdict()
{
return $this->ampIndexStatusVerdict;
}
/**
* URL of the AMP that was inspected. If the submitted URL is a desktop page
* that refers to an AMP version, the AMP version will be inspected.
*
* @param string $ampUrl
*/
public function setAmpUrl($ampUrl)
{
$this->ampUrl = $ampUrl;
}
/**
* @return string
*/
public function getAmpUrl()
{
return $this->ampUrl;
}
/**
* Whether or not the page blocks indexing through a noindex rule.
*
* Accepted values: AMP_INDEXING_STATE_UNSPECIFIED, AMP_INDEXING_ALLOWED,
* BLOCKED_DUE_TO_NOINDEX, BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER
*
* @param self::INDEXING_STATE_* $indexingState
*/
public function setIndexingState($indexingState)
{
$this->indexingState = $indexingState;
}
/**
* @return self::INDEXING_STATE_*
*/
public function getIndexingState()
{
return $this->indexingState;
}
/**
* A list of zero or more AMP issues found for the inspected URL.
*
* @param AmpIssue[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return AmpIssue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* Last time this AMP version was crawled by Google. Absent if the URL was
* never crawled successfully.
*
* @param string $lastCrawlTime
*/
public function setLastCrawlTime($lastCrawlTime)
{
$this->lastCrawlTime = $lastCrawlTime;
}
/**
* @return string
*/
public function getLastCrawlTime()
{
return $this->lastCrawlTime;
}
/**
* Whether or not Google could fetch the AMP.
*
* Accepted values: PAGE_FETCH_STATE_UNSPECIFIED, SUCCESSFUL, SOFT_404,
* BLOCKED_ROBOTS_TXT, NOT_FOUND, ACCESS_DENIED, SERVER_ERROR, REDIRECT_ERROR,
* ACCESS_FORBIDDEN, BLOCKED_4XX, INTERNAL_CRAWL_ERROR, INVALID_URL
*
* @param self::PAGE_FETCH_STATE_* $pageFetchState
*/
public function setPageFetchState($pageFetchState)
{
$this->pageFetchState = $pageFetchState;
}
/**
* @return self::PAGE_FETCH_STATE_*
*/
public function getPageFetchState()
{
return $this->pageFetchState;
}
/**
* Whether or not the page is blocked to Google by a robots.txt rule.
*
* Accepted values: ROBOTS_TXT_STATE_UNSPECIFIED, ALLOWED, DISALLOWED
*
* @param self::ROBOTS_TXT_STATE_* $robotsTxtState
*/
public function setRobotsTxtState($robotsTxtState)
{
$this->robotsTxtState = $robotsTxtState;
}
/**
* @return self::ROBOTS_TXT_STATE_*
*/
public function getRobotsTxtState()
{
return $this->robotsTxtState;
}
/**
* The status of the most severe error on the page. If a page has both
* warnings and errors, the page status is error. Error status means the page
* cannot be shown in Search results.
*
* Accepted values: VERDICT_UNSPECIFIED, PASS, PARTIAL, FAIL, NEUTRAL
*
* @param self::VERDICT_* $verdict
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return self::VERDICT_*
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AmpInspectionResult::class, 'Google_Service_SearchConsole_AmpInspectionResult');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class AmpIssue extends \Google\Model
{
/**
* Unknown severity.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Warning.
*/
public const SEVERITY_WARNING = 'WARNING';
/**
* Error.
*/
public const SEVERITY_ERROR = 'ERROR';
/**
* Brief description of this issue.
*
* @var string
*/
public $issueMessage;
/**
* Severity of this issue: WARNING or ERROR.
*
* @var string
*/
public $severity;
/**
* Brief description of this issue.
*
* @param string $issueMessage
*/
public function setIssueMessage($issueMessage)
{
$this->issueMessage = $issueMessage;
}
/**
* @return string
*/
public function getIssueMessage()
{
return $this->issueMessage;
}
/**
* Severity of this issue: WARNING or ERROR.
*
* Accepted values: SEVERITY_UNSPECIFIED, WARNING, ERROR
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AmpIssue::class, 'Google_Service_SearchConsole_AmpIssue');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class ApiDataRow extends \Google\Collection
{
protected $collection_key = 'keys';
public $clicks;
public $ctr;
public $impressions;
/**
* @var string[]
*/
public $keys;
public $position;
public function setClicks($clicks)
{
$this->clicks = $clicks;
}
public function getClicks()
{
return $this->clicks;
}
public function setCtr($ctr)
{
$this->ctr = $ctr;
}
public function getCtr()
{
return $this->ctr;
}
public function setImpressions($impressions)
{
$this->impressions = $impressions;
}
public function getImpressions()
{
return $this->impressions;
}
/**
* @param string[] $keys
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return string[]
*/
public function getKeys()
{
return $this->keys;
}
public function setPosition($position)
{
$this->position = $position;
}
public function getPosition()
{
return $this->position;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDataRow::class, 'Google_Service_SearchConsole_ApiDataRow');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class ApiDimensionFilter extends \Google\Model
{
public const DIMENSION_QUERY = 'QUERY';
public const DIMENSION_PAGE = 'PAGE';
public const DIMENSION_COUNTRY = 'COUNTRY';
public const DIMENSION_DEVICE = 'DEVICE';
public const DIMENSION_SEARCH_APPEARANCE = 'SEARCH_APPEARANCE';
public const OPERATOR_EQUALS = 'EQUALS';
public const OPERATOR_NOT_EQUALS = 'NOT_EQUALS';
public const OPERATOR_CONTAINS = 'CONTAINS';
public const OPERATOR_NOT_CONTAINS = 'NOT_CONTAINS';
public const OPERATOR_INCLUDING_REGEX = 'INCLUDING_REGEX';
public const OPERATOR_EXCLUDING_REGEX = 'EXCLUDING_REGEX';
/**
* @var string
*/
public $dimension;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $operator;
/**
* @param self::DIMENSION_* $dimension
*/
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
/**
* @return self::DIMENSION_*
*/
public function getDimension()
{
return $this->dimension;
}
/**
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param self::OPERATOR_* $operator
*/
public function setOperator($operator)
{
$this->operator = $operator;
}
/**
* @return self::OPERATOR_*
*/
public function getOperator()
{
return $this->operator;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDimensionFilter::class, 'Google_Service_SearchConsole_ApiDimensionFilter');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class ApiDimensionFilterGroup extends \Google\Collection
{
public const GROUP_TYPE_AND = 'AND';
protected $collection_key = 'filters';
protected $filtersType = ApiDimensionFilter::class;
protected $filtersDataType = 'array';
/**
* @var string
*/
public $groupType;
/**
* @param ApiDimensionFilter[] $filters
*/
public function setFilters($filters)
{
$this->filters = $filters;
}
/**
* @return ApiDimensionFilter[]
*/
public function getFilters()
{
return $this->filters;
}
/**
* @param self::GROUP_TYPE_* $groupType
*/
public function setGroupType($groupType)
{
$this->groupType = $groupType;
}
/**
* @return self::GROUP_TYPE_*
*/
public function getGroupType()
{
return $this->groupType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDimensionFilterGroup::class, 'Google_Service_SearchConsole_ApiDimensionFilterGroup');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class BlockedResource extends \Google\Model
{
/**
* URL of the blocked resource.
*
* @var string
*/
public $url;
/**
* URL of the blocked resource.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlockedResource::class, 'Google_Service_SearchConsole_BlockedResource');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class DetectedItems extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Item::class;
protected $itemsDataType = 'array';
/**
* Rich Results type
*
* @var string
*/
public $richResultType;
/**
* List of Rich Results items.
*
* @param Item[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Item[]
*/
public function getItems()
{
return $this->items;
}
/**
* Rich Results type
*
* @param string $richResultType
*/
public function setRichResultType($richResultType)
{
$this->richResultType = $richResultType;
}
/**
* @return string
*/
public function getRichResultType()
{
return $this->richResultType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetectedItems::class, 'Google_Service_SearchConsole_DetectedItems');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class Image extends \Google\Model
{
/**
* Image data in format determined by the mime type. Currently, the format
* will always be "image/png", but this might change in the future.
*
* @var string
*/
public $data;
/**
* The mime-type of the image data.
*
* @var string
*/
public $mimeType;
/**
* Image data in format determined by the mime type. Currently, the format
* will always be "image/png", but this might change in the future.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* The mime-type of the image data.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Image::class, 'Google_Service_SearchConsole_Image');
@@ -0,0 +1,417 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class IndexStatusInspectionResult extends \Google\Collection
{
/**
* Unknown user agent.
*/
public const CRAWLED_AS_CRAWLING_USER_AGENT_UNSPECIFIED = 'CRAWLING_USER_AGENT_UNSPECIFIED';
/**
* Desktop user agent.
*/
public const CRAWLED_AS_DESKTOP = 'DESKTOP';
/**
* Mobile user agent.
*/
public const CRAWLED_AS_MOBILE = 'MOBILE';
/**
* Unknown indexing status.
*/
public const INDEXING_STATE_INDEXING_STATE_UNSPECIFIED = 'INDEXING_STATE_UNSPECIFIED';
/**
* Indexing allowed.
*/
public const INDEXING_STATE_INDEXING_ALLOWED = 'INDEXING_ALLOWED';
/**
* Indexing not allowed, 'noindex' detected in 'robots' meta tag.
*/
public const INDEXING_STATE_BLOCKED_BY_META_TAG = 'BLOCKED_BY_META_TAG';
/**
* Indexing not allowed, 'noindex' detected in 'X-Robots-Tag' http header.
*/
public const INDEXING_STATE_BLOCKED_BY_HTTP_HEADER = 'BLOCKED_BY_HTTP_HEADER';
/**
* Reserved, no longer in use.
*/
public const INDEXING_STATE_BLOCKED_BY_ROBOTS_TXT = 'BLOCKED_BY_ROBOTS_TXT';
/**
* Unknown fetch state.
*/
public const PAGE_FETCH_STATE_PAGE_FETCH_STATE_UNSPECIFIED = 'PAGE_FETCH_STATE_UNSPECIFIED';
/**
* Successful fetch.
*/
public const PAGE_FETCH_STATE_SUCCESSFUL = 'SUCCESSFUL';
/**
* Soft 404.
*/
public const PAGE_FETCH_STATE_SOFT_404 = 'SOFT_404';
/**
* Blocked by robots.txt.
*/
public const PAGE_FETCH_STATE_BLOCKED_ROBOTS_TXT = 'BLOCKED_ROBOTS_TXT';
/**
* Not found (404).
*/
public const PAGE_FETCH_STATE_NOT_FOUND = 'NOT_FOUND';
/**
* Blocked due to unauthorized request (401).
*/
public const PAGE_FETCH_STATE_ACCESS_DENIED = 'ACCESS_DENIED';
/**
* Server error (5xx).
*/
public const PAGE_FETCH_STATE_SERVER_ERROR = 'SERVER_ERROR';
/**
* Redirection error.
*/
public const PAGE_FETCH_STATE_REDIRECT_ERROR = 'REDIRECT_ERROR';
/**
* Blocked due to access forbidden (403).
*/
public const PAGE_FETCH_STATE_ACCESS_FORBIDDEN = 'ACCESS_FORBIDDEN';
/**
* Blocked due to other 4xx issue (not 403, 404).
*/
public const PAGE_FETCH_STATE_BLOCKED_4XX = 'BLOCKED_4XX';
/**
* Internal error.
*/
public const PAGE_FETCH_STATE_INTERNAL_CRAWL_ERROR = 'INTERNAL_CRAWL_ERROR';
/**
* Invalid URL.
*/
public const PAGE_FETCH_STATE_INVALID_URL = 'INVALID_URL';
/**
* Unknown robots.txt state, typically because the page wasn't fetched or
* found, or because robots.txt itself couldn't be reached.
*/
public const ROBOTS_TXT_STATE_ROBOTS_TXT_STATE_UNSPECIFIED = 'ROBOTS_TXT_STATE_UNSPECIFIED';
/**
* Crawl allowed by robots.txt.
*/
public const ROBOTS_TXT_STATE_ALLOWED = 'ALLOWED';
/**
* Crawl blocked by robots.txt.
*/
public const ROBOTS_TXT_STATE_DISALLOWED = 'DISALLOWED';
/**
* Unknown verdict.
*/
public const VERDICT_VERDICT_UNSPECIFIED = 'VERDICT_UNSPECIFIED';
/**
* Equivalent to "Valid" for the page or item in Search Console.
*/
public const VERDICT_PASS = 'PASS';
/**
* Reserved, no longer in use.
*/
public const VERDICT_PARTIAL = 'PARTIAL';
/**
* Equivalent to "Error" or "Invalid" for the page or item in Search Console.
*/
public const VERDICT_FAIL = 'FAIL';
/**
* Equivalent to "Excluded" for the page or item in Search Console.
*/
public const VERDICT_NEUTRAL = 'NEUTRAL';
protected $collection_key = 'sitemap';
/**
* Could Google find and index the page. More details about page indexing
* appear in 'indexing_state'.
*
* @var string
*/
public $coverageState;
/**
* Primary crawler that was used by Google to crawl your site.
*
* @var string
*/
public $crawledAs;
/**
* The URL of the page that Google selected as canonical. If the page was not
* indexed, this field is absent.
*
* @var string
*/
public $googleCanonical;
/**
* Whether or not the page blocks indexing through a noindex rule.
*
* @var string
*/
public $indexingState;
/**
* Last time this URL was crawled by Google using the [primary crawler](https:
* //support.google.com/webmasters/answer/7440203#primary_crawler). Absent if
* the URL was never crawled successfully.
*
* @var string
*/
public $lastCrawlTime;
/**
* Whether or not Google could retrieve the page from your server. Equivalent
* to ["page fetch"](https://support.google.com/webmasters/answer/9012289#inde
* x_coverage) in the URL inspection report.
*
* @var string
*/
public $pageFetchState;
/**
* URLs that link to the inspected URL, directly and indirectly.
*
* @var string[]
*/
public $referringUrls;
/**
* Whether or not the page is blocked to Google by a robots.txt rule.
*
* @var string
*/
public $robotsTxtState;
/**
* Any sitemaps that this URL was listed in, as known by Google. Not
* guaranteed to be an exhaustive list, especially if Google did not discover
* this URL through a sitemap. Absent if no sitemaps were found.
*
* @var string[]
*/
public $sitemap;
/**
* The URL that your page or site [declares as canonical](https://developers.g
* oogle.com/search/docs/advanced/crawling/consolidate-duplicate-urls?#define-
* canonical). If you did not declare a canonical URL, this field is absent.
*
* @var string
*/
public $userCanonical;
/**
* High level verdict about whether the URL *is* indexed (indexed status), or
* *can be* indexed (live inspection).
*
* @var string
*/
public $verdict;
/**
* Could Google find and index the page. More details about page indexing
* appear in 'indexing_state'.
*
* @param string $coverageState
*/
public function setCoverageState($coverageState)
{
$this->coverageState = $coverageState;
}
/**
* @return string
*/
public function getCoverageState()
{
return $this->coverageState;
}
/**
* Primary crawler that was used by Google to crawl your site.
*
* Accepted values: CRAWLING_USER_AGENT_UNSPECIFIED, DESKTOP, MOBILE
*
* @param self::CRAWLED_AS_* $crawledAs
*/
public function setCrawledAs($crawledAs)
{
$this->crawledAs = $crawledAs;
}
/**
* @return self::CRAWLED_AS_*
*/
public function getCrawledAs()
{
return $this->crawledAs;
}
/**
* The URL of the page that Google selected as canonical. If the page was not
* indexed, this field is absent.
*
* @param string $googleCanonical
*/
public function setGoogleCanonical($googleCanonical)
{
$this->googleCanonical = $googleCanonical;
}
/**
* @return string
*/
public function getGoogleCanonical()
{
return $this->googleCanonical;
}
/**
* Whether or not the page blocks indexing through a noindex rule.
*
* Accepted values: INDEXING_STATE_UNSPECIFIED, INDEXING_ALLOWED,
* BLOCKED_BY_META_TAG, BLOCKED_BY_HTTP_HEADER, BLOCKED_BY_ROBOTS_TXT
*
* @param self::INDEXING_STATE_* $indexingState
*/
public function setIndexingState($indexingState)
{
$this->indexingState = $indexingState;
}
/**
* @return self::INDEXING_STATE_*
*/
public function getIndexingState()
{
return $this->indexingState;
}
/**
* Last time this URL was crawled by Google using the [primary crawler](https:
* //support.google.com/webmasters/answer/7440203#primary_crawler). Absent if
* the URL was never crawled successfully.
*
* @param string $lastCrawlTime
*/
public function setLastCrawlTime($lastCrawlTime)
{
$this->lastCrawlTime = $lastCrawlTime;
}
/**
* @return string
*/
public function getLastCrawlTime()
{
return $this->lastCrawlTime;
}
/**
* Whether or not Google could retrieve the page from your server. Equivalent
* to ["page fetch"](https://support.google.com/webmasters/answer/9012289#inde
* x_coverage) in the URL inspection report.
*
* Accepted values: PAGE_FETCH_STATE_UNSPECIFIED, SUCCESSFUL, SOFT_404,
* BLOCKED_ROBOTS_TXT, NOT_FOUND, ACCESS_DENIED, SERVER_ERROR, REDIRECT_ERROR,
* ACCESS_FORBIDDEN, BLOCKED_4XX, INTERNAL_CRAWL_ERROR, INVALID_URL
*
* @param self::PAGE_FETCH_STATE_* $pageFetchState
*/
public function setPageFetchState($pageFetchState)
{
$this->pageFetchState = $pageFetchState;
}
/**
* @return self::PAGE_FETCH_STATE_*
*/
public function getPageFetchState()
{
return $this->pageFetchState;
}
/**
* URLs that link to the inspected URL, directly and indirectly.
*
* @param string[] $referringUrls
*/
public function setReferringUrls($referringUrls)
{
$this->referringUrls = $referringUrls;
}
/**
* @return string[]
*/
public function getReferringUrls()
{
return $this->referringUrls;
}
/**
* Whether or not the page is blocked to Google by a robots.txt rule.
*
* Accepted values: ROBOTS_TXT_STATE_UNSPECIFIED, ALLOWED, DISALLOWED
*
* @param self::ROBOTS_TXT_STATE_* $robotsTxtState
*/
public function setRobotsTxtState($robotsTxtState)
{
$this->robotsTxtState = $robotsTxtState;
}
/**
* @return self::ROBOTS_TXT_STATE_*
*/
public function getRobotsTxtState()
{
return $this->robotsTxtState;
}
/**
* Any sitemaps that this URL was listed in, as known by Google. Not
* guaranteed to be an exhaustive list, especially if Google did not discover
* this URL through a sitemap. Absent if no sitemaps were found.
*
* @param string[] $sitemap
*/
public function setSitemap($sitemap)
{
$this->sitemap = $sitemap;
}
/**
* @return string[]
*/
public function getSitemap()
{
return $this->sitemap;
}
/**
* The URL that your page or site [declares as canonical](https://developers.g
* oogle.com/search/docs/advanced/crawling/consolidate-duplicate-urls?#define-
* canonical). If you did not declare a canonical URL, this field is absent.
*
* @param string $userCanonical
*/
public function setUserCanonical($userCanonical)
{
$this->userCanonical = $userCanonical;
}
/**
* @return string
*/
public function getUserCanonical()
{
return $this->userCanonical;
}
/**
* High level verdict about whether the URL *is* indexed (indexed status), or
* *can be* indexed (live inspection).
*
* Accepted values: VERDICT_UNSPECIFIED, PASS, PARTIAL, FAIL, NEUTRAL
*
* @param self::VERDICT_* $verdict
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return self::VERDICT_*
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexStatusInspectionResult::class, 'Google_Service_SearchConsole_IndexStatusInspectionResult');
@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class InspectUrlIndexRequest extends \Google\Model
{
/**
* Required. URL to inspect. Must be under the property specified in
* "site_url".
*
* @var string
*/
public $inspectionUrl;
/**
* Optional. An [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag)
* language code representing the requested language for translated issue
* messages, e.g. "en-US", "or "de-CH". Default value is "en-US".
*
* @var string
*/
public $languageCode;
/**
* Required. The URL of the property as defined in Search Console.
* **Examples:** `http://www.example.com/` for a URL-prefix property, or `sc-
* domain:example.com` for a Domain property.
*
* @var string
*/
public $siteUrl;
/**
* Required. URL to inspect. Must be under the property specified in
* "site_url".
*
* @param string $inspectionUrl
*/
public function setInspectionUrl($inspectionUrl)
{
$this->inspectionUrl = $inspectionUrl;
}
/**
* @return string
*/
public function getInspectionUrl()
{
return $this->inspectionUrl;
}
/**
* Optional. An [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag)
* language code representing the requested language for translated issue
* messages, e.g. "en-US", "or "de-CH". Default value is "en-US".
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Required. The URL of the property as defined in Search Console.
* **Examples:** `http://www.example.com/` for a URL-prefix property, or `sc-
* domain:example.com` for a Domain property.
*
* @param string $siteUrl
*/
public function setSiteUrl($siteUrl)
{
$this->siteUrl = $siteUrl;
}
/**
* @return string
*/
public function getSiteUrl()
{
return $this->siteUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InspectUrlIndexRequest::class, 'Google_Service_SearchConsole_InspectUrlIndexRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class InspectUrlIndexResponse extends \Google\Model
{
protected $inspectionResultType = UrlInspectionResult::class;
protected $inspectionResultDataType = '';
/**
* URL inspection results.
*
* @param UrlInspectionResult $inspectionResult
*/
public function setInspectionResult(UrlInspectionResult $inspectionResult)
{
$this->inspectionResult = $inspectionResult;
}
/**
* @return UrlInspectionResult
*/
public function getInspectionResult()
{
return $this->inspectionResult;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InspectUrlIndexResponse::class, 'Google_Service_SearchConsole_InspectUrlIndexResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class Item extends \Google\Collection
{
protected $collection_key = 'issues';
protected $issuesType = RichResultsIssue::class;
protected $issuesDataType = 'array';
/**
* The user-provided name of this item.
*
* @var string
*/
public $name;
/**
* A list of zero or more rich result issues found for this instance.
*
* @param RichResultsIssue[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return RichResultsIssue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* The user-provided name of this item.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item::class, 'Google_Service_SearchConsole_Item');
@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class Metadata extends \Google\Model
{
/**
* The first date for which the data is still being collected and processed,
* presented in `YYYY-MM-DD` format (ISO-8601 extended local date format).
* This field is populated only when the request's `dataState` is "`all`",
* data is grouped by "`DATE`", and the requested date range contains
* incomplete data points. All values after the `first_incomplete_date` may
* still change noticeably.
*
* @var string
*/
public $firstIncompleteDate;
/**
* The first hour for which the data is still being collected and processed,
* presented in `YYYY-MM-DDThh:mm:ss[+|-]hh:mm` format (ISO-8601 extended
* offset date-time format). This field is populated only when the request's
* `dataState` is "`hourly_all`", data is grouped by "`HOUR`" and the
* requested date range contains incomplete data points. All values after the
* `first_incomplete_hour` may still change noticeably.
*
* @var string
*/
public $firstIncompleteHour;
/**
* The first date for which the data is still being collected and processed,
* presented in `YYYY-MM-DD` format (ISO-8601 extended local date format).
* This field is populated only when the request's `dataState` is "`all`",
* data is grouped by "`DATE`", and the requested date range contains
* incomplete data points. All values after the `first_incomplete_date` may
* still change noticeably.
*
* @param string $firstIncompleteDate
*/
public function setFirstIncompleteDate($firstIncompleteDate)
{
$this->firstIncompleteDate = $firstIncompleteDate;
}
/**
* @return string
*/
public function getFirstIncompleteDate()
{
return $this->firstIncompleteDate;
}
/**
* The first hour for which the data is still being collected and processed,
* presented in `YYYY-MM-DDThh:mm:ss[+|-]hh:mm` format (ISO-8601 extended
* offset date-time format). This field is populated only when the request's
* `dataState` is "`hourly_all`", data is grouped by "`HOUR`" and the
* requested date range contains incomplete data points. All values after the
* `first_incomplete_hour` may still change noticeably.
*
* @param string $firstIncompleteHour
*/
public function setFirstIncompleteHour($firstIncompleteHour)
{
$this->firstIncompleteHour = $firstIncompleteHour;
}
/**
* @return string
*/
public function getFirstIncompleteHour()
{
return $this->firstIncompleteHour;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_SearchConsole_Metadata');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class MobileFriendlyIssue extends \Google\Model
{
/**
* Unknown rule. Sorry, we don't have any description for the rule that was
* broken.
*/
public const RULE_MOBILE_FRIENDLY_RULE_UNSPECIFIED = 'MOBILE_FRIENDLY_RULE_UNSPECIFIED';
/**
* Plugins incompatible with mobile devices are being used. [Learn more]
* (https://support.google.com/webmasters/answer/6352293#flash_usage).
*/
public const RULE_USES_INCOMPATIBLE_PLUGINS = 'USES_INCOMPATIBLE_PLUGINS';
/**
* Viewport is not specified using the meta viewport tag. [Learn more] (https:
* //support.google.com/webmasters/answer/6352293#viewport_not_configured).
*/
public const RULE_CONFIGURE_VIEWPORT = 'CONFIGURE_VIEWPORT';
/**
* Viewport defined to a fixed width. [Learn more]
* (https://support.google.com/webmasters/answer/6352293#fixed-
* width_viewport).
*/
public const RULE_FIXED_WIDTH_VIEWPORT = 'FIXED_WIDTH_VIEWPORT';
/**
* Content not sized to viewport. [Learn more] (https://support.google.com/web
* masters/answer/6352293#content_not_sized_to_viewport).
*/
public const RULE_SIZE_CONTENT_TO_VIEWPORT = 'SIZE_CONTENT_TO_VIEWPORT';
/**
* Font size is too small for easy reading on a small screen. [Learn More]
* (https://support.google.com/webmasters/answer/6352293#small_font_size).
*/
public const RULE_USE_LEGIBLE_FONT_SIZES = 'USE_LEGIBLE_FONT_SIZES';
/**
* Touch elements are too close to each other. [Learn more] (https://support.g
* oogle.com/webmasters/answer/6352293#touch_elements_too_close).
*/
public const RULE_TAP_TARGETS_TOO_CLOSE = 'TAP_TARGETS_TOO_CLOSE';
/**
* Rule violated.
*
* @var string
*/
public $rule;
/**
* Rule violated.
*
* Accepted values: MOBILE_FRIENDLY_RULE_UNSPECIFIED,
* USES_INCOMPATIBLE_PLUGINS, CONFIGURE_VIEWPORT, FIXED_WIDTH_VIEWPORT,
* SIZE_CONTENT_TO_VIEWPORT, USE_LEGIBLE_FONT_SIZES, TAP_TARGETS_TOO_CLOSE
*
* @param self::RULE_* $rule
*/
public function setRule($rule)
{
$this->rule = $rule;
}
/**
* @return self::RULE_*
*/
public function getRule()
{
return $this->rule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileFriendlyIssue::class, 'Google_Service_SearchConsole_MobileFriendlyIssue');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class MobileUsabilityInspectionResult extends \Google\Collection
{
/**
* Unknown verdict.
*/
public const VERDICT_VERDICT_UNSPECIFIED = 'VERDICT_UNSPECIFIED';
/**
* Equivalent to "Valid" for the page or item in Search Console.
*/
public const VERDICT_PASS = 'PASS';
/**
* Reserved, no longer in use.
*/
public const VERDICT_PARTIAL = 'PARTIAL';
/**
* Equivalent to "Error" or "Invalid" for the page or item in Search Console.
*/
public const VERDICT_FAIL = 'FAIL';
/**
* Equivalent to "Excluded" for the page or item in Search Console.
*/
public const VERDICT_NEUTRAL = 'NEUTRAL';
protected $collection_key = 'issues';
protected $issuesType = MobileUsabilityIssue::class;
protected $issuesDataType = 'array';
/**
* High-level mobile-usability inspection result for this URL.
*
* @var string
*/
public $verdict;
/**
* A list of zero or more mobile-usability issues detected for this URL.
*
* @param MobileUsabilityIssue[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return MobileUsabilityIssue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* High-level mobile-usability inspection result for this URL.
*
* Accepted values: VERDICT_UNSPECIFIED, PASS, PARTIAL, FAIL, NEUTRAL
*
* @param self::VERDICT_* $verdict
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return self::VERDICT_*
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileUsabilityInspectionResult::class, 'Google_Service_SearchConsole_MobileUsabilityInspectionResult');
@@ -0,0 +1,149 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class MobileUsabilityIssue extends \Google\Model
{
/**
* Unknown issue. Sorry, we don't have any description for the rule that was
* broken.
*/
public const ISSUE_TYPE_MOBILE_USABILITY_ISSUE_TYPE_UNSPECIFIED = 'MOBILE_USABILITY_ISSUE_TYPE_UNSPECIFIED';
/**
* Plugins incompatible with mobile devices are being used. [Learn more]
* (https://support.google.com/webmasters/answer/6352293#flash_usage#error-
* list).
*/
public const ISSUE_TYPE_USES_INCOMPATIBLE_PLUGINS = 'USES_INCOMPATIBLE_PLUGINS';
/**
* Viewport is not specified using the meta viewport tag. [Learn more] (https:
* //support.google.com/webmasters/answer/6352293#viewport_not_configured#erro
* r-list).
*/
public const ISSUE_TYPE_CONFIGURE_VIEWPORT = 'CONFIGURE_VIEWPORT';
/**
* Viewport defined to a fixed width. [Learn more]
* (https://support.google.com/webmasters/answer/6352293#fixed-
* width_viewport#error-list).
*/
public const ISSUE_TYPE_FIXED_WIDTH_VIEWPORT = 'FIXED_WIDTH_VIEWPORT';
/**
* Content not sized to viewport. [Learn more] (https://support.google.com/web
* masters/answer/6352293#content_not_sized_to_viewport#error-list).
*/
public const ISSUE_TYPE_SIZE_CONTENT_TO_VIEWPORT = 'SIZE_CONTENT_TO_VIEWPORT';
/**
* Font size is too small for easy reading on a small screen. [Learn More] (ht
* tps://support.google.com/webmasters/answer/6352293#small_font_size#error-
* list).
*/
public const ISSUE_TYPE_USE_LEGIBLE_FONT_SIZES = 'USE_LEGIBLE_FONT_SIZES';
/**
* Touch elements are too close to each other. [Learn more] (https://support.g
* oogle.com/webmasters/answer/6352293#touch_elements_too_close#error-list).
*/
public const ISSUE_TYPE_TAP_TARGETS_TOO_CLOSE = 'TAP_TARGETS_TOO_CLOSE';
/**
* Unknown severity.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Warning.
*/
public const SEVERITY_WARNING = 'WARNING';
/**
* Error.
*/
public const SEVERITY_ERROR = 'ERROR';
/**
* Mobile-usability issue type.
*
* @var string
*/
public $issueType;
/**
* Additional information regarding the issue.
*
* @var string
*/
public $message;
/**
* Not returned; reserved for future use.
*
* @var string
*/
public $severity;
/**
* Mobile-usability issue type.
*
* Accepted values: MOBILE_USABILITY_ISSUE_TYPE_UNSPECIFIED,
* USES_INCOMPATIBLE_PLUGINS, CONFIGURE_VIEWPORT, FIXED_WIDTH_VIEWPORT,
* SIZE_CONTENT_TO_VIEWPORT, USE_LEGIBLE_FONT_SIZES, TAP_TARGETS_TOO_CLOSE
*
* @param self::ISSUE_TYPE_* $issueType
*/
public function setIssueType($issueType)
{
$this->issueType = $issueType;
}
/**
* @return self::ISSUE_TYPE_*
*/
public function getIssueType()
{
return $this->issueType;
}
/**
* Additional information regarding the issue.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Not returned; reserved for future use.
*
* Accepted values: SEVERITY_UNSPECIFIED, WARNING, ERROR
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileUsabilityIssue::class, 'Google_Service_SearchConsole_MobileUsabilityIssue');
@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
use Google\Service\SearchConsole\SearchAnalyticsQueryRequest;
use Google\Service\SearchConsole\SearchAnalyticsQueryResponse;
/**
* The "searchanalytics" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $searchanalytics = $searchconsoleService->searchanalytics;
* </code>
*/
class Searchanalytics extends \Google\Service\Resource
{
/**
* Query your data with filters and parameters that you define. Returns zero or
* more rows grouped by the row keys that you define. You must define a date
* range of one or more days. When date is one of the group by values, any days
* without data are omitted from the result list. If you need to know which days
* have data, issue a broad date range query grouped by date for any metric, and
* see which day rows are returned. (searchanalytics.query)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* `http://www.example.com/`.
* @param SearchAnalyticsQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchAnalyticsQueryResponse
* @throws \Google\Service\Exception
*/
public function query($siteUrl, SearchAnalyticsQueryRequest $postBody, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], SearchAnalyticsQueryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Searchanalytics::class, 'Google_Service_SearchConsole_Resource_Searchanalytics');
@@ -0,0 +1,107 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
use Google\Service\SearchConsole\SitemapsListResponse;
use Google\Service\SearchConsole\WmxSitemap;
/**
* The "sitemaps" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $sitemaps = $searchconsoleService->sitemaps;
* </code>
*/
class Sitemaps extends \Google\Service\Resource
{
/**
* Deletes a sitemap from the Sitemaps report. Does not stop Google from
* crawling this sitemap or the URLs that were previously crawled in the deleted
* sitemap. (sitemaps.delete)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* `http://www.example.com/`.
* @param string $feedpath The URL of the actual sitemap. For example:
* `http://www.example.com/sitemap.xml`.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves information about a specific sitemap. (sitemaps.get)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* `http://www.example.com/`.
* @param string $feedpath The URL of the actual sitemap. For example:
* `http://www.example.com/sitemap.xml`.
* @param array $optParams Optional parameters.
* @return WmxSitemap
* @throws \Google\Service\Exception
*/
public function get($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WmxSitemap::class);
}
/**
* Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this
* site, or included in the sitemap index file (if `sitemapIndex` is specified
* in the request). (sitemaps.listSitemaps)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* `http://www.example.com/`.
* @param array $optParams Optional parameters.
*
* @opt_param string sitemapIndex A URL of a site's sitemap index. For example:
* `http://www.example.com/sitemapindex.xml`.
* @return SitemapsListResponse
* @throws \Google\Service\Exception
*/
public function listSitemaps($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SitemapsListResponse::class);
}
/**
* Submits a sitemap for a site. (sitemaps.submit)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* `http://www.example.com/`.
* @param string $feedpath The URL of the actual sitemap. For example:
* `http://www.example.com/sitemap.xml`.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function submit($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('submit', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sitemaps::class, 'Google_Service_SearchConsole_Resource_Sitemaps');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
use Google\Service\SearchConsole\SitesListResponse;
use Google\Service\SearchConsole\WmxSite;
/**
* The "sites" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $sites = $searchconsoleService->sites;
* </code>
*/
class Sites extends \Google\Service\Resource
{
/**
* Adds a site to the set of the user's sites in Search Console. (sites.add)
*
* @param string $siteUrl The URL of the site to add.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function add($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('add', [$params]);
}
/**
* Removes a site from the set of the user's Search Console sites.
* (sites.delete)
*
* @param string $siteUrl The URI of the property as defined in Search Console.
* **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves information about specific site. (sites.get)
*
* @param string $siteUrl The URI of the property as defined in Search Console.
* **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
* @param array $optParams Optional parameters.
* @return WmxSite
* @throws \Google\Service\Exception
*/
public function get($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WmxSite::class);
}
/**
* Lists the user's Search Console sites. (sites.listSites)
*
* @param array $optParams Optional parameters.
* @return SitesListResponse
* @throws \Google\Service\Exception
*/
public function listSites($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SitesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sites::class, 'Google_Service_SearchConsole_Resource_Sites');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
/**
* The "urlInspection" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $urlInspection = $searchconsoleService->urlInspection;
* </code>
*/
class UrlInspection extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlInspection::class, 'Google_Service_SearchConsole_Resource_UrlInspection');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
use Google\Service\SearchConsole\InspectUrlIndexRequest;
use Google\Service\SearchConsole\InspectUrlIndexResponse;
/**
* The "index" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $index = $searchconsoleService->urlInspection_index;
* </code>
*/
class UrlInspectionIndex extends \Google\Service\Resource
{
/**
* Index inspection. (index.inspect)
*
* @param InspectUrlIndexRequest $postBody
* @param array $optParams Optional parameters.
* @return InspectUrlIndexResponse
* @throws \Google\Service\Exception
*/
public function inspect(InspectUrlIndexRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('inspect', [$params], InspectUrlIndexResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlInspectionIndex::class, 'Google_Service_SearchConsole_Resource_UrlInspectionIndex');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
/**
* The "urlTestingTools" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $urlTestingTools = $searchconsoleService->urlTestingTools;
* </code>
*/
class UrlTestingTools extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlTestingTools::class, 'Google_Service_SearchConsole_Resource_UrlTestingTools');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole\Resource;
use Google\Service\SearchConsole\RunMobileFriendlyTestRequest;
use Google\Service\SearchConsole\RunMobileFriendlyTestResponse;
/**
* The "mobileFriendlyTest" collection of methods.
* Typical usage is:
* <code>
* $searchconsoleService = new Google\Service\SearchConsole(...);
* $mobileFriendlyTest = $searchconsoleService->urlTestingTools_mobileFriendlyTest;
* </code>
*/
class UrlTestingToolsMobileFriendlyTest extends \Google\Service\Resource
{
/**
* Runs Mobile-Friendly Test for a given URL. (mobileFriendlyTest.run)
*
* @param RunMobileFriendlyTestRequest $postBody
* @param array $optParams Optional parameters.
* @return RunMobileFriendlyTestResponse
* @throws \Google\Service\Exception
*/
public function run(RunMobileFriendlyTestRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('run', [$params], RunMobileFriendlyTestResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlTestingToolsMobileFriendlyTest::class, 'Google_Service_SearchConsole_Resource_UrlTestingToolsMobileFriendlyTest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class ResourceIssue extends \Google\Model
{
protected $blockedResourceType = BlockedResource::class;
protected $blockedResourceDataType = '';
/**
* Describes a blocked resource issue.
*
* @param BlockedResource $blockedResource
*/
public function setBlockedResource(BlockedResource $blockedResource)
{
$this->blockedResource = $blockedResource;
}
/**
* @return BlockedResource
*/
public function getBlockedResource()
{
return $this->blockedResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceIssue::class, 'Google_Service_SearchConsole_ResourceIssue');
@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class RichResultsInspectionResult extends \Google\Collection
{
/**
* Unknown verdict.
*/
public const VERDICT_VERDICT_UNSPECIFIED = 'VERDICT_UNSPECIFIED';
/**
* Equivalent to "Valid" for the page or item in Search Console.
*/
public const VERDICT_PASS = 'PASS';
/**
* Reserved, no longer in use.
*/
public const VERDICT_PARTIAL = 'PARTIAL';
/**
* Equivalent to "Error" or "Invalid" for the page or item in Search Console.
*/
public const VERDICT_FAIL = 'FAIL';
/**
* Equivalent to "Excluded" for the page or item in Search Console.
*/
public const VERDICT_NEUTRAL = 'NEUTRAL';
protected $collection_key = 'detectedItems';
protected $detectedItemsType = DetectedItems::class;
protected $detectedItemsDataType = 'array';
/**
* High-level rich results inspection result for this URL.
*
* @var string
*/
public $verdict;
/**
* A list of zero or more rich results detected on this page. Rich results
* that cannot even be parsed due to syntactic issues will not be listed here.
*
* @param DetectedItems[] $detectedItems
*/
public function setDetectedItems($detectedItems)
{
$this->detectedItems = $detectedItems;
}
/**
* @return DetectedItems[]
*/
public function getDetectedItems()
{
return $this->detectedItems;
}
/**
* High-level rich results inspection result for this URL.
*
* Accepted values: VERDICT_UNSPECIFIED, PASS, PARTIAL, FAIL, NEUTRAL
*
* @param self::VERDICT_* $verdict
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return self::VERDICT_*
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RichResultsInspectionResult::class, 'Google_Service_SearchConsole_RichResultsInspectionResult');
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class RichResultsIssue extends \Google\Model
{
/**
* Unknown severity.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Warning.
*/
public const SEVERITY_WARNING = 'WARNING';
/**
* Error.
*/
public const SEVERITY_ERROR = 'ERROR';
/**
* Rich Results issue type.
*
* @var string
*/
public $issueMessage;
/**
* Severity of this issue: WARNING, or ERROR. Items with an issue of status
* ERROR cannot appear with rich result features in Google Search results.
*
* @var string
*/
public $severity;
/**
* Rich Results issue type.
*
* @param string $issueMessage
*/
public function setIssueMessage($issueMessage)
{
$this->issueMessage = $issueMessage;
}
/**
* @return string
*/
public function getIssueMessage()
{
return $this->issueMessage;
}
/**
* Severity of this issue: WARNING, or ERROR. Items with an issue of status
* ERROR cannot appear with rich result features in Google Search results.
*
* Accepted values: SEVERITY_UNSPECIFIED, WARNING, ERROR
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RichResultsIssue::class, 'Google_Service_SearchConsole_RichResultsIssue');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class RunMobileFriendlyTestRequest extends \Google\Model
{
/**
* Whether or not screenshot is requested. Default is false.
*
* @var bool
*/
public $requestScreenshot;
/**
* URL for inspection.
*
* @var string
*/
public $url;
/**
* Whether or not screenshot is requested. Default is false.
*
* @param bool $requestScreenshot
*/
public function setRequestScreenshot($requestScreenshot)
{
$this->requestScreenshot = $requestScreenshot;
}
/**
* @return bool
*/
public function getRequestScreenshot()
{
return $this->requestScreenshot;
}
/**
* URL for inspection.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunMobileFriendlyTestRequest::class, 'Google_Service_SearchConsole_RunMobileFriendlyTestRequest');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class RunMobileFriendlyTestResponse extends \Google\Collection
{
/**
* Internal error when running this test. Please try running the test again.
*/
public const MOBILE_FRIENDLINESS_MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED = 'MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED';
/**
* The page is mobile friendly.
*/
public const MOBILE_FRIENDLINESS_MOBILE_FRIENDLY = 'MOBILE_FRIENDLY';
/**
* The page is not mobile friendly.
*/
public const MOBILE_FRIENDLINESS_NOT_MOBILE_FRIENDLY = 'NOT_MOBILE_FRIENDLY';
protected $collection_key = 'resourceIssues';
/**
* Test verdict, whether the page is mobile friendly or not.
*
* @var string
*/
public $mobileFriendliness;
protected $mobileFriendlyIssuesType = MobileFriendlyIssue::class;
protected $mobileFriendlyIssuesDataType = 'array';
protected $resourceIssuesType = ResourceIssue::class;
protected $resourceIssuesDataType = 'array';
protected $screenshotType = Image::class;
protected $screenshotDataType = '';
protected $testStatusType = TestStatus::class;
protected $testStatusDataType = '';
/**
* Test verdict, whether the page is mobile friendly or not.
*
* Accepted values: MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED, MOBILE_FRIENDLY,
* NOT_MOBILE_FRIENDLY
*
* @param self::MOBILE_FRIENDLINESS_* $mobileFriendliness
*/
public function setMobileFriendliness($mobileFriendliness)
{
$this->mobileFriendliness = $mobileFriendliness;
}
/**
* @return self::MOBILE_FRIENDLINESS_*
*/
public function getMobileFriendliness()
{
return $this->mobileFriendliness;
}
/**
* List of mobile-usability issues.
*
* @param MobileFriendlyIssue[] $mobileFriendlyIssues
*/
public function setMobileFriendlyIssues($mobileFriendlyIssues)
{
$this->mobileFriendlyIssues = $mobileFriendlyIssues;
}
/**
* @return MobileFriendlyIssue[]
*/
public function getMobileFriendlyIssues()
{
return $this->mobileFriendlyIssues;
}
/**
* Information about embedded resources issues.
*
* @param ResourceIssue[] $resourceIssues
*/
public function setResourceIssues($resourceIssues)
{
$this->resourceIssues = $resourceIssues;
}
/**
* @return ResourceIssue[]
*/
public function getResourceIssues()
{
return $this->resourceIssues;
}
/**
* Screenshot of the requested URL.
*
* @param Image $screenshot
*/
public function setScreenshot(Image $screenshot)
{
$this->screenshot = $screenshot;
}
/**
* @return Image
*/
public function getScreenshot()
{
return $this->screenshot;
}
/**
* Final state of the test, can be either complete or an error.
*
* @param TestStatus $testStatus
*/
public function setTestStatus(TestStatus $testStatus)
{
$this->testStatus = $testStatus;
}
/**
* @return TestStatus
*/
public function getTestStatus()
{
return $this->testStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunMobileFriendlyTestResponse::class, 'Google_Service_SearchConsole_RunMobileFriendlyTestResponse');
@@ -0,0 +1,346 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class SearchAnalyticsQueryRequest extends \Google\Collection
{
public const AGGREGATION_TYPE_AUTO = 'AUTO';
public const AGGREGATION_TYPE_BY_PROPERTY = 'BY_PROPERTY';
public const AGGREGATION_TYPE_BY_PAGE = 'BY_PAGE';
public const AGGREGATION_TYPE_BY_NEWS_SHOWCASE_PANEL = 'BY_NEWS_SHOWCASE_PANEL';
/**
* Default value, should not be used.
*/
public const DATA_STATE_DATA_STATE_UNSPECIFIED = 'DATA_STATE_UNSPECIFIED';
/**
* Include full final data only, without partial.
*/
public const DATA_STATE_FINAL = 'FINAL';
/**
* Include all data, full and partial.
*/
public const DATA_STATE_ALL = 'ALL';
/**
* Include hourly data, full and partial. Required when grouping by HOUR.
*/
public const DATA_STATE_HOURLY_ALL = 'HOURLY_ALL';
public const SEARCH_TYPE_WEB = 'WEB';
public const SEARCH_TYPE_IMAGE = 'IMAGE';
public const SEARCH_TYPE_VIDEO = 'VIDEO';
/**
* News tab in search.
*/
public const SEARCH_TYPE_NEWS = 'NEWS';
/**
* Discover.
*/
public const SEARCH_TYPE_DISCOVER = 'DISCOVER';
/**
* Google News (news.google.com or mobile app).
*/
public const SEARCH_TYPE_GOOGLE_NEWS = 'GOOGLE_NEWS';
public const TYPE_WEB = 'WEB';
public const TYPE_IMAGE = 'IMAGE';
public const TYPE_VIDEO = 'VIDEO';
/**
* News tab in search.
*/
public const TYPE_NEWS = 'NEWS';
/**
* Discover.
*/
public const TYPE_DISCOVER = 'DISCOVER';
/**
* Google News (news.google.com or mobile app).
*/
public const TYPE_GOOGLE_NEWS = 'GOOGLE_NEWS';
protected $collection_key = 'dimensions';
/**
* [Optional; Default is \"auto\"] How data is aggregated. If aggregated by
* property, all data for the same property is aggregated; if aggregated by
* page, all data is aggregated by canonical URI. If you filter or group by
* page, choose AUTO; otherwise you can aggregate either by property or by
* page, depending on how you want your data calculated; see the help
* documentation to learn how data is calculated differently by site versus by
* page. **Note:** If you group or filter by page, you cannot aggregate by
* property. If you specify any value other than AUTO, the aggregation type in
* the result will match the requested type, or if you request an invalid
* type, you will get an error. The API will never change your aggregation
* type if the requested type is invalid.
*
* @var string
*/
public $aggregationType;
/**
* The data state to be fetched, can be full or all, the latter including full
* and partial data.
*
* @var string
*/
public $dataState;
protected $dimensionFilterGroupsType = ApiDimensionFilterGroup::class;
protected $dimensionFilterGroupsDataType = 'array';
/**
* [Optional] Zero or more dimensions to group results by. Dimensions are the
* group-by values in the Search Analytics page. Dimensions are combined to
* create a unique row key for each row. Results are grouped in the order that
* you supply these dimensions.
*
* @var string[]
*/
public $dimensions;
/**
* [Required] End date of the requested date range, in YYYY-MM-DD format, in
* PST (UTC - 8:00). Must be greater than or equal to the start date. This
* value is included in the range.
*
* @var string
*/
public $endDate;
/**
* [Optional; Default is 1000] The maximum number of rows to return. Must be a
* number from 1 to 25,000 (inclusive).
*
* @var int
*/
public $rowLimit;
/**
* [Optional; Default is \"web\"] The search type to filter for.
*
* @var string
*/
public $searchType;
/**
* [Required] Start date of the requested date range, in YYYY-MM-DD format, in
* PST time (UTC - 8:00). Must be less than or equal to the end date. This
* value is included in the range.
*
* @var string
*/
public $startDate;
/**
* [Optional; Default is 0] Zero-based index of the first row in the response.
* Must be a non-negative number.
*
* @var int
*/
public $startRow;
/**
* Optional. [Optional; Default is \"web\"] Type of report: search type, or
* either Discover or Gnews.
*
* @var string
*/
public $type;
/**
* [Optional; Default is \"auto\"] How data is aggregated. If aggregated by
* property, all data for the same property is aggregated; if aggregated by
* page, all data is aggregated by canonical URI. If you filter or group by
* page, choose AUTO; otherwise you can aggregate either by property or by
* page, depending on how you want your data calculated; see the help
* documentation to learn how data is calculated differently by site versus by
* page. **Note:** If you group or filter by page, you cannot aggregate by
* property. If you specify any value other than AUTO, the aggregation type in
* the result will match the requested type, or if you request an invalid
* type, you will get an error. The API will never change your aggregation
* type if the requested type is invalid.
*
* Accepted values: AUTO, BY_PROPERTY, BY_PAGE, BY_NEWS_SHOWCASE_PANEL
*
* @param self::AGGREGATION_TYPE_* $aggregationType
*/
public function setAggregationType($aggregationType)
{
$this->aggregationType = $aggregationType;
}
/**
* @return self::AGGREGATION_TYPE_*
*/
public function getAggregationType()
{
return $this->aggregationType;
}
/**
* The data state to be fetched, can be full or all, the latter including full
* and partial data.
*
* Accepted values: DATA_STATE_UNSPECIFIED, FINAL, ALL, HOURLY_ALL
*
* @param self::DATA_STATE_* $dataState
*/
public function setDataState($dataState)
{
$this->dataState = $dataState;
}
/**
* @return self::DATA_STATE_*
*/
public function getDataState()
{
return $this->dataState;
}
/**
* [Optional] Zero or more filters to apply to the dimension grouping values;
* for example, 'query contains \"buy\"' to see only data where the query
* string contains the substring \"buy\" (not case-sensitive). You can filter
* by a dimension without grouping by it.
*
* @param ApiDimensionFilterGroup[] $dimensionFilterGroups
*/
public function setDimensionFilterGroups($dimensionFilterGroups)
{
$this->dimensionFilterGroups = $dimensionFilterGroups;
}
/**
* @return ApiDimensionFilterGroup[]
*/
public function getDimensionFilterGroups()
{
return $this->dimensionFilterGroups;
}
/**
* [Optional] Zero or more dimensions to group results by. Dimensions are the
* group-by values in the Search Analytics page. Dimensions are combined to
* create a unique row key for each row. Results are grouped in the order that
* you supply these dimensions.
*
* @param string[] $dimensions
*/
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
/**
* @return string[]
*/
public function getDimensions()
{
return $this->dimensions;
}
/**
* [Required] End date of the requested date range, in YYYY-MM-DD format, in
* PST (UTC - 8:00). Must be greater than or equal to the start date. This
* value is included in the range.
*
* @param string $endDate
*/
public function setEndDate($endDate)
{
$this->endDate = $endDate;
}
/**
* @return string
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* [Optional; Default is 1000] The maximum number of rows to return. Must be a
* number from 1 to 25,000 (inclusive).
*
* @param int $rowLimit
*/
public function setRowLimit($rowLimit)
{
$this->rowLimit = $rowLimit;
}
/**
* @return int
*/
public function getRowLimit()
{
return $this->rowLimit;
}
/**
* [Optional; Default is \"web\"] The search type to filter for.
*
* Accepted values: WEB, IMAGE, VIDEO, NEWS, DISCOVER, GOOGLE_NEWS
*
* @param self::SEARCH_TYPE_* $searchType
*/
public function setSearchType($searchType)
{
$this->searchType = $searchType;
}
/**
* @return self::SEARCH_TYPE_*
*/
public function getSearchType()
{
return $this->searchType;
}
/**
* [Required] Start date of the requested date range, in YYYY-MM-DD format, in
* PST time (UTC - 8:00). Must be less than or equal to the end date. This
* value is included in the range.
*
* @param string $startDate
*/
public function setStartDate($startDate)
{
$this->startDate = $startDate;
}
/**
* @return string
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* [Optional; Default is 0] Zero-based index of the first row in the response.
* Must be a non-negative number.
*
* @param int $startRow
*/
public function setStartRow($startRow)
{
$this->startRow = $startRow;
}
/**
* @return int
*/
public function getStartRow()
{
return $this->startRow;
}
/**
* Optional. [Optional; Default is \"web\"] Type of report: search type, or
* either Discover or Gnews.
*
* Accepted values: WEB, IMAGE, VIDEO, NEWS, DISCOVER, GOOGLE_NEWS
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAnalyticsQueryRequest::class, 'Google_Service_SearchConsole_SearchAnalyticsQueryRequest');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class SearchAnalyticsQueryResponse extends \Google\Collection
{
public const RESPONSE_AGGREGATION_TYPE_AUTO = 'AUTO';
public const RESPONSE_AGGREGATION_TYPE_BY_PROPERTY = 'BY_PROPERTY';
public const RESPONSE_AGGREGATION_TYPE_BY_PAGE = 'BY_PAGE';
public const RESPONSE_AGGREGATION_TYPE_BY_NEWS_SHOWCASE_PANEL = 'BY_NEWS_SHOWCASE_PANEL';
protected $collection_key = 'rows';
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
/**
* How the results were aggregated.
*
* @var string
*/
public $responseAggregationType;
protected $rowsType = ApiDataRow::class;
protected $rowsDataType = 'array';
/**
* An object that may be returned with your query results, providing context
* about the state of the data. See details in Metadata object documentation.
*
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* How the results were aggregated.
*
* Accepted values: AUTO, BY_PROPERTY, BY_PAGE, BY_NEWS_SHOWCASE_PANEL
*
* @param self::RESPONSE_AGGREGATION_TYPE_* $responseAggregationType
*/
public function setResponseAggregationType($responseAggregationType)
{
$this->responseAggregationType = $responseAggregationType;
}
/**
* @return self::RESPONSE_AGGREGATION_TYPE_*
*/
public function getResponseAggregationType()
{
return $this->responseAggregationType;
}
/**
* A list of rows grouped by the key values in the order given in the query.
*
* @param ApiDataRow[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return ApiDataRow[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAnalyticsQueryResponse::class, 'Google_Service_SearchConsole_SearchAnalyticsQueryResponse');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class SitemapsListResponse extends \Google\Collection
{
protected $collection_key = 'sitemap';
protected $sitemapType = WmxSitemap::class;
protected $sitemapDataType = 'array';
/**
* Contains detailed information about a specific URL submitted as a
* [sitemap](https://support.google.com/webmasters/answer/156184).
*
* @param WmxSitemap[] $sitemap
*/
public function setSitemap($sitemap)
{
$this->sitemap = $sitemap;
}
/**
* @return WmxSitemap[]
*/
public function getSitemap()
{
return $this->sitemap;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SitemapsListResponse::class, 'Google_Service_SearchConsole_SitemapsListResponse');
@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class SitesListResponse extends \Google\Collection
{
protected $collection_key = 'siteEntry';
protected $siteEntryType = WmxSite::class;
protected $siteEntryDataType = 'array';
/**
* Contains permission level information about a Search Console site. For more
* information, see [Permissions in Search
* Console](https://support.google.com/webmasters/answer/2451999).
*
* @param WmxSite[] $siteEntry
*/
public function setSiteEntry($siteEntry)
{
$this->siteEntry = $siteEntry;
}
/**
* @return WmxSite[]
*/
public function getSiteEntry()
{
return $this->siteEntry;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SitesListResponse::class, 'Google_Service_SearchConsole_SitesListResponse');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class TestStatus extends \Google\Model
{
/**
* Internal error when running this test. Please try running the test again.
*/
public const STATUS_TEST_STATUS_UNSPECIFIED = 'TEST_STATUS_UNSPECIFIED';
/**
* Inspection has completed without errors.
*/
public const STATUS_COMPLETE = 'COMPLETE';
/**
* Inspection terminated in an error state. This indicates a problem in
* Google's infrastructure, not a user error. Please try again later.
*/
public const STATUS_INTERNAL_ERROR = 'INTERNAL_ERROR';
/**
* Google can not access the URL because of a user error such as a robots.txt
* blockage, a 403 or 500 code etc. Please make sure that the URL provided is
* accessible by Googlebot and is not password protected.
*/
public const STATUS_PAGE_UNREACHABLE = 'PAGE_UNREACHABLE';
/**
* Error details if applicable.
*
* @var string
*/
public $details;
/**
* Status of the test.
*
* @var string
*/
public $status;
/**
* Error details if applicable.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Status of the test.
*
* Accepted values: TEST_STATUS_UNSPECIFIED, COMPLETE, INTERNAL_ERROR,
* PAGE_UNREACHABLE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestStatus::class, 'Google_Service_SearchConsole_TestStatus');
@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class UrlInspectionResult extends \Google\Model
{
protected $ampResultType = AmpInspectionResult::class;
protected $ampResultDataType = '';
protected $indexStatusResultType = IndexStatusInspectionResult::class;
protected $indexStatusResultDataType = '';
/**
* Link to Search Console URL inspection.
*
* @var string
*/
public $inspectionResultLink;
protected $mobileUsabilityResultType = MobileUsabilityInspectionResult::class;
protected $mobileUsabilityResultDataType = '';
protected $richResultsResultType = RichResultsInspectionResult::class;
protected $richResultsResultDataType = '';
/**
* Result of the AMP analysis. Absent if the page is not an AMP page.
*
* @param AmpInspectionResult $ampResult
*/
public function setAmpResult(AmpInspectionResult $ampResult)
{
$this->ampResult = $ampResult;
}
/**
* @return AmpInspectionResult
*/
public function getAmpResult()
{
return $this->ampResult;
}
/**
* Result of the index status analysis.
*
* @param IndexStatusInspectionResult $indexStatusResult
*/
public function setIndexStatusResult(IndexStatusInspectionResult $indexStatusResult)
{
$this->indexStatusResult = $indexStatusResult;
}
/**
* @return IndexStatusInspectionResult
*/
public function getIndexStatusResult()
{
return $this->indexStatusResult;
}
/**
* Link to Search Console URL inspection.
*
* @param string $inspectionResultLink
*/
public function setInspectionResultLink($inspectionResultLink)
{
$this->inspectionResultLink = $inspectionResultLink;
}
/**
* @return string
*/
public function getInspectionResultLink()
{
return $this->inspectionResultLink;
}
/**
* Result of the Mobile usability analysis.
*
* @deprecated
* @param MobileUsabilityInspectionResult $mobileUsabilityResult
*/
public function setMobileUsabilityResult(MobileUsabilityInspectionResult $mobileUsabilityResult)
{
$this->mobileUsabilityResult = $mobileUsabilityResult;
}
/**
* @deprecated
* @return MobileUsabilityInspectionResult
*/
public function getMobileUsabilityResult()
{
return $this->mobileUsabilityResult;
}
/**
* Result of the Rich Results analysis. Absent if there are no rich results
* found.
*
* @param RichResultsInspectionResult $richResultsResult
*/
public function setRichResultsResult(RichResultsInspectionResult $richResultsResult)
{
$this->richResultsResult = $richResultsResult;
}
/**
* @return RichResultsInspectionResult
*/
public function getRichResultsResult()
{
return $this->richResultsResult;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlInspectionResult::class, 'Google_Service_SearchConsole_UrlInspectionResult');
@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class WmxSite extends \Google\Model
{
public const PERMISSION_LEVEL_SITE_PERMISSION_LEVEL_UNSPECIFIED = 'SITE_PERMISSION_LEVEL_UNSPECIFIED';
/**
* Owner has complete access to the site.
*/
public const PERMISSION_LEVEL_SITE_OWNER = 'SITE_OWNER';
/**
* Full users can access all data, and perform most of the operations.
*/
public const PERMISSION_LEVEL_SITE_FULL_USER = 'SITE_FULL_USER';
/**
* Restricted users can access most of the data, and perform some operations.
*/
public const PERMISSION_LEVEL_SITE_RESTRICTED_USER = 'SITE_RESTRICTED_USER';
/**
* Unverified user has no access to site's data.
*/
public const PERMISSION_LEVEL_SITE_UNVERIFIED_USER = 'SITE_UNVERIFIED_USER';
/**
* The user's permission level for the site.
*
* @var string
*/
public $permissionLevel;
/**
* The URL of the site.
*
* @var string
*/
public $siteUrl;
/**
* The user's permission level for the site.
*
* Accepted values: SITE_PERMISSION_LEVEL_UNSPECIFIED, SITE_OWNER,
* SITE_FULL_USER, SITE_RESTRICTED_USER, SITE_UNVERIFIED_USER
*
* @param self::PERMISSION_LEVEL_* $permissionLevel
*/
public function setPermissionLevel($permissionLevel)
{
$this->permissionLevel = $permissionLevel;
}
/**
* @return self::PERMISSION_LEVEL_*
*/
public function getPermissionLevel()
{
return $this->permissionLevel;
}
/**
* The URL of the site.
*
* @param string $siteUrl
*/
public function setSiteUrl($siteUrl)
{
$this->siteUrl = $siteUrl;
}
/**
* @return string
*/
public function getSiteUrl()
{
return $this->siteUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSite::class, 'Google_Service_SearchConsole_WmxSite');
@@ -0,0 +1,247 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class WmxSitemap extends \Google\Collection
{
public const TYPE_NOT_SITEMAP = 'NOT_SITEMAP';
public const TYPE_URL_LIST = 'URL_LIST';
public const TYPE_SITEMAP = 'SITEMAP';
public const TYPE_RSS_FEED = 'RSS_FEED';
public const TYPE_ATOM_FEED = 'ATOM_FEED';
/**
* Unsupported sitemap types.
*
* @deprecated
*/
public const TYPE_PATTERN_SITEMAP = 'PATTERN_SITEMAP';
/**
* @deprecated
*/
public const TYPE_OCEANFRONT = 'OCEANFRONT';
protected $collection_key = 'contents';
protected $contentsType = WmxSitemapContent::class;
protected $contentsDataType = 'array';
/**
* Number of errors in the sitemap. These are issues with the sitemap itself
* that need to be fixed before it can be processed correctly.
*
* @var string
*/
public $errors;
/**
* If true, the sitemap has not been processed.
*
* @var bool
*/
public $isPending;
/**
* If true, the sitemap is a collection of sitemaps.
*
* @var bool
*/
public $isSitemapsIndex;
/**
* Date & time in which this sitemap was last downloaded. Date format is in
* RFC 3339 format (yyyy-mm-dd).
*
* @var string
*/
public $lastDownloaded;
/**
* Date & time in which this sitemap was submitted. Date format is in RFC 3339
* format (yyyy-mm-dd).
*
* @var string
*/
public $lastSubmitted;
/**
* The url of the sitemap.
*
* @var string
*/
public $path;
/**
* The type of the sitemap. For example: `rssFeed`.
*
* @var string
*/
public $type;
/**
* Number of warnings for the sitemap. These are generally non-critical issues
* with URLs in the sitemaps.
*
* @var string
*/
public $warnings;
/**
* The various content types in the sitemap.
*
* @param WmxSitemapContent[] $contents
*/
public function setContents($contents)
{
$this->contents = $contents;
}
/**
* @return WmxSitemapContent[]
*/
public function getContents()
{
return $this->contents;
}
/**
* Number of errors in the sitemap. These are issues with the sitemap itself
* that need to be fixed before it can be processed correctly.
*
* @param string $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return string
*/
public function getErrors()
{
return $this->errors;
}
/**
* If true, the sitemap has not been processed.
*
* @param bool $isPending
*/
public function setIsPending($isPending)
{
$this->isPending = $isPending;
}
/**
* @return bool
*/
public function getIsPending()
{
return $this->isPending;
}
/**
* If true, the sitemap is a collection of sitemaps.
*
* @param bool $isSitemapsIndex
*/
public function setIsSitemapsIndex($isSitemapsIndex)
{
$this->isSitemapsIndex = $isSitemapsIndex;
}
/**
* @return bool
*/
public function getIsSitemapsIndex()
{
return $this->isSitemapsIndex;
}
/**
* Date & time in which this sitemap was last downloaded. Date format is in
* RFC 3339 format (yyyy-mm-dd).
*
* @param string $lastDownloaded
*/
public function setLastDownloaded($lastDownloaded)
{
$this->lastDownloaded = $lastDownloaded;
}
/**
* @return string
*/
public function getLastDownloaded()
{
return $this->lastDownloaded;
}
/**
* Date & time in which this sitemap was submitted. Date format is in RFC 3339
* format (yyyy-mm-dd).
*
* @param string $lastSubmitted
*/
public function setLastSubmitted($lastSubmitted)
{
$this->lastSubmitted = $lastSubmitted;
}
/**
* @return string
*/
public function getLastSubmitted()
{
return $this->lastSubmitted;
}
/**
* The url of the sitemap.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* The type of the sitemap. For example: `rssFeed`.
*
* Accepted values: NOT_SITEMAP, URL_LIST, SITEMAP, RSS_FEED, ATOM_FEED,
* PATTERN_SITEMAP, OCEANFRONT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Number of warnings for the sitemap. These are generally non-critical issues
* with URLs in the sitemaps.
*
* @param string $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSitemap::class, 'Google_Service_SearchConsole_WmxSitemap');
@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SearchConsole;
class WmxSitemapContent extends \Google\Model
{
public const TYPE_WEB = 'WEB';
public const TYPE_IMAGE = 'IMAGE';
public const TYPE_VIDEO = 'VIDEO';
public const TYPE_NEWS = 'NEWS';
public const TYPE_MOBILE = 'MOBILE';
public const TYPE_ANDROID_APP = 'ANDROID_APP';
/**
* Unsupported content type.
*
* @deprecated
*/
public const TYPE_PATTERN = 'PATTERN';
public const TYPE_IOS_APP = 'IOS_APP';
/**
* Unsupported content type.
*
* @deprecated
*/
public const TYPE_DATA_FEED_ELEMENT = 'DATA_FEED_ELEMENT';
/**
* *Deprecated; do not use.*
*
* @deprecated
* @var string
*/
public $indexed;
/**
* The number of URLs in the sitemap (of the content type).
*
* @var string
*/
public $submitted;
/**
* The specific type of content in this sitemap. For example: `web`.
*
* @var string
*/
public $type;
/**
* *Deprecated; do not use.*
*
* @deprecated
* @param string $indexed
*/
public function setIndexed($indexed)
{
$this->indexed = $indexed;
}
/**
* @deprecated
* @return string
*/
public function getIndexed()
{
return $this->indexed;
}
/**
* The number of URLs in the sitemap (of the content type).
*
* @param string $submitted
*/
public function setSubmitted($submitted)
{
$this->submitted = $submitted;
}
/**
* @return string
*/
public function getSubmitted()
{
return $this->submitted;
}
/**
* The specific type of content in this sitemap. For example: `web`.
*
* Accepted values: WEB, IMAGE, VIDEO, NEWS, MOBILE, ANDROID_APP, PATTERN,
* IOS_APP, DATA_FEED_ELEMENT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSitemapContent::class, 'Google_Service_SearchConsole_WmxSitemapContent');