Class Action

Action

An action that Google Workspace add-ons that extend Google Workspace Studio can use to render a new card.

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

constlink=AddOnsResponseService.newLink().setUrl('https://www.google.com');
constaction=
AddOnsResponseService.newAction()
.setLink(link);
constrenderAction=AddOnsResponseService.newRenderActionBuilder().setAction(action).build();

Methods

MethodReturn typeBrief description
addModifyCard(modifyCard) Action Adds a ModifyCard operation to the action.
addNavigation(navigation) Action Adds a card navigation to the action.

Detailed documentation

addModifyCard(modifyCard)

Adds a ModifyCard operation to the action.

Parameters

NameTypeDescription
modifyCardModifyCard The ModifyCard to use.

Return

Action — This action object, for chaining.


addNavigation(navigation)

Adds a card navigation to the action.

Parameters

NameTypeDescription
navigationNavigation The Navigation to use.

Return

Action — This action object, for chaining.

Throws

Error — if the navigation argument is invalid.

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.