Class: Google::Apis::CloudsearchV1::KeyValue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyValue

Returns a new instance of KeyValue.



12252
12253
12254
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12252

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

Instance Attribute Details

#bottom_labelString

Formatted text supported. Corresponds to the JSON property bottomLabel

Returns:

  • (String)


12189
12190
12191
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12189

def bottom_label
  @bottom_label
end

#buttonGoogle::Apis::CloudsearchV1::Button

Corresponds to the JSON property button



12194
12195
12196
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12194

def button
  @button
end

#contentString

Formatted text supported and always required. Corresponds to the JSON property content

Returns:

  • (String)


12199
12200
12201
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12199

def content
  @content
end

#content_multilineBoolean Also known as: content_multiline?

Corresponds to the JSON property contentMultiline

Returns:

  • (Boolean)


12204
12205
12206
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12204

def content_multiline
  @content_multiline
end

#end_iconGoogle::Apis::CloudsearchV1::IconImage

Corresponds to the JSON property endIcon



12210
12211
12212
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12210

def end_icon
  @end_icon
end

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


12215
12216
12217
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12215

def icon
  @icon
end

#icon_alt_textString

The alternative text of this icon_url which will be used for accessibility. Corresponds to the JSON property iconAltText

Returns:

  • (String)


12220
12221
12222
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12220

def icon_alt_text
  @icon_alt_text
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


12225
12226
12227
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12225

def icon_url
  @icon_url
end

#image_styleString

Corresponds to the JSON property imageStyle

Returns:

  • (String)


12230
12231
12232
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12230

def image_style
  @image_style
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Only the top/bottom label + content region is clickable. Corresponds to the JSON property onClick



12235
12236
12237
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12235

def on_click
  @on_click
end

#start_iconGoogle::Apis::CloudsearchV1::IconImage

The optional icon to display before the text content. Corresponds to the JSON property startIcon



12240
12241
12242
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12240

def start_icon
  @start_icon
end

#switch_widgetGoogle::Apis::CloudsearchV1::SwitchWidget

Corresponds to the JSON property switchWidget



12245
12246
12247
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12245

def switch_widget
  @switch_widget
end

#top_labelString

Formatted text supported. Corresponds to the JSON property topLabel

Returns:

  • (String)


12250
12251
12252
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12250

def top_label
  @top_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12257

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