Package apps.extensions.markup
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
ChatClientDataSourceMarkup
Đối với tiện ích SelectionInput
sử dụng trình đơn nhiều lựa chọn, nguồn dữ liệu từ Google Chat. Nguồn dữ liệu sẽ điền các mục lựa chọn cho trình đơn đa lựa chọn. Ví dụ: người dùng có thể chọn những không gian Google Chat mà họ là thành viên.
Có sẵn cho các ứng dụng Google Chat và không có sẵn cho các tiện ích bổ sung của Google Workspace.
Trường |
Trường hợp hợp nhất source . Nguồn dữ liệu Google Chat. source chỉ có thể là một trong những loại sau: |
space_data_source |
SpaceDataSource
Các không gian Google Chat mà người dùng là thành viên.
|
SpaceDataSource
Nguồn dữ liệu điền sẵn các không gian trên Google Chat làm mục lựa chọn cho trình đơn nhiều lựa chọn. Chỉ điền những không gian mà người dùng là thành viên.
Có sẵn cho các ứng dụng Google Chat và không có sẵn cho các tiện ích bổ sung của Google Workspace.
Trường |
default_to_current_space |
bool
Nếu được đặt thành true , trình đơn chọn nhiều mục sẽ chọn không gian Google Chat hiện tại làm một mục theo mặc định.
|
HostAppDataSourceMarkup
Đối với tiện ích SelectionInput
sử dụng trình đơn đa lựa chọn, nguồn dữ liệu từ một ứng dụng Google Workspace. Nguồn dữ liệu sẽ điền các mục lựa chọn cho trình đơn đa lựa chọn.
Có sẵn cho các ứng dụng Google Chat và không có sẵn cho các tiện ích bổ sung của Google Workspace.
Trường |
Trường hợp hợp nhất data_source . Ứng dụng Google Workspace điền sẵn các mục cho trình đơn nhiều lựa chọn. data_source chỉ có thể là một trong những loại sau: |
chat_data_source |
ChatClientDataSourceMarkup
Nguồn dữ liệu từ Google Chat.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]