Class DriveItemsSelectedActionResponseBuilder
Tài liệu chi tiết
requestFileScope(itemId)
Chỉ định rằng phản hồi yêu cầu phạm vi tệp cho mục có liên quan theo ngữ cảnh trong Drive.
Tham số
Tên | Loại | Mô tả |
itemId | String | Mã của mục trên Drive mà bạn muốn yêu cầu phạm vi tệp. |
Cầu thủ trả bóng
DriveItemsSelectedActionResponseBuilder
– Đối tượng này, để tạo chuỗi.
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: 2024-12-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-03 UTC."],[[["`DriveItemsSelectedActionResponseBuilder` helps create responses for actions taken on selected Drive items within Google Workspace add-ons."],["It provides methods to build the response and request specific file access scopes, enhancing the add-on's functionality with Drive."],["`build()` finalizes the response, while `requestFileScope()` enables the add-on to request access to a specific Drive item, streamlining user interactions."]]],["The `DriveItemsSelectedActionResponseBuilder` creates `DriveItemsSelectedActionResponse` objects. It offers two primary actions: `build()`, which finalizes and returns the validated response object, and `requestFileScope(itemId)`, which designates a specific Drive item by its ID for which file scope is being requested. The `requestFileScope` method allows chaining, returning the builder object. These are used to specify actions in context to a Drive item.\n"]]