Class DriveItemsSelectedActionResponseBuilder
מסמכים מפורטים
requestFileScope(itemId)
מציין שהתגובה מבקשת היקף קובץ עבור הפריט הרלוונטי לפי הקשר ב-Drive.
פרמטרים
שם | סוג | תיאור |
itemId | String | המזהה של הפריט ב-Drive שעבורו רוצים לבקש הרשאת גישה ברמת הקובץ. |
חזרה
DriveItemsSelectedActionResponseBuilder
– האובייקט הזה, לצורך קישור.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]