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

Configuration for determining how redaction of images should occur.

Generated from protobuf message `google.privacy.dlp.v2.ImageTransformations.ImageTransformation`

## Namespace

Google \\ Cloud \\ Dlp \\ V2 \\ ImageTransformations

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ selected_info_types` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ImageTransformations.ImageTransformation.SelectedInfoTypes` Apply transformation to the selected info_types. |
| `↳ all_info_types` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ImageTransformations.ImageTransformation.AllInfoTypes` Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message. |
| `↳ all_text` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ImageTransformations.ImageTransformation.AllText` Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message. |
| `↳ redaction_color` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Color` The color to use when redacting content from an image. If not specified, the default is black. |

### getSelectedInfoTypes

Apply transformation to the selected info_types.

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

### hasSelectedInfoTypes

### setSelectedInfoTypes

Apply transformation to the selected info_types.

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

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

### getAllInfoTypes

Apply transformation to all findings not specified in other
ImageTransformation's selected_info_types. Only one instance is allowed
within the ImageTransformations message.

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

### hasAllInfoTypes

### setAllInfoTypes

Apply transformation to all findings not specified in other
ImageTransformation's selected_info_types. Only one instance is allowed
within the ImageTransformations message.

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

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

### getAllText

Apply transformation to all text that doesn't match an infoType. Only
one instance is allowed within the ImageTransformations message.

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

### hasAllText

### setAllText

Apply transformation to all text that doesn't match an infoType. Only
one instance is allowed within the ImageTransformations message.

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

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

### getRedactionColor

The color to use when redacting content from an image. If not
specified, the default is black.

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

### hasRedactionColor

### clearRedactionColor

### setRedactionColor

The color to use when redacting content from an image. If not
specified, the default is black.

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

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

### getTarget

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