Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SearchKnowledgeResponse.
The response message for Conversations.SearchKnowledge.
Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeResponse
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ answers |
array<Google\Cloud\Dialogflow\V2\SearchKnowledgeAnswer>
Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence. |
↳ rewritten_query |
string
The rewritten query used to search knowledge. |
getAnswers
Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAnswers
Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\SearchKnowledgeAnswer>
|
Returns | |
---|---|
Type | Description |
$this |
getRewrittenQuery
The rewritten query used to search knowledge.
Returns | |
---|---|
Type | Description |
string |
setRewrittenQuery
The rewritten query used to search knowledge.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |