Enum ResponseType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রতিক্রিয়ার ধরন একটি enum যা চ্যাট অ্যাপের প্রতিক্রিয়ার ধরণকে উপস্থাপন করে।
শুধুমাত্র Google Chat অ্যাপের জন্য উপলব্ধ। Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ নয়।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, CardService.Type.DIALOG
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
TYPE_UNSPECIFIED | Enum | ডিফল্ট প্রকার যা NEW_MESSAGE হিসাবে পরিচালনা করা হয়। |
NEW_MESSAGE | Enum | বিষয়ে একটি নতুন বার্তা হিসাবে পোস্ট করুন. |
UPDATE_MESSAGE | Enum | চ্যাট অ্যাপের মেসেজ আপডেট করুন। এটি শুধুমাত্র একটি CARD_CLICKED ইভেন্টে অনুমোদিত যেখানে বার্তা প্রেরকের ধরন BOT । |
UPDATE_USER_MESSAGE_CARDS | Enum | ব্যবহারকারীর বার্তায় কার্ডগুলি আপডেট করুন৷ এটি শুধুমাত্র একটি মিলিত URL সহ একটি MESSAGE ইভেন্টের প্রতিক্রিয়া হিসাবে বা একটি CARD_CLICKED ইভেন্টের প্রতিক্রিয়া হিসাবে অনুমোদিত যেখানে বার্তা প্রেরকের ধরনটি হল HUMAN ৷ টেক্সট উপেক্ষা করা হয়. |
REQUEST_CONFIG | Enum | ব্যক্তিগতভাবে ব্যবহারকারীকে অতিরিক্ত প্রমাণীকরণ বা কনফিগারেশনের জন্য জিজ্ঞাসা করুন। |
DIALOG | Enum | একটি সংলাপ উপস্থাপন করে। |
UPDATE_WIDGET | Enum | উইজেট পাঠ্য স্বয়ংসম্পূর্ণ বিকল্প ক্যোয়ারী। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eResponseType\u003c/code\u003e is an enum used to define the type of response a Google Chat app sends.\u003c/p\u003e\n"],["\u003cp\u003eIt is exclusively for Google Chat apps and is not applicable to Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResponseType\u003c/code\u003e properties specify actions like posting new messages, updating existing ones, requesting user configuration, and displaying dialogs.\u003c/p\u003e\n"],["\u003cp\u003eUpdating cards on user messages or the Chat app's message depends on specific event triggers and sender types.\u003c/p\u003e\n"],["\u003cp\u003eTo call an enum property, use its parent class, name, and the specific property (e.g., \u003ccode\u003eCardService.Type.DIALOG\u003c/code\u003e).\u003c/p\u003e\n"]]],["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"],null,["# Enum ResponseType\n\nResponseType\n\nAn enum that represents the type of Chat app response.\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Type.DIALOG`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | `Enum` | Default type that's handled as `NEW_MESSAGE`. |\n| `NEW_MESSAGE` | `Enum` | Post as a new message in the topic. |\n| `UPDATE_MESSAGE` | `Enum` | Update the Chat app's message. This is only permitted on a `CARD_CLICKED` event where the message sender type is `BOT`. |\n| `UPDATE_USER_MESSAGE_CARDS` | `Enum` | Update the cards on a user's message. This is only permitted as a response to a `MESSAGE` event with a matched URL, or a `CARD_CLICKED` event where the message sender type is `HUMAN`. Text is ignored. |\n| `REQUEST_CONFIG` | `Enum` | Privately ask the user for additional authentication or configuration. |\n| `DIALOG` | `Enum` | Presents a dialog. |\n| `UPDATE_WIDGET` | `Enum` | Widget text autocomplete options query. |"]]