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
Methods
__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 |
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. |
↳ suggest_faq_answers_response |
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER. |
↳ suggest_smart_replies_response |
Google\Cloud\Dialogflow\V2\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 |
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse|null |
hasSuggestArticlesResponse
setSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse|null |
hasSuggestFaqAnswersResponse
setSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse|null |
hasSuggestSmartRepliesResponse
setSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestionResponse
Returns | |
---|---|
Type | Description |
string |