Package com.google.apps.card.v1
Class OnClick.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
com.google.apps.card.v1.OnClick.Builder
- All Implemented Interfaces:
OnClickOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OnClick
public static final class OnClick.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
implements OnClickOrBuilder
Represents how to respond when users click an interactive element on a card, such as a button. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):Protobuf type
google.apps.card.v1.OnClick-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If specified, an action is triggered by this `onClick`.A new card is pushed to the card stack after clicking if specified.An add-on triggers this action when the action needs to open a link.If specified, this `onClick` triggers an open link action.If specified, this `onClick` opens an overflow menu.If specified, an action is triggered by this `onClick`.If specified, an action is triggered by this `onClick`.If specified, an action is triggered by this `onClick`.getCard()A new card is pushed to the card stack after clicking if specified.A new card is pushed to the card stack after clicking if specified.A new card is pushed to the card stack after clicking if specified.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn add-on triggers this action when the action needs to open a link.An add-on triggers this action when the action needs to open a link.An add-on triggers this action when the action needs to open a link.If specified, this `onClick` triggers an open link action.If specified, this `onClick` triggers an open link action.If specified, this `onClick` triggers an open link action.If specified, this `onClick` opens an overflow menu.If specified, this `onClick` opens an overflow menu.If specified, this `onClick` opens an overflow menu.booleanIf specified, an action is triggered by this `onClick`.booleanhasCard()A new card is pushed to the card stack after clicking if specified.booleanAn add-on triggers this action when the action needs to open a link.booleanIf specified, this `onClick` triggers an open link action.booleanIf specified, this `onClick` opens an overflow menu.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAction(Action value) If specified, an action is triggered by this `onClick`.A new card is pushed to the card stack after clicking if specified.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOpenDynamicLinkAction(Action value) An add-on triggers this action when the action needs to open a link.mergeOpenLink(OpenLink value) If specified, this `onClick` triggers an open link action.mergeOverflowMenu(OverflowMenu value) If specified, this `onClick` opens an overflow menu.If specified, an action is triggered by this `onClick`.setAction(Action.Builder builderForValue) If specified, an action is triggered by this `onClick`.A new card is pushed to the card stack after clicking if specified.setCard(Card.Builder builderForValue) A new card is pushed to the card stack after clicking if specified.setOpenDynamicLinkAction(Action value) An add-on triggers this action when the action needs to open a link.setOpenDynamicLinkAction(Action.Builder builderForValue) An add-on triggers this action when the action needs to open a link.setOpenLink(OpenLink value) If specified, this `onClick` triggers an open link action.setOpenLink(OpenLink.Builder builderForValue) If specified, this `onClick` triggers an open link action.setOverflowMenu(OverflowMenu value) If specified, this `onClick` opens an overflow menu.setOverflowMenu(OverflowMenu.Builder builderForValue) If specified, this `onClick` opens an overflow menu.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnClick.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OnClick.Builder>
-
mergeFrom
public OnClick.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnClick.Builder>- Throws:
IOException
-
getDataCase
- Specified by:
getDataCasein interfaceOnClickOrBuilder
-
clearData
-
hasAction
public boolean hasAction()If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1;- Specified by:
hasActionin interfaceOnClickOrBuilder- Returns:
- Whether the action field is set.
-
getAction
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1;- Specified by:
getActionin interfaceOnClickOrBuilder- Returns:
- The action.
-
setAction
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1; -
setAction
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1; -
mergeAction
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1; -
clearAction
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1; -
getActionBuilder
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1; -
getActionOrBuilder
If specified, an action is triggered by this `onClick`.
.google.apps.card.v1.Action action = 1;- Specified by:
getActionOrBuilderin interfaceOnClickOrBuilder
-
hasOpenLink
public boolean hasOpenLink()If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;- Specified by:
hasOpenLinkin interfaceOnClickOrBuilder- Returns:
- Whether the openLink field is set.
-
getOpenLink
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;- Specified by:
getOpenLinkin interfaceOnClickOrBuilder- Returns:
- The openLink.
-
setOpenLink
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2; -
setOpenLink
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2; -
mergeOpenLink
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2; -
clearOpenLink
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2; -
getOpenLinkBuilder
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2; -
getOpenLinkOrBuilder
If specified, this `onClick` triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;- Specified by:
getOpenLinkOrBuilderin interfaceOnClickOrBuilder
-
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 Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3;- Specified by:
hasOpenDynamicLinkActionin interfaceOnClickOrBuilder- Returns:
- Whether the openDynamicLinkAction field is set.
-
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](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3;- Specified by:
getOpenDynamicLinkActionin interfaceOnClickOrBuilder- Returns:
- The openDynamicLinkAction.
-
setOpenDynamicLinkAction
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](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3; -
setOpenDynamicLinkAction
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](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3; -
mergeOpenDynamicLinkAction
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](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3; -
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 Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3; -
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 Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3; -
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](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action open_dynamic_link_action = 3;- Specified by:
getOpenDynamicLinkActionOrBuilderin interfaceOnClickOrBuilder
-
hasCard
public boolean hasCard()A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4;- Specified by:
hasCardin interfaceOnClickOrBuilder- Returns:
- Whether the card field is set.
-
getCard
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4;- Specified by:
getCardin interfaceOnClickOrBuilder- Returns:
- The card.
-
setCard
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4; -
setCard
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4; -
mergeCard
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4; -
clearCard
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4; -
getCardBuilder
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4; -
getCardOrBuilder
A new card is pushed to the card stack after clicking if specified. [Google Workspace add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Card card = 4;- Specified by:
getCardOrBuilderin interfaceOnClickOrBuilder
-
hasOverflowMenu
public boolean hasOverflowMenu()If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;- Specified by:
hasOverflowMenuin interfaceOnClickOrBuilder- Returns:
- Whether the overflowMenu field is set.
-
getOverflowMenu
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;- Specified by:
getOverflowMenuin interfaceOnClickOrBuilder- Returns:
- The overflowMenu.
-
setOverflowMenu
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8; -
setOverflowMenu
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8; -
mergeOverflowMenu
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8; -
clearOverflowMenu
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8; -
getOverflowMenuBuilder
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8; -
getOverflowMenuOrBuilder
If specified, this `onClick` opens an overflow menu.
.google.apps.card.v1.OverflowMenu overflow_menu = 8;- Specified by:
getOverflowMenuOrBuilderin interfaceOnClickOrBuilder
-