# Google Cloud Dms V1 Client - Class TriggerEntity (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Dms V1 Client class TriggerEntity.

Trigger is not used as an independent entity, it is retrieved as part of a
Table entity.

Generated from protobuf message `google.cloud.clouddms.v1.TriggerEntity`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the trigger. |
| `↳ triggering_events` | `string[]` The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE. |
| `↳ trigger_type` | `string` Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW. |
| `↳ sql_code` | `string` The SQL code which creates the trigger. |
| `↳ custom_features` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Custom engine specific features. |

### getName

The name of the trigger.

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

### setName

The name of the trigger.

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

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

### getTriggeringEvents

The DML, DDL, or database events that fire the trigger, for example
INSERT, UPDATE.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTriggeringEvents

The DML, DDL, or database events that fire the trigger, for example
INSERT, UPDATE.

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

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

### getTriggerType

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
ROW.

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

### setTriggerType

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
ROW.

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

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

### getSqlCode

The SQL code which creates the trigger.

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

### setSqlCode

The SQL code which creates the trigger.

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

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

### getCustomFeatures

Custom engine specific features.

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

### hasCustomFeatures

### clearCustomFeatures

### setCustomFeatures

Custom engine specific features.

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

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