Class DriveItemsSelectedActionResponseBuilder
Documentazione dettagliata
requestFileScope(itemId)
Specifica che la risposta richiede l'ambito del file per l'elemento pertinente al contesto in Drive.
Parametri
Nome | Tipo | Descrizione |
itemId | String | ID dell'elemento di Drive per cui richiedere l'ambito dei file. |
Invio
DriveItemsSelectedActionResponseBuilder
: questo oggetto, per l'accodamento.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-12-03 UTC.
[null,null,["Ultimo aggiornamento 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"]]