gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AreaInsights;
class Circle extends \Google\Model
{
protected $latLngType = LatLng::class;
protected $latLngDataType = '';
/**
* **Format:** Must be in the format `places/PLACE_ID`, where `PLACE_ID` is
* the unique identifier of a place. For example:
* `places/ChIJgUbEo8cfqokR5lP9_Wh_DaM`.
*
* @var string
*/
public $place;
/**
* Optional. The radius of the circle in meters
*
* @var int
*/
public $radius;
/**
* The latitude and longitude of the center of the circle.
*
* @param LatLng $latLng
*/
public function setLatLng(LatLng $latLng)
{
$this->latLng = $latLng;
}
/**
* @return LatLng
*/
public function getLatLng()
{
return $this->latLng;
}
/**
* **Format:** Must be in the format `places/PLACE_ID`, where `PLACE_ID` is
* the unique identifier of a place. For example:
* `places/ChIJgUbEo8cfqokR5lP9_Wh_DaM`.
*
* @param string $place
*/
public function setPlace($place)
{
$this->place = $place;
}
/**
* @return string
*/
public function getPlace()
{
return $this->place;
}
/**
* Optional. The radius of the circle in meters
*
* @param int $radius
*/
public function setRadius($radius)
{
$this->radius = $radius;
}
/**
* @return int
*/
public function getRadius()
{
return $this->radius;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Circle::class, 'Google_Service_AreaInsights_Circle');
@@ -0,0 +1,69 @@
<?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\AreaInsights;
class ComputeInsightsRequest extends \Google\Collection
{
protected $collection_key = 'insights';
protected $filterType = Filter::class;
protected $filterDataType = '';
/**
* Required. Insights to compute. Currently only INSIGHT_COUNT and
* INSIGHT_PLACES are supported.
*
* @var string[]
*/
public $insights;
/**
* Required. Insight filter.
*
* @param Filter $filter
*/
public function setFilter(Filter $filter)
{
$this->filter = $filter;
}
/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}
/**
* Required. Insights to compute. Currently only INSIGHT_COUNT and
* INSIGHT_PLACES are supported.
*
* @param string[] $insights
*/
public function setInsights($insights)
{
$this->insights = $insights;
}
/**
* @return string[]
*/
public function getInsights()
{
return $this->insights;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInsightsRequest::class, 'Google_Service_AreaInsights_ComputeInsightsRequest');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AreaInsights;
class ComputeInsightsResponse extends \Google\Collection
{
protected $collection_key = 'placeInsights';
/**
* Result for Insights.INSIGHT_COUNT.
*
* @var string
*/
public $count;
protected $placeInsightsType = PlaceInsight::class;
protected $placeInsightsDataType = 'array';
/**
* Result for Insights.INSIGHT_COUNT.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Result for Insights.INSIGHT_PLACES.
*
* @param PlaceInsight[] $placeInsights
*/
public function setPlaceInsights($placeInsights)
{
$this->placeInsights = $placeInsights;
}
/**
* @return PlaceInsight[]
*/
public function getPlaceInsights()
{
return $this->placeInsights;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeInsightsResponse::class, 'Google_Service_AreaInsights_ComputeInsightsResponse');
@@ -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\AreaInsights;
class CustomArea extends \Google\Model
{
protected $polygonType = Polygon::class;
protected $polygonDataType = '';
/**
* Required. The custom area represented as a polygon
*
* @param Polygon $polygon
*/
public function setPolygon(Polygon $polygon)
{
$this->polygon = $polygon;
}
/**
* @return Polygon
*/
public function getPolygon()
{
return $this->polygon;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomArea::class, 'Google_Service_AreaInsights_CustomArea');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AreaInsights;
class Filter extends \Google\Collection
{
protected $collection_key = 'priceLevels';
protected $locationFilterType = LocationFilter::class;
protected $locationFilterDataType = '';
/**
* Optional. Restricts results to places whose operating status is included on
* this list. If operating_status is not set, OPERATING_STATUS_OPERATIONAL is
* used as default.
*
* @var string[]
*/
public $operatingStatus;
/**
* Optional. Restricts results to places whose price level is included on this
* list. If `price_levels` is not set, all price levels are included in the
* results.
*
* @var string[]
*/
public $priceLevels;
protected $ratingFilterType = RatingFilter::class;
protected $ratingFilterDataType = '';
protected $typeFilterType = TypeFilter::class;
protected $typeFilterDataType = '';
/**
* Required. Restricts results to places which are located in the area
* specified by location filters.
*
* @param LocationFilter $locationFilter
*/
public function setLocationFilter(LocationFilter $locationFilter)
{
$this->locationFilter = $locationFilter;
}
/**
* @return LocationFilter
*/
public function getLocationFilter()
{
return $this->locationFilter;
}
/**
* Optional. Restricts results to places whose operating status is included on
* this list. If operating_status is not set, OPERATING_STATUS_OPERATIONAL is
* used as default.
*
* @param string[] $operatingStatus
*/
public function setOperatingStatus($operatingStatus)
{
$this->operatingStatus = $operatingStatus;
}
/**
* @return string[]
*/
public function getOperatingStatus()
{
return $this->operatingStatus;
}
/**
* Optional. Restricts results to places whose price level is included on this
* list. If `price_levels` is not set, all price levels are included in the
* results.
*
* @param string[] $priceLevels
*/
public function setPriceLevels($priceLevels)
{
$this->priceLevels = $priceLevels;
}
/**
* @return string[]
*/
public function getPriceLevels()
{
return $this->priceLevels;
}
/**
* Optional. Restricts results to places whose average user ratings are in the
* range specified by rating_filter. If rating_filter is not set, all ratings
* are included in the result.
*
* @param RatingFilter $ratingFilter
*/
public function setRatingFilter(RatingFilter $ratingFilter)
{
$this->ratingFilter = $ratingFilter;
}
/**
* @return RatingFilter
*/
public function getRatingFilter()
{
return $this->ratingFilter;
}
/**
* Required. Place type filters.
*
* @param TypeFilter $typeFilter
*/
public function setTypeFilter(TypeFilter $typeFilter)
{
$this->typeFilter = $typeFilter;
}
/**
* @return TypeFilter
*/
public function getTypeFilter()
{
return $this->typeFilter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_AreaInsights_Filter');
@@ -0,0 +1,54 @@
<?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\AreaInsights;
class LatLng extends \Google\Model
{
/**
* The latitude in degrees. It must be in the range [-90.0, +90.0].
*
* @var
*/
public $latitude;
/**
* The longitude in degrees. It must be in the range [-180.0, +180.0].
*
* @var
*/
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_AreaInsights_LatLng');
@@ -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\AreaInsights;
class LocationFilter extends \Google\Model
{
protected $circleType = Circle::class;
protected $circleDataType = '';
protected $customAreaType = CustomArea::class;
protected $customAreaDataType = '';
protected $regionType = Region::class;
protected $regionDataType = '';
/**
* Area as a circle.
*
* @param Circle $circle
*/
public function setCircle(Circle $circle)
{
$this->circle = $circle;
}
/**
* @return Circle
*/
public function getCircle()
{
return $this->circle;
}
/**
* Custom area specified by a polygon.
*
* @param CustomArea $customArea
*/
public function setCustomArea(CustomArea $customArea)
{
$this->customArea = $customArea;
}
/**
* @return CustomArea
*/
public function getCustomArea()
{
return $this->customArea;
}
/**
* Area as region.
*
* @param Region $region
*/
public function setRegion(Region $region)
{
$this->region = $region;
}
/**
* @return Region
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationFilter::class, 'Google_Service_AreaInsights_LocationFilter');
@@ -0,0 +1,54 @@
<?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\AreaInsights;
class PlaceInsight extends \Google\Model
{
/**
* The unique identifier of the place. This resource name can be used to
* retrieve details about the place using the [Places
* API](https://developers.google.com/maps/documentation/places/web-
* service/reference/rest/v1/places/get).
*
* @var string
*/
public $place;
/**
* The unique identifier of the place. This resource name can be used to
* retrieve details about the place using the [Places
* API](https://developers.google.com/maps/documentation/places/web-
* service/reference/rest/v1/places/get).
*
* @param string $place
*/
public function setPlace($place)
{
$this->place = $place;
}
/**
* @return string
*/
public function getPlace()
{
return $this->place;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlaceInsight::class, 'Google_Service_AreaInsights_PlaceInsight');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AreaInsights;
class Polygon extends \Google\Collection
{
protected $collection_key = 'coordinates';
protected $coordinatesType = LatLng::class;
protected $coordinatesDataType = 'array';
/**
* Optional. The coordinates that define the polygon.
*
* @param LatLng[] $coordinates
*/
public function setCoordinates($coordinates)
{
$this->coordinates = $coordinates;
}
/**
* @return LatLng[]
*/
public function getCoordinates()
{
return $this->coordinates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Polygon::class, 'Google_Service_AreaInsights_Polygon');
@@ -0,0 +1,74 @@
<?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\AreaInsights;
class RatingFilter extends \Google\Model
{
/**
* Optional. Restricts results to places whose average user rating is strictly
* less than or equal to max_rating. Values must be between 1.0 and 5.0.
*
* @var float
*/
public $maxRating;
/**
* Optional. Restricts results to places whose average user rating is greater
* than or equal to min_rating. Values must be between 1.0 and 5.0.
*
* @var float
*/
public $minRating;
/**
* Optional. Restricts results to places whose average user rating is strictly
* less than or equal to max_rating. Values must be between 1.0 and 5.0.
*
* @param float $maxRating
*/
public function setMaxRating($maxRating)
{
$this->maxRating = $maxRating;
}
/**
* @return float
*/
public function getMaxRating()
{
return $this->maxRating;
}
/**
* Optional. Restricts results to places whose average user rating is greater
* than or equal to min_rating. Values must be between 1.0 and 5.0.
*
* @param float $minRating
*/
public function setMinRating($minRating)
{
$this->minRating = $minRating;
}
/**
* @return float
*/
public function getMinRating()
{
return $this->minRating;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RatingFilter::class, 'Google_Service_AreaInsights_RatingFilter');
@@ -0,0 +1,56 @@
<?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\AreaInsights;
class Region extends \Google\Model
{
/**
* The [place ID](https://developers.google.com/maps/documentation/places/web-
* service/place-id) of the geographic region. Not all region types are
* supported; see documentation for details. **Format:** Must be in the format
* `places/PLACE_ID`, where `PLACE_ID` is the unique identifier of a place.
* For example: `places/ChIJPV4oX_65j4ARVW8IJ6IJUYs`.
*
* @var string
*/
public $place;
/**
* The [place ID](https://developers.google.com/maps/documentation/places/web-
* service/place-id) of the geographic region. Not all region types are
* supported; see documentation for details. **Format:** Must be in the format
* `places/PLACE_ID`, where `PLACE_ID` is the unique identifier of a place.
* For example: `places/ChIJPV4oX_65j4ARVW8IJ6IJUYs`.
*
* @param string $place
*/
public function setPlace($place)
{
$this->place = $place;
}
/**
* @return string
*/
public function getPlace()
{
return $this->place;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Region::class, 'Google_Service_AreaInsights_Region');
@@ -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\AreaInsights\Resource;
use Google\Service\AreaInsights\ComputeInsightsRequest;
use Google\Service\AreaInsights\ComputeInsightsResponse;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $areainsightsService = new Google\Service\AreaInsights(...);
* $v1 = $areainsightsService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* This method lets you retrieve insights about areas using a variety of filter
* such as: area, place type, operating status, price level and ratings.
* Currently "count" and "places" insights are supported. With "count" insights
* you can answer questions such as "How many restaurant are located in
* California that are operational, are inexpensive and have an average rating
* of at least 4 stars" (see `insight` enum for more details). With "places"
* insights, you can determine which places match the requested filter. Clients
* can then use those place resource names to fetch more details about each
* individual place using the Places API. (v1.computeInsights)
*
* @param ComputeInsightsRequest $postBody
* @param array $optParams Optional parameters.
* @return ComputeInsightsResponse
* @throws \Google\Service\Exception
*/
public function computeInsights(ComputeInsightsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('computeInsights', [$params], ComputeInsightsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_AreaInsights_Resource_V1');
@@ -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\AreaInsights;
class TypeFilter extends \Google\Collection
{
protected $collection_key = 'includedTypes';
/**
* Optional. Excluded primary Place types.
*
* @var string[]
*/
public $excludedPrimaryTypes;
/**
* Optional. Excluded Place types.
*
* @var string[]
*/
public $excludedTypes;
/**
* Optional. Included primary Place types.
*
* @var string[]
*/
public $includedPrimaryTypes;
/**
* Optional. Included Place types.
*
* @var string[]
*/
public $includedTypes;
/**
* Optional. Excluded primary Place types.
*
* @param string[] $excludedPrimaryTypes
*/
public function setExcludedPrimaryTypes($excludedPrimaryTypes)
{
$this->excludedPrimaryTypes = $excludedPrimaryTypes;
}
/**
* @return string[]
*/
public function getExcludedPrimaryTypes()
{
return $this->excludedPrimaryTypes;
}
/**
* Optional. Excluded Place types.
*
* @param string[] $excludedTypes
*/
public function setExcludedTypes($excludedTypes)
{
$this->excludedTypes = $excludedTypes;
}
/**
* @return string[]
*/
public function getExcludedTypes()
{
return $this->excludedTypes;
}
/**
* Optional. Included primary Place types.
*
* @param string[] $includedPrimaryTypes
*/
public function setIncludedPrimaryTypes($includedPrimaryTypes)
{
$this->includedPrimaryTypes = $includedPrimaryTypes;
}
/**
* @return string[]
*/
public function getIncludedPrimaryTypes()
{
return $this->includedPrimaryTypes;
}
/**
* Optional. Included Place types.
*
* @param string[] $includedTypes
*/
public function setIncludedTypes($includedTypes)
{
$this->includedTypes = $includedTypes;
}
/**
* @return string[]
*/
public function getIncludedTypes()
{
return $this->includedTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TypeFilter::class, 'Google_Service_AreaInsights_TypeFilter');