# Data Loss Prevention V2 Client - Class TransformationLocation (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class TransformationLocation.

Specifies the location of a transformation.

Generated from protobuf message `google.privacy.dlp.v2.TransformationLocation`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ finding_id` | `string` For infotype transformations, link to the corresponding findings ID so that location information does not need to be duplicated. Each findings ID correlates to an entry in the findings output table, this table only gets created when users specify to save findings (add the save findings action to the request). |
| `↳ record_transformation` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RecordTransformation` For record transformations, provide a field and container information. |
| `↳ container_type` | `int` Information about the functionality of the container where this finding occurred, if available. |

### getFindingId

For infotype transformations, link to the corresponding findings ID so
that location information does not need to be duplicated. Each findings
ID correlates to an entry in the findings output table, this table only
gets created when users specify to save findings (add the save findings
action to the request).

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

### hasFindingId

### setFindingId

For infotype transformations, link to the corresponding findings ID so
that location information does not need to be duplicated. Each findings
ID correlates to an entry in the findings output table, this table only
gets created when users specify to save findings (add the save findings
action to the request).

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

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

### getRecordTransformation

For record transformations, provide a field and container information.

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

### hasRecordTransformation

### setRecordTransformation

For record transformations, provide a field and container information.

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

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

### getContainerType

Information about the functionality of the container where this finding
occurred, if available.

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

### setContainerType

Information about the functionality of the container where this finding
occurred, if available.

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

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

### getLocationType

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