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

A handler that is triggered by the specified
[event](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Handler.EventHandler#_Google_Cloud_Dialogflow_Cx_V3_Handler_EventHandler__getEvent__).

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Handler.EventHandler`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ event` | `string` Required. The name of the event that triggers this handler. |
| `↳ condition` | `string` Optional. The condition that must be satisfied to trigger this handler. |
| `↳ fulfillment` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Fulfillment` Required. The fulfillment to call when the event occurs. |

### getEvent

Required. The name of the event that triggers this handler.

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

### setEvent

Required. The name of the event that triggers this handler.

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

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

### getCondition

Optional. The condition that must be satisfied to trigger this handler.

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

### setCondition

Optional. The condition that must be satisfied to trigger this handler.

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

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

### getFulfillment

Required. The fulfillment to call when the event occurs.

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

### hasFulfillment

### clearFulfillment

### setFulfillment

Required. The fulfillment to call when the event occurs.

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

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