Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
The request message for Conversations.GenerateSuggestions.
Instance Attribute Summary collapse
-
#latest_message ⇒ String
Optional.
-
#trigger_events ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateSuggestionsRequest
constructor
A new instance of GoogleCloudDialogflowV2GenerateSuggestionsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateSuggestionsRequest
Returns a new instance of GoogleCloudDialogflowV2GenerateSuggestionsRequest.
11853 11854 11855 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11853 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latest_message ⇒ String
Optional. The name of the latest conversation message for which the request is
triggered. Format: projects//locations//conversations//messages/.
Corresponds to the JSON property latestMessage
11845 11846 11847 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11845 def @latest_message end |
#trigger_events ⇒ Array<String>
Optional. A list of trigger events. Only generators configured in the
conversation_profile whose trigger_event is listed here will be triggered.
Corresponds to the JSON property triggerEvents
11851 11852 11853 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11851 def trigger_events @trigger_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11858 11859 11860 11861 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11858 def update!(**args) @latest_message = args[:latest_message] if args.key?(:latest_message) @trigger_events = args[:trigger_events] if args.key?(:trigger_events) end |