Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -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\AirQuality;
class AdditionalInfo extends \Google\Model
{
/**
* @var string
*/
public $effects;
/**
* @var string
*/
public $sources;
/**
* @param string
*/
public function setEffects($effects)
{
$this->effects = $effects;
}
/**
* @return string
*/
public function getEffects()
{
return $this->effects;
}
/**
* @param string
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdditionalInfo::class, 'Google_Service_AirQuality_AdditionalInfo');

View File

@@ -0,0 +1,150 @@
<?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\AirQuality;
class AirQualityIndex extends \Google\Model
{
/**
* @var int
*/
public $aqi;
/**
* @var string
*/
public $aqiDisplay;
/**
* @var string
*/
public $category;
/**
* @var string
*/
public $code;
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $dominantPollutant;
/**
* @param int
*/
public function setAqi($aqi)
{
$this->aqi = $aqi;
}
/**
* @return int
*/
public function getAqi()
{
return $this->aqi;
}
/**
* @param string
*/
public function setAqiDisplay($aqiDisplay)
{
$this->aqiDisplay = $aqiDisplay;
}
/**
* @return string
*/
public function getAqiDisplay()
{
return $this->aqiDisplay;
}
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param Color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setDominantPollutant($dominantPollutant)
{
$this->dominantPollutant = $dominantPollutant;
}
/**
* @return string
*/
public function getDominantPollutant()
{
return $this->dominantPollutant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AirQualityIndex::class, 'Google_Service_AirQuality_AirQualityIndex');

View File

@@ -0,0 +1,98 @@
<?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\AirQuality;
class Color extends \Google\Model
{
/**
* @var float
*/
public $alpha;
/**
* @var float
*/
public $blue;
/**
* @var float
*/
public $green;
/**
* @var float
*/
public $red;
/**
* @param float
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* @param float
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* @param float
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* @param float
*/
public function setRed($red)
{
$this->red = $red;
}
/**
* @return float
*/
public function getRed()
{
return $this->red;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Color::class, 'Google_Service_AirQuality_Color');

View File

@@ -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\AirQuality;
class Concentration extends \Google\Model
{
/**
* @var string
*/
public $units;
/**
* @var float
*/
public $value;
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
/**
* @param float
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return float
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Concentration::class, 'Google_Service_AirQuality_Concentration');

View File

@@ -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\AirQuality;
class CustomLocalAqi extends \Google\Model
{
/**
* @var string
*/
public $aqi;
/**
* @var string
*/
public $regionCode;
/**
* @param string
*/
public function setAqi($aqi)
{
$this->aqi = $aqi;
}
/**
* @return string
*/
public function getAqi()
{
return $this->aqi;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomLocalAqi::class, 'Google_Service_AirQuality_CustomLocalAqi');

View File

@@ -0,0 +1,152 @@
<?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\AirQuality;
class HealthRecommendations extends \Google\Model
{
/**
* @var string
*/
public $athletes;
/**
* @var string
*/
public $children;
/**
* @var string
*/
public $elderly;
/**
* @var string
*/
public $generalPopulation;
/**
* @var string
*/
public $heartDiseasePopulation;
/**
* @var string
*/
public $lungDiseasePopulation;
/**
* @var string
*/
public $pregnantWomen;
/**
* @param string
*/
public function setAthletes($athletes)
{
$this->athletes = $athletes;
}
/**
* @return string
*/
public function getAthletes()
{
return $this->athletes;
}
/**
* @param string
*/
public function setChildren($children)
{
$this->children = $children;
}
/**
* @return string
*/
public function getChildren()
{
return $this->children;
}
/**
* @param string
*/
public function setElderly($elderly)
{
$this->elderly = $elderly;
}
/**
* @return string
*/
public function getElderly()
{
return $this->elderly;
}
/**
* @param string
*/
public function setGeneralPopulation($generalPopulation)
{
$this->generalPopulation = $generalPopulation;
}
/**
* @return string
*/
public function getGeneralPopulation()
{
return $this->generalPopulation;
}
/**
* @param string
*/
public function setHeartDiseasePopulation($heartDiseasePopulation)
{
$this->heartDiseasePopulation = $heartDiseasePopulation;
}
/**
* @return string
*/
public function getHeartDiseasePopulation()
{
return $this->heartDiseasePopulation;
}
/**
* @param string
*/
public function setLungDiseasePopulation($lungDiseasePopulation)
{
$this->lungDiseasePopulation = $lungDiseasePopulation;
}
/**
* @return string
*/
public function getLungDiseasePopulation()
{
return $this->lungDiseasePopulation;
}
/**
* @param string
*/
public function setPregnantWomen($pregnantWomen)
{
$this->pregnantWomen = $pregnantWomen;
}
/**
* @return string
*/
public function getPregnantWomen()
{
return $this->pregnantWomen;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HealthRecommendations::class, 'Google_Service_AirQuality_HealthRecommendations');

View File

@@ -0,0 +1,93 @@
<?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\AirQuality;
class HourInfo extends \Google\Collection
{
protected $collection_key = 'pollutants';
/**
* @var string
*/
public $dateTime;
protected $healthRecommendationsType = HealthRecommendations::class;
protected $healthRecommendationsDataType = '';
protected $indexesType = AirQualityIndex::class;
protected $indexesDataType = 'array';
protected $pollutantsType = Pollutant::class;
protected $pollutantsDataType = 'array';
/**
* @param string
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* @param HealthRecommendations
*/
public function setHealthRecommendations(HealthRecommendations $healthRecommendations)
{
$this->healthRecommendations = $healthRecommendations;
}
/**
* @return HealthRecommendations
*/
public function getHealthRecommendations()
{
return $this->healthRecommendations;
}
/**
* @param AirQualityIndex[]
*/
public function setIndexes($indexes)
{
$this->indexes = $indexes;
}
/**
* @return AirQualityIndex[]
*/
public function getIndexes()
{
return $this->indexes;
}
/**
* @param Pollutant[]
*/
public function setPollutants($pollutants)
{
$this->pollutants = $pollutants;
}
/**
* @return Pollutant[]
*/
public function getPollutants()
{
return $this->pollutants;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HourInfo::class, 'Google_Service_AirQuality_HourInfo');

View File

@@ -0,0 +1,93 @@
<?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\AirQuality;
class HourlyForecast extends \Google\Collection
{
protected $collection_key = 'pollutants';
/**
* @var string
*/
public $dateTime;
protected $healthRecommendationsType = HealthRecommendations::class;
protected $healthRecommendationsDataType = '';
protected $indexesType = AirQualityIndex::class;
protected $indexesDataType = 'array';
protected $pollutantsType = Pollutant::class;
protected $pollutantsDataType = 'array';
/**
* @param string
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* @param HealthRecommendations
*/
public function setHealthRecommendations(HealthRecommendations $healthRecommendations)
{
$this->healthRecommendations = $healthRecommendations;
}
/**
* @return HealthRecommendations
*/
public function getHealthRecommendations()
{
return $this->healthRecommendations;
}
/**
* @param AirQualityIndex[]
*/
public function setIndexes($indexes)
{
$this->indexes = $indexes;
}
/**
* @return AirQualityIndex[]
*/
public function getIndexes()
{
return $this->indexes;
}
/**
* @param Pollutant[]
*/
public function setPollutants($pollutants)
{
$this->pollutants = $pollutants;
}
/**
* @return Pollutant[]
*/
public function getPollutants()
{
return $this->pollutants;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HourlyForecast::class, 'Google_Service_AirQuality_HourlyForecast');

View File

@@ -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\AirQuality;
class HttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $data;
/**
* @var array[]
*/
public $extensions;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param array[]
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpBody::class, 'Google_Service_AirQuality_HttpBody');

View File

@@ -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\AirQuality;
class Interval extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Interval::class, 'Google_Service_AirQuality_Interval');

View File

@@ -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\AirQuality;
class LatLng extends \Google\Model
{
public $latitude;
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLng::class, 'Google_Service_AirQuality_LatLng');

View File

@@ -0,0 +1,131 @@
<?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\AirQuality;
class LookupCurrentConditionsRequest extends \Google\Collection
{
protected $collection_key = 'extraComputations';
protected $customLocalAqisType = CustomLocalAqi::class;
protected $customLocalAqisDataType = 'array';
/**
* @var string[]
*/
public $extraComputations;
/**
* @var string
*/
public $languageCode;
protected $locationType = LatLng::class;
protected $locationDataType = '';
/**
* @var string
*/
public $uaqiColorPalette;
/**
* @var bool
*/
public $universalAqi;
/**
* @param CustomLocalAqi[]
*/
public function setCustomLocalAqis($customLocalAqis)
{
$this->customLocalAqis = $customLocalAqis;
}
/**
* @return CustomLocalAqi[]
*/
public function getCustomLocalAqis()
{
return $this->customLocalAqis;
}
/**
* @param string[]
*/
public function setExtraComputations($extraComputations)
{
$this->extraComputations = $extraComputations;
}
/**
* @return string[]
*/
public function getExtraComputations()
{
return $this->extraComputations;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param LatLng
*/
public function setLocation(LatLng $location)
{
$this->location = $location;
}
/**
* @return LatLng
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setUaqiColorPalette($uaqiColorPalette)
{
$this->uaqiColorPalette = $uaqiColorPalette;
}
/**
* @return string
*/
public function getUaqiColorPalette()
{
return $this->uaqiColorPalette;
}
/**
* @param bool
*/
public function setUniversalAqi($universalAqi)
{
$this->universalAqi = $universalAqi;
}
/**
* @return bool
*/
public function getUniversalAqi()
{
return $this->universalAqi;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupCurrentConditionsRequest::class, 'Google_Service_AirQuality_LookupCurrentConditionsRequest');

View File

@@ -0,0 +1,111 @@
<?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\AirQuality;
class LookupCurrentConditionsResponse extends \Google\Collection
{
protected $collection_key = 'pollutants';
/**
* @var string
*/
public $dateTime;
protected $healthRecommendationsType = HealthRecommendations::class;
protected $healthRecommendationsDataType = '';
protected $indexesType = AirQualityIndex::class;
protected $indexesDataType = 'array';
protected $pollutantsType = Pollutant::class;
protected $pollutantsDataType = 'array';
/**
* @var string
*/
public $regionCode;
/**
* @param string
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* @param HealthRecommendations
*/
public function setHealthRecommendations(HealthRecommendations $healthRecommendations)
{
$this->healthRecommendations = $healthRecommendations;
}
/**
* @return HealthRecommendations
*/
public function getHealthRecommendations()
{
return $this->healthRecommendations;
}
/**
* @param AirQualityIndex[]
*/
public function setIndexes($indexes)
{
$this->indexes = $indexes;
}
/**
* @return AirQualityIndex[]
*/
public function getIndexes()
{
return $this->indexes;
}
/**
* @param Pollutant[]
*/
public function setPollutants($pollutants)
{
$this->pollutants = $pollutants;
}
/**
* @return Pollutant[]
*/
public function getPollutants()
{
return $this->pollutants;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupCurrentConditionsResponse::class, 'Google_Service_AirQuality_LookupCurrentConditionsResponse');

View File

@@ -0,0 +1,201 @@
<?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\AirQuality;
class LookupForecastRequest extends \Google\Collection
{
protected $collection_key = 'extraComputations';
protected $customLocalAqisType = CustomLocalAqi::class;
protected $customLocalAqisDataType = 'array';
/**
* @var string
*/
public $dateTime;
/**
* @var string[]
*/
public $extraComputations;
/**
* @var string
*/
public $languageCode;
protected $locationType = LatLng::class;
protected $locationDataType = '';
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
protected $periodType = Interval::class;
protected $periodDataType = '';
/**
* @var string
*/
public $uaqiColorPalette;
/**
* @var bool
*/
public $universalAqi;
/**
* @param CustomLocalAqi[]
*/
public function setCustomLocalAqis($customLocalAqis)
{
$this->customLocalAqis = $customLocalAqis;
}
/**
* @return CustomLocalAqi[]
*/
public function getCustomLocalAqis()
{
return $this->customLocalAqis;
}
/**
* @param string
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* @param string[]
*/
public function setExtraComputations($extraComputations)
{
$this->extraComputations = $extraComputations;
}
/**
* @return string[]
*/
public function getExtraComputations()
{
return $this->extraComputations;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param LatLng
*/
public function setLocation(LatLng $location)
{
$this->location = $location;
}
/**
* @return LatLng
*/
public function getLocation()
{
return $this->location;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param Interval
*/
public function setPeriod(Interval $period)
{
$this->period = $period;
}
/**
* @return Interval
*/
public function getPeriod()
{
return $this->period;
}
/**
* @param string
*/
public function setUaqiColorPalette($uaqiColorPalette)
{
$this->uaqiColorPalette = $uaqiColorPalette;
}
/**
* @return string
*/
public function getUaqiColorPalette()
{
return $this->uaqiColorPalette;
}
/**
* @param bool
*/
public function setUniversalAqi($universalAqi)
{
$this->universalAqi = $universalAqi;
}
/**
* @return bool
*/
public function getUniversalAqi()
{
return $this->universalAqi;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupForecastRequest::class, 'Google_Service_AirQuality_LookupForecastRequest');

View File

@@ -0,0 +1,79 @@
<?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\AirQuality;
class LookupForecastResponse extends \Google\Collection
{
protected $collection_key = 'hourlyForecasts';
protected $hourlyForecastsType = HourlyForecast::class;
protected $hourlyForecastsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $regionCode;
/**
* @param HourlyForecast[]
*/
public function setHourlyForecasts($hourlyForecasts)
{
$this->hourlyForecasts = $hourlyForecasts;
}
/**
* @return HourlyForecast[]
*/
public function getHourlyForecasts()
{
return $this->hourlyForecasts;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupForecastResponse::class, 'Google_Service_AirQuality_LookupForecastResponse');

View File

@@ -0,0 +1,219 @@
<?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\AirQuality;
class LookupHistoryRequest extends \Google\Collection
{
protected $collection_key = 'extraComputations';
protected $customLocalAqisType = CustomLocalAqi::class;
protected $customLocalAqisDataType = 'array';
/**
* @var string
*/
public $dateTime;
/**
* @var string[]
*/
public $extraComputations;
/**
* @var int
*/
public $hours;
/**
* @var string
*/
public $languageCode;
protected $locationType = LatLng::class;
protected $locationDataType = '';
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
protected $periodType = Interval::class;
protected $periodDataType = '';
/**
* @var string
*/
public $uaqiColorPalette;
/**
* @var bool
*/
public $universalAqi;
/**
* @param CustomLocalAqi[]
*/
public function setCustomLocalAqis($customLocalAqis)
{
$this->customLocalAqis = $customLocalAqis;
}
/**
* @return CustomLocalAqi[]
*/
public function getCustomLocalAqis()
{
return $this->customLocalAqis;
}
/**
* @param string
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* @param string[]
*/
public function setExtraComputations($extraComputations)
{
$this->extraComputations = $extraComputations;
}
/**
* @return string[]
*/
public function getExtraComputations()
{
return $this->extraComputations;
}
/**
* @param int
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param LatLng
*/
public function setLocation(LatLng $location)
{
$this->location = $location;
}
/**
* @return LatLng
*/
public function getLocation()
{
return $this->location;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param Interval
*/
public function setPeriod(Interval $period)
{
$this->period = $period;
}
/**
* @return Interval
*/
public function getPeriod()
{
return $this->period;
}
/**
* @param string
*/
public function setUaqiColorPalette($uaqiColorPalette)
{
$this->uaqiColorPalette = $uaqiColorPalette;
}
/**
* @return string
*/
public function getUaqiColorPalette()
{
return $this->uaqiColorPalette;
}
/**
* @param bool
*/
public function setUniversalAqi($universalAqi)
{
$this->universalAqi = $universalAqi;
}
/**
* @return bool
*/
public function getUniversalAqi()
{
return $this->universalAqi;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupHistoryRequest::class, 'Google_Service_AirQuality_LookupHistoryRequest');

View File

@@ -0,0 +1,79 @@
<?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\AirQuality;
class LookupHistoryResponse extends \Google\Collection
{
protected $collection_key = 'hoursInfo';
protected $hoursInfoType = HourInfo::class;
protected $hoursInfoDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $regionCode;
/**
* @param HourInfo[]
*/
public function setHoursInfo($hoursInfo)
{
$this->hoursInfo = $hoursInfo;
}
/**
* @return HourInfo[]
*/
public function getHoursInfo()
{
return $this->hoursInfo;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupHistoryResponse::class, 'Google_Service_AirQuality_LookupHistoryResponse');

View File

@@ -0,0 +1,112 @@
<?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\AirQuality;
class Pollutant extends \Google\Model
{
protected $additionalInfoType = AdditionalInfo::class;
protected $additionalInfoDataType = '';
/**
* @var string
*/
public $code;
protected $concentrationType = Concentration::class;
protected $concentrationDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $fullName;
/**
* @param AdditionalInfo
*/
public function setAdditionalInfo(AdditionalInfo $additionalInfo)
{
$this->additionalInfo = $additionalInfo;
}
/**
* @return AdditionalInfo
*/
public function getAdditionalInfo()
{
return $this->additionalInfo;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param Concentration
*/
public function setConcentration(Concentration $concentration)
{
$this->concentration = $concentration;
}
/**
* @return Concentration
*/
public function getConcentration()
{
return $this->concentration;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setFullName($fullName)
{
$this->fullName = $fullName;
}
/**
* @return string
*/
public function getFullName()
{
return $this->fullName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pollutant::class, 'Google_Service_AirQuality_Pollutant');

View File

@@ -0,0 +1,53 @@
<?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\AirQuality\Resource;
use Google\Service\AirQuality\LookupCurrentConditionsRequest;
use Google\Service\AirQuality\LookupCurrentConditionsResponse;
/**
* The "currentConditions" collection of methods.
* Typical usage is:
* <code>
* $airqualityService = new Google\Service\AirQuality(...);
* $currentConditions = $airqualityService->currentConditions;
* </code>
*/
class CurrentConditions extends \Google\Service\Resource
{
/**
* The Current Conditions endpoint provides hourly air quality information in
* more than 100 countries, up to a 500 x 500 meters resolution. Includes over
* 70 local indexes and global air quality index and categories.
* (currentConditions.lookup)
*
* @param LookupCurrentConditionsRequest $postBody
* @param array $optParams Optional parameters.
* @return LookupCurrentConditionsResponse
* @throws \Google\Service\Exception
*/
public function lookup(LookupCurrentConditionsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupCurrentConditionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CurrentConditions::class, 'Google_Service_AirQuality_Resource_CurrentConditions');

View File

@@ -0,0 +1,51 @@
<?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\AirQuality\Resource;
use Google\Service\AirQuality\LookupForecastRequest;
use Google\Service\AirQuality\LookupForecastResponse;
/**
* The "forecast" collection of methods.
* Typical usage is:
* <code>
* $airqualityService = new Google\Service\AirQuality(...);
* $forecast = $airqualityService->forecast;
* </code>
*/
class Forecast extends \Google\Service\Resource
{
/**
* Returns air quality forecast for a specific location for a given time range.
* (forecast.lookup)
*
* @param LookupForecastRequest $postBody
* @param array $optParams Optional parameters.
* @return LookupForecastResponse
* @throws \Google\Service\Exception
*/
public function lookup(LookupForecastRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupForecastResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Forecast::class, 'Google_Service_AirQuality_Resource_Forecast');

View File

@@ -0,0 +1,51 @@
<?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\AirQuality\Resource;
use Google\Service\AirQuality\LookupHistoryRequest;
use Google\Service\AirQuality\LookupHistoryResponse;
/**
* The "history" collection of methods.
* Typical usage is:
* <code>
* $airqualityService = new Google\Service\AirQuality(...);
* $history = $airqualityService->history;
* </code>
*/
class History extends \Google\Service\Resource
{
/**
* Returns air quality history for a specific location for a given time range.
* (history.lookup)
*
* @param LookupHistoryRequest $postBody
* @param array $optParams Optional parameters.
* @return LookupHistoryResponse
* @throws \Google\Service\Exception
*/
public function lookup(LookupHistoryRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupHistoryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(History::class, 'Google_Service_AirQuality_Resource_History');

View File

@@ -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\AirQuality\Resource;
/**
* The "mapTypes" collection of methods.
* Typical usage is:
* <code>
* $airqualityService = new Google\Service\AirQuality(...);
* $mapTypes = $airqualityService->mapTypes;
* </code>
*/
class MapTypes extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MapTypes::class, 'Google_Service_AirQuality_Resource_MapTypes');

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\AirQuality\Resource;
use Google\Service\AirQuality\HttpBody;
/**
* The "heatmapTiles" collection of methods.
* Typical usage is:
* <code>
* $airqualityService = new Google\Service\AirQuality(...);
* $heatmapTiles = $airqualityService->mapTypes_heatmapTiles;
* </code>
*/
class MapTypesHeatmapTiles extends \Google\Service\Resource
{
/**
* Returns a bytes array containing the data of the tile PNG image.
* (heatmapTiles.lookupHeatmapTile)
*
* @param string $mapType Required. The type of the air quality heatmap. Defines
* the pollutant that the map will graphically represent. Allowed values: -
* UAQI_RED_GREEN (UAQI, red-green palette) - UAQI_INDIGO_PERSIAN (UAQI, indigo-
* persian palette) - PM25_INDIGO_PERSIAN - GBR_DEFRA - DEU_UBA - CAN_EC -
* FRA_ATMO - US_AQI
* @param int $zoom Required. The map's zoom level. Defines how large or small
* the contents of a map appear in a map view. Zoom level 0 is the entire world
* in a single tile. Zoom level 1 is the entire world in 4 tiles. Zoom level 2
* is the entire world in 16 tiles. Zoom level 16 is the entire world in 65,536
* tiles. Allowed values: 0-16
* @param int $x Required. Defines the east-west point in the requested tile.
* @param int $y Required. Defines the north-south point in the requested tile.
* @param array $optParams Optional parameters.
* @return HttpBody
* @throws \Google\Service\Exception
*/
public function lookupHeatmapTile($mapType, $zoom, $x, $y, $optParams = [])
{
$params = ['mapType' => $mapType, 'zoom' => $zoom, 'x' => $x, 'y' => $y];
$params = array_merge($params, $optParams);
return $this->call('lookupHeatmapTile', [$params], HttpBody::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MapTypesHeatmapTiles::class, 'Google_Service_AirQuality_Resource_MapTypesHeatmapTiles');