WorkflowValidationErrorAction

This action indicates that the host app (Google Workspace Studio) should display a validation
error.

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

Sample usage:

```javascript
const hostAppAction = AddOnsResponseService.newHostAppAction()
   .setWorkflowAction(
     AddOnsResponseService.newWorkflowValidationErrorAction()
       .setSeverity(AddOnsResponseService.ValidationErrorSeverity.CRITICAL)
   );
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/workflow-validation-error-action#setSeverity(ValidationErrorSeverity)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/workflow-validation-error-action#` | Sets the severity of the validation error. |

## Detailed documentation

### `setSeverity(severity)`

Sets the severity of the validation error.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `severity` | `https://developers.google.com/apps-script/reference/add-ons-response-service/validation-error-severity` | The severity of the validation error. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/workflow-validation-error-action#` --- This workflow validation error action.