Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse

Inherits:
Object
  • Object
show all
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 response message for Conversations.GenerateSuggestions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateSuggestionsResponse

Returns a new instance of GoogleCloudDialogflowV2GenerateSuggestionsResponse.



11879
11880
11881
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11879

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

Instance Attribute Details

#generator_suggestion_answersArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>

The answers generated for the conversation based on context. Corresponds to the JSON property generatorSuggestionAnswers



11871
11872
11873
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11871

def generator_suggestion_answers
  @generator_suggestion_answers
end

#latest_messageString

The name of the latest conversation message used as context for compiling suggestion. Format: projects//locations//conversations//messages/. Corresponds to the JSON property latestMessage

Returns:

  • (String)


11877
11878
11879
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11877

def latest_message
  @latest_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11884
11885
11886
11887
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11884

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