# Google Cloud Dialogflow Cx V3 Client - Class TestRunDifference (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 TestRunDifference.

The description of differences between original and replayed agent output.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.TestRunDifference`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The type of diff. |
| `↳ description` | `string` A human readable description of the diff, showing the actual output vs expected output. |

### getType

The type of diff.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DiffType](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TestRunDifference.DiffType). |

### setType

The type of diff.

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

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

### getDescription

A human readable description of the diff, showing the actual output vs
expected output.

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

### setDescription

A human readable description of the diff, showing the actual output vs
expected output.

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

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