Google Cloud Dialogflow V2 Client - Class SuggestionResult (1.16.0)

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 \ V2

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_knowledge_assist_response Google\Cloud\Dialogflow\V2\SuggestKnowledgeAssistResponse

SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.

↳ 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

getSuggestKnowledgeAssistResponse

SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.

Returns
Type Description
Google\Cloud\Dialogflow\V2\SuggestKnowledgeAssistResponse|null

hasSuggestKnowledgeAssistResponse

setSuggestKnowledgeAssistResponse

SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\SuggestKnowledgeAssistResponse
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