Google Cloud Dialogflow Cx V3 Client - Class RatingReason (0.4.1)

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

Stores extra information about why users provided thumbs down rating.

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

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ AnswerFeedback

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ reason_labels
array

Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.

↳ feedback
string

Optional. Additional feedback about the rating. This field can be populated without choosing a predefined reason .

getReasonLabels

Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.

Returns
Type
Description

setReasonLabels

Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getFeedback

Optional. Additional feedback about the rating.

This field can be populated without choosing a predefined reason .

Returns
Type
Description
string

setFeedback

Optional. Additional feedback about the rating.

This field can be populated without choosing a predefined reason .

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: