# Class RenderActionBuilder

RenderActionBuilder

A builder for `RenderAction` objects.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `build()` | `RenderAction` | Builds the current render action and validates it. |
| `setAction(action)` | `RenderActionBuilder` | Sets the action that add-ons can use to update the UI to the render action. |
| `setHostAppAction(hostAppAction)` | `RenderActionBuilder` | Sets the `HostAppAction` handled by individual host apps to the render action. |

## Detailed documentation

### `build()`

Builds the current render action and validates it.

#### Return


`RenderAction` --- A validated `RenderAction` object.

*** ** * ** ***

### `setAction(action)`

Sets the action that add-ons can use to update the UI to the render action.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `action` | `Action` | The action to use. |

#### Return


`RenderActionBuilder` --- This render action builder, for chaining.

*** ** * ** ***

### `setHostAppAction(hostAppAction)`

Sets the `HostAppAction` handled by individual host apps to the render action.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `hostAppAction` | `HostAppAction` | The `HostAppAction` to send to the host app. |

#### Return


`RenderActionBuilder` --- This render action builder, for chaining.