Class: Google::Apps::Card::V1::OnClick

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

Represents how to respond when users click an interactive element on a card, such as a button.

Google Workspace add-ons and Chat apps:

Instance Attribute Summary collapse

Instance Attribute Details

#action::Google::Apps::Card::V1::Action

Returns If specified, an action is triggered by this onClick.

Note: The following fields are mutually exclusive: action, open_link, open_dynamic_link_action, card, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::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, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.



2277
2278
2279
2280
# File 'proto_docs/google/apps/card/v1/card.rb', line 2277

class OnClick
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#card::Google::Apps::Card::V1::Card

Returns A new card is pushed to the card stack after clicking if specified.

Google Workspace add-ons:

Note: The following fields are mutually exclusive: card, action, open_link, open_dynamic_link_action, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Apps::Card::V1::Card)

    A new card is pushed to the card stack after clicking if specified.

    Google Workspace add-ons:

    Note: The following fields are mutually exclusive: card, action, open_link, open_dynamic_link_action, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.



2277
2278
2279
2280
# File 'proto_docs/google/apps/card/v1/card.rb', line 2277

class OnClick
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

Returns 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:

Note: The following fields are mutually exclusive: open_dynamic_link_action, action, open_link, card, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::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.

    Google Workspace add-ons:

    Note: The following fields are mutually exclusive: open_dynamic_link_action, action, open_link, card, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.



2277
2278
2279
2280
# File 'proto_docs/google/apps/card/v1/card.rb', line 2277

class OnClick
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

Returns If specified, this onClick triggers an open link action.

Note: The following fields are mutually exclusive: open_link, action, open_dynamic_link_action, card, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::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, overflow_menu. If a field in that set is populated, all other fields in the set will automatically be cleared.



2277
2278
2279
2280
# File 'proto_docs/google/apps/card/v1/card.rb', line 2277

class OnClick
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#overflow_menu::Google::Apps::Card::V1::OverflowMenu

Returns If specified, this onClick opens an overflow menu.

Note: The following fields are mutually exclusive: overflow_menu, 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.

Returns:

  • (::Google::Apps::Card::V1::OverflowMenu)

    If specified, this onClick opens an overflow menu.

    Note: The following fields are mutually exclusive: overflow_menu, 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.



2277
2278
2279
2280
# File 'proto_docs/google/apps/card/v1/card.rb', line 2277

class OnClick
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end