Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupButton

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1WidgetMarkupButton

Returns a new instance of GoogleChatV1WidgetMarkupButton.



10208
10209
10210
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10208

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_buttonGoogle::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton

An image button with an onclick action. Corresponds to the JSON property imageButton



10201
10202
10203
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10201

def image_button
  @image_button
end

#text_buttonGoogle::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton

A button with text and onclick action. Corresponds to the JSON property textButton



10206
10207
10208
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10206

def text_button
  @text_button
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10213
10214
10215
10216
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10213

def update!(**args)
  @image_button = args[:image_button] if args.key?(:image_button)
  @text_button = args[:text_button] if args.key?(:text_button)
end