Class: Google::Apis::CloudsearchV1::WidgetMarkup

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) ⇒ WidgetMarkup

Returns a new instance of WidgetMarkup.



21314
21315
21316
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21314

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

Instance Attribute Details

#buttonsArray<Google::Apis::CloudsearchV1::Button>

buttons is also oneof data and only one of these fields should be set. Corresponds to the JSON property buttons



21252
21253
21254
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21252

def buttons
  @buttons
end

#date_time_pickerGoogle::Apis::CloudsearchV1::DateTimePicker

Corresponds to the JSON property dateTimePicker



21257
21258
21259
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21257

def date_time_picker
  @date_time_picker
end

#dividerGoogle::Apis::CloudsearchV1::Divider

Corresponds to the JSON property divider



21262
21263
21264
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21262

def divider
  @divider
end

#gridGoogle::Apis::CloudsearchV1::Grid

Corresponds to the JSON property grid



21267
21268
21269
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21267

def grid
  @grid
end

#horizontal_alignmentString

The horizontal alignment of this widget. Corresponds to the JSON property horizontalAlignment

Returns:

  • (String)


21272
21273
21274
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21272

def horizontal_alignment
  @horizontal_alignment
end

#imageGoogle::Apis::CloudsearchV1::Image

Corresponds to the JSON property image



21277
21278
21279
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21277

def image
  @image
end

#image_key_valueGoogle::Apis::CloudsearchV1::ImageKeyValue

This is deprecated and please use KeyValue. Corresponds to the JSON property imageKeyValue



21282
21283
21284
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21282

def image_key_value
  @image_key_value
end

#key_valueGoogle::Apis::CloudsearchV1::KeyValue

Corresponds to the JSON property keyValue



21287
21288
21289
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21287

def key_value
  @key_value
end

This is deprecated and please use SelectionControl by setting type to DROPDOWN. Corresponds to the JSON property menu



21292
21293
21294
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21292

def menu
  @menu
end

#selection_controlGoogle::Apis::CloudsearchV1::SelectionControl

Corresponds to the JSON property selectionControl



21297
21298
21299
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21297

def selection_control
  @selection_control
end

#text_fieldGoogle::Apis::CloudsearchV1::TextField

Corresponds to the JSON property textField



21302
21303
21304
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21302

def text_field
  @text_field
end

#text_key_valueGoogle::Apis::CloudsearchV1::TextKeyValue

This is deprecated and please use KeyValue. Corresponds to the JSON property textKeyValue



21307
21308
21309
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21307

def text_key_value
  @text_key_value
end

#text_paragraphGoogle::Apis::CloudsearchV1::TextParagraph

Read-only Widgets Corresponds to the JSON property textParagraph



21312
21313
21314
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21312

def text_paragraph
  @text_paragraph
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21319

def update!(**args)
  @buttons = args[:buttons] if args.key?(:buttons)
  @date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
  @divider = args[:divider] if args.key?(:divider)
  @grid = args[:grid] if args.key?(:grid)
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
  @image = args[:image] if args.key?(:image)
  @image_key_value = args[:image_key_value] if args.key?(:image_key_value)
  @key_value = args[:key_value] if args.key?(:key_value)
  @menu = args[:menu] if args.key?(:menu)
  @selection_control = args[:selection_control] if args.key?(:selection_control)
  @text_field = args[:text_field] if args.key?(:text_field)
  @text_key_value = args[:text_key_value] if args.key?(:text_key_value)
  @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
end