Google Cloud Retail V2 Client - Class FollowupQuestion (2.5.0)

Reference documentation and code samples for the Google Cloud Retail V2 Client class FollowupQuestion.

The conversational followup question generated for Intent refinement.

Generated from protobuf message google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion

Namespace

Google \ Cloud \ Retail \ V2 \ ConversationalSearchResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ followup_question string

The conversational followup question generated for Intent refinement.

↳ suggested_answers array<FollowupQuestion\SuggestedAnswer>

The answer options provided to client for the follow-up question.

getFollowupQuestion

The conversational followup question generated for Intent refinement.

Returns
Type Description
string

setFollowupQuestion

The conversational followup question generated for Intent refinement.

Parameter
Name Description
var string
Returns
Type Description
$this

getSuggestedAnswers

The answer options provided to client for the follow-up question.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSuggestedAnswers

The answer options provided to client for the follow-up question.

Parameter
Name Description
var array<FollowupQuestion\SuggestedAnswer>
Returns
Type Description
$this