Google Cloud Dialogflow V2 Client - Class KnowledgeAssistAnswer (2.0.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
KnowledgeAssistAnswer\SuggestedQuery

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

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

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

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
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
Create a Mobile Website
View Site in Mobile | Classic
Share by: