REST Resource: chains
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ресурс: Цепь
Сеть – это бренд, с которым могут быть связаны филиалы вашего бизнеса.
JSON-представление |
---|
{
"name": string,
"chainNames": [
{
object (ChainName )
}
],
"websites": [
{
object (ChainUrl )
}
],
"locationCount": integer
} |
Поля |
---|
name | string Имя ресурса цепочки в формате chains/{chain_place_id} . |
chainNames[] | object ( ChainName ) Названия сети. |
websites[] | object ( ChainUrl ) Сайты сети. |
locationCount | integer Количество локаций, входящих в эту цепочку. |
Имяцепи
Имя, которое будет использоваться при отображении цепочки.
JSON-представление |
---|
{
"displayName": string,
"languageCode": string
} |
Поля |
---|
displayName | string Отображаемое имя этой цепочки. |
languageCode | string Код языка названия BCP 47. |
Цепной URL
URL-адрес, который будет использоваться при отображении цепочки.
JSON-представление |
---|
{
"url": string
} |
Поля |
---|
url | string URL-адрес этой цепочки. |
Методы |
---|
| Получает указанную цепочку. |
| Ищет цепочку по названию цепочки. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eA \u003ccode\u003eChain\u003c/code\u003e represents a brand with multiple business locations, containing information like name, websites, and location count.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChain\u003c/code\u003e data includes \u003ccode\u003eChainName\u003c/code\u003e for display purposes and \u003ccode\u003eChainUrl\u003c/code\u003e for website links.\u003c/p\u003e\n"],["\u003cp\u003eYou can programmatically access chain data using the \u003ccode\u003eget\u003c/code\u003e and \u003ccode\u003esearch\u003c/code\u003e methods provided.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChain\u003c/code\u003e resource uses JSON for data representation and includes fields for identifying the chain and related information.\u003c/p\u003e\n"]]],["The content describes the \"Chain\" resource, representing a brand that businesses can affiliate with. Key components include: a chain's `name`, `chainNames` (display names and language codes), `websites` (URLs), and `locationCount`. The `ChainName` provides a `displayName` and `languageCode`. `ChainUrl` contains a simple `url`. Two main methods are detailed, `get` to retrieve a specific chain, and `search` to find a chain by its name.\n"],null,["# REST Resource: chains\n\n- [Resource: Chain](#Chain)\n - [JSON representation](#Chain.SCHEMA_REPRESENTATION)\n- [ChainName](#ChainName)\n - [JSON representation](#ChainName.SCHEMA_REPRESENTATION)\n- [ChainUrl](#ChainUrl)\n - [JSON representation](#ChainUrl.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Chain\n---------------\n\nA chain is a brand that your business's locations can be affiliated with.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"chainNames\": [ { object (/my-business/reference/rest/v4/chains#ChainName) } ], \"websites\": [ { object (/my-business/reference/rest/v4/chains#ChainUrl) } ], \"locationCount\": integer } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------|\n| `name` | `string` The chain's resource name, in the format `chains/{chain_place_id}`. |\n| `chainNames[]` | `object (`[ChainName](/my-business/reference/rest/v4/chains#ChainName)`)` Names of the chain. |\n| `websites[]` | `object (`[ChainUrl](/my-business/reference/rest/v4/chains#ChainUrl)`)` Websites of the chain. |\n| `locationCount` | `integer` Number of locations that are part of this chain. |\n\nChainName\n---------\n\nName to be used when displaying the chain.\n\n| JSON representation ||\n|-----------------------------------------------------------|---|\n| ``` { \"displayName\": string, \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------|\n| `displayName` | `string` The display name for this chain. |\n| `languageCode` | `string` The BCP 47 code of language of the name. |\n\nChainUrl\n--------\n\nUrl to be used when displaying the chain.\n\n| JSON representation ||\n|---------------------------|---|\n| ``` { \"url\": string } ``` |\n\n| Fields ||\n|-------|----------------------------------|\n| `url` | `string` The url for this chain. |\n\n| Methods ------- ||\n|------------------------------------------------------------|-----------------------------------------|\n| ### [get](/my-business/reference/rest/v4/chains/get) | Gets the specified chain. |\n| ### [search](/my-business/reference/rest/v4/chains/search) | Searches the chain based on chain name. |"]]