Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,129 @@
<?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\PagespeedInsights;
class AuditRefs extends \Google\Collection
{
protected $collection_key = 'relevantAudits';
/**
* The conventional acronym for the audit/metric.
*
* @var string
*/
public $acronym;
/**
* The category group that the audit belongs to (optional).
*
* @var string
*/
public $group;
/**
* The audit ref id.
*
* @var string
*/
public $id;
/**
* Any audit IDs closely relevant to this one.
*
* @var string[]
*/
public $relevantAudits;
/**
* The weight this audit's score has on the overall category score.
*
* @var
*/
public $weight;
/**
* The conventional acronym for the audit/metric.
*
* @param string $acronym
*/
public function setAcronym($acronym)
{
$this->acronym = $acronym;
}
/**
* @return string
*/
public function getAcronym()
{
return $this->acronym;
}
/**
* The category group that the audit belongs to (optional).
*
* @param string $group
*/
public function setGroup($group)
{
$this->group = $group;
}
/**
* @return string
*/
public function getGroup()
{
return $this->group;
}
/**
* The audit ref id.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Any audit IDs closely relevant to this one.
*
* @param string[] $relevantAudits
*/
public function setRelevantAudits($relevantAudits)
{
$this->relevantAudits = $relevantAudits;
}
/**
* @return string[]
*/
public function getRelevantAudits()
{
return $this->relevantAudits;
}
public function setWeight($weight)
{
$this->weight = $weight;
}
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditRefs::class, 'Google_Service_PagespeedInsights_AuditRefs');

View File

@@ -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\PagespeedInsights;
class Bucket extends \Google\Model
{
/**
* Upper bound for a bucket's range.
*
* @var int
*/
public $max;
/**
* Lower bound for a bucket's range.
*
* @var int
*/
public $min;
/**
* The proportion of data in this bucket.
*
* @var
*/
public $proportion;
/**
* Upper bound for a bucket's range.
*
* @param int $max
*/
public function setMax($max)
{
$this->max = $max;
}
/**
* @return int
*/
public function getMax()
{
return $this->max;
}
/**
* Lower bound for a bucket's range.
*
* @param int $min
*/
public function setMin($min)
{
$this->min = $min;
}
/**
* @return int
*/
public function getMin()
{
return $this->min;
}
public function setProportion($proportion)
{
$this->proportion = $proportion;
}
public function getProportion()
{
return $this->proportion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bucket::class, 'Google_Service_PagespeedInsights_Bucket');

View File

@@ -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\PagespeedInsights;
class Categories extends \Google\Model
{
protected $internal_gapi_mappings = [
"bestPractices" => "best-practices",
];
protected $accessibilityType = LighthouseCategoryV5::class;
protected $accessibilityDataType = '';
protected $bestPracticesType = LighthouseCategoryV5::class;
protected $bestPracticesDataType = '';
protected $performanceType = LighthouseCategoryV5::class;
protected $performanceDataType = '';
protected $pwaType = LighthouseCategoryV5::class;
protected $pwaDataType = '';
protected $seoType = LighthouseCategoryV5::class;
protected $seoDataType = '';
/**
* The accessibility category, containing all accessibility related audits.
*
* @param LighthouseCategoryV5 $accessibility
*/
public function setAccessibility(LighthouseCategoryV5 $accessibility)
{
$this->accessibility = $accessibility;
}
/**
* @return LighthouseCategoryV5
*/
public function getAccessibility()
{
return $this->accessibility;
}
/**
* The best practices category, containing all best practices related audits.
*
* @param LighthouseCategoryV5 $bestPractices
*/
public function setBestPractices(LighthouseCategoryV5 $bestPractices)
{
$this->bestPractices = $bestPractices;
}
/**
* @return LighthouseCategoryV5
*/
public function getBestPractices()
{
return $this->bestPractices;
}
/**
* The performance category, containing all performance related audits.
*
* @param LighthouseCategoryV5 $performance
*/
public function setPerformance(LighthouseCategoryV5 $performance)
{
$this->performance = $performance;
}
/**
* @return LighthouseCategoryV5
*/
public function getPerformance()
{
return $this->performance;
}
/**
* The Progressive-Web-App (PWA) category, containing all pwa related audits.
* This is deprecated in Lighthouse's 12.0 release.
*
* @deprecated
* @param LighthouseCategoryV5 $pwa
*/
public function setPwa(LighthouseCategoryV5 $pwa)
{
$this->pwa = $pwa;
}
/**
* @deprecated
* @return LighthouseCategoryV5
*/
public function getPwa()
{
return $this->pwa;
}
/**
* The Search-Engine-Optimization (SEO) category, containing all seo related
* audits.
*
* @param LighthouseCategoryV5 $seo
*/
public function setSeo(LighthouseCategoryV5 $seo)
{
$this->seo = $seo;
}
/**
* @return LighthouseCategoryV5
*/
public function getSeo()
{
return $this->seo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Categories::class, 'Google_Service_PagespeedInsights_Categories');

View File

@@ -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\PagespeedInsights;
class CategoryGroupV5 extends \Google\Model
{
/**
* The description of what the category is grouping
*
* @var string
*/
public $description;
/**
* The human readable title of the group
*
* @var string
*/
public $title;
/**
* The description of what the category is grouping
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The human readable title of the group
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CategoryGroupV5::class, 'Google_Service_PagespeedInsights_CategoryGroupV5');

View File

@@ -0,0 +1,145 @@
<?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\PagespeedInsights;
class ConfigSettings extends \Google\Model
{
/**
* How Lighthouse was run, e.g. from the Chrome extension or from the npm
* module.
*
* @var string
*/
public $channel;
/**
* The form factor the emulation should use. This field is deprecated,
* form_factor should be used instead.
*
* @deprecated
* @var string
*/
public $emulatedFormFactor;
/**
* How Lighthouse should interpret this run in regards to scoring performance
* metrics and skipping mobile-only tests in desktop.
*
* @var string
*/
public $formFactor;
/**
* The locale setting.
*
* @var string
*/
public $locale;
/**
* List of categories of audits the run should conduct.
*
* @var array
*/
public $onlyCategories;
/**
* How Lighthouse was run, e.g. from the Chrome extension or from the npm
* module.
*
* @param string $channel
*/
public function setChannel($channel)
{
$this->channel = $channel;
}
/**
* @return string
*/
public function getChannel()
{
return $this->channel;
}
/**
* The form factor the emulation should use. This field is deprecated,
* form_factor should be used instead.
*
* @deprecated
* @param string $emulatedFormFactor
*/
public function setEmulatedFormFactor($emulatedFormFactor)
{
$this->emulatedFormFactor = $emulatedFormFactor;
}
/**
* @deprecated
* @return string
*/
public function getEmulatedFormFactor()
{
return $this->emulatedFormFactor;
}
/**
* How Lighthouse should interpret this run in regards to scoring performance
* metrics and skipping mobile-only tests in desktop.
*
* @param string $formFactor
*/
public function setFormFactor($formFactor)
{
$this->formFactor = $formFactor;
}
/**
* @return string
*/
public function getFormFactor()
{
return $this->formFactor;
}
/**
* The locale setting.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* List of categories of audits the run should conduct.
*
* @param array $onlyCategories
*/
public function setOnlyCategories($onlyCategories)
{
$this->onlyCategories = $onlyCategories;
}
/**
* @return array
*/
public function getOnlyCategories()
{
return $this->onlyCategories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigSettings::class, 'Google_Service_PagespeedInsights_ConfigSettings');

View File

@@ -0,0 +1,108 @@
<?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\PagespeedInsights;
class Environment extends \Google\Model
{
/**
* The benchmark index number that indicates rough device class.
*
* @var
*/
public $benchmarkIndex;
/**
* The version of libraries with which these results were generated. Ex: axe-
* core.
*
* @var string[]
*/
public $credits;
/**
* The user agent string of the version of Chrome used.
*
* @var string
*/
public $hostUserAgent;
/**
* The user agent string that was sent over the network.
*
* @var string
*/
public $networkUserAgent;
public function setBenchmarkIndex($benchmarkIndex)
{
$this->benchmarkIndex = $benchmarkIndex;
}
public function getBenchmarkIndex()
{
return $this->benchmarkIndex;
}
/**
* The version of libraries with which these results were generated. Ex: axe-
* core.
*
* @param string[] $credits
*/
public function setCredits($credits)
{
$this->credits = $credits;
}
/**
* @return string[]
*/
public function getCredits()
{
return $this->credits;
}
/**
* The user agent string of the version of Chrome used.
*
* @param string $hostUserAgent
*/
public function setHostUserAgent($hostUserAgent)
{
$this->hostUserAgent = $hostUserAgent;
}
/**
* @return string
*/
public function getHostUserAgent()
{
return $this->hostUserAgent;
}
/**
* The user agent string that was sent over the network.
*
* @param string $networkUserAgent
*/
public function setNetworkUserAgent($networkUserAgent)
{
$this->networkUserAgent = $networkUserAgent;
}
/**
* @return string
*/
public function getNetworkUserAgent()
{
return $this->networkUserAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Environment::class, 'Google_Service_PagespeedInsights_Environment');

View File

@@ -0,0 +1,45 @@
<?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\PagespeedInsights;
class I18n extends \Google\Model
{
protected $rendererFormattedStringsType = RendererFormattedStrings::class;
protected $rendererFormattedStringsDataType = '';
/**
* Internationalized strings that are formatted to the locale in
* configSettings.
*
* @param RendererFormattedStrings $rendererFormattedStrings
*/
public function setRendererFormattedStrings(RendererFormattedStrings $rendererFormattedStrings)
{
$this->rendererFormattedStrings = $rendererFormattedStrings;
}
/**
* @return RendererFormattedStrings
*/
public function getRendererFormattedStrings()
{
return $this->rendererFormattedStrings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(I18n::class, 'Google_Service_PagespeedInsights_I18n');

View File

@@ -0,0 +1,159 @@
<?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\PagespeedInsights;
class LhrEntity extends \Google\Collection
{
protected $collection_key = 'origins';
/**
* Optional. An optional category name for the entity.
*
* @var string
*/
public $category;
/**
* Optional. An optional homepage URL of the entity.
*
* @var string
*/
public $homepage;
/**
* Optional. An optional flag indicating if the entity is the first party.
*
* @var bool
*/
public $isFirstParty;
/**
* Optional. An optional flag indicating if the entity is not recognized.
*
* @var bool
*/
public $isUnrecognized;
/**
* Required. Name of the entity.
*
* @var string
*/
public $name;
/**
* Required. A list of URL origin strings that belong to this entity.
*
* @var string[]
*/
public $origins;
/**
* Optional. An optional category name for the entity.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Optional. An optional homepage URL of the entity.
*
* @param string $homepage
*/
public function setHomepage($homepage)
{
$this->homepage = $homepage;
}
/**
* @return string
*/
public function getHomepage()
{
return $this->homepage;
}
/**
* Optional. An optional flag indicating if the entity is the first party.
*
* @param bool $isFirstParty
*/
public function setIsFirstParty($isFirstParty)
{
$this->isFirstParty = $isFirstParty;
}
/**
* @return bool
*/
public function getIsFirstParty()
{
return $this->isFirstParty;
}
/**
* Optional. An optional flag indicating if the entity is not recognized.
*
* @param bool $isUnrecognized
*/
public function setIsUnrecognized($isUnrecognized)
{
$this->isUnrecognized = $isUnrecognized;
}
/**
* @return bool
*/
public function getIsUnrecognized()
{
return $this->isUnrecognized;
}
/**
* Required. Name of the entity.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. A list of URL origin strings that belong to this entity.
*
* @param string[] $origins
*/
public function setOrigins($origins)
{
$this->origins = $origins;
}
/**
* @return string[]
*/
public function getOrigins()
{
return $this->origins;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LhrEntity::class, 'Google_Service_PagespeedInsights_LhrEntity');

View File

@@ -0,0 +1,304 @@
<?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\PagespeedInsights;
class LighthouseAuditResultV5 extends \Google\Model
{
/**
* The description of the audit.
*
* @var string
*/
public $description;
/**
* Freeform details section of the audit.
*
* @var array[]
*/
public $details;
/**
* The value that should be displayed on the UI for this audit.
*
* @var string
*/
public $displayValue;
/**
* An error message from a thrown error inside the audit.
*
* @var string
*/
public $errorMessage;
/**
* An explanation of the errors in the audit.
*
* @var string
*/
public $explanation;
/**
* The audit's id.
*
* @var string
*/
public $id;
protected $metricSavingsType = MetricSavings::class;
protected $metricSavingsDataType = '';
/**
* The unit of the numeric_value field. Used to format the numeric value for
* display.
*
* @var string
*/
public $numericUnit;
/**
* A numeric value that has a meaning specific to the audit, e.g. the number
* of nodes in the DOM or the timestamp of a specific load event. More
* information can be found in the audit details, if present.
*
* @var
*/
public $numericValue;
/**
* The score of the audit, can be null.
*
* @var array
*/
public $score;
/**
* The enumerated score display mode.
*
* @var string
*/
public $scoreDisplayMode;
/**
* The human readable title.
*
* @var string
*/
public $title;
/**
* Possible warnings that occurred in the audit, can be null.
*
* @var array
*/
public $warnings;
/**
* The description of the audit.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Freeform details section of the audit.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* The value that should be displayed on the UI for this audit.
*
* @param string $displayValue
*/
public function setDisplayValue($displayValue)
{
$this->displayValue = $displayValue;
}
/**
* @return string
*/
public function getDisplayValue()
{
return $this->displayValue;
}
/**
* An error message from a thrown error inside the audit.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* An explanation of the errors in the audit.
*
* @param string $explanation
*/
public function setExplanation($explanation)
{
$this->explanation = $explanation;
}
/**
* @return string
*/
public function getExplanation()
{
return $this->explanation;
}
/**
* The audit's id.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The metric savings of the audit.
*
* @param MetricSavings $metricSavings
*/
public function setMetricSavings(MetricSavings $metricSavings)
{
$this->metricSavings = $metricSavings;
}
/**
* @return MetricSavings
*/
public function getMetricSavings()
{
return $this->metricSavings;
}
/**
* The unit of the numeric_value field. Used to format the numeric value for
* display.
*
* @param string $numericUnit
*/
public function setNumericUnit($numericUnit)
{
$this->numericUnit = $numericUnit;
}
/**
* @return string
*/
public function getNumericUnit()
{
return $this->numericUnit;
}
public function setNumericValue($numericValue)
{
$this->numericValue = $numericValue;
}
public function getNumericValue()
{
return $this->numericValue;
}
/**
* The score of the audit, can be null.
*
* @param array $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return array
*/
public function getScore()
{
return $this->score;
}
/**
* The enumerated score display mode.
*
* @param string $scoreDisplayMode
*/
public function setScoreDisplayMode($scoreDisplayMode)
{
$this->scoreDisplayMode = $scoreDisplayMode;
}
/**
* @return string
*/
public function getScoreDisplayMode()
{
return $this->scoreDisplayMode;
}
/**
* The human readable title.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Possible warnings that occurred in the audit, can be null.
*
* @param array $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return array
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LighthouseAuditResultV5::class, 'Google_Service_PagespeedInsights_LighthouseAuditResultV5');

View File

@@ -0,0 +1,157 @@
<?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\PagespeedInsights;
class LighthouseCategoryV5 extends \Google\Collection
{
protected $collection_key = 'auditRefs';
protected $auditRefsType = AuditRefs::class;
protected $auditRefsDataType = 'array';
/**
* A more detailed description of the category and its importance.
*
* @var string
*/
public $description;
/**
* The string identifier of the category.
*
* @var string
*/
public $id;
/**
* A description for the manual audits in the category.
*
* @var string
*/
public $manualDescription;
/**
* The overall score of the category, the weighted average of all its audits.
* (The category's score, can be null.)
*
* @var array
*/
public $score;
/**
* The human-friendly name of the category.
*
* @var string
*/
public $title;
/**
* An array of references to all the audit members of this category.
*
* @param AuditRefs[] $auditRefs
*/
public function setAuditRefs($auditRefs)
{
$this->auditRefs = $auditRefs;
}
/**
* @return AuditRefs[]
*/
public function getAuditRefs()
{
return $this->auditRefs;
}
/**
* A more detailed description of the category and its importance.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The string identifier of the category.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A description for the manual audits in the category.
*
* @param string $manualDescription
*/
public function setManualDescription($manualDescription)
{
$this->manualDescription = $manualDescription;
}
/**
* @return string
*/
public function getManualDescription()
{
return $this->manualDescription;
}
/**
* The overall score of the category, the weighted average of all its audits.
* (The category's score, can be null.)
*
* @param array $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return array
*/
public function getScore()
{
return $this->score;
}
/**
* The human-friendly name of the category.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LighthouseCategoryV5::class, 'Google_Service_PagespeedInsights_LighthouseCategoryV5');

View File

@@ -0,0 +1,408 @@
<?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\PagespeedInsights;
class LighthouseResultV5 extends \Google\Collection
{
protected $collection_key = 'stackPacks';
protected $auditsType = LighthouseAuditResultV5::class;
protected $auditsDataType = 'map';
protected $categoriesType = Categories::class;
protected $categoriesDataType = '';
protected $categoryGroupsType = CategoryGroupV5::class;
protected $categoryGroupsDataType = 'map';
protected $configSettingsType = ConfigSettings::class;
protected $configSettingsDataType = '';
protected $entitiesType = LhrEntity::class;
protected $entitiesDataType = 'array';
protected $environmentType = Environment::class;
protected $environmentDataType = '';
/**
* The time that this run was fetched.
*
* @var string
*/
public $fetchTime;
/**
* URL displayed on the page after Lighthouse finishes.
*
* @var string
*/
public $finalDisplayedUrl;
/**
* The final resolved url that was audited.
*
* @var string
*/
public $finalUrl;
/**
* Screenshot data of the full page, along with node rects relevant to the
* audit results.
*
* @var array
*/
public $fullPageScreenshot;
protected $i18nType = I18n::class;
protected $i18nDataType = '';
/**
* The lighthouse version that was used to generate this LHR.
*
* @var string
*/
public $lighthouseVersion;
/**
* URL of the main document request of the final navigation.
*
* @var string
*/
public $mainDocumentUrl;
/**
* The original requested url.
*
* @var string
*/
public $requestedUrl;
/**
* List of all run warnings in the LHR. Will always output to at least `[]`.
*
* @var array[]
*/
public $runWarnings;
protected $runtimeErrorType = RuntimeError::class;
protected $runtimeErrorDataType = '';
protected $stackPacksType = StackPack::class;
protected $stackPacksDataType = 'array';
protected $timingType = Timing::class;
protected $timingDataType = '';
/**
* The user agent that was used to run this LHR.
*
* @var string
*/
public $userAgent;
/**
* Map of audits in the LHR.
*
* @param LighthouseAuditResultV5[] $audits
*/
public function setAudits($audits)
{
$this->audits = $audits;
}
/**
* @return LighthouseAuditResultV5[]
*/
public function getAudits()
{
return $this->audits;
}
/**
* Map of categories in the LHR.
*
* @param Categories $categories
*/
public function setCategories(Categories $categories)
{
$this->categories = $categories;
}
/**
* @return Categories
*/
public function getCategories()
{
return $this->categories;
}
/**
* Map of category groups in the LHR.
*
* @param CategoryGroupV5[] $categoryGroups
*/
public function setCategoryGroups($categoryGroups)
{
$this->categoryGroups = $categoryGroups;
}
/**
* @return CategoryGroupV5[]
*/
public function getCategoryGroups()
{
return $this->categoryGroups;
}
/**
* The configuration settings for this LHR.
*
* @param ConfigSettings $configSettings
*/
public function setConfigSettings(ConfigSettings $configSettings)
{
$this->configSettings = $configSettings;
}
/**
* @return ConfigSettings
*/
public function getConfigSettings()
{
return $this->configSettings;
}
/**
* Entity classification data.
*
* @param LhrEntity[] $entities
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return LhrEntity[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* Environment settings that were used when making this LHR.
*
* @param Environment $environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* The time that this run was fetched.
*
* @param string $fetchTime
*/
public function setFetchTime($fetchTime)
{
$this->fetchTime = $fetchTime;
}
/**
* @return string
*/
public function getFetchTime()
{
return $this->fetchTime;
}
/**
* URL displayed on the page after Lighthouse finishes.
*
* @param string $finalDisplayedUrl
*/
public function setFinalDisplayedUrl($finalDisplayedUrl)
{
$this->finalDisplayedUrl = $finalDisplayedUrl;
}
/**
* @return string
*/
public function getFinalDisplayedUrl()
{
return $this->finalDisplayedUrl;
}
/**
* The final resolved url that was audited.
*
* @param string $finalUrl
*/
public function setFinalUrl($finalUrl)
{
$this->finalUrl = $finalUrl;
}
/**
* @return string
*/
public function getFinalUrl()
{
return $this->finalUrl;
}
/**
* Screenshot data of the full page, along with node rects relevant to the
* audit results.
*
* @param array $fullPageScreenshot
*/
public function setFullPageScreenshot($fullPageScreenshot)
{
$this->fullPageScreenshot = $fullPageScreenshot;
}
/**
* @return array
*/
public function getFullPageScreenshot()
{
return $this->fullPageScreenshot;
}
/**
* The internationalization strings that are required to render the LHR.
*
* @param I18n $i18n
*/
public function setI18n(I18n $i18n)
{
$this->i18n = $i18n;
}
/**
* @return I18n
*/
public function getI18n()
{
return $this->i18n;
}
/**
* The lighthouse version that was used to generate this LHR.
*
* @param string $lighthouseVersion
*/
public function setLighthouseVersion($lighthouseVersion)
{
$this->lighthouseVersion = $lighthouseVersion;
}
/**
* @return string
*/
public function getLighthouseVersion()
{
return $this->lighthouseVersion;
}
/**
* URL of the main document request of the final navigation.
*
* @param string $mainDocumentUrl
*/
public function setMainDocumentUrl($mainDocumentUrl)
{
$this->mainDocumentUrl = $mainDocumentUrl;
}
/**
* @return string
*/
public function getMainDocumentUrl()
{
return $this->mainDocumentUrl;
}
/**
* The original requested url.
*
* @param string $requestedUrl
*/
public function setRequestedUrl($requestedUrl)
{
$this->requestedUrl = $requestedUrl;
}
/**
* @return string
*/
public function getRequestedUrl()
{
return $this->requestedUrl;
}
/**
* List of all run warnings in the LHR. Will always output to at least `[]`.
*
* @param array[] $runWarnings
*/
public function setRunWarnings($runWarnings)
{
$this->runWarnings = $runWarnings;
}
/**
* @return array[]
*/
public function getRunWarnings()
{
return $this->runWarnings;
}
/**
* A top-level error message that, if present, indicates a serious enough
* problem that this Lighthouse result may need to be discarded.
*
* @param RuntimeError $runtimeError
*/
public function setRuntimeError(RuntimeError $runtimeError)
{
$this->runtimeError = $runtimeError;
}
/**
* @return RuntimeError
*/
public function getRuntimeError()
{
return $this->runtimeError;
}
/**
* The Stack Pack advice strings.
*
* @param StackPack[] $stackPacks
*/
public function setStackPacks($stackPacks)
{
$this->stackPacks = $stackPacks;
}
/**
* @return StackPack[]
*/
public function getStackPacks()
{
return $this->stackPacks;
}
/**
* Timing information for this LHR.
*
* @param Timing $timing
*/
public function setTiming(Timing $timing)
{
$this->timing = $timing;
}
/**
* @return Timing
*/
public function getTiming()
{
return $this->timing;
}
/**
* The user agent that was used to run this LHR.
*
* @param string $userAgent
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LighthouseResultV5::class, 'Google_Service_PagespeedInsights_LighthouseResultV5');

View File

@@ -0,0 +1,108 @@
<?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\PagespeedInsights;
class MetricSavings extends \Google\Model
{
protected $internal_gapi_mappings = [
"cLS" => "CLS",
"fCP" => "FCP",
"iNP" => "INP",
"lCP" => "LCP",
"tBT" => "TBT",
];
/**
* Optional. Optional numeric value representing the audit's savings for the
* CLS metric.
*
* @var
*/
public $cLS;
/**
* Optional. Optional numeric value representing the audit's savings for the
* FCP metric.
*
* @var
*/
public $fCP;
/**
* Optional. Optional numeric value representing the audit's savings for the
* INP metric.
*
* @var
*/
public $iNP;
/**
* Optional. Optional numeric value representing the audit's savings for the
* LCP metric.
*
* @var
*/
public $lCP;
/**
* Optional. Optional numeric value representing the audit's savings for the
* TBT metric.
*
* @var
*/
public $tBT;
public function setCLS($cLS)
{
$this->cLS = $cLS;
}
public function getCLS()
{
return $this->cLS;
}
public function setFCP($fCP)
{
$this->fCP = $fCP;
}
public function getFCP()
{
return $this->fCP;
}
public function setINP($iNP)
{
$this->iNP = $iNP;
}
public function getINP()
{
return $this->iNP;
}
public function setLCP($lCP)
{
$this->lCP = $lCP;
}
public function getLCP()
{
return $this->lCP;
}
public function setTBT($tBT)
{
$this->tBT = $tBT;
}
public function getTBT()
{
return $this->tBT;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricSavings::class, 'Google_Service_PagespeedInsights_MetricSavings');

View File

@@ -0,0 +1,137 @@
<?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\PagespeedInsights;
class PagespeedApiLoadingExperienceV5 extends \Google\Model
{
protected $internal_gapi_mappings = [
"initialUrl" => "initial_url",
"originFallback" => "origin_fallback",
"overallCategory" => "overall_category",
];
/**
* The url, pattern or origin which the metrics are on.
*
* @var string
*/
public $id;
/**
* The requested URL, which may differ from the resolved "id".
*
* @var string
*/
public $initialUrl;
protected $metricsType = UserPageLoadMetricV5::class;
protected $metricsDataType = 'map';
/**
* True if the result is an origin fallback from a page, false otherwise.
*
* @var bool
*/
public $originFallback;
/**
* The human readable speed "category" of the id.
*
* @var string
*/
public $overallCategory;
/**
* The url, pattern or origin which the metrics are on.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The requested URL, which may differ from the resolved "id".
*
* @param string $initialUrl
*/
public function setInitialUrl($initialUrl)
{
$this->initialUrl = $initialUrl;
}
/**
* @return string
*/
public function getInitialUrl()
{
return $this->initialUrl;
}
/**
* The map of .
*
* @param UserPageLoadMetricV5[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return UserPageLoadMetricV5[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* True if the result is an origin fallback from a page, false otherwise.
*
* @param bool $originFallback
*/
public function setOriginFallback($originFallback)
{
$this->originFallback = $originFallback;
}
/**
* @return bool
*/
public function getOriginFallback()
{
return $this->originFallback;
}
/**
* The human readable speed "category" of the id.
*
* @param string $overallCategory
*/
public function setOverallCategory($overallCategory)
{
$this->overallCategory = $overallCategory;
}
/**
* @return string
*/
public function getOverallCategory()
{
return $this->overallCategory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PagespeedApiLoadingExperienceV5::class, 'Google_Service_PagespeedInsights_PagespeedApiLoadingExperienceV5');

View File

@@ -0,0 +1,188 @@
<?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\PagespeedInsights;
class PagespeedApiPagespeedResponseV5 extends \Google\Model
{
/**
* The UTC timestamp of this analysis.
*
* @var string
*/
public $analysisUTCTimestamp;
/**
* The captcha verify result
*
* @var string
*/
public $captchaResult;
/**
* Canonicalized and final URL for the document, after following page
* redirects (if any).
*
* @var string
*/
public $id;
/**
* Kind of result.
*
* @var string
*/
public $kind;
protected $lighthouseResultType = LighthouseResultV5::class;
protected $lighthouseResultDataType = '';
protected $loadingExperienceType = PagespeedApiLoadingExperienceV5::class;
protected $loadingExperienceDataType = '';
protected $originLoadingExperienceType = PagespeedApiLoadingExperienceV5::class;
protected $originLoadingExperienceDataType = '';
protected $versionType = PagespeedVersion::class;
protected $versionDataType = '';
/**
* The UTC timestamp of this analysis.
*
* @param string $analysisUTCTimestamp
*/
public function setAnalysisUTCTimestamp($analysisUTCTimestamp)
{
$this->analysisUTCTimestamp = $analysisUTCTimestamp;
}
/**
* @return string
*/
public function getAnalysisUTCTimestamp()
{
return $this->analysisUTCTimestamp;
}
/**
* The captcha verify result
*
* @param string $captchaResult
*/
public function setCaptchaResult($captchaResult)
{
$this->captchaResult = $captchaResult;
}
/**
* @return string
*/
public function getCaptchaResult()
{
return $this->captchaResult;
}
/**
* Canonicalized and final URL for the document, after following page
* redirects (if any).
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Kind of result.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Lighthouse response for the audit url as an object.
*
* @param LighthouseResultV5 $lighthouseResult
*/
public function setLighthouseResult(LighthouseResultV5 $lighthouseResult)
{
$this->lighthouseResult = $lighthouseResult;
}
/**
* @return LighthouseResultV5
*/
public function getLighthouseResult()
{
return $this->lighthouseResult;
}
/**
* Metrics of end users' page loading experience.
*
* @param PagespeedApiLoadingExperienceV5 $loadingExperience
*/
public function setLoadingExperience(PagespeedApiLoadingExperienceV5 $loadingExperience)
{
$this->loadingExperience = $loadingExperience;
}
/**
* @return PagespeedApiLoadingExperienceV5
*/
public function getLoadingExperience()
{
return $this->loadingExperience;
}
/**
* Metrics of the aggregated page loading experience of the origin
*
* @param PagespeedApiLoadingExperienceV5 $originLoadingExperience
*/
public function setOriginLoadingExperience(PagespeedApiLoadingExperienceV5 $originLoadingExperience)
{
$this->originLoadingExperience = $originLoadingExperience;
}
/**
* @return PagespeedApiLoadingExperienceV5
*/
public function getOriginLoadingExperience()
{
return $this->originLoadingExperience;
}
/**
* The version of PageSpeed used to generate these results.
*
* @param PagespeedVersion $version
*/
public function setVersion(PagespeedVersion $version)
{
$this->version = $version;
}
/**
* @return PagespeedVersion
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PagespeedApiPagespeedResponseV5::class, 'Google_Service_PagespeedInsights_PagespeedApiPagespeedResponseV5');

View File

@@ -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\PagespeedInsights;
class PagespeedVersion extends \Google\Model
{
/**
* The major version number of PageSpeed used to generate these results.
*
* @var string
*/
public $major;
/**
* The minor version number of PageSpeed used to generate these results.
*
* @var string
*/
public $minor;
/**
* The major version number of PageSpeed used to generate these results.
*
* @param string $major
*/
public function setMajor($major)
{
$this->major = $major;
}
/**
* @return string
*/
public function getMajor()
{
return $this->major;
}
/**
* The minor version number of PageSpeed used to generate these results.
*
* @param string $minor
*/
public function setMinor($minor)
{
$this->minor = $minor;
}
/**
* @return string
*/
public function getMinor()
{
return $this->minor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PagespeedVersion::class, 'Google_Service_PagespeedInsights_PagespeedVersion');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,61 @@
<?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\PagespeedInsights\Resource;
use Google\Service\PagespeedInsights\PagespeedApiPagespeedResponseV5;
/**
* The "pagespeedapi" collection of methods.
* Typical usage is:
* <code>
* $pagespeedonlineService = new Google\Service\PagespeedInsights(...);
* $pagespeedapi = $pagespeedonlineService->pagespeedapi;
* </code>
*/
class Pagespeedapi extends \Google\Service\Resource
{
/**
* Runs PageSpeed analysis on the page at the specified URL, and returns
* PageSpeed scores, a list of suggestions to make that page faster, and other
* information. (pagespeedapi.runpagespeed)
*
* @param string $url Required. The URL to fetch and analyze
* @param array $optParams Optional parameters.
*
* @opt_param string captchaToken The captcha token passed when filling out a
* captcha.
* @opt_param string category A Lighthouse category to run; if none are given,
* only Performance category will be run
* @opt_param string locale The locale used to localize formatted results
* @opt_param string strategy The analysis strategy (desktop or mobile) to use,
* and desktop is the default
* @opt_param string utm_campaign Campaign name for analytics.
* @opt_param string utm_source Campaign source for analytics.
* @return PagespeedApiPagespeedResponseV5
* @throws \Google\Service\Exception
*/
public function runpagespeed($url, $optParams = [])
{
$params = ['url' => $url];
$params = array_merge($params, $optParams);
return $this->call('runpagespeed', [$params], PagespeedApiPagespeedResponseV5::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pagespeedapi::class, 'Google_Service_PagespeedInsights_Resource_Pagespeedapi');

View File

@@ -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\PagespeedInsights;
class RuntimeError extends \Google\Model
{
/**
* The enumerated Lighthouse Error code.
*
* @var string
*/
public $code;
/**
* A human readable message explaining the error code.
*
* @var string
*/
public $message;
/**
* The enumerated Lighthouse Error code.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* A human readable message explaining the error code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuntimeError::class, 'Google_Service_PagespeedInsights_RuntimeError');

View File

@@ -0,0 +1,114 @@
<?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\PagespeedInsights;
class StackPack extends \Google\Model
{
/**
* The stack pack advice strings.
*
* @var string[]
*/
public $descriptions;
/**
* The stack pack icon data uri.
*
* @var string
*/
public $iconDataURL;
/**
* The stack pack id.
*
* @var string
*/
public $id;
/**
* The stack pack title.
*
* @var string
*/
public $title;
/**
* The stack pack advice strings.
*
* @param string[] $descriptions
*/
public function setDescriptions($descriptions)
{
$this->descriptions = $descriptions;
}
/**
* @return string[]
*/
public function getDescriptions()
{
return $this->descriptions;
}
/**
* The stack pack icon data uri.
*
* @param string $iconDataURL
*/
public function setIconDataURL($iconDataURL)
{
$this->iconDataURL = $iconDataURL;
}
/**
* @return string
*/
public function getIconDataURL()
{
return $this->iconDataURL;
}
/**
* The stack pack id.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The stack pack title.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StackPack::class, 'Google_Service_PagespeedInsights_StackPack');

View File

@@ -0,0 +1,40 @@
<?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\PagespeedInsights;
class Timing extends \Google\Model
{
/**
* The total duration of Lighthouse's run.
*
* @var
*/
public $total;
public function setTotal($total)
{
$this->total = $total;
}
public function getTotal()
{
return $this->total;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Timing::class, 'Google_Service_PagespeedInsights_Timing');

View File

@@ -0,0 +1,157 @@
<?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\PagespeedInsights;
class UserPageLoadMetricV5 extends \Google\Collection
{
protected $collection_key = 'distributions';
/**
* The category of the specific time metric.
*
* @var string
*/
public $category;
protected $distributionsType = Bucket::class;
protected $distributionsDataType = 'array';
/**
* Identifies the form factor of the metric being collected.
*
* @var string
*/
public $formFactor;
/**
* The median number of the metric, in millisecond.
*
* @var int
*/
public $median;
/**
* Identifies the type of the metric.
*
* @var string
*/
public $metricId;
/**
* We use this field to store certain percentile value for this metric. For
* v4, this field contains pc50. For v5, this field contains pc90.
*
* @var int
*/
public $percentile;
/**
* The category of the specific time metric.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Metric distributions. Proportions should sum up to 1.
*
* @param Bucket[] $distributions
*/
public function setDistributions($distributions)
{
$this->distributions = $distributions;
}
/**
* @return Bucket[]
*/
public function getDistributions()
{
return $this->distributions;
}
/**
* Identifies the form factor of the metric being collected.
*
* @param string $formFactor
*/
public function setFormFactor($formFactor)
{
$this->formFactor = $formFactor;
}
/**
* @return string
*/
public function getFormFactor()
{
return $this->formFactor;
}
/**
* The median number of the metric, in millisecond.
*
* @param int $median
*/
public function setMedian($median)
{
$this->median = $median;
}
/**
* @return int
*/
public function getMedian()
{
return $this->median;
}
/**
* Identifies the type of the metric.
*
* @param string $metricId
*/
public function setMetricId($metricId)
{
$this->metricId = $metricId;
}
/**
* @return string
*/
public function getMetricId()
{
return $this->metricId;
}
/**
* We use this field to store certain percentile value for this metric. For
* v4, this field contains pc50. For v5, this field contains pc90.
*
* @param int $percentile
*/
public function setPercentile($percentile)
{
$this->percentile = $percentile;
}
/**
* @return int
*/
public function getPercentile()
{
return $this->percentile;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserPageLoadMetricV5::class, 'Google_Service_PagespeedInsights_UserPageLoadMetricV5');