class Google::Apis::ChatV1::WidgetMarkup

A widget is a UI element that presents texts, images, etc.

Attributes

buttons[RW]

A list of buttons. Buttons is also oneof data and only one of these fields should be set. Corresponds to the JSON property `buttons` @return [Array<Google::Apis::ChatV1::Button>]

image[RW]

An image that is specified by a URL and can have an onclick action. Corresponds to the JSON property `image` @return [Google::Apis::ChatV1::Image]

key_value[RW]

A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button. Corresponds to the JSON property `keyValue` @return [Google::Apis::ChatV1::KeyValue]

text_paragraph[RW]

A paragraph of text. Formatted text supported. Corresponds to the JSON property `textParagraph` @return [Google::Apis::ChatV1::TextParagraph]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2894
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 2899
def update!(**args)
  @buttons = args[:buttons] if args.key?(:buttons)
  @image = args[:image] if args.key?(:image)
  @key_value = args[:key_value] if args.key?(:key_value)
  @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
end