Google Cloud Dialogflow Cx V3 Client - Class AnswerFeedback (0.1.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class AnswerFeedback.

Stores information about feedback provided by users about a response.

Generated from protobuf message google.cloud.dialogflow.cx.v3.AnswerFeedback

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ rating int

Optional. Rating from user for the specific Dialogflow response.

↳ rating_reason Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback\RatingReason

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

↳ custom_rating string

Optional. Custom rating from the user about the provided answer, with maximum length of 1024 characters. For example, client could use a customized JSON object to indicate the rating.

getRating

Optional. Rating from user for the specific Dialogflow response.

Returns
TypeDescription
int

setRating

Optional. Rating from user for the specific Dialogflow response.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRatingReason

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback\RatingReason|null

hasRatingReason

clearRatingReason

setRatingReason

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback\RatingReason
Returns
TypeDescription
$this

getCustomRating

Optional. Custom rating from the user about the provided answer, with maximum length of 1024 characters. For example, client could use a customized JSON object to indicate the rating.

Returns
TypeDescription
string

setCustomRating

Optional. Custom rating from the user about the provided answer, with maximum length of 1024 characters. For example, client could use a customized JSON object to indicate the rating.

Parameter
NameDescription
var string
Returns
TypeDescription
$this