Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
- 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
The response message for Conversations.SearchKnowledge.
Instance Attribute Summary collapse
-
#answers ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer>
Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.
-
#rewritten_query ⇒ String
The rewritten query used to search knowledge.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeResponse
constructor
A new instance of GoogleCloudDialogflowV2SearchKnowledgeResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeResponse
Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeResponse.
14856 14857 14858 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14856 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answers ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer>
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
Corresponds to the JSON property answers
14849 14850 14851 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14849 def answers @answers end |
#rewritten_query ⇒ String
The rewritten query used to search knowledge.
Corresponds to the JSON property rewrittenQuery
14854 14855 14856 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14854 def rewritten_query @rewritten_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14861 14862 14863 14864 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14861 def update!(**args) @answers = args[:answers] if args.key?(:answers) @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query) end |