Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SuggestionResult.
One response of different type of suggestion response which is used in the response of Participants.AnalyzeContent and Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
Generated from protobuf message google.cloud.dialogflow.v2.SuggestionResult
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ error |
Google\Rpc\Status
Error status if the request failed. |
↳ suggest_articles_response |
SuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. |
↳ suggest_knowledge_assist_response |
SuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST. |
↳ suggest_faq_answers_response |
SuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER. |
↳ suggest_smart_replies_response |
SuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY. |
getError
Error status if the request failed.
Returns | |
---|---|
Type | Description |
Google\Rpc\Status|null |
hasError
setError
Error status if the request failed.
Parameter | |
---|---|
Name | Description |
var |
Google\Rpc\Status
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Returns | |
---|---|
Type | Description |
SuggestArticlesResponse|null |
hasSuggestArticlesResponse
setSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Parameter | |
---|---|
Name | Description |
var |
SuggestArticlesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
Returns | |
---|---|
Type | Description |
SuggestKnowledgeAssistResponse|null |
hasSuggestKnowledgeAssistResponse
setSuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
Parameter | |
---|---|
Name | Description |
var |
SuggestKnowledgeAssistResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Returns | |
---|---|
Type | Description |
SuggestFaqAnswersResponse|null |
hasSuggestFaqAnswersResponse
setSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Parameter | |
---|---|
Name | Description |
var |
SuggestFaqAnswersResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Returns | |
---|---|
Type | Description |
SuggestSmartRepliesResponse|null |
hasSuggestSmartRepliesResponse
setSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Parameter | |
---|---|
Name | Description |
var |
SuggestSmartRepliesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestionResponse
Returns | |
---|---|
Type | Description |
string |