Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer

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

Overview

Represents a Knowledge Assist answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer.



20197
20198
20199
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20197

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

Instance Attribute Details

#answer_recordString

The name of the answer record. Format: projects//locations//answer Records/. Corresponds to the JSON property answerRecord

Returns:

  • (String)


20184
20185
20186
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20184

def answer_record
  @answer_record
end

#suggested_queryGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery

Represents a suggested query. Corresponds to the JSON property suggestedQuery



20189
20190
20191
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20189

def suggested_query
  @suggested_query
end

#suggested_query_answerGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer

Represents an answer from Knowledge. Currently supports FAQ and Generative answers. Corresponds to the JSON property suggestedQueryAnswer



20195
20196
20197
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20195

def suggested_query_answer
  @suggested_query_answer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20202
20203
20204
20205
20206
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20202

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
  @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
end