Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
-
#answer_type ⇒ String
The type of the answer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer.
18409 18410 18411 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18409 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
18392 18393 18394 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18392 def answer @answer end |
#answer_record ⇒ String
The name of the answer record. Format: projects//locations//answer Records/
Corresponds to the JSON property answerRecord
18397 18398 18399 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18397 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
Corresponds to the JSON property answerSources
18402 18403 18404 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18402 def answer_sources @answer_sources end |
#answer_type ⇒ String
The type of the answer.
Corresponds to the JSON property answerType
18407 18408 18409 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18407 def answer_type @answer_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18414 18415 18416 18417 18418 18419 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18414 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 |