Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion

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

Overview

The conversational followup question generated for Intent refinement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion

Returns a new instance of GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion.



3162
3163
3164
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3162

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)


3155
3156
3157
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3155

def followup_question
  @followup_question
end

#suggested_answersArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestionSuggestedAnswer>

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



3160
3161
3162
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3160

def suggested_answers
  @suggested_answers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3167
3168
3169
3170
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3167

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