Enum ResponseType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
ResponseType is an enum representing the type of Chat app response, exclusively for Google Chat apps.
ResponseType is called by referencing its parent class, name, and property (e.g.,
CardService.Type.DIALOG).Properties of ResponseType include
TYPE_UNSPECIFIED,NEW_MESSAGE,UPDATE_MESSAGE,UPDATE_USER_MESSAGE_CARDS,REQUEST_CONFIG,DIALOG, andUPDATE_WIDGET.Each property has a specific use case, such as posting a new message, updating an existing message, or presenting a dialog.
An enum that represents the type of Chat app response.
Only available for Google Chat apps. Not available for Google Workspace add-ons.
To call an enum, you call its parent class, name, and property. For example,CardService.Type.DIALOG.
Properties
| Property | Type | Description |
|---|---|---|
TYPE_UNSPECIFIED | Enum | Default type that's handled asNEW_MESSAGE. |
NEW_MESSAGE | Enum | Post as a new message in the topic. |
UPDATE_MESSAGE | Enum | Update the Chat app's message. This is only permitted on aCARD_CLICKED event wherethe message sender type isBOT. |
UPDATE_USER_MESSAGE_CARDS | Enum | Update the cards on a user's message. This is only permitted as a response to aMESSAGE event with a matched URL, or aCARD_CLICKED event where the message sendertype isHUMAN. Text is ignored. |
REQUEST_CONFIG | Enum | Privately ask the user for additional authentication or configuration. |
DIALOG | Enum | Presents a dialog. |
UPDATE_WIDGET | Enum | Widget text autocomplete options query. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.