Google Cloud Dialogflow V2 Client - Class SearchKnowledgeResponse (1.10.2)

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 \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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.

getAnswers

Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnswers

Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\V2\SearchKnowledgeAnswer>
Returns
TypeDescription
$this