我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
Representative
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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
可选。代表人的头像图片(采用可公开访问的网址)。显示为圆形。 头像图片不支持个人信息,例如照片或插图中描绘的代表人形象。使用不会识别个人身份的图片,例如图标、徽标或虚构插图。头像图片一经在信息中使用,便无法修改或删除。 图片尺寸必须为 1024x1024 像素,且文件大小上限为 50 KB。
|
联合字段 representative 。根据类型标识的代表。representative 只能是下列其中一项: |
representativeType |
enum (RepresentativeType )
必需。代表的类型。
|
RepresentativeType
枚举 |
REPRESENTATIVE_TYPE_UNSPECIFIED |
未指定的代表类型。 |
BOT |
聊天机器人代表。 |
HUMAN |
人工代表。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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. |"]]