Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswer

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

Represents a Knowledge Assist answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistAnswer.



13388
13389
13390
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13388

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)


13375
13376
13377
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13375

def answer_record
  @answer_record
end

#suggested_queryGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery

Represents a suggested query. Corresponds to the JSON property suggestedQuery



13380
13381
13382
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13380

def suggested_query
  @suggested_query
end

#suggested_query_answerGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer

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



13386
13387
13388
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13386

def suggested_query_answer
  @suggested_query_answer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13393
13394
13395
13396
13397
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13393

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