Class WorkflowValidationErrorAction

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:

consthostAppAction=AddOnsResponseService.newHostAppAction()
.setWorkflowAction(
AddOnsResponseService.newWorkflowValidationErrorAction()
.setSeverity(AddOnsResponseService.ValidationErrorSeverity.CRITICAL)
);

Methods

MethodReturn typeBrief description
setSeverity(severity) WorkflowValidationErrorAction Sets the severity of the validation error.

Detailed documentation

setSeverity(severity)

Sets the severity of the validation error.

Parameters

NameTypeDescription
severityValidationErrorSeverity The severity of the validation error.

Return

WorkflowValidationErrorAction — This workflow validation error action.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月03日 UTC.