# Data Loss Prevention V2 Client - Class TransformationDetails (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 TransformationDetails.

Details about a single transformation. This object contains a description of
the transformation, information about whether the transformation was
successfully applied, and the precise location where the transformation
occurred. These details are stored in a user-specified BigQuery table.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_name` | `string` The name of the job that completed the transformation. |
| `↳ container_name` | `string` The top level name of the container where the transformation is located (this will be the source file name or table name). |
| `↳ transformation` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.TransformationDescription>` Description of transformation. This would only contain more than one element if there were multiple matching transformations and which one to apply was ambiguous. Not set for states that contain no transformation, currently only state that contains no transformation is TransformationResultStateType.METADATA_UNRETRIEVABLE. |
| `↳ status_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.TransformationResultStatus` Status of the transformation, if transformation was not successful, this will specify what caused it to fail, otherwise it will show that the transformation was successful. |
| `↳ transformed_bytes` | `int|string` The number of bytes that were transformed. If transformation was unsuccessful or did not take place because there was no content to transform, this will be zero. |
| `↳ transformation_location` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.TransformationLocation` The precise location of the transformed content in the original container. |

### getResourceName

The name of the job that completed the transformation.

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

### setResourceName

The name of the job that completed the transformation.

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

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

### getContainerName

The top level name of the container where the transformation is located
(this will be the source file name or table name).

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

### setContainerName

The top level name of the container where the transformation is located
(this will be the source file name or table name).

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

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

### getTransformation

Description of transformation. This would only contain more than one
element if there were multiple matching transformations and which one to
apply was ambiguous. Not set for states that contain no transformation,
currently only state that contains no transformation is
TransformationResultStateType.METADATA_UNRETRIEVABLE.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.TransformationDescription>` |   |

### setTransformation

Description of transformation. This would only contain more than one
element if there were multiple matching transformations and which one to
apply was ambiguous. Not set for states that contain no transformation,
currently only state that contains no transformation is
TransformationResultStateType.METADATA_UNRETRIEVABLE.

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

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

### getStatusDetails

Status of the transformation, if transformation was not successful, this
will specify what caused it to fail, otherwise it will show that the
transformation was successful.

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

### hasStatusDetails

### clearStatusDetails

### setStatusDetails

Status of the transformation, if transformation was not successful, this
will specify what caused it to fail, otherwise it will show that the
transformation was successful.

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

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

### getTransformedBytes

The number of bytes that were transformed. If transformation was
unsuccessful or did not take place because there was no content to
transform, this will be zero.

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

### setTransformedBytes

The number of bytes that were transformed. If transformation was
unsuccessful or did not take place because there was no content to
transform, this will be zero.

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

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

### getTransformationLocation

The precise location of the transformed content in the original container.

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

### hasTransformationLocation

### clearTransformationLocation

### setTransformationLocation

The precise location of the transformed content in the original container.

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

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