Class: Google::Apis::ChatV1::UpdatedWidget
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::UpdatedWidget
- 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
The response of the updated widget. Used to provide autocomplete options for a widget.
Instance Attribute Summary collapse
-
#suggestions ⇒ Google::Apis::ChatV1::SelectionItems
List of widget autocomplete results.
-
#widget ⇒ String
The ID of the updated widget.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdatedWidget
constructor
A new instance of UpdatedWidget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdatedWidget
Returns a new instance of UpdatedWidget.
4409 4410 4411 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4409 def initialize(**args) update!(**args) end |
Instance Attribute Details
#suggestions ⇒ Google::Apis::ChatV1::SelectionItems
List of widget autocomplete results.
Corresponds to the JSON property suggestions
4401 4402 4403 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4401 def suggestions @suggestions end |
#widget ⇒ String
The ID of the updated widget. The ID must match the one for the widget that
triggered the update request.
Corresponds to the JSON property widget
4407 4408 4409 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4407 def @widget end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4414 4415 4416 4417 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4414 def update!(**args) @suggestions = args[:suggestions] if args.key?(:suggestions) @widget = args[:widget] if args.key?(:widget) end |