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

Specifies the relationship between bounding boxes for image findings.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ encloses` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Encloses` The context finding's bounding box must fully contain the target finding's bounding box. |
| `↳ fully_inside` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FullyInside` The context finding's bounding box must be fully inside the target finding's bounding box. |
| `↳ overlaps` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Overlap` The context finding's bounding box and the target finding's bounding box must have a non-zero intersection. |

### getEncloses

The context finding's bounding box must fully contain the target
finding's bounding box.

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

### hasEncloses

### setEncloses

The context finding's bounding box must fully contain the target
finding's bounding box.

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

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

### getFullyInside

The context finding's bounding box must be fully inside the target
finding's bounding box.

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

### hasFullyInside

### setFullyInside

The context finding's bounding box must be fully inside the target
finding's bounding box.

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

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

### getOverlaps

The context finding's bounding box and the target finding's bounding box
must have a non-zero intersection.

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

### hasOverlaps

### setOverlaps

The context finding's bounding box and the target finding's bounding box
must have a non-zero intersection.

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

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

### getType

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