Class: Google::Apis::ChatV1::UpdatedWidget

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdatedWidget

Returns a new instance of UpdatedWidget.



5735
5736
5737
# File 'lib/google/apis/chat_v1/classes.rb', line 5735

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

Instance Attribute Details

#suggestionsGoogle::Apis::ChatV1::SelectionItems

List of widget autocomplete results. Corresponds to the JSON property suggestions



5727
5728
5729
# File 'lib/google/apis/chat_v1/classes.rb', line 5727

def suggestions
  @suggestions
end

#widgetString

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

Returns:

  • (String)


5733
5734
5735
# File 'lib/google/apis/chat_v1/classes.rb', line 5733

def widget
  @widget
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5740
5741
5742
5743
# File 'lib/google/apis/chat_v1/classes.rb', line 5740

def update!(**args)
  @suggestions = args[:suggestions] if args.key?(:suggestions)
  @widget = args[:widget] if args.key?(:widget)
end