Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb

Overview

The request message for Conversations.GenerateSuggestions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest

Returns a new instance of GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest.



15629
15630
15631
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15629

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

Instance Attribute Details

#latest_messageString

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

Returns:

  • (String)


15621
15622
15623
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15621

def latest_message
  @latest_message
end

#trigger_eventsArray<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

Returns:

  • (Array<String>)


15627
15628
15629
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15627

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15634
15635
15636
15637
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15634

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