REST Resource: chains
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eA Chain represents a brand with which your business locations can be affiliated, containing information like name, websites, and location count.\u003c/p\u003e\n"],["\u003cp\u003eChains can be identified by a unique resource name and have multiple display names in different languages.\u003c/p\u003e\n"],["\u003cp\u003eYou can programmatically access chain information using the provided methods: \u003ccode\u003eget\u003c/code\u003e to retrieve a specific chain and \u003ccode\u003esearch\u003c/code\u003e to find chains based on name.\u003c/p\u003e\n"],["\u003cp\u003eChain information includes \u003ccode\u003ewebsites\u003c/code\u003e represented as URIs for online presence and \u003ccode\u003echainNames\u003c/code\u003e for display purposes with language specifications.\u003c/p\u003e\n"]]],["The content describes the structure of a \"Chain\" resource, which represents a brand affiliated with business locations. A Chain has a resource name, a list of `chainNames` (display names with language codes), and `websites` (URLs). It also includes a `locationCount` which is an integer of how many locations are in the chain. `ChainName` and `ChainUri` provide display and url information. Two methods are available: `get` to retrieve a specific chain, and `search` to find chains by 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- [ChainUri](#ChainUri)\n - [JSON representation](#ChainUri.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/businessinformation/rest/v1/chains#ChainName) } ], \"websites\": [ { object (/my-business/reference/businessinformation/rest/v1/chains#ChainUri) } ], \"locationCount\": integer } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The chain's resource name, in the format `chains/{chain_id}`. |\n| `chainNames[]` | `object (`[ChainName](/my-business/reference/businessinformation/rest/v1/chains#ChainName)`)` Names of the chain. |\n| `websites[]` | `object (`[ChainUri](/my-business/reference/businessinformation/rest/v1/chains#ChainUri)`)` 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\nChainUri\n--------\n\nUrl to be used when displaying the chain.\n\n| JSON representation |\n|---------------------------|\n| ``` { \"uri\": string } ``` |\n\n| Fields ||\n|-------|----------------------------------|\n| `uri` | `string` The uri for this chain. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------|-----------------------------------------|\n| ### [get](/my-business/reference/businessinformation/rest/v1/chains/get) | Gets the specified chain. |\n| ### [search](/my-business/reference/businessinformation/rest/v1/chains/search) | Searches the chain based on chain name. |"]]