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 \ V2Methods
__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: |
getSuggestedQuery
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
| Returns | |
|---|---|
| Type | Description |
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 |
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 |
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 |
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 |
|