gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
+130
View File
@@ -0,0 +1,130 @@
<?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
{
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @var float
*/
public $alpha;
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @var float
*/
public $blue;
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @var float
*/
public $green;
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @var float
*/
public $red;
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @param float $alpha
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @param float $blue
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @param float $green
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @param float $red
*/
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');
+100
View File
@@ -0,0 +1,100 @@
<?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
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
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');
+83
View File
@@ -0,0 +1,83 @@
<?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';
/**
* The date in UTC at which the pollen forecast data is represented.
*
* @param Date $date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* This list will include up to 15 pollen species affecting the location
* specified in the request.
*
* @param PlantInfo[] $plantInfo
*/
public function setPlantInfo($plantInfo)
{
$this->plantInfo = $plantInfo;
}
/**
* @return PlantInfo[]
*/
public function getPlantInfo()
{
return $this->plantInfo;
}
/**
* This list will include up to three pollen types (GRASS, WEED, TREE)
* affecting the location specified in the request.
*
* @param PollenTypeInfo[] $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');
@@ -0,0 +1,95 @@
<?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';
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @var string
*/
public $contentType;
/**
* The HTTP request/response body as raw binary.
*
* @var string
*/
public $data;
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @var array[]
*/
public $extensions;
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* The HTTP request/response body as raw binary.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @param array[] $extensions
*/
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');
@@ -0,0 +1,172 @@
<?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
{
/**
* Unspecified index.
*/
public const CODE_INDEX_UNSPECIFIED = 'INDEX_UNSPECIFIED';
/**
* Universal Pollen Index.
*/
public const CODE_UPI = 'UPI';
/**
* Text classification of index numerical score interpretation. The index
* consists of six categories: * 0: "None" * 1: "Very low" * 2: "Low" * 3:
* "Moderate" * 4: "High" * 5: "Very high
*
* @var string
*/
public $category;
/**
* The index's code. This field represents the index for programming purposes
* by using snake cases instead of spaces. Example: "UPI".
*
* @var string
*/
public $code;
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* A human readable representation of the index name. Example: "Universal
* Pollen Index".
*
* @var string
*/
public $displayName;
/**
* Textual explanation of current index level.
*
* @var string
*/
public $indexDescription;
/**
* The index's numeric score. Numeric range is between 0 and 5.
*
* @var int
*/
public $value;
/**
* Text classification of index numerical score interpretation. The index
* consists of six categories: * 0: "None" * 1: "Very low" * 2: "Low" * 3:
* "Moderate" * 4: "High" * 5: "Very high
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* The index's code. This field represents the index for programming purposes
* by using snake cases instead of spaces. Example: "UPI".
*
* Accepted values: INDEX_UNSPECIFIED, UPI
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* The color used to represent the Pollen Index numeric score.
*
* @param Color $color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* A human readable representation of the index name. Example: "Universal
* Pollen Index".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Textual explanation of current index level.
*
* @param string $indexDescription
*/
public function setIndexDescription($indexDescription)
{
$this->indexDescription = $indexDescription;
}
/**
* @return string
*/
public function getIndexDescription()
{
return $this->indexDescription;
}
/**
* The index's numeric score. Numeric range is between 0 and 5.
*
* @param int $value
*/
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');
@@ -0,0 +1,96 @@
<?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';
/**
* Optional. The token to retrieve the next page.
*
* @var string
*/
public $nextPageToken;
/**
* The ISO_3166-1 alpha-2 code of the country/region corresponding to the
* location provided in the request. This field might be omitted from the
* response if the location provided in the request resides in a disputed
* territory.
*
* @var string
*/
public $regionCode;
/**
* Required. This object contains the daily forecast information for each day
* requested.
*
* @param DayInfo[] $dailyInfo
*/
public function setDailyInfo($dailyInfo)
{
$this->dailyInfo = $dailyInfo;
}
/**
* @return DayInfo[]
*/
public function getDailyInfo()
{
return $this->dailyInfo;
}
/**
* Optional. The token to retrieve the next page.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The ISO_3166-1 alpha-2 code of the country/region corresponding to the
* location provided in the request. This field might be omitted from the
* response if the location provided in the request resides in a disputed
* territory.
*
* @param string $regionCode
*/
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');
@@ -0,0 +1,232 @@
<?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
{
/**
* Unspecified plant type.
*/
public const TYPE_POLLEN_TYPE_UNSPECIFIED = 'POLLEN_TYPE_UNSPECIFIED';
/**
* Grass pollen type.
*/
public const TYPE_GRASS = 'GRASS';
/**
* Tree pollen type.
*/
public const TYPE_TREE = 'TREE';
/**
* Weed pollen type.
*/
public const TYPE_WEED = 'WEED';
/**
* Textual description of pollen cross reaction plants. Example: Alder, Hazel,
* Hornbeam, Beech, Willow, and Oak pollen.
*
* @var string
*/
public $crossReaction;
/**
* A human readable representation of the plant family name. Example:
* "Betulaceae (the Birch family)".
*
* @var string
*/
public $family;
/**
* Link to the picture of the plant.
*
* @var string
*/
public $picture;
/**
* Link to a closeup picture of the plant.
*
* @var string
*/
public $pictureCloseup;
/**
* Textual list of explanations of seasons where the pollen is active.
* Example: "Late winter, spring".
*
* @var string
*/
public $season;
/**
* Textual description of the plants' colors of leaves, bark, flowers or seeds
* that helps identify the plant.
*
* @var string
*/
public $specialColors;
/**
* Textual description of the plants' shapes of leaves, bark, flowers or seeds
* that helps identify the plant.
*
* @var string
*/
public $specialShapes;
/**
* The plant's pollen type. For example: "GRASS". A list of all available
* codes could be found here.
*
* @var string
*/
public $type;
/**
* Textual description of pollen cross reaction plants. Example: Alder, Hazel,
* Hornbeam, Beech, Willow, and Oak pollen.
*
* @param string $crossReaction
*/
public function setCrossReaction($crossReaction)
{
$this->crossReaction = $crossReaction;
}
/**
* @return string
*/
public function getCrossReaction()
{
return $this->crossReaction;
}
/**
* A human readable representation of the plant family name. Example:
* "Betulaceae (the Birch family)".
*
* @param string $family
*/
public function setFamily($family)
{
$this->family = $family;
}
/**
* @return string
*/
public function getFamily()
{
return $this->family;
}
/**
* Link to the picture of the plant.
*
* @param string $picture
*/
public function setPicture($picture)
{
$this->picture = $picture;
}
/**
* @return string
*/
public function getPicture()
{
return $this->picture;
}
/**
* Link to a closeup picture of the plant.
*
* @param string $pictureCloseup
*/
public function setPictureCloseup($pictureCloseup)
{
$this->pictureCloseup = $pictureCloseup;
}
/**
* @return string
*/
public function getPictureCloseup()
{
return $this->pictureCloseup;
}
/**
* Textual list of explanations of seasons where the pollen is active.
* Example: "Late winter, spring".
*
* @param string $season
*/
public function setSeason($season)
{
$this->season = $season;
}
/**
* @return string
*/
public function getSeason()
{
return $this->season;
}
/**
* Textual description of the plants' colors of leaves, bark, flowers or seeds
* that helps identify the plant.
*
* @param string $specialColors
*/
public function setSpecialColors($specialColors)
{
$this->specialColors = $specialColors;
}
/**
* @return string
*/
public function getSpecialColors()
{
return $this->specialColors;
}
/**
* Textual description of the plants' shapes of leaves, bark, flowers or seeds
* that helps identify the plant.
*
* @param string $specialShapes
*/
public function setSpecialShapes($specialShapes)
{
$this->specialShapes = $specialShapes;
}
/**
* @return string
*/
public function getSpecialShapes()
{
return $this->specialShapes;
}
/**
* The plant's pollen type. For example: "GRASS". A list of all available
* codes could be found here.
*
* Accepted values: POLLEN_TYPE_UNSPECIFIED, GRASS, TREE, WEED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlantDescription::class, 'Google_Service_Pollen_PlantDescription');
@@ -0,0 +1,209 @@
<?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
{
/**
* Unspecified plant code.
*/
public const CODE_PLANT_UNSPECIFIED = 'PLANT_UNSPECIFIED';
/**
* Alder is classified as a tree pollen type.
*/
public const CODE_ALDER = 'ALDER';
/**
* Ash is classified as a tree pollen type.
*/
public const CODE_ASH = 'ASH';
/**
* Birch is classified as a tree pollen type.
*/
public const CODE_BIRCH = 'BIRCH';
/**
* Cottonwood is classified as a tree pollen type.
*/
public const CODE_COTTONWOOD = 'COTTONWOOD';
/**
* Elm is classified as a tree pollen type.
*/
public const CODE_ELM = 'ELM';
/**
* Maple is classified as a tree pollen type.
*/
public const CODE_MAPLE = 'MAPLE';
/**
* Olive is classified as a tree pollen type.
*/
public const CODE_OLIVE = 'OLIVE';
/**
* Juniper is classified as a tree pollen type.
*/
public const CODE_JUNIPER = 'JUNIPER';
/**
* Oak is classified as a tree pollen type.
*/
public const CODE_OAK = 'OAK';
/**
* Pine is classified as a tree pollen type.
*/
public const CODE_PINE = 'PINE';
/**
* Cypress pine is classified as a tree pollen type.
*/
public const CODE_CYPRESS_PINE = 'CYPRESS_PINE';
/**
* Hazel is classified as a tree pollen type.
*/
public const CODE_HAZEL = 'HAZEL';
/**
* Graminales is classified as a grass pollen type.
*/
public const CODE_GRAMINALES = 'GRAMINALES';
/**
* Ragweed is classified as a weed pollen type.
*/
public const CODE_RAGWEED = 'RAGWEED';
/**
* Mugwort is classified as a weed pollen type.
*/
public const CODE_MUGWORT = 'MUGWORT';
/**
* Japanese cedar is classified as a tree pollen type.
*/
public const CODE_JAPANESE_CEDAR = 'JAPANESE_CEDAR';
/**
* Japanese cypress is classified as a tree pollen type.
*/
public const CODE_JAPANESE_CYPRESS = 'JAPANESE_CYPRESS';
/**
* The plant code name. For example: "COTTONWOOD". A list of all available
* codes could be found here.
*
* @var string
*/
public $code;
/**
* A human readable representation of the plant name. Example: “Cottonwood".
*
* @var string
*/
public $displayName;
/**
* Indication of either the plant is in season or not.
*
* @var bool
*/
public $inSeason;
protected $indexInfoType = IndexInfo::class;
protected $indexInfoDataType = '';
protected $plantDescriptionType = PlantDescription::class;
protected $plantDescriptionDataType = '';
/**
* The plant code name. For example: "COTTONWOOD". A list of all available
* codes could be found here.
*
* Accepted values: PLANT_UNSPECIFIED, ALDER, ASH, BIRCH, COTTONWOOD, ELM,
* MAPLE, OLIVE, JUNIPER, OAK, PINE, CYPRESS_PINE, HAZEL, GRAMINALES, RAGWEED,
* MUGWORT, JAPANESE_CEDAR, JAPANESE_CYPRESS
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* A human readable representation of the plant name. Example: “Cottonwood".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Indication of either the plant is in season or not.
*
* @param bool $inSeason
*/
public function setInSeason($inSeason)
{
$this->inSeason = $inSeason;
}
/**
* @return bool
*/
public function getInSeason()
{
return $this->inSeason;
}
/**
* This object contains data representing specific pollen index value,
* category and description.
*
* @param IndexInfo $indexInfo
*/
public function setIndexInfo(IndexInfo $indexInfo)
{
$this->indexInfo = $indexInfo;
}
/**
* @return IndexInfo
*/
public function getIndexInfo()
{
return $this->indexInfo;
}
/**
* Contains general information about plants, including details on their
* seasonality, special shapes and colors, information about allergic cross-
* reactions, and plant photos.
*
* @param PlantDescription $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');
@@ -0,0 +1,153 @@
<?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
{
/**
* Unspecified plant type.
*/
public const CODE_POLLEN_TYPE_UNSPECIFIED = 'POLLEN_TYPE_UNSPECIFIED';
/**
* Grass pollen type.
*/
public const CODE_GRASS = 'GRASS';
/**
* Tree pollen type.
*/
public const CODE_TREE = 'TREE';
/**
* Weed pollen type.
*/
public const CODE_WEED = 'WEED';
protected $collection_key = 'healthRecommendations';
/**
* The pollen type's code name. For example: "GRASS"
*
* @var string
*/
public $code;
/**
* A human readable representation of the pollen type name. Example: "Grass"
*
* @var string
*/
public $displayName;
/**
* Textual list of explanations, related to health insights based on the
* current pollen levels.
*
* @var string[]
*/
public $healthRecommendations;
/**
* Indication whether the plant is in season or not.
*
* @var bool
*/
public $inSeason;
protected $indexInfoType = IndexInfo::class;
protected $indexInfoDataType = '';
/**
* The pollen type's code name. For example: "GRASS"
*
* Accepted values: POLLEN_TYPE_UNSPECIFIED, GRASS, TREE, WEED
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* A human readable representation of the pollen type name. Example: "Grass"
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Textual list of explanations, related to health insights based on the
* current pollen levels.
*
* @param string[] $healthRecommendations
*/
public function setHealthRecommendations($healthRecommendations)
{
$this->healthRecommendations = $healthRecommendations;
}
/**
* @return string[]
*/
public function getHealthRecommendations()
{
return $this->healthRecommendations;
}
/**
* Indication whether the plant is in season or not.
*
* @param bool $inSeason
*/
public function setInSeason($inSeason)
{
$this->inSeason = $inSeason;
}
/**
* @return bool
*/
public function getInSeason()
{
return $this->inSeason;
}
/**
* Contains the Universal Pollen Index (UPI) data for the pollen type.
*
* @param IndexInfo $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');
@@ -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');
@@ -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');
@@ -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');