class Google::Apis::ChatV1::GoogleAppsCardV1TextInput
A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions.
Attributes
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` @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
The hint text. Corresponds to the JSON property `hintText` @return [String]
A container wrapping elements necessary for showing suggestion items used in text input autocomplete. Corresponds to the JSON property `initialSuggestions` @return [Google::Apis::ChatV1::GoogleAppsCardV1Suggestions]
At least one of label and hintText must be specified. Corresponds to the JSON property `label` @return [String]
The name of the text input which is used in formInput. Corresponds to the JSON property `name` @return [String]
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` @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
The style of the text, for example, a single line or multiple lines. Corresponds to the JSON property `type` @return [String]
The default value when there is no input from the user. Corresponds to the JSON property `value` @return [String]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 1969 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1974 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