Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer
- 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 SearchKnowledge answer.
Instance Attribute Summary collapse
-
#answer ⇒ String
The piece of text from the knowledge base documents that answers the search query Corresponds to the JSON property
answer. -
#answer_record ⇒ String
The name of the answer record.
-
#answer_sources ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
-
#answer_type ⇒ String
The type of the answer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswer
Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswer.
13535 13536 13537 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The piece of text from the knowledge base documents that answers the search
query
Corresponds to the JSON property answer
13518 13519 13520 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13518 def answer @answer end |
#answer_record ⇒ String
The name of the answer record. Format: projects//locations//answer Records/
Corresponds to the JSON property answerRecord
13523 13524 13525 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13523 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
Corresponds to the JSON property answerSources
13528 13529 13530 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13528 def answer_sources @answer_sources end |
#answer_type ⇒ String
The type of the answer.
Corresponds to the JSON property answerType
13533 13534 13535 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13533 def answer_type @answer_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13540 13541 13542 13543 13544 13545 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13540 def update!(**args) @answer = args[:answer] if args.key?(:answer) @answer_record = args[:answer_record] if args.key?(:answer_record) @answer_sources = args[:answer_sources] if args.key?(:answer_sources) @answer_type = args[:answer_type] if args.key?(:answer_type) end |