Google Chat V1 API - Class Google::Apps::Chat::V1::WidgetMarkup::ImageButton (v0.8.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::WidgetMarkup::ImageButton.

An image button with an onclick action.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#icon

def icon() -> ::Google::Apps::Chat::V1::WidgetMarkup::Icon
Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an enum that indices to an icon provided by Chat API.

    Note: The following fields are mutually exclusive: icon, icon_url. If a field in that set is populated, all other fields in the set will automatically be cleared.

#icon=

def icon=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::Icon
Parameter
  • value (::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an enum that indices to an icon provided by Chat API.

    Note: The following fields are mutually exclusive: icon, icon_url. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::Icon) — The icon specified by an enum that indices to an icon provided by Chat API.

    Note: The following fields are mutually exclusive: icon, icon_url. If a field in that set is populated, all other fields in the set will automatically be cleared.

#icon_url

def icon_url() -> ::String
Returns
  • (::String) — The icon specified by a URL.

    Note: The following fields are mutually exclusive: icon_url, icon. If a field in that set is populated, all other fields in the set will automatically be cleared.

#icon_url=

def icon_url=(value) -> ::String
Parameter
  • value (::String) — The icon specified by a URL.

    Note: The following fields are mutually exclusive: icon_url, icon. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — The icon specified by a URL.

    Note: The following fields are mutually exclusive: icon_url, icon. If a field in that set is populated, all other fields in the set will automatically be cleared.

#name

def name() -> ::String
Returns
  • (::String) — The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.
Returns
  • (::String) — The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

#on_click

def on_click() -> ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Returns

#on_click=

def on_click=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Parameter
Returns