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 इवेंट या CARD_CLICKED इवेंट के जवाब के तौर पर है. हालांकि, इसके लिए ज़रूरी है कि मैसेज भेजने वाले का टाइप HUMAN हो. टेक्स्ट को अनदेखा कर दिया जाता है. |
REQUEST_CONFIG | Enum | उपयोगकर्ता से निजी तौर पर पुष्टि करने या कॉन्फ़िगरेशन करने के लिए कहें. |
DIALOG | Enum | एक डायलॉग दिखाता है. |
UPDATE_WIDGET | Enum | विजेट के टेक्स्ट के लिए, अपने-आप पूरा होने वाले विकल्पों की क्वेरी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]