Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton

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

An image button with an onclick action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1WidgetMarkupImageButton

Returns a new instance of GoogleChatV1WidgetMarkupImageButton.



8706
8707
8708
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8706

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

Instance Attribute Details

#iconString

The icon specified by an enum that indices to an icon provided by Chat API. Corresponds to the JSON property icon

Returns:

  • (String)


8688
8689
8690
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8688

def icon
  @icon
end

#icon_urlString

The icon specified by a URL. Corresponds to the JSON property iconUrl

Returns:

  • (String)


8693
8694
8695
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8693

def icon_url
  @icon_url
end

#nameString

The name of this image_button which will be used for accessibility. Default value will be provided if developers don't specify. Corresponds to the JSON property name

Returns:

  • (String)


8699
8700
8701
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8699

def name
  @name
end

#on_clickGoogle::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick

An onclick action (e.g. open a link). Corresponds to the JSON property onClick



8704
8705
8706
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8704

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8711
8712
8713
8714
8715
8716
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8711

def update!(**args)
  @icon = args[:icon] if args.key?(:icon)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @name = args[:name] if args.key?(:name)
  @on_click = args[:on_click] if args.key?(:on_click)
end