Enum ResponseType
ResponseType
enum שמייצג את סוג התגובה מאפליקציית Chat.
האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CardService.Type.DIALOG
.
מאפיינים
נכס | סוג | תיאור |
TYPE_UNSPECIFIED | Enum | סוג ברירת המחדל שמטופל כ-NEW_MESSAGE . |
NEW_MESSAGE | Enum | מפרסמים הודעה חדשה בנושא. |
UPDATE_MESSAGE | Enum | מעדכנים את ההודעה באפליקציית Chat. אפשר לעשות זאת רק באירוע CARD_CLICKED שבו סוג השולח של ההודעה הוא BOT . |
UPDATE_USER_MESSAGE_CARDS | Enum | עדכון הכרטיסים בהודעה של משתמש. הדבר מותר רק בתגובה לאירוע MESSAGE עם כתובת URL תואמת, או לאירוע CARD_CLICKED שבו סוג השולח של ההודעה הוא HUMAN . המערכת מתעלמת מהטקסט. |
REQUEST_CONFIG | Enum | לבקש מהמשתמש לבצע אימות או הגדרה נוספים באופן פרטי. |
DIALOG | Enum | הצגת תיבת דו-שיח. |
UPDATE_WIDGET | Enum | שאילתה של אפשרויות להשלמה אוטומטית של טקסט בווידג'ט. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-30 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]