- 2.63.1 (latest)
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class OnClick.Builder extends GeneratedMessageV3.Builder<OnClick.Builder> implements OnClickOrBuilderRepresents how to respond when users click an interactive element on a card, such as a button.
Google Workspace add-ons and Chat apps:
Protobuf type google.apps.card.v1.OnClick
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OnClick.BuilderImplements
OnClickOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OnClick.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
build()
public OnClick build()| Returns | |
|---|---|
| Type | Description |
OnClick |
|
buildPartial()
public OnClick buildPartial()| Returns | |
|---|---|
| Type | Description |
OnClick |
|
clear()
public OnClick.Builder clear()| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearAction()
public OnClick.Builder clearAction() If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearCard()
public OnClick.Builder clearCard()A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearData()
public OnClick.Builder clearData()| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public OnClick.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public OnClick.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearOpenDynamicLinkAction()
public OnClick.Builder clearOpenDynamicLinkAction() 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearOpenLink()
public OnClick.Builder clearOpenLink() If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clearOverflowMenu()
public OnClick.Builder clearOverflowMenu() If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
clone()
public OnClick.Builder clone()| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
getAction()
public Action getAction() If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Returns | |
|---|---|
| Type | Description |
Action |
The action. |
getActionBuilder()
public Action.Builder getActionBuilder() If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Returns | |
|---|---|
| Type | Description |
Action.Builder |
|
getActionOrBuilder()
public ActionOrBuilder getActionOrBuilder() If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Returns | |
|---|---|
| Type | Description |
ActionOrBuilder |
|
getCard()
public Card getCard()A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Returns | |
|---|---|
| Type | Description |
Card |
The card. |
getCardBuilder()
public Card.Builder getCardBuilder()A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Returns | |
|---|---|
| Type | Description |
Card.Builder |
|
getCardOrBuilder()
public CardOrBuilder getCardOrBuilder()A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Returns | |
|---|---|
| Type | Description |
CardOrBuilder |
|
getDataCase()
public OnClick.DataCase getDataCase()| Returns | |
|---|---|
| Type | Description |
OnClick.DataCase |
|
getDefaultInstanceForType()
public OnClick getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OnClick |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOpenDynamicLinkAction()
public 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Returns | |
|---|---|
| Type | Description |
Action |
The openDynamicLinkAction. |
getOpenDynamicLinkActionBuilder()
public Action.Builder getOpenDynamicLinkActionBuilder() 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Returns | |
|---|---|
| Type | Description |
Action.Builder |
|
getOpenDynamicLinkActionOrBuilder()
public 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Returns | |
|---|---|
| Type | Description |
ActionOrBuilder |
|
getOpenLink()
public 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. |
getOpenLinkBuilder()
public OpenLink.Builder getOpenLinkBuilder() If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
|
getOpenLinkOrBuilder()
public OpenLinkOrBuilder getOpenLinkOrBuilder() If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Returns | |
|---|---|
| Type | Description |
OpenLinkOrBuilder |
|
getOverflowMenu()
public OverflowMenu getOverflowMenu() If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Returns | |
|---|---|
| Type | Description |
OverflowMenu |
The overflowMenu. |
getOverflowMenuBuilder()
public OverflowMenu.Builder getOverflowMenuBuilder() If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Returns | |
|---|---|
| Type | Description |
OverflowMenu.Builder |
|
getOverflowMenuOrBuilder()
public OverflowMenuOrBuilder getOverflowMenuOrBuilder() If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Returns | |
|---|---|
| Type | Description |
OverflowMenuOrBuilder |
|
hasAction()
public 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 boolean hasCard()A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the card field is set. |
hasOpenDynamicLinkAction()
public 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the openDynamicLinkAction field is set. |
hasOpenLink()
public 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. |
hasOverflowMenu()
public boolean hasOverflowMenu() If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the overflowMenu field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAction(Action value)
public OnClick.Builder mergeAction(Action value) If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeCard(Card value)
public OnClick.Builder mergeCard(Card value)A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Card |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeFrom(OnClick other)
public OnClick.Builder mergeFrom(OnClick other)| Parameter | |
|---|---|
| Name | Description |
other |
OnClick |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OnClick.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OnClick.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeOpenDynamicLinkAction(Action value)
public OnClick.Builder mergeOpenDynamicLinkAction(Action value) 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeOpenLink(OpenLink value)
public OnClick.Builder mergeOpenLink(OpenLink value) If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
OpenLink |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeOverflowMenu(OverflowMenu value)
public OnClick.Builder mergeOverflowMenu(OverflowMenu value) If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
OverflowMenu |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OnClick.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setAction(Action value)
public OnClick.Builder setAction(Action value) If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setAction(Action.Builder builderForValue)
public OnClick.Builder setAction(Action.Builder builderForValue) If specified, an action is triggered by this onClick.
.google.apps.card.v1.Action action = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Action.Builder |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setCard(Card value)
public OnClick.Builder setCard(Card value)A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Card |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setCard(Card.Builder builderForValue)
public OnClick.Builder setCard(Card.Builder builderForValue)A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Card.Builder |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public OnClick.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOpenDynamicLinkAction(Action value)
public OnClick.Builder setOpenDynamicLinkAction(Action value) 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOpenDynamicLinkAction(Action.Builder builderForValue)
public OnClick.Builder setOpenDynamicLinkAction(Action.Builder builderForValue) 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.apps.card.v1.Action open_dynamic_link_action = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Action.Builder |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOpenLink(OpenLink value)
public OnClick.Builder setOpenLink(OpenLink value) If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
OpenLink |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOpenLink(OpenLink.Builder builderForValue)
public OnClick.Builder setOpenLink(OpenLink.Builder builderForValue) If specified, this onClick triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OpenLink.Builder |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOverflowMenu(OverflowMenu value)
public OnClick.Builder setOverflowMenu(OverflowMenu value) If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
OverflowMenu |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setOverflowMenu(OverflowMenu.Builder builderForValue)
public OnClick.Builder setOverflowMenu(OverflowMenu.Builder builderForValue) If specified, this onClick opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OverflowMenu.Builder |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OnClick.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final OnClick.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OnClick.Builder |
|