Google Cloud Dialogflow Cx V3 Client - Class AnswerFeedback (0.5.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
Name Description
data array

Optional. Data for populating the Message object.

↳ rating int

Optional. Rating from user for the specific Dialogflow response.

↳ rating_reason 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
Type Description
int

setRating

Optional. Rating from user for the specific Dialogflow response.

Parameter
Name Description
var int
Returns
Type Description
$this

getRatingReason

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

Returns
Type Description
AnswerFeedback\RatingReason|null

hasRatingReason

clearRatingReason

setRatingReason

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

Parameter
Name Description
var AnswerFeedback\RatingReason
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this