Class ChatClientDataSource
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
চ্যাট ক্লায়েন্ট ডেটা উৎস একটি Selection Input
উইজেটের জন্য যা একটি মাল্টিসিলেক্ট মেনু ব্যবহার করে, Google চ্যাটের একটি ডেটা উৎস৷ ডাটা সোর্স মাল্টিসিলেক্ট মেনুর জন্য নির্বাচন আইটেমগুলি পূরণ করে। উদাহরণস্বরূপ, একজন ব্যবহারকারী Google চ্যাট স্পেস নির্বাচন করতে পারেন যেগুলির সদস্য তারা৷
const chatSpaceDataSource =
CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);
const chatClientDataSource =
CardService.newChatClientDataSource().setSpaceDataSource(
chatSpaceDataSource);
শুধুমাত্র Google Chat অ্যাপের জন্য উপলব্ধ। Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ নয়।
বিস্তারিত ডকুমেন্টেশন
set Space Data Source(spaceDataSource)
একটি ডেটা উৎস যা একটি বহুনির্বাচন মেনুর জন্য নির্বাচন আইটেম হিসাবে Google চ্যাট স্পেস পূরণ করে। শুধুমাত্র স্পেস পপুলেট করে যার ব্যবহারকারী একজন সদস্য।
const chatSpaceDataSource =
CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);
const chatClientDataSource =
CardService.newChatClientDataSource().setSpaceDataSource(
chatSpaceDataSource);
শুধুমাত্র Google Chat অ্যাপের জন্য উপলব্ধ। Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ নয়।
পরামিতি
প্রত্যাবর্তন
Chat Client Data Source
— এই অবজেক্ট, চেইনিংয়ের জন্য।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eChatClientDataSource\u003c/code\u003e is used for multiselect menus in Google Chat apps, allowing users to select items like Google Chat spaces they are members of.\u003c/p\u003e\n"],["\u003cp\u003eThis data source relies on a \u003ccode\u003eChatSpaceDataSource\u003c/code\u003e to populate the selectable spaces in the menu.\u003c/p\u003e\n"],["\u003cp\u003eIt is exclusively available for Google Chat apps and cannot be utilized in Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetSpaceDataSource\u003c/code\u003e method configures the data source for populating Google Chat spaces in the selection menu, limited to spaces where the user is a member.\u003c/p\u003e\n"]]],["`ChatClientDataSource` is a data source for multiselect menus in Google Chat apps. It populates selection items with Google Chat spaces a user belongs to. The `setSpaceDataSource` method configures this behavior, taking a `ChatSpaceDataSource` as input. Using `CardService.newChatClientDataSource()` allows the setting up the data source and `CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true)` allows the default current space. The data is only available for Google Chat apps, not Google Workspace add-ons.\n"],null,["# Class ChatClientDataSource\n\nChatClientDataSource\n\nFor a [SelectionInput](/apps-script/reference/card-service/selection-input) widget that uses a multiselect menu, a data source from Google Chat.\nThe data source populates selection items for the multiselect menu. For example, a user can\nselect Google Chat spaces that they're a member of.\n\n```javascript\nconst chatSpaceDataSource =\n CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);\n\nconst chatClientDataSource =\n CardService.newChatClientDataSource().setSpaceDataSource(\n chatSpaceDataSource);\n```\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------------------------|---------------------------|--------------------------------------------------------------------------------------------|\n| [setSpaceDataSource(spaceDataSource)](#setSpaceDataSource(ChatSpaceDataSource)) | [ChatClientDataSource](#) | A data source that populates Google Chat spaces as selection items for a multiselect menu. |\n\nDetailed documentation\n----------------------\n\n### `set``Space``Data``Source(spaceDataSource)`\n\nA data source that populates Google Chat spaces as selection items for a multiselect menu. Only\npopulates spaces that the user is a member of.\n\n```javascript\nconst chatSpaceDataSource =\n CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);\n\nconst chatClientDataSource =\n CardService.newChatClientDataSource().setSpaceDataSource(\n chatSpaceDataSource);\n```\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------------------|-----------------------------------------------------------------------------------|----------------------------|\n| `space``Data``Source` | [ChatSpaceDataSource](/apps-script/reference/card-service/chat-space-data-source) | The data source to be set. |\n\n#### Return\n\n\n[ChatClientDataSource](#) --- This object, for chaining."]]