Card Service

This service allows scripts to configure and build card and widget components
and behaviors for a UI. The UI structures you build with this service are
automatically available in both desktop and mobile devices, so you don't
need to develop separate UIs for both.

> [!NOTE]
> You can use CardService to build card-based UIs for [Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/card-interfaces) and [Google Chat app messages](https://developers.google.com/chat/messages-overview).

## Classes

| Name | Brief description |
|---|---|
| `https://developers.google.com/apps-script/reference/card-service/action` | An action that enables interactivity within UI elements. |
| `https://developers.google.com/apps-script/reference/card-service/action-response` | The response object that may be returned from a callback function (e.g., a form response handler) to perform one or more actions on the client. |
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/action-status` | A class that represents the status for a request to either invoke or submit a dialog. |
| `https://developers.google.com/apps-script/reference/card-service/attachment` | Represents an attachment created by an add-on. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-action` | An authorization action that will send the user to the AuthorizationUrl when clicked. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception` | An error that can be returned to trigger an authorization card to be shown to the user. |
| `https://developers.google.com/apps-script/reference/card-service/border-style` | A class that represents a complete border style that can be applied to widgets. |
| `https://developers.google.com/apps-script/reference/card-service/border-type` | An enum that represents the border types that can be applied to widgets. |
| `https://developers.google.com/apps-script/reference/card-service/button` | A base class for all buttons. |
| `https://developers.google.com/apps-script/reference/card-service/button-set` | Holds a set of `https://developers.google.com/apps-script/reference/card-service/button` objects that are displayed in a row. |
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response` | Represents a response that makes changes to the calendar event that the user is currently editing in reaction to an action taken in the UI, such as a button click. |
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/card` | A context [card](https://developers.google.com/gmail/add-ons/concepts/cards) that represents a single view in the UI. |
| `https://developers.google.com/apps-script/reference/card-service/card-action` | A clickable menu item that is added to the card header menu. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/card` objects. |
| `https://developers.google.com/apps-script/reference/card-service/card-header` | The header of a `https://developers.google.com/apps-script/reference/card-service/card`. |
| `https://developers.google.com/apps-script/reference/card-service/card-section` | A card section holds groups of widgets and provides visual separation between them. |
| `https://developers.google.com/apps-script/reference/card-service/card-service` | CardService provides the ability to create generic cards used across different Google extensibility products, such as [Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/how-tos/building-workspace-addons). |
| `https://developers.google.com/apps-script/reference/card-service/card-with-id` | A builder for `https://developers.google.com/apps-script/reference/card-service/card-with-id` objects. |
| `https://developers.google.com/apps-script/reference/card-service/carousel` | Carousel, also known as slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to the previous or next widget. |
| `https://developers.google.com/apps-script/reference/card-service/carousel-card` | A card that can be displayed as a carousel item. |
| `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | A class that represents the parameters that a Chat app can use to configure how its response is posted. |
| `https://developers.google.com/apps-script/reference/card-service/chat-client-data-source` | For a `https://developers.google.com/apps-script/reference/card-service/selection-input` widget that uses a multiselect menu, a data source from Google Chat. |
| `https://developers.google.com/apps-script/reference/card-service/chat-response` | The response object for a card message in Google Chat. |
| `https://developers.google.com/apps-script/reference/card-service/chat-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/chat-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/chat-space-data-source` | A data source that populates Google Chat spaces as selection items for a multiselect menu. |
| `https://developers.google.com/apps-script/reference/card-service/chip` | A `https://developers.google.com/apps-script/reference/card-service/chip` with an icon and text label. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list` | Holds a set of `https://developers.google.com/apps-script/reference/card-service/chip` objects that are displayed in a row, wrapping to the next line to horizontal scrollable. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list-layout` | An enum that specifies the layout for `https://developers.google.com/apps-script/reference/card-service/chip-list`. |
| `https://developers.google.com/apps-script/reference/card-service/collapse-control` | A customizable collapse and expand control. |
| `https://developers.google.com/apps-script/reference/card-service/column` | A column. |
| `https://developers.google.com/apps-script/reference/card-service/columns` | The `https://developers.google.com/apps-script/reference/card-service/columns` widget displays up to 2 columns in a card or dialog. |
| `https://developers.google.com/apps-script/reference/card-service/common-data-source` | A data source shared by all Google Workspace applications. |
| `https://developers.google.com/apps-script/reference/card-service/common-widget-action` | Defines actions that don't involve evaluations, such as updating widget visibility. |
| `https://developers.google.com/apps-script/reference/card-service/compose-action-response` | The response object that may be returned from a callback method for compose action in a [Gmail add-on](https://developers.google.com/gmail/add-ons). |
| `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/compose-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/composed-email-type` | An enum value that specifies whether the composed email is a standalone or reply draft. |
| `https://developers.google.com/apps-script/reference/card-service/condition` | A condition used to run an event action as part of [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation). |
| `https://developers.google.com/apps-script/reference/card-service/content-type` | An enum value that specifies the content type of the content generated by a `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response`. |
| `https://developers.google.com/apps-script/reference/card-service/data-source-config` | A configuration object that helps configure the data sources for a widget. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker` | An input field that allows inputing a date. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | An input field that allows users to input a date and time. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text` | A widget that displays text with optional decorations. |
| `https://developers.google.com/apps-script/reference/card-service/dialog` | For details, see [Open interactive dialogs](https://developers.google.com/chat/how-tos/dialogs) in the Google Chat documentation. |
| `https://developers.google.com/apps-script/reference/card-service/dialog-action` | A builder for `https://developers.google.com/apps-script/reference/card-service/dialog-action` objects. |
| `https://developers.google.com/apps-script/reference/card-service/display-style` | An enum that defines the display style of card. |
| `https://developers.google.com/apps-script/reference/card-service/divider` | A horizontal divider. |
| `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec` | Holds a set of `https://developers.google.com/apps-script/reference/card-service/drive-item-type` objects that are displayed in a row. |
| `https://developers.google.com/apps-script/reference/card-service/drive-item-type` | An enum define the file type for a drive item. |
| `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response` | Represents a response that makes changes to Drive while Drive items are selected and in reaction to an action taken in the UI, such as a button click. |
| `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response` | Makes changes to an Editor, such as Google Docs, Sheets, or Slides in reaction to an action taken in the UI. |
| `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/event-action` | An EventAction to run when a [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) condition is met. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data` | The expression data that is used to evaluate an expression. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data-action` | Actions for [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) . |
| `https://developers.google.com/apps-script/reference/card-service/expression-data-action-type` | An enum that represents the type of the [expression data action](https://developers.google.com/apps-script/reference/card-service/expression-data-action). |
| `https://developers.google.com/apps-script/reference/card-service/expression-data-condition` | Represents a [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) result. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data-condition-type` | Represents whether the [CEL expression](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) evaluated successfully. |
| `https://developers.google.com/apps-script/reference/card-service/fixed-footer` | The fixed footer shown at the bottom of a `https://developers.google.com/apps-script/reference/card-service/card`. |
| `https://developers.google.com/apps-script/reference/card-service/grid` | An organized grid to display a collection of grid items. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item` | The items users interact with within a grid widget. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item-layout` | An enum that defines the image and text style of a GridItem. |
| `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment` | An enum that specifies the horizontal alignment of a widget. |
| `https://developers.google.com/apps-script/reference/card-service/horizontal-size-style` | An enum that sets how widgets fill the space of a column. |
| `https://developers.google.com/apps-script/reference/card-service/host-app-data-source` | For a `https://developers.google.com/apps-script/reference/card-service/selection-input` widget that uses a multiselect menu, a data source from a Google Workspace application. |
| `https://developers.google.com/apps-script/reference/card-service/icon` | Predefined icons that can be used in various UI objects, such as `https://developers.google.com/apps-script/reference/card-service/image-button` or `https://developers.google.com/apps-script/reference/card-service/decorated-text` widgets. |
| `https://developers.google.com/apps-script/reference/card-service/icon-image` | A predefined icon, a material design icon, or an icon from a URL with a customizable crop style. |
| `https://developers.google.com/apps-script/reference/card-service/image` | A widget that shows a single image. |
| `https://developers.google.com/apps-script/reference/card-service/image-button` | A `https://developers.google.com/apps-script/reference/card-service/image-button` with an image displayed on it. |
| `https://developers.google.com/apps-script/reference/card-service/image-button-style` | An enum that specifies the style for `https://developers.google.com/apps-script/reference/card-service/image-button`. |
| `https://developers.google.com/apps-script/reference/card-service/image-component` | An image component that can be added to grid items. |
| `https://developers.google.com/apps-script/reference/card-service/image-crop-style` | A class that represents a crop style that can be applied to image components. |
| `https://developers.google.com/apps-script/reference/card-service/image-crop-type` | An enum that represents the crop styles applied to image components. |
| `https://developers.google.com/apps-script/reference/card-service/image-style` | An enum that defines an image cropping style. |
| `https://developers.google.com/apps-script/reference/card-service/input-type` | An enum that defines the input type of the widget. |
| `https://developers.google.com/apps-script/reference/card-service/interaction` | An enum type that specifies what to do in response to an interaction with a user, such as a user clicking a button in a card message. |
| `https://developers.google.com/apps-script/reference/card-service/key-value` | This class is deprecated. |
| `https://developers.google.com/apps-script/reference/card-service/link-preview` | Card action that displays a link preview card and smart chip in the host app. |
| `https://developers.google.com/apps-script/reference/card-service/load-indicator` | An enum type that specifies the type of loading or progress indicator to display while an `https://developers.google.com/apps-script/reference/card-service/action` is being processed. |
| `https://developers.google.com/apps-script/reference/card-service/material-icon` | An object that supports all [Google Font Icons](https://fonts.google.com/icons). |
| `https://developers.google.com/apps-script/reference/card-service/navigation` | A helper object that controls card navigation. |
| `https://developers.google.com/apps-script/reference/card-service/notification` | A notification shown to the user as a response to interacting with a UI element. |
| `https://developers.google.com/apps-script/reference/card-service/on-close` | An enum that specifies what to do when a URL opened through an `https://developers.google.com/apps-script/reference/card-service/open-link` is closed. |
| `https://developers.google.com/apps-script/reference/card-service/open-as` | An enum that specifies how to open a URL. |
| `https://developers.google.com/apps-script/reference/card-service/open-link` | Represents an action to open a link with some options. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu` | Holds a list of `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` objects that are displayed in a pop-up menu. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | An `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` with an icon and text label. |
| `https://developers.google.com/apps-script/reference/card-service/platform-data-source` | For a `https://developers.google.com/apps-script/reference/card-service/selection-input` widget that uses a multiselect menu, a data source from Google Workspace. |
| `https://developers.google.com/apps-script/reference/card-service/response-type` | An enum that represents the type of Chat app response. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input` | An input field that allows choosing between a set of predefined options. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input-type` | The format of the items that users can select. |
| `https://developers.google.com/apps-script/reference/card-service/status` | An enum that represents the status code. |
| `https://developers.google.com/apps-script/reference/card-service/suggestions` | Autocomplete suggestions to supplement a `https://developers.google.com/apps-script/reference/card-service/text-input` widget. |
| `https://developers.google.com/apps-script/reference/card-service/suggestions-response` | A response object that can be returned from a suggestions callback function. |
| `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/suggestions-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/switch` | A UI element that supports being toggled on or off. |
| `https://developers.google.com/apps-script/reference/card-service/switch-control-type` | Type of a `https://developers.google.com/apps-script/reference/card-service/switch` widget control. |
| `https://developers.google.com/apps-script/reference/card-service/text-button` | A `https://developers.google.com/apps-script/reference/card-service/text-button` with a text label. |
| `https://developers.google.com/apps-script/reference/card-service/text-button-style` | An enum that specifies the style for `https://developers.google.com/apps-script/reference/card-service/text-button`. |
| `https://developers.google.com/apps-script/reference/card-service/text-input` | A input field widget that accepts text input. |
| `https://developers.google.com/apps-script/reference/card-service/text-input-mode` | An enum that defines the what type of input is allowed for the text input field. |
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph` | A widget that displays text and supports [basic HTML formatting](https://developers.google.com/gmail/add-ons/concepts/widgets#text_formatting). |
| `https://developers.google.com/apps-script/reference/card-service/time-picker` | An input field that allows users to input a time. |
| `https://developers.google.com/apps-script/reference/card-service/trigger` | A trigger that runs [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) widget event actions according to the action rule ID. |
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response` | The response object that may be returned from a method that creates universal action. |
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder` | A builder for the `https://developers.google.com/apps-script/reference/card-service/universal-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response` | Represents an action that updates the email draft that the user is currently editing. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | A builder for `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response` objects. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action` | Updates the Bcc recipients of an email draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action` | Updates the email draft body. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` | An enum value that specifies the type of an `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action`. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action` | Updates the Cc recipients of an email draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action` | Updates the subject line of an email draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action` | Updates the To recipients of an email draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-visibility-action` | Updates the visibility of a card widget to make it display or to hide it. |
| `https://developers.google.com/apps-script/reference/card-service/updated-widget` | The response of the updated widget. |
| `https://developers.google.com/apps-script/reference/card-service/validation` | An object that defines the validation rule for the widget that it is attached to. |
| `https://developers.google.com/apps-script/reference/card-service/variable-button-size` | An enum that represents the size of the variable picker button. |
| `https://developers.google.com/apps-script/reference/card-service/vertical-alignment` | An enum that sets the vertical alignment of widgets in a column. |
| `https://developers.google.com/apps-script/reference/card-service/visibility` | An enum that represents the visibility state of the widgets. |
| `https://developers.google.com/apps-script/reference/card-service/widget` | Base class for all widgets that can be added to a `https://developers.google.com/apps-script/reference/card-service/card`. |
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | For a `https://developers.google.com/apps-script/reference/card-service/selection-input`,`https://developers.google.com/apps-script/reference/card-service/date-time-picker`\` or `https://developers.google.com/apps-script/reference/card-service/text-input` widget, a data source used in Google Workspace Studio. |
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source-type` | An enum that represents the type of the workflow data source. |
| `https://developers.google.com/apps-script/reference/card-service/wrap-style` | An enum that sets the wrapping style for content within a column. |

## `https://developers.google.com/apps-script/reference/card-service/action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/action#addRequiredWidget(String)` | `https://developers.google.com/apps-script/reference/card-service/action` | Adds the names of the widgets that this Action needs for a valid submission. |
| `https://developers.google.com/apps-script/reference/card-service/action#setAllWidgetsAreRequired(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/action` | Indicates whether this Action requires inputs from all widgets. |
| `https://developers.google.com/apps-script/reference/card-service/action#setFunctionName(String)` | `https://developers.google.com/apps-script/reference/card-service/action` | Sets the name of the callback function to be called. |
| `https://developers.google.com/apps-script/reference/card-service/action#setInteraction(Interaction)` | `https://developers.google.com/apps-script/reference/card-service/action` | Sets the interaction with a user, only required when opening a dialog. |
| `https://developers.google.com/apps-script/reference/card-service/action#setLoadIndicator(LoadIndicator)` | `https://developers.google.com/apps-script/reference/card-service/action` | Sets the loading indicator that displays while the action is in progress. |
| `https://developers.google.com/apps-script/reference/card-service/action#setParameters(Object)` | `https://developers.google.com/apps-script/reference/card-service/action` | Allows custom parameters to be passed to the callback function. |
| `https://developers.google.com/apps-script/reference/card-service/action#setPersistValues(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/action` | Indicates whether form values are determined by the client's values or the server's values after an action response updates the form's `https://developers.google.com/apps-script/reference/card-service/card`. |

## `https://developers.google.com/apps-script/reference/card-service/action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/action-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/action-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/action-response` | Builds the current action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder#setNavigation(Navigation)` | `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | Sets the response to a `https://developers.google.com/apps-script/reference/card-service/navigation` action. |
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder#setNotification(Notification)` | `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | Sets the notification to display when the action is activated. |
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | Sets the URL to navigate to when the action is activated. |
| `https://developers.google.com/apps-script/reference/card-service/action-response-builder#setStateChanged(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | Sets a flag to indicate that this action changed the existing data state. |

## `https://developers.google.com/apps-script/reference/card-service/action-status`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/action-status#setStatusCode(Status)` | `https://developers.google.com/apps-script/reference/card-service/action-status` | Represents the status for a request to either open or submit a dialog. |
| `https://developers.google.com/apps-script/reference/card-service/action-status#setUserFacingMessage(String)` | `https://developers.google.com/apps-script/reference/card-service/action-status` | The message to send users about the status of their request. |

## `https://developers.google.com/apps-script/reference/card-service/attachment`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/attachment#setIconUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/attachment` | Sets the icon URL for the attachment. |
| `https://developers.google.com/apps-script/reference/card-service/attachment#setMimeType(String)` | `https://developers.google.com/apps-script/reference/card-service/attachment` | Sets the MIME type for the attachment. |
| `https://developers.google.com/apps-script/reference/card-service/attachment#setResourceUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/attachment` | Sets the resource URL for the attachment. |
| `https://developers.google.com/apps-script/reference/card-service/attachment#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/attachment` | Sets the title for the attachment. |

## `https://developers.google.com/apps-script/reference/card-service/authorization-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/authorization-action#setAuthorizationUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/authorization-action` | Sets the authorization URL that user is taken to from the authorization prompt. |

## `https://developers.google.com/apps-script/reference/card-service/authorization-exception`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception#printJson()` | `String` | Prints the JSON representation of this object. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception#setAuthorizationUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/authorization-exception` | Sets the authorization URL that user is taken to from the authorization prompt. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception#setCustomUiCallback(String)` | `https://developers.google.com/apps-script/reference/card-service/authorization-exception` | The name of a function to call to generate a custom authorization prompt. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception#setResourceDisplayName(String)` | `https://developers.google.com/apps-script/reference/card-service/authorization-exception` | Sets the name that is displayed to the user when asking for authorization. |
| `https://developers.google.com/apps-script/reference/card-service/authorization-exception#throwException()` | `void` | Triggers this exception to be thrown. |

## `https://developers.google.com/apps-script/reference/card-service/border-style`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/border-style#setCornerRadius(Integer)` | `https://developers.google.com/apps-script/reference/card-service/border-style` | Sets the corner radius of the border, for example 8. |
| `https://developers.google.com/apps-script/reference/card-service/border-style#setStrokeColor(String)` | `https://developers.google.com/apps-script/reference/card-service/border-style` | Sets the color of the border. |
| `https://developers.google.com/apps-script/reference/card-service/border-style#setType(BorderType)` | `https://developers.google.com/apps-script/reference/card-service/border-style` | Sets the type of the border. |

## `https://developers.google.com/apps-script/reference/card-service/border-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `NO_BORDER` | `Enum` | No border style. |
| `STROKE` | `Enum` | Stroke border style. |

## `https://developers.google.com/apps-script/reference/card-service/button`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/button#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/button#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/button#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/button#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/button#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/button#setOverflowMenu(OverflowMenu)` | `https://developers.google.com/apps-script/reference/card-service/button` | Sets a pop-up menu to be opened when the object is clicked. |

## `https://developers.google.com/apps-script/reference/card-service/button-set`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/button-set#addButton(Button)` | `https://developers.google.com/apps-script/reference/card-service/button-set` | Adds a button. |
| `https://developers.google.com/apps-script/reference/card-service/button-set#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/button-set#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/button-set#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

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

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

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

### 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. |

## `https://developers.google.com/apps-script/reference/card-service/card`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/card-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-action#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/card-action#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/card-action#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/card-action#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/card-action#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/card-action#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Sets the menu text for this action. |

## `https://developers.google.com/apps-script/reference/card-service/card-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-builder#addCardAction(CardAction)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Adds a `https://developers.google.com/apps-script/reference/card-service/card-action` to this Card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#addExpressionData(ExpressionData)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Adds an expression data to this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#addSection(CardSection)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Adds a section to this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/card` | Builds the current card and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#setDisplayStyle(DisplayStyle)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Sets the display style for this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#setFixedFooter(FixedFooter)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Sets a fixed footer for this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#setHeader(CardHeader)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Sets the header for this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#setName(String)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Sets the name for this card. |
| `https://developers.google.com/apps-script/reference/card-service/card-builder#setPeekCardHeader(CardHeader)` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Sets the peek card header. |

## `https://developers.google.com/apps-script/reference/card-service/card-header`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-header#setImageAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Sets the alternative text for the header image. |
| `https://developers.google.com/apps-script/reference/card-service/card-header#setImageStyle(ImageStyle)` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Sets the cropping of the icon in the card header. |
| `https://developers.google.com/apps-script/reference/card-service/card-header#setImageUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Sets the image to use in the header by providing its URL or data string. |
| `https://developers.google.com/apps-script/reference/card-service/card-header#setSubtitle(String)` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Sets the subtitle of the card header. |
| `https://developers.google.com/apps-script/reference/card-service/card-header#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Sets the title of the card header. |

## `https://developers.google.com/apps-script/reference/card-service/card-section`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-section#addWidget(Widget)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Adds the given widget to this section. |
| `https://developers.google.com/apps-script/reference/card-service/card-section#setCollapseControl(CollapseControl)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Sets the customizable expand and collapse buttons of the section. |
| `https://developers.google.com/apps-script/reference/card-service/card-section#setCollapsible(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Sets whether the section can be collapsed. |
| `https://developers.google.com/apps-script/reference/card-service/card-section#setHeader(String)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Sets the header of the section. |
| `https://developers.google.com/apps-script/reference/card-service/card-section#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Sets the unique ID assigned that's used to identify the section to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/card-section#setNumUncollapsibleWidgets(Integer)` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Sets the number of widgets that are still shown when this section is collapsed. |

## `https://developers.google.com/apps-script/reference/card-service/card-service`

### Properties

| Property | Type | Description |
|---|---|---|
| `BorderType` | `https://developers.google.com/apps-script/reference/card-service/border-type` | The `https://developers.google.com/apps-script/reference/card-service/border-type` enumeration. |
| `ChipListLayout` | `https://developers.google.com/apps-script/reference/card-service/chip-list-layout` | The `https://developers.google.com/apps-script/reference/card-service/chip-list-layout` enumeration. |
| `CommonDataSource` | `https://developers.google.com/apps-script/reference/card-service/common-data-source` | The `https://developers.google.com/apps-script/reference/card-service/common-data-source` enumeration. |
| `ComposedEmailType` | `https://developers.google.com/apps-script/reference/card-service/composed-email-type` | The `https://developers.google.com/apps-script/reference/card-service/composed-email-type` enumeration. |
| `ContentType` | `https://developers.google.com/apps-script/reference/card-service/content-type` | The `https://developers.google.com/apps-script/reference/card-service/content-type` enumeration. |
| `DriveItemType` | `https://developers.google.com/apps-script/reference/card-service/drive-item-type` | The `https://developers.google.com/apps-script/reference/card-service/drive-item-type` enumeration. |
| `ExpressionDataActionType` | `https://developers.google.com/apps-script/reference/card-service/expression-data-action-type` | The `https://developers.google.com/apps-script/reference/card-service/expression-data-action-type` enumeration. |
| `ExpressionDataConditionType` | `https://developers.google.com/apps-script/reference/card-service/expression-data-condition-type` | The `https://developers.google.com/apps-script/reference/card-service/expression-data-condition-type` enumeration. |
| `GridItemLayout` | `https://developers.google.com/apps-script/reference/card-service/grid-item-layout` | The `https://developers.google.com/apps-script/reference/card-service/grid-item-layout` enumeration. |
| `HorizontalAlignment` | `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment` | The `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment` enumeration. |
| `Icon` | `https://developers.google.com/apps-script/reference/card-service/icon` | The `https://developers.google.com/apps-script/reference/card-service/icon` enumeration. |
| `ImageButtonStyle` | `https://developers.google.com/apps-script/reference/card-service/image-button-style` | The `https://developers.google.com/apps-script/reference/card-service/image-button-style` enumeration. |
| `ImageCropType` | `https://developers.google.com/apps-script/reference/card-service/image-crop-type` | The `https://developers.google.com/apps-script/reference/card-service/image-crop-type` enumeration. |
| `ImageStyle` | `https://developers.google.com/apps-script/reference/card-service/image-style` | The `https://developers.google.com/apps-script/reference/card-service/image-style` enumeration. |
| `InputType` | `https://developers.google.com/apps-script/reference/card-service/input-type` | The `https://developers.google.com/apps-script/reference/card-service/input-type` enumeration. |
| `LoadIndicator` | `https://developers.google.com/apps-script/reference/card-service/load-indicator` | The `https://developers.google.com/apps-script/reference/card-service/load-indicator` enumeration. |
| `OnClose` | `https://developers.google.com/apps-script/reference/card-service/on-close` | The `https://developers.google.com/apps-script/reference/card-service/on-close` enumeration. |
| `OpenAs` | `https://developers.google.com/apps-script/reference/card-service/open-as` | The `https://developers.google.com/apps-script/reference/card-service/open-as` enumeration. |
| `SelectionInputType` | `https://developers.google.com/apps-script/reference/card-service/selection-input-type` | The `https://developers.google.com/apps-script/reference/card-service/selection-input-type` enumeration. |
| `TextButtonStyle` | `https://developers.google.com/apps-script/reference/card-service/text-button-style` | The `https://developers.google.com/apps-script/reference/card-service/text-button-style` enumeration. |
| `TextInputMode` | `https://developers.google.com/apps-script/reference/card-service/text-input-mode` | The `https://developers.google.com/apps-script/reference/card-service/text-input-mode` enumeration. |
| `UpdateDraftBodyType` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` | The `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` enumeration. |
| `VariableButtonSize` | `https://developers.google.com/apps-script/reference/card-service/variable-button-size` | The `https://developers.google.com/apps-script/reference/card-service/variable-button-size` enumeration. |
| `Visibility` | `https://developers.google.com/apps-script/reference/card-service/visibility` | The `https://developers.google.com/apps-script/reference/card-service/visibility` enumeration. |
| `WorkflowDataSourceType` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source-type` | The `https://developers.google.com/apps-script/reference/card-service/workflow-data-source-type` enumeration. |

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-service#newAction()` | `https://developers.google.com/apps-script/reference/card-service/action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newActionStatus()` | `https://developers.google.com/apps-script/reference/card-service/action-status` | Creates a new `https://developers.google.com/apps-script/reference/card-service/action-status`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newAttachment()` | `https://developers.google.com/apps-script/reference/card-service/attachment` | Creates a new `https://developers.google.com/apps-script/reference/card-service/attachment`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newAuthorizationAction()` | `https://developers.google.com/apps-script/reference/card-service/authorization-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/authorization-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newAuthorizationException()` | `https://developers.google.com/apps-script/reference/card-service/authorization-exception` | Creates a new `https://developers.google.com/apps-script/reference/card-service/authorization-exception`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newBorderStyle()` | `https://developers.google.com/apps-script/reference/card-service/border-style` | Creates a new `https://developers.google.com/apps-script/reference/card-service/border-style`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newButtonSet()` | `https://developers.google.com/apps-script/reference/card-service/button-set` | Creates a new `https://developers.google.com/apps-script/reference/card-service/button-set`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCalendarEventActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/calendar-event-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCardAction()` | `https://developers.google.com/apps-script/reference/card-service/card-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/card-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCardBuilder()` | `https://developers.google.com/apps-script/reference/card-service/card-builder` | Creates a new Card builder. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCardHeader()` | `https://developers.google.com/apps-script/reference/card-service/card-header` | Creates a new `https://developers.google.com/apps-script/reference/card-service/card-header`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCardSection()` | `https://developers.google.com/apps-script/reference/card-service/card-section` | Creates a new `https://developers.google.com/apps-script/reference/card-service/card-section`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCardWithId()` | `https://developers.google.com/apps-script/reference/card-service/card-with-id` | Creates a new `https://developers.google.com/apps-script/reference/card-service/card-with-id`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCarousel()` | `https://developers.google.com/apps-script/reference/card-service/carousel` | Creates a `https://developers.google.com/apps-script/reference/card-service/carousel`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCarouselCard()` | `https://developers.google.com/apps-script/reference/card-service/carousel-card` | Creates a new `https://developers.google.com/apps-script/reference/card-service/carousel-card`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newChatActionResponse()` | `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | Creates a new `https://developers.google.com/apps-script/reference/card-service/chat-action-response`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newChatResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/chat-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/chat-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newChip()` | `https://developers.google.com/apps-script/reference/card-service/chip` | Creates a new `https://developers.google.com/apps-script/reference/card-service/chip`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newChipList()` | `https://developers.google.com/apps-script/reference/card-service/chip-list` | Creates a new `https://developers.google.com/apps-script/reference/card-service/chip-list`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCollapseControl()` | `https://developers.google.com/apps-script/reference/card-service/collapse-control` | Creates a new `https://developers.google.com/apps-script/reference/card-service/collapse-control`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newColumn()` | `https://developers.google.com/apps-script/reference/card-service/column` | Creates a new `https://developers.google.com/apps-script/reference/card-service/column`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newColumns()` | `https://developers.google.com/apps-script/reference/card-service/columns` | Creates a new set of `https://developers.google.com/apps-script/reference/card-service/columns`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCommonWidgetAction()` | `https://developers.google.com/apps-script/reference/card-service/common-widget-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/common-widget-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newComposeActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newCondition()` | `https://developers.google.com/apps-script/reference/card-service/condition` | Creates a new `https://developers.google.com/apps-script/reference/card-service/condition` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDataSourceConfig()` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Creates a new, empty `https://developers.google.com/apps-script/reference/card-service/data-source-config`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDatePicker()` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Creates a new `https://developers.google.com/apps-script/reference/card-service/date-picker`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDateTimePicker()` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Creates a new `https://developers.google.com/apps-script/reference/card-service/date-time-picker`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDecoratedText()` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Creates a new `https://developers.google.com/apps-script/reference/card-service/decorated-text`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDialog()` | `https://developers.google.com/apps-script/reference/card-service/dialog` | Creates a new `https://developers.google.com/apps-script/reference/card-service/dialog`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDialogAction()` | `https://developers.google.com/apps-script/reference/card-service/dialog-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/dialog-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDivider()` | `https://developers.google.com/apps-script/reference/card-service/divider` | Creates a new `https://developers.google.com/apps-script/reference/card-service/divider`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDriveDataSourceSpec()` | `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec` | Creates a new `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newDriveItemsSelectedActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newEditorFileScopeActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newEventAction()` | `https://developers.google.com/apps-script/reference/card-service/event-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/event-action` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newExpressionData()` | `https://developers.google.com/apps-script/reference/card-service/expression-data` | Creates a new `https://developers.google.com/apps-script/reference/card-service/expression-data` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newExpressionDataAction()` | `https://developers.google.com/apps-script/reference/card-service/expression-data-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/expression-data-action` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newExpressionDataCondition()` | `https://developers.google.com/apps-script/reference/card-service/expression-data-condition` | Creates a new `https://developers.google.com/apps-script/reference/card-service/expression-data-condition` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newFixedFooter()` | `https://developers.google.com/apps-script/reference/card-service/fixed-footer` | Creates a new `https://developers.google.com/apps-script/reference/card-service/fixed-footer`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newGrid()` | `https://developers.google.com/apps-script/reference/card-service/grid` | Creates a new `https://developers.google.com/apps-script/reference/card-service/grid`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newGridItem()` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Creates a new `https://developers.google.com/apps-script/reference/card-service/grid-item`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newHostAppDataSource()` | `https://developers.google.com/apps-script/reference/card-service/host-app-data-source` | Creates a new `https://developers.google.com/apps-script/reference/card-service/host-app-data-source`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newIconImage()` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Creates a new `https://developers.google.com/apps-script/reference/card-service/icon-image`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newImage()` | `https://developers.google.com/apps-script/reference/card-service/image` | Creates a new `https://developers.google.com/apps-script/reference/card-service/image`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newImageButton()` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Creates a new `https://developers.google.com/apps-script/reference/card-service/image-button`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newImageComponent()` | `https://developers.google.com/apps-script/reference/card-service/image-component` | Creates a new `https://developers.google.com/apps-script/reference/card-service/image-component`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newImageCropStyle()` | `https://developers.google.com/apps-script/reference/card-service/image-crop-style` | Creates a new `https://developers.google.com/apps-script/reference/card-service/image-crop-style`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newKeyValue()` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Creates a new `https://developers.google.com/apps-script/reference/card-service/key-value`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newLinkPreview()` | `https://developers.google.com/apps-script/reference/card-service/link-preview` | Creates a new `https://developers.google.com/apps-script/reference/card-service/link-preview`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newMaterialIcon()` | `https://developers.google.com/apps-script/reference/card-service/material-icon` | Creates a new `https://developers.google.com/apps-script/reference/card-service/material-icon`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newNavigation()` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Creates a new `https://developers.google.com/apps-script/reference/card-service/navigation`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newNotification()` | `https://developers.google.com/apps-script/reference/card-service/notification` | Creates a new `https://developers.google.com/apps-script/reference/card-service/notification`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newOpenLink()` | `https://developers.google.com/apps-script/reference/card-service/open-link` | Creates a new `https://developers.google.com/apps-script/reference/card-service/open-link`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newOverflowMenu()` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu` | Creates a new `https://developers.google.com/apps-script/reference/card-service/overflow-menu`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newOverflowMenuItem()` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Creates a new `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newPlatformDataSource()` | `https://developers.google.com/apps-script/reference/card-service/platform-data-source` | Creates a new `https://developers.google.com/apps-script/reference/card-service/platform-data-source`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newSelectionInput()` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Creates a new `https://developers.google.com/apps-script/reference/card-service/selection-input`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newSuggestions()` | `https://developers.google.com/apps-script/reference/card-service/suggestions` | Creates a new `https://developers.google.com/apps-script/reference/card-service/suggestions`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newSuggestionsResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newSwitch()` | `https://developers.google.com/apps-script/reference/card-service/switch` | Creates a new `https://developers.google.com/apps-script/reference/card-service/switch`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newTextButton()` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Creates a new `https://developers.google.com/apps-script/reference/card-service/text-button`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newTextInput()` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Creates a new `https://developers.google.com/apps-script/reference/card-service/text-input`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newTextParagraph()` | `https://developers.google.com/apps-script/reference/card-service/text-paragraph` | Creates a new `https://developers.google.com/apps-script/reference/card-service/text-paragraph`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newTimePicker()` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Creates a new `https://developers.google.com/apps-script/reference/card-service/time-picker`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newTrigger()` | `https://developers.google.com/apps-script/reference/card-service/trigger` | Creates and returns a new `https://developers.google.com/apps-script/reference/card-service/trigger` used for client-side validation. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUniversalActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftActionResponseBuilder()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftBccRecipientsAction()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action`; |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftBodyAction()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftCcRecipientsAction()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftSubjectAction()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateDraftToRecipientsAction()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newUpdateVisibilityAction()` | `https://developers.google.com/apps-script/reference/card-service/update-visibility-action` | Creates a new `https://developers.google.com/apps-script/reference/card-service/update-visibility-action`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newValidation()` | `https://developers.google.com/apps-script/reference/card-service/validation` | Creates a new `https://developers.google.com/apps-script/reference/card-service/validation`. |
| `https://developers.google.com/apps-script/reference/card-service/card-service#newWorkflowDataSource()` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | Creates a new `https://developers.google.com/apps-script/reference/card-service/workflow-data-source`. |

## `https://developers.google.com/apps-script/reference/card-service/card-with-id`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/card-with-id#setCard(Card)` | `https://developers.google.com/apps-script/reference/card-service/card-with-id` | Sets the card of the `cardWithId`. |
| `https://developers.google.com/apps-script/reference/card-service/card-with-id#setCardId(String)` | `https://developers.google.com/apps-script/reference/card-service/card-with-id` | Sets the unique card ID of the `cardWithId`. |

## `https://developers.google.com/apps-script/reference/card-service/carousel`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/carousel#addCarouselCard(CarouselCard)` | `https://developers.google.com/apps-script/reference/card-service/carousel` | Adds a carousel card. |
| `https://developers.google.com/apps-script/reference/card-service/carousel#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/carousel#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/carousel#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/carousel-card`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/carousel-card#addFooterWidget(Widget)` | `https://developers.google.com/apps-script/reference/card-service/carousel-card` | Adds the given widget to the footer of this carousel card. |
| `https://developers.google.com/apps-script/reference/card-service/carousel-card#addWidget(Widget)` | `https://developers.google.com/apps-script/reference/card-service/carousel-card` | Adds the given widget to this carousel card. |

## `https://developers.google.com/apps-script/reference/card-service/chat-action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chat-action-response#setDialogAction(DialogAction)` | `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | Sets the dialog action to an event related to a dialog. |
| `https://developers.google.com/apps-script/reference/card-service/chat-action-response#setResponseType(ResponseType)` | `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | The type of Chat app response. |
| `https://developers.google.com/apps-script/reference/card-service/chat-action-response#setUpdatedWidget(UpdatedWidget)` | `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | Sets the updated widget, used to provide autocomplete options for a widget. |
| `https://developers.google.com/apps-script/reference/card-service/chat-action-response#setUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/chat-action-response` | The URL for users to authenticate or configure. |

## `https://developers.google.com/apps-script/reference/card-service/chat-client-data-source`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chat-client-data-source#setSpaceDataSource(ChatSpaceDataSource)` | `https://developers.google.com/apps-script/reference/card-service/chat-client-data-source` | A data source that populates Google Chat spaces as selection items for a multiselect menu. |

## `https://developers.google.com/apps-script/reference/card-service/chat-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chat-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/chat-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chat-response-builder#addCardsV2(CardWithId)` | `https://developers.google.com/apps-script/reference/card-service/chat-response-builder` | Sets the card field of the message. |
| `https://developers.google.com/apps-script/reference/card-service/chat-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/chat-response` | Builds the current action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/chat-response-builder#setActionResponse(ChatActionResponse)` | `https://developers.google.com/apps-script/reference/card-service/chat-response-builder` | Sets the action response field of the message. |
| `https://developers.google.com/apps-script/reference/card-service/chat-response-builder#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/chat-response-builder` | Sets the text of the Chat message. |

## `https://developers.google.com/apps-script/reference/card-service/chat-space-data-source`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chat-space-data-source#setDefaultToCurrentSpace(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/chat-space-data-source` | If set to `true`, the multi select menu selects the current Google Chat space as an item by default. |

## `https://developers.google.com/apps-script/reference/card-service/chip`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chip#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets the alternative text of the chip for accessibility. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setDisabled(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets whether the chip is disabled. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setIcon(IconImage)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets the icon to be used as the chip. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setLabel(String)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets the title of the chip. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/chip#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/chip` | Sets a URL to be opened when the object is clicked. |

## `https://developers.google.com/apps-script/reference/card-service/chip-list`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/chip-list#addChip(Chip)` | `https://developers.google.com/apps-script/reference/card-service/chip-list` | Adds a chip. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list#setLayout(ChipListLayout)` | `https://developers.google.com/apps-script/reference/card-service/chip-list` | Sets the chip list layout. |
| `https://developers.google.com/apps-script/reference/card-service/chip-list#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/chip-list-layout`

### Properties

| Property | Type | Description |
|---|---|---|
| `WRAPPED` | `Enum` | The chip list wraps to the next line if there isn't enough horizontal space. |
| `HORIZONTAL_SCROLLABLE` | `Enum` | The chips scroll horizontally if they don't fit in the available space. |

## `https://developers.google.com/apps-script/reference/card-service/collapse-control`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/collapse-control#setCollapseButton(Button)` | `https://developers.google.com/apps-script/reference/card-service/collapse-control` | Sets the `https://developers.google.com/apps-script/reference/card-service/button` that is displayed for "show less" button. |
| `https://developers.google.com/apps-script/reference/card-service/collapse-control#setExpandButton(Button)` | `https://developers.google.com/apps-script/reference/card-service/collapse-control` | Sets the `https://developers.google.com/apps-script/reference/card-service/button` that is displayed for "show more" button. |
| `https://developers.google.com/apps-script/reference/card-service/collapse-control#setHorizontalAlign(HorizontalAlignment)` | `https://developers.google.com/apps-script/reference/card-service/collapse-control` | Sets the `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment` of the `https://developers.google.com/apps-script/reference/card-service/collapse-control`. |

## `https://developers.google.com/apps-script/reference/card-service/column`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/column#addWidget(Widget)` | `https://developers.google.com/apps-script/reference/card-service/column` | Adds a widget to the column. |
| `https://developers.google.com/apps-script/reference/card-service/column#setHorizontalAlignment(HorizontalAlignment)` | `https://developers.google.com/apps-script/reference/card-service/column` | Sets the `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment` of the `https://developers.google.com/apps-script/reference/card-service/column`. |
| `https://developers.google.com/apps-script/reference/card-service/column#setHorizontalSizeStyle(HorizontalSizeStyle)` | `https://developers.google.com/apps-script/reference/card-service/column` | Sets the `https://developers.google.com/apps-script/reference/card-service/horizontal-size-style` of the Column. |
| `https://developers.google.com/apps-script/reference/card-service/column#setVerticalAlignment(VerticalAlignment)` | `https://developers.google.com/apps-script/reference/card-service/column` | Sets the `https://developers.google.com/apps-script/reference/card-service/vertical-alignment` of the `https://developers.google.com/apps-script/reference/card-service/column`. |

## `https://developers.google.com/apps-script/reference/card-service/columns`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/columns#addColumn(Column)` | `https://developers.google.com/apps-script/reference/card-service/columns` | Adds a `https://developers.google.com/apps-script/reference/card-service/column` to the Columns widget. |
| `https://developers.google.com/apps-script/reference/card-service/columns#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/columns#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/columns#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |
| `https://developers.google.com/apps-script/reference/card-service/columns#setWrapStyle(WrapStyle)` | `https://developers.google.com/apps-script/reference/card-service/columns` | Sets the wrap style of the columns, controls how the column resizes based on screen width. |

## `https://developers.google.com/apps-script/reference/card-service/common-data-source`

### Properties

| Property | Type | Description |
|---|---|---|
| `UNKNOWN` | `Enum` | Default value. |
| `USER` | `Enum` | Google Workspace users. |
| `DRIVE` | `Enum` | Use Google Drive as a data source. |

## `https://developers.google.com/apps-script/reference/card-service/common-widget-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/common-widget-action#setUpdateVisibilityAction(UpdateVisibilityAction)` | `https://developers.google.com/apps-script/reference/card-service/common-widget-action` | Sets the update visibility action for widgets. |

## `https://developers.google.com/apps-script/reference/card-service/compose-action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/compose-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/compose-action-response` | Builds the current compose action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder#setGmailDraft(GmailDraft)` | `https://developers.google.com/apps-script/reference/card-service/compose-action-response-builder` | Sets the draft `https://developers.google.com/apps-script/gmail/gmail-message.html` created using `https://developers.google.com/apps-script/gmail/gmail-message.html#createDraftReply(String)` or similar functions. |

## `https://developers.google.com/apps-script/reference/card-service/composed-email-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `REPLY_AS_DRAFT` | `Enum` | A draft that is a reply to another message. |
| `STANDALONE_DRAFT` | `Enum` | A draft that is a standalone message. |

## `https://developers.google.com/apps-script/reference/card-service/condition`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/condition#setActionRuleId(String)` | `https://developers.google.com/apps-script/reference/card-service/condition` | The unique ID of the action rule to run in response to the condition. |
| `https://developers.google.com/apps-script/reference/card-service/condition#setExpressionDataCondition(ExpressionDataCondition)` | `https://developers.google.com/apps-script/reference/card-service/condition` | Sets the [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) condition used to determine whether the event action should run. |

## `https://developers.google.com/apps-script/reference/card-service/content-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `TEXT` | `Enum` | Indicates that the generated content is plain text. |
| `MUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML. |
| `IMMUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML, but this content cannot be edited after it is generated. |

## `https://developers.google.com/apps-script/reference/card-service/data-source-config`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/data-source-config#setMaxCharactersToDisable(Integer)` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Sets the maximum number of characters the user can enter before this data provider is disabled. |
| `https://developers.google.com/apps-script/reference/card-service/data-source-config#setMaxResults(Integer)` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Sets the maximum number of results to return. |
| `https://developers.google.com/apps-script/reference/card-service/data-source-config#setMinCharactersToTrigger(Integer)` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Sets the minimum number of characters the user must enter before this data provider is triggered to return results. |
| `https://developers.google.com/apps-script/reference/card-service/data-source-config#setPlatformDataSource(PlatformDataSource)` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Sets the data source to a platform data source. |
| `https://developers.google.com/apps-script/reference/card-service/data-source-config#setRemoteDataSource(Action)` | `https://developers.google.com/apps-script/reference/card-service/data-source-config` | Sets the data source to a remote data provider. |

## `https://developers.google.com/apps-script/reference/card-service/date-picker`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/date-picker#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Sets the field name that identifies this picker in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Sets an `https://developers.google.com/apps-script/reference/card-service/action` that the script performs whenever the picker input changes. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Sets the title displayed above the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setValueInMsSinceEpoch(Number)` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Sets the prefilled value to be set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setValueInMsSinceEpoch(String)` | `https://developers.google.com/apps-script/reference/card-service/date-picker` | Sets the prefilled value to be set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-picker#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/date-time-picker`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets the field name that identifies this picker in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setHostAppDataSource(HostAppDataSource)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | In a Google Workspace Studio agent, lets [input variables](https://developers.google.com/workspace/add-ons/studio/input-variables) accept datetime outputs from other steps in the agent. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets an `https://developers.google.com/apps-script/reference/card-service/action` that the script performs whenever the picker input changes. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setTimeZoneOffsetInMins(Integer)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets the number of minutes that the time zone should be offset from UTC. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets the title displayed above the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setValueInMsSinceEpoch(Number)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets the prefilled value to be set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setValueInMsSinceEpoch(String)` | `https://developers.google.com/apps-script/reference/card-service/date-time-picker` | Sets the prefilled value to be set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/date-time-picker#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/decorated-text`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setBottomLabel(String)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the label text to be used as the key and is displayed below the text content. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setButton(Button)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the `https://developers.google.com/apps-script/reference/card-service/button` that is displayed to the right of the text. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setEndIcon(IconImage)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the optional `https://developers.google.com/apps-script/reference/card-service/icon-image` that is displayed to the right of the content. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setStartIcon(IconImage)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the optional `https://developers.google.com/apps-script/reference/card-service/icon-image` to display before the text content. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setSwitchControl(Switch)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the `https://developers.google.com/apps-script/reference/card-service/switch` that is displayed to the right of the content. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the text to be used as the value. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setTopLabel(String)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets the label text to be used as the key and is displayed above the text content. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |
| `https://developers.google.com/apps-script/reference/card-service/decorated-text#setWrapText(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/decorated-text` | Sets whether the value text should be displayed on a single line or multiple lines. |

## `https://developers.google.com/apps-script/reference/card-service/dialog`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/dialog#setBody(Card)` | `https://developers.google.com/apps-script/reference/card-service/dialog` | Sets the card of the `Dialog`. |

## `https://developers.google.com/apps-script/reference/card-service/dialog-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/dialog-action#setActionStatus(ActionStatus)` | `https://developers.google.com/apps-script/reference/card-service/dialog-action` | Sets the action status of `DialogAction`. |
| `https://developers.google.com/apps-script/reference/card-service/dialog-action#setDialog(Dialog)` | `https://developers.google.com/apps-script/reference/card-service/dialog-action` | Sets the dialog of the `DialogAction`. |

## `https://developers.google.com/apps-script/reference/card-service/display-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `PEEK` | `Enum` | Show the card header at the bottom of add-on content over existing content. |
| `REPLACE` | `Enum` | Show the card by replacing existing content. |

## `https://developers.google.com/apps-script/reference/card-service/divider`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/divider#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/divider#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/divider#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec#addItemType(DriveItemType)` | `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec` | Adds a driveItemType to allowed item types list. |

## `https://developers.google.com/apps-script/reference/card-service/drive-item-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `DRIVE_ITEM_TYPE_UNSPECIFIED` | `Enum` | Default value. |
| `DOCUMENTS` | `Enum` | Represents a Google Docs document. |
| `SPREADSHEETS` | `Enum` | Represents a Google Sheets document. |
| `PRESENTATIONS` | `Enum` | Represents a Google Slides document. |
| `PDFS` | `Enum` | Represents a PDF document. |
| `FORMS` | `Enum` | Represents a Google Forms document. |
| `FOLDERS` | `Enum` | Represents a Google Drive folder. |

## `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response` | Builds the current Drive action response. |
| `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder#requestFileScope(String)` | `https://developers.google.com/apps-script/reference/card-service/drive-items-selected-action-response-builder` | Specifies that the response requests file scope for the contextually-relevant item in Drive. |

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

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/editor-file-scope-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

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

### 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. |

## `https://developers.google.com/apps-script/reference/card-service/event-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/event-action#addPostEventTrigger(Trigger)` | `https://developers.google.com/apps-script/reference/card-service/event-action` | Adds a [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) condition to evaluate after the event action runs. |
| `https://developers.google.com/apps-script/reference/card-service/event-action#setActionRuleId(String)` | `https://developers.google.com/apps-script/reference/card-service/event-action` | Sets a unique identifier for the event action. |
| `https://developers.google.com/apps-script/reference/card-service/event-action#setCommonWidgetAction(CommonWidgetAction)` | `https://developers.google.com/apps-script/reference/card-service/event-action` | Set the common widget action for widgets. |
| `https://developers.google.com/apps-script/reference/card-service/event-action#setExpressionDataAction(ExpressionDataAction)` | `https://developers.google.com/apps-script/reference/card-service/event-action` | Sets the [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) data action for widgets. |

## `https://developers.google.com/apps-script/reference/card-service/expression-data`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/expression-data#addCondition(Condition)` | `https://developers.google.com/apps-script/reference/card-service/expression-data` | Adds a condition to the current expression data. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/expression-data` | Adds an event action to the current expression data. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data#setExpression(String)` | `https://developers.google.com/apps-script/reference/card-service/expression-data` | Sets the expression data value. |
| `https://developers.google.com/apps-script/reference/card-service/expression-data#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/expression-data` | Sets the expression data id. |

## `https://developers.google.com/apps-script/reference/card-service/expression-data-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/expression-data-action#setActionType(ExpressionDataActionType)` | `https://developers.google.com/apps-script/reference/card-service/expression-data-action` | Sets the type of the expression data action. |

## `https://developers.google.com/apps-script/reference/card-service/expression-data-action-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `ACTION_TYPE_UNSPECIFIED` | `Enum` | The unspecified action type. |
| `START_EXPRESSION_EVALUATION` | `Enum` | The action to start the [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation). |

## `https://developers.google.com/apps-script/reference/card-service/expression-data-condition`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/expression-data-condition#setConditionType(ExpressionDataConditionType)` | `https://developers.google.com/apps-script/reference/card-service/expression-data-condition` | Sets condition type for a [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) to indicate whether the expression evaluated successfully. |

## `https://developers.google.com/apps-script/reference/card-service/expression-data-condition-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `CONDITION_TYPE_UNSPECIFIED` | `Enum` | The unspecified condition type. |
| `EXPRESSION_EVALUATION_SUCCESS` | `Enum` | The [CEL expression](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) evaluated to a successful result. |
| `EXPRESSION_EVALUATION_FAILURE` | `Enum` | The [CEL expression](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) evaluated to a failure result. |

## `https://developers.google.com/apps-script/reference/card-service/fixed-footer`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/fixed-footer#setPrimaryButton(TextButton)` | `https://developers.google.com/apps-script/reference/card-service/fixed-footer` | Set the primary button in the fixed footer. |
| `https://developers.google.com/apps-script/reference/card-service/fixed-footer#setSecondaryButton(TextButton)` | `https://developers.google.com/apps-script/reference/card-service/fixed-footer` | Set the secondary button in the fixed footer. |

## `https://developers.google.com/apps-script/reference/card-service/grid`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/grid#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/grid#addItem(GridItem)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Adds a new grid item to the grid. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setBorderStyle(BorderStyle)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets the border style applied to each grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setNumColumns(Integer)` | `https://developers.google.com/apps-script/reference/card-service/grid` | The number of columns to display in the grid. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/grid` | Sets the title text of the grid. |
| `https://developers.google.com/apps-script/reference/card-service/grid#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/grid-item`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setIdentifier(String)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the identifier for the grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setImage(ImageComponent)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the image for this grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setLayout(GridItemLayout)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the layout of text and image for the grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setSubtitle(String)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the subtitle of the grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setTextAlignment(HorizontalAlignment)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the horizontal alignment of the grid item. |
| `https://developers.google.com/apps-script/reference/card-service/grid-item#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/grid-item` | Sets the title text of the grid item. |

## `https://developers.google.com/apps-script/reference/card-service/grid-item-layout`

### Properties

| Property | Type | Description |
|---|---|---|
| `TEXT_BELOW` | `Enum` | The title and subtitle are shown below the grid item's image. |
| `TEXT_ABOVE` | `Enum` | The title and subtitle are shown above the grid item's image. |

## `https://developers.google.com/apps-script/reference/card-service/horizontal-alignment`

### Properties

| Property | Type | Description |
|---|---|---|
| `START` | `Enum` | Align the widget to the start of the sentence side. |
| `CENTER` | `Enum` | Align the widget to the center. |
| `END` | `Enum` | Align the widget to the end of the sentence side. |

## `https://developers.google.com/apps-script/reference/card-service/horizontal-size-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `FILL_AVAILABLE_SPACE` | `Enum` | Sizes the `https://developers.google.com/apps-script/reference/card-service/widget` to fill the available horizontal space of a `https://developers.google.com/apps-script/reference/card-service/column`. |
| `FILL_MINIMUM_SPACE` | `Enum` | Resizes the `https://developers.google.com/apps-script/reference/card-service/widget` to fill the least amount of horizontal space in a `https://developers.google.com/apps-script/reference/card-service/column`. |

## `https://developers.google.com/apps-script/reference/card-service/host-app-data-source`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/host-app-data-source#setChatDataSource(ChatClientDataSource)` | `https://developers.google.com/apps-script/reference/card-service/host-app-data-source` | Sets the data source from Google Chat. |
| `https://developers.google.com/apps-script/reference/card-service/host-app-data-source#setWorkflowDataSource(WorkflowDataSource)` | `https://developers.google.com/apps-script/reference/card-service/host-app-data-source` | Sets the data source from Google Workspace Flows. |

## `https://developers.google.com/apps-script/reference/card-service/icon`

### Properties

| Property | Type | Description |
|---|---|---|
| `NONE` | `Enum` | No icon. |
| `AIRPLANE` | `Enum` | ![Airplane flight icon](https://www.gstatic.com/images/icons/material/system/1x/flight_grey600_48dp.png) |
| `BOOKMARK` | `Enum` | ![Bookmark icon](https://www.gstatic.com/images/icons/material/system/1x/bookmark_grey600_48dp.png) |
| `BUS` | `Enum` | ![Bus icon](https://www.gstatic.com/images/icons/material/system/1x/directions_bus_grey600_48dp.png) |
| `CAR` | `Enum` | ![Car icon](https://www.gstatic.com/images/icons/material/system/1x/directions_car_grey600_48dp.png) |
| `CLOCK` | `Enum` | ![Clock icon](https://www.gstatic.com/images/icons/material/system/1x/schedule_grey600_48dp.png) |
| `CONFIRMATION_NUMBER_ICON` | `Enum` | ![Confirmation number icon](https://www.gstatic.com/images/icons/material/system/1x/confirmation_num_grey600_48dp.png) |
| `DOLLAR` | `Enum` | ![Dollar icon](https://www.gstatic.com/images/icons/material/system/1x/attach_money_grey600_48dp.png) |
| `DESCRIPTION` | `Enum` | ![Description icon](https://www.gstatic.com/images/icons/material/system/1x/subject_grey600_48dp.png) |
| `EMAIL` | `Enum` | ![Email icon](https://www.gstatic.com/images/icons/material/system/1x/email_grey600_48dp.png) |
| `EVENT_PERFORMER` | `Enum` | ![Email icon](https://www.gstatic.com/images/icons/material/system/1x/people_grey600_48dp.png) |
| `EVENT_SEAT` | `Enum` | ![Event seat icon](https://www.gstatic.com/images/icons/material/system/1x/event_seat_grey600_48dp.png) |
| `FLIGHT_ARRIVAL` | `Enum` | ![Flight arrival icon](https://www.gstatic.com/images/icons/material/system/1x/flight_land_grey600_48dp.png) |
| `FLIGHT_DEPARTURE` | `Enum` | ![Flight departure icon](https://www.gstatic.com/images/icons/material/system/1x/flight_takeoff_grey600_48dp.png) |
| `HOTEL` | `Enum` | ![Hotel icon](https://www.gstatic.com/images/icons/material/system/1x/hotel_grey600_48dp.png) |
| `HOTEL_ROOM_TYPE` | `Enum` | ![Hotel icon](https://www.gstatic.com/images/icons/material/system/1x/star_grey600_48dp.png) |
| `INVITE` | `Enum` | ![Invite icon](https://www.gstatic.com/images/icons/material/system/1x/event_grey600_48dp.png) |
| `MAP_PIN` | `Enum` | ![Map pin icon](https://www.gstatic.com/images/icons/material/system/1x/place_grey600_48dp.png) |
| `MEMBERSHIP` | `Enum` | ![Membershipt icon](https://www.gstatic.com/images/icons/material/system/1x/card_membership_grey600_48dp.png) |
| `MULTIPLE_PEOPLE` | `Enum` | ![Multiple people icon](https://www.gstatic.com/images/icons/material/system/1x/people_grey600_48dp.png) |
| `OFFER` | `Enum` | ![Offer icon](https://www.gstatic.com/images/icons/material/system/1x/local_offer_grey600_48dp.png) |
| `PERSON` | `Enum` | ![Person icon](https://www.gstatic.com/images/icons/material/system/1x/person_grey600_48dp.png) |
| `PHONE` | `Enum` | ![Phone icon](https://www.gstatic.com/images/icons/material/system/1x/call_grey600_48dp.png) |
| `RESTAURANT_ICON` | `Enum` | ![Restaurant icon](https://www.gstatic.com/images/icons/material/system/1x/restaurant_grey600_48dp.png) |
| `SHOPPING_CART` | `Enum` | ![Shopping cart icon](https://www.gstatic.com/images/icons/material/system/1x/shopping_cart_grey600_48dp.png) |
| `STAR` | `Enum` | ![Star icon](https://www.gstatic.com/images/icons/material/system/1x/star_grey600_48dp.png) |
| `STORE` | `Enum` | ![Store icon](https://www.gstatic.com/images/icons/material/system/1x/store_grey600_48dp.png) |
| `TICKET` | `Enum` | ![Ticket icon](https://www.gstatic.com/images/icons/material/system/1x/local_attraction_grey600_48dp.png) |
| `TRAIN` | `Enum` | ![Train icon](https://www.gstatic.com/images/icons/material/system/1x/train_grey600_48dp.png) |
| `VIDEO_CAMERA` | `Enum` | ![Video camera icon](https://www.gstatic.com/images/icons/material/system/1x/videocam_grey600_48dp.png) |
| `VIDEO_PLAY` | `Enum` | ![Video play icon](https://www.gstatic.com/images/icons/material/system/1x/play_circle_filled_grey600_48dp.png) |

## `https://developers.google.com/apps-script/reference/card-service/icon-image`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/icon-image#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Sets the alternative text of the URL which is used for accessibility. |
| `https://developers.google.com/apps-script/reference/card-service/icon-image#setIcon(Icon)` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Sets the predefined icon if the URL is not set. |
| `https://developers.google.com/apps-script/reference/card-service/icon-image#setIconUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Sets the URL of the icon if the icon is not set. |
| `https://developers.google.com/apps-script/reference/card-service/icon-image#setImageCropType(ImageCropType)` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Sets the crop style for the image. |
| `https://developers.google.com/apps-script/reference/card-service/icon-image#setMaterialIcon(MaterialIcon)` | `https://developers.google.com/apps-script/reference/card-service/icon-image` | Sets the material design icon. |

## `https://developers.google.com/apps-script/reference/card-service/image`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/image#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/image#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets the alternative text of the image for accessibility. |
| `https://developers.google.com/apps-script/reference/card-service/image#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/image#setImageUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets the image to use by providing its URL or data string. |
| `https://developers.google.com/apps-script/reference/card-service/image#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/image` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/image-button`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/image-button#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets the alternative text of the button for accessibility. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setIcon(Icon)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets a predefined `https://developers.google.com/apps-script/reference/card-service/icon` to display on the button. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setIconUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets the URL of an image to use as this button's icon. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setImageButtonStyle(ImageButtonStyle)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets the button style. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setMaterialIcon(MaterialIcon)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets the material design icon. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/image-button#setOverflowMenu(OverflowMenu)` | `https://developers.google.com/apps-script/reference/card-service/image-button` | Sets a pop-up menu to be opened when the object is clicked. |

## `https://developers.google.com/apps-script/reference/card-service/image-button-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `BORDERLESS` | `Enum` | Image button with no border. |
| `OUTLINED` | `Enum` | Image button with clear background. |
| `FILLED` | `Enum` | Image button with colored background. |
| `FILLED_TONAL` | `Enum` | Image button with an alternative middle ground between filled and outlined buttons. |

## `https://developers.google.com/apps-script/reference/card-service/image-component`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/image-component#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/image-component` | Sets the alternative text of the image. |
| `https://developers.google.com/apps-script/reference/card-service/image-component#setBorderStyle(BorderStyle)` | `https://developers.google.com/apps-script/reference/card-service/image-component` | Sets the border style applied to the image. |
| `https://developers.google.com/apps-script/reference/card-service/image-component#setCropStyle(ImageCropStyle)` | `https://developers.google.com/apps-script/reference/card-service/image-component` | Sets the crop style for the image. |
| `https://developers.google.com/apps-script/reference/card-service/image-component#setImageUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/image-component` | Sets the URL of the image. |

## `https://developers.google.com/apps-script/reference/card-service/image-crop-style`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/image-crop-style#setAspectRatio(Number)` | `https://developers.google.com/apps-script/reference/card-service/image-crop-style` | Sets the aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. |
| `https://developers.google.com/apps-script/reference/card-service/image-crop-style#setImageCropType(ImageCropType)` | `https://developers.google.com/apps-script/reference/card-service/image-crop-style` | Sets the crop type for the image. |

## `https://developers.google.com/apps-script/reference/card-service/image-crop-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `SQUARE` | `Enum` | Square shape crop style. |
| `CIRCLE` | `Enum` | Circle shape crop style. |
| `RECTANGLE_CUSTOM` | `Enum` | Rectangle shape crop style with custom ratio. |
| `RECTANGLE_4_3` | `Enum` | Rectangle shape crop style with 4:3 ratio. |

## `https://developers.google.com/apps-script/reference/card-service/image-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `SQUARE` | `Enum` | No cropping. |
| `CIRCLE` | `Enum` | Crop to a circle shape. |

## `https://developers.google.com/apps-script/reference/card-service/input-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `TEXT` | `Enum` | Accept regular text. |
| `INTEGER` | `Enum` | Accept an integer. |
| `FLOAT` | `Enum` | Accept a floating-point number. |
| `EMAIL` | `Enum` | Accept an email address. |

## `https://developers.google.com/apps-script/reference/card-service/interaction`

### Properties

| Property | Type | Description |
|---|---|---|
| `INTERACTION_UNSPECIFIED` | `Enum` | Default value. |
| `OPEN_DIALOG` | `Enum` | Opens a dialog, a card-based interface that Chat apps use to interact with users. |

## `https://developers.google.com/apps-script/reference/card-service/key-value`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/key-value#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/key-value` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/key-value#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/link-preview`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/link-preview#printJson()` | `String` | Prints the JSON representation of this object. |
| `https://developers.google.com/apps-script/reference/card-service/link-preview#setLinkPreviewTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/link-preview` | Sets the title that displays in the link preview above the preview card. |
| `https://developers.google.com/apps-script/reference/card-service/link-preview#setPreviewCard(Card)` | `https://developers.google.com/apps-script/reference/card-service/link-preview` | Sets the card that displays information about a link from a third-party or non-Google service. |
| `https://developers.google.com/apps-script/reference/card-service/link-preview#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/link-preview` | Sets the title that displays in the smart chip for the link preview. |

## `https://developers.google.com/apps-script/reference/card-service/load-indicator`

### Properties

| Property | Type | Description |
|---|---|---|
| `SPINNER` | `Enum` | Use a spinner indicator. |
| `NONE` | `Enum` | Do not use an indicator. |

## `https://developers.google.com/apps-script/reference/card-service/material-icon`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/material-icon#setFill(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/material-icon` | Whether the icon renders as filled. |
| `https://developers.google.com/apps-script/reference/card-service/material-icon#setGrade(Integer)` | `https://developers.google.com/apps-script/reference/card-service/material-icon` | Weight and grade affect a symbol's thickness. |
| `https://developers.google.com/apps-script/reference/card-service/material-icon#setName(String)` | `https://developers.google.com/apps-script/reference/card-service/material-icon` | Sets the name of the icon. |
| `https://developers.google.com/apps-script/reference/card-service/material-icon#setWeight(Integer)` | `https://developers.google.com/apps-script/reference/card-service/material-icon` | The stroke weight of the icon. |

## `https://developers.google.com/apps-script/reference/card-service/navigation`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/navigation#popCard()` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Pops a card from the navigation stack. |
| `https://developers.google.com/apps-script/reference/card-service/navigation#popToNamedCard(String)` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Pops to the specified card by its card name. |
| `https://developers.google.com/apps-script/reference/card-service/navigation#popToRoot()` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Pops the card stack to the root card. |
| `https://developers.google.com/apps-script/reference/card-service/navigation#printJson()` | `String` | Prints the JSON representation of this object. |
| `https://developers.google.com/apps-script/reference/card-service/navigation#pushCard(Card)` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Pushes the given card onto the stack. |
| `https://developers.google.com/apps-script/reference/card-service/navigation#updateCard(Card)` | `https://developers.google.com/apps-script/reference/card-service/navigation` | Does an in-place replacement of the current card. |

## `https://developers.google.com/apps-script/reference/card-service/notification`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/notification#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/notification` | Sets the text to show in the notification. |

## `https://developers.google.com/apps-script/reference/card-service/on-close`

### Properties

| Property | Type | Description |
|---|---|---|
| `NOTHING` | `Enum` | Do nothing on close. |
| `RELOAD` | `Enum` | Reloads the add-on on when the window closes. |

## `https://developers.google.com/apps-script/reference/card-service/open-as`

### Properties

| Property | Type | Description |
|---|---|---|
| `FULL_SIZE` | `Enum` | Open in a full window or tab. |
| `OVERLAY` | `Enum` | Open as an overlay such as a pop-up. |

## `https://developers.google.com/apps-script/reference/card-service/open-link`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/open-link#setOnClose(OnClose)` | `https://developers.google.com/apps-script/reference/card-service/open-link` | Sets the behavior of the URL action when the URL window or tab is closed. |
| `https://developers.google.com/apps-script/reference/card-service/open-link#setOpenAs(OpenAs)` | `https://developers.google.com/apps-script/reference/card-service/open-link` | Sets the behavior of URL when it is opened. |
| `https://developers.google.com/apps-script/reference/card-service/open-link#setUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/open-link` | Sets the URL to be opened. |

## `https://developers.google.com/apps-script/reference/card-service/overflow-menu`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu#addMenuItem(OverflowMenuItem)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu` | Adds a menu item. |

## `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setDisabled(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets whether the menu item is disabled. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setStartIcon(IconImage)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets the menu item's leading icon. |
| `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/overflow-menu-item` | Sets the title of the menu item. |

## `https://developers.google.com/apps-script/reference/card-service/platform-data-source`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/platform-data-source#setCommonDataSource(CommonDataSource)` | `https://developers.google.com/apps-script/reference/card-service/platform-data-source` | Sets the data source from Google Workspace. |
| `https://developers.google.com/apps-script/reference/card-service/platform-data-source#setDriveDataSourceSpec(DriveDataSourceSpec)` | `https://developers.google.com/apps-script/reference/card-service/platform-data-source` | Sets the drive data source spec from Google Workspace. |
| `https://developers.google.com/apps-script/reference/card-service/platform-data-source#setHostAppDataSource(HostAppDataSource)` | `https://developers.google.com/apps-script/reference/card-service/platform-data-source` | Used to populate spaces in multiselect menu. |

## `https://developers.google.com/apps-script/reference/card-service/response-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `TYPE_UNSPECIFIED` | `Enum` | Default type that's handled as `NEW_MESSAGE`. |
| `NEW_MESSAGE` | `Enum` | Post as a new message in the topic. |
| `UPDATE_MESSAGE` | `Enum` | Update the Chat app's message. |
| `UPDATE_USER_MESSAGE_CARDS` | `Enum` | Update the cards on a user's message. |
| `REQUEST_CONFIG` | `Enum` | Privately ask the user for additional authentication or configuration. |
| `DIALOG` | `Enum` | Presents a dialog. |
| `UPDATE_WIDGET` | `Enum` | Widget text autocomplete options query. |

## `https://developers.google.com/apps-script/reference/card-service/selection-input`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/selection-input#addDataSourceConfig(DataSourceConfig)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the data source configs for the selection control. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#addItem(Object,Object,Boolean)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Adds a new item that can be selected. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#addMultiSelectItem(Object,Object,Boolean,Object,Object)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Adds a new item that can be selected, for multi-select menus. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setExternalDataSource(Action)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets external data source, such as a relational data base. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the key that identifies this selection input in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setMultiSelectMaxSelectedItems(Integer)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the maximum number of items that a user can select. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setMultiSelectMinQueryLength(Integer)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the number of text characters that a user inputs before the app queries autocomplete and displays suggested items on the card. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets an `https://developers.google.com/apps-script/reference/card-service/action` to be performed whenever the selection input changes. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setPlatformDataSource(PlatformDataSource)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets a data source from Google Workspace. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the title to be shown ahead of the input field. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setType(SelectionInputType)` | `https://developers.google.com/apps-script/reference/card-service/selection-input` | Sets the type of this input. |
| `https://developers.google.com/apps-script/reference/card-service/selection-input#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/selection-input-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `CHECK_BOX` | `Enum` | Checkbox input style. |
| `RADIO_BUTTON` | `Enum` | Radio button input style. |
| `DROPDOWN` | `Enum` | Dropdown menu selection input style. |
| `SWITCH` | `Enum` | A set of switches. |
| `MULTI_SELECT` | `Enum` | A multiselect menu for static or dynamic data. |
| `OVERFLOW_MENU` | `Enum` | A UI element that houses additional options that don't fit within the primary interface |

## `https://developers.google.com/apps-script/reference/card-service/status`

### Properties

| Property | Type | Description |
|---|---|---|
| `OK` | `Enum` | HTTP Mapping: 200 OK |
| `CANCELLED` | `Enum` | HTTP Mapping: 499 Client Closed Request |
| `UNKNOWN` | `Enum` | Unknown error. |
| `INVALID_ARGUMENT` | `Enum` | The client specified an invalid argument. |
| `DEADLINE_EXCEEDED` | `Enum` | HTTP Mapping: 504 Gateway Timeout |
| `NOT_FOUND` | `Enum` | HTTP Mapping: 404 Not Found |
| `ALREADY_EXISTS` | `Enum` | The entity that a client attempted to create already exists. |
| `PERMISSION_DENIED` | `Enum` | HTTP Mapping: 403 Forbidden |
| `UNAUTHENTICATED` | `Enum` | HTTP Mapping: 401 Unauthorized |
| `RESOURCE_EXHAUSTED` | `Enum` | HTTP Mapping: 429 Too Many Requests |
| `FAILED_PRECONDITION` | `Enum` | The operation was rejected because the system is not in a state required for the operation's execution. |
| `ABORTED` | `Enum` | The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. |
| `OUT_OF_RANGE` | `Enum` | The operation was attempted past the valid range. |
| `UNIMPLEMENTED` | `Enum` | HTTP Mapping: 501 Not Implemented |
| `INTERNAL` | `Enum` | Internal errors. |
| `UNAVAILABLE` | `Enum` | HTTP Mapping: 503 Service Unavailable |
| `DATA_LOSS` | `Enum` | Unrecoverable data loss or corruption. |

## `https://developers.google.com/apps-script/reference/card-service/suggestions`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/suggestions#addSuggestion(String)` | `https://developers.google.com/apps-script/reference/card-service/suggestions` | Add a text suggestion. |
| `https://developers.google.com/apps-script/reference/card-service/suggestions#addSuggestions(Object)` | `https://developers.google.com/apps-script/reference/card-service/suggestions` | Add a list of text suggestions. |

## `https://developers.google.com/apps-script/reference/card-service/suggestions-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/suggestions-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/suggestions-response` | Builds the current suggestions response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder#setSuggestions(Suggestions)` | `https://developers.google.com/apps-script/reference/card-service/suggestions-response-builder` | Sets the suggestions used in auto complete in text fields. |

## `https://developers.google.com/apps-script/reference/card-service/switch`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/switch#setControlType(SwitchControlType)` | `https://developers.google.com/apps-script/reference/card-service/switch` | Sets the control type of the switch. |
| `https://developers.google.com/apps-script/reference/card-service/switch#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/switch` | Sets the key that identifies this switch in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/switch#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/switch` | Sets the action to take when the switch is toggled. |
| `https://developers.google.com/apps-script/reference/card-service/switch#setSelected(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/switch` | Sets whether this switch should start as selected or unselected. |
| `https://developers.google.com/apps-script/reference/card-service/switch#setValue(String)` | `https://developers.google.com/apps-script/reference/card-service/switch` | Sets the value that is sent as the form input when this switch is toggled on. |

## `https://developers.google.com/apps-script/reference/card-service/switch-control-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `SWITCH` | `Enum` | Toggle-styled control for a switch widget. |
| `CHECK_BOX` | `Enum` | Checkbox-styled control for a switch widget. |

## `https://developers.google.com/apps-script/reference/card-service/text-button`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/text-button#setAltText(String)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the alternative text of the button for accessibility. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setAuthorizationAction(AuthorizationAction)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets an authorization action that opens a URL to the authorization flow when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setBackgroundColor(String)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the background color for `https://developers.google.com/apps-script/reference/card-service/text-button-style#FILLED` button. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setComposeAction(Action,ComposedEmailType)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets an action that composes a draft email when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setDisabled(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets whether the button is disabled. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setIcon(Icon)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets a predefined `https://developers.google.com/apps-script/reference/card-service/icon` to display on the button. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setIconUrl(String)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the URL of an image to use as this button's icon. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setMaterialIcon(MaterialIcon)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the material design icon. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setOnClickAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets an action that executes when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setOnClickOpenLinkAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets an action that opens a URL in a tab when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets a URL to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setOverflowMenu(OverflowMenu)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets a pop-up menu to be opened when the object is clicked. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the text that displays on the button. |
| `https://developers.google.com/apps-script/reference/card-service/text-button#setTextButtonStyle(TextButtonStyle)` | `https://developers.google.com/apps-script/reference/card-service/text-button` | Sets the button style. |

## `https://developers.google.com/apps-script/reference/card-service/text-button-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `OUTLINED` | `Enum` | Normal text button with clear background. |
| `TEXT` | `Enum` | DO NOT USE. |
| `FILLED` | `Enum` | Text button with colored background. |
| `FILLED_TONAL` | `Enum` | Normal text button with an alternative middle ground between filled and outlined buttons. |
| `BORDERLESS` | `Enum` | Normal text button with no border. |

## `https://developers.google.com/apps-script/reference/card-service/text-input`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/text-input#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the key that identifies this text input in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setHint(String)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets a hint for the text input. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setHostAppDataSource(HostAppDataSource)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets a data source from Google Workspace applications. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setInputMode(TextInputMode)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets whether this text input field supports variable insertion. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setMultiline(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets whether the input text shows on one line or multiple lines. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets an action to be performed whenever the text input changes. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setSuggestions(Suggestions)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the suggestions for autocompletion in the text field. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setSuggestionsAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the callback action to fetch suggestions based on user input for autocompletion. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the title to be shown above the input field. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setValidation(Validation)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the validation rule for this widget. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setValue(String)` | `https://developers.google.com/apps-script/reference/card-service/text-input` | Sets the pre-filled value to be set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/text-input#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/text-input-mode`

### Properties

| Property | Type | Description |
|---|---|---|
| `PLAIN_TEXT` | `Enum` | Only allow plain text input. |
| `RICH_TEXT` | `Enum` | Support both plain text input and variables in a text input. |

## `https://developers.google.com/apps-script/reference/card-service/text-paragraph`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph#setMaxLines(Integer)` | `https://developers.google.com/apps-script/reference/card-service/text-paragraph` | Sets the maximum number of lines of text that are displayed in the widget. |
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph#setText(String)` | `https://developers.google.com/apps-script/reference/card-service/text-paragraph` | Sets the text of the paragraph. |
| `https://developers.google.com/apps-script/reference/card-service/text-paragraph#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/time-picker`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/time-picker#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setFieldName(String)` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Sets the field name that identifies this picker in the event object that is generated when there is a UI interaction. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setHours(Integer)` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Sets the prefilled hours value to set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setMinutes(Integer)` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Sets the prefilled minutes value to set in the input field. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setOnChangeAction(Action)` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Sets an `https://developers.google.com/apps-script/reference/card-service/action` that the script performs whenever the picker input changes. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setTitle(String)` | `https://developers.google.com/apps-script/reference/card-service/time-picker` | Sets the title displayed above the input field. |
| `https://developers.google.com/apps-script/reference/card-service/time-picker#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/trigger`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/trigger#setActionRuleId(String)` | `https://developers.google.com/apps-script/reference/card-service/trigger` | Sets the action rule id for the trigger. |

## `https://developers.google.com/apps-script/reference/card-service/universal-action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/universal-action-response` | Builds the current universal action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder#displayAddOnCards(Object)` | `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder` | Displays the add-on with the specified cards. |
| `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder#setOpenLink(OpenLink)` | `https://developers.google.com/apps-script/reference/card-service/universal-action-response-builder` | Sets the URL to open when the universal action is selected. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response#printJson()` | `String` | Prints the JSON representation of this object. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response` | Builds the current update draft action response and validates it. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#setUpdateDraftBccRecipientsAction(UpdateDraftBccRecipientsAction)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Sets an action that updates the email Bcc recipients of a draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#setUpdateDraftBodyAction(UpdateDraftBodyAction)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Set an action that updates the email body of a draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#setUpdateDraftCcRecipientsAction(UpdateDraftCcRecipientsAction)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Sets an action that updates the Cc recipients of a draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#setUpdateDraftSubjectAction(UpdateDraftSubjectAction)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Sets an action that updates the subject line of a draft. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder#setUpdateDraftToRecipientsAction(UpdateDraftToRecipientsAction)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-action-response-builder` | Sets an action that updates the To recipients of a draft. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action#addUpdateBccRecipients(String)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-bcc-recipients-action` | Updates the Bcc recipients of an email draft. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#addUpdateContent(String,ContentType)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action` | Adds the specified content to the draft body. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#setUpdateType(UpdateDraftBodyType)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action` | Sets the `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` of this update action on the draft body. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `IN_PLACE_INSERT` | `Enum` | Default. |
| `INSERT_AT_START` | `Enum` | Update actions insert content at the start of message body. |
| `INSERT_AT_END` | `Enum` | Update actions insert content at the end of the message body. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action#addUpdateCcRecipients(String)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-cc-recipients-action` | Updates the Cc recipients of an email draft. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action#addUpdateSubject(String)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-subject-action` | Updates the subject line of an email draft. |

## `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action#addUpdateToRecipients(String)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-to-recipients-action` | Updates the To recipients of an email draft. |

## `https://developers.google.com/apps-script/reference/card-service/update-visibility-action`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-visibility-action#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/update-visibility-action` | Sets the visibility of widgets to visible or hidden. |

## `https://developers.google.com/apps-script/reference/card-service/updated-widget`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/updated-widget#addItem(Object,Object,Boolean,Object,Object)` | `https://developers.google.com/apps-script/reference/card-service/updated-widget` | Adds a new item that can be selected. |

## `https://developers.google.com/apps-script/reference/card-service/validation`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/validation#setCharacterLimit(Integer)` | `https://developers.google.com/apps-script/reference/card-service/validation` | Sets the character limit of the widget. |
| `https://developers.google.com/apps-script/reference/card-service/validation#setInputType(InputType)` | `https://developers.google.com/apps-script/reference/card-service/validation` | Sets the input type of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/variable-button-size`

### Properties

| Property | Type | Description |
|---|---|---|
| `UNSPECIFIED` | `Enum` | Automatically chooses `COMPACT` for Sidepanel, chooses `FULL_SIZE` otherwise. |
| `COMPACT` | `Enum` | For buttons labeled \`+\` |
| `FULL_SIZE` | `Enum` | For buttons labeled \`+ variable\` |

## `https://developers.google.com/apps-script/reference/card-service/vertical-alignment`

### Properties

| Property | Type | Description |
|---|---|---|
| `CENTER` | `Enum` | Vertically places the content at the center of the container. |
| `TOP` | `Enum` | Vertically places the content at the top of the container. |
| `BOTTOM` | `Enum` | Vertically places the content at the bottom of the container. |

## `https://developers.google.com/apps-script/reference/card-service/visibility`

### Properties

| Property | Type | Description |
|---|---|---|
| `VISIBLE` | `Enum` | The UI element is visible. |
| `HIDDEN` | `Enum` | The UI element is invisible. |
| `VISIBILITY_UNSPECIFIED` | `Enum` | The UI element is unspecified. |

## `https://developers.google.com/apps-script/reference/card-service/widget`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/widget#addEventAction(EventAction)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Adds the event action that can be performed on the widget. |
| `https://developers.google.com/apps-script/reference/card-service/widget#setId(String)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the unique ID assigned that's used to identify the widget to be mutated. |
| `https://developers.google.com/apps-script/reference/card-service/widget#setVisibility(Visibility)` | `https://developers.google.com/apps-script/reference/card-service/widget` | Sets the visibility of the widget. |

## `https://developers.google.com/apps-script/reference/card-service/workflow-data-source`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source#setIncludeVariables(Boolean)` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | Whether to include variables from the previous step in the data source. |
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source#setType(WorkflowDataSourceType)` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | Sets the type of the workflow data source. |
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source#setVariableButtonLabel(String)` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | Sets the label of the variable picker button, which displays after the \`+\` sign in FULL_SIZE button size. |
| `https://developers.google.com/apps-script/reference/card-service/workflow-data-source#setVariableButtonSize(VariableButtonSize)` | `https://developers.google.com/apps-script/reference/card-service/workflow-data-source` | Sets the size of the variable picker button, Workflow automatically uses COMPACT in side panel and FULL_SIZE in other cases if UNSPECIFIED is selected. |

## `https://developers.google.com/apps-script/reference/card-service/workflow-data-source-type`

### Properties

| Property | Type | Description |
|---|---|---|
| `UNKNOWN` | `Enum` | Default value. |
| `USER` | `Enum` | The data source is a user's data. |
| `SPACE` | `Enum` | The data source is a Google Chat space. |
| `USER_WITH_FREE_FORM` | `Enum` | The data source is a user's data; users can choose to view and select existing members from their Google Workspace organization or manually enter an email address or a valid domain. |

## `https://developers.google.com/apps-script/reference/card-service/wrap-style`

### Properties

| Property | Type | Description |
|---|---|---|
| `NOWRAP` | `Enum` | No wrapping. |
| `WRAP` | `Enum` | Wraps the content for any widgets in a column. |