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

Configuration for setting a minimum likelihood per infotype. Used to
customize the minimum likelihood level for specific infotypes in the
request. For example, use this if you want to lower the precision for
PERSON_NAME without lowering the precision for the other infotypes in the
request.

Generated from protobuf message `google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood`

## Namespace

Google \\ Cloud \\ Dlp \\ V2 \\ InspectConfig

## 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` Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. |
| `↳ min_likelihood` | `int` Only returns findings equal to or above this threshold. This field is required or else the configuration fails. |

### getInfoType

Type of information the likelihood threshold applies to. Only one
likelihood per info_type should be provided. If InfoTypeLikelihood does
not have an info_type, the configuration fails.

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

### hasInfoType

### clearInfoType

### setInfoType

Type of information the likelihood threshold applies to. Only one
likelihood per info_type should be provided. If InfoTypeLikelihood does
not have an info_type, the configuration fails.

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

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

### getMinLikelihood

Only returns findings equal to or above this threshold. This field is
required or else the configuration fails.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Likelihood](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Likelihood). |

### setMinLikelihood

Only returns findings equal to or above this threshold. This field is
required or else the configuration fails.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Likelihood](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Likelihood). |

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