Class: Google::Apis::ChatV1::GoogleAppsCardV1TextInput
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1TextInput
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_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
-
#auto_complete_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted.
-
#hint_text ⇒ String
The hint text.
-
#initial_suggestions ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Suggestions
A container wrapping elements necessary for showing suggestion items used in text input autocomplete.
-
#label ⇒ String
At least one of label and hintText must be specified.
-
#name ⇒ String
The name of the text input which is used in formInput.
-
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted.
-
#type ⇒ String
The style of the text, for example, a single line or multiple lines.
-
#value ⇒ String
The default value when there is no input from the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1TextInput
constructor
A new instance of GoogleAppsCardV1TextInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1TextInput
Returns a new instance of GoogleAppsCardV1TextInput.
1969 1970 1971 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1969 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_complete_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
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
1930 1931 1932 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1930 def auto_complete_action @auto_complete_action end |
#hint_text ⇒ String
The hint text.
Corresponds to the JSON property hintText
1935 1936 1937 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1935 def hint_text @hint_text end |
#initial_suggestions ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Suggestions
A container wrapping elements necessary for showing suggestion items used in
text input autocomplete.
Corresponds to the JSON property initialSuggestions
1941 1942 1943 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1941 def initial_suggestions @initial_suggestions end |
#label ⇒ String
At least one of label and hintText must be specified.
Corresponds to the JSON property label
1946 1947 1948 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1946 def label @label end |
#name ⇒ String
The name of the text input which is used in formInput.
Corresponds to the JSON property name
1951 1952 1953 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1951 def name @name end |
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
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
1957 1958 1959 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1957 def on_change_action @on_change_action end |
#type ⇒ String
The style of the text, for example, a single line or multiple lines.
Corresponds to the JSON property type
1962 1963 1964 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1962 def type @type end |
#value ⇒ String
The default value when there is no input from the user.
Corresponds to the JSON property value
1967 1968 1969 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1967 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 |
# 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 |