CalendarEventActionResponseBuilder

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

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#addAttachments(Attachment)` | `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#` | Specifies that the response should add the attachments to the Calendar event when the associated UI action is taken. |
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#addAttendees(String)` | `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#` | Specifies that the response should add the indicated attendees to the Calendar event when the associated UI action is taken. |
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response` | Builds the current Calendar event action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#setConferenceData(ConferenceData)` | `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder#` | Specifies that the response should set the indicated conference data to the Calendar event when the associated UI action is taken. |

## Detailed documentation

### `addAttachments(attachments)`

Specifies that the response should add the attachments to the Calendar event when the
associated UI action is taken.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `attachments` | `https://developers.google.com/apps-script/reference/card-service/attachment` | An array of `https://developers.google.com/apps-script/reference/card-service/attachment`s to add. |

#### Return


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

*** ** * ** ***

### `addAttendees(emails)`

Specifies that the response should add the indicated attendees to the Calendar event when the
associated UI action is taken.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `emails` | `String[]` | An array of email addresses to add to the event. |

#### Return


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

#### Throws


[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) --- If too many attendees have been added.

*** ** * ** ***

### `build()`

Builds the current Calendar event action response and validates it.

#### Return


`https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response` --- A validated `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response`.

#### Throws


[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) --- If the constructed Calendar event action response isn't valid.

*** ** * ** ***

### `setConferenceData(conferenceData)`

Specifies that the response should set the indicated conference data to the Calendar event when
the associated UI action is taken.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `conferenceData` | `https://developers.google.com/apps-script/reference/conference-data/conference-data.html` | Conference data to set to the event, created by an add on. |

#### Return


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