Google Cloud Dialogflow V2 Client - Class SuggestionResult (1.5.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
NameDescription
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
TypeDescription
Google\Rpc\Status|null

hasError

setError

Error status if the request failed.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getSuggestArticlesResponse

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\SuggestArticlesResponse|null

hasSuggestArticlesResponse

setSuggestArticlesResponse

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\SuggestArticlesResponse
Returns
TypeDescription
$this

getSuggestFaqAnswersResponse

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse|null

hasSuggestFaqAnswersResponse

setSuggestFaqAnswersResponse

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\SuggestFaqAnswersResponse
Returns
TypeDescription
$this

getSuggestSmartRepliesResponse

SuggestSmartRepliesResponse if request is for SMART_REPLY.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse|null

hasSuggestSmartRepliesResponse

setSuggestSmartRepliesResponse

SuggestSmartRepliesResponse if request is for SMART_REPLY.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\SuggestSmartRepliesResponse
Returns
TypeDescription
$this

getSuggestionResponse

Returns
TypeDescription
string