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,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\Pollen;
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_Pollen_Color');

View File

@@ -0,0 +1,80 @@
<?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\Pollen;
class Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Pollen_Date');

View File

@@ -0,0 +1,75 @@
<?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\Pollen;
class DayInfo extends \Google\Collection
{
protected $collection_key = 'pollenTypeInfo';
protected $dateType = Date::class;
protected $dateDataType = '';
protected $plantInfoType = PlantInfo::class;
protected $plantInfoDataType = 'array';
protected $pollenTypeInfoType = PollenTypeInfo::class;
protected $pollenTypeInfoDataType = 'array';
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param PlantInfo[]
*/
public function setPlantInfo($plantInfo)
{
$this->plantInfo = $plantInfo;
}
/**
* @return PlantInfo[]
*/
public function getPlantInfo()
{
return $this->plantInfo;
}
/**
* @param PollenTypeInfo[]
*/
public function setPollenTypeInfo($pollenTypeInfo)
{
$this->pollenTypeInfo = $pollenTypeInfo;
}
/**
* @return PollenTypeInfo[]
*/
public function getPollenTypeInfo()
{
return $this->pollenTypeInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DayInfo::class, 'Google_Service_Pollen_DayInfo');

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\Pollen;
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_Pollen_HttpBody');

View File

@@ -0,0 +1,132 @@
<?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\Pollen;
class IndexInfo extends \Google\Model
{
/**
* @var string
*/
public $category;
/**
* @var string
*/
public $code;
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $indexDescription;
/**
* @var int
*/
public $value;
/**
* @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 setIndexDescription($indexDescription)
{
$this->indexDescription = $indexDescription;
}
/**
* @return string
*/
public function getIndexDescription()
{
return $this->indexDescription;
}
/**
* @param int
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return int
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexInfo::class, 'Google_Service_Pollen_IndexInfo');

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\Pollen;
class LookupForecastResponse extends \Google\Collection
{
protected $collection_key = 'dailyInfo';
protected $dailyInfoType = DayInfo::class;
protected $dailyInfoDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $regionCode;
/**
* @param DayInfo[]
*/
public function setDailyInfo($dailyInfo)
{
$this->dailyInfo = $dailyInfo;
}
/**
* @return DayInfo[]
*/
public function getDailyInfo()
{
return $this->dailyInfo;
}
/**
* @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_Pollen_LookupForecastResponse');

View File

@@ -0,0 +1,170 @@
<?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\Pollen;
class PlantDescription extends \Google\Model
{
/**
* @var string
*/
public $crossReaction;
/**
* @var string
*/
public $family;
/**
* @var string
*/
public $picture;
/**
* @var string
*/
public $pictureCloseup;
/**
* @var string
*/
public $season;
/**
* @var string
*/
public $specialColors;
/**
* @var string
*/
public $specialShapes;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCrossReaction($crossReaction)
{
$this->crossReaction = $crossReaction;
}
/**
* @return string
*/
public function getCrossReaction()
{
return $this->crossReaction;
}
/**
* @param string
*/
public function setFamily($family)
{
$this->family = $family;
}
/**
* @return string
*/
public function getFamily()
{
return $this->family;
}
/**
* @param string
*/
public function setPicture($picture)
{
$this->picture = $picture;
}
/**
* @return string
*/
public function getPicture()
{
return $this->picture;
}
/**
* @param string
*/
public function setPictureCloseup($pictureCloseup)
{
$this->pictureCloseup = $pictureCloseup;
}
/**
* @return string
*/
public function getPictureCloseup()
{
return $this->pictureCloseup;
}
/**
* @param string
*/
public function setSeason($season)
{
$this->season = $season;
}
/**
* @return string
*/
public function getSeason()
{
return $this->season;
}
/**
* @param string
*/
public function setSpecialColors($specialColors)
{
$this->specialColors = $specialColors;
}
/**
* @return string
*/
public function getSpecialColors()
{
return $this->specialColors;
}
/**
* @param string
*/
public function setSpecialShapes($specialShapes)
{
$this->specialShapes = $specialShapes;
}
/**
* @return string
*/
public function getSpecialShapes()
{
return $this->specialShapes;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlantDescription::class, 'Google_Service_Pollen_PlantDescription');

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\Pollen;
class PlantInfo extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $displayName;
/**
* @var bool
*/
public $inSeason;
protected $indexInfoType = IndexInfo::class;
protected $indexInfoDataType = '';
protected $plantDescriptionType = PlantDescription::class;
protected $plantDescriptionDataType = '';
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param bool
*/
public function setInSeason($inSeason)
{
$this->inSeason = $inSeason;
}
/**
* @return bool
*/
public function getInSeason()
{
return $this->inSeason;
}
/**
* @param IndexInfo
*/
public function setIndexInfo(IndexInfo $indexInfo)
{
$this->indexInfo = $indexInfo;
}
/**
* @return IndexInfo
*/
public function getIndexInfo()
{
return $this->indexInfo;
}
/**
* @param PlantDescription
*/
public function setPlantDescription(PlantDescription $plantDescription)
{
$this->plantDescription = $plantDescription;
}
/**
* @return PlantDescription
*/
public function getPlantDescription()
{
return $this->plantDescription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlantInfo::class, 'Google_Service_Pollen_PlantInfo');

View File

@@ -0,0 +1,115 @@
<?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\Pollen;
class PollenTypeInfo extends \Google\Collection
{
protected $collection_key = 'healthRecommendations';
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $healthRecommendations;
/**
* @var bool
*/
public $inSeason;
protected $indexInfoType = IndexInfo::class;
protected $indexInfoDataType = '';
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setHealthRecommendations($healthRecommendations)
{
$this->healthRecommendations = $healthRecommendations;
}
/**
* @return string[]
*/
public function getHealthRecommendations()
{
return $this->healthRecommendations;
}
/**
* @param bool
*/
public function setInSeason($inSeason)
{
$this->inSeason = $inSeason;
}
/**
* @return bool
*/
public function getInSeason()
{
return $this->inSeason;
}
/**
* @param IndexInfo
*/
public function setIndexInfo(IndexInfo $indexInfo)
{
$this->indexInfo = $indexInfo;
}
/**
* @return IndexInfo
*/
public function getIndexInfo()
{
return $this->indexInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PollenTypeInfo::class, 'Google_Service_Pollen_PollenTypeInfo');

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\Pollen\Resource;
use Google\Service\Pollen\LookupForecastResponse;
/**
* The "forecast" collection of methods.
* Typical usage is:
* <code>
* $pollenService = new Google\Service\Pollen(...);
* $forecast = $pollenService->forecast;
* </code>
*/
class Forecast extends \Google\Service\Resource
{
/**
* Returns up to 5 days of daily pollen information in more than 65 countries,
* up to 1km resolution. (forecast.lookup)
*
* @param array $optParams Optional parameters.
*
* @opt_param int days Required. A number that indicates how many forecast days
* to request (minimum value 1, maximum value is 5).
* @opt_param string languageCode Optional. Allows the client to choose the
* language for the response. If data cannot be provided for that language, the
* API uses the closest match. Allowed values rely on the IETF BCP-47 standard.
* The default value is "en".
* @opt_param double location.latitude The latitude in degrees. It must be in
* the range [-90.0, +90.0].
* @opt_param double location.longitude The longitude in degrees. It must be in
* the range [-180.0, +180.0].
* @opt_param int pageSize Optional. The maximum number of daily info records to
* return per page. The default and max value is 5, indicating 5 days of data.
* @opt_param string pageToken Optional. A page token received from a previous
* daily call. It is used to retrieve the subsequent page. Note that when
* providing a value for the page token, all other request parameters provided
* must match the previous call that provided the page token.
* @opt_param bool plantsDescription Optional. Contains general information
* about plants, including details on their seasonality, special shapes and
* colors, information about allergic cross-reactions, and plant photos. The
* default value is "true".
* @return LookupForecastResponse
* @throws \Google\Service\Exception
*/
public function lookup($optParams = [])
{
$params = [];
$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_Pollen_Resource_Forecast');

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\Pollen\Resource;
/**
* The "mapTypes" collection of methods.
* Typical usage is:
* <code>
* $pollenService = new Google\Service\Pollen(...);
* $mapTypes = $pollenService->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_Pollen_Resource_MapTypes');

View File

@@ -0,0 +1,58 @@
<?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\Pollen\Resource;
use Google\Service\Pollen\HttpBody;
/**
* The "heatmapTiles" collection of methods.
* Typical usage is:
* <code>
* $pollenService = new Google\Service\Pollen(...);
* $heatmapTiles = $pollenService->mapTypes_heatmapTiles;
* </code>
*/
class MapTypesHeatmapTiles extends \Google\Service\Resource
{
/**
* Returns a byte array containing the data of the tile PNG image.
* (heatmapTiles.lookupHeatmapTile)
*
* @param string $mapType Required. The type of the pollen heatmap. Defines the
* combination of pollen type and index that the map will graphically represent.
* @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_Pollen_Resource_MapTypesHeatmapTiles');