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,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\MapsPlaces;
class GoogleGeoTypeViewport extends \Google\Model
{
protected $highType = GoogleTypeLatLng::class;
protected $highDataType = '';
protected $lowType = GoogleTypeLatLng::class;
protected $lowDataType = '';
/**
* Required. The high point of the viewport.
*
* @param GoogleTypeLatLng $high
*/
public function setHigh(GoogleTypeLatLng $high)
{
$this->high = $high;
}
/**
* @return GoogleTypeLatLng
*/
public function getHigh()
{
return $this->high;
}
/**
* Required. The low point of the viewport.
*
* @param GoogleTypeLatLng $low
*/
public function setLow(GoogleTypeLatLng $low)
{
$this->low = $low;
}
/**
* @return GoogleTypeLatLng
*/
public function getLow()
{
return $this->low;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleGeoTypeViewport::class, 'Google_Service_MapsPlaces_GoogleGeoTypeViewport');
@@ -0,0 +1,65 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AddressDescriptor extends \Google\Collection
{
protected $collection_key = 'landmarks';
protected $areasType = GoogleMapsPlacesV1AddressDescriptorArea::class;
protected $areasDataType = 'array';
protected $landmarksType = GoogleMapsPlacesV1AddressDescriptorLandmark::class;
protected $landmarksDataType = 'array';
/**
* A ranked list of containing or adjacent areas. The most recognizable and
* precise areas are ranked first.
*
* @param GoogleMapsPlacesV1AddressDescriptorArea[] $areas
*/
public function setAreas($areas)
{
$this->areas = $areas;
}
/**
* @return GoogleMapsPlacesV1AddressDescriptorArea[]
*/
public function getAreas()
{
return $this->areas;
}
/**
* A ranked list of nearby landmarks. The most recognizable and nearby
* landmarks are ranked first.
*
* @param GoogleMapsPlacesV1AddressDescriptorLandmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return GoogleMapsPlacesV1AddressDescriptorLandmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AddressDescriptor::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AddressDescriptor');
@@ -0,0 +1,128 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AddressDescriptorArea extends \Google\Model
{
/**
* The containment is unspecified.
*/
public const CONTAINMENT_CONTAINMENT_UNSPECIFIED = 'CONTAINMENT_UNSPECIFIED';
/**
* The target location is within the area region, close to the center.
*/
public const CONTAINMENT_WITHIN = 'WITHIN';
/**
* The target location is within the area region, close to the edge.
*/
public const CONTAINMENT_OUTSKIRTS = 'OUTSKIRTS';
/**
* The target location is outside the area region, but close by.
*/
public const CONTAINMENT_NEAR = 'NEAR';
/**
* Defines the spatial relationship between the target location and the area.
*
* @var string
*/
public $containment;
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
/**
* The area's resource name.
*
* @var string
*/
public $name;
/**
* The area's place id.
*
* @var string
*/
public $placeId;
/**
* Defines the spatial relationship between the target location and the area.
*
* Accepted values: CONTAINMENT_UNSPECIFIED, WITHIN, OUTSKIRTS, NEAR
*
* @param self::CONTAINMENT_* $containment
*/
public function setContainment($containment)
{
$this->containment = $containment;
}
/**
* @return self::CONTAINMENT_*
*/
public function getContainment()
{
return $this->containment;
}
/**
* The area's display name.
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The area's resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The area's place id.
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AddressDescriptorArea::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AddressDescriptorArea');
@@ -0,0 +1,223 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AddressDescriptorLandmark extends \Google\Collection
{
/**
* This is the default relationship when nothing more specific below applies.
*/
public const SPATIAL_RELATIONSHIP_NEAR = 'NEAR';
/**
* The landmark has a spatial geometry and the target is within its bounds.
*/
public const SPATIAL_RELATIONSHIP_WITHIN = 'WITHIN';
/**
* The target is directly adjacent to the landmark.
*/
public const SPATIAL_RELATIONSHIP_BESIDE = 'BESIDE';
/**
* The target is directly opposite the landmark on the other side of the road.
*/
public const SPATIAL_RELATIONSHIP_ACROSS_THE_ROAD = 'ACROSS_THE_ROAD';
/**
* On the same route as the landmark but not besides or across.
*/
public const SPATIAL_RELATIONSHIP_DOWN_THE_ROAD = 'DOWN_THE_ROAD';
/**
* Not on the same route as the landmark but a single turn away.
*/
public const SPATIAL_RELATIONSHIP_AROUND_THE_CORNER = 'AROUND_THE_CORNER';
/**
* Close to the landmark's structure but further away from its street
* entrances.
*/
public const SPATIAL_RELATIONSHIP_BEHIND = 'BEHIND';
protected $collection_key = 'types';
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
/**
* The landmark's resource name.
*
* @var string
*/
public $name;
/**
* The landmark's place id.
*
* @var string
*/
public $placeId;
/**
* Defines the spatial relationship between the target location and the
* landmark.
*
* @var string
*/
public $spatialRelationship;
/**
* The straight line distance, in meters, between the center point of the
* target and the center point of the landmark. In some situations, this value
* can be longer than `travel_distance_meters`.
*
* @var float
*/
public $straightLineDistanceMeters;
/**
* The travel distance, in meters, along the road network from the target to
* the landmark, if known. This value does not take into account the mode of
* transportation, such as walking, driving, or biking.
*
* @var float
*/
public $travelDistanceMeters;
/**
* A set of type tags for this landmark. For a complete list of possible
* values, see https://developers.google.com/maps/documentation/places/web-
* service/place-types.
*
* @var string[]
*/
public $types;
/**
* The landmark's display name.
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The landmark's resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The landmark's place id.
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
/**
* Defines the spatial relationship between the target location and the
* landmark.
*
* Accepted values: NEAR, WITHIN, BESIDE, ACROSS_THE_ROAD, DOWN_THE_ROAD,
* AROUND_THE_CORNER, BEHIND
*
* @param self::SPATIAL_RELATIONSHIP_* $spatialRelationship
*/
public function setSpatialRelationship($spatialRelationship)
{
$this->spatialRelationship = $spatialRelationship;
}
/**
* @return self::SPATIAL_RELATIONSHIP_*
*/
public function getSpatialRelationship()
{
return $this->spatialRelationship;
}
/**
* The straight line distance, in meters, between the center point of the
* target and the center point of the landmark. In some situations, this value
* can be longer than `travel_distance_meters`.
*
* @param float $straightLineDistanceMeters
*/
public function setStraightLineDistanceMeters($straightLineDistanceMeters)
{
$this->straightLineDistanceMeters = $straightLineDistanceMeters;
}
/**
* @return float
*/
public function getStraightLineDistanceMeters()
{
return $this->straightLineDistanceMeters;
}
/**
* The travel distance, in meters, along the road network from the target to
* the landmark, if known. This value does not take into account the mode of
* transportation, such as walking, driving, or biking.
*
* @param float $travelDistanceMeters
*/
public function setTravelDistanceMeters($travelDistanceMeters)
{
$this->travelDistanceMeters = $travelDistanceMeters;
}
/**
* @return float
*/
public function getTravelDistanceMeters()
{
return $this->travelDistanceMeters;
}
/**
* A set of type tags for this landmark. For a complete list of possible
* values, see https://developers.google.com/maps/documentation/places/web-
* service/place-types.
*
* @param string[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return string[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AddressDescriptorLandmark::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AddressDescriptorLandmark');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AuthorAttribution extends \Google\Model
{
/**
* Name of the author of the Photo or Review.
*
* @var string
*/
public $displayName;
/**
* Profile photo URI of the author of the Photo or Review.
*
* @var string
*/
public $photoUri;
/**
* URI of the author of the Photo or Review.
*
* @var string
*/
public $uri;
/**
* Name of the author of the Photo or Review.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Profile photo URI of the author of the Photo or Review.
*
* @param string $photoUri
*/
public function setPhotoUri($photoUri)
{
$this->photoUri = $photoUri;
}
/**
* @return string
*/
public function getPhotoUri()
{
return $this->photoUri;
}
/**
* URI of the author of the Photo or Review.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AuthorAttribution::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AuthorAttribution');
@@ -0,0 +1,395 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesRequest extends \Google\Collection
{
protected $collection_key = 'includedRegionCodes';
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @var bool
*/
public $includeFutureOpeningBusinesses;
/**
* Optional. Include pure service area businesses if the field is set to true.
* Pure service area business is a business that visits or delivers to
* customers directly but does not serve customers at their business address.
* For example, businesses like cleaning services or plumbers. Those
* businesses do not have a physical address or location on Google Maps.
* Places will not return fields including `location`, `plus_code`, and other
* location related fields for these businesses.
*
* @var bool
*/
public $includePureServiceAreaBusinesses;
/**
* Optional. If true, the response will include both Place and query
* predictions. Otherwise the response will only return Place predictions.
*
* @var bool
*/
public $includeQueryPredictions;
/**
* Optional. Included primary Place type (for example, "restaurant" or
* "gas_station") in Place Types
* (https://developers.google.com/maps/documentation/places/web-service/place-
* types), or only `(regions)`, or only `(cities)`. A Place is only returned
* if its primary type is included in this list. Up to 5 values can be
* specified. If no types are specified, all Place types are returned.
*
* @var string[]
*/
public $includedPrimaryTypes;
/**
* Optional. Only include results in the specified regions, specified as up to
* 15 CLDR two-character region codes. An empty set will not restrict the
* results. If both `location_restriction` and `included_region_codes` are
* set, the results will be located in the area of intersection.
*
* @var string[]
*/
public $includedRegionCodes;
/**
* Required. The text string on which to search.
*
* @var string
*/
public $input;
/**
* Optional. A zero-based Unicode character offset of `input` indicating the
* cursor position in `input`. The cursor position may influence what
* predictions are returned. If empty, defaults to the length of `input`.
*
* @var int
*/
public $inputOffset;
/**
* Optional. The language in which to return results. Defaults to en-US. The
* results may be in mixed languages if the language used in `input` is
* different from `language_code` or if the returned Place does not have a
* translation from the local language to `language_code`.
*
* @var string
*/
public $languageCode;
protected $locationBiasType = GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias::class;
protected $locationBiasDataType = '';
protected $locationRestrictionType = GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction::class;
protected $locationRestrictionDataType = '';
protected $originType = GoogleTypeLatLng::class;
protected $originDataType = '';
/**
* Optional. The region code, specified as a CLDR two-character region code.
* This affects address formatting, result ranking, and may influence what
* results are returned. This does not restrict results to the specified
* region. To restrict results to a region, use `region_code_restriction`.
*
* @var string
*/
public $regionCode;
/**
* Optional. A string which identifies an Autocomplete session for billing
* purposes. Must be a URL and filename safe base64 string with at most 36
* ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
* returned. The session begins when the user starts typing a query, and
* concludes when they select a place and a call to Place Details or Address
* Validation is made. Each session can have multiple queries, followed by one
* Place Details or Address Validation request. The credentials used for each
* request within a session must belong to the same Google Cloud Console
* project. Once a session has concluded, the token is no longer valid; your
* app must generate a fresh token for each session. If the `session_token`
* parameter is omitted, or if you reuse a session token, the session is
* charged as if no session token was provided (each request is billed
* separately). We recommend the following guidelines: * Use session tokens
* for all Place Autocomplete calls. * Generate a fresh token for each
* session. Using a version 4 UUID is recommended. * Ensure that the
* credentials used for all Place Autocomplete, Place Details, and Address
* Validation requests within a session belong to the same Cloud Console
* project. * Be sure to pass a unique session token for each new session.
* Using the same token for more than one session will result in each request
* being billed individually.
*
* @var string
*/
public $sessionToken;
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @param bool $includeFutureOpeningBusinesses
*/
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
{
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
}
/**
* @return bool
*/
public function getIncludeFutureOpeningBusinesses()
{
return $this->includeFutureOpeningBusinesses;
}
/**
* Optional. Include pure service area businesses if the field is set to true.
* Pure service area business is a business that visits or delivers to
* customers directly but does not serve customers at their business address.
* For example, businesses like cleaning services or plumbers. Those
* businesses do not have a physical address or location on Google Maps.
* Places will not return fields including `location`, `plus_code`, and other
* location related fields for these businesses.
*
* @param bool $includePureServiceAreaBusinesses
*/
public function setIncludePureServiceAreaBusinesses($includePureServiceAreaBusinesses)
{
$this->includePureServiceAreaBusinesses = $includePureServiceAreaBusinesses;
}
/**
* @return bool
*/
public function getIncludePureServiceAreaBusinesses()
{
return $this->includePureServiceAreaBusinesses;
}
/**
* Optional. If true, the response will include both Place and query
* predictions. Otherwise the response will only return Place predictions.
*
* @param bool $includeQueryPredictions
*/
public function setIncludeQueryPredictions($includeQueryPredictions)
{
$this->includeQueryPredictions = $includeQueryPredictions;
}
/**
* @return bool
*/
public function getIncludeQueryPredictions()
{
return $this->includeQueryPredictions;
}
/**
* Optional. Included primary Place type (for example, "restaurant" or
* "gas_station") in Place Types
* (https://developers.google.com/maps/documentation/places/web-service/place-
* types), or only `(regions)`, or only `(cities)`. A Place is only returned
* if its primary type is included in this list. Up to 5 values can be
* specified. If no types are specified, all Place types are returned.
*
* @param string[] $includedPrimaryTypes
*/
public function setIncludedPrimaryTypes($includedPrimaryTypes)
{
$this->includedPrimaryTypes = $includedPrimaryTypes;
}
/**
* @return string[]
*/
public function getIncludedPrimaryTypes()
{
return $this->includedPrimaryTypes;
}
/**
* Optional. Only include results in the specified regions, specified as up to
* 15 CLDR two-character region codes. An empty set will not restrict the
* results. If both `location_restriction` and `included_region_codes` are
* set, the results will be located in the area of intersection.
*
* @param string[] $includedRegionCodes
*/
public function setIncludedRegionCodes($includedRegionCodes)
{
$this->includedRegionCodes = $includedRegionCodes;
}
/**
* @return string[]
*/
public function getIncludedRegionCodes()
{
return $this->includedRegionCodes;
}
/**
* Required. The text string on which to search.
*
* @param string $input
*/
public function setInput($input)
{
$this->input = $input;
}
/**
* @return string
*/
public function getInput()
{
return $this->input;
}
/**
* Optional. A zero-based Unicode character offset of `input` indicating the
* cursor position in `input`. The cursor position may influence what
* predictions are returned. If empty, defaults to the length of `input`.
*
* @param int $inputOffset
*/
public function setInputOffset($inputOffset)
{
$this->inputOffset = $inputOffset;
}
/**
* @return int
*/
public function getInputOffset()
{
return $this->inputOffset;
}
/**
* Optional. The language in which to return results. Defaults to en-US. The
* results may be in mixed languages if the language used in `input` is
* different from `language_code` or if the returned Place does not have a
* translation from the local language to `language_code`.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Bias results to a specified location. At most one of
* `location_bias` or `location_restriction` should be set. If neither are
* set, the results will be biased by IP address, meaning the IP address will
* be mapped to an imprecise location and used as a biasing signal.
*
* @param GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias $locationBias
*/
public function setLocationBias(GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias $locationBias)
{
$this->locationBias = $locationBias;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias
*/
public function getLocationBias()
{
return $this->locationBias;
}
/**
* Optional. Restrict results to a specified location. At most one of
* `location_bias` or `location_restriction` should be set. If neither are
* set, the results will be biased by IP address, meaning the IP address will
* be mapped to an imprecise location and used as a biasing signal.
*
* @param GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction $locationRestriction
*/
public function setLocationRestriction(GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction $locationRestriction)
{
$this->locationRestriction = $locationRestriction;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction
*/
public function getLocationRestriction()
{
return $this->locationRestriction;
}
/**
* Optional. The origin point from which to calculate geodesic distance to the
* destination (returned as `distance_meters`). If this value is omitted,
* geodesic distance will not be returned.
*
* @param GoogleTypeLatLng $origin
*/
public function setOrigin(GoogleTypeLatLng $origin)
{
$this->origin = $origin;
}
/**
* @return GoogleTypeLatLng
*/
public function getOrigin()
{
return $this->origin;
}
/**
* Optional. The region code, specified as a CLDR two-character region code.
* This affects address formatting, result ranking, and may influence what
* results are returned. This does not restrict results to the specified
* region. To restrict results to a region, use `region_code_restriction`.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* Optional. A string which identifies an Autocomplete session for billing
* purposes. Must be a URL and filename safe base64 string with at most 36
* ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
* returned. The session begins when the user starts typing a query, and
* concludes when they select a place and a call to Place Details or Address
* Validation is made. Each session can have multiple queries, followed by one
* Place Details or Address Validation request. The credentials used for each
* request within a session must belong to the same Google Cloud Console
* project. Once a session has concluded, the token is no longer valid; your
* app must generate a fresh token for each session. If the `session_token`
* parameter is omitted, or if you reuse a session token, the session is
* charged as if no session token was provided (each request is billed
* separately). We recommend the following guidelines: * Use session tokens
* for all Place Autocomplete calls. * Generate a fresh token for each
* session. Using a version 4 UUID is recommended. * Ensure that the
* credentials used for all Place Autocomplete, Place Details, and Address
* Validation requests within a session belong to the same Cloud Console
* project. * Be sure to pass a unique session token for each new session.
* Using the same token for more than one session will result in each request
* being billed individually.
*
* @param string $sessionToken
*/
public function setSessionToken($sessionToken)
{
$this->sessionToken = $sessionToken;
}
/**
* @return string
*/
public function getSessionToken()
{
return $this->sessionToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesRequest::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesRequest');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias extends \Google\Model
{
protected $circleType = GoogleMapsPlacesV1Circle::class;
protected $circleDataType = '';
protected $rectangleType = GoogleGeoTypeViewport::class;
protected $rectangleDataType = '';
/**
* A circle defined by a center point and radius.
*
* @param GoogleMapsPlacesV1Circle $circle
*/
public function setCircle(GoogleMapsPlacesV1Circle $circle)
{
$this->circle = $circle;
}
/**
* @return GoogleMapsPlacesV1Circle
*/
public function getCircle()
{
return $this->circle;
}
/**
* A viewport defined by a northeast and a southwest corner.
*
* @param GoogleGeoTypeViewport $rectangle
*/
public function setRectangle(GoogleGeoTypeViewport $rectangle)
{
$this->rectangle = $rectangle;
}
/**
* @return GoogleGeoTypeViewport
*/
public function getRectangle()
{
return $this->rectangle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction extends \Google\Model
{
protected $circleType = GoogleMapsPlacesV1Circle::class;
protected $circleDataType = '';
protected $rectangleType = GoogleGeoTypeViewport::class;
protected $rectangleDataType = '';
/**
* A circle defined by a center point and radius.
*
* @param GoogleMapsPlacesV1Circle $circle
*/
public function setCircle(GoogleMapsPlacesV1Circle $circle)
{
$this->circle = $circle;
}
/**
* @return GoogleMapsPlacesV1Circle
*/
public function getCircle()
{
return $this->circle;
}
/**
* A viewport defined by a northeast and a southwest corner.
*
* @param GoogleGeoTypeViewport $rectangle
*/
public function setRectangle(GoogleGeoTypeViewport $rectangle)
{
$this->rectangle = $rectangle;
}
/**
* @return GoogleGeoTypeViewport
*/
public function getRectangle()
{
return $this->rectangle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponse extends \Google\Collection
{
protected $collection_key = 'suggestions';
protected $suggestionsType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion::class;
protected $suggestionsDataType = 'array';
/**
* Contains a list of suggestions, ordered in descending order of relevance.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion[] $suggestions
*/
public function setSuggestions($suggestions)
{
$this->suggestions = $suggestions;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion[]
*/
public function getSuggestions()
{
return $this->suggestions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponse::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponse');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion extends \Google\Model
{
protected $placePredictionType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction::class;
protected $placePredictionDataType = '';
protected $queryPredictionType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction::class;
protected $queryPredictionDataType = '';
/**
* A prediction for a Place.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction $placePrediction
*/
public function setPlacePrediction(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction $placePrediction)
{
$this->placePrediction = $placePrediction;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction
*/
public function getPlacePrediction()
{
return $this->placePrediction;
}
/**
* A prediction for a query.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction $queryPrediction
*/
public function setQueryPrediction(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction $queryPrediction)
{
$this->queryPrediction = $queryPrediction;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
*/
public function getQueryPrediction()
{
return $this->queryPrediction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion');
@@ -0,0 +1,73 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText extends \Google\Collection
{
protected $collection_key = 'matches';
protected $matchesType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange::class;
protected $matchesDataType = 'array';
/**
* Text that may be used as is or formatted with `matches`.
*
* @var string
*/
public $text;
/**
* A list of string ranges identifying where the input request matched in
* `text`. The ranges can be used to format specific parts of `text`. The
* substrings may not be exact matches of `input` if the matching was
* determined by criteria other than string matching (for example, spell
* corrections or transliterations). These values are Unicode character
* offsets of `text`. The ranges are guaranteed to be ordered in increasing
* offset values.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange[] $matches
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange[]
*/
public function getMatches()
{
return $this->matches;
}
/**
* Text that may be used as is or formatted with `matches`.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText');
@@ -0,0 +1,178 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction extends \Google\Collection
{
protected $collection_key = 'types';
/**
* The length of the geodesic in meters from `origin` if `origin` is
* specified. Certain predictions such as routes may not populate this field.
*
* @var int
*/
public $distanceMeters;
/**
* The resource name of the suggested Place. This name can be used in other
* APIs that accept Place names.
*
* @var string
*/
public $place;
/**
* The unique identifier of the suggested Place. This identifier can be used
* in other APIs that accept Place IDs.
*
* @var string
*/
public $placeId;
protected $structuredFormatType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat::class;
protected $structuredFormatDataType = '';
protected $textType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText::class;
protected $textDataType = '';
/**
* List of types that apply to this Place from Table A or Table B in
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. A type is a categorization of a Place. Places with shared types will
* share similar characteristics.
*
* @var string[]
*/
public $types;
/**
* The length of the geodesic in meters from `origin` if `origin` is
* specified. Certain predictions such as routes may not populate this field.
*
* @param int $distanceMeters
*/
public function setDistanceMeters($distanceMeters)
{
$this->distanceMeters = $distanceMeters;
}
/**
* @return int
*/
public function getDistanceMeters()
{
return $this->distanceMeters;
}
/**
* The resource name of the suggested Place. This name can be used in other
* APIs that accept Place names.
*
* @param string $place
*/
public function setPlace($place)
{
$this->place = $place;
}
/**
* @return string
*/
public function getPlace()
{
return $this->place;
}
/**
* The unique identifier of the suggested Place. This identifier can be used
* in other APIs that accept Place IDs.
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
/**
* A breakdown of the Place prediction into main text containing the name of
* the Place and secondary text containing additional disambiguating features
* (such as a city or region). `structured_format` is recommended for
* developers who wish to show two separate, but related, UI elements.
* Developers who wish to show a single UI element may want to use `text`
* instead. They are two different ways to represent a Place prediction. Users
* should not try to parse `structured_format` into `text` or vice versa.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat $structuredFormat
*/
public function setStructuredFormat(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat $structuredFormat)
{
$this->structuredFormat = $structuredFormat;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
*/
public function getStructuredFormat()
{
return $this->structuredFormat;
}
/**
* Contains the human-readable name for the returned result. For establishment
* results, this is usually the business name and address. `text` is
* recommended for developers who wish to show a single UI element. Developers
* who wish to show two separate, but related, UI elements may want to use
* `structured_format` instead. They are two different ways to represent a
* Place prediction. Users should not try to parse `structured_format` into
* `text` or vice versa. This text may be different from the `display_name`
* returned by GetPlace. May be in mixed languages if the request `input` and
* `language_code` are in different languages or if the Place does not have a
* translation from the local language to `language_code`.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $text
*/
public function setText(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $text)
{
$this->text = $text;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
*/
public function getText()
{
return $this->text;
}
/**
* List of types that apply to this Place from Table A or Table B in
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. A type is a categorization of a Place. Places with shared types will
* share similar characteristics.
*
* @param string[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return string[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction');
@@ -0,0 +1,77 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction extends \Google\Model
{
protected $structuredFormatType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat::class;
protected $structuredFormatDataType = '';
protected $textType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText::class;
protected $textDataType = '';
/**
* A breakdown of the query prediction into main text containing the query and
* secondary text containing additional disambiguating features (such as a
* city or region). `structured_format` is recommended for developers who wish
* to show two separate, but related, UI elements. Developers who wish to show
* a single UI element may want to use `text` instead. They are two different
* ways to represent a query prediction. Users should not try to parse
* `structured_format` into `text` or vice versa.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat $structuredFormat
*/
public function setStructuredFormat(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat $structuredFormat)
{
$this->structuredFormat = $structuredFormat;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
*/
public function getStructuredFormat()
{
return $this->structuredFormat;
}
/**
* The predicted text. This text does not represent a Place, but rather a text
* query that could be used in a search endpoint (for example, Text Search).
* `text` is recommended for developers who wish to show a single UI element.
* Developers who wish to show two separate, but related, UI elements may want
* to use `structured_format` instead. They are two different ways to
* represent a query prediction. Users should not try to parse
* `structured_format` into `text` or vice versa. May be in mixed languages if
* the request `input` and `language_code` are in different languages or if
* part of the query does not have a translation from the local language to
* `language_code`.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $text
*/
public function setText(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $text)
{
$this->text = $text;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange extends \Google\Model
{
/**
* Zero-based offset of the last Unicode character (exclusive).
*
* @var int
*/
public $endOffset;
/**
* Zero-based offset of the first Unicode character of the string (inclusive).
*
* @var int
*/
public $startOffset;
/**
* Zero-based offset of the last Unicode character (exclusive).
*
* @param int $endOffset
*/
public function setEndOffset($endOffset)
{
$this->endOffset = $endOffset;
}
/**
* @return int
*/
public function getEndOffset()
{
return $this->endOffset;
}
/**
* Zero-based offset of the first Unicode character of the string (inclusive).
*
* @param int $startOffset
*/
public function setStartOffset($startOffset)
{
$this->startOffset = $startOffset;
}
/**
* @return int
*/
public function getStartOffset()
{
return $this->startOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange');
@@ -0,0 +1,63 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat extends \Google\Model
{
protected $mainTextType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText::class;
protected $mainTextDataType = '';
protected $secondaryTextType = GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText::class;
protected $secondaryTextDataType = '';
/**
* Represents the name of the Place or query.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $mainText
*/
public function setMainText(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $mainText)
{
$this->mainText = $mainText;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
*/
public function getMainText()
{
return $this->mainText;
}
/**
* Represents additional disambiguating features (such as a city or region) to
* further identify the Place or refine the query.
*
* @param GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $secondaryText
*/
public function setSecondaryText(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText $secondaryText)
{
$this->secondaryText = $secondaryText;
}
/**
* @return GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
*/
public function getSecondaryText()
{
return $this->secondaryText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1Circle extends \Google\Model
{
protected $centerType = GoogleTypeLatLng::class;
protected $centerDataType = '';
/**
* Required. Radius measured in meters. The radius must be within [0.0,
* 50000.0].
*
* @var
*/
public $radius;
/**
* Required. Center latitude and longitude. The range of latitude must be
* within [-90.0, 90.0]. The range of the longitude must be within [-180.0,
* 180.0].
*
* @param GoogleTypeLatLng $center
*/
public function setCenter(GoogleTypeLatLng $center)
{
$this->center = $center;
}
/**
* @return GoogleTypeLatLng
*/
public function getCenter()
{
return $this->center;
}
public function setRadius($radius)
{
$this->radius = $radius;
}
public function getRadius()
{
return $this->radius;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1Circle::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1Circle');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1ContentBlock extends \Google\Collection
{
protected $collection_key = 'referencedPlaces';
protected $contentType = GoogleTypeLocalizedText::class;
protected $contentDataType = '';
/**
* The list of resource names of the referenced places. This name can be used
* in other APIs that accept Place resource names.
*
* @var string[]
*/
public $referencedPlaces;
/**
* Content related to the topic.
*
* @param GoogleTypeLocalizedText $content
*/
public function setContent(GoogleTypeLocalizedText $content)
{
$this->content = $content;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getContent()
{
return $this->content;
}
/**
* The list of resource names of the referenced places. This name can be used
* in other APIs that accept Place resource names.
*
* @param string[] $referencedPlaces
*/
public function setReferencedPlaces($referencedPlaces)
{
$this->referencedPlaces = $referencedPlaces;
}
/**
* @return string[]
*/
public function getReferencedPlaces()
{
return $this->referencedPlaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContentBlock::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContentBlock');
@@ -0,0 +1,85 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContent extends \Google\Collection
{
protected $collection_key = 'reviews';
protected $justificationsType = GoogleMapsPlacesV1ContextualContentJustification::class;
protected $justificationsDataType = 'array';
protected $photosType = GoogleMapsPlacesV1Photo::class;
protected $photosDataType = 'array';
protected $reviewsType = GoogleMapsPlacesV1Review::class;
protected $reviewsDataType = 'array';
/**
* Experimental: See
* https://developers.google.com/maps/documentation/places/web-
* service/experimental/places-generative for more details. Justifications for
* the place.
*
* @param GoogleMapsPlacesV1ContextualContentJustification[] $justifications
*/
public function setJustifications($justifications)
{
$this->justifications = $justifications;
}
/**
* @return GoogleMapsPlacesV1ContextualContentJustification[]
*/
public function getJustifications()
{
return $this->justifications;
}
/**
* Information (including references) about photos of this place, contextual
* to the place query.
*
* @param GoogleMapsPlacesV1Photo[] $photos
*/
public function setPhotos($photos)
{
$this->photos = $photos;
}
/**
* @return GoogleMapsPlacesV1Photo[]
*/
public function getPhotos()
{
return $this->photos;
}
/**
* List of reviews about this place, contextual to the place query.
*
* @param GoogleMapsPlacesV1Review[] $reviews
*/
public function setReviews($reviews)
{
$this->reviews = $reviews;
}
/**
* @return GoogleMapsPlacesV1Review[]
*/
public function getReviews()
{
return $this->reviews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContent::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContent');
@@ -0,0 +1,66 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContentJustification extends \Google\Model
{
protected $businessAvailabilityAttributesJustificationType = GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification::class;
protected $businessAvailabilityAttributesJustificationDataType = '';
protected $reviewJustificationType = GoogleMapsPlacesV1ContextualContentJustificationReviewJustification::class;
protected $reviewJustificationDataType = '';
/**
* Experimental: See
* https://developers.google.com/maps/documentation/places/web-
* service/experimental/places-generative for more details.
*
* @param GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification $businessAvailabilityAttributesJustification
*/
public function setBusinessAvailabilityAttributesJustification(GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification $businessAvailabilityAttributesJustification)
{
$this->businessAvailabilityAttributesJustification = $businessAvailabilityAttributesJustification;
}
/**
* @return GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
*/
public function getBusinessAvailabilityAttributesJustification()
{
return $this->businessAvailabilityAttributesJustification;
}
/**
* Experimental: See
* https://developers.google.com/maps/documentation/places/web-
* service/experimental/places-generative for more details.
*
* @param GoogleMapsPlacesV1ContextualContentJustificationReviewJustification $reviewJustification
*/
public function setReviewJustification(GoogleMapsPlacesV1ContextualContentJustificationReviewJustification $reviewJustification)
{
$this->reviewJustification = $reviewJustification;
}
/**
* @return GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
*/
public function getReviewJustification()
{
return $this->reviewJustification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContentJustification::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContentJustification');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification extends \Google\Model
{
/**
* If a place provides delivery.
*
* @var bool
*/
public $delivery;
/**
* If a place provides dine-in.
*
* @var bool
*/
public $dineIn;
/**
* If a place provides takeout.
*
* @var bool
*/
public $takeout;
/**
* If a place provides delivery.
*
* @param bool $delivery
*/
public function setDelivery($delivery)
{
$this->delivery = $delivery;
}
/**
* @return bool
*/
public function getDelivery()
{
return $this->delivery;
}
/**
* If a place provides dine-in.
*
* @param bool $dineIn
*/
public function setDineIn($dineIn)
{
$this->dineIn = $dineIn;
}
/**
* @return bool
*/
public function getDineIn()
{
return $this->dineIn;
}
/**
* If a place provides takeout.
*
* @param bool $takeout
*/
public function setTakeout($takeout)
{
$this->takeout = $takeout;
}
/**
* @return bool
*/
public function getTakeout()
{
return $this->takeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification');
@@ -0,0 +1,60 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification extends \Google\Model
{
protected $highlightedTextType = GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText::class;
protected $highlightedTextDataType = '';
protected $reviewType = GoogleMapsPlacesV1Review::class;
protected $reviewDataType = '';
/**
* @param GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText $highlightedText
*/
public function setHighlightedText(GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText $highlightedText)
{
$this->highlightedText = $highlightedText;
}
/**
* @return GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
*/
public function getHighlightedText()
{
return $this->highlightedText;
}
/**
* The review that the highlighted text is generated from.
*
* @param GoogleMapsPlacesV1Review $review
*/
public function setReview(GoogleMapsPlacesV1Review $review)
{
$this->review = $review;
}
/**
* @return GoogleMapsPlacesV1Review
*/
public function getReview()
{
return $this->review;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContentJustificationReviewJustification::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContentJustificationReviewJustification');
@@ -0,0 +1,63 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText extends \Google\Collection
{
protected $collection_key = 'highlightedTextRanges';
protected $highlightedTextRangesType = GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange::class;
protected $highlightedTextRangesDataType = 'array';
/**
* @var string
*/
public $text;
/**
* The list of the ranges of the highlighted text.
*
* @param GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange[] $highlightedTextRanges
*/
public function setHighlightedTextRanges($highlightedTextRanges)
{
$this->highlightedTextRanges = $highlightedTextRanges;
}
/**
* @return GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange[]
*/
public function getHighlightedTextRanges()
{
return $this->highlightedTextRanges;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange extends \Google\Model
{
/**
* @var int
*/
public $endIndex;
/**
* @var int
*/
public $startIndex;
/**
* @param int $endIndex
*/
public function setEndIndex($endIndex)
{
$this->endIndex = $endIndex;
}
/**
* @return int
*/
public function getEndIndex()
{
return $this->endIndex;
}
/**
* @param int $startIndex
*/
public function setStartIndex($startIndex)
{
$this->startIndex = $startIndex;
}
/**
* @return int
*/
public function getStartIndex()
{
return $this->startIndex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1EVChargeOptions extends \Google\Collection
{
protected $collection_key = 'connectorAggregation';
protected $connectorAggregationType = GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation::class;
protected $connectorAggregationDataType = 'array';
/**
* Number of connectors at this station. However, because some ports can have
* multiple connectors but only be able to charge one car at a time (e.g.) the
* number of connectors may be greater than the total number of cars which can
* charge simultaneously.
*
* @var int
*/
public $connectorCount;
/**
* A list of EV charging connector aggregations that contain connectors of the
* same type and same charge rate.
*
* @param GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation[] $connectorAggregation
*/
public function setConnectorAggregation($connectorAggregation)
{
$this->connectorAggregation = $connectorAggregation;
}
/**
* @return GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation[]
*/
public function getConnectorAggregation()
{
return $this->connectorAggregation;
}
/**
* Number of connectors at this station. However, because some ports can have
* multiple connectors but only be able to charge one car at a time (e.g.) the
* number of connectors may be greater than the total number of cars which can
* charge simultaneously.
*
* @param int $connectorCount
*/
public function setConnectorCount($connectorCount)
{
$this->connectorCount = $connectorCount;
}
/**
* @return int
*/
public function getConnectorCount()
{
return $this->connectorCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1EVChargeOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1EVChargeOptions');
@@ -0,0 +1,208 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation extends \Google\Model
{
/**
* Unspecified connector.
*/
public const TYPE_EV_CONNECTOR_TYPE_UNSPECIFIED = 'EV_CONNECTOR_TYPE_UNSPECIFIED';
/**
* Other connector types.
*/
public const TYPE_EV_CONNECTOR_TYPE_OTHER = 'EV_CONNECTOR_TYPE_OTHER';
/**
* J1772 type 1 connector.
*/
public const TYPE_EV_CONNECTOR_TYPE_J1772 = 'EV_CONNECTOR_TYPE_J1772';
/**
* IEC 62196 type 2 connector. Often referred to as MENNEKES.
*/
public const TYPE_EV_CONNECTOR_TYPE_TYPE_2 = 'EV_CONNECTOR_TYPE_TYPE_2';
/**
* CHAdeMO type connector.
*/
public const TYPE_EV_CONNECTOR_TYPE_CHADEMO = 'EV_CONNECTOR_TYPE_CHADEMO';
/**
* Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector
*/
public const TYPE_EV_CONNECTOR_TYPE_CCS_COMBO_1 = 'EV_CONNECTOR_TYPE_CCS_COMBO_1';
/**
* Combined Charging System (AC and DC). Based on Type-2 Mennekes connector
*/
public const TYPE_EV_CONNECTOR_TYPE_CCS_COMBO_2 = 'EV_CONNECTOR_TYPE_CCS_COMBO_2';
/**
* The generic TESLA connector. This is NACS in the North America but can be
* non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T).
* This value is less representative of an actual connector type, and more
* represents the ability to charge a Tesla brand vehicle at a Tesla owned
* charging station.
*/
public const TYPE_EV_CONNECTOR_TYPE_TESLA = 'EV_CONNECTOR_TYPE_TESLA';
/**
* GB/T type corresponds to the GB/T standard in China. This type covers all
* GB_T types.
*/
public const TYPE_EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T = 'EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T';
/**
* Unspecified wall outlet.
*/
public const TYPE_EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET = 'EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET';
/**
* The North American Charging System (NACS), standardized as SAE J3400.
*/
public const TYPE_EV_CONNECTOR_TYPE_NACS = 'EV_CONNECTOR_TYPE_NACS';
/**
* The timestamp when the connector availability information in this
* aggregation was last updated.
*
* @var string
*/
public $availabilityLastUpdateTime;
/**
* Number of connectors in this aggregation that are currently available.
*
* @var int
*/
public $availableCount;
/**
* Number of connectors in this aggregation.
*
* @var int
*/
public $count;
/**
* The static max charging rate in kw of each connector in the aggregation.
*
* @var
*/
public $maxChargeRateKw;
/**
* Number of connectors in this aggregation that are currently out of service.
*
* @var int
*/
public $outOfServiceCount;
/**
* The connector type of this aggregation.
*
* @var string
*/
public $type;
/**
* The timestamp when the connector availability information in this
* aggregation was last updated.
*
* @param string $availabilityLastUpdateTime
*/
public function setAvailabilityLastUpdateTime($availabilityLastUpdateTime)
{
$this->availabilityLastUpdateTime = $availabilityLastUpdateTime;
}
/**
* @return string
*/
public function getAvailabilityLastUpdateTime()
{
return $this->availabilityLastUpdateTime;
}
/**
* Number of connectors in this aggregation that are currently available.
*
* @param int $availableCount
*/
public function setAvailableCount($availableCount)
{
$this->availableCount = $availableCount;
}
/**
* @return int
*/
public function getAvailableCount()
{
return $this->availableCount;
}
/**
* Number of connectors in this aggregation.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
public function setMaxChargeRateKw($maxChargeRateKw)
{
$this->maxChargeRateKw = $maxChargeRateKw;
}
public function getMaxChargeRateKw()
{
return $this->maxChargeRateKw;
}
/**
* Number of connectors in this aggregation that are currently out of service.
*
* @param int $outOfServiceCount
*/
public function setOutOfServiceCount($outOfServiceCount)
{
$this->outOfServiceCount = $outOfServiceCount;
}
/**
* @return int
*/
public function getOutOfServiceCount()
{
return $this->outOfServiceCount;
}
/**
* The connector type of this aggregation.
*
* Accepted values: EV_CONNECTOR_TYPE_UNSPECIFIED, EV_CONNECTOR_TYPE_OTHER,
* EV_CONNECTOR_TYPE_J1772, EV_CONNECTOR_TYPE_TYPE_2,
* EV_CONNECTOR_TYPE_CHADEMO, EV_CONNECTOR_TYPE_CCS_COMBO_1,
* EV_CONNECTOR_TYPE_CCS_COMBO_2, EV_CONNECTOR_TYPE_TESLA,
* EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T,
* EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET, EV_CONNECTOR_TYPE_NACS
*
* @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(GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation');
@@ -0,0 +1,46 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1FuelOptions extends \Google\Collection
{
protected $collection_key = 'fuelPrices';
protected $fuelPricesType = GoogleMapsPlacesV1FuelOptionsFuelPrice::class;
protected $fuelPricesDataType = 'array';
/**
* The last known fuel price for each type of fuel this station has. There is
* one entry per fuel type this station has. Order is not important.
*
* @param GoogleMapsPlacesV1FuelOptionsFuelPrice[] $fuelPrices
*/
public function setFuelPrices($fuelPrices)
{
$this->fuelPrices = $fuelPrices;
}
/**
* @return GoogleMapsPlacesV1FuelOptionsFuelPrice[]
*/
public function getFuelPrices()
{
return $this->fuelPrices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1FuelOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1FuelOptions');
@@ -0,0 +1,176 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1FuelOptionsFuelPrice extends \Google\Model
{
/**
* Unspecified fuel type.
*/
public const TYPE_FUEL_TYPE_UNSPECIFIED = 'FUEL_TYPE_UNSPECIFIED';
/**
* Diesel fuel.
*/
public const TYPE_DIESEL = 'DIESEL';
/**
* Diesel plus fuel.
*/
public const TYPE_DIESEL_PLUS = 'DIESEL_PLUS';
/**
* Regular unleaded.
*/
public const TYPE_REGULAR_UNLEADED = 'REGULAR_UNLEADED';
/**
* Midgrade.
*/
public const TYPE_MIDGRADE = 'MIDGRADE';
/**
* Premium.
*/
public const TYPE_PREMIUM = 'PREMIUM';
/**
* SP 91.
*/
public const TYPE_SP91 = 'SP91';
/**
* SP 91 E10.
*/
public const TYPE_SP91_E10 = 'SP91_E10';
/**
* SP 92.
*/
public const TYPE_SP92 = 'SP92';
/**
* SP 95.
*/
public const TYPE_SP95 = 'SP95';
/**
* SP95 E10.
*/
public const TYPE_SP95_E10 = 'SP95_E10';
/**
* SP 98.
*/
public const TYPE_SP98 = 'SP98';
/**
* SP 99.
*/
public const TYPE_SP99 = 'SP99';
/**
* SP 100.
*/
public const TYPE_SP100 = 'SP100';
/**
* Liquefied Petroleum Gas.
*/
public const TYPE_LPG = 'LPG';
/**
* E 80.
*/
public const TYPE_E80 = 'E80';
/**
* E 85.
*/
public const TYPE_E85 = 'E85';
/**
* E 100.
*/
public const TYPE_E100 = 'E100';
/**
* Methane.
*/
public const TYPE_METHANE = 'METHANE';
/**
* Bio-diesel.
*/
public const TYPE_BIO_DIESEL = 'BIO_DIESEL';
/**
* Truck diesel.
*/
public const TYPE_TRUCK_DIESEL = 'TRUCK_DIESEL';
protected $priceType = GoogleTypeMoney::class;
protected $priceDataType = '';
/**
* The type of fuel.
*
* @var string
*/
public $type;
/**
* The time the fuel price was last updated.
*
* @var string
*/
public $updateTime;
/**
* The price of the fuel.
*
* @param GoogleTypeMoney $price
*/
public function setPrice(GoogleTypeMoney $price)
{
$this->price = $price;
}
/**
* @return GoogleTypeMoney
*/
public function getPrice()
{
return $this->price;
}
/**
* The type of fuel.
*
* Accepted values: FUEL_TYPE_UNSPECIFIED, DIESEL, DIESEL_PLUS,
* REGULAR_UNLEADED, MIDGRADE, PREMIUM, SP91, SP91_E10, SP92, SP95, SP95_E10,
* SP98, SP99, SP100, LPG, E80, E85, E100, METHANE, BIO_DIESEL, TRUCK_DIESEL
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The time the fuel price was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1FuelOptionsFuelPrice::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1FuelOptionsFuelPrice');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1Int32Range extends \Google\Model
{
/**
* @var int
*/
public $max;
/**
* @var int
*/
public $min;
/**
* @param int
*/
public function setMax($max)
{
$this->max = $max;
}
/**
* @return int
*/
public function getMax()
{
return $this->max;
}
/**
* @param int
*/
public function setMin($min)
{
$this->min = $min;
}
/**
* @return int
*/
public function getMin()
{
return $this->min;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1Int32Range::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1Int32Range');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MapsPlaces;
class GoogleMapsPlacesV1Photo extends \Google\Collection
{
protected $collection_key = 'authorAttributions';
protected $authorAttributionsType = GoogleMapsPlacesV1AuthorAttribution::class;
protected $authorAttributionsDataType = 'array';
/**
* A link where users can flag a problem with the photo.
*
* @var string
*/
public $flagContentUri;
/**
* A link to show the photo on Google Maps.
*
* @var string
*/
public $googleMapsUri;
/**
* The maximum available height, in pixels.
*
* @var int
*/
public $heightPx;
/**
* Identifier. A reference representing this place photo which may be used to
* look up this place photo again (also called the API "resource" name:
* `places/{place_id}/photos/{photo}`).
*
* @var string
*/
public $name;
/**
* The maximum available width, in pixels.
*
* @var int
*/
public $widthPx;
/**
* This photo's authors.
*
* @param GoogleMapsPlacesV1AuthorAttribution[] $authorAttributions
*/
public function setAuthorAttributions($authorAttributions)
{
$this->authorAttributions = $authorAttributions;
}
/**
* @return GoogleMapsPlacesV1AuthorAttribution[]
*/
public function getAuthorAttributions()
{
return $this->authorAttributions;
}
/**
* A link where users can flag a problem with the photo.
*
* @param string $flagContentUri
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
/**
* A link to show the photo on Google Maps.
*
* @param string $googleMapsUri
*/
public function setGoogleMapsUri($googleMapsUri)
{
$this->googleMapsUri = $googleMapsUri;
}
/**
* @return string
*/
public function getGoogleMapsUri()
{
return $this->googleMapsUri;
}
/**
* The maximum available height, in pixels.
*
* @param int $heightPx
*/
public function setHeightPx($heightPx)
{
$this->heightPx = $heightPx;
}
/**
* @return int
*/
public function getHeightPx()
{
return $this->heightPx;
}
/**
* Identifier. A reference representing this place photo which may be used to
* look up this place photo again (also called the API "resource" name:
* `places/{place_id}/photos/{photo}`).
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The maximum available width, in pixels.
*
* @param int $widthPx
*/
public function setWidthPx($widthPx)
{
$this->widthPx = $widthPx;
}
/**
* @return int
*/
public function getWidthPx()
{
return $this->widthPx;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1Photo::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1Photo');
@@ -0,0 +1,72 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PhotoMedia extends \Google\Model
{
/**
* The resource name of a photo media in the format:
* `places/{place_id}/photos/{photo_reference}/media`.
*
* @var string
*/
public $name;
/**
* A short-lived uri that can be used to render the photo.
*
* @var string
*/
public $photoUri;
/**
* The resource name of a photo media in the format:
* `places/{place_id}/photos/{photo_reference}/media`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A short-lived uri that can be used to render the photo.
*
* @param string $photoUri
*/
public function setPhotoUri($photoUri)
{
$this->photoUri = $photoUri;
}
/**
* @return string
*/
public function getPhotoUri()
{
return $this->photoUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PhotoMedia::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PhotoMedia');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MapsPlaces;
class GoogleMapsPlacesV1PlaceAccessibilityOptions extends \Google\Model
{
/**
* Places has wheelchair accessible entrance.
*
* @var bool
*/
public $wheelchairAccessibleEntrance;
/**
* Place offers wheelchair accessible parking.
*
* @var bool
*/
public $wheelchairAccessibleParking;
/**
* Place has wheelchair accessible restroom.
*
* @var bool
*/
public $wheelchairAccessibleRestroom;
/**
* Place has wheelchair accessible seating.
*
* @var bool
*/
public $wheelchairAccessibleSeating;
/**
* Places has wheelchair accessible entrance.
*
* @param bool $wheelchairAccessibleEntrance
*/
public function setWheelchairAccessibleEntrance($wheelchairAccessibleEntrance)
{
$this->wheelchairAccessibleEntrance = $wheelchairAccessibleEntrance;
}
/**
* @return bool
*/
public function getWheelchairAccessibleEntrance()
{
return $this->wheelchairAccessibleEntrance;
}
/**
* Place offers wheelchair accessible parking.
*
* @param bool $wheelchairAccessibleParking
*/
public function setWheelchairAccessibleParking($wheelchairAccessibleParking)
{
$this->wheelchairAccessibleParking = $wheelchairAccessibleParking;
}
/**
* @return bool
*/
public function getWheelchairAccessibleParking()
{
return $this->wheelchairAccessibleParking;
}
/**
* Place has wheelchair accessible restroom.
*
* @param bool $wheelchairAccessibleRestroom
*/
public function setWheelchairAccessibleRestroom($wheelchairAccessibleRestroom)
{
$this->wheelchairAccessibleRestroom = $wheelchairAccessibleRestroom;
}
/**
* @return bool
*/
public function getWheelchairAccessibleRestroom()
{
return $this->wheelchairAccessibleRestroom;
}
/**
* Place has wheelchair accessible seating.
*
* @param bool $wheelchairAccessibleSeating
*/
public function setWheelchairAccessibleSeating($wheelchairAccessibleSeating)
{
$this->wheelchairAccessibleSeating = $wheelchairAccessibleSeating;
}
/**
* @return bool
*/
public function getWheelchairAccessibleSeating()
{
return $this->wheelchairAccessibleSeating;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceAccessibilityOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceAccessibilityOptions');
@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MapsPlaces;
class GoogleMapsPlacesV1PlaceAddressComponent extends \Google\Collection
{
protected $collection_key = 'types';
/**
* The language used to format this components, in CLDR notation.
*
* @var string
*/
public $languageCode;
/**
* The full text description or name of the address component. For example, an
* address component for the country Australia may have a long_name of
* "Australia".
*
* @var string
*/
public $longText;
/**
* An abbreviated textual name for the address component, if available. For
* example, an address component for the country of Australia may have a
* short_name of "AU".
*
* @var string
*/
public $shortText;
/**
* An array indicating the type(s) of the address component.
*
* @var string[]
*/
public $types;
/**
* The language used to format this components, in CLDR notation.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* The full text description or name of the address component. For example, an
* address component for the country Australia may have a long_name of
* "Australia".
*
* @param string $longText
*/
public function setLongText($longText)
{
$this->longText = $longText;
}
/**
* @return string
*/
public function getLongText()
{
return $this->longText;
}
/**
* An abbreviated textual name for the address component, if available. For
* example, an address component for the country of Australia may have a
* short_name of "AU".
*
* @param string $shortText
*/
public function setShortText($shortText)
{
$this->shortText = $shortText;
}
/**
* @return string
*/
public function getShortText()
{
return $this->shortText;
}
/**
* An array indicating the type(s) of the address component.
*
* @param string[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return string[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceAddressComponent::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceAddressComponent');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceAreaSummary extends \Google\Collection
{
protected $collection_key = 'contentBlocks';
protected $contentBlocksType = GoogleMapsPlacesV1ContentBlock::class;
protected $contentBlocksDataType = 'array';
/**
* @var string
*/
public $flagContentUri;
/**
* @param GoogleMapsPlacesV1ContentBlock[]
*/
public function setContentBlocks($contentBlocks)
{
$this->contentBlocks = $contentBlocks;
}
/**
* @return GoogleMapsPlacesV1ContentBlock[]
*/
public function getContentBlocks()
{
return $this->contentBlocks;
}
/**
* @param string
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceAreaSummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceAreaSummary');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceAttribution extends \Google\Model
{
/**
* Name of the Place's data provider.
*
* @var string
*/
public $provider;
/**
* URI to the Place's data provider.
*
* @var string
*/
public $providerUri;
/**
* Name of the Place's data provider.
*
* @param string $provider
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* URI to the Place's data provider.
*
* @param string $providerUri
*/
public function setProviderUri($providerUri)
{
$this->providerUri = $providerUri;
}
/**
* @return string
*/
public function getProviderUri()
{
return $this->providerUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceAttribution::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceAttribution');
@@ -0,0 +1,90 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceConsumerAlert extends \Google\Model
{
protected $detailsType = GoogleMapsPlacesV1PlaceConsumerAlertDetails::class;
protected $detailsDataType = '';
/**
* The language code of the consumer alert message. This is a BCP 47 language
* code.
*
* @var string
*/
public $languageCode;
/**
* The overview of the consumer alert message.
*
* @var string
*/
public $overview;
/**
* The details of the consumer alert message.
*
* @param GoogleMapsPlacesV1PlaceConsumerAlertDetails $details
*/
public function setDetails(GoogleMapsPlacesV1PlaceConsumerAlertDetails $details)
{
$this->details = $details;
}
/**
* @return GoogleMapsPlacesV1PlaceConsumerAlertDetails
*/
public function getDetails()
{
return $this->details;
}
/**
* The language code of the consumer alert message. This is a BCP 47 language
* code.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* The overview of the consumer alert message.
*
* @param string $overview
*/
public function setOverview($overview)
{
$this->overview = $overview;
}
/**
* @return string
*/
public function getOverview()
{
return $this->overview;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceConsumerAlert::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceConsumerAlert');
@@ -0,0 +1,88 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceConsumerAlertDetails extends \Google\Model
{
protected $aboutLinkType = GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink::class;
protected $aboutLinkDataType = '';
/**
* The description of the consumer alert message.
*
* @var string
*/
public $description;
/**
* The title to show together with the description.
*
* @var string
*/
public $title;
/**
* The link to show together with the description to provide more information.
*
* @param GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink $aboutLink
*/
public function setAboutLink(GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink $aboutLink)
{
$this->aboutLink = $aboutLink;
}
/**
* @return GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink
*/
public function getAboutLink()
{
return $this->aboutLink;
}
/**
* The description of the consumer alert message.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The title to show together with the description.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceConsumerAlertDetails::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceConsumerAlertDetails');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink extends \Google\Model
{
/**
* The title to show for the link.
*
* @var string
*/
public $title;
/**
* The uri of the link.
*
* @var string
*/
public $uri;
/**
* The title to show for the link.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* The uri of the link.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceContainingPlace extends \Google\Model
{
/**
* The place id of the place in which this place is located.
*
* @var string
*/
public $id;
/**
* The resource name of the place in which this place is located.
*
* @var string
*/
public $name;
/**
* The place id of the place in which this place is located.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The resource name of the place in which this place is located.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceContainingPlace::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceContainingPlace');
@@ -0,0 +1,140 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceEvChargeAmenitySummary extends \Google\Model
{
protected $coffeeType = GoogleMapsPlacesV1ContentBlock::class;
protected $coffeeDataType = '';
protected $disclosureTextType = GoogleTypeLocalizedText::class;
protected $disclosureTextDataType = '';
/**
* A link where users can flag a problem with the summary.
*
* @var string
*/
public $flagContentUri;
protected $overviewType = GoogleMapsPlacesV1ContentBlock::class;
protected $overviewDataType = '';
protected $restaurantType = GoogleMapsPlacesV1ContentBlock::class;
protected $restaurantDataType = '';
protected $storeType = GoogleMapsPlacesV1ContentBlock::class;
protected $storeDataType = '';
/**
* A summary of the nearby coffee options.
*
* @param GoogleMapsPlacesV1ContentBlock $coffee
*/
public function setCoffee(GoogleMapsPlacesV1ContentBlock $coffee)
{
$this->coffee = $coffee;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getCoffee()
{
return $this->coffee;
}
/**
* The AI disclosure message "Summarized with Gemini" (and its localized
* variants). This will be in the language specified in the request if
* available.
*
* @param GoogleTypeLocalizedText $disclosureText
*/
public function setDisclosureText(GoogleTypeLocalizedText $disclosureText)
{
$this->disclosureText = $disclosureText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisclosureText()
{
return $this->disclosureText;
}
/**
* A link where users can flag a problem with the summary.
*
* @param string $flagContentUri
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
/**
* An overview of the available amenities. This is guaranteed to be provided.
*
* @param GoogleMapsPlacesV1ContentBlock $overview
*/
public function setOverview(GoogleMapsPlacesV1ContentBlock $overview)
{
$this->overview = $overview;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getOverview()
{
return $this->overview;
}
/**
* A summary of the nearby restaurants.
*
* @param GoogleMapsPlacesV1ContentBlock $restaurant
*/
public function setRestaurant(GoogleMapsPlacesV1ContentBlock $restaurant)
{
$this->restaurant = $restaurant;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getRestaurant()
{
return $this->restaurant;
}
/**
* A summary of the nearby stores.
*
* @param GoogleMapsPlacesV1ContentBlock $store
*/
public function setStore(GoogleMapsPlacesV1ContentBlock $store)
{
$this->store = $store;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getStore()
{
return $this->store;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceEvChargeAmenitySummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceEvChargeAmenitySummary');
@@ -0,0 +1,86 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceGenerativeSummary extends \Google\Model
{
protected $disclosureTextType = GoogleTypeLocalizedText::class;
protected $disclosureTextDataType = '';
protected $overviewType = GoogleTypeLocalizedText::class;
protected $overviewDataType = '';
/**
* A link where users can flag a problem with the overview summary.
*
* @var string
*/
public $overviewFlagContentUri;
/**
* The AI disclosure message "Summarized with Gemini" (and its localized
* variants). This will be in the language specified in the request if
* available.
*
* @param GoogleTypeLocalizedText $disclosureText
*/
public function setDisclosureText(GoogleTypeLocalizedText $disclosureText)
{
$this->disclosureText = $disclosureText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisclosureText()
{
return $this->disclosureText;
}
/**
* The overview of the place.
*
* @param GoogleTypeLocalizedText $overview
*/
public function setOverview(GoogleTypeLocalizedText $overview)
{
$this->overview = $overview;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getOverview()
{
return $this->overview;
}
/**
* A link where users can flag a problem with the overview summary.
*
* @param string $overviewFlagContentUri
*/
public function setOverviewFlagContentUri($overviewFlagContentUri)
{
$this->overviewFlagContentUri = $overviewFlagContentUri;
}
/**
* @return string
*/
public function getOverviewFlagContentUri()
{
return $this->overviewFlagContentUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceGenerativeSummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceGenerativeSummary');
@@ -0,0 +1,138 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceGoogleMapsLinks extends \Google\Model
{
/**
* A link to show the directions to the place. The link only populates the
* destination location and uses the default travel mode `DRIVE`.
*
* @var string
*/
public $directionsUri;
/**
* A link to show photos of this place on Google Maps.
*
* @var string
*/
public $photosUri;
/**
* A link to show this place.
*
* @var string
*/
public $placeUri;
/**
* A link to show reviews of this place on Google Maps.
*
* @var string
*/
public $reviewsUri;
/**
* A link to write a review for this place on Google Maps.
*
* @var string
*/
public $writeAReviewUri;
/**
* A link to show the directions to the place. The link only populates the
* destination location and uses the default travel mode `DRIVE`.
*
* @param string $directionsUri
*/
public function setDirectionsUri($directionsUri)
{
$this->directionsUri = $directionsUri;
}
/**
* @return string
*/
public function getDirectionsUri()
{
return $this->directionsUri;
}
/**
* A link to show photos of this place on Google Maps.
*
* @param string $photosUri
*/
public function setPhotosUri($photosUri)
{
$this->photosUri = $photosUri;
}
/**
* @return string
*/
public function getPhotosUri()
{
return $this->photosUri;
}
/**
* A link to show this place.
*
* @param string $placeUri
*/
public function setPlaceUri($placeUri)
{
$this->placeUri = $placeUri;
}
/**
* @return string
*/
public function getPlaceUri()
{
return $this->placeUri;
}
/**
* A link to show reviews of this place on Google Maps.
*
* @param string $reviewsUri
*/
public function setReviewsUri($reviewsUri)
{
$this->reviewsUri = $reviewsUri;
}
/**
* @return string
*/
public function getReviewsUri()
{
return $this->reviewsUri;
}
/**
* A link to write a review for this place on Google Maps.
*
* @param string $writeAReviewUri
*/
public function setWriteAReviewUri($writeAReviewUri)
{
$this->writeAReviewUri = $writeAReviewUri;
}
/**
* @return string
*/
public function getWriteAReviewUri()
{
return $this->writeAReviewUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceGoogleMapsLinks::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceGoogleMapsLinks');
@@ -0,0 +1,104 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceNeighborhoodSummary extends \Google\Model
{
protected $descriptionType = GoogleMapsPlacesV1ContentBlock::class;
protected $descriptionDataType = '';
protected $disclosureTextType = GoogleTypeLocalizedText::class;
protected $disclosureTextDataType = '';
/**
* A link where users can flag a problem with the summary.
*
* @var string
*/
public $flagContentUri;
protected $overviewType = GoogleMapsPlacesV1ContentBlock::class;
protected $overviewDataType = '';
/**
* A detailed description of the neighborhood.
*
* @param GoogleMapsPlacesV1ContentBlock $description
*/
public function setDescription(GoogleMapsPlacesV1ContentBlock $description)
{
$this->description = $description;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getDescription()
{
return $this->description;
}
/**
* The AI disclosure message "Summarized with Gemini" (and its localized
* variants). This will be in the language specified in the request if
* available.
*
* @param GoogleTypeLocalizedText $disclosureText
*/
public function setDisclosureText(GoogleTypeLocalizedText $disclosureText)
{
$this->disclosureText = $disclosureText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisclosureText()
{
return $this->disclosureText;
}
/**
* A link where users can flag a problem with the summary.
*
* @param string $flagContentUri
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
/**
* An overview summary of the neighborhood.
*
* @param GoogleMapsPlacesV1ContentBlock $overview
*/
public function setOverview(GoogleMapsPlacesV1ContentBlock $overview)
{
$this->overview = $overview;
}
/**
* @return GoogleMapsPlacesV1ContentBlock
*/
public function getOverview()
{
return $this->overview;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceNeighborhoodSummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceNeighborhoodSummary');
@@ -0,0 +1,273 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceOpeningHours extends \Google\Collection
{
/**
* Default value when secondary hour type is not specified.
*/
public const SECONDARY_HOURS_TYPE_SECONDARY_HOURS_TYPE_UNSPECIFIED = 'SECONDARY_HOURS_TYPE_UNSPECIFIED';
/**
* The drive-through hour for banks, restaurants, or pharmacies.
*/
public const SECONDARY_HOURS_TYPE_DRIVE_THROUGH = 'DRIVE_THROUGH';
/**
* The happy hour.
*/
public const SECONDARY_HOURS_TYPE_HAPPY_HOUR = 'HAPPY_HOUR';
/**
* The delivery hour.
*/
public const SECONDARY_HOURS_TYPE_DELIVERY = 'DELIVERY';
/**
* The takeout hour.
*/
public const SECONDARY_HOURS_TYPE_TAKEOUT = 'TAKEOUT';
/**
* The kitchen hour.
*/
public const SECONDARY_HOURS_TYPE_KITCHEN = 'KITCHEN';
/**
* The breakfast hour.
*/
public const SECONDARY_HOURS_TYPE_BREAKFAST = 'BREAKFAST';
/**
* The lunch hour.
*/
public const SECONDARY_HOURS_TYPE_LUNCH = 'LUNCH';
/**
* The dinner hour.
*/
public const SECONDARY_HOURS_TYPE_DINNER = 'DINNER';
/**
* The brunch hour.
*/
public const SECONDARY_HOURS_TYPE_BRUNCH = 'BRUNCH';
/**
* The pickup hour.
*/
public const SECONDARY_HOURS_TYPE_PICKUP = 'PICKUP';
/**
* The access hours for storage places.
*/
public const SECONDARY_HOURS_TYPE_ACCESS = 'ACCESS';
/**
* The special hours for seniors.
*/
public const SECONDARY_HOURS_TYPE_SENIOR_HOURS = 'SENIOR_HOURS';
/**
* The online service hours.
*/
public const SECONDARY_HOURS_TYPE_ONLINE_SERVICE_HOURS = 'ONLINE_SERVICE_HOURS';
protected $collection_key = 'weekdayDescriptions';
/**
* The next time the current opening hours period ends up to 7 days in the
* future. This field is only populated if the opening hours period is active
* at the time of serving the request.
*
* @var string
*/
public $nextCloseTime;
/**
* The next time the current opening hours period starts up to 7 days in the
* future. This field is only populated if the opening hours period is not
* active at the time of serving the request.
*
* @var string
*/
public $nextOpenTime;
/**
* Whether the opening hours period is currently active. For regular opening
* hours and current opening hours, this field means whether the place is
* open. For secondary opening hours and current secondary opening hours, this
* field means whether the secondary hours of this place is active.
*
* @var bool
*/
public $openNow;
protected $periodsType = GoogleMapsPlacesV1PlaceOpeningHoursPeriod::class;
protected $periodsDataType = 'array';
/**
* A type string used to identify the type of secondary hours.
*
* @var string
*/
public $secondaryHoursType;
protected $specialDaysType = GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay::class;
protected $specialDaysDataType = 'array';
/**
* Localized strings describing the opening hours of this place, one string
* for each day of the week. NOTE: The order of the days and the start of the
* week is determined by the locale (language and region). The ordering of the
* `periods` array is independent of the ordering of the
* `weekday_descriptions` array. Do not assume they will begin on the same
* day. Will be empty if the hours are unknown or could not be converted to
* localized text. Example: "Sun: 18:0006:00"
*
* @var string[]
*/
public $weekdayDescriptions;
/**
* The next time the current opening hours period ends up to 7 days in the
* future. This field is only populated if the opening hours period is active
* at the time of serving the request.
*
* @param string $nextCloseTime
*/
public function setNextCloseTime($nextCloseTime)
{
$this->nextCloseTime = $nextCloseTime;
}
/**
* @return string
*/
public function getNextCloseTime()
{
return $this->nextCloseTime;
}
/**
* The next time the current opening hours period starts up to 7 days in the
* future. This field is only populated if the opening hours period is not
* active at the time of serving the request.
*
* @param string $nextOpenTime
*/
public function setNextOpenTime($nextOpenTime)
{
$this->nextOpenTime = $nextOpenTime;
}
/**
* @return string
*/
public function getNextOpenTime()
{
return $this->nextOpenTime;
}
/**
* Whether the opening hours period is currently active. For regular opening
* hours and current opening hours, this field means whether the place is
* open. For secondary opening hours and current secondary opening hours, this
* field means whether the secondary hours of this place is active.
*
* @param bool $openNow
*/
public function setOpenNow($openNow)
{
$this->openNow = $openNow;
}
/**
* @return bool
*/
public function getOpenNow()
{
return $this->openNow;
}
/**
* The periods that this place is open during the week. The periods are in
* chronological order, in the place-local timezone. An empty (but not absent)
* value indicates a place that is never open, e.g. because it is closed
* temporarily for renovations. The starting day of `periods` is NOT fixed and
* should not be assumed to be Sunday. The API determines the start day based
* on a variety of factors. For example, for a 24/7 business, the first period
* may begin on the day of the request. For other businesses, it might be the
* first day of the week that they are open. NOTE: The ordering of the
* `periods` array is independent of the ordering of the
* `weekday_descriptions` array. Do not assume they will begin on the same
* day.
*
* @param GoogleMapsPlacesV1PlaceOpeningHoursPeriod[] $periods
*/
public function setPeriods($periods)
{
$this->periods = $periods;
}
/**
* @return GoogleMapsPlacesV1PlaceOpeningHoursPeriod[]
*/
public function getPeriods()
{
return $this->periods;
}
/**
* A type string used to identify the type of secondary hours.
*
* Accepted values: SECONDARY_HOURS_TYPE_UNSPECIFIED, DRIVE_THROUGH,
* HAPPY_HOUR, DELIVERY, TAKEOUT, KITCHEN, BREAKFAST, LUNCH, DINNER, BRUNCH,
* PICKUP, ACCESS, SENIOR_HOURS, ONLINE_SERVICE_HOURS
*
* @param self::SECONDARY_HOURS_TYPE_* $secondaryHoursType
*/
public function setSecondaryHoursType($secondaryHoursType)
{
$this->secondaryHoursType = $secondaryHoursType;
}
/**
* @return self::SECONDARY_HOURS_TYPE_*
*/
public function getSecondaryHoursType()
{
return $this->secondaryHoursType;
}
/**
* Structured information for special days that fall within the period that
* the returned opening hours cover. Special days are days that could impact
* the business hours of a place, e.g. Christmas day. Set for
* current_opening_hours and current_secondary_opening_hours if there are
* exceptional hours.
*
* @param GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay[] $specialDays
*/
public function setSpecialDays($specialDays)
{
$this->specialDays = $specialDays;
}
/**
* @return GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay[]
*/
public function getSpecialDays()
{
return $this->specialDays;
}
/**
* Localized strings describing the opening hours of this place, one string
* for each day of the week. NOTE: The order of the days and the start of the
* week is determined by the locale (language and region). The ordering of the
* `periods` array is independent of the ordering of the
* `weekday_descriptions` array. Do not assume they will begin on the same
* day. Will be empty if the hours are unknown or could not be converted to
* localized text. Example: "Sun: 18:0006:00"
*
* @param string[] $weekdayDescriptions
*/
public function setWeekdayDescriptions($weekdayDescriptions)
{
$this->weekdayDescriptions = $weekdayDescriptions;
}
/**
* @return string[]
*/
public function getWeekdayDescriptions()
{
return $this->weekdayDescriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceOpeningHours::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceOpeningHours');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceOpeningHoursPeriod extends \Google\Model
{
protected $closeType = GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint::class;
protected $closeDataType = '';
protected $openType = GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint::class;
protected $openDataType = '';
/**
* The time that the place starts to be closed.
*
* @param GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint $close
*/
public function setClose(GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint $close)
{
$this->close = $close;
}
/**
* @return GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
*/
public function getClose()
{
return $this->close;
}
/**
* The time that the place starts to be open.
*
* @param GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint $open
*/
public function setOpen(GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint $open)
{
$this->open = $open;
}
/**
* @return GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
*/
public function getOpen()
{
return $this->open;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceOpeningHoursPeriod::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceOpeningHoursPeriod');
@@ -0,0 +1,140 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint extends \Google\Model
{
protected $dateType = GoogleTypeDate::class;
protected $dateDataType = '';
/**
* A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is
* Monday, etc.
*
* @var int
*/
public $day;
/**
* The hour in 24 hour format. Ranges from 0 to 23.
*
* @var int
*/
public $hour;
/**
* The minute. Ranges from 0 to 59.
*
* @var int
*/
public $minute;
/**
* Whether or not this endpoint was truncated. Truncation occurs when the real
* hours are outside the times we are willing to return hours between, so we
* truncate the hours back to these boundaries. This ensures that at most 24 *
* 7 hours from midnight of the day of the request are returned.
*
* @var bool
*/
public $truncated;
/**
* Date in the local timezone for the place.
*
* @param GoogleTypeDate $date
*/
public function setDate(GoogleTypeDate $date)
{
$this->date = $date;
}
/**
* @return GoogleTypeDate
*/
public function getDate()
{
return $this->date;
}
/**
* A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is
* Monday, etc.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* The hour in 24 hour format. Ranges from 0 to 23.
*
* @param int $hour
*/
public function setHour($hour)
{
$this->hour = $hour;
}
/**
* @return int
*/
public function getHour()
{
return $this->hour;
}
/**
* The minute. Ranges from 0 to 59.
*
* @param int $minute
*/
public function setMinute($minute)
{
$this->minute = $minute;
}
/**
* @return int
*/
public function getMinute()
{
return $this->minute;
}
/**
* Whether or not this endpoint was truncated. Truncation occurs when the real
* hours are outside the times we are willing to return hours between, so we
* truncate the hours back to these boundaries. This ensures that at most 24 *
* 7 hours from midnight of the day of the request are returned.
*
* @param bool $truncated
*/
public function setTruncated($truncated)
{
$this->truncated = $truncated;
}
/**
* @return bool
*/
public function getTruncated()
{
return $this->truncated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay extends \Google\Model
{
protected $dateType = GoogleTypeDate::class;
protected $dateDataType = '';
/**
* The date of this special day.
*
* @param GoogleTypeDate $date
*/
public function setDate(GoogleTypeDate $date)
{
$this->date = $date;
}
/**
* @return GoogleTypeDate
*/
public function getDate()
{
return $this->date;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay');
@@ -0,0 +1,180 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlaceParkingOptions extends \Google\Model
{
/**
* Place offers free garage parking.
*
* @var bool
*/
public $freeGarageParking;
/**
* Place offers free parking lots.
*
* @var bool
*/
public $freeParkingLot;
/**
* Place offers free street parking.
*
* @var bool
*/
public $freeStreetParking;
/**
* Place offers paid garage parking.
*
* @var bool
*/
public $paidGarageParking;
/**
* Place offers paid parking lots.
*
* @var bool
*/
public $paidParkingLot;
/**
* Place offers paid street parking.
*
* @var bool
*/
public $paidStreetParking;
/**
* Place offers valet parking.
*
* @var bool
*/
public $valetParking;
/**
* Place offers free garage parking.
*
* @param bool $freeGarageParking
*/
public function setFreeGarageParking($freeGarageParking)
{
$this->freeGarageParking = $freeGarageParking;
}
/**
* @return bool
*/
public function getFreeGarageParking()
{
return $this->freeGarageParking;
}
/**
* Place offers free parking lots.
*
* @param bool $freeParkingLot
*/
public function setFreeParkingLot($freeParkingLot)
{
$this->freeParkingLot = $freeParkingLot;
}
/**
* @return bool
*/
public function getFreeParkingLot()
{
return $this->freeParkingLot;
}
/**
* Place offers free street parking.
*
* @param bool $freeStreetParking
*/
public function setFreeStreetParking($freeStreetParking)
{
$this->freeStreetParking = $freeStreetParking;
}
/**
* @return bool
*/
public function getFreeStreetParking()
{
return $this->freeStreetParking;
}
/**
* Place offers paid garage parking.
*
* @param bool $paidGarageParking
*/
public function setPaidGarageParking($paidGarageParking)
{
$this->paidGarageParking = $paidGarageParking;
}
/**
* @return bool
*/
public function getPaidGarageParking()
{
return $this->paidGarageParking;
}
/**
* Place offers paid parking lots.
*
* @param bool $paidParkingLot
*/
public function setPaidParkingLot($paidParkingLot)
{
$this->paidParkingLot = $paidParkingLot;
}
/**
* @return bool
*/
public function getPaidParkingLot()
{
return $this->paidParkingLot;
}
/**
* Place offers paid street parking.
*
* @param bool $paidStreetParking
*/
public function setPaidStreetParking($paidStreetParking)
{
$this->paidStreetParking = $paidStreetParking;
}
/**
* @return bool
*/
public function getPaidStreetParking()
{
return $this->paidStreetParking;
}
/**
* Place offers valet parking.
*
* @param bool $valetParking
*/
public function setValetParking($valetParking)
{
$this->valetParking = $valetParking;
}
/**
* @return bool
*/
public function getValetParking()
{
return $this->valetParking;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceParkingOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceParkingOptions');
@@ -0,0 +1,116 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlacePaymentOptions extends \Google\Model
{
/**
* Place accepts cash only as payment. Places with this attribute may still
* accept other payment methods.
*
* @var bool
*/
public $acceptsCashOnly;
/**
* Place accepts credit cards as payment.
*
* @var bool
*/
public $acceptsCreditCards;
/**
* Place accepts debit cards as payment.
*
* @var bool
*/
public $acceptsDebitCards;
/**
* Place accepts NFC payments.
*
* @var bool
*/
public $acceptsNfc;
/**
* Place accepts cash only as payment. Places with this attribute may still
* accept other payment methods.
*
* @param bool $acceptsCashOnly
*/
public function setAcceptsCashOnly($acceptsCashOnly)
{
$this->acceptsCashOnly = $acceptsCashOnly;
}
/**
* @return bool
*/
public function getAcceptsCashOnly()
{
return $this->acceptsCashOnly;
}
/**
* Place accepts credit cards as payment.
*
* @param bool $acceptsCreditCards
*/
public function setAcceptsCreditCards($acceptsCreditCards)
{
$this->acceptsCreditCards = $acceptsCreditCards;
}
/**
* @return bool
*/
public function getAcceptsCreditCards()
{
return $this->acceptsCreditCards;
}
/**
* Place accepts debit cards as payment.
*
* @param bool $acceptsDebitCards
*/
public function setAcceptsDebitCards($acceptsDebitCards)
{
$this->acceptsDebitCards = $acceptsDebitCards;
}
/**
* @return bool
*/
public function getAcceptsDebitCards()
{
return $this->acceptsDebitCards;
}
/**
* Place accepts NFC payments.
*
* @param bool $acceptsNfc
*/
public function setAcceptsNfc($acceptsNfc)
{
$this->acceptsNfc = $acceptsNfc;
}
/**
* @return bool
*/
public function getAcceptsNfc()
{
return $this->acceptsNfc;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlacePaymentOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlacePaymentOptions');
@@ -0,0 +1,76 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PlacePlusCode extends \Google\Model
{
/**
* Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the
* suffix of the global code and replacing the prefix with a formatted name of
* a reference entity.
*
* @var string
*/
public $compoundCode;
/**
* Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000
* by 1/8000 degree area (~14 by 14 meters).
*
* @var string
*/
public $globalCode;
/**
* Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the
* suffix of the global code and replacing the prefix with a formatted name of
* a reference entity.
*
* @param string $compoundCode
*/
public function setCompoundCode($compoundCode)
{
$this->compoundCode = $compoundCode;
}
/**
* @return string
*/
public function getCompoundCode()
{
return $this->compoundCode;
}
/**
* Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000
* by 1/8000 degree area (~14 by 14 meters).
*
* @param string $globalCode
*/
public function setGlobalCode($globalCode)
{
$this->globalCode = $globalCode;
}
/**
* @return string
*/
public function getGlobalCode()
{
return $this->globalCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlacePlusCode::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlacePlusCode');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MapsPlaces;
class GoogleMapsPlacesV1PlaceReviewSummary extends \Google\Model
{
protected $disclosureTextType = GoogleTypeLocalizedText::class;
protected $disclosureTextDataType = '';
/**
* A link where users can flag a problem with the summary.
*
* @var string
*/
public $flagContentUri;
/**
* A link to show reviews of this place on Google Maps.
*
* @var string
*/
public $reviewsUri;
protected $textType = GoogleTypeLocalizedText::class;
protected $textDataType = '';
/**
* The AI disclosure message "Summarized with Gemini" (and its localized
* variants). This will be in the language specified in the request if
* available.
*
* @param GoogleTypeLocalizedText $disclosureText
*/
public function setDisclosureText(GoogleTypeLocalizedText $disclosureText)
{
$this->disclosureText = $disclosureText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisclosureText()
{
return $this->disclosureText;
}
/**
* A link where users can flag a problem with the summary.
*
* @param string $flagContentUri
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
/**
* A link to show reviews of this place on Google Maps.
*
* @param string $reviewsUri
*/
public function setReviewsUri($reviewsUri)
{
$this->reviewsUri = $reviewsUri;
}
/**
* @return string
*/
public function getReviewsUri()
{
return $this->reviewsUri;
}
/**
* The summary of user reviews.
*
* @param GoogleTypeLocalizedText $text
*/
public function setText(GoogleTypeLocalizedText $text)
{
$this->text = $text;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceReviewSummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceReviewSummary');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1PlaceSubDestination extends \Google\Model
{
/**
* The place id of the sub-destination.
*
* @var string
*/
public $id;
/**
* The resource name of the sub-destination.
*
* @var string
*/
public $name;
/**
* The place id of the sub-destination.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The resource name of the sub-destination.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PlaceSubDestination::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceSubDestination');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1Polyline extends \Google\Model
{
/**
* An [encoded polyline](https://developers.google.com/maps/documentation/util
* ities/polylinealgorithm), as returned by the [Routes API by default](https:
* //developers.google.com/maps/documentation/routes/reference/rest/v2/TopLeve
* l/computeRoutes#polylineencoding). See the [encoder](https://developers.goo
* gle.com/maps/documentation/utilities/polylineutility) and [decoder](https:/
* /developers.google.com/maps/documentation/routes/polylinedecoder) tools.
*
* @var string
*/
public $encodedPolyline;
/**
* An [encoded polyline](https://developers.google.com/maps/documentation/util
* ities/polylinealgorithm), as returned by the [Routes API by default](https:
* //developers.google.com/maps/documentation/routes/reference/rest/v2/TopLeve
* l/computeRoutes#polylineencoding). See the [encoder](https://developers.goo
* gle.com/maps/documentation/utilities/polylineutility) and [decoder](https:/
* /developers.google.com/maps/documentation/routes/polylinedecoder) tools.
*
* @param string $encodedPolyline
*/
public function setEncodedPolyline($encodedPolyline)
{
$this->encodedPolyline = $encodedPolyline;
}
/**
* @return string
*/
public function getEncodedPolyline()
{
return $this->encodedPolyline;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1Polyline::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1Polyline');
@@ -0,0 +1,64 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1PriceRange extends \Google\Model
{
protected $endPriceType = GoogleTypeMoney::class;
protected $endPriceDataType = '';
protected $startPriceType = GoogleTypeMoney::class;
protected $startPriceDataType = '';
/**
* The high end of the price range (exclusive). Price should be lower than
* this amount.
*
* @param GoogleTypeMoney $endPrice
*/
public function setEndPrice(GoogleTypeMoney $endPrice)
{
$this->endPrice = $endPrice;
}
/**
* @return GoogleTypeMoney
*/
public function getEndPrice()
{
return $this->endPrice;
}
/**
* The low end of the price range (inclusive). Price should be at or above
* this amount.
*
* @param GoogleTypeMoney $startPrice
*/
public function setStartPrice(GoogleTypeMoney $startPrice)
{
$this->startPrice = $startPrice;
}
/**
* @return GoogleTypeMoney
*/
public function getStartPrice()
{
return $this->startPrice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1PriceRange::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PriceRange');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1References extends \Google\Collection
{
protected $collection_key = 'reviews';
/**
* @var string[]
*/
public $places;
protected $reviewsType = GoogleMapsPlacesV1Review::class;
protected $reviewsDataType = 'array';
/**
* @param string[]
*/
public function setPlaces($places)
{
$this->places = $places;
}
/**
* @return string[]
*/
public function getPlaces()
{
return $this->places;
}
/**
* @param GoogleMapsPlacesV1Review[]
*/
public function setReviews($reviews)
{
$this->reviews = $reviews;
}
/**
* @return GoogleMapsPlacesV1Review[]
*/
public function getReviews()
{
return $this->reviews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1References::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1References');
@@ -0,0 +1,229 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1Review extends \Google\Model
{
protected $authorAttributionType = GoogleMapsPlacesV1AuthorAttribution::class;
protected $authorAttributionDataType = '';
/**
* A link where users can flag a problem with the review.
*
* @var string
*/
public $flagContentUri;
/**
* A link to show the review on Google Maps.
*
* @var string
*/
public $googleMapsUri;
/**
* A reference representing this place review which may be used to look up
* this place review again (also called the API "resource" name:
* `places/{place_id}/reviews/{review}`).
*
* @var string
*/
public $name;
protected $originalTextType = GoogleTypeLocalizedText::class;
protected $originalTextDataType = '';
/**
* Timestamp for the review.
*
* @var string
*/
public $publishTime;
/**
* A number between 1.0 and 5.0, also called the number of stars.
*
* @var
*/
public $rating;
/**
* A string of formatted recent time, expressing the review time relative to
* the current time in a form appropriate for the language and country.
*
* @var string
*/
public $relativePublishTimeDescription;
protected $textType = GoogleTypeLocalizedText::class;
protected $textDataType = '';
protected $visitDateType = GoogleTypeDate::class;
protected $visitDateDataType = '';
/**
* This review's author.
*
* @param GoogleMapsPlacesV1AuthorAttribution $authorAttribution
*/
public function setAuthorAttribution(GoogleMapsPlacesV1AuthorAttribution $authorAttribution)
{
$this->authorAttribution = $authorAttribution;
}
/**
* @return GoogleMapsPlacesV1AuthorAttribution
*/
public function getAuthorAttribution()
{
return $this->authorAttribution;
}
/**
* A link where users can flag a problem with the review.
*
* @param string $flagContentUri
*/
public function setFlagContentUri($flagContentUri)
{
$this->flagContentUri = $flagContentUri;
}
/**
* @return string
*/
public function getFlagContentUri()
{
return $this->flagContentUri;
}
/**
* A link to show the review on Google Maps.
*
* @param string $googleMapsUri
*/
public function setGoogleMapsUri($googleMapsUri)
{
$this->googleMapsUri = $googleMapsUri;
}
/**
* @return string
*/
public function getGoogleMapsUri()
{
return $this->googleMapsUri;
}
/**
* A reference representing this place review which may be used to look up
* this place review again (also called the API "resource" name:
* `places/{place_id}/reviews/{review}`).
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The review text in its original language.
*
* @param GoogleTypeLocalizedText $originalText
*/
public function setOriginalText(GoogleTypeLocalizedText $originalText)
{
$this->originalText = $originalText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getOriginalText()
{
return $this->originalText;
}
/**
* Timestamp for the review.
*
* @param string $publishTime
*/
public function setPublishTime($publishTime)
{
$this->publishTime = $publishTime;
}
/**
* @return string
*/
public function getPublishTime()
{
return $this->publishTime;
}
public function setRating($rating)
{
$this->rating = $rating;
}
public function getRating()
{
return $this->rating;
}
/**
* A string of formatted recent time, expressing the review time relative to
* the current time in a form appropriate for the language and country.
*
* @param string $relativePublishTimeDescription
*/
public function setRelativePublishTimeDescription($relativePublishTimeDescription)
{
$this->relativePublishTimeDescription = $relativePublishTimeDescription;
}
/**
* @return string
*/
public function getRelativePublishTimeDescription()
{
return $this->relativePublishTimeDescription;
}
/**
* The localized text of the review.
*
* @param GoogleTypeLocalizedText $text
*/
public function setText(GoogleTypeLocalizedText $text)
{
$this->text = $text;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getText()
{
return $this->text;
}
/**
* The date when the author visited the place. This is truncated to the year
* and month of the visit.
*
* @param GoogleTypeDate $visitDate
*/
public function setVisitDate(GoogleTypeDate $visitDate)
{
$this->visitDate = $visitDate;
}
/**
* @return GoogleTypeDate
*/
public function getVisitDate()
{
return $this->visitDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1Review::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1Review');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1RouteModifiers extends \Google\Model
{
/**
* Optional. When set to true, avoids ferries where reasonable, giving
* preference to routes not containing ferries. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @var bool
*/
public $avoidFerries;
/**
* Optional. When set to true, avoids highways where reasonable, giving
* preference to routes not containing highways. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @var bool
*/
public $avoidHighways;
/**
* Optional. When set to true, avoids navigating indoors where reasonable,
* giving preference to routes not containing indoor navigation. Applies only
* to the `WALK` `TravelMode`.
*
* @var bool
*/
public $avoidIndoor;
/**
* Optional. When set to true, avoids toll roads where reasonable, giving
* preference to routes not containing toll roads. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @var bool
*/
public $avoidTolls;
/**
* Optional. When set to true, avoids ferries where reasonable, giving
* preference to routes not containing ferries. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @param bool $avoidFerries
*/
public function setAvoidFerries($avoidFerries)
{
$this->avoidFerries = $avoidFerries;
}
/**
* @return bool
*/
public function getAvoidFerries()
{
return $this->avoidFerries;
}
/**
* Optional. When set to true, avoids highways where reasonable, giving
* preference to routes not containing highways. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @param bool $avoidHighways
*/
public function setAvoidHighways($avoidHighways)
{
$this->avoidHighways = $avoidHighways;
}
/**
* @return bool
*/
public function getAvoidHighways()
{
return $this->avoidHighways;
}
/**
* Optional. When set to true, avoids navigating indoors where reasonable,
* giving preference to routes not containing indoor navigation. Applies only
* to the `WALK` `TravelMode`.
*
* @param bool $avoidIndoor
*/
public function setAvoidIndoor($avoidIndoor)
{
$this->avoidIndoor = $avoidIndoor;
}
/**
* @return bool
*/
public function getAvoidIndoor()
{
return $this->avoidIndoor;
}
/**
* Optional. When set to true, avoids toll roads where reasonable, giving
* preference to routes not containing toll roads. Applies only to the `DRIVE`
* and `TWO_WHEELER` `TravelMode`.
*
* @param bool $avoidTolls
*/
public function setAvoidTolls($avoidTolls)
{
$this->avoidTolls = $avoidTolls;
}
/**
* @return bool
*/
public function getAvoidTolls()
{
return $this->avoidTolls;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1RouteModifiers::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1RouteModifiers');
@@ -0,0 +1,173 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1RoutingParameters extends \Google\Model
{
/**
* No routing preference specified. Default to `TRAFFIC_UNAWARE`.
*/
public const ROUTING_PREFERENCE_ROUTING_PREFERENCE_UNSPECIFIED = 'ROUTING_PREFERENCE_UNSPECIFIED';
/**
* Computes routes without taking live traffic conditions into consideration.
* Suitable when traffic conditions don't matter or are not applicable. Using
* this value produces the lowest latency. Note: For `TravelMode` `DRIVE` and
* `TWO_WHEELER`, the route and duration chosen are based on road network and
* average time-independent traffic conditions, not current road conditions.
* Consequently, routes may include roads that are temporarily closed. Results
* for a given request may vary over time due to changes in the road network,
* updated average traffic conditions, and the distributed nature of the
* service. Results may also vary between nearly-equivalent routes at any time
* or frequency.
*/
public const ROUTING_PREFERENCE_TRAFFIC_UNAWARE = 'TRAFFIC_UNAWARE';
/**
* Calculates routes taking live traffic conditions into consideration. In
* contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
* significantly reduce latency.
*/
public const ROUTING_PREFERENCE_TRAFFIC_AWARE = 'TRAFFIC_AWARE';
/**
* Calculates the routes taking live traffic conditions into consideration,
* without applying most performance optimizations. Using this value produces
* the highest latency.
*/
public const ROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMAL = 'TRAFFIC_AWARE_OPTIMAL';
/**
* No travel mode specified. Defaults to `DRIVE`.
*/
public const TRAVEL_MODE_TRAVEL_MODE_UNSPECIFIED = 'TRAVEL_MODE_UNSPECIFIED';
/**
* Travel by passenger car.
*/
public const TRAVEL_MODE_DRIVE = 'DRIVE';
/**
* Travel by bicycle. Not supported with `search_along_route_parameters`.
*/
public const TRAVEL_MODE_BICYCLE = 'BICYCLE';
/**
* Travel by walking. Not supported with `search_along_route_parameters`.
*/
public const TRAVEL_MODE_WALK = 'WALK';
/**
* Motorized two wheeled vehicles of all kinds such as scooters and
* motorcycles. Note that this is distinct from the `BICYCLE` travel mode
* which covers human-powered transport. Not supported with
* `search_along_route_parameters`. Only supported in those countries listed
* at [Countries and regions supported for two-wheeled
* vehicles](https://developers.google.com/maps/documentation/routes/coverage-
* two-wheeled).
*/
public const TRAVEL_MODE_TWO_WHEELER = 'TWO_WHEELER';
protected $originType = GoogleTypeLatLng::class;
protected $originDataType = '';
protected $routeModifiersType = GoogleMapsPlacesV1RouteModifiers::class;
protected $routeModifiersDataType = '';
/**
* Optional. Specifies how to compute the routing summaries. The server
* attempts to use the selected routing preference to compute the route. The
* traffic aware routing preference is only available for the `DRIVE` or
* `TWO_WHEELER` `travelMode`.
*
* @var string
*/
public $routingPreference;
/**
* Optional. The travel mode.
*
* @var string
*/
public $travelMode;
/**
* Optional. An explicit routing origin that overrides the origin defined in
* the polyline. By default, the polyline origin is used.
*
* @param GoogleTypeLatLng $origin
*/
public function setOrigin(GoogleTypeLatLng $origin)
{
$this->origin = $origin;
}
/**
* @return GoogleTypeLatLng
*/
public function getOrigin()
{
return $this->origin;
}
/**
* Optional. The route modifiers.
*
* @param GoogleMapsPlacesV1RouteModifiers $routeModifiers
*/
public function setRouteModifiers(GoogleMapsPlacesV1RouteModifiers $routeModifiers)
{
$this->routeModifiers = $routeModifiers;
}
/**
* @return GoogleMapsPlacesV1RouteModifiers
*/
public function getRouteModifiers()
{
return $this->routeModifiers;
}
/**
* Optional. Specifies how to compute the routing summaries. The server
* attempts to use the selected routing preference to compute the route. The
* traffic aware routing preference is only available for the `DRIVE` or
* `TWO_WHEELER` `travelMode`.
*
* Accepted values: ROUTING_PREFERENCE_UNSPECIFIED, TRAFFIC_UNAWARE,
* TRAFFIC_AWARE, TRAFFIC_AWARE_OPTIMAL
*
* @param self::ROUTING_PREFERENCE_* $routingPreference
*/
public function setRoutingPreference($routingPreference)
{
$this->routingPreference = $routingPreference;
}
/**
* @return self::ROUTING_PREFERENCE_*
*/
public function getRoutingPreference()
{
return $this->routingPreference;
}
/**
* Optional. The travel mode.
*
* Accepted values: TRAVEL_MODE_UNSPECIFIED, DRIVE, BICYCLE, WALK, TWO_WHEELER
*
* @param self::TRAVEL_MODE_* $travelMode
*/
public function setTravelMode($travelMode)
{
$this->travelMode = $travelMode;
}
/**
* @return self::TRAVEL_MODE_*
*/
public function getTravelMode()
{
return $this->travelMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1RoutingParameters::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1RoutingParameters');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1RoutingSummary extends \Google\Collection
{
protected $collection_key = 'legs';
/**
* A link to show directions on Google Maps using the waypoints from the given
* routing summary. The route generated by this link is not guaranteed to be
* the same as the route used to generate the routing summary. The link uses
* information provided in the request, from fields including
* `routingParameters` and `searchAlongRouteParameters` when applicable, to
* generate the directions link.
*
* @var string
*/
public $directionsUri;
protected $legsType = GoogleMapsPlacesV1RoutingSummaryLeg::class;
protected $legsDataType = 'array';
/**
* A link to show directions on Google Maps using the waypoints from the given
* routing summary. The route generated by this link is not guaranteed to be
* the same as the route used to generate the routing summary. The link uses
* information provided in the request, from fields including
* `routingParameters` and `searchAlongRouteParameters` when applicable, to
* generate the directions link.
*
* @param string $directionsUri
*/
public function setDirectionsUri($directionsUri)
{
$this->directionsUri = $directionsUri;
}
/**
* @return string
*/
public function getDirectionsUri()
{
return $this->directionsUri;
}
/**
* The legs of the trip. When you calculate travel duration and distance from
* a set origin, `legs` contains a single leg containing the duration and
* distance from the origin to the destination. When you do a search along
* route, `legs` contains two legs: one from the origin to place, and one from
* the place to the destination.
*
* @param GoogleMapsPlacesV1RoutingSummaryLeg[] $legs
*/
public function setLegs($legs)
{
$this->legs = $legs;
}
/**
* @return GoogleMapsPlacesV1RoutingSummaryLeg[]
*/
public function getLegs()
{
return $this->legs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1RoutingSummary::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1RoutingSummary');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1RoutingSummaryLeg extends \Google\Model
{
/**
* The distance of this leg of the trip.
*
* @var int
*/
public $distanceMeters;
/**
* The time it takes to complete this leg of the trip.
*
* @var string
*/
public $duration;
/**
* The distance of this leg of the trip.
*
* @param int $distanceMeters
*/
public function setDistanceMeters($distanceMeters)
{
$this->distanceMeters = $distanceMeters;
}
/**
* @return int
*/
public function getDistanceMeters()
{
return $this->distanceMeters;
}
/**
* The time it takes to complete this leg of the trip.
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1RoutingSummaryLeg::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1RoutingSummaryLeg');
@@ -0,0 +1,399 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchNearbyRequest extends \Google\Collection
{
/**
* RankPreference value not set. Will use rank by POPULARITY by default.
*/
public const RANK_PREFERENCE_RANK_PREFERENCE_UNSPECIFIED = 'RANK_PREFERENCE_UNSPECIFIED';
/**
* Ranks results by distance.
*/
public const RANK_PREFERENCE_DISTANCE = 'DISTANCE';
/**
* Ranks results by popularity.
*/
public const RANK_PREFERENCE_POPULARITY = 'POPULARITY';
protected $collection_key = 'includedTypes';
/**
* Excluded primary Place type (e.g. "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* primary types, i.e. a type appears in both included_primary_types and
* excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place
* type is specified with multiple type restrictions, only places that satisfy
* all of the restrictions are returned. For example, if we have
* {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]},
* the returned places provide "restaurant" related services but do not
* operate primarily as "restaurants".
*
* @var string[]
*/
public $excludedPrimaryTypes;
/**
* Excluded Place type (eg, "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If the client provides both
* included_types (e.g. restaurant) and excluded_types (e.g. cafe), then the
* response should include places that are restaurant but not cafe. The
* response includes places that match at least one of the included_types and
* none of the excluded_types. If there are any conflicting types, i.e. a type
* appears in both included_types and excluded_types, an INVALID_ARGUMENT
* error is returned. If a Place type is specified with multiple type
* restrictions, only places that satisfy all of the restrictions are
* returned. For example, if we have {included_types = ["restaurant"],
* excluded_primary_types = ["restaurant"]}, the returned places provide
* "restaurant" related services but do not operate primarily as
* "restaurants".
*
* @var string[]
*/
public $excludedTypes;
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @var bool
*/
public $includeFutureOpeningBusinesses;
/**
* Included primary Place type (e.g. "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. A place can only have a single primary type from the supported types
* table associated with it. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* primary types, i.e. a type appears in both included_primary_types and
* excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place
* type is specified with multiple type restrictions, only places that satisfy
* all of the restrictions are returned. For example, if we have
* {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]},
* the returned places provide "restaurant" related services but do not
* operate primarily as "restaurants".
*
* @var string[]
*/
public $includedPrimaryTypes;
/**
* Included Place type (eg, "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* types, i.e. a type appears in both included_types and excluded_types, an
* INVALID_ARGUMENT error is returned. If a Place type is specified with
* multiple type restrictions, only places that satisfy all of the
* restrictions are returned. For example, if we have {included_types =
* ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned
* places provide "restaurant" related services but do not operate primarily
* as "restaurants".
*
* @var string[]
*/
public $includedTypes;
/**
* Place details will be displayed with the preferred language if available.
* If the language code is unspecified or unrecognized, place details of any
* language may be returned, with a preference for English if such details
* exist. Current list of supported languages:
* https://developers.google.com/maps/faq#languagesupport.
*
* @var string
*/
public $languageCode;
protected $locationRestrictionType = GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction::class;
protected $locationRestrictionDataType = '';
/**
* Maximum number of results to return. It must be between 1 and 20 (default),
* inclusively. If the number is unset, it falls back to the upper limit. If
* the number is set to negative or exceeds the upper limit, an
* INVALID_ARGUMENT error is returned.
*
* @var int
*/
public $maxResultCount;
/**
* How results will be ranked in the response.
*
* @var string
*/
public $rankPreference;
/**
* The Unicode country/region code (CLDR) of the location where the request is
* coming from. This parameter is used to display the place details, like
* region-specific place name, if available. The parameter can affect results
* based on applicable law. For more information, see https://www.unicode.org/
* cldr/charts/latest/supplemental/territory_language_information.html. Note
* that 3-digit region codes are not currently supported.
*
* @var string
*/
public $regionCode;
protected $routingParametersType = GoogleMapsPlacesV1RoutingParameters::class;
protected $routingParametersDataType = '';
/**
* Excluded primary Place type (e.g. "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* primary types, i.e. a type appears in both included_primary_types and
* excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place
* type is specified with multiple type restrictions, only places that satisfy
* all of the restrictions are returned. For example, if we have
* {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]},
* the returned places provide "restaurant" related services but do not
* operate primarily as "restaurants".
*
* @param string[] $excludedPrimaryTypes
*/
public function setExcludedPrimaryTypes($excludedPrimaryTypes)
{
$this->excludedPrimaryTypes = $excludedPrimaryTypes;
}
/**
* @return string[]
*/
public function getExcludedPrimaryTypes()
{
return $this->excludedPrimaryTypes;
}
/**
* Excluded Place type (eg, "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If the client provides both
* included_types (e.g. restaurant) and excluded_types (e.g. cafe), then the
* response should include places that are restaurant but not cafe. The
* response includes places that match at least one of the included_types and
* none of the excluded_types. If there are any conflicting types, i.e. a type
* appears in both included_types and excluded_types, an INVALID_ARGUMENT
* error is returned. If a Place type is specified with multiple type
* restrictions, only places that satisfy all of the restrictions are
* returned. For example, if we have {included_types = ["restaurant"],
* excluded_primary_types = ["restaurant"]}, the returned places provide
* "restaurant" related services but do not operate primarily as
* "restaurants".
*
* @param string[] $excludedTypes
*/
public function setExcludedTypes($excludedTypes)
{
$this->excludedTypes = $excludedTypes;
}
/**
* @return string[]
*/
public function getExcludedTypes()
{
return $this->excludedTypes;
}
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @param bool $includeFutureOpeningBusinesses
*/
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
{
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
}
/**
* @return bool
*/
public function getIncludeFutureOpeningBusinesses()
{
return $this->includeFutureOpeningBusinesses;
}
/**
* Included primary Place type (e.g. "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. A place can only have a single primary type from the supported types
* table associated with it. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* primary types, i.e. a type appears in both included_primary_types and
* excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place
* type is specified with multiple type restrictions, only places that satisfy
* all of the restrictions are returned. For example, if we have
* {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]},
* the returned places provide "restaurant" related services but do not
* operate primarily as "restaurants".
*
* @param string[] $includedPrimaryTypes
*/
public function setIncludedPrimaryTypes($includedPrimaryTypes)
{
$this->includedPrimaryTypes = $includedPrimaryTypes;
}
/**
* @return string[]
*/
public function getIncludedPrimaryTypes()
{
return $this->includedPrimaryTypes;
}
/**
* Included Place type (eg, "restaurant" or "gas_station") from
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Up to 50 types from [Table
* A](https://developers.google.com/maps/documentation/places/web-
* service/place-types#table-a) may be specified. If there are any conflicting
* types, i.e. a type appears in both included_types and excluded_types, an
* INVALID_ARGUMENT error is returned. If a Place type is specified with
* multiple type restrictions, only places that satisfy all of the
* restrictions are returned. For example, if we have {included_types =
* ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned
* places provide "restaurant" related services but do not operate primarily
* as "restaurants".
*
* @param string[] $includedTypes
*/
public function setIncludedTypes($includedTypes)
{
$this->includedTypes = $includedTypes;
}
/**
* @return string[]
*/
public function getIncludedTypes()
{
return $this->includedTypes;
}
/**
* Place details will be displayed with the preferred language if available.
* If the language code is unspecified or unrecognized, place details of any
* language may be returned, with a preference for English if such details
* exist. Current list of supported languages:
* https://developers.google.com/maps/faq#languagesupport.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Required. The region to search.
*
* @param GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction $locationRestriction
*/
public function setLocationRestriction(GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction $locationRestriction)
{
$this->locationRestriction = $locationRestriction;
}
/**
* @return GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction
*/
public function getLocationRestriction()
{
return $this->locationRestriction;
}
/**
* Maximum number of results to return. It must be between 1 and 20 (default),
* inclusively. If the number is unset, it falls back to the upper limit. If
* the number is set to negative or exceeds the upper limit, an
* INVALID_ARGUMENT error is returned.
*
* @param int $maxResultCount
*/
public function setMaxResultCount($maxResultCount)
{
$this->maxResultCount = $maxResultCount;
}
/**
* @return int
*/
public function getMaxResultCount()
{
return $this->maxResultCount;
}
/**
* How results will be ranked in the response.
*
* Accepted values: RANK_PREFERENCE_UNSPECIFIED, DISTANCE, POPULARITY
*
* @param self::RANK_PREFERENCE_* $rankPreference
*/
public function setRankPreference($rankPreference)
{
$this->rankPreference = $rankPreference;
}
/**
* @return self::RANK_PREFERENCE_*
*/
public function getRankPreference()
{
return $this->rankPreference;
}
/**
* The Unicode country/region code (CLDR) of the location where the request is
* coming from. This parameter is used to display the place details, like
* region-specific place name, if available. The parameter can affect results
* based on applicable law. For more information, see https://www.unicode.org/
* cldr/charts/latest/supplemental/territory_language_information.html. Note
* that 3-digit region codes are not currently supported.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* Optional. Parameters that affect the routing to the search results.
*
* @param GoogleMapsPlacesV1RoutingParameters $routingParameters
*/
public function setRoutingParameters(GoogleMapsPlacesV1RoutingParameters $routingParameters)
{
$this->routingParameters = $routingParameters;
}
/**
* @return GoogleMapsPlacesV1RoutingParameters
*/
public function getRoutingParameters()
{
return $this->routingParameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchNearbyRequest::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchNearbyRequest');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction extends \Google\Model
{
protected $circleType = GoogleMapsPlacesV1Circle::class;
protected $circleDataType = '';
/**
* A circle defined by center point and radius.
*
* @param GoogleMapsPlacesV1Circle $circle
*/
public function setCircle(GoogleMapsPlacesV1Circle $circle)
{
$this->circle = $circle;
}
/**
* @return GoogleMapsPlacesV1Circle
*/
public function getCircle()
{
return $this->circle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction');
@@ -0,0 +1,68 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchNearbyResponse extends \Google\Collection
{
protected $collection_key = 'routingSummaries';
protected $placesType = GoogleMapsPlacesV1Place::class;
protected $placesDataType = 'array';
protected $routingSummariesType = GoogleMapsPlacesV1RoutingSummary::class;
protected $routingSummariesDataType = 'array';
/**
* A list of places that meets user's requirements like places types, number
* of places and specific location restriction.
*
* @param GoogleMapsPlacesV1Place[] $places
*/
public function setPlaces($places)
{
$this->places = $places;
}
/**
* @return GoogleMapsPlacesV1Place[]
*/
public function getPlaces()
{
return $this->places;
}
/**
* A list of routing summaries where each entry associates to the
* corresponding place in the same index in the `places` field. If the routing
* summary is not available for one of the places, it will contain an empty
* entry. This list should have as many entries as the list of places if
* requested.
*
* @param GoogleMapsPlacesV1RoutingSummary[] $routingSummaries
*/
public function setRoutingSummaries($routingSummaries)
{
$this->routingSummaries = $routingSummaries;
}
/**
* @return GoogleMapsPlacesV1RoutingSummary[]
*/
public function getRoutingSummaries()
{
return $this->routingSummaries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchNearbyResponse::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchNearbyResponse');
@@ -0,0 +1,524 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequest extends \Google\Collection
{
/**
* For a categorical query such as "Restaurants in New York City", RELEVANCE
* is the default. For non-categorical queries such as "Mountain View, CA" we
* recommend that you leave rankPreference unset.
*/
public const RANK_PREFERENCE_RANK_PREFERENCE_UNSPECIFIED = 'RANK_PREFERENCE_UNSPECIFIED';
/**
* Ranks results by distance.
*/
public const RANK_PREFERENCE_DISTANCE = 'DISTANCE';
/**
* Ranks results by relevance. Sort order determined by normal ranking stack.
*/
public const RANK_PREFERENCE_RELEVANCE = 'RELEVANCE';
protected $collection_key = 'priceLevels';
protected $evOptionsType = GoogleMapsPlacesV1SearchTextRequestEVOptions::class;
protected $evOptionsDataType = '';
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @var bool
*/
public $includeFutureOpeningBusinesses;
/**
* Optional. Include pure service area businesses if the field is set to true.
* Pure service area business is a business that visits or delivers to
* customers directly but does not serve customers at their business address.
* For example, businesses like cleaning services or plumbers. Those
* businesses do not have a physical address or location on Google Maps.
* Places will not return fields including `location`, `plus_code`, and other
* location related fields for these businesses.
*
* @var bool
*/
public $includePureServiceAreaBusinesses;
/**
* The requested place type. Full list of types supported:
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Only support one included type.
*
* @var string
*/
public $includedType;
/**
* Place details will be displayed with the preferred language if available.
* If the language code is unspecified or unrecognized, place details of any
* language may be returned, with a preference for English if such details
* exist. Current list of supported languages:
* https://developers.google.com/maps/faq#languagesupport.
*
* @var string
*/
public $languageCode;
protected $locationBiasType = GoogleMapsPlacesV1SearchTextRequestLocationBias::class;
protected $locationBiasDataType = '';
protected $locationRestrictionType = GoogleMapsPlacesV1SearchTextRequestLocationRestriction::class;
protected $locationRestrictionDataType = '';
/**
* Deprecated: Use `page_size` instead. The maximum number of results per page
* that can be returned. If the number of available results is larger than
* `max_result_count`, a `next_page_token` is returned which can be passed to
* `page_token` to get the next page of results in subsequent requests. If 0
* or no value is provided, a default of 20 is used. The maximum value is 20;
* values above 20 will be coerced to 20. Negative values will return an
* INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are
* specified, `max_result_count` will be ignored.
*
* @deprecated
* @var int
*/
public $maxResultCount;
/**
* Filter out results whose average user rating is strictly less than this
* limit. A valid value must be a float between 0 and 5 (inclusively) at a 0.5
* cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating will
* round up to the nearest 0.5(ceiling). For instance, a rating of 0.6 will
* eliminate all results with a less than 1.0 rating.
*
* @var
*/
public $minRating;
/**
* Used to restrict the search to places that are currently open. The default
* is false.
*
* @var bool
*/
public $openNow;
/**
* Optional. The maximum number of results per page that can be returned. If
* the number of available results is larger than `page_size`, a
* `next_page_token` is returned which can be passed to `page_token` to get
* the next page of results in subsequent requests. If 0 or no value is
* provided, a default of 20 is used. The maximum value is 20; values above 20
* will be set to 20. Negative values will return an INVALID_ARGUMENT error.
* If both `max_result_count` and `page_size` are specified,
* `max_result_count` will be ignored.
*
* @var int
*/
public $pageSize;
/**
* Optional. A page token, received from a previous TextSearch call. Provide
* this to retrieve the subsequent page. When paginating, all parameters other
* than `page_token`, `page_size`, and `max_result_count` provided to
* TextSearch must match the initial call that provided the page token.
* Otherwise an INVALID_ARGUMENT error is returned.
*
* @var string
*/
public $pageToken;
/**
* Used to restrict the search to places that are marked as certain price
* levels. Users can choose any combinations of price levels. Default to
* select all price levels.
*
* @var string[]
*/
public $priceLevels;
/**
* How results will be ranked in the response.
*
* @var string
*/
public $rankPreference;
/**
* The Unicode country/region code (CLDR) of the location where the request is
* coming from. This parameter is used to display the place details, like
* region-specific place name, if available. The parameter can affect results
* based on applicable law. For more information, see https://www.unicode.org/
* cldr/charts/latest/supplemental/territory_language_information.html. Note
* that 3-digit region codes are not currently supported.
*
* @var string
*/
public $regionCode;
protected $routingParametersType = GoogleMapsPlacesV1RoutingParameters::class;
protected $routingParametersDataType = '';
protected $searchAlongRouteParametersType = GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters::class;
protected $searchAlongRouteParametersDataType = '';
/**
* Used to set strict type filtering for included_type. If set to true, only
* results of the same type will be returned. Default to false.
*
* @var bool
*/
public $strictTypeFiltering;
/**
* Required. The text query for textual search.
*
* @var string
*/
public $textQuery;
/**
* Optional. Set the searchable EV options of a place search request.
*
* @param GoogleMapsPlacesV1SearchTextRequestEVOptions $evOptions
*/
public function setEvOptions(GoogleMapsPlacesV1SearchTextRequestEVOptions $evOptions)
{
$this->evOptions = $evOptions;
}
/**
* @return GoogleMapsPlacesV1SearchTextRequestEVOptions
*/
public function getEvOptions()
{
return $this->evOptions;
}
/**
* Optional. If true, include businesses that are not yet open but will open
* in the future.
*
* @param bool $includeFutureOpeningBusinesses
*/
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
{
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
}
/**
* @return bool
*/
public function getIncludeFutureOpeningBusinesses()
{
return $this->includeFutureOpeningBusinesses;
}
/**
* Optional. Include pure service area businesses if the field is set to true.
* Pure service area business is a business that visits or delivers to
* customers directly but does not serve customers at their business address.
* For example, businesses like cleaning services or plumbers. Those
* businesses do not have a physical address or location on Google Maps.
* Places will not return fields including `location`, `plus_code`, and other
* location related fields for these businesses.
*
* @param bool $includePureServiceAreaBusinesses
*/
public function setIncludePureServiceAreaBusinesses($includePureServiceAreaBusinesses)
{
$this->includePureServiceAreaBusinesses = $includePureServiceAreaBusinesses;
}
/**
* @return bool
*/
public function getIncludePureServiceAreaBusinesses()
{
return $this->includePureServiceAreaBusinesses;
}
/**
* The requested place type. Full list of types supported:
* https://developers.google.com/maps/documentation/places/web-service/place-
* types. Only support one included type.
*
* @param string $includedType
*/
public function setIncludedType($includedType)
{
$this->includedType = $includedType;
}
/**
* @return string
*/
public function getIncludedType()
{
return $this->includedType;
}
/**
* Place details will be displayed with the preferred language if available.
* If the language code is unspecified or unrecognized, place details of any
* language may be returned, with a preference for English if such details
* exist. Current list of supported languages:
* https://developers.google.com/maps/faq#languagesupport.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* The region to search. This location serves as a bias which means results
* around given location might be returned. Cannot be set along with
* location_restriction.
*
* @param GoogleMapsPlacesV1SearchTextRequestLocationBias $locationBias
*/
public function setLocationBias(GoogleMapsPlacesV1SearchTextRequestLocationBias $locationBias)
{
$this->locationBias = $locationBias;
}
/**
* @return GoogleMapsPlacesV1SearchTextRequestLocationBias
*/
public function getLocationBias()
{
return $this->locationBias;
}
/**
* The region to search. This location serves as a restriction which means
* results outside given location will not be returned. Cannot be set along
* with location_bias.
*
* @param GoogleMapsPlacesV1SearchTextRequestLocationRestriction $locationRestriction
*/
public function setLocationRestriction(GoogleMapsPlacesV1SearchTextRequestLocationRestriction $locationRestriction)
{
$this->locationRestriction = $locationRestriction;
}
/**
* @return GoogleMapsPlacesV1SearchTextRequestLocationRestriction
*/
public function getLocationRestriction()
{
return $this->locationRestriction;
}
/**
* Deprecated: Use `page_size` instead. The maximum number of results per page
* that can be returned. If the number of available results is larger than
* `max_result_count`, a `next_page_token` is returned which can be passed to
* `page_token` to get the next page of results in subsequent requests. If 0
* or no value is provided, a default of 20 is used. The maximum value is 20;
* values above 20 will be coerced to 20. Negative values will return an
* INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are
* specified, `max_result_count` will be ignored.
*
* @deprecated
* @param int $maxResultCount
*/
public function setMaxResultCount($maxResultCount)
{
$this->maxResultCount = $maxResultCount;
}
/**
* @deprecated
* @return int
*/
public function getMaxResultCount()
{
return $this->maxResultCount;
}
public function setMinRating($minRating)
{
$this->minRating = $minRating;
}
public function getMinRating()
{
return $this->minRating;
}
/**
* Used to restrict the search to places that are currently open. The default
* is false.
*
* @param bool $openNow
*/
public function setOpenNow($openNow)
{
$this->openNow = $openNow;
}
/**
* @return bool
*/
public function getOpenNow()
{
return $this->openNow;
}
/**
* Optional. The maximum number of results per page that can be returned. If
* the number of available results is larger than `page_size`, a
* `next_page_token` is returned which can be passed to `page_token` to get
* the next page of results in subsequent requests. If 0 or no value is
* provided, a default of 20 is used. The maximum value is 20; values above 20
* will be set to 20. Negative values will return an INVALID_ARGUMENT error.
* If both `max_result_count` and `page_size` are specified,
* `max_result_count` will be ignored.
*
* @param int $pageSize
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* Optional. A page token, received from a previous TextSearch call. Provide
* this to retrieve the subsequent page. When paginating, all parameters other
* than `page_token`, `page_size`, and `max_result_count` provided to
* TextSearch must match the initial call that provided the page token.
* Otherwise an INVALID_ARGUMENT error is returned.
*
* @param string $pageToken
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* Used to restrict the search to places that are marked as certain price
* levels. Users can choose any combinations of price levels. Default to
* select all price levels.
*
* @param string[] $priceLevels
*/
public function setPriceLevels($priceLevels)
{
$this->priceLevels = $priceLevels;
}
/**
* @return string[]
*/
public function getPriceLevels()
{
return $this->priceLevels;
}
/**
* How results will be ranked in the response.
*
* Accepted values: RANK_PREFERENCE_UNSPECIFIED, DISTANCE, RELEVANCE
*
* @param self::RANK_PREFERENCE_* $rankPreference
*/
public function setRankPreference($rankPreference)
{
$this->rankPreference = $rankPreference;
}
/**
* @return self::RANK_PREFERENCE_*
*/
public function getRankPreference()
{
return $this->rankPreference;
}
/**
* The Unicode country/region code (CLDR) of the location where the request is
* coming from. This parameter is used to display the place details, like
* region-specific place name, if available. The parameter can affect results
* based on applicable law. For more information, see https://www.unicode.org/
* cldr/charts/latest/supplemental/territory_language_information.html. Note
* that 3-digit region codes are not currently supported.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* Optional. Additional parameters for routing to results.
*
* @param GoogleMapsPlacesV1RoutingParameters $routingParameters
*/
public function setRoutingParameters(GoogleMapsPlacesV1RoutingParameters $routingParameters)
{
$this->routingParameters = $routingParameters;
}
/**
* @return GoogleMapsPlacesV1RoutingParameters
*/
public function getRoutingParameters()
{
return $this->routingParameters;
}
/**
* Optional. Additional parameters proto for searching along a route.
*
* @param GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters $searchAlongRouteParameters
*/
public function setSearchAlongRouteParameters(GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters $searchAlongRouteParameters)
{
$this->searchAlongRouteParameters = $searchAlongRouteParameters;
}
/**
* @return GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters
*/
public function getSearchAlongRouteParameters()
{
return $this->searchAlongRouteParameters;
}
/**
* Used to set strict type filtering for included_type. If set to true, only
* results of the same type will be returned. Default to false.
*
* @param bool $strictTypeFiltering
*/
public function setStrictTypeFiltering($strictTypeFiltering)
{
$this->strictTypeFiltering = $strictTypeFiltering;
}
/**
* @return bool
*/
public function getStrictTypeFiltering()
{
return $this->strictTypeFiltering;
}
/**
* Required. The text query for textual search.
*
* @param string $textQuery
*/
public function setTextQuery($textQuery)
{
$this->textQuery = $textQuery;
}
/**
* @return string
*/
public function getTextQuery()
{
return $this->textQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequest::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequest');
@@ -0,0 +1,66 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequestEVOptions extends \Google\Collection
{
protected $collection_key = 'connectorTypes';
/**
* Optional. The list of preferred EV connector types. A place that does not
* support any of the listed connector types is filtered out.
*
* @var string[]
*/
public $connectorTypes;
/**
* Optional. Minimum required charging rate in kilowatts. A place with a
* charging rate less than the specified rate is filtered out.
*
* @var
*/
public $minimumChargingRateKw;
/**
* Optional. The list of preferred EV connector types. A place that does not
* support any of the listed connector types is filtered out.
*
* @param string[] $connectorTypes
*/
public function setConnectorTypes($connectorTypes)
{
$this->connectorTypes = $connectorTypes;
}
/**
* @return string[]
*/
public function getConnectorTypes()
{
return $this->connectorTypes;
}
public function setMinimumChargingRateKw($minimumChargingRateKw)
{
$this->minimumChargingRateKw = $minimumChargingRateKw;
}
public function getMinimumChargingRateKw()
{
return $this->minimumChargingRateKw;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequestEVOptions::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequestEVOptions');
@@ -0,0 +1,60 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequestLocation extends \Google\Model
{
protected $rectangleType = GoogleGeoTypeViewport::class;
protected $rectangleDataType = '';
/**
* @var bool
*/
public $strictRestriction;
/**
* @param GoogleGeoTypeViewport
*/
public function setRectangle(GoogleGeoTypeViewport $rectangle)
{
$this->rectangle = $rectangle;
}
/**
* @return GoogleGeoTypeViewport
*/
public function getRectangle()
{
return $this->rectangle;
}
/**
* @param bool
*/
public function setStrictRestriction($strictRestriction)
{
$this->strictRestriction = $strictRestriction;
}
/**
* @return bool
*/
public function getStrictRestriction()
{
return $this->strictRestriction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequestLocation::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequestLocation');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequestLocationBias extends \Google\Model
{
protected $circleType = GoogleMapsPlacesV1Circle::class;
protected $circleDataType = '';
protected $rectangleType = GoogleGeoTypeViewport::class;
protected $rectangleDataType = '';
/**
* A circle defined by center point and radius.
*
* @param GoogleMapsPlacesV1Circle $circle
*/
public function setCircle(GoogleMapsPlacesV1Circle $circle)
{
$this->circle = $circle;
}
/**
* @return GoogleMapsPlacesV1Circle
*/
public function getCircle()
{
return $this->circle;
}
/**
* A rectangle box defined by northeast and southwest corner.
* `rectangle.high()` must be the northeast point of the rectangle viewport.
* `rectangle.low()` must be the southwest point of the rectangle viewport.
* `rectangle.low().latitude()` cannot be greater than
* `rectangle.high().latitude()`. This will result in an empty latitude range.
* A rectangle viewport cannot be wider than 180 degrees.
*
* @param GoogleGeoTypeViewport $rectangle
*/
public function setRectangle(GoogleGeoTypeViewport $rectangle)
{
$this->rectangle = $rectangle;
}
/**
* @return GoogleGeoTypeViewport
*/
public function getRectangle()
{
return $this->rectangle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequestLocationBias::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequestLocationBias');
@@ -0,0 +1,49 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequestLocationRestriction extends \Google\Model
{
protected $rectangleType = GoogleGeoTypeViewport::class;
protected $rectangleDataType = '';
/**
* A rectangle box defined by northeast and southwest corner.
* `rectangle.high()` must be the northeast point of the rectangle viewport.
* `rectangle.low()` must be the southwest point of the rectangle viewport.
* `rectangle.low().latitude()` cannot be greater than
* `rectangle.high().latitude()`. This will result in an empty latitude range.
* A rectangle viewport cannot be wider than 180 degrees.
*
* @param GoogleGeoTypeViewport $rectangle
*/
public function setRectangle(GoogleGeoTypeViewport $rectangle)
{
$this->rectangle = $rectangle;
}
/**
* @return GoogleGeoTypeViewport
*/
public function getRectangle()
{
return $this->rectangle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequestLocationRestriction::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequestLocationRestriction');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters extends \Google\Model
{
protected $polylineType = GoogleMapsPlacesV1Polyline::class;
protected $polylineDataType = '';
/**
* Required. The route polyline.
*
* @param GoogleMapsPlacesV1Polyline $polyline
*/
public function setPolyline(GoogleMapsPlacesV1Polyline $polyline)
{
$this->polyline = $polyline;
}
/**
* @return GoogleMapsPlacesV1Polyline
*/
public function getPolyline()
{
return $this->polyline;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters');
@@ -0,0 +1,141 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1SearchTextResponse extends \Google\Collection
{
protected $collection_key = 'routingSummaries';
protected $contextualContentsType = GoogleMapsPlacesV1ContextualContent::class;
protected $contextualContentsDataType = 'array';
/**
* A token that can be sent as `page_token` to retrieve the next page. If this
* field is omitted or empty, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $placesType = GoogleMapsPlacesV1Place::class;
protected $placesDataType = 'array';
protected $routingSummariesType = GoogleMapsPlacesV1RoutingSummary::class;
protected $routingSummariesDataType = 'array';
/**
* A link allows the user to search with the same text query as specified in
* the request on Google Maps.
*
* @var string
*/
public $searchUri;
/**
* Experimental: See
* https://developers.google.com/maps/documentation/places/web-
* service/experimental/places-generative for more details. A list of
* contextual contents where each entry associates to the corresponding place
* in the same index in the places field. The contents that are relevant to
* the `text_query` in the request are preferred. If the contextual content is
* not available for one of the places, it will return non-contextual content.
* It will be empty only when the content is unavailable for this place. This
* list will have as many entries as the list of places if requested.
*
* @param GoogleMapsPlacesV1ContextualContent[] $contextualContents
*/
public function setContextualContents($contextualContents)
{
$this->contextualContents = $contextualContents;
}
/**
* @return GoogleMapsPlacesV1ContextualContent[]
*/
public function getContextualContents()
{
return $this->contextualContents;
}
/**
* A token that can be sent as `page_token` to retrieve the next page. If this
* field is omitted or empty, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of places that meet the user's text search criteria.
*
* @param GoogleMapsPlacesV1Place[] $places
*/
public function setPlaces($places)
{
$this->places = $places;
}
/**
* @return GoogleMapsPlacesV1Place[]
*/
public function getPlaces()
{
return $this->places;
}
/**
* A list of routing summaries where each entry associates to the
* corresponding place in the same index in the `places` field. If the routing
* summary is not available for one of the places, it will contain an empty
* entry. This list will have as many entries as the list of places if
* requested.
*
* @param GoogleMapsPlacesV1RoutingSummary[] $routingSummaries
*/
public function setRoutingSummaries($routingSummaries)
{
$this->routingSummaries = $routingSummaries;
}
/**
* @return GoogleMapsPlacesV1RoutingSummary[]
*/
public function getRoutingSummaries()
{
return $this->routingSummaries;
}
/**
* A link allows the user to search with the same text query as specified in
* the request on Google Maps.
*
* @param string $searchUri
*/
public function setSearchUri($searchUri)
{
$this->searchUri = $searchUri;
}
/**
* @return string
*/
public function getSearchUri()
{
return $this->searchUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1SearchTextResponse::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1SearchTextResponse');
@@ -0,0 +1,127 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1TransitAgency extends \Google\Collection
{
protected $collection_key = 'lines';
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
/**
* The URL of the agency's fare details page.
*
* @var string
*/
public $fareUrl;
protected $iconType = GoogleMapsPlacesV1TransitIcon::class;
protected $iconDataType = '';
protected $linesType = GoogleMapsPlacesV1TransitLine::class;
protected $linesDataType = 'array';
/**
* The URL of the agency's homepage.
*
* @var string
*/
public $url;
/**
* Agency name (e.g. "VTA") in the requested language.
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The URL of the agency's fare details page.
*
* @param string $fareUrl
*/
public function setFareUrl($fareUrl)
{
$this->fareUrl = $fareUrl;
}
/**
* @return string
*/
public function getFareUrl()
{
return $this->fareUrl;
}
/**
* Icon identifier for localized branded icon of a transit system (e.g. London
* Underground) which should be used instead of TransitLine.vehicle_icon in
* the UI.
*
* @param GoogleMapsPlacesV1TransitIcon $icon
*/
public function setIcon(GoogleMapsPlacesV1TransitIcon $icon)
{
$this->icon = $icon;
}
/**
* @return GoogleMapsPlacesV1TransitIcon
*/
public function getIcon()
{
return $this->icon;
}
/**
* The transit lines that are served by this agency.
*
* @param GoogleMapsPlacesV1TransitLine[] $lines
*/
public function setLines($lines)
{
$this->lines = $lines;
}
/**
* @return GoogleMapsPlacesV1TransitLine[]
*/
public function getLines()
{
return $this->lines;
}
/**
* The URL of the agency's homepage.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1TransitAgency::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1TransitAgency');
@@ -0,0 +1,72 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1TransitIcon extends \Google\Model
{
/**
* Whether the name is contained in the icon and there is no need to display
* it next to the icon.
*
* @var bool
*/
public $nameIncluded;
/**
* The URL of the icon.
*
* @var string
*/
public $url;
/**
* Whether the name is contained in the icon and there is no need to display
* it next to the icon.
*
* @param bool $nameIncluded
*/
public function setNameIncluded($nameIncluded)
{
$this->nameIncluded = $nameIncluded;
}
/**
* @return bool
*/
public function getNameIncluded()
{
return $this->nameIncluded;
}
/**
* The URL of the icon.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1TransitIcon::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1TransitIcon');
@@ -0,0 +1,312 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1TransitLine extends \Google\Model
{
/**
* Default value when vehicle type is not specified.
*/
public const VEHICLE_TYPE_VEHICLE_TYPE_UNSPECIFIED = 'VEHICLE_TYPE_UNSPECIFIED';
/**
* Rail.
*/
public const VEHICLE_TYPE_RAIL = 'RAIL';
/**
* Metro rail.
*/
public const VEHICLE_TYPE_METRO_RAIL = 'METRO_RAIL';
/**
* Subway.
*/
public const VEHICLE_TYPE_SUBWAY = 'SUBWAY';
/**
* Tram.
*/
public const VEHICLE_TYPE_TRAM = 'TRAM';
/**
* Monorail.
*/
public const VEHICLE_TYPE_MONORAIL = 'MONORAIL';
/**
* Heavy rail.
*/
public const VEHICLE_TYPE_HEAVY_RAIL = 'HEAVY_RAIL';
/**
* Commuter train.
*/
public const VEHICLE_TYPE_COMMUTER_TRAIN = 'COMMUTER_TRAIN';
/**
* High speed train.
*/
public const VEHICLE_TYPE_HIGH_SPEED_TRAIN = 'HIGH_SPEED_TRAIN';
/**
* Long distance train.
*/
public const VEHICLE_TYPE_LONG_DISTANCE_TRAIN = 'LONG_DISTANCE_TRAIN';
/**
* Bus.
*/
public const VEHICLE_TYPE_BUS = 'BUS';
/**
* Intercity bus.
*/
public const VEHICLE_TYPE_INTERCITY_BUS = 'INTERCITY_BUS';
/**
* Trolleybus.
*/
public const VEHICLE_TYPE_TROLLEYBUS = 'TROLLEYBUS';
/**
* Share taxi.
*/
public const VEHICLE_TYPE_SHARE_TAXI = 'SHARE_TAXI';
/**
* Coach.
*/
public const VEHICLE_TYPE_COACH = 'COACH';
/**
* Ferry.
*/
public const VEHICLE_TYPE_FERRY = 'FERRY';
/**
* Cable car.
*/
public const VEHICLE_TYPE_CABLE_CAR = 'CABLE_CAR';
/**
* Gondola lift.
*/
public const VEHICLE_TYPE_GONDOLA_LIFT = 'GONDOLA_LIFT';
/**
* Funicular.
*/
public const VEHICLE_TYPE_FUNICULAR = 'FUNICULAR';
/**
* Special.
*/
public const VEHICLE_TYPE_SPECIAL = 'SPECIAL';
/**
* Horse carriage.
*/
public const VEHICLE_TYPE_HORSE_CARRIAGE = 'HORSE_CARRIAGE';
/**
* Airplane.
*/
public const VEHICLE_TYPE_AIRPLANE = 'AIRPLANE';
/**
* The background color of the labels for this transit line in #RRGGBB hex
* format, e.g. #909CE1. This color can also be used for drawing shapes for
* this transit line.
*
* @var string
*/
public $backgroundColor;
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
protected $iconType = GoogleMapsPlacesV1TransitIcon::class;
protected $iconDataType = '';
/**
* The id of the transit line that can be used to uniquely identify the line
* among other transit lines in the same transit station. This identifier is
* not guaranteed to be stable across different responses.
*
* @var string
*/
public $id;
protected $shortDisplayNameType = GoogleTypeLocalizedText::class;
protected $shortDisplayNameDataType = '';
/**
* The text color of labels for this transit line in #RRGGBB hex format, e.g.
* #909CE1.
*
* @var string
*/
public $textColor;
/**
* The URL of a webpage with details about this line.
*
* @var string
*/
public $url;
protected $vehicleIconType = GoogleMapsPlacesV1TransitIcon::class;
protected $vehicleIconDataType = '';
/**
* The type of vehicle using this line.
*
* @var string
*/
public $vehicleType;
/**
* The background color of the labels for this transit line in #RRGGBB hex
* format, e.g. #909CE1. This color can also be used for drawing shapes for
* this transit line.
*
* @param string $backgroundColor
*/
public function setBackgroundColor($backgroundColor)
{
$this->backgroundColor = $backgroundColor;
}
/**
* @return string
*/
public function getBackgroundColor()
{
return $this->backgroundColor;
}
/**
* The long name for this transit line (e.g. "Sunnydale local").
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Icon identifier for this particular line (e.g. subway lines in New York).
*
* @param GoogleMapsPlacesV1TransitIcon $icon
*/
public function setIcon(GoogleMapsPlacesV1TransitIcon $icon)
{
$this->icon = $icon;
}
/**
* @return GoogleMapsPlacesV1TransitIcon
*/
public function getIcon()
{
return $this->icon;
}
/**
* The id of the transit line that can be used to uniquely identify the line
* among other transit lines in the same transit station. This identifier is
* not guaranteed to be stable across different responses.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The short name for this transit line (e.g. "S2").
*
* @param GoogleTypeLocalizedText $shortDisplayName
*/
public function setShortDisplayName(GoogleTypeLocalizedText $shortDisplayName)
{
$this->shortDisplayName = $shortDisplayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getShortDisplayName()
{
return $this->shortDisplayName;
}
/**
* The text color of labels for this transit line in #RRGGBB hex format, e.g.
* #909CE1.
*
* @param string $textColor
*/
public function setTextColor($textColor)
{
$this->textColor = $textColor;
}
/**
* @return string
*/
public function getTextColor()
{
return $this->textColor;
}
/**
* The URL of a webpage with details about this line.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Icon identifier for this particular vehicle type.
*
* @param GoogleMapsPlacesV1TransitIcon $vehicleIcon
*/
public function setVehicleIcon(GoogleMapsPlacesV1TransitIcon $vehicleIcon)
{
$this->vehicleIcon = $vehicleIcon;
}
/**
* @return GoogleMapsPlacesV1TransitIcon
*/
public function getVehicleIcon()
{
return $this->vehicleIcon;
}
/**
* The type of vehicle using this line.
*
* Accepted values: VEHICLE_TYPE_UNSPECIFIED, RAIL, METRO_RAIL, SUBWAY, TRAM,
* MONORAIL, HEAVY_RAIL, COMMUTER_TRAIN, HIGH_SPEED_TRAIN,
* LONG_DISTANCE_TRAIN, BUS, INTERCITY_BUS, TROLLEYBUS, SHARE_TAXI, COACH,
* FERRY, CABLE_CAR, GONDOLA_LIFT, FUNICULAR, SPECIAL, HORSE_CARRIAGE,
* AIRPLANE
*
* @param self::VEHICLE_TYPE_* $vehicleType
*/
public function setVehicleType($vehicleType)
{
$this->vehicleType = $vehicleType;
}
/**
* @return self::VEHICLE_TYPE_*
*/
public function getVehicleType()
{
return $this->vehicleType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1TransitLine::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1TransitLine');
@@ -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\MapsPlaces;
class GoogleMapsPlacesV1TransitStation extends \Google\Collection
{
protected $collection_key = 'stops';
protected $agenciesType = GoogleMapsPlacesV1TransitAgency::class;
protected $agenciesDataType = 'array';
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
protected $stopsType = GoogleMapsPlacesV1TransitStop::class;
protected $stopsDataType = 'array';
/**
* The transit agencies that serve this station.
*
* @param GoogleMapsPlacesV1TransitAgency[] $agencies
*/
public function setAgencies($agencies)
{
$this->agencies = $agencies;
}
/**
* @return GoogleMapsPlacesV1TransitAgency[]
*/
public function getAgencies()
{
return $this->agencies;
}
/**
* The name of the station in the local language.
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Transit stops at this station.
*
* @param GoogleMapsPlacesV1TransitStop[] $stops
*/
public function setStops($stops)
{
$this->stops = $stops;
}
/**
* @return GoogleMapsPlacesV1TransitStop[]
*/
public function getStops()
{
return $this->stops;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1TransitStation::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1TransitStation');
@@ -0,0 +1,173 @@
<?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\MapsPlaces;
class GoogleMapsPlacesV1TransitStop extends \Google\Model
{
protected $displayNameType = GoogleTypeLocalizedText::class;
protected $displayNameDataType = '';
/**
* The id of the transit stop that can be used to uniquely identify the stop
* among other transit stops in the same transit station. This identifier is
* not guaranteed to be stable across different responses.
*
* @var string
*/
public $id;
protected $locationType = GoogleTypeLatLng::class;
protected $locationDataType = '';
protected $platformCodeType = GoogleTypeLocalizedText::class;
protected $platformCodeDataType = '';
protected $signageTextType = GoogleTypeLocalizedText::class;
protected $signageTextDataType = '';
protected $stopCodeType = GoogleTypeLocalizedText::class;
protected $stopCodeDataType = '';
/**
* Wheelchair accessibility of this stop. This field indicates whether there
* is an accessible path from outside the station to the stop. It does not
* indicate whether it is possible to board a vehicle from the stop.
*
* @var bool
*/
public $wheelchairAccessibleEntrance;
/**
* The name of the stop.
*
* @param GoogleTypeLocalizedText $displayName
*/
public function setDisplayName(GoogleTypeLocalizedText $displayName)
{
$this->displayName = $displayName;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The id of the transit stop that can be used to uniquely identify the stop
* among other transit stops in the same transit station. This identifier is
* not guaranteed to be stable across different responses.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The stop's location.
*
* @param GoogleTypeLatLng $location
*/
public function setLocation(GoogleTypeLatLng $location)
{
$this->location = $location;
}
/**
* @return GoogleTypeLatLng
*/
public function getLocation()
{
return $this->location;
}
/**
* The platform code represented by this stop. It can be formatted in any way.
* (eg: "2", "Platform 2", "2-4", or "1x").
*
* @param GoogleTypeLocalizedText $platformCode
*/
public function setPlatformCode(GoogleTypeLocalizedText $platformCode)
{
$this->platformCode = $platformCode;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getPlatformCode()
{
return $this->platformCode;
}
/**
* The verbatim text written on the signboard for this platform, e.g. "Towards
* Central" or "East side & Brooklyn". When `platform_code` is absent, this
* field is potentially the only identifier for the platform; however, both
* `platform_code` and `signage_text` may be set simultaneously.
*
* @param GoogleTypeLocalizedText $signageText
*/
public function setSignageText(GoogleTypeLocalizedText $signageText)
{
$this->signageText = $signageText;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getSignageText()
{
return $this->signageText;
}
/**
* Human readable identifier of the stop, used by transit agencies to
* distinguish stops with the same name.
*
* @param GoogleTypeLocalizedText $stopCode
*/
public function setStopCode(GoogleTypeLocalizedText $stopCode)
{
$this->stopCode = $stopCode;
}
/**
* @return GoogleTypeLocalizedText
*/
public function getStopCode()
{
return $this->stopCode;
}
/**
* Wheelchair accessibility of this stop. This field indicates whether there
* is an accessible path from outside the station to the stop. It does not
* indicate whether it is possible to board a vehicle from the stop.
*
* @param bool $wheelchairAccessibleEntrance
*/
public function setWheelchairAccessibleEntrance($wheelchairAccessibleEntrance)
{
$this->wheelchairAccessibleEntrance = $wheelchairAccessibleEntrance;
}
/**
* @return bool
*/
public function getWheelchairAccessibleEntrance()
{
return $this->wheelchairAccessibleEntrance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleMapsPlacesV1TransitStop::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1TransitStop');
@@ -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\MapsPlaces;
class GoogleTypeDate 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(GoogleTypeDate::class, 'Google_Service_MapsPlaces_GoogleTypeDate');
@@ -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\MapsPlaces;
class GoogleTypeLatLng 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(GoogleTypeLatLng::class, 'Google_Service_MapsPlaces_GoogleTypeLatLng');
@@ -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\MapsPlaces;
class GoogleTypeLocalizedText extends \Google\Model
{
/**
* The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Localized string in the language corresponding to language_code below.
*
* @var string
*/
public $text;
/**
* The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Localized string in the language corresponding to language_code below.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeLocalizedText::class, 'Google_Service_MapsPlaces_GoogleTypeLocalizedText');
@@ -0,0 +1,104 @@
<?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\MapsPlaces;
class GoogleTypeMoney extends \Google\Model
{
/**
* The three-letter currency code defined in ISO 4217.
*
* @var string
*/
public $currencyCode;
/**
* Number of nano (10^-9) units of the amount. The value must be between
* -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
* must be positive or zero. If `units` is zero, `nanos` can be positive,
* zero, or negative. If `units` is negative, `nanos` must be negative or
* zero. For example $-1.75 is represented as `units`=-1 and
* `nanos`=-750,000,000.
*
* @var int
*/
public $nanos;
/**
* The whole units of the amount. For example if `currencyCode` is `"USD"`,
* then 1 unit is one US dollar.
*
* @var string
*/
public $units;
/**
* The three-letter currency code defined in ISO 4217.
*
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* Number of nano (10^-9) units of the amount. The value must be between
* -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
* must be positive or zero. If `units` is zero, `nanos` can be positive,
* zero, or negative. If `units` is negative, `nanos` must be negative or
* zero. For example $-1.75 is represented as `units`=-1 and
* `nanos`=-750,000,000.
*
* @param int $nanos
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* The whole units of the amount. For example if `currencyCode` is `"USD"`,
* then 1 unit is one US dollar.
*
* @param string $units
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeMoney::class, 'Google_Service_MapsPlaces_GoogleTypeMoney');
@@ -0,0 +1,365 @@
<?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\MapsPlaces;
class GoogleTypePostalAddress extends \Google\Collection
{
protected $collection_key = 'recipients';
/**
* Unstructured address lines describing the lower levels of an address.
* Because values in `address_lines` do not have type information and may
* sometimes contain multiple values in a single field (for example, "Austin,
* TX"), it is important that the line order is clear. The order of address
* lines should be "envelope order" for the country or region of the address.
* In places where this can vary (for example, Japan), `address_language` is
* used to make it explicit (for example, "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). In this way, the most specific line
* of an address can be selected based on the language. The minimum permitted
* structural representation of an address consists of a `region_code` with
* all remaining information placed in the `address_lines`. It would be
* possible to format such an address very approximately without geocoding,
* but no semantic reasoning could be made about any of the address components
* until it was at least partially resolved. Creating an address only
* containing a `region_code` and `address_lines` and then geocoding is the
* recommended way to handle completely unstructured addresses (as opposed to
* guessing which parts of the address should be localities or administrative
* areas).
*
* @var string[]
*/
public $addressLines;
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region. For example, this can be a state, a
* province, an oblast, or a prefecture. For Spain, this is the province and
* not the autonomous community (for example, "Barcelona" and not
* "Catalonia"). Many countries don't use an administrative area in postal
* addresses. For example, in Switzerland, this should be left unpopulated.
*
* @var string
*/
public $administrativeArea;
/**
* Optional. BCP-47 language code of the contents of this address (if known).
* This is often the UI language of the input form or is expected to match one
* of the languages used in the address' country/region, or their
* transliterated equivalents. This can affect formatting in certain
* countries, but is not critical to the correctness of the data and will
* never affect any validation or other non-formatting related operations. If
* this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
* @var string
*/
public $languageCode;
/**
* Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave `locality` empty and use `address_lines`.
*
* @var string
*/
public $locality;
/**
* Optional. The name of the organization at the address.
*
* @var string
*/
public $organization;
/**
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
* additional validation with other parts of the address (for example, state
* or zip code validation in the United States).
*
* @var string
*/
public $postalCode;
/**
* Optional. The recipient at the address. This field may, under certain
* circumstances, contain multiline information. For example, it might contain
* "care of" information.
*
* @var string[]
*/
public $recipients;
/**
* Required. CLDR region code of the country/region of the address. This is
* never inferred and it is up to the user to ensure the value is correct. See
* https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supple
* mental/territory_information.html for details. Example: "CH" for
* Switzerland.
*
* @var string
*/
public $regionCode;
/**
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision. All new revisions **must** be backward compatible with
* old revisions.
*
* @var int
*/
public $revision;
/**
* Optional. Additional, country-specific, sorting code. This is not used in
* most regions. Where it is used, the value is either a string like "CEDEX",
* optionally followed by a number (for example, "CEDEX 7"), or just a number
* alone, representing the "sector code" (Jamaica), "delivery area indicator"
* (Malawi) or "post office indicator" (Côte d'Ivoire).
*
* @var string
*/
public $sortingCode;
/**
* Optional. Sublocality of the address. For example, this can be a
* neighborhood, borough, or district.
*
* @var string
*/
public $sublocality;
/**
* Unstructured address lines describing the lower levels of an address.
* Because values in `address_lines` do not have type information and may
* sometimes contain multiple values in a single field (for example, "Austin,
* TX"), it is important that the line order is clear. The order of address
* lines should be "envelope order" for the country or region of the address.
* In places where this can vary (for example, Japan), `address_language` is
* used to make it explicit (for example, "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). In this way, the most specific line
* of an address can be selected based on the language. The minimum permitted
* structural representation of an address consists of a `region_code` with
* all remaining information placed in the `address_lines`. It would be
* possible to format such an address very approximately without geocoding,
* but no semantic reasoning could be made about any of the address components
* until it was at least partially resolved. Creating an address only
* containing a `region_code` and `address_lines` and then geocoding is the
* recommended way to handle completely unstructured addresses (as opposed to
* guessing which parts of the address should be localities or administrative
* areas).
*
* @param string[] $addressLines
*/
public function setAddressLines($addressLines)
{
$this->addressLines = $addressLines;
}
/**
* @return string[]
*/
public function getAddressLines()
{
return $this->addressLines;
}
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region. For example, this can be a state, a
* province, an oblast, or a prefecture. For Spain, this is the province and
* not the autonomous community (for example, "Barcelona" and not
* "Catalonia"). Many countries don't use an administrative area in postal
* addresses. For example, in Switzerland, this should be left unpopulated.
*
* @param string $administrativeArea
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* Optional. BCP-47 language code of the contents of this address (if known).
* This is often the UI language of the input form or is expected to match one
* of the languages used in the address' country/region, or their
* transliterated equivalents. This can affect formatting in certain
* countries, but is not critical to the correctness of the data and will
* never affect any validation or other non-formatting related operations. If
* this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave `locality` empty and use `address_lines`.
*
* @param string $locality
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* Optional. The name of the organization at the address.
*
* @param string $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return string
*/
public function getOrganization()
{
return $this->organization;
}
/**
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
* additional validation with other parts of the address (for example, state
* or zip code validation in the United States).
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Optional. The recipient at the address. This field may, under certain
* circumstances, contain multiline information. For example, it might contain
* "care of" information.
*
* @param string[] $recipients
*/
public function setRecipients($recipients)
{
$this->recipients = $recipients;
}
/**
* @return string[]
*/
public function getRecipients()
{
return $this->recipients;
}
/**
* Required. CLDR region code of the country/region of the address. This is
* never inferred and it is up to the user to ensure the value is correct. See
* https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supple
* mental/territory_information.html for details. Example: "CH" for
* Switzerland.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision. All new revisions **must** be backward compatible with
* old revisions.
*
* @param int $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return int
*/
public function getRevision()
{
return $this->revision;
}
/**
* Optional. Additional, country-specific, sorting code. This is not used in
* most regions. Where it is used, the value is either a string like "CEDEX",
* optionally followed by a number (for example, "CEDEX 7"), or just a number
* alone, representing the "sector code" (Jamaica), "delivery area indicator"
* (Malawi) or "post office indicator" (Côte d'Ivoire).
*
* @param string $sortingCode
*/
public function setSortingCode($sortingCode)
{
$this->sortingCode = $sortingCode;
}
/**
* @return string
*/
public function getSortingCode()
{
return $this->sortingCode;
}
/**
* Optional. Sublocality of the address. For example, this can be a
* neighborhood, borough, or district.
*
* @param string $sublocality
*/
public function setSublocality($sublocality)
{
$this->sublocality = $sublocality;
}
/**
* @return string
*/
public function getSublocality()
{
return $this->sublocality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypePostalAddress::class, 'Google_Service_MapsPlaces_GoogleTypePostalAddress');
@@ -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\MapsPlaces;
class GoogleTypeTimeZone extends \Google\Model
{
/**
* IANA Time Zone Database time zone. For example "America/New_York".
*
* @var string
*/
public $id;
/**
* Optional. IANA Time Zone Database version number. For example "2019a".
*
* @var string
*/
public $version;
/**
* IANA Time Zone Database time zone. For example "America/New_York".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. IANA Time Zone Database version number. For example "2019a".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeTimeZone::class, 'Google_Service_MapsPlaces_GoogleTypeTimeZone');
@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MapsPlaces\Resource;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1AutocompletePlacesRequest;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1AutocompletePlacesResponse;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1Place;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchNearbyRequest;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchNearbyResponse;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchTextRequest;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchTextResponse;
/**
* The "places" collection of methods.
* Typical usage is:
* <code>
* $placesService = new Google\Service\MapsPlaces(...);
* $places = $placesService->places;
* </code>
*/
class Places extends \Google\Service\Resource
{
/**
* Returns predictions for the given input. (places.autocomplete)
*
* @param GoogleMapsPlacesV1AutocompletePlacesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleMapsPlacesV1AutocompletePlacesResponse
* @throws \Google\Service\Exception
*/
public function autocomplete(GoogleMapsPlacesV1AutocompletePlacesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('autocomplete', [$params], GoogleMapsPlacesV1AutocompletePlacesResponse::class);
}
/**
* Get the details of a place based on its resource name, which is a string in
* the `places/{place_id}` format. (places.get)
*
* @param string $name Required. The resource name of a place, in the
* `places/{place_id}` format.
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode Optional. Place details will be displayed with
* the preferred language if available. Current list of supported languages:
* https://developers.google.com/maps/faq#languagesupport.
* @opt_param string regionCode Optional. The Unicode country/region code (CLDR)
* of the location where the request is coming from. This parameter is used to
* display the place details, like region-specific place name, if available. The
* parameter can affect results based on applicable law. For more information,
* see https://www.unicode.org/cldr/charts/latest/supplemental/territory_languag
* e_information.html. Note that 3-digit region codes are not currently
* supported.
* @opt_param string sessionToken Optional. A string which identifies an
* Autocomplete session for billing purposes. Must be a URL and filename safe
* base64 string with at most 36 ASCII characters in length. Otherwise an
* INVALID_ARGUMENT error is returned. The session begins when the user starts
* typing a query, and concludes when they select a place and a call to Place
* Details or Address Validation is made. Each session can have multiple
* queries, followed by one Place Details or Address Validation request. The
* credentials used for each request within a session must belong to the same
* Google Cloud Console project. Once a session has concluded, the token is no
* longer valid; your app must generate a fresh token for each session. If the
* `session_token` parameter is omitted, or if you reuse a session token, the
* session is charged as if no session token was provided (each request is
* billed separately). We recommend the following guidelines: * Use session
* tokens for all Place Autocomplete calls. * Generate a fresh token for each
* session. Using a version 4 UUID is recommended. * Ensure that the credentials
* used for all Place Autocomplete, Place Details, and Address Validation
* requests within a session belong to the same Cloud Console project. * Be sure
* to pass a unique session token for each new session. Using the same token for
* more than one session will result in each request being billed individually.
* @return GoogleMapsPlacesV1Place
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleMapsPlacesV1Place::class);
}
/**
* Search for places near locations. (places.searchNearby)
*
* @param GoogleMapsPlacesV1SearchNearbyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleMapsPlacesV1SearchNearbyResponse
* @throws \Google\Service\Exception
*/
public function searchNearby(GoogleMapsPlacesV1SearchNearbyRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('searchNearby', [$params], GoogleMapsPlacesV1SearchNearbyResponse::class);
}
/**
* Text query based place search. (places.searchText)
*
* @param GoogleMapsPlacesV1SearchTextRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleMapsPlacesV1SearchTextResponse
* @throws \Google\Service\Exception
*/
public function searchText(GoogleMapsPlacesV1SearchTextRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('searchText', [$params], GoogleMapsPlacesV1SearchTextResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Places::class, 'Google_Service_MapsPlaces_Resource_Places');
@@ -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\MapsPlaces\Resource;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1PhotoMedia;
/**
* The "photos" collection of methods.
* Typical usage is:
* <code>
* $placesService = new Google\Service\MapsPlaces(...);
* $photos = $placesService->places_photos;
* </code>
*/
class PlacesPhotos extends \Google\Service\Resource
{
/**
* Get a photo media with a photo reference string. (photos.getMedia)
*
* @param string $name Required. The resource name of a photo media in the
* format: `places/{place_id}/photos/{photo_reference}/media`. The resource name
* of a photo as returned in a Place object's `photos.name` field comes with the
* format `places/{place_id}/photos/{photo_reference}`. You need to append
* `/media` at the end of the photo resource to get the photo media resource
* name.
* @param array $optParams Optional parameters.
*
* @opt_param int maxHeightPx Optional. Specifies the maximum desired height, in
* pixels, of the image. If the image is smaller than the values specified, the
* original image will be returned. If the image is larger in either dimension,
* it will be scaled to match the smaller of the two dimensions, restricted to
* its original aspect ratio. Both the max_height_px and max_width_px properties
* accept an integer between 1 and 4800, inclusively. If the value is not within
* the allowed range, an INVALID_ARGUMENT error will be returned. At least one
* of max_height_px or max_width_px needs to be specified. If neither
* max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will
* be returned.
* @opt_param int maxWidthPx Optional. Specifies the maximum desired width, in
* pixels, of the image. If the image is smaller than the values specified, the
* original image will be returned. If the image is larger in either dimension,
* it will be scaled to match the smaller of the two dimensions, restricted to
* its original aspect ratio. Both the max_height_px and max_width_px properties
* accept an integer between 1 and 4800, inclusively. If the value is not within
* the allowed range, an INVALID_ARGUMENT error will be returned. At least one
* of max_height_px or max_width_px needs to be specified. If neither
* max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will
* be returned.
* @opt_param bool skipHttpRedirect Optional. If set, skip the default HTTP
* redirect behavior and render a text format (for example, in JSON format for
* HTTP use case) response. If not set, an HTTP redirect will be issued to
* redirect the call to the image media. This option is ignored for non-HTTP
* requests.
* @return GoogleMapsPlacesV1PhotoMedia
* @throws \Google\Service\Exception
*/
public function getMedia($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getMedia', [$params], GoogleMapsPlacesV1PhotoMedia::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacesPhotos::class, 'Google_Service_MapsPlaces_Resource_PlacesPhotos');
@@ -0,0 +1,49 @@
<?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\MapsPlaces\Resource;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchTextRequest;
use Google\Service\MapsPlaces\GoogleMapsPlacesV1SearchTextResponse;
/**
* The "Text" collection of methods.
* Typical usage is:
* <code>
* $placesService = new Google\Service\MapsPlaces(...);
* $Text = $placesService->Text;
* </code>
*/
class Text extends \Google\Service\Resource
{
/**
* Text query based place search. (Text.search)
*
* @param GoogleMapsPlacesV1SearchTextRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleMapsPlacesV1SearchTextResponse
*/
public function search(GoogleMapsPlacesV1SearchTextRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleMapsPlacesV1SearchTextResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Text::class, 'Google_Service_MapsPlaces_Resource_Text');