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.
Generated from protobuf field .google.rpc.Status error = 1;
Returns | |
---|---|
Type | Description |
Google\Rpc\Status|null |
hasError
setError
Error status if the request failed.
Generated from protobuf field .google.rpc.Status error = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Rpc\Status
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse|null |
hasSuggestArticlesResponse
setSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse|null |
hasSuggestFaqAnswersResponse
setSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse|null |
hasSuggestSmartRepliesResponse
setSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse
|
Returns | |
---|---|
Type | Description |
$this |
getSuggestionResponse
Returns | |
---|---|
Type | Description |
string |