Class DriveItemsSelectedActionResponseBuilder
Szczegółowa dokumentacja
requestFileScope(itemId)
Określa, że odpowiedź zawiera żądanie zakresu pliku dla elementu na Dysku, który jest istotny w kontekście.
Parametry
Nazwa | Typ | Opis |
itemId | String | Identyfikator elementu na Dysku, którego dotyczy żądanie zakresu pliku. |
Powrót
DriveItemsSelectedActionResponseBuilder
– ten obiekt do łańcucha.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-03 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]