UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 62.4 kB
{"openapi":"3.0.0","servers":[{"url":"https://mybusinessbusinessinformation.googleapis.com/"}],"info":{"contact":{"name":"Google","url":"https://google.com","x-twitter":"youtube"},"description":"The My Business Business Information API provides an interface for managing business information. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.","license":{"name":"Creative Commons Attribution 3.0","url":"http://creativecommons.org/licenses/by/3.0/"},"termsOfService":"https://developers.google.com/terms/","title":"My Business Business Information API","version":"v1","x-apisguru-categories":["analytics","media"],"x-logo":{"url":"https://upload.wikimedia.org/wikipedia/commons/e/e1/YouTube_play_buttom_icon_%282013-2017%29.svg"},"x-origin":[{"format":"google","url":"https://mybusinessbusinessinformation.googleapis.com/$discovery/rest?version=v1","version":"v1"}],"x-providerName":"googleapis.com","x-serviceName":"mybusinessbusinessinformation"},"externalDocs":{"url":"https://developers.google.com/my-business/"},"tags":[{"name":"accounts"},{"name":"attributes"},{"name":"categories"},{"name":"chains"},{"name":"googleLocations"},{"name":"locations"}],"paths":{"/v1/attributes":{"get":{"description":"Returns the list of attributes that would be available for a location with the given primary category and country.","operationId":"mybusinessbusinessinformation.attributes.list","parameters":[{"description":"The primary category stable ID to find available attributes. Must be of the format categories/{category_id}.","in":"query","name":"categoryName","schema":{"type":"string"}},{"description":"The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English.","in":"query","name":"languageCode","schema":{"type":"string"}},{"description":"How many attributes to include per page. Default is 200, minimum is 1.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"If specified, the next page of attribute metadata is retrieved.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"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.","in":"query","name":"parent","schema":{"type":"string"}},{"description":"The ISO 3166-1 alpha-2 country code to find available attributes.","in":"query","name":"regionCode","schema":{"type":"string"}},{"description":"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.","in":"query","name":"showAll","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAttributeMetadataResponse"}}},"description":"Successful response"}},"tags":["attributes"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/categories":{"get":{"description":"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').","operationId":"mybusinessbusinessinformation.categories.list","parameters":[{"description":"Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`.","in":"query","name":"filter","schema":{"type":"string"}},{"description":"Required. The BCP 47 code of language.","in":"query","name":"languageCode","schema":{"type":"string"}},{"description":"Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"Optional. If specified, the next page of categories will be fetched.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"Required. The ISO 3166-1 alpha-2 country code.","in":"query","name":"regionCode","schema":{"type":"string"}},{"description":"Required. Specifies which parts to the Category resource should be returned in the response.","in":"query","name":"view","schema":{"enum":["CATEGORY_VIEW_UNSPECIFIED","BASIC","FULL"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCategoriesResponse"}}},"description":"Successful response"}},"tags":["categories"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/categories:batchGet":{"get":{"description":"Returns a list of business categories for the provided language and GConcept ids.","operationId":"mybusinessbusinessinformation.categories.batchGet","parameters":[{"description":"Required. The BCP 47 code of language that the category names should be returned in.","in":"query","name":"languageCode","schema":{"type":"string"}},{"description":"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.","explode":true,"in":"query","name":"names","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language.","in":"query","name":"regionCode","schema":{"type":"string"}},{"description":"Required. Specifies which parts to the Category resource should be returned in the response.","in":"query","name":"view","schema":{"enum":["CATEGORY_VIEW_UNSPECIFIED","BASIC","FULL"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGetCategoriesResponse"}}},"description":"Successful response"}},"tags":["categories"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/chains:search":{"get":{"description":"Searches the chain based on chain name.","operationId":"mybusinessbusinessinformation.chains.search","parameters":[{"description":"Required. Search for a chain by its name. Exact/partial/fuzzy/related queries are supported. Examples: \"walmart\", \"wal-mart\", \"walmmmart\", \"沃尔玛\"","in":"query","name":"chainName","schema":{"type":"string"}},{"description":"The maximum number of matched chains to return from this query. The default is 10. The maximum possible value is 500.","in":"query","name":"pageSize","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchChainsResponse"}}},"description":"Successful response"}},"tags":["chains"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/googleLocations:search":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Search all of the possible locations that are a match to the specified request.","operationId":"mybusinessbusinessinformation.googleLocations.search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchGoogleLocationsRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchGoogleLocationsResponse"}}},"description":"Successful response"}},"tags":["googleLocations"]}},"/v1/{name}":{"delete":{"description":"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.","operationId":"mybusinessbusinessinformation.locations.delete","parameters":[{"description":"Required. The name of the location to delete.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}},"description":"Successful response"}},"tags":["locations"]},"get":{"description":"Looks up all the attributes set for a given location.","operationId":"mybusinessbusinessinformation.locations.getAttributes","parameters":[{"description":"Required. Google identifier for this location in the form of `locations/{location_id}/attributes`.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attributes"}}},"description":"Successful response"}},"tags":["locations"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"patch":{"description":"Update attributes for a given location.","operationId":"mybusinessbusinessinformation.locations.updateAttributes","parameters":[{"description":"Required. Google identifier for this location in the form of `locations/{location_id}/attributes`.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"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.","in":"query","name":"attributeMask","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attributes"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attributes"}}},"description":"Successful response"}},"tags":["locations"]}},"/v1/{name}:getGoogleUpdated":{"get":{"description":"Gets the Google-updated version of the specified location.","operationId":"mybusinessbusinessinformation.locations.attributes.getGoogleUpdated","parameters":[{"description":"Required. Google identifier for this location in the form of `locations/{location_id}/attributes`.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Required. Read mask to specify what fields will be returned in the response.","in":"query","name":"readMask","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attributes"}}},"description":"Successful response"}},"tags":["locations"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/{parent}/locations":{"get":{"description":"Lists the locations for the specified account.","operationId":"mybusinessbusinessinformation.accounts.locations.list","parameters":[{"description":"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.","in":"path","name":"parent","required":true,"schema":{"type":"string"}},{"description":"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).","in":"query","name":"filter","schema":{"type":"string"}},{"description":"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\"","in":"query","name":"orderBy","schema":{"type":"string"}},{"description":"Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum is 1, and maximum page size is 100.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"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.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"Required. Read mask to specify what fields will be returned in the response.","in":"query","name":"readMask","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLocationsResponse"}}},"description":"Successful response"}},"tags":["accounts"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a new Location that will be owned by the logged in user.","operationId":"mybusinessbusinessinformation.accounts.locations.create","parameters":[{"description":"Required. The name of the account in which to create this location.","in":"path","name":"parent","required":true,"schema":{"type":"string"}},{"description":"Optional. A unique request ID for the server to detect duplicated requests. We recommend using UUIDs. Max length is 50 characters.","in":"query","name":"requestId","schema":{"type":"string"}},{"description":"Optional. If true, the request is validated without actually creating the location.","in":"query","name":"validateOnly","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"description":"Successful response"}},"tags":["accounts"]}}},"components":{"parameters":{"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"enum":["1","2"],"type":"string"}},"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"enum":["json","media","proto"],"type":"string"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean"}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}}},"schemas":{"AdWordsLocationExtensions":{"description":"Additional information that is surfaced in AdWords.","properties":{"adPhone":{"description":"Required. An alternate phone number to display on AdWords location extensions instead of the location's primary phone number.","type":"string"}},"type":"object"},"Attribute":{"description":"A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes.","properties":{"name":{"description":"Required. The resource name for this attribute.","type":"string"},"repeatedEnumValue":{"$ref":"#/components/schemas/RepeatedEnumAttributeValue","description":"When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the other values fields must be empty."},"uriValues":{"description":"When the attribute value type is URL, this field contains the value(s) for this attribute, and the other values fields must be empty.","items":{"$ref":"#/components/schemas/UriAttributeValue"},"type":"array"},"valueType":{"description":"Output only. The type of value that this attribute contains. This should be used to determine how to interpret the value.","enum":["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED","BOOL","ENUM","URL","REPEATED_ENUM"],"readOnly":true,"type":"string"},"values":{"description":"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.","items":{},"type":"array"}},"type":"object"},"AttributeMetadata":{"description":"Metadata for an attribute. Contains display information for the attribute, including a localized name and a heading for grouping related attributes together.","properties":{"deprecated":{"description":"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.","type":"boolean"},"displayName":{"description":"The localized display name for the attribute, if available; otherwise, the English display name.","type":"string"},"groupDisplayName":{"description":"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.","type":"string"},"parent":{"description":"The unique identifier for the attribute.","type":"string"},"repeatable":{"description":"If true, the attribute supports multiple values. If false, only a single value should be provided.","type":"boolean"},"valueMetadata":{"description":"For some types of attributes (for example, enums), a list of supported values and corresponding display names for those values is provided.","items":{"$ref":"#/components/schemas/AttributeValueMetadata"},"type":"array"},"valueType":{"description":"The value type for the attribute. Values set and retrieved should be expected to be of this type.","enum":["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED","BOOL","ENUM","URL","REPEATED_ENUM"],"type":"string"}},"type":"object"},"AttributeValueMetadata":{"description":"Metadata for supported attribute values.","properties":{"displayName":{"description":"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.","type":"string"},"value":{"description":"The attribute value."}},"type":"object"},"Attributes":{"description":"A container for all the attributes for a given location.","properties":{"attributes":{"description":"A collection of attributes that need to be updated.","items":{"$ref":"#/components/schemas/Attribute"},"type":"array"},"name":{"description":"Required. Google identifier for this location in the form of `locations/{location_id}/attributes`.","type":"string"}},"type":"object"},"BatchGetCategoriesResponse":{"description":"Response message for BusinessCategories.BatchGetBusinessCategories.","properties":{"categories":{"description":"Categories that match the GConcept ids provided in the request. They will not come in the same order as category ids in the request.","items":{"$ref":"#/components/schemas/Category"},"type":"array"}},"type":"object"},"BusinessHours":{"description":"Represents the time periods that this location is open for business. Holds a collection of TimePeriod instances.","properties":{"periods":{"description":"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.","items":{"$ref":"#/components/schemas/TimePeriod"},"type":"array"}},"type":"object"},"Categories":{"description":"A collection of categories that describes the business. During updates, both fields must be set. Clients are prohibited from individually updating the primary or additional categories using the update mask.","properties":{"additionalCategories":{"description":"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.","items":{"$ref":"#/components/schemas/Category"},"type":"array"},"primaryCategory":{"$ref":"#/components/schemas/Category","description":"Required. Category that best describes the core business this location engages in."}},"type":"object"},"Category":{"description":"A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see `categories.list`.","properties":{"displayName":{"description":"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.","readOnly":true,"type":"string"},"moreHoursTypes":{"description":"Output only. More hours types that are available for this business category.","items":{"$ref":"#/components/schemas/MoreHoursType"},"readOnly":true,"type":"array"},"name":{"description":"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).","type":"string"},"serviceTypes":{"description":"Output only. A list of all the service types that are available for this business category.","items":{"$ref":"#/components/schemas/ServiceType"},"readOnly":true,"type":"array"}},"type":"object"},"Chain":{"description":"A chain is a brand that your business's locations can be affiliated with.","properties":{"chainNames":{"description":"Names of the chain.","items":{"$ref":"#/components/schemas/ChainName"},"type":"array"},"locationCount":{"description":"Number of locations that are part of this chain.","format":"int32","type":"integer"},"name":{"description":"Required. The chain's resource name, in the format `chains/{chain_id}`.","type":"string"},"websites":{"description":"Websites of the chain.","items":{"$ref":"#/components/schemas/ChainUri"},"type":"array"}},"type":"object"},"ChainName":{"description":"Name to be used when displaying the chain.","properties":{"displayName":{"description":"The display name for this chain.","type":"string"},"languageCode":{"description":"The BCP 47 code of language of the name.","type":"string"}},"type":"object"},"ChainUri":{"description":"Url to be used when displaying the chain.","properties":{"uri":{"description":"The uri for this chain.","type":"string"}},"type":"object"},"Date":{"description":"Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp","properties":{"day":{"description":"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.","format":"int32","type":"integer"},"month":{"description":"Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.","format":"int32","type":"integer"},"year":{"description":"Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.","format":"int32","type":"integer"}},"type":"object"},"Empty":{"description":"A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }","properties":{},"type":"object"},"FreeFormServiceItem":{"description":"Represents a free-form service offered by the merchant. These are services that are not exposed as part of our structure service data. The merchant manually enters the names for of such services via a geomerchant surface.","properties":{"category":{"description":"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.","type":"string"},"label":{"$ref":"#/components/schemas/Label","description":"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 via service_type_id."}},"type":"object"},"GoogleLocation":{"description":"Represents a Location that is present on Google. This can be a location that has been claimed by the user, someone else, or could be unclaimed.","properties":{"location":{"$ref":"#/components/schemas/Location","description":"The sparsely populated Location information. This field can be re-used in CreateLocation if it is not currently claimed by a user."},"name":{"description":"Resource name of this GoogleLocation, in the format `googleLocations/{googleLocationId}`.","type":"string"},"requestAdminRightsUri":{"description":"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.","type":"string"}},"type":"object"},"GoogleUpdatedLocation":{"description":"Represents a location that was modified by Google.","properties":{"diffMask":{"description":"The fields that Google updated.","format":"google-fieldmask","type":"string"},"location":{"$ref":"#/components/schemas/Location","description":"The Google-updated version of this location."},"pendingMask":{"description":"The fields that have pending edits that haven't yet been pushed to Maps and Search.","format":"google-fieldmask","type":"string"}},"type":"object"},"Label":{"description":"Label to be used when displaying the price list, section, or item.","properties":{"description":{"description":"Optional. Description of the price list, section, or item.","type":"string"},"displayName":{"description":"Required. Display name for the price list, section, or item.","type":"string"},"languageCode":{"description":"Optional. The BCP-47 language code that these strings apply for. Only one set of labels may be set per language.","type":"string"}},"type":"object"},"LatLng":{"description":"An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.","properties":{"latitude":{"description":"The latitude in degrees. It must be in the range [-90.0, +90.0].","format":"double","type":"number"},"longitude":{"description":"The longitude in degrees. It must be in the range [-180.0, +180.0].","format":"double","type":"number"}},"type":"object"},"ListAttributeMetadataResponse":{"description":"Response for AttributesService.ListAttributeMetadata.","properties":{"attributeMetadata":{"description":"A collection of attribute metadata for the available attributes.","items":{"$ref":"#/components/schemas/AttributeMetadata"},"type":"array"},"nextPageToken":{"description":"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.","type":"string"}},"type":"object"},"ListCategoriesResponse":{"description":"Response message for BusinessCategories.ListCategories.","properties":{"categories":{"description":"The matching categories based on the requested parameters.","items":{"$ref":"#/components/schemas/Category"},"type":"array"},"nextPageToken":{"description":"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`.","type":"string"}},"type":"object"},"ListLocationsResponse":{"description":"Response message for Locations.ListLocations.","properties":{"locations":{"description":"The locations.","items":{"$ref":"#/components/schemas/Location"},"type":"array"},"nextPageToken":{"description":"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.","type":"string"},"totalSize":{"description":"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.","format":"int32","type":"integer"}},"type":"object"},"Location":{"description":"A location. See the [help center article] (https://support.google.com/business/answer/3038177) for a detailed description of these fields, or the [category endpoint](/my-business/reference/rest/v4/categories) for a list of valid business categories.","properties":{"adWordsLocationExtensions":{"$ref":"#/components/schemas/AdWordsLocationExtensions","description":"Optional. Additional information that is surfaced in AdWords."},"categories":{"$ref":"#/components/schemas/Categories","description":"Optional. The different categories that describe the business."},"labels":{"description":"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.","items":{"type":"string"},"type":"array"},"languageCode":{"description":"Immutable. The language of the location. Set during creation and not updateable.","type":"string"},"latlng":{"$ref":"#/components/schemas/LatLng","description":"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."},"metadata":{"$ref":"#/components/schemas/Metadata","description":"Output only. Additional non-user-editable information.","readOnly":true},"moreHours":{"description":"Optional. More hours for a business's different departments or specific customers.","items":{"$ref":"#/components/schemas/MoreHours"},"type":"array"},"name":{"description":"Google identifier for this location in the form: `locations/{location_id}`.","type":"string"},"openInfo":{"$ref":"#/components/schemas/OpenInfo","description":"Optional. A flag that indicates whether the location is currently open for business."},"phoneNumbers":{"$ref":"#/components/schemas/PhoneNumbers","description":"Optional. The different phone numbers that customers can use to get in touch with the business."},"profile":{"$ref":"#/components/schemas/Profile","description":"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)."},"regularHours":{"$ref":"#/components/schemas/BusinessHours","description":"Optional. Operating hours for the business."},"relationshipData":{"$ref":"#/components/schemas/RelationshipData","description":"Optional. All locations and chain related to this one."},"serviceArea":{"$ref":"#/components/schemas/ServiceAreaBusiness","description":"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."},"serviceItems":{"description":"Optional. List of services supported by merchants. A service can be haircut, install water heater, etc. Duplicated service items will be removed automatically.","items":{"$ref":"#/components/schemas/ServiceItem"},"type":"array"},"specialHours":{"$ref":"#/components/schemas/SpecialHours","description":"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."},"storeCode":{"description":"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.","type":"string"},"storefrontAddress":{"$ref":"#/components/schemas/PostalAddress","description":"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."},"title":{"description":"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\").","type":"string"},"websiteUri":{"description":"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.","type":"string"}},"type":"object"},"Metadata":{"description":"Additional non-user-editable information about the location.","properties":{"canDelete":{"description":"Output only. Indicates whether the location can be deleted using the API.","readOnly":true,"type":"boolean"},"canHaveBusinessCalls":{"description":"Output only. Indicates if the listing is eligible for business calls.","readOnly":true,"type":"boolean"},"canHaveFoodMenus":{"description":"Output only. Indicates if the listing is eligible for food menu.","readOnly":true,"type":"boolean"},"canModifyServiceList":{"description":"Output only. Indicates if the listing can modify the service list.","readOnly":true,"type":"boolean"},"canOperateHealthData":{"description":"Output only. Indicates whether the location can operate on Health data.","readOnly":true,"type":"boolean"},"canOperateLocalPost":{"description":"Output only. Indicates if the listing can manage local posts.","readOnly":true,"type":"boolean"},"canOperateLodgingData":{"description":"Output only. Indicates whether the location can operate on Lodging data.","readOnly":true,"type":"boolean"},"duplicateLocation":{"description":"Output only. The location resource that this location duplicates.","readOnly":true,"type":"string"},"hasGoogleUpdated":{"description":"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 lookup information that's needs to be verified.","readOnly":true,"type":"boolean"},"hasPendingEdits":{"description":"Output only. Indicates whether any of this Location's properties are in the edit pending state.","readOnly":true,"type":"boolean"},"hasVoiceOfMerchant":{"description":"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.","readOnly":true,"type":"boolean"},"mapsUri":{"description":"Output only. A link to the location on Maps.","readOnly":true,"type":"string"},"newReviewUri":{"description":"Output only. A link to the page on Google Search where a customer can leave a review for the location.","readOnly":true,"type":"string"},"placeId":{"description":"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.","readOnly":true,"type":"string"}},"type":"object"},"Money":{"description":"Represents an amount of money with its currency type.","properties":{"currencyCode":{"description":"The three-letter currency code defined in ISO 4217.","type":"string"},"nanos":{"description":"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.","format":"int32","type":"integer"},"units":{"description":"The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","format":"int64","type":"string"}},"type":"object"},"MoreHours":{"description":"The time periods during which a location is open for certain types of business.","properties":{"hoursTypeId":{"description":"Required. Type of hours. Clients should call {#link businessCategories:BatchGet} to get supported hours types for categories of their locations.","type":"string"},"periods":{"description":"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.","items":{"$ref":"#/components/schemas/TimePeriod"},"type":"array"}},"type":"object"},"MoreHoursType":{"description":"More hours types that a business can offers, in addition to its regular hours.","properties":{"displayName":{"description":"Output only. The human-readable English display name for the hours type.","readOnly":true,"type":"string"},"hoursTypeId":{"description":"Output only. A stable ID provided by Google for this hours type.","readOnly":true,"type":"string"},"localizedDisplayName":{"description":"Output only. The human-readable localized display name for the hours type.","readOnly":true,"type":"string"}},"type":"object"},"OpenInfo":{"description":"Information related to the opening state of the business.","properties":{"canReopen":{"description":"Output only. Indicates whether this business is eligible for re-open.","readOnly":true,"type":"boolean"},"openingDate":{"$ref":"#/components/schemas/Date","description":"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."},"status":{"description":"Required. Indicates whether or not the Location is currently open for business. All locations are open by default, unless updated to be closed.","enum":["OPEN_FOR_BUSINESS_UNSPECIFIED","OPEN","CLOSED_PERMANENTLY","CLOSED_TEMPORARILY"],"type":"string"}},"type":"object"},"PhoneNumbers":{"description":"A collection of phone numbers for the business. During updates, both fields must be set. Clients may not update just the primary or additional phone numbers using the update mask. International phone format is preferred, such as \"+1 415 555 0132\", see more in (https://developers.google.com/style/phone-numbers#international-phone-numbers).","properties":{"additionalPhones":{"description":"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.","items":{"type":"string"},"type":"array"},"primaryPhone":{"description":"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.","type":"string"}},"type":"object"},"PlaceInfo":{"description":"Defines an area that's represented by a place ID.","properties":{"placeId":{"description":"Required. The ID of the place. Must correspond to a region. (https://developers.google.com/places/web-service/supported_types#table3)","type":"string"},"placeName":{"description":"Required. The localized name of the place. For example, `Scottsdale, AZ`.","type":"string"}},"type":"object"},"Places":{"description":"Defines the union of areas represented by a set of places.","properties":{"placeInfos":{"description":"The areas represented by place IDs. Limited to a maximum of 20 places.","items":{"$ref":"#/components/schemas/PlaceInfo"},"type":"array"}},"type":"object"},"PostalAddress":{"description":"Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478","properties":{"addressLines":{"description":"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 (e.g. \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). 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).","items":{"type":"string"},"type":"array"},"administrativeArea":{"description":"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. Specifically, for Spain this is the province and not the autonomous community (e.g. \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.","type":"string"},"languageCode":{"description":"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\".","type":"string"},"locality":{"description":"Optional. Generally refers to the city/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.","type":"string"},"organization":{"description":"Optional. The name of the organization at the address.","type":"string"},"postalCode":{"description":"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 (e.g. state/zip validation in the U.S.A.).","type":"string"},"recipients":{"description":"Optional. The