Class DriveItemsSelectedActionResponseBuilder
Ayrıntılı dokümanlar
requestFileScope(itemId)
Yanıtın, Drive'daki bağlama uygun öğe için dosya kapsamı istediğini belirtir.
Parametreler
Ad | Tür | Açıklama |
itemId | String | Dosya kapsamı isteğinde bulunulacak Drive öğesinin kimliği. |
Return
DriveItemsSelectedActionResponseBuilder
: Zincirleme için bu nesne.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-12-03 UTC.
[null,null,["Son güncelleme tarihi: 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"]]