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.



18039
18040
18041
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18039

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



17977
17978
17979
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17977

def buttons
  @buttons
end

#date_time_pickerGoogle::Apis::CloudsearchV1::DateTimePicker

Corresponds to the JSON property dateTimePicker



17982
17983
17984
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17982

def date_time_picker
  @date_time_picker
end

#dividerGoogle::Apis::CloudsearchV1::Divider

Corresponds to the JSON property divider



17987
17988
17989
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17987

def divider
  @divider
end

#gridGoogle::Apis::CloudsearchV1::Grid

Corresponds to the JSON property grid



17992
17993
17994
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17992

def grid
  @grid
end

#horizontal_alignmentString

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

Returns:

  • (String)


17997
17998
17999
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17997

def horizontal_alignment
  @horizontal_alignment
end

#imageGoogle::Apis::CloudsearchV1::Image

Corresponds to the JSON property image



18002
18003
18004
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18002

def image
  @image
end

#image_key_valueGoogle::Apis::CloudsearchV1::ImageKeyValue

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



18007
18008
18009
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18007

def image_key_value
  @image_key_value
end

#key_valueGoogle::Apis::CloudsearchV1::KeyValue

Corresponds to the JSON property keyValue



18012
18013
18014
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18012

def key_value
  @key_value
end

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



18017
18018
18019
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18017

def menu
  @menu
end

#selection_controlGoogle::Apis::CloudsearchV1::SelectionControl

Corresponds to the JSON property selectionControl



18022
18023
18024
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18022

def selection_control
  @selection_control
end

#text_fieldGoogle::Apis::CloudsearchV1::TextField

Corresponds to the JSON property textField



18027
18028
18029
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18027

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



18032
18033
18034
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18032

def text_key_value
  @text_key_value
end

#text_paragraphGoogle::Apis::CloudsearchV1::TextParagraph

Read-only Widgets Corresponds to the JSON property textParagraph



18037
18038
18039
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18037

def text_paragraph
  @text_paragraph
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18044

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