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

Rule that specifies conditions when a certain infoType's finding details
should be adjusted.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ adjust_by_matching_info_types` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.AdjustByMatchingInfoTypes` Set of infoTypes for which findings would affect this rule. |
| `↳ adjust_by_image_findings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.AdjustByImageFindings` AdjustmentRule condition for image findings. |
| `↳ likelihood_adjustment` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.CustomInfoType.DetectionRule.LikelihoodAdjustment` Likelihood adjustment to apply to the infoType. |

### getAdjustByMatchingInfoTypes

Set of infoTypes for which findings would affect this rule.

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

### hasAdjustByMatchingInfoTypes

### setAdjustByMatchingInfoTypes

Set of infoTypes for which findings would affect this rule.

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

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

### getAdjustByImageFindings

AdjustmentRule condition for image findings.

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

### hasAdjustByImageFindings

### setAdjustByImageFindings

AdjustmentRule condition for image findings.

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

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

### getLikelihoodAdjustment

Likelihood adjustment to apply to the infoType.

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

### hasLikelihoodAdjustment

### clearLikelihoodAdjustment

### setLikelihoodAdjustment

Likelihood adjustment to apply to the infoType.

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

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

### getConditions

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