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 的資料來源。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],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. |"]]