Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum ResponseType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ResponseType
表示 Chat 应用响应类型的枚举。
仅适用于 Google Chat 应用。不适用于 Google Workspace 加购项。
如需调用枚举,请调用其父类、名称和属性。例如,
CardService.Type.DIALOG。
属性
| 属性 | 类型 | 说明 |
TYPE_UNSPECIFIED | Enum | 默认类型,作为 NEW_MESSAGE 处理。 |
NEW_MESSAGE | Enum | 在主题中以新消息的形式发布。 |
UPDATE_MESSAGE | Enum | 更新 Chat 应用的消息。仅当 CARD_CLICKED 事件的消息发送者类型为 BOT 时,才允许执行此操作。 |
UPDATE_USER_MESSAGE_CARDS | Enum | 更新用户消息中的卡片。仅当作为对具有匹配网址的 MESSAGE 事件或消息发送者类型为 HUMAN 的 CARD_CLICKED 事件的响应时,才允许执行此操作。系统会忽略文本。 |
REQUEST_CONFIG | Enum | 私下要求用户进行额外的身份验证或配置。 |
DIALOG | Enum | 显示对话框。 |
UPDATE_WIDGET | Enum | 微件文本自动补全选项查询。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-13。
[null,null,["最后更新时间 (UTC):2026-04-13。"],[],["The `ResponseType` enum defines how a Google Chat app responds. Available responses include `NEW_MESSAGE` (post a new message), `UPDATE_MESSAGE` (update the app's message, only for bot-initiated events), and `UPDATE_USER_MESSAGE_CARDS` (update cards on a user's message for human or URL-matched events). Other options: `REQUEST_CONFIG` (ask for user config), `DIALOG` (present a dialog), `UPDATE_WIDGET` (widget autocomplete query), and the default `TYPE_UNSPECIFIED` which is handled as `NEW_MESSAGE`.\n"]]