Google Cloud Dialogflow Cx V3 Client - Class RatingReason (0.2.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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

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
NameDescription
var string[]
Returns
TypeDescription
$this

getFeedback

Optional. Additional feedback about the rating.

This field can be populated without choosing a predefined reason.

Returns
TypeDescription
string

setFeedback

Optional. Additional feedback about the rating.

This field can be populated without choosing a predefined reason.

Parameter
NameDescription
var string
Returns
TypeDescription
$this