# Google Cloud Security Command Center V2 Client - Class DataFlowEvent (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class DataFlowEvent.

Details about a data flow event, in which either the data is moved to or is
accessed from a non-compliant geo-location, as defined in the applicable data
security policy.

Generated from protobuf message `google.cloud.securitycenter.v2.DataFlowEvent`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ event_id` | `string` Unique identifier for data flow event. |
| `↳ principal_email` | `string` The email address of the principal that initiated the data flow event. The principal could be a user account, service account, Google group, or other. |
| `↳ operation` | `int` The operation performed by the principal for the data flow event. |
| `↳ violated_location` | `string` Non-compliant location of the principal or the data destination. |
| `↳ event_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Timestamp of data flow event. |

### getEventId

Unique identifier for data flow event.

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

### setEventId

Unique identifier for data flow event.

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

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

### getPrincipalEmail

The email address of the principal that initiated the data flow event. The
principal could be a user account, service account, Google group, or other.

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

### setPrincipalEmail

The email address of the principal that initiated the data flow event. The
principal could be a user account, service account, Google group, or other.

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

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

### getOperation

The operation performed by the principal for the data flow event.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Operation](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.DataFlowEvent.Operation). |

### setOperation

The operation performed by the principal for the data flow event.

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

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

### getViolatedLocation

Non-compliant location of the principal or the data destination.

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

### setViolatedLocation

Non-compliant location of the principal or the data destination.

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

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

### getEventTime

Timestamp of data flow event.

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

### hasEventTime

### clearEventTime

### setEventTime

Timestamp of data flow event.

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

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