Interface OnClickOrBuilder (2.37.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CardOrBuilder

getDataCase()

public abstract OnClick.DataCase getDataCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ActionOrBuilder
public abstract OpenLink getOpenLink()

If specified, this onClick triggers an open link action.

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

Returns
TypeDescription
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
TypeDescription
OpenLinkOrBuilder

hasAction()

public abstract boolean hasAction()

If specified, an action is triggered by this onClick.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the openLink field is set.