EditorFileScopeActionResponseBuilder

A builder for `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response` objects.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response` | Builds the current Editor action response. |
| `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder#requestFileScopeForActiveDocument()` | `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder#` | Requests the `drive.file` scope for the current active Editor document. |

## Detailed documentation

### `build()`

Builds the current Editor action response.

#### Return


`https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response` --- A validated `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response`.

*** ** * ** ***

### `requestFileScopeForActiveDocument()`

Requests the `drive.file` scope for the current active Editor document.

```javascript
// Display a permissions dialog to the user, requesting `drive.file` scope for
// the current document on behalf of this add-on.
CardService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();
```

Note: To call this method, you must add the `drive.file` scope to the add-on's
manifest.

#### Return


`https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder#` --- This object, for chaining.