Enum ResponseType
YanıtTürü
Chat uygulaması yanıtının türünü temsil eden bir enum.
Yalnızca Google Chat uygulamaları için kullanılabilir. Google Workspace eklentilerinde kullanılamaz.
Bir enum'u çağırmak için üst sınıfını, adını ve özelliğini çağırırsınız. Örneğin,
CardService.Type.DIALOG
.
Özellikler
Mülk | Tür | Açıklama |
TYPE_UNSPECIFIED | Enum | NEW_MESSAGE olarak işlenen varsayılan tür. |
NEW_MESSAGE | Enum | Konuda yeni bir ileti olarak yayınlayın. |
UPDATE_MESSAGE | Enum | Chat uygulamasının mesajını güncelleyin. Buna yalnızca ileti gönderen türünün BOT olduğu bir CARD_CLICKED etkinliğinde izin verilir. |
UPDATE_USER_MESSAGE_CARDS | Enum | Kullanıcının mesajındaki kartları güncelleyin. Buna yalnızca eşleşen bir URL'ye sahip MESSAGE etkinliğine veya mesaj gönderen türünün HUMAN olduğu bir CARD_CLICKED etkinliğine yanıt olarak izin verilir. Metin yoksayılır. |
REQUEST_CONFIG | Enum | Kullanıcıdan gizli olarak ek kimlik doğrulaması veya yapılandırma yapmasını isteyin. |
DIALOG | Enum | Bir iletişim kutusu gösterir. |
UPDATE_WIDGET | Enum | Widget metni otomatik tamamlama seçenekleri sorgusu. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-30 UTC.
[null,null,["Son güncelleme tarihi: 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"]]