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,50 @@
<?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\MyBusinessBusinessInformation;
class AdWordsLocationExtensions extends \Google\Model
{
/**
* Required. An alternate phone number to display on AdWords location
* extensions instead of the location's primary phone number.
*
* @var string
*/
public $adPhone;
/**
* Required. An alternate phone number to display on AdWords location
* extensions instead of the location's primary phone number.
*
* @param string $adPhone
*/
public function setAdPhone($adPhone)
{
$this->adPhone = $adPhone;
}
/**
* @return string
*/
public function getAdPhone()
{
return $this->adPhone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdWordsLocationExtensions::class, 'Google_Service_MyBusinessBusinessInformation_AdWordsLocationExtensions');
@@ -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\MyBusinessBusinessInformation;
class AssociateLocationRequest extends \Google\Model
{
/**
* @var string
*/
public $placeId;
/**
* @param string
*/
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(AssociateLocationRequest::class, 'Google_Service_MyBusinessBusinessInformation_AssociateLocationRequest');
@@ -0,0 +1,162 @@
<?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\MyBusinessBusinessInformation;
class Attribute extends \Google\Collection
{
/**
* Not specified.
*/
public const VALUE_TYPE_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED = 'ATTRIBUTE_VALUE_TYPE_UNSPECIFIED';
/**
* The values for this attribute are boolean values.
*/
public const VALUE_TYPE_BOOL = 'BOOL';
/**
* The attribute has a predetermined list of available values that can be
* used. Metadata for this attribute will list these values.
*/
public const VALUE_TYPE_ENUM = 'ENUM';
/**
* The values for this attribute are URLs.
*/
public const VALUE_TYPE_URL = 'URL';
/**
* The attribute value is an enum with multiple possible values that can be
* explicitly set or unset.
*/
public const VALUE_TYPE_REPEATED_ENUM = 'REPEATED_ENUM';
protected $collection_key = 'values';
/**
* Required. The resource name for this attribute.
*
* @var string
*/
public $name;
protected $repeatedEnumValueType = RepeatedEnumAttributeValue::class;
protected $repeatedEnumValueDataType = '';
protected $uriValuesType = UriAttributeValue::class;
protected $uriValuesDataType = 'array';
/**
* Output only. The type of value that this attribute contains. This should be
* used to determine how to interpret the value.
*
* @var string
*/
public $valueType;
/**
* The values for this attribute. The type of the values supplied must match
* that expected for that attribute. This is a repeated field where multiple
* attribute values may be provided. Attribute types only support one value.
*
* @var array[]
*/
public $values;
/**
* Required. The resource name for this attribute.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* When the attribute value type is REPEATED_ENUM, this contains the attribute
* value, and the other values fields must be empty.
*
* @param RepeatedEnumAttributeValue $repeatedEnumValue
*/
public function setRepeatedEnumValue(RepeatedEnumAttributeValue $repeatedEnumValue)
{
$this->repeatedEnumValue = $repeatedEnumValue;
}
/**
* @return RepeatedEnumAttributeValue
*/
public function getRepeatedEnumValue()
{
return $this->repeatedEnumValue;
}
/**
* When the attribute value type is URL, this field contains the value(s) for
* this attribute, and the other values fields must be empty.
*
* @param UriAttributeValue[] $uriValues
*/
public function setUriValues($uriValues)
{
$this->uriValues = $uriValues;
}
/**
* @return UriAttributeValue[]
*/
public function getUriValues()
{
return $this->uriValues;
}
/**
* Output only. The type of value that this attribute contains. This should be
* used to determine how to interpret the value.
*
* Accepted values: ATTRIBUTE_VALUE_TYPE_UNSPECIFIED, BOOL, ENUM, URL,
* REPEATED_ENUM
*
* @param self::VALUE_TYPE_* $valueType
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return self::VALUE_TYPE_*
*/
public function getValueType()
{
return $this->valueType;
}
/**
* The values for this attribute. The type of the values supplied must match
* that expected for that attribute. This is a repeated field where multiple
* attribute values may be provided. Attribute types only support one value.
*
* @param array[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return array[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attribute::class, 'Google_Service_MyBusinessBusinessInformation_Attribute');
@@ -0,0 +1,221 @@
<?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\MyBusinessBusinessInformation;
class AttributeMetadata extends \Google\Collection
{
/**
* Not specified.
*/
public const VALUE_TYPE_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED = 'ATTRIBUTE_VALUE_TYPE_UNSPECIFIED';
/**
* The values for this attribute are boolean values.
*/
public const VALUE_TYPE_BOOL = 'BOOL';
/**
* The attribute has a predetermined list of available values that can be
* used. Metadata for this attribute will list these values.
*/
public const VALUE_TYPE_ENUM = 'ENUM';
/**
* The values for this attribute are URLs.
*/
public const VALUE_TYPE_URL = 'URL';
/**
* The attribute value is an enum with multiple possible values that can be
* explicitly set or unset.
*/
public const VALUE_TYPE_REPEATED_ENUM = 'REPEATED_ENUM';
protected $collection_key = 'valueMetadata';
/**
* If true, the attribute is deprecated and should no longer be used. If
* deprecated, updating this attribute will not result in an error, but
* updates will not be saved. At some point after being deprecated, the
* attribute will be removed entirely and it will become an error.
*
* @var bool
*/
public $deprecated;
/**
* The localized display name for the attribute, if available; otherwise, the
* English display name.
*
* @var string
*/
public $displayName;
/**
* The localized display name of the group that contains this attribute, if
* available; otherwise, the English group name. Related attributes are
* collected into a group and should be displayed together under the heading
* given here.
*
* @var string
*/
public $groupDisplayName;
/**
* The unique identifier for the attribute.
*
* @var string
*/
public $parent;
/**
* If true, the attribute supports multiple values. If false, only a single
* value should be provided.
*
* @var bool
*/
public $repeatable;
protected $valueMetadataType = AttributeValueMetadata::class;
protected $valueMetadataDataType = 'array';
/**
* The value type for the attribute. Values set and retrieved should be
* expected to be of this type.
*
* @var string
*/
public $valueType;
/**
* If true, the attribute is deprecated and should no longer be used. If
* deprecated, updating this attribute will not result in an error, but
* updates will not be saved. At some point after being deprecated, the
* attribute will be removed entirely and it will become an error.
*
* @param bool $deprecated
*/
public function setDeprecated($deprecated)
{
$this->deprecated = $deprecated;
}
/**
* @return bool
*/
public function getDeprecated()
{
return $this->deprecated;
}
/**
* The localized display name for the attribute, if available; otherwise, the
* English display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The localized display name of the group that contains this attribute, if
* available; otherwise, the English group name. Related attributes are
* collected into a group and should be displayed together under the heading
* given here.
*
* @param string $groupDisplayName
*/
public function setGroupDisplayName($groupDisplayName)
{
$this->groupDisplayName = $groupDisplayName;
}
/**
* @return string
*/
public function getGroupDisplayName()
{
return $this->groupDisplayName;
}
/**
* The unique identifier for the attribute.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* If true, the attribute supports multiple values. If false, only a single
* value should be provided.
*
* @param bool $repeatable
*/
public function setRepeatable($repeatable)
{
$this->repeatable = $repeatable;
}
/**
* @return bool
*/
public function getRepeatable()
{
return $this->repeatable;
}
/**
* For some types of attributes (for example, enums), a list of supported
* values and corresponding display names for those values is provided.
*
* @param AttributeValueMetadata[] $valueMetadata
*/
public function setValueMetadata($valueMetadata)
{
$this->valueMetadata = $valueMetadata;
}
/**
* @return AttributeValueMetadata[]
*/
public function getValueMetadata()
{
return $this->valueMetadata;
}
/**
* The value type for the attribute. Values set and retrieved should be
* expected to be of this type.
*
* Accepted values: ATTRIBUTE_VALUE_TYPE_UNSPECIFIED, BOOL, ENUM, URL,
* REPEATED_ENUM
*
* @param self::VALUE_TYPE_* $valueType
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return self::VALUE_TYPE_*
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributeMetadata::class, 'Google_Service_MyBusinessBusinessInformation_AttributeMetadata');
@@ -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\MyBusinessBusinessInformation;
class AttributeValueMetadata extends \Google\Model
{
/**
* The display name for this value, localized where available; otherwise, in
* English. The value display name is intended to be used in context with the
* attribute display name. For example, for a "WiFi" enum attribute, this
* could contain "Paid" to represent paid Wi-Fi.
*
* @var string
*/
public $displayName;
/**
* The attribute value.
*
* @var array
*/
public $value;
/**
* The display name for this value, localized where available; otherwise, in
* English. The value display name is intended to be used in context with the
* attribute display name. For example, for a "WiFi" enum attribute, this
* could contain "Paid" to represent paid Wi-Fi.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The attribute value.
*
* @param array $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributeValueMetadata::class, 'Google_Service_MyBusinessBusinessInformation_AttributeValueMetadata');
@@ -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\MyBusinessBusinessInformation;
class Attributes extends \Google\Collection
{
protected $collection_key = 'attributes';
protected $attributesType = Attribute::class;
protected $attributesDataType = 'array';
/**
* Required. Google identifier for this location in the form of
* `locations/{location_id}/attributes`.
*
* @var string
*/
public $name;
/**
* A collection of attributes that need to be updated.
*
* @param Attribute[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attribute[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Required. Google identifier for this location in the form of
* `locations/{location_id}/attributes`.
*
* @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(Attributes::class, 'Google_Service_MyBusinessBusinessInformation_Attributes');
@@ -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\MyBusinessBusinessInformation;
class BatchGetCategoriesResponse extends \Google\Collection
{
protected $collection_key = 'categories';
protected $categoriesType = Category::class;
protected $categoriesDataType = 'array';
/**
* Categories that match the GConcept ids provided in the request. They will
* not come in the same order as category ids in the request.
*
* @param Category[] $categories
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return Category[]
*/
public function getCategories()
{
return $this->categories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetCategoriesResponse::class, 'Google_Service_MyBusinessBusinessInformation_BatchGetCategoriesResponse');
@@ -0,0 +1,47 @@
<?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\MyBusinessBusinessInformation;
class BusinessHours extends \Google\Collection
{
protected $collection_key = 'periods';
protected $periodsType = TimePeriod::class;
protected $periodsDataType = 'array';
/**
* Required. A collection of times that this location is open for business.
* Each period represents a range of hours when the location is open during
* the week.
*
* @param TimePeriod[] $periods
*/
public function setPeriods($periods)
{
$this->periods = $periods;
}
/**
* @return TimePeriod[]
*/
public function getPeriods()
{
return $this->periods;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessHours::class, 'Google_Service_MyBusinessBusinessInformation_BusinessHours');
@@ -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\MyBusinessBusinessInformation;
class Categories extends \Google\Collection
{
protected $collection_key = 'additionalCategories';
protected $additionalCategoriesType = Category::class;
protected $additionalCategoriesDataType = 'array';
protected $primaryCategoryType = Category::class;
protected $primaryCategoryDataType = '';
/**
* Optional. Additional categories to describe your business. Categories help
* your customers find accurate, specific results for services they're
* interested in. To keep your business information accurate and live, make
* sure that you use as few categories as possible to describe your overall
* core business. Choose categories that are as specific as possible, but
* representative of your main business.
*
* @param Category[] $additionalCategories
*/
public function setAdditionalCategories($additionalCategories)
{
$this->additionalCategories = $additionalCategories;
}
/**
* @return Category[]
*/
public function getAdditionalCategories()
{
return $this->additionalCategories;
}
/**
* Required. Category that best describes the core business this location
* engages in.
*
* @param Category $primaryCategory
*/
public function setPrimaryCategory(Category $primaryCategory)
{
$this->primaryCategory = $primaryCategory;
}
/**
* @return Category
*/
public function getPrimaryCategory()
{
return $this->primaryCategory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Categories::class, 'Google_Service_MyBusinessBusinessInformation_Categories');
@@ -0,0 +1,117 @@
<?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\MyBusinessBusinessInformation;
class Category extends \Google\Collection
{
protected $collection_key = 'serviceTypes';
/**
* Output only. The human-readable name of the category. This is set when
* reading the location. When modifying the location, `category_id` must be
* set.
*
* @var string
*/
public $displayName;
protected $moreHoursTypesType = MoreHoursType::class;
protected $moreHoursTypesDataType = 'array';
/**
* Required. A stable ID (provided by Google) for this category. The value
* must be specified when modifying the category (when creating or updating a
* location).
*
* @var string
*/
public $name;
protected $serviceTypesType = ServiceType::class;
protected $serviceTypesDataType = 'array';
/**
* Output only. The human-readable name of the category. This is set when
* reading the location. When modifying the location, `category_id` must be
* set.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. More hours types that are available for this business
* category.
*
* @param MoreHoursType[] $moreHoursTypes
*/
public function setMoreHoursTypes($moreHoursTypes)
{
$this->moreHoursTypes = $moreHoursTypes;
}
/**
* @return MoreHoursType[]
*/
public function getMoreHoursTypes()
{
return $this->moreHoursTypes;
}
/**
* Required. A stable ID (provided by Google) for this category. The value
* must be specified when modifying the category (when creating or updating a
* location).
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. A list of all the service types that are available for this
* business category.
*
* @param ServiceType[] $serviceTypes
*/
public function setServiceTypes($serviceTypes)
{
$this->serviceTypes = $serviceTypes;
}
/**
* @return ServiceType[]
*/
public function getServiceTypes()
{
return $this->serviceTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Category::class, 'Google_Service_MyBusinessBusinessInformation_Category');
@@ -0,0 +1,107 @@
<?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\MyBusinessBusinessInformation;
class Chain extends \Google\Collection
{
protected $collection_key = 'websites';
protected $chainNamesType = ChainName::class;
protected $chainNamesDataType = 'array';
/**
* Number of locations that are part of this chain.
*
* @var int
*/
public $locationCount;
/**
* Required. The chain's resource name, in the format `chains/{chain_id}`.
*
* @var string
*/
public $name;
protected $websitesType = ChainUri::class;
protected $websitesDataType = 'array';
/**
* Names of the chain.
*
* @param ChainName[] $chainNames
*/
public function setChainNames($chainNames)
{
$this->chainNames = $chainNames;
}
/**
* @return ChainName[]
*/
public function getChainNames()
{
return $this->chainNames;
}
/**
* Number of locations that are part of this chain.
*
* @param int $locationCount
*/
public function setLocationCount($locationCount)
{
$this->locationCount = $locationCount;
}
/**
* @return int
*/
public function getLocationCount()
{
return $this->locationCount;
}
/**
* Required. The chain's resource name, in the format `chains/{chain_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Websites of the chain.
*
* @param ChainUri[] $websites
*/
public function setWebsites($websites)
{
$this->websites = $websites;
}
/**
* @return ChainUri[]
*/
public function getWebsites()
{
return $this->websites;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Chain::class, 'Google_Service_MyBusinessBusinessInformation_Chain');
@@ -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\MyBusinessBusinessInformation;
class ChainName extends \Google\Model
{
/**
* The display name for this chain.
*
* @var string
*/
public $displayName;
/**
* The BCP 47 code of language of the name.
*
* @var string
*/
public $languageCode;
/**
* The display name for this chain.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The BCP 47 code of language of the name.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChainName::class, 'Google_Service_MyBusinessBusinessInformation_ChainName');
@@ -0,0 +1,48 @@
<?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\MyBusinessBusinessInformation;
class ChainUri extends \Google\Model
{
/**
* The uri for this chain.
*
* @var string
*/
public $uri;
/**
* The uri for this chain.
*
* @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(ChainUri::class, 'Google_Service_MyBusinessBusinessInformation_ChainUri');
@@ -0,0 +1,25 @@
<?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\MyBusinessBusinessInformation;
class ClearLocationAssociationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClearLocationAssociationRequest::class, 'Google_Service_MyBusinessBusinessInformation_ClearLocationAssociationRequest');
@@ -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\MyBusinessBusinessInformation;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_MyBusinessBusinessInformation_Date');
@@ -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\MyBusinessBusinessInformation;
class FreeFormServiceItem extends \Google\Model
{
/**
* Required. This field represents the category name (i.e. the category's
* stable ID). The `category` and `service_type_id` should match the possible
* combinations provided in the `Category` message.
*
* @var string
*/
public $category;
protected $labelType = Label::class;
protected $labelDataType = '';
/**
* Required. This field represents the category name (i.e. the category's
* stable ID). The `category` and `service_type_id` should match the possible
* combinations provided in the `Category` message.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Required. Language-tagged labels for the item. We recommend that item names
* be 140 characters or less, and descriptions 250 characters or less. This
* field should only be set if the input is a custom service item.
* Standardized service types should be updated using service_type_id.
*
* @param Label $label
*/
public function setLabel(Label $label)
{
$this->label = $label;
}
/**
* @return Label
*/
public function getLabel()
{
return $this->label;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeFormServiceItem::class, 'Google_Service_MyBusinessBusinessInformation_FreeFormServiceItem');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation;
class GoogleLocation extends \Google\Model
{
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* Resource name of this GoogleLocation, in the format
* `googleLocations/{googleLocationId}`.
*
* @var string
*/
public $name;
/**
* A URL that will redirect the user to the request admin rights UI. This
* field is only present if the location has already been claimed by any user,
* including the current user.
*
* @var string
*/
public $requestAdminRightsUri;
/**
* The sparsely populated Location information. This field can be re-used in
* CreateLocation if it is not currently claimed by a user.
*
* @param Location $location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
/**
* Resource name of this GoogleLocation, in the format
* `googleLocations/{googleLocationId}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A URL that will redirect the user to the request admin rights UI. This
* field is only present if the location has already been claimed by any user,
* including the current user.
*
* @param string $requestAdminRightsUri
*/
public function setRequestAdminRightsUri($requestAdminRightsUri)
{
$this->requestAdminRightsUri = $requestAdminRightsUri;
}
/**
* @return string
*/
public function getRequestAdminRightsUri()
{
return $this->requestAdminRightsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLocation::class, 'Google_Service_MyBusinessBusinessInformation_GoogleLocation');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation;
class GoogleUpdatedLocation extends \Google\Model
{
/**
* The fields where the values in the view as it appears to consumers are
* different than the merchant's information. To accept these changes, patch
* the location. To reject, patch with your preferred values.
*
* @var string
*/
public $diffMask;
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* The fields where the merchant has provided an update that is currently in
* flight and hasn't yet been published to Maps and Search. This mask only
* tracks the status of the merchant's own edits, not external changes.
*
* @var string
*/
public $pendingMask;
/**
* The fields where the values in the view as it appears to consumers are
* different than the merchant's information. To accept these changes, patch
* the location. To reject, patch with your preferred values.
*
* @param string $diffMask
*/
public function setDiffMask($diffMask)
{
$this->diffMask = $diffMask;
}
/**
* @return string
*/
public function getDiffMask()
{
return $this->diffMask;
}
/**
* The Google-updated version of this location.
*
* @param Location $location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
/**
* The fields where the merchant has provided an update that is currently in
* flight and hasn't yet been published to Maps and Search. This mask only
* tracks the status of the merchant's own edits, not external changes.
*
* @param string $pendingMask
*/
public function setPendingMask($pendingMask)
{
$this->pendingMask = $pendingMask;
}
/**
* @return string
*/
public function getPendingMask()
{
return $this->pendingMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleUpdatedLocation::class, 'Google_Service_MyBusinessBusinessInformation_GoogleUpdatedLocation');
@@ -0,0 +1,94 @@
<?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\MyBusinessBusinessInformation;
class Label extends \Google\Model
{
/**
* Optional. Description of the price list, section, or item.
*
* @var string
*/
public $description;
/**
* Required. Display name for the price list, section, or item.
*
* @var string
*/
public $displayName;
/**
* Optional. The BCP-47 language code that these strings apply for. Only one
* set of labels may be set per language.
*
* @var string
*/
public $languageCode;
/**
* Optional. Description of the price list, section, or item.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Display name for the price list, section, or item.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. The BCP-47 language code that these strings apply for. Only one
* set of labels may be set per language.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Label::class, 'Google_Service_MyBusinessBusinessInformation_Label');
@@ -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\MyBusinessBusinessInformation;
class LatLng extends \Google\Model
{
/**
* The latitude in degrees. It must be in the range [-90.0, +90.0].
*
* @var
*/
public $latitude;
/**
* The longitude in degrees. It must be in the range [-180.0, +180.0].
*
* @var
*/
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLng::class, 'Google_Service_MyBusinessBusinessInformation_LatLng');
@@ -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\MyBusinessBusinessInformation;
class ListAttributeMetadataResponse extends \Google\Collection
{
protected $collection_key = 'attributeMetadata';
protected $attributeMetadataType = AttributeMetadata::class;
protected $attributeMetadataDataType = 'array';
/**
* If the number of attributes exceeded the requested page size, this field
* will be populated with a token to fetch the next page of attributes on a
* subsequent call to `attributes.list`. If there are no more attributes, this
* field will not be present in the response.
*
* @var string
*/
public $nextPageToken;
/**
* A collection of attribute metadata for the available attributes.
*
* @param AttributeMetadata[] $attributeMetadata
*/
public function setAttributeMetadata($attributeMetadata)
{
$this->attributeMetadata = $attributeMetadata;
}
/**
* @return AttributeMetadata[]
*/
public function getAttributeMetadata()
{
return $this->attributeMetadata;
}
/**
* If the number of attributes exceeded the requested page size, this field
* will be populated with a token to fetch the next page of attributes on a
* subsequent call to `attributes.list`. If there are no more attributes, this
* field will not be present in the response.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAttributeMetadataResponse::class, 'Google_Service_MyBusinessBusinessInformation_ListAttributeMetadataResponse');
@@ -0,0 +1,71 @@
<?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\MyBusinessBusinessInformation;
class ListCategoriesResponse extends \Google\Collection
{
protected $collection_key = 'categories';
protected $categoriesType = Category::class;
protected $categoriesDataType = 'array';
/**
* If the number of categories exceeded the requested page size, this field
* will be populated with a token to fetch the next page of categories on a
* subsequent call to `ListCategories`.
*
* @var string
*/
public $nextPageToken;
/**
* The matching categories based on the requested parameters.
*
* @param Category[] $categories
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return Category[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* If the number of categories exceeded the requested page size, this field
* will be populated with a token to fetch the next page of categories on a
* subsequent call to `ListCategories`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCategoriesResponse::class, 'Google_Service_MyBusinessBusinessInformation_ListCategoriesResponse');
@@ -0,0 +1,97 @@
<?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\MyBusinessBusinessInformation;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* If the number of locations exceeded the requested page size, this field is
* populated with a token to fetch the next page of locations on a subsequent
* call to `ListLocations`. If there are no more locations, this field is not
* present in the response.
*
* @var string
*/
public $nextPageToken;
/**
* The approximate number of Locations in the list irrespective of pagination.
* This field will only be returned if `filter` is used as a query parameter.
*
* @var int
*/
public $totalSize;
/**
* The locations.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* If the number of locations exceeded the requested page size, this field is
* populated with a token to fetch the next page of locations on a subsequent
* call to `ListLocations`. If there are no more locations, this field is not
* present in the response.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The approximate number of Locations in the list irrespective of pagination.
* This field will only be returned if `filter` is used as a query parameter.
*
* @param int $totalSize
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_MyBusinessBusinessInformation_ListLocationsResponse');
@@ -0,0 +1,464 @@
<?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\MyBusinessBusinessInformation;
class Location extends \Google\Collection
{
protected $collection_key = 'serviceItems';
protected $adWordsLocationExtensionsType = AdWordsLocationExtensions::class;
protected $adWordsLocationExtensionsDataType = '';
protected $categoriesType = Categories::class;
protected $categoriesDataType = '';
/**
* Optional. A collection of free-form strings to allow you to tag your
* business. These labels are NOT user facing; only you can see them. Must be
* between 1-255 characters per label.
*
* @var string[]
*/
public $labels;
/**
* Immutable. The language of the location. Set during creation and not
* updateable.
*
* @var string
*/
public $languageCode;
protected $latlngType = LatLng::class;
protected $latlngDataType = '';
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
protected $moreHoursType = MoreHours::class;
protected $moreHoursDataType = 'array';
/**
* Google identifier for this location in the form: `locations/{location_id}`.
*
* @var string
*/
public $name;
protected $openInfoType = OpenInfo::class;
protected $openInfoDataType = '';
protected $phoneNumbersType = PhoneNumbers::class;
protected $phoneNumbersDataType = '';
protected $profileType = Profile::class;
protected $profileDataType = '';
protected $regularHoursType = BusinessHours::class;
protected $regularHoursDataType = '';
protected $relationshipDataType = RelationshipData::class;
protected $relationshipDataDataType = '';
protected $serviceAreaType = ServiceAreaBusiness::class;
protected $serviceAreaDataType = '';
protected $serviceItemsType = ServiceItem::class;
protected $serviceItemsDataType = 'array';
protected $specialHoursType = SpecialHours::class;
protected $specialHoursDataType = '';
/**
* Optional. External identifier for this location, which must be unique
* within a given account. This is a means of associating the location with
* your own records.
*
* @var string
*/
public $storeCode;
protected $storefrontAddressType = PostalAddress::class;
protected $storefrontAddressDataType = '';
/**
* Required. Location name should reflect your business's real-world name, as
* used consistently on your storefront, website, and stationery, and as known
* to customers. Any additional information, when relevant, can be included in
* other fields of the resource (for example, `Address`, `Categories`). Don't
* add unnecessary information to your name (for example, prefer "Google" over
* "Google Inc. - Mountain View Corporate Headquarters"). Don't include
* marketing taglines, store codes, special characters, hours or closed/open
* status, phone numbers, website URLs, service/product information,
* location/address or directions, or containment information (for example,
* "Chase ATM in Duane Reade").
*
* @var string
*/
public $title;
/**
* Optional. A URL for this business. If possible, use a URL that represents
* this individual business location instead of a generic website/URL that
* represents all locations, or the brand.
*
* @var string
*/
public $websiteUri;
/**
* Optional. Additional information that is surfaced in AdWords.
*
* @param AdWordsLocationExtensions $adWordsLocationExtensions
*/
public function setAdWordsLocationExtensions(AdWordsLocationExtensions $adWordsLocationExtensions)
{
$this->adWordsLocationExtensions = $adWordsLocationExtensions;
}
/**
* @return AdWordsLocationExtensions
*/
public function getAdWordsLocationExtensions()
{
return $this->adWordsLocationExtensions;
}
/**
* Optional. The different categories that describe the business.
*
* @param Categories $categories
*/
public function setCategories(Categories $categories)
{
$this->categories = $categories;
}
/**
* @return Categories
*/
public function getCategories()
{
return $this->categories;
}
/**
* Optional. A collection of free-form strings to allow you to tag your
* business. These labels are NOT user facing; only you can see them. Must be
* between 1-255 characters per label.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. The language of the location. Set during creation and not
* updateable.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. User-provided latitude and longitude. When creating a location,
* this field is ignored if the provided address geocodes successfully. This
* field is only returned on get requests if the user-provided `latlng` value
* was accepted during create, or the `latlng` value was updated through the
* Google Business Profile website. This field can only be updated by approved
* clients.
*
* @param LatLng $latlng
*/
public function setLatlng(LatLng $latlng)
{
$this->latlng = $latlng;
}
/**
* @return LatLng
*/
public function getLatlng()
{
return $this->latlng;
}
/**
* Output only. Additional non-user-editable information.
*
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional. More hours for a business's different departments or specific
* customers.
*
* @param MoreHours[] $moreHours
*/
public function setMoreHours($moreHours)
{
$this->moreHours = $moreHours;
}
/**
* @return MoreHours[]
*/
public function getMoreHours()
{
return $this->moreHours;
}
/**
* Google identifier for this location in the form: `locations/{location_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. A flag that indicates whether the location is currently open for
* business.
*
* @param OpenInfo $openInfo
*/
public function setOpenInfo(OpenInfo $openInfo)
{
$this->openInfo = $openInfo;
}
/**
* @return OpenInfo
*/
public function getOpenInfo()
{
return $this->openInfo;
}
/**
* Optional. The different phone numbers that customers can use to get in
* touch with the business.
*
* @param PhoneNumbers $phoneNumbers
*/
public function setPhoneNumbers(PhoneNumbers $phoneNumbers)
{
$this->phoneNumbers = $phoneNumbers;
}
/**
* @return PhoneNumbers
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* Optional. Describes your business in your own voice and shares with users
* the unique story of your business and offerings. This field is required for
* all categories except lodging categories (e.g., hotels, motels, inns).
*
* @param Profile $profile
*/
public function setProfile(Profile $profile)
{
$this->profile = $profile;
}
/**
* @return Profile
*/
public function getProfile()
{
return $this->profile;
}
/**
* Optional. Operating hours for the business.
*
* @param BusinessHours $regularHours
*/
public function setRegularHours(BusinessHours $regularHours)
{
$this->regularHours = $regularHours;
}
/**
* @return BusinessHours
*/
public function getRegularHours()
{
return $this->regularHours;
}
/**
* Optional. All locations and chain related to this one.
*
* @param RelationshipData $relationshipData
*/
public function setRelationshipData(RelationshipData $relationshipData)
{
$this->relationshipData = $relationshipData;
}
/**
* @return RelationshipData
*/
public function getRelationshipData()
{
return $this->relationshipData;
}
/**
* Optional. Service area businesses provide their service at the customer's
* location. If this business is a service area business, this field describes
* the area(s) serviced by the business.
*
* @param ServiceAreaBusiness $serviceArea
*/
public function setServiceArea(ServiceAreaBusiness $serviceArea)
{
$this->serviceArea = $serviceArea;
}
/**
* @return ServiceAreaBusiness
*/
public function getServiceArea()
{
return $this->serviceArea;
}
/**
* Optional. List of services supported by merchants. A service can be
* haircut, install water heater, etc. Duplicated service items will be
* removed automatically.
*
* @param ServiceItem[] $serviceItems
*/
public function setServiceItems($serviceItems)
{
$this->serviceItems = $serviceItems;
}
/**
* @return ServiceItem[]
*/
public function getServiceItems()
{
return $this->serviceItems;
}
/**
* Optional. Special hours for the business. This typically includes holiday
* hours, and other times outside of regular operating hours. These override
* regular business hours. This field cannot be set without regular hours.
*
* @param SpecialHours $specialHours
*/
public function setSpecialHours(SpecialHours $specialHours)
{
$this->specialHours = $specialHours;
}
/**
* @return SpecialHours
*/
public function getSpecialHours()
{
return $this->specialHours;
}
/**
* Optional. External identifier for this location, which must be unique
* within a given account. This is a means of associating the location with
* your own records.
*
* @param string $storeCode
*/
public function setStoreCode($storeCode)
{
$this->storeCode = $storeCode;
}
/**
* @return string
*/
public function getStoreCode()
{
return $this->storeCode;
}
/**
* Optional. A precise, accurate address to describe your business location.
* PO boxes or mailboxes located at remote locations are not acceptable. At
* this time, you can specify a maximum of five `address_lines` values in the
* address. This field should only be set for businesses that have a
* storefront. This field should not be set for locations of type
* `CUSTOMER_LOCATION_ONLY` but if set, any value provided will be discarded.
*
* @param PostalAddress $storefrontAddress
*/
public function setStorefrontAddress(PostalAddress $storefrontAddress)
{
$this->storefrontAddress = $storefrontAddress;
}
/**
* @return PostalAddress
*/
public function getStorefrontAddress()
{
return $this->storefrontAddress;
}
/**
* Required. Location name should reflect your business's real-world name, as
* used consistently on your storefront, website, and stationery, and as known
* to customers. Any additional information, when relevant, can be included in
* other fields of the resource (for example, `Address`, `Categories`). Don't
* add unnecessary information to your name (for example, prefer "Google" over
* "Google Inc. - Mountain View Corporate Headquarters"). Don't include
* marketing taglines, store codes, special characters, hours or closed/open
* status, phone numbers, website URLs, service/product information,
* location/address or directions, or containment information (for example,
* "Chase ATM in Duane Reade").
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Optional. A URL for this business. If possible, use a URL that represents
* this individual business location instead of a generic website/URL that
* represents all locations, or the brand.
*
* @param string $websiteUri
*/
public function setWebsiteUri($websiteUri)
{
$this->websiteUri = $websiteUri;
}
/**
* @return string
*/
public function getWebsiteUri()
{
return $this->websiteUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_MyBusinessBusinessInformation_Location');
@@ -0,0 +1,381 @@
<?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\MyBusinessBusinessInformation;
class Metadata extends \Google\Model
{
/**
* Output only. Indicates whether the location can be deleted using the API.
*
* @var bool
*/
public $canDelete;
/**
* Output only. Indicates if the listing is eligible for business calls.
*
* @var bool
*/
public $canHaveBusinessCalls;
/**
* Output only. Indicates if the listing is eligible for food menu.
*
* @var bool
*/
public $canHaveFoodMenus;
/**
* Output only. Indicates if the listing can modify the service list.
*
* @var bool
*/
public $canModifyServiceList;
/**
* Output only. Indicates whether the location can operate on Health data.
*
* @var bool
*/
public $canOperateHealthData;
/**
* Output only. Indicates if the listing can manage local posts. Deprecated:
* This field is no longer populated and will be removed in a future version.
*
* @deprecated
* @var bool
*/
public $canOperateLocalPost;
/**
* Output only. Indicates whether the location can operate on Lodging data.
*
* @var bool
*/
public $canOperateLodgingData;
/**
* Output only. The location resource that this location duplicates.
*
* @var string
*/
public $duplicateLocation;
/**
* Output only. Indicates whether the place ID associated with this location
* has updates that need to be updated or rejected by the client. If this
* boolean is set, you should call the `getGoogleUpdated` method to look up
* information that's needs to be verified.
*
* @var bool
*/
public $hasGoogleUpdated;
/**
* Output only. Indicates whether any of this Location's properties are in the
* edit pending state.
*
* @var bool
*/
public $hasPendingEdits;
/**
* Output only. Indicates if the listing has Voice of Merchant. If this
* boolean is false, you should call the locations.getVoiceOfMerchantState API
* to get details as to why they do not have Voice of Merchant.
*
* @var bool
*/
public $hasVoiceOfMerchant;
/**
* Output only.
*
* @var bool
*/
public $isParticularlyPersonalPlace;
/**
* Output only. A link to the location on Maps.
*
* @var string
*/
public $mapsUri;
/**
* Output only. A link to the page on Google Search where a customer can leave
* a review for the location.
*
* @var string
*/
public $newReviewUri;
/**
* Output only. If this locationappears on Google Maps, this field is
* populated with the place ID for the location. This ID can be used in
* various Places APIs. This field can be set during Create calls, but not for
* Update.
*
* @var string
*/
public $placeId;
/**
* Output only. Indicates whether the location can be deleted using the API.
*
* @param bool $canDelete
*/
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
/**
* @return bool
*/
public function getCanDelete()
{
return $this->canDelete;
}
/**
* Output only. Indicates if the listing is eligible for business calls.
*
* @param bool $canHaveBusinessCalls
*/
public function setCanHaveBusinessCalls($canHaveBusinessCalls)
{
$this->canHaveBusinessCalls = $canHaveBusinessCalls;
}
/**
* @return bool
*/
public function getCanHaveBusinessCalls()
{
return $this->canHaveBusinessCalls;
}
/**
* Output only. Indicates if the listing is eligible for food menu.
*
* @param bool $canHaveFoodMenus
*/
public function setCanHaveFoodMenus($canHaveFoodMenus)
{
$this->canHaveFoodMenus = $canHaveFoodMenus;
}
/**
* @return bool
*/
public function getCanHaveFoodMenus()
{
return $this->canHaveFoodMenus;
}
/**
* Output only. Indicates if the listing can modify the service list.
*
* @param bool $canModifyServiceList
*/
public function setCanModifyServiceList($canModifyServiceList)
{
$this->canModifyServiceList = $canModifyServiceList;
}
/**
* @return bool
*/
public function getCanModifyServiceList()
{
return $this->canModifyServiceList;
}
/**
* Output only. Indicates whether the location can operate on Health data.
*
* @param bool $canOperateHealthData
*/
public function setCanOperateHealthData($canOperateHealthData)
{
$this->canOperateHealthData = $canOperateHealthData;
}
/**
* @return bool
*/
public function getCanOperateHealthData()
{
return $this->canOperateHealthData;
}
/**
* Output only. Indicates if the listing can manage local posts. Deprecated:
* This field is no longer populated and will be removed in a future version.
*
* @deprecated
* @param bool $canOperateLocalPost
*/
public function setCanOperateLocalPost($canOperateLocalPost)
{
$this->canOperateLocalPost = $canOperateLocalPost;
}
/**
* @deprecated
* @return bool
*/
public function getCanOperateLocalPost()
{
return $this->canOperateLocalPost;
}
/**
* Output only. Indicates whether the location can operate on Lodging data.
*
* @param bool $canOperateLodgingData
*/
public function setCanOperateLodgingData($canOperateLodgingData)
{
$this->canOperateLodgingData = $canOperateLodgingData;
}
/**
* @return bool
*/
public function getCanOperateLodgingData()
{
return $this->canOperateLodgingData;
}
/**
* Output only. The location resource that this location duplicates.
*
* @param string $duplicateLocation
*/
public function setDuplicateLocation($duplicateLocation)
{
$this->duplicateLocation = $duplicateLocation;
}
/**
* @return string
*/
public function getDuplicateLocation()
{
return $this->duplicateLocation;
}
/**
* Output only. Indicates whether the place ID associated with this location
* has updates that need to be updated or rejected by the client. If this
* boolean is set, you should call the `getGoogleUpdated` method to look up
* information that's needs to be verified.
*
* @param bool $hasGoogleUpdated
*/
public function setHasGoogleUpdated($hasGoogleUpdated)
{
$this->hasGoogleUpdated = $hasGoogleUpdated;
}
/**
* @return bool
*/
public function getHasGoogleUpdated()
{
return $this->hasGoogleUpdated;
}
/**
* Output only. Indicates whether any of this Location's properties are in the
* edit pending state.
*
* @param bool $hasPendingEdits
*/
public function setHasPendingEdits($hasPendingEdits)
{
$this->hasPendingEdits = $hasPendingEdits;
}
/**
* @return bool
*/
public function getHasPendingEdits()
{
return $this->hasPendingEdits;
}
/**
* Output only. Indicates if the listing has Voice of Merchant. If this
* boolean is false, you should call the locations.getVoiceOfMerchantState API
* to get details as to why they do not have Voice of Merchant.
*
* @param bool $hasVoiceOfMerchant
*/
public function setHasVoiceOfMerchant($hasVoiceOfMerchant)
{
$this->hasVoiceOfMerchant = $hasVoiceOfMerchant;
}
/**
* @return bool
*/
public function getHasVoiceOfMerchant()
{
return $this->hasVoiceOfMerchant;
}
/**
* Output only.
*
* @param bool $isParticularlyPersonalPlace
*/
public function setIsParticularlyPersonalPlace($isParticularlyPersonalPlace)
{
$this->isParticularlyPersonalPlace = $isParticularlyPersonalPlace;
}
/**
* @return bool
*/
public function getIsParticularlyPersonalPlace()
{
return $this->isParticularlyPersonalPlace;
}
/**
* Output only. A link to the location on Maps.
*
* @param string $mapsUri
*/
public function setMapsUri($mapsUri)
{
$this->mapsUri = $mapsUri;
}
/**
* @return string
*/
public function getMapsUri()
{
return $this->mapsUri;
}
/**
* Output only. A link to the page on Google Search where a customer can leave
* a review for the location.
*
* @param string $newReviewUri
*/
public function setNewReviewUri($newReviewUri)
{
$this->newReviewUri = $newReviewUri;
}
/**
* @return string
*/
public function getNewReviewUri()
{
return $this->newReviewUri;
}
/**
* Output only. If this locationappears on Google Maps, this field is
* populated with the place ID for the location. This ID can be used in
* various Places APIs. This field can be set during Create calls, but not for
* Update.
*
* @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(Metadata::class, 'Google_Service_MyBusinessBusinessInformation_Metadata');
@@ -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\MyBusinessBusinessInformation;
class Money 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(Money::class, 'Google_Service_MyBusinessBusinessInformation_Money');
@@ -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\MyBusinessBusinessInformation;
class MoreHours extends \Google\Collection
{
protected $collection_key = 'periods';
/**
* Required. Type of hours. Clients should call {#link
* businessCategories:BatchGet} to get supported hours types for categories of
* their locations.
*
* @var string
*/
public $hoursTypeId;
protected $periodsType = TimePeriod::class;
protected $periodsDataType = 'array';
/**
* Required. Type of hours. Clients should call {#link
* businessCategories:BatchGet} to get supported hours types for categories of
* their locations.
*
* @param string $hoursTypeId
*/
public function setHoursTypeId($hoursTypeId)
{
$this->hoursTypeId = $hoursTypeId;
}
/**
* @return string
*/
public function getHoursTypeId()
{
return $this->hoursTypeId;
}
/**
* Required. A collection of times that this location is open. Each period
* represents a range of hours when the location is open during the week.
*
* @param TimePeriod[] $periods
*/
public function setPeriods($periods)
{
$this->periods = $periods;
}
/**
* @return TimePeriod[]
*/
public function getPeriods()
{
return $this->periods;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoreHours::class, 'Google_Service_MyBusinessBusinessInformation_MoreHours');
@@ -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\MyBusinessBusinessInformation;
class MoreHoursType extends \Google\Model
{
/**
* Output only. The human-readable English display name for the hours type.
*
* @var string
*/
public $displayName;
/**
* Output only. A stable ID provided by Google for this hours type.
*
* @var string
*/
public $hoursTypeId;
/**
* Output only. The human-readable localized display name for the hours type.
*
* @var string
*/
public $localizedDisplayName;
/**
* Output only. The human-readable English display name for the hours type.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. A stable ID provided by Google for this hours type.
*
* @param string $hoursTypeId
*/
public function setHoursTypeId($hoursTypeId)
{
$this->hoursTypeId = $hoursTypeId;
}
/**
* @return string
*/
public function getHoursTypeId()
{
return $this->hoursTypeId;
}
/**
* Output only. The human-readable localized display name for the hours type.
*
* @param string $localizedDisplayName
*/
public function setLocalizedDisplayName($localizedDisplayName)
{
$this->localizedDisplayName = $localizedDisplayName;
}
/**
* @return string
*/
public function getLocalizedDisplayName()
{
return $this->localizedDisplayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoreHoursType::class, 'Google_Service_MyBusinessBusinessInformation_MoreHoursType');
@@ -0,0 +1,25 @@
<?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\MyBusinessBusinessInformation;
class MybusinessbusinessinformationEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MybusinessbusinessinformationEmpty::class, 'Google_Service_MyBusinessBusinessInformation_MybusinessbusinessinformationEmpty');
@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation;
class OpenInfo extends \Google\Model
{
/**
* Not specified.
*/
public const STATUS_OPEN_FOR_BUSINESS_UNSPECIFIED = 'OPEN_FOR_BUSINESS_UNSPECIFIED';
/**
* Indicates that the location is open.
*/
public const STATUS_OPEN = 'OPEN';
/**
* Indicates that the location has been permanently closed.
*/
public const STATUS_CLOSED_PERMANENTLY = 'CLOSED_PERMANENTLY';
/**
* Indicates that the location has been temporarily closed.
*/
public const STATUS_CLOSED_TEMPORARILY = 'CLOSED_TEMPORARILY';
/**
* Output only. Indicates whether this business is eligible for re-open.
*
* @var bool
*/
public $canReopen;
protected $openingDateType = Date::class;
protected $openingDateDataType = '';
/**
* Required. Indicates whether or not the Location is currently open for
* business. All locations are open by default, unless updated to be closed.
*
* @var string
*/
public $status;
/**
* Output only. Indicates whether this business is eligible for re-open.
*
* @param bool $canReopen
*/
public function setCanReopen($canReopen)
{
$this->canReopen = $canReopen;
}
/**
* @return bool
*/
public function getCanReopen()
{
return $this->canReopen;
}
/**
* Optional. The date on which the location first opened. If the exact day is
* not known, month and year only can be provided. The date must be in the
* past or be no more than one year in the future.
*
* @param Date $openingDate
*/
public function setOpeningDate(Date $openingDate)
{
$this->openingDate = $openingDate;
}
/**
* @return Date
*/
public function getOpeningDate()
{
return $this->openingDate;
}
/**
* Required. Indicates whether or not the Location is currently open for
* business. All locations are open by default, unless updated to be closed.
*
* Accepted values: OPEN_FOR_BUSINESS_UNSPECIFIED, OPEN, CLOSED_PERMANENTLY,
* CLOSED_TEMPORARILY
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpenInfo::class, 'Google_Service_MyBusinessBusinessInformation_OpenInfo');
@@ -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\MyBusinessBusinessInformation;
class PhoneNumbers extends \Google\Collection
{
protected $collection_key = 'additionalPhones';
/**
* Optional. Up to two phone numbers (mobile or landline, no fax) at which
* your business can be called, in addition to your primary phone number.
*
* @var string[]
*/
public $additionalPhones;
/**
* Required. A phone number that connects to your individual business location
* as directly as possible. Use a local phone number instead of a central,
* call center helpline number whenever possible.
*
* @var string
*/
public $primaryPhone;
/**
* Optional. Up to two phone numbers (mobile or landline, no fax) at which
* your business can be called, in addition to your primary phone number.
*
* @param string[] $additionalPhones
*/
public function setAdditionalPhones($additionalPhones)
{
$this->additionalPhones = $additionalPhones;
}
/**
* @return string[]
*/
public function getAdditionalPhones()
{
return $this->additionalPhones;
}
/**
* Required. A phone number that connects to your individual business location
* as directly as possible. Use a local phone number instead of a central,
* call center helpline number whenever possible.
*
* @param string $primaryPhone
*/
public function setPrimaryPhone($primaryPhone)
{
$this->primaryPhone = $primaryPhone;
}
/**
* @return string
*/
public function getPrimaryPhone()
{
return $this->primaryPhone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhoneNumbers::class, 'Google_Service_MyBusinessBusinessInformation_PhoneNumbers');
@@ -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\MyBusinessBusinessInformation;
class PlaceInfo extends \Google\Model
{
/**
* Required. The ID of the place. Must correspond to a region.
* (https://developers.google.com/places/web-service/supported_types#table3)
*
* @var string
*/
public $placeId;
/**
* Required. The localized name of the place. For example, `Scottsdale, AZ`.
*
* @var string
*/
public $placeName;
/**
* Required. The ID of the place. Must correspond to a region.
* (https://developers.google.com/places/web-service/supported_types#table3)
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
/**
* Required. The localized name of the place. For example, `Scottsdale, AZ`.
*
* @param string $placeName
*/
public function setPlaceName($placeName)
{
$this->placeName = $placeName;
}
/**
* @return string
*/
public function getPlaceName()
{
return $this->placeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlaceInfo::class, 'Google_Service_MyBusinessBusinessInformation_PlaceInfo');
@@ -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\MyBusinessBusinessInformation;
class Places extends \Google\Collection
{
protected $collection_key = 'placeInfos';
protected $placeInfosType = PlaceInfo::class;
protected $placeInfosDataType = 'array';
/**
* The areas represented by place IDs. Limited to a maximum of 20 places.
*
* @param PlaceInfo[] $placeInfos
*/
public function setPlaceInfos($placeInfos)
{
$this->placeInfos = $placeInfos;
}
/**
* @return PlaceInfo[]
*/
public function getPlaceInfos()
{
return $this->placeInfos;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Places::class, 'Google_Service_MyBusinessBusinessInformation_Places');
@@ -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\MyBusinessBusinessInformation;
class PostalAddress 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(PostalAddress::class, 'Google_Service_MyBusinessBusinessInformation_PostalAddress');
@@ -0,0 +1,50 @@
<?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\MyBusinessBusinessInformation;
class Profile extends \Google\Model
{
/**
* Required. Description of the location in your own voice, not editable by
* anyone else.
*
* @var string
*/
public $description;
/**
* Required. Description of the location in your own voice, not editable by
* anyone else.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Profile::class, 'Google_Service_MyBusinessBusinessInformation_Profile');
@@ -0,0 +1,87 @@
<?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\MyBusinessBusinessInformation;
class RelationshipData extends \Google\Collection
{
protected $collection_key = 'childrenLocations';
protected $childrenLocationsType = RelevantLocation::class;
protected $childrenLocationsDataType = 'array';
/**
* The resource name of the Chain that this location is member of. How to find
* Chain ID
*
* @var string
*/
public $parentChain;
protected $parentLocationType = RelevantLocation::class;
protected $parentLocationDataType = '';
/**
* The list of children locations that this location has relations with.
*
* @param RelevantLocation[] $childrenLocations
*/
public function setChildrenLocations($childrenLocations)
{
$this->childrenLocations = $childrenLocations;
}
/**
* @return RelevantLocation[]
*/
public function getChildrenLocations()
{
return $this->childrenLocations;
}
/**
* The resource name of the Chain that this location is member of. How to find
* Chain ID
*
* @param string $parentChain
*/
public function setParentChain($parentChain)
{
$this->parentChain = $parentChain;
}
/**
* @return string
*/
public function getParentChain()
{
return $this->parentChain;
}
/**
* The parent location that this location has relations with.
*
* @param RelevantLocation $parentLocation
*/
public function setParentLocation(RelevantLocation $parentLocation)
{
$this->parentLocation = $parentLocation;
}
/**
* @return RelevantLocation
*/
public function getParentLocation()
{
return $this->parentLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelationshipData::class, 'Google_Service_MyBusinessBusinessInformation_RelationshipData');
@@ -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\MyBusinessBusinessInformation;
class RelevantLocation extends \Google\Model
{
/**
* Type unspecified.
*/
public const RELATION_TYPE_RELATION_TYPE_UNSPECIFIED = 'RELATION_TYPE_UNSPECIFIED';
/**
* This represents a relation between 2 locations which share one physical
* area, same brand/upper management/organization, but with different key
* attributes like store hours or phone numbers. For example, Costco Pharmacy
* is a department in Costco Wholesale.
*/
public const RELATION_TYPE_DEPARTMENT_OF = 'DEPARTMENT_OF';
/**
* This represents the cases where 2 locations are co-located in the same
* physical location, but from different companies (e.g., Starbucks in a
* Safeway, shops in a mall).
*/
public const RELATION_TYPE_INDEPENDENT_ESTABLISHMENT_IN = 'INDEPENDENT_ESTABLISHMENT_IN';
/**
* Required. Specify the location that is on the other side of the relation by
* its placeID.
*
* @var string
*/
public $placeId;
/**
* Required. The type of the relationship.
*
* @var string
*/
public $relationType;
/**
* Required. Specify the location that is on the other side of the relation by
* its placeID.
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
/**
* Required. The type of the relationship.
*
* Accepted values: RELATION_TYPE_UNSPECIFIED, DEPARTMENT_OF,
* INDEPENDENT_ESTABLISHMENT_IN
*
* @param self::RELATION_TYPE_* $relationType
*/
public function setRelationType($relationType)
{
$this->relationType = $relationType;
}
/**
* @return self::RELATION_TYPE_*
*/
public function getRelationType()
{
return $this->relationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelevantLocation::class, 'Google_Service_MyBusinessBusinessInformation_RelevantLocation');
@@ -0,0 +1,71 @@
<?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\MyBusinessBusinessInformation;
class RepeatedEnumAttributeValue extends \Google\Collection
{
protected $collection_key = 'unsetValues';
/**
* Enum values that are set.
*
* @var string[]
*/
public $setValues;
/**
* Enum values that are unset.
*
* @var string[]
*/
public $unsetValues;
/**
* Enum values that are set.
*
* @param string[] $setValues
*/
public function setSetValues($setValues)
{
$this->setValues = $setValues;
}
/**
* @return string[]
*/
public function getSetValues()
{
return $this->setValues;
}
/**
* Enum values that are unset.
*
* @param string[] $unsetValues
*/
public function setUnsetValues($unsetValues)
{
$this->unsetValues = $unsetValues;
}
/**
* @return string[]
*/
public function getUnsetValues()
{
return $this->unsetValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepeatedEnumAttributeValue::class, 'Google_Service_MyBusinessBusinessInformation_RepeatedEnumAttributeValue');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation\Resource;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $accounts = $mybusinessbusinessinformationService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_MyBusinessBusinessInformation_Resource_Accounts');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\ListLocationsResponse;
use Google\Service\MyBusinessBusinessInformation\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $locations = $mybusinessbusinessinformationService->accounts_locations;
* </code>
*/
class AccountsLocations extends \Google\Service\Resource
{
/**
* Creates a new Location that will be owned by the logged in user.
* (locations.create)
*
* @param string $parent Required. The name of the account in which to create
* this location.
* @param Location $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A unique request ID for the server to
* detect duplicated requests. We recommend using UUIDs. Max length is 50
* characters.
* @opt_param bool validateOnly Optional. If true, the request is validated
* without actually creating the location.
* @return Location
* @throws \Google\Service\Exception
*/
public function create($parent, Location $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Location::class);
}
/**
* Lists the locations for the specified account.
* (locations.listAccountsLocations)
*
* @param string $parent Required. The name of the account to fetch locations
* from. If the parent Account is of AccountType PERSONAL, only Locations that
* are directly owned by the Account are returned, otherwise it will return all
* accessible locations from the Account, either directly or indirectly.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter constraining the locations to
* return. The response includes only entries that match the filter. If `filter`
* is empty, then constraints are applied and all locations (paginated) are
* retrieved for the requested account. For more information about valid fields
* and example usage, see [Work with Location Data
* Guide](https://developers.google.com/my-business/content/location-
* data#filter_results_when_you_list_locations).
* @opt_param string orderBy Optional. Sorting order for the request. Multiple
* fields should be comma-separated, following SQL syntax. The default sorting
* order is ascending. To specify descending order, a suffix " desc" should be
* added. Valid fields to order_by are title and store_code. For example:
* "title, store_code desc" or "title" or "store_code desc"
* @opt_param int pageSize Optional. How many locations to fetch per page.
* Default value is 10 if not set. Minimum is 1, and maximum page size is 100.
* @opt_param string pageToken Optional. If specified, it fetches the next
* `page` of locations. The page token is returned by previous calls to
* `ListLocations` when there were more locations than could fit in the
* requested page size.
* @opt_param string readMask Required. Read mask to specify what fields will be
* returned in the response.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsLocations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLocations::class, 'Google_Service_MyBusinessBusinessInformation_Resource_AccountsLocations');
@@ -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\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\ListAttributeMetadataResponse;
/**
* The "attributes" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $attributes = $mybusinessbusinessinformationService->attributes;
* </code>
*/
class Attributes extends \Google\Service\Resource
{
/**
* Returns the list of attributes that would be available for a location with
* the given primary category and country. (attributes.listAttributes)
*
* @param array $optParams Optional parameters.
*
* @opt_param string categoryName The primary category stable ID to find
* available attributes. Must be of the format categories/{category_id}.
* @opt_param string languageCode The BCP 47 code of language to get attribute
* display names in. If this language is not available, they will be provided in
* English.
* @opt_param int pageSize How many attributes to include per page. Default is
* 200, minimum is 1.
* @opt_param string pageToken If specified, the next page of attribute metadata
* is retrieved.
* @opt_param string parent Resource name of the location to look up available
* attributes. If this field is set, category_name, region_code, language_code
* and show_all are not required and must not be set.
* @opt_param string regionCode The ISO 3166-1 alpha-2 country code to find
* available attributes.
* @opt_param bool showAll Metadata for all available attributes are returned
* when this field is set to true, disregarding parent and category_name fields.
* language_code and region_code are required when show_all is set to true.
* @return ListAttributeMetadataResponse
* @throws \Google\Service\Exception
*/
public function listAttributes($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAttributeMetadataResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attributes::class, 'Google_Service_MyBusinessBusinessInformation_Resource_Attributes');
@@ -0,0 +1,87 @@
<?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\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\BatchGetCategoriesResponse;
use Google\Service\MyBusinessBusinessInformation\ListCategoriesResponse;
/**
* The "categories" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $categories = $mybusinessbusinessinformationService->categories;
* </code>
*/
class Categories extends \Google\Service\Resource
{
/**
* Returns a list of business categories for the provided language and GConcept
* ids. (categories.batchGet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode Required. The BCP 47 code of language that the
* category names should be returned in.
* @opt_param string names Required. At least one name must be set. The GConcept
* ids the localized category names should be returned for. To return details
* for more than one category, repeat this parameter in the request.
* @opt_param string regionCode Optional. The ISO 3166-1 alpha-2 country code
* used to infer non-standard language.
* @opt_param string view Required. Specifies which parts to the Category
* resource should be returned in the response.
* @return BatchGetCategoriesResponse
* @throws \Google\Service\Exception
*/
public function batchGet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], BatchGetCategoriesResponse::class);
}
/**
* Returns a list of business categories. Search will match the category name
* but not the category ID. Search only matches the front of a category name
* (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').
* (categories.listCategories)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter string from user. The only field
* that supported is `displayName`. Eg: `filter=displayName=foo`.
* @opt_param string languageCode Required. The BCP 47 code of language.
* @opt_param int pageSize Optional. How many categories to fetch per page.
* Default is 100, minimum is 1, and maximum page size is 100.
* @opt_param string pageToken Optional. If specified, the next page of
* categories will be fetched.
* @opt_param string regionCode Required. The ISO 3166-1 alpha-2 country code.
* @opt_param string view Required. Specifies which parts to the Category
* resource should be returned in the response.
* @return ListCategoriesResponse
* @throws \Google\Service\Exception
*/
public function listCategories($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCategoriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Categories::class, 'Google_Service_MyBusinessBusinessInformation_Resource_Categories');
@@ -0,0 +1,71 @@
<?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\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\Chain;
use Google\Service\MyBusinessBusinessInformation\SearchChainsResponse;
/**
* The "chains" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $chains = $mybusinessbusinessinformationService->chains;
* </code>
*/
class Chains extends \Google\Service\Resource
{
/**
* Gets the specified chain. Returns `NOT_FOUND` if the chain does not exist.
* (chains.get)
*
* @param string $name Required. The chain's resource name, in the format
* `chains/{chain_place_id}`.
* @param array $optParams Optional parameters.
* @return Chain
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Chain::class);
}
/**
* Searches the chain based on chain name. (chains.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string chainName Required. Search for a chain by its name.
* Exact/partial/fuzzy/related queries are supported. Examples: "walmart", "wal-
* mart", "walmmmart", "沃尔玛"
* @opt_param int pageSize The maximum number of matched chains to return from
* this query. The default is 10. The maximum possible value is 500.
* @return SearchChainsResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchChainsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Chains::class, 'Google_Service_MyBusinessBusinessInformation_Resource_Chains');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\SearchGoogleLocationsRequest;
use Google\Service\MyBusinessBusinessInformation\SearchGoogleLocationsResponse;
/**
* The "googleLocations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $googleLocations = $mybusinessbusinessinformationService->googleLocations;
* </code>
*/
class GoogleLocations extends \Google\Service\Resource
{
/**
* Search all of the possible locations that are a match to the specified
* request. (googleLocations.search)
*
* @param SearchGoogleLocationsRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchGoogleLocationsResponse
* @throws \Google\Service\Exception
*/
public function search(SearchGoogleLocationsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchGoogleLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLocations::class, 'Google_Service_MyBusinessBusinessInformation_Resource_GoogleLocations');
@@ -0,0 +1,161 @@
<?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\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\Attributes as AttributesModel;
use Google\Service\MyBusinessBusinessInformation\GoogleUpdatedLocation;
use Google\Service\MyBusinessBusinessInformation\Location;
use Google\Service\MyBusinessBusinessInformation\MybusinessbusinessinformationEmpty;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $locations = $mybusinessbusinessinformationService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
/**
* Deletes a location. If this location cannot be deleted using the API and it
* is marked so in the `google.mybusiness.businessinformation.v1.LocationState`,
* use the [Google Business Profile](https://business.google.com/manage/)
* website. (locations.delete)
*
* @param string $name Required. The name of the location to delete.
* @param array $optParams Optional parameters.
* @return MybusinessbusinessinformationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MybusinessbusinessinformationEmpty::class);
}
/**
* Returns the specified location as last set by the merchant. It may not
* reflect updates from Google or user-generated content that are live on Google
* Maps. (locations.get)
*
* @param string $name Required. The name of the location to fetch.
* @param array $optParams Optional parameters.
*
* @opt_param string readMask Required. Read mask to specify what fields will be
* returned in the response.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Retrieves attributes for a location as last set by the merchant. It may not
* reflect updates from Google or user-generated content that are live on Google
* Maps. (locations.getAttributes)
*
* @param string $name Required. Google identifier for this location in the form
* of `locations/{location_id}/attributes`.
* @param array $optParams Optional parameters.
* @return AttributesModel
* @throws \Google\Service\Exception
*/
public function getAttributes($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAttributes', [$params], AttributesModel::class);
}
/**
* Returns the specified location as it appears live on Google Maps and Search.
* This consumer-facing view may have been updated by Google or user-generated
* content and may differ from the merchant's version. The returned
* GoogleUpdatedLocation contains masks that indicate which fields differ from
* the merchant's information. (locations.getGoogleUpdated)
*
* @param string $name Required. The name of the location to fetch.
* @param array $optParams Optional parameters.
*
* @opt_param string readMask Required. Read mask to specify what fields will be
* returned in the response.
* @return GoogleUpdatedLocation
* @throws \Google\Service\Exception
*/
public function getGoogleUpdated($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getGoogleUpdated', [$params], GoogleUpdatedLocation::class);
}
/**
* Updates the specified location. (locations.patch)
*
* @param string $name Google identifier for this location in the form:
* `locations/{location_id}`.
* @param Location $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The specific fields to update.
* @opt_param bool validateOnly Optional. If true, the request is validated
* without actually updating the location. When this field is set, we will only
* return validation errors if there were any. The response will be empty if no
* errors were found.
* @return Location
* @throws \Google\Service\Exception
*/
public function patch($name, Location $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Location::class);
}
/**
* Update attributes for a given location. (locations.updateAttributes)
*
* @param string $name Required. Google identifier for this location in the form
* of `locations/{location_id}/attributes`.
* @param AttributesModel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string attributeMask Required. Attribute name of attributes that
* you'd like to update. Represented by `attributes/{attribute}`. Updates: All
* attributes provided in the attributes field that you would like to update
* must be set in the `attribute_mask`. Attributes set in the above list but not
* in the `attribute_mask` will be ignored. Deletes: If you'd like to delete
* certain attributes, they must be specified in the `attribute_mask` with no
* matching entry in the attributes list. If you'd like to delete all attributes
* set on a location, you should look up all the applicable attributes for the
* location and then add them to the `attribute_mask` with an empty attributes
* field.
* @return AttributesModel
* @throws \Google\Service\Exception
*/
public function updateAttributes($name, AttributesModel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAttributes', [$params], AttributesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_MyBusinessBusinessInformation_Resource_Locations');
@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessInformation\Resource;
use Google\Service\MyBusinessBusinessInformation\Attributes as AttributesModel;
/**
* The "attributes" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
* $attributes = $mybusinessbusinessinformationService->locations_attributes;
* </code>
*/
class LocationsAttributes extends \Google\Service\Resource
{
/**
* Retrieves attributes for a location as they appear live on Google Maps and
* Search. This consumer-facing view may have been updated by Google or user-
* generated content and may differ from the merchant's version.
* (attributes.getGoogleUpdated)
*
* @param string $name Required. Google identifier for this location in the form
* of `locations/{location_id}/attributes`.
* @param array $optParams Optional parameters.
* @return AttributesModel
* @throws \Google\Service\Exception
*/
public function getGoogleUpdated($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getGoogleUpdated', [$params], AttributesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsAttributes::class, 'Google_Service_MyBusinessBusinessInformation_Resource_LocationsAttributes');
@@ -0,0 +1,47 @@
<?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\MyBusinessBusinessInformation;
class SearchChainsResponse extends \Google\Collection
{
protected $collection_key = 'chains';
protected $chainsType = Chain::class;
protected $chainsDataType = 'array';
/**
* Chains that match the queried chain_display_name in SearchChainsRequest. If
* there are no matches, this field will be empty. Results are listed in order
* of relevance.
*
* @param Chain[] $chains
*/
public function setChains($chains)
{
$this->chains = $chains;
}
/**
* @return Chain[]
*/
public function getChains()
{
return $this->chains;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchChainsResponse::class, 'Google_Service_MyBusinessBusinessInformation_SearchChainsResponse');
@@ -0,0 +1,97 @@
<?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\MyBusinessBusinessInformation;
class SearchGoogleLocationsRequest extends \Google\Model
{
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* The number of matches to return. The default value is 3, with a maximum of
* 10. Note that latency may increase if more are requested. There is no
* pagination.
*
* @var int
*/
public $pageSize;
/**
* Text query to search for. The search results from a query string will be
* less accurate than if providing an exact location, but can provide more
* inexact matches.
*
* @var string
*/
public $query;
/**
* Location to search for. If provided, will find locations which match the
* provided location details, which must include a value for the title.
*
* @param Location $location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
/**
* The number of matches to return. The default value is 3, with a maximum of
* 10. Note that latency may increase if more are requested. There is no
* pagination.
*
* @param int $pageSize
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* Text query to search for. The search results from a query string will be
* less accurate than if providing an exact location, but can provide more
* inexact matches.
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchGoogleLocationsRequest::class, 'Google_Service_MyBusinessBusinessInformation_SearchGoogleLocationsRequest');
@@ -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\MyBusinessBusinessInformation;
class SearchGoogleLocationsResponse extends \Google\Collection
{
protected $collection_key = 'googleLocations';
protected $googleLocationsType = GoogleLocation::class;
protected $googleLocationsDataType = 'array';
/**
* A collection of GoogleLocations that are potential matches to the specified
* request, listed in order from most to least accuracy.
*
* @param GoogleLocation[] $googleLocations
*/
public function setGoogleLocations($googleLocations)
{
$this->googleLocations = $googleLocations;
}
/**
* @return GoogleLocation[]
*/
public function getGoogleLocations()
{
return $this->googleLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchGoogleLocationsResponse::class, 'Google_Service_MyBusinessBusinessInformation_SearchGoogleLocationsResponse');
@@ -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\MyBusinessBusinessInformation;
class ServiceAreaBusiness extends \Google\Model
{
/**
* Output only. Not specified.
*/
public const BUSINESS_TYPE_BUSINESS_TYPE_UNSPECIFIED = 'BUSINESS_TYPE_UNSPECIFIED';
/**
* Offers service only in the surrounding area (not at the business address).
* If a business is being updated from a CUSTOMER_AND_BUSINESS_LOCATION to a
* CUSTOMER_LOCATION_ONLY, the location update must include field mask
* `storefront_address` and set the field to empty.
*/
public const BUSINESS_TYPE_CUSTOMER_LOCATION_ONLY = 'CUSTOMER_LOCATION_ONLY';
/**
* Offers service at the business address and the surrounding area.
*/
public const BUSINESS_TYPE_CUSTOMER_AND_BUSINESS_LOCATION = 'CUSTOMER_AND_BUSINESS_LOCATION';
/**
* Required. Indicates the type of the service area business.
*
* @var string
*/
public $businessType;
protected $placesType = Places::class;
protected $placesDataType = '';
/**
* Immutable. CLDR region code of the country/region that this service area
* business is based in. See http://cldr.unicode.org/ and http://www.unicode.o
* rg/cldr/charts/30/supplemental/territory_information.html for details.
* Example: "CH" for Switzerland. This field is required for
* CUSTOMER_LOCATION_ONLY businesses, and is ignored otherwise. The region
* specified here can be different from regions for the areas that this
* business serves (e.g. service area businesses that provide services in
* regions other than the one that they are based in). If this location
* requires verification after creation, the address provided for verification
* purposes *must* be located within this region, and the business owner or
* their authorized representative *must* be able to receive postal mail at
* the provided verification address.
*
* @var string
*/
public $regionCode;
/**
* Required. Indicates the type of the service area business.
*
* Accepted values: BUSINESS_TYPE_UNSPECIFIED, CUSTOMER_LOCATION_ONLY,
* CUSTOMER_AND_BUSINESS_LOCATION
*
* @param self::BUSINESS_TYPE_* $businessType
*/
public function setBusinessType($businessType)
{
$this->businessType = $businessType;
}
/**
* @return self::BUSINESS_TYPE_*
*/
public function getBusinessType()
{
return $this->businessType;
}
/**
* The area that this business serves defined through a set of places.
*
* @param Places $places
*/
public function setPlaces(Places $places)
{
$this->places = $places;
}
/**
* @return Places
*/
public function getPlaces()
{
return $this->places;
}
/**
* Immutable. CLDR region code of the country/region that this service area
* business is based in. See http://cldr.unicode.org/ and http://www.unicode.o
* rg/cldr/charts/30/supplemental/territory_information.html for details.
* Example: "CH" for Switzerland. This field is required for
* CUSTOMER_LOCATION_ONLY businesses, and is ignored otherwise. The region
* specified here can be different from regions for the areas that this
* business serves (e.g. service area businesses that provide services in
* regions other than the one that they are based in). If this location
* requires verification after creation, the address provided for verification
* purposes *must* be located within this region, and the business owner or
* their authorized representative *must* be able to receive postal mail at
* the provided verification address.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAreaBusiness::class, 'Google_Service_MyBusinessBusinessInformation_ServiceAreaBusiness');
@@ -0,0 +1,82 @@
<?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\MyBusinessBusinessInformation;
class ServiceItem extends \Google\Model
{
protected $freeFormServiceItemType = FreeFormServiceItem::class;
protected $freeFormServiceItemDataType = '';
protected $priceType = Money::class;
protected $priceDataType = '';
protected $structuredServiceItemType = StructuredServiceItem::class;
protected $structuredServiceItemDataType = '';
/**
* Optional. This field will be set case of free-form services data.
*
* @param FreeFormServiceItem $freeFormServiceItem
*/
public function setFreeFormServiceItem(FreeFormServiceItem $freeFormServiceItem)
{
$this->freeFormServiceItem = $freeFormServiceItem;
}
/**
* @return FreeFormServiceItem
*/
public function getFreeFormServiceItem()
{
return $this->freeFormServiceItem;
}
/**
* Optional. Represents the monetary price of the service item. We recommend
* that currency_code and units should be set when including a price. This
* will be treated as a fixed price for the service item.
*
* @param Money $price
*/
public function setPrice(Money $price)
{
$this->price = $price;
}
/**
* @return Money
*/
public function getPrice()
{
return $this->price;
}
/**
* Optional. This field will be set case of structured services data.
*
* @param StructuredServiceItem $structuredServiceItem
*/
public function setStructuredServiceItem(StructuredServiceItem $structuredServiceItem)
{
$this->structuredServiceItem = $structuredServiceItem;
}
/**
* @return StructuredServiceItem
*/
public function getStructuredServiceItem()
{
return $this->structuredServiceItem;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceItem::class, 'Google_Service_MyBusinessBusinessInformation_ServiceItem');
@@ -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\MyBusinessBusinessInformation;
class ServiceType extends \Google\Model
{
/**
* Output only. The human-readable display name for the service type.
*
* @var string
*/
public $displayName;
/**
* Output only. A stable ID (provided by Google) for this service type.
*
* @var string
*/
public $serviceTypeId;
/**
* Output only. The human-readable display name for the service type.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. A stable ID (provided by Google) for this service type.
*
* @param string $serviceTypeId
*/
public function setServiceTypeId($serviceTypeId)
{
$this->serviceTypeId = $serviceTypeId;
}
/**
* @return string
*/
public function getServiceTypeId()
{
return $this->serviceTypeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceType::class, 'Google_Service_MyBusinessBusinessInformation_ServiceType');
@@ -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\MyBusinessBusinessInformation;
class SpecialHourPeriod extends \Google\Model
{
protected $closeTimeType = TimeOfDay::class;
protected $closeTimeDataType = '';
/**
* Optional. If true, `end_date`, `open_time`, and `close_time` are ignored,
* and the date specified in `start_date` is treated as the location being
* closed for the entire day.
*
* @var bool
*/
public $closed;
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $openTimeType = TimeOfDay::class;
protected $openTimeDataType = '';
protected $startDateType = Date::class;
protected $startDateDataType = '';
/**
* Optional. Valid values are 00:00-24:00, where 24:00 represents midnight at
* the end of the specified day field. Must be specified if `closed` is false.
*
* @param TimeOfDay $closeTime
*/
public function setCloseTime(TimeOfDay $closeTime)
{
$this->closeTime = $closeTime;
}
/**
* @return TimeOfDay
*/
public function getCloseTime()
{
return $this->closeTime;
}
/**
* Optional. If true, `end_date`, `open_time`, and `close_time` are ignored,
* and the date specified in `start_date` is treated as the location being
* closed for the entire day.
*
* @param bool $closed
*/
public function setClosed($closed)
{
$this->closed = $closed;
}
/**
* @return bool
*/
public function getClosed()
{
return $this->closed;
}
/**
* Optional. The calendar date this special hour period ends on. If `end_date`
* field is not set, default to the date specified in `start_date`. If set,
* this field must be equal to or at most 1 day after `start_date`.
*
* @param Date $endDate
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* Optional. Valid values are 00:00-24:00 where 24:00 represents midnight at
* the end of the specified day field. Must be specified if `closed` is false.
*
* @param TimeOfDay $openTime
*/
public function setOpenTime(TimeOfDay $openTime)
{
$this->openTime = $openTime;
}
/**
* @return TimeOfDay
*/
public function getOpenTime()
{
return $this->openTime;
}
/**
* Required. The calendar date this special hour period starts on.
*
* @param Date $startDate
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpecialHourPeriod::class, 'Google_Service_MyBusinessBusinessInformation_SpecialHourPeriod');
@@ -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\MyBusinessBusinessInformation;
class SpecialHours extends \Google\Collection
{
protected $collection_key = 'specialHourPeriods';
protected $specialHourPeriodsType = SpecialHourPeriod::class;
protected $specialHourPeriodsDataType = 'array';
/**
* Required. A list of exceptions to the business's regular hours.
*
* @param SpecialHourPeriod[] $specialHourPeriods
*/
public function setSpecialHourPeriods($specialHourPeriods)
{
$this->specialHourPeriods = $specialHourPeriods;
}
/**
* @return SpecialHourPeriod[]
*/
public function getSpecialHourPeriods()
{
return $this->specialHourPeriods;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpecialHours::class, 'Google_Service_MyBusinessBusinessInformation_SpecialHours');
@@ -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\MyBusinessBusinessInformation;
class StructuredServiceItem extends \Google\Model
{
/**
* Optional. Description of structured service item. The character limit is
* 300.
*
* @var string
*/
public $description;
/**
* Required. The `service_type_id` field is a Google provided unique ID that
* can be found in `ServiceType`. This information is provided by
* `BatchGetCategories` rpc service.
*
* @var string
*/
public $serviceTypeId;
/**
* Optional. Description of structured service item. The character limit is
* 300.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The `service_type_id` field is a Google provided unique ID that
* can be found in `ServiceType`. This information is provided by
* `BatchGetCategories` rpc service.
*
* @param string $serviceTypeId
*/
public function setServiceTypeId($serviceTypeId)
{
$this->serviceTypeId = $serviceTypeId;
}
/**
* @return string
*/
public function getServiceTypeId()
{
return $this->serviceTypeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StructuredServiceItem::class, 'Google_Service_MyBusinessBusinessInformation_StructuredServiceItem');
@@ -0,0 +1,126 @@
<?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\MyBusinessBusinessInformation;
class TimeOfDay extends \Google\Model
{
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @var int
*/
public $hours;
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @var int
*/
public $minutes;
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @var int
*/
public $nanos;
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @var int
*/
public $seconds;
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @param int $hours
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @param int $minutes
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @param int $nanos
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @param int $seconds
*/
public function setSeconds($seconds)
{
$this->seconds = $seconds;
}
/**
* @return int
*/
public function getSeconds()
{
return $this->seconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeOfDay::class, 'Google_Service_MyBusinessBusinessInformation_TimeOfDay');
@@ -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\MyBusinessBusinessInformation;
class TimePeriod extends \Google\Model
{
/**
* The day of the week is unspecified.
*/
public const CLOSE_DAY_DAY_OF_WEEK_UNSPECIFIED = 'DAY_OF_WEEK_UNSPECIFIED';
/**
* Monday
*/
public const CLOSE_DAY_MONDAY = 'MONDAY';
/**
* Tuesday
*/
public const CLOSE_DAY_TUESDAY = 'TUESDAY';
/**
* Wednesday
*/
public const CLOSE_DAY_WEDNESDAY = 'WEDNESDAY';
/**
* Thursday
*/
public const CLOSE_DAY_THURSDAY = 'THURSDAY';
/**
* Friday
*/
public const CLOSE_DAY_FRIDAY = 'FRIDAY';
/**
* Saturday
*/
public const CLOSE_DAY_SATURDAY = 'SATURDAY';
/**
* Sunday
*/
public const CLOSE_DAY_SUNDAY = 'SUNDAY';
/**
* The day of the week is unspecified.
*/
public const OPEN_DAY_DAY_OF_WEEK_UNSPECIFIED = 'DAY_OF_WEEK_UNSPECIFIED';
/**
* Monday
*/
public const OPEN_DAY_MONDAY = 'MONDAY';
/**
* Tuesday
*/
public const OPEN_DAY_TUESDAY = 'TUESDAY';
/**
* Wednesday
*/
public const OPEN_DAY_WEDNESDAY = 'WEDNESDAY';
/**
* Thursday
*/
public const OPEN_DAY_THURSDAY = 'THURSDAY';
/**
* Friday
*/
public const OPEN_DAY_FRIDAY = 'FRIDAY';
/**
* Saturday
*/
public const OPEN_DAY_SATURDAY = 'SATURDAY';
/**
* Sunday
*/
public const OPEN_DAY_SUNDAY = 'SUNDAY';
/**
* Required. Indicates the day of the week this period ends on.
*
* @var string
*/
public $closeDay;
protected $closeTimeType = TimeOfDay::class;
protected $closeTimeDataType = '';
/**
* Required. Indicates the day of the week this period starts on.
*
* @var string
*/
public $openDay;
protected $openTimeType = TimeOfDay::class;
protected $openTimeDataType = '';
/**
* Required. Indicates the day of the week this period ends on.
*
* Accepted values: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY,
* THURSDAY, FRIDAY, SATURDAY, SUNDAY
*
* @param self::CLOSE_DAY_* $closeDay
*/
public function setCloseDay($closeDay)
{
$this->closeDay = $closeDay;
}
/**
* @return self::CLOSE_DAY_*
*/
public function getCloseDay()
{
return $this->closeDay;
}
/**
* Required. Valid values are 00:00-24:00, where 24:00 represents midnight at
* the end of the specified day field.
*
* @param TimeOfDay $closeTime
*/
public function setCloseTime(TimeOfDay $closeTime)
{
$this->closeTime = $closeTime;
}
/**
* @return TimeOfDay
*/
public function getCloseTime()
{
return $this->closeTime;
}
/**
* Required. Indicates the day of the week this period starts on.
*
* Accepted values: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY,
* THURSDAY, FRIDAY, SATURDAY, SUNDAY
*
* @param self::OPEN_DAY_* $openDay
*/
public function setOpenDay($openDay)
{
$this->openDay = $openDay;
}
/**
* @return self::OPEN_DAY_*
*/
public function getOpenDay()
{
return $this->openDay;
}
/**
* Required. Valid values are 00:00-24:00, where 24:00 represents midnight at
* the end of the specified day field.
*
* @param TimeOfDay $openTime
*/
public function setOpenTime(TimeOfDay $openTime)
{
$this->openTime = $openTime;
}
/**
* @return TimeOfDay
*/
public function getOpenTime()
{
return $this->openTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimePeriod::class, 'Google_Service_MyBusinessBusinessInformation_TimePeriod');
@@ -0,0 +1,48 @@
<?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\MyBusinessBusinessInformation;
class UriAttributeValue extends \Google\Model
{
/**
* Required. The proposed URI value for this attribute.
*
* @var string
*/
public $uri;
/**
* Required. The proposed URI value for this attribute.
*
* @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(UriAttributeValue::class, 'Google_Service_MyBusinessBusinessInformation_UriAttributeValue');