Class: Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem
- 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
One suggested value that users can enter in a text input field. Google Workspace Add-ons and Chat apps:
Instance Attribute Summary collapse
-
#text ⇒ String
The value of a suggested input to a text input field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1SuggestionItem
constructor
A new instance of GoogleAppsCardV1SuggestionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1SuggestionItem
Returns a new instance of GoogleAppsCardV1SuggestionItem.
2756 2757 2758 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2756 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ String
The value of a suggested input to a text input field. This is equivalent to
what users enter themselves.
Corresponds to the JSON property text
2754 2755 2756 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2754 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2761 2762 2763 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2761 def update!(**args) @text = args[:text] if args.key?(:text) end |