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

Summary of a single transformation.

Only one of 'transformation', 'field_transformation', or 'record_suppress'
will be set.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ info_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoType` Set if the transformation was limited to a specific InfoType. |
| `↳ field` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FieldId` Set if the transformation was limited to a specific FieldId. |
| `↳ transformation` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.PrimitiveTransformation` The specific transformation these stats apply to. |
| `↳ field_transformations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FieldTransformation>` The field transformation that was applied. If multiple field transformations are requested for a single field, this list will contain all of them; otherwise, only one is supplied. |
| `↳ record_suppress` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RecordSuppression` The specific suppression option these stats apply to. |
| `↳ results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.TransformationSummary.SummaryResult>` Collection of all transformations that took place or had an error. |
| `↳ transformed_bytes` | `int|string` Total size in bytes that were transformed in some way. |

### getInfoType

Set if the transformation was limited to a specific InfoType.

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

### hasInfoType

### clearInfoType

### setInfoType

Set if the transformation was limited to a specific InfoType.

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

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

### getField

Set if the transformation was limited to a specific FieldId.

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

### hasField

### clearField

### setField

Set if the transformation was limited to a specific FieldId.

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

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

### getTransformation

The specific transformation these stats apply to.

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

### hasTransformation

### clearTransformation

### setTransformation

The specific transformation these stats apply to.

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

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

### getFieldTransformations

The field transformation that was applied.

If multiple field transformations are requested for a single field,
this list will contain all of them; otherwise, only one is supplied.

| **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.FieldTransformation>` |   |

### setFieldTransformations

The field transformation that was applied.

If multiple field transformations are requested for a single field,
this list will contain all of them; otherwise, only one is supplied.

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

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

### getRecordSuppress

The specific suppression option these stats apply to.

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

### hasRecordSuppress

### clearRecordSuppress

### setRecordSuppress

The specific suppression option these stats apply to.

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

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

### getResults

Collection of all transformations that took place or had an error.

| **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.TransformationSummary.SummaryResult>` |   |

### setResults

Collection of all transformations that took place or had an error.

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

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

### getTransformedBytes

Total size in bytes that were transformed in some way.

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

### setTransformedBytes

Total size in bytes that were transformed in some way.

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

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