Enum ResponseType
Antworttyp
Ein Enum, das den Typ der Chat-App-Antwort darstellt.
Nur für Google Chat-Apps verfügbar. Nicht verfügbar für Google Workspace-Add-ons.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.Type.DIALOG
.
Attribute
Attribut | Typ | Beschreibung |
TYPE_UNSPECIFIED | Enum | Standardtyp, der als NEW_MESSAGE behandelt wird. |
NEW_MESSAGE | Enum | Posten Sie eine neue Nachricht im Thema. |
UPDATE_MESSAGE | Enum | Aktualisieren Sie die Nachricht in der Chat App. Dies ist nur bei einem CARD_CLICKED -Ereignis zulässig, bei dem der Typ des Nachrichtensenders BOT ist. |
UPDATE_USER_MESSAGE_CARDS | Enum | Karten in der Nachricht eines Nutzers aktualisieren Dies ist nur als Antwort auf ein MESSAGE -Ereignis mit einer übereinstimmenden URL oder ein CARD_CLICKED -Ereignis zulässig, bei dem der Absendertyp der Nachricht HUMAN ist. Text wird ignoriert. |
REQUEST_CONFIG | Enum | Bitten Sie den Nutzer privat um eine zusätzliche Authentifizierung oder Konfiguration. |
DIALOG | Enum | Ein Dialogfeld wird angezeigt. |
UPDATE_WIDGET | Enum | Abfrage zu den Optionen für die automatische Vervollständigung von Widget-Text |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-30 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-01-30 (UTC)."],[[["`ResponseType` is an enum used to define the type of response a Google Chat app sends."],["It is exclusively for Google Chat apps and is not applicable to Google Workspace Add-ons."],["`ResponseType` properties specify actions like posting new messages, updating existing ones, requesting user configuration, and displaying dialogs."],["Updating cards on user messages or the Chat app's message depends on specific event triggers and sender types."],["To call an enum property, use its parent class, name, and the specific property (e.g., `CardService.Type.DIALOG`)."]]],["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"]]