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.
data
array
Optional. Data for populating the Message object.
↳ error
↳ suggest_articles_response
↳ suggest_knowledge_assist_response
↳ suggest_faq_answers_response
↳ suggest_smart_replies_response
↳ generate_suggestions_response
GenerateSuggestionsResponse
Suggestions generated using generators triggered by customer or agent messages.
getError
Error status if the request failed.
hasError
setError
Error status if the request failed.
$this
getSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
hasSuggestArticlesResponse
setSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
$this
getSuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
hasSuggestKnowledgeAssistResponse
setSuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
$this
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
hasSuggestFaqAnswersResponse
setSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
$this
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
hasSuggestSmartRepliesResponse
setSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
$this
getGenerateSuggestionsResponse
Suggestions generated using generators triggered by customer or agent messages.
hasGenerateSuggestionsResponse
setGenerateSuggestionsResponse
Suggestions generated using generators triggered by customer or agent messages.
$this
getSuggestionResponse
string