Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageTextInput

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

A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageTextInput

Returns a new instance of AppsDynamiteStorageTextInput.



3734
3735
3736
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3734

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

Instance Attribute Details

#auto_complete_actionGoogle::Apis::CloudsearchV1::AppsDynamiteStorageAction

An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property autoCompleteAction



3695
3696
3697
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3695

def auto_complete_action
  @auto_complete_action
end

#hint_textString

The hint text. Corresponds to the JSON property hintText

Returns:

  • (String)


3700
3701
3702
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3700

def hint_text
  @hint_text
end

#initial_suggestionsGoogle::Apis::CloudsearchV1::AppsDynamiteStorageSuggestions

A container wrapping elements necessary for showing suggestion items used in text input autocomplete. Corresponds to the JSON property initialSuggestions



3706
3707
3708
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3706

def initial_suggestions
  @initial_suggestions
end

#labelString

At least one of label and hintText must be specified. Corresponds to the JSON property label

Returns:

  • (String)


3711
3712
3713
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3711

def label
  @label
end

#nameString

The name of the text input which is used in formInput. Corresponds to the JSON property name

Returns:

  • (String)


3716
3717
3718
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3716

def name
  @name
end

#on_change_actionGoogle::Apis::CloudsearchV1::AppsDynamiteStorageAction

An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property onChangeAction



3722
3723
3724
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3722

def on_change_action
  @on_change_action
end

#typeString

The style of the text, for example, a single line or multiple lines. Corresponds to the JSON property type

Returns:

  • (String)


3727
3728
3729
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3727

def type
  @type
end

#valueString

The default value when there is no input from the user. Corresponds to the JSON property value

Returns:

  • (String)


3732
3733
3734
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3732

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3739

def update!(**args)
  @auto_complete_action = args[:auto_complete_action] if args.key?(:auto_complete_action)
  @hint_text = args[:hint_text] if args.key?(:hint_text)
  @initial_suggestions = args[:initial_suggestions] if args.key?(:initial_suggestions)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @on_change_action = args[:on_change_action] if args.key?(:on_change_action)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end