# Google Cloud Dialogflow Cx V3 Client - Class RatingReason (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.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` | `string[]` 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### 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` |   |