2024 年 7 月 31 日をもって、Google ビジネス メッセージはご利用いただけなくなります。詳しくは
こちらをご覧ください。
Representative
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
メッセージを送信した担当者(人間または chatbot)に関する詳細。
JSON 表現 |
{
"displayName": string,
"avatarImage": string,
// Union field representative can be only one of the following:
"representativeType": enum (RepresentativeType )
// End of list of possible types for union field representative .
} |
フィールド |
displayName |
string
省略可。代表者の名前。
|
avatarImage |
string
省略可。担当者のアバター画像(一般公開 URL)。円で表示されます。 アバター画像では、代表者が写っている写真やイラストなど、個人情報は使用できません。アイコン、ロゴ、架空のイラストなど、個人を特定できない画像を使用してください。メッセージに使用したアバター画像の変更や削除はできません。 画像は 1,024 x 1,024 ピクセルで、ファイルサイズは最大 50 KB です。
|
共用体フィールド representative 。タイプによって識別される代表者。representative は次のいずれかになります。 |
representativeType |
enum (RepresentativeType )
必須。代表者のタイプ。
|
RepresentativeType
列挙型 |
REPRESENTATIVE_TYPE_UNSPECIFIED |
指定されていない代表的なタイプ。 |
BOT |
bot 担当者 |
HUMAN |
人間の代表。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThis document details the JSON structure for providing information about the representative (human or chatbot) sending a message.\u003c/p\u003e\n"],["\u003cp\u003eThe structure includes fields for display name, avatar image, and representative type (bot or human).\u003c/p\u003e\n"],["\u003cp\u003eThe avatar image should be a publicly accessible URL, ideally an icon or logo, with specific size and format restrictions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erepresentativeType\u003c/code\u003e field is required and indicates whether the sender is a bot or a human.\u003c/p\u003e\n"]]],[],null,["# Representative\n\nDetails about the representative (human or chatbot) that sent the message.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"displayName\": string, \"avatarImage\": string, // Union field `representative` can be only one of the following: \"representativeType\": enum (/business-communications/business-messages/reference/rest/v1/Representative#RepresentativeType) // End of list of possible types for union field `representative`. } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` Optional. Name of the representative. |\n| `avatarImage` | `string` Optional. The representative's avatar image, as a publicly available URL. Displays as a circle. Avatar images don't support personal information, such as depictions of representatives in photographs or illustrations. Use images that don't identify individuals, such as icons, logos, or fictitious illustrations. After an avatar image is used in a message, the image can't be modified or deleted. Images must be 1024x1024 px and have a maximum files size of 50 KB. |\n| Union field `representative`. A representative, identified by its type. `representative` can be only one of the following: ||\n| `representativeType` | `enum (`[RepresentativeType](/business-communications/business-messages/reference/rest/v1/Representative#RepresentativeType)`)` Required. The type of representative. |\n\nRepresentativeType\n------------------\n\nRepresentative type\n\n| Enums ||\n|-----------------------------------|----------------------------------|\n| `REPRESENTATIVE_TYPE_UNSPECIFIED` | Unspecified representative type. |\n| `BOT` | Bot representative. |\n| `HUMAN` | Human representative. |"]]