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.
data
array
Optional. Data for populating the Message object.
↳ error
↳ 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;
hasError
setError
Error status if the request failed.
Generated from protobuf field .google.rpc.Status error = 1;
$this
getSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
hasSuggestArticlesResponse
setSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
$this
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
hasSuggestFaqAnswersResponse
setSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
$this
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
hasSuggestSmartRepliesResponse
setSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
Generated from protobuf field .google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
$this
getSuggestionResponse
string