Google Cloud Dialogflow V2 Client - Class SearchKnowledgeResponse (1.17.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
Name Description
data array

Optional. Data for populating the Message object.

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