REST Resource: chains
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Chain
チェーンとは、ビジネス拠点を提携できるブランドです。
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
このチェーンに含まれるビジネスの数です。
|
ChainName
JSON 表現 |
{
"displayName": string,
"languageCode": string
} |
フィールド |
displayName |
string
このチェーンの表示名。
|
languageCode |
string
名前の言語の BCP 47 コード。
|
ChainUrl
JSON 表現 |
{
"url": string
} |
フィールド |
url |
string
このチェーンの URL。
|
メソッド |
|
指定されたチェーンを取得します。 |
|
チェーン名に基づいてチェーンを検索します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。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. |"]]