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

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

A button. Can be a text button or an image button.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image_button

def image_button() -> ::Google::Apps::Chat::V1::WidgetMarkup::ImageButton
Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::ImageButton) — A button with image and onclick action.

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

#image_button=

def image_button=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::ImageButton
Parameter
  • value (::Google::Apps::Chat::V1::WidgetMarkup::ImageButton) — A button with image and onclick action.

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

Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::ImageButton) — A button with image and onclick action.

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

#text_button

def text_button() -> ::Google::Apps::Chat::V1::WidgetMarkup::TextButton
Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::TextButton) — A button with text and onclick action.

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

#text_button=

def text_button=(value) -> ::Google::Apps::Chat::V1::WidgetMarkup::TextButton
Parameter
  • value (::Google::Apps::Chat::V1::WidgetMarkup::TextButton) — A button with text and onclick action.

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

Returns
  • (::Google::Apps::Chat::V1::WidgetMarkup::TextButton) — A button with text and onclick action.

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