Google Cloud Dialogflow V2 Client - Class KnowledgeAssistAnswer (1.15.1)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeAssistAnswer.

Represents a Knowledge Assist answer.

Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistAnswer

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ suggested_query Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\SuggestedQuery

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

↳ suggested_query_answer Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\KnowledgeAnswer

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

↳ answer_record string

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

getSuggestedQuery

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

Returns
Type Description
Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\SuggestedQuery|null

hasSuggestedQuery

clearSuggestedQuery

setSuggestedQuery

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\SuggestedQuery
Returns
Type Description
$this

getSuggestedQueryAnswer

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

Returns
Type Description
Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\KnowledgeAnswer|null

hasSuggestedQueryAnswer

clearSuggestedQueryAnswer

setSuggestedQueryAnswer

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\KnowledgeAnswer
Returns
Type Description
$this

getAnswerRecord

The name of the answer record.

Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

Returns
Type Description
string

setAnswerRecord

The name of the answer record.

Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

Parameter
Name Description
var string
Returns
Type Description
$this