public
final
class
OnClick
extends
GeneratedMessageV3
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 :
Protobuf type google.apps.card.v1.OnClick
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OnClickImplements
OnClickOrBuilderStatic Fields
ACTION_FIELD_NUMBER
public
static
final
int
ACTION_FIELD_NUMBER
CARD_FIELD_NUMBER
public
static
final
int
CARD_FIELD_NUMBER
OPEN_DYNAMIC_LINK_ACTION_FIELD_NUMBER
public
static
final
int
OPEN_DYNAMIC_LINK_ACTION_FIELD_NUMBER
OPEN_LINK_FIELD_NUMBER
public
static
final
int
OPEN_LINK_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
OnClick
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
OnClick
.
Builder
newBuilder
()
newBuilder(OnClick prototype)
public
static
OnClick
.
Builder
newBuilder
(
OnClick
prototype
)
parseDelimitedFrom(InputStream input)
public
static
OnClick
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
OnClick
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
OnClick
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
OnClick
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
OnClick
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
OnClick
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
OnClick
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<OnClick>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getAction()
public
Action
getAction
()
If specified, an action is triggered by this onClick
.
.google.apps.card.v1.Action action = 1;
getActionOrBuilder()
public
ActionOrBuilder
getActionOrBuilder
()
If specified, an action is triggered by this onClick
.
.google.apps.card.v1.Action action = 1;
getCard()
public
Card
getCard
()
A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
getCardOrBuilder()
public
CardOrBuilder
getCardOrBuilder
()
A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
getDataCase()
public
OnClick
.
DataCase
getDataCase
()
getDefaultInstanceForType()
public
OnClick
getDefaultInstanceForType
()
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;
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;
getOpenLink()
public
OpenLink
getOpenLink
()
If specified, this onClick
triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
getOpenLinkOrBuilder()
public
OpenLinkOrBuilder
getOpenLinkOrBuilder
()
If specified, this onClick
triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
getParserForType()
public
Parser<OnClick>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
hasAction()
public
boolean
hasAction
()
If specified, an action is triggered by this onClick
.
.google.apps.card.v1.Action action = 1;
hasCard()
public
boolean
hasCard
()
A new card is pushed to the card stack after clicking if specified.
.google.apps.card.v1.Card card = 4;
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;
hasOpenLink()
public
boolean
hasOpenLink
()
If specified, this onClick
triggers an open link action.
.google.apps.card.v1.OpenLink open_link = 2;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
OnClick
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
OnClick
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
OnClick
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)