Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::OnClick.
Represents how to respond when users click an interactive element on a card, such as a button.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::Google::Apps::Card::V1::Action
-
(::Google::Apps::Card::V1::Action) — If specified, an action is triggered by this
onClick
.Note: The following fields are mutually exclusive:
action
,open_link
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#action=
def action=(value) -> ::Google::Apps::Card::V1::Action
-
value (::Google::Apps::Card::V1::Action) — If specified, an action is triggered by this
onClick
.Note: The following fields are mutually exclusive:
action
,open_link
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Apps::Card::V1::Action) — If specified, an action is triggered by this
onClick
.Note: The following fields are mutually exclusive:
action
,open_link
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#card
def card() -> ::Google::Apps::Card::V1::Card
-
(::Google::Apps::Card::V1::Card) — A new card is pushed to the card stack after clicking if specified.
Note: The following fields are mutually exclusive:
card
,action
,open_link
,open_dynamic_link_action
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#card=
def card=(value) -> ::Google::Apps::Card::V1::Card
-
value (::Google::Apps::Card::V1::Card) — A new card is pushed to the card stack after clicking if specified.
Note: The following fields are mutually exclusive:
card
,action
,open_link
,open_dynamic_link_action
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Apps::Card::V1::Card) — A new card is pushed to the card stack after clicking if specified.
Note: The following fields are mutually exclusive:
card
,action
,open_link
,open_dynamic_link_action
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#open_dynamic_link_action
def open_dynamic_link_action() -> ::Google::Apps::Card::V1::Action
-
(::Google::Apps::Card::V1::Action) — 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.Note: The following fields are mutually exclusive:
open_dynamic_link_action
,action
,open_link
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#open_dynamic_link_action=
def open_dynamic_link_action=(value) -> ::Google::Apps::Card::V1::Action
-
value (::Google::Apps::Card::V1::Action) — 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.Note: The following fields are mutually exclusive:
open_dynamic_link_action
,action
,open_link
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Apps::Card::V1::Action) — 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.Note: The following fields are mutually exclusive:
open_dynamic_link_action
,action
,open_link
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#open_link
def open_link() -> ::Google::Apps::Card::V1::OpenLink
-
(::Google::Apps::Card::V1::OpenLink) — If specified, this
onClick
triggers an open link action.Note: The following fields are mutually exclusive:
open_link
,action
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#open_link=
def open_link=(value) -> ::Google::Apps::Card::V1::OpenLink
-
value (::Google::Apps::Card::V1::OpenLink) — If specified, this
onClick
triggers an open link action.Note: The following fields are mutually exclusive:
open_link
,action
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Apps::Card::V1::OpenLink) — If specified, this
onClick
triggers an open link action.Note: The following fields are mutually exclusive:
open_link
,action
,open_dynamic_link_action
,card
. If a field in that set is populated, all other fields in the set will automatically be cleared.