Google Cloud Dialogflow V2 Client - Class SearchKnowledgeResponse (1.11.0)

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.

↳ 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
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

getRewrittenQuery

The rewritten query used to search knowledge.

Returns
TypeDescription
string

setRewrittenQuery

The rewritten query used to search knowledge.

Parameter
NameDescription
var string
Returns
TypeDescription
$this