Class DriveItemsSelectedActionResponseBuilder
เอกสารประกอบโดยละเอียด
requestFileScope(itemId)
ระบุว่าการตอบกลับจะขอขอบเขตไฟล์สำหรับรายการที่เกี่ยวข้องตามบริบทในไดรฟ์
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
itemId | String | รหัสของรายการในไดรฟ์ที่จะขอขอบเขตไฟล์ |
รีเทิร์น
DriveItemsSelectedActionResponseBuilder
— ออบเจ็กต์นี้สําหรับการต่อเชื่อม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-03 UTC
[null,null,["อัปเดตล่าสุด 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"]]