# Google Cloud Contact Center Insights V1 Client - Class AnswerFeedback (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class AnswerFeedback.

The feedback that the customer has about a certain answer in the
conversation.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.AnswerFeedback`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ correctness_level` | `int` The correctness level of an answer. |
| `↳ clicked` | `bool` Indicates whether an answer or item was clicked by the human agent. |
| `↳ displayed` | `bool` Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |

### getCorrectnessLevel

The correctness level of an answer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CorrectnessLevel](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.AnswerFeedback.CorrectnessLevel). |

### setCorrectnessLevel

The correctness level of an answer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CorrectnessLevel](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.AnswerFeedback.CorrectnessLevel). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClicked

Indicates whether an answer or item was clicked by the human agent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setClicked

Indicates whether an answer or item was clicked by the human agent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayed

Indicates whether an answer or item was displayed to the human agent in the
agent desktop UI.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDisplayed

Indicates whether an answer or item was displayed to the human agent in the
agent desktop UI.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |