Package apps.extensions.markup
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ChatClientDataSourceMarkup
สําหรับวิดเจ็ต SelectionInput
ที่ใช้เมนูแบบเลือกหลายรายการ แหล่งข้อมูลจาก Google Chat แหล่งข้อมูลจะป้อนข้อมูลรายการตัวเลือกสำหรับเมนูแบบเลือกหลายรายการ ตัวอย่างเช่น ผู้ใช้สามารถเลือกพื้นที่ทำงานใน Google Chat ของตน
พร้อมใช้งานสำหรับแอป Google Chat และไม่พร้อมใช้งานสำหรับส่วนเสริม Google Workspace
ช่อง |
ฟิลด์สหภาพ source แหล่งข้อมูล Google Chat source ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น |
space_data_source |
SpaceDataSource
พื้นที่ใน Google Chat ที่ผู้ใช้เป็นสมาชิก
|
SpaceDataSource
แหล่งข้อมูลที่ป้อนข้อมูลพื้นที่ใน Google Chat เป็นรายการตัวเลือกสำหรับเมนูแบบเลือกหลายรายการ แสดงเฉพาะพื้นที่ทำงานที่ผู้ใช้เป็นสมาชิก
พร้อมใช้งานสำหรับแอป Google Chat และไม่พร้อมใช้งานสำหรับส่วนเสริม Google Workspace
ช่อง |
default_to_current_space |
bool
หากตั้งค่าเป็น true เมนูการเลือกหลายรายการจะเลือกพื้นที่ใน Google Chat ปัจจุบันเป็นรายการเริ่มต้น
|
HostAppDataSourceMarkup
สําหรับวิดเจ็ต SelectionInput
ที่ใช้เมนูแบบเลือกหลายรายการ แหล่งข้อมูลจากแอปพลิเคชัน Google Workspace แหล่งข้อมูลจะป้อนข้อมูลรายการตัวเลือกสำหรับเมนูแบบเลือกหลายรายการ
พร้อมใช้งานสำหรับแอป Google Chat และไม่พร้อมใช้งานสำหรับส่วนเสริม Google Workspace
ช่อง |
ฟิลด์สหภาพ data_source แอปพลิเคชัน Google Workspace ที่แสดงรายการสำหรับเมนูแบบเลือกหลายรายการ data_source ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น |
chat_data_source |
ChatClientDataSourceMarkup
แหล่งข้อมูลจาก Google Chat
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# Package apps.extensions.markup\n\nIndex\n-----\n\n- [ChatClientDataSourceMarkup](/workspace/chat/api/reference/rpc/apps.extensions.markup#apps.extensions.markup.ChatClientDataSourceMarkup) (message)\n- [ChatClientDataSourceMarkup.SpaceDataSource](/workspace/chat/api/reference/rpc/apps.extensions.markup#apps.extensions.markup.ChatClientDataSourceMarkup.SpaceDataSource) (message)\n- [HostAppDataSourceMarkup](/workspace/chat/api/reference/rpc/apps.extensions.markup#apps.extensions.markup.HostAppDataSourceMarkup) (message)\n\nChatClientDataSourceMarkup\n--------------------------\n\nFor a [`SelectionInput`](/workspace/chat/api/reference/rpc/google.apps.card.v1#google.apps.card.v1.SelectionInput) widget that uses a multiselect menu, a data source from Google Chat. The data source populates selection items for the multiselect menu. For example, a user can select Google Chat spaces that they're a member of.\n\nAvailable for Google Chat apps and unavailable for Google Workspace add-ons.\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `source`. The Google Chat data source. `source` can be only one of the following: ||\n| `space_data_source` | [SpaceDataSource](/workspace/chat/api/reference/rpc/apps.extensions.markup#apps.extensions.markup.ChatClientDataSourceMarkup.SpaceDataSource) Google Chat spaces that the user is a member of. |\n\nSpaceDataSource\n---------------\n\nA data source that populates Google Chat spaces as selection items for a multiselect menu. Only populates spaces that the user is a member of.\n\nAvailable for Google Chat apps and unavailable for Google Workspace add-ons.\n\n| Fields ||\n|----------------------------|------------------------------------------------------------------------------------------------------------|\n| `default_to_current_space` | `bool` If set to `true`, the multiselect menu selects the current Google Chat space as an item by default. |\n\nHostAppDataSourceMarkup\n-----------------------\n\nFor a [`SelectionInput`](/workspace/chat/api/reference/rpc/google.apps.card.v1#google.apps.card.v1.SelectionInput) widget that uses a multiselect menu, a data source from a Google Workspace application. The data source populates selection items for the multiselect menu.\n\nAvailable for Google Chat apps and unavailable for Google Workspace add-ons.\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `data_source`. The Google Workspace application that populates items for a multiselect menu. `data_source` can be only one of the following: ||\n| `chat_data_source` | [ChatClientDataSourceMarkup](/workspace/chat/api/reference/rpc/apps.extensions.markup#apps.extensions.markup.ChatClientDataSourceMarkup) A data source from Google Chat. |"]]