Class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion

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

Overview

The conversational followup question generated for Intent refinement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion

Returns a new instance of GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion.



1944
1945
1946
# File 'lib/google/apis/retail_v2/classes.rb', line 1944

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

Instance Attribute Details

#followup_questionString

The conversational followup question generated for Intent refinement. Corresponds to the JSON property followupQuestion

Returns:

  • (String)


1937
1938
1939
# File 'lib/google/apis/retail_v2/classes.rb', line 1937

def followup_question
  @followup_question
end

#suggested_answersArray<Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer>

The answer options provided to client for the follow-up question. Corresponds to the JSON property suggestedAnswers



1942
1943
1944
# File 'lib/google/apis/retail_v2/classes.rb', line 1942

def suggested_answers
  @suggested_answers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1949
1950
1951
1952
# File 'lib/google/apis/retail_v2/classes.rb', line 1949

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