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