# Google Cloud Dialogflow V2 Client - Class AnswerFeedback (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerFeedback.

Represents feedback the customer has about the quality \& correctness of a
certain answer in a conversation.

Generated from protobuf message `google.cloud.dialogflow.v2.AnswerFeedback`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ correctness_level` | `int` The correctness level of the specific answer. |
| `↳ agent_assistant_detail_feedback` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback` Detail feedback of agent assist suggestions. |
| `↳ clicked` | `bool` Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search and knowledge assist, the answer record is considered to be clicked if the answer was copied or any URI was clicked. |
| `↳ click_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when the answer/item was clicked. |
| `↳ displayed` | `bool` Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false. |
| `↳ display_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when the answer/item was displayed. |

### getCorrectnessLevel

The correctness level of the specific answer.

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

### setCorrectnessLevel

The correctness level of the specific answer.

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

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

### getAgentAssistantDetailFeedback

Detail feedback of agent assist suggestions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback|null` |   |

### hasAgentAssistantDetailFeedback

### setAgentAssistantDetailFeedback

Detail feedback of agent assist suggestions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback` |

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

### getClicked

Indicates whether the answer/item was clicked by the human agent
or not. Default to false.

For knowledge search and knowledge assist, the answer record is considered
to be clicked if the answer was copied or any URI was clicked.

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

### setClicked

Indicates whether the answer/item was clicked by the human agent
or not. Default to false.

For knowledge search and knowledge assist, the answer record is considered
to be clicked if the answer was copied or any URI was clicked.

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

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

### getClickTime

Time when the answer/item was clicked.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasClickTime

### clearClickTime

### setClickTime

Time when the answer/item was clicked.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getDisplayed

Indicates whether the answer/item was displayed to the human
agent in the agent desktop UI. Default to false.

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

### setDisplayed

Indicates whether the answer/item was displayed to the human
agent in the agent desktop UI. Default to false.

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

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

### getDisplayTime

Time when the answer/item was displayed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasDisplayTime

### clearDisplayTime

### setDisplayTime

Time when the answer/item was displayed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getDetailFeedback

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |