Interface OnClickOrBuilder (2.39.1)

public interface OnClickOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract Action getAction()

If specified, an action is triggered by this onClick.

.google.apps.card.v1.Action action = 1;

Returns
Type Description
Action

The action.

getActionOrBuilder()

public abstract ActionOrBuilder getActionOrBuilder()

If specified, an action is triggered by this onClick.

.google.apps.card.v1.Action action = 1;

Returns
Type Description
ActionOrBuilder

getCard()

public abstract Card getCard()

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons:

.google.apps.card.v1.Card card = 4;

Returns
Type Description
Card

The card.

getCardOrBuilder()

public abstract CardOrBuilder getCardOrBuilder()

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons:

.google.apps.card.v1.Card card = 4;

Returns
Type Description
CardOrBuilder

getDataCase()

public abstract OnClick.DataCase getDataCase()
Returns
Type Description
OnClick.DataCase

getOpenDynamicLinkAction()

public abstract Action getOpenDynamicLinkAction()

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons:

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type Description
Action

The openDynamicLinkAction.

getOpenDynamicLinkActionOrBuilder()

public abstract ActionOrBuilder getOpenDynamicLinkActionOrBuilder()

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons:

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type Description
ActionOrBuilder
public abstract OpenLink getOpenLink()

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type Description
OpenLink

The openLink.

getOpenLinkOrBuilder()

public abstract OpenLinkOrBuilder getOpenLinkOrBuilder()

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type Description
OpenLinkOrBuilder

hasAction()

public abstract boolean hasAction()

If specified, an action is triggered by this onClick.

.google.apps.card.v1.Action action = 1;

Returns
Type Description
boolean

Whether the action field is set.

hasCard()

public abstract boolean hasCard()

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons:

.google.apps.card.v1.Card card = 4;

Returns
Type Description
boolean

Whether the card field is set.

hasOpenDynamicLinkAction()

public abstract boolean hasOpenDynamicLinkAction()

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons:

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type Description
boolean

Whether the openDynamicLinkAction field is set.

public abstract boolean hasOpenLink()

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type Description
boolean

Whether the openLink field is set.