Class: Google::Apis::CloudsearchV1::KeyValue
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::KeyValue
- 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
Instance Attribute Summary collapse
-
#bottom_label ⇒ String
Formatted text supported.
-
#button ⇒ Google::Apis::CloudsearchV1::Button
Corresponds to the JSON property
button. -
#content ⇒ String
Formatted text supported and always required.
-
#content_multiline ⇒ Boolean
(also: #content_multiline?)
Corresponds to the JSON property
contentMultiline. -
#end_icon ⇒ Google::Apis::CloudsearchV1::IconImage
Corresponds to the JSON property
endIcon. -
#icon ⇒ String
Corresponds to the JSON property
icon. -
#icon_alt_text ⇒ String
The alternative text of this icon_url which will be used for accessibility.
-
#icon_url ⇒ String
Corresponds to the JSON property
iconUrl. -
#image_style ⇒ String
Corresponds to the JSON property
imageStyle. -
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Only the top/bottom label + content region is clickable.
-
#start_icon ⇒ Google::Apis::CloudsearchV1::IconImage
The optional icon to display before the text content.
-
#switch_widget ⇒ Google::Apis::CloudsearchV1::SwitchWidget
Corresponds to the JSON property
switchWidget. -
#top_label ⇒ String
Formatted text supported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyValue
constructor
A new instance of KeyValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyValue
Returns a new instance of KeyValue.
12164 12165 12166 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom_label ⇒ String
Formatted text supported.
Corresponds to the JSON property bottomLabel
12101 12102 12103 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12101 def bottom_label @bottom_label end |
#button ⇒ Google::Apis::CloudsearchV1::Button
Corresponds to the JSON property button
12106 12107 12108 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12106 def @button end |
#content ⇒ String
Formatted text supported and always required.
Corresponds to the JSON property content
12111 12112 12113 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12111 def content @content end |
#content_multiline ⇒ Boolean Also known as: content_multiline?
Corresponds to the JSON property contentMultiline
12116 12117 12118 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12116 def content_multiline @content_multiline end |
#end_icon ⇒ Google::Apis::CloudsearchV1::IconImage
Corresponds to the JSON property endIcon
12122 12123 12124 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12122 def end_icon @end_icon end |
#icon ⇒ String
Corresponds to the JSON property icon
12127 12128 12129 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12127 def icon @icon end |
#icon_alt_text ⇒ String
The alternative text of this icon_url which will be used for accessibility.
Corresponds to the JSON property iconAltText
12132 12133 12134 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12132 def icon_alt_text @icon_alt_text end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
12137 12138 12139 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12137 def icon_url @icon_url end |
#image_style ⇒ String
Corresponds to the JSON property imageStyle
12142 12143 12144 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12142 def image_style @image_style end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Only the top/bottom label + content region is clickable.
Corresponds to the JSON property onClick
12147 12148 12149 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12147 def on_click @on_click end |
#start_icon ⇒ Google::Apis::CloudsearchV1::IconImage
The optional icon to display before the text content.
Corresponds to the JSON property startIcon
12152 12153 12154 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12152 def start_icon @start_icon end |
#switch_widget ⇒ Google::Apis::CloudsearchV1::SwitchWidget
Corresponds to the JSON property switchWidget
12157 12158 12159 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12157 def @switch_widget end |
#top_label ⇒ String
Formatted text supported.
Corresponds to the JSON property topLabel
12162 12163 12164 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12162 def top_label @top_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12169 def update!(**args) @bottom_label = args[:bottom_label] if args.key?(:bottom_label) @button = args[:button] if args.key?(:button) @content = args[:content] if args.key?(:content) @content_multiline = args[:content_multiline] if args.key?(:content_multiline) @end_icon = args[:end_icon] if args.key?(:end_icon) @icon = args[:icon] if args.key?(:icon) @icon_alt_text = args[:icon_alt_text] if args.key?(:icon_alt_text) @icon_url = args[:icon_url] if args.key?(:icon_url) @image_style = args[:image_style] if args.key?(:image_style) @on_click = args[:on_click] if args.key?(:on_click) @start_icon = args[:start_icon] if args.key?(:start_icon) @switch_widget = args[:switch_widget] if args.key?(:switch_widget) @top_label = args[:top_label] if args.key?(:top_label) end |