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

InfoType description.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Internal name of the infoType. |
| `↳ display_name` | `string` Human readable form of the infoType name. |
| `↳ supported_by` | `int[]` Which parts of the API supports this InfoType. |
| `↳ description` | `string` Description of the infotype. Translated when language is provided in the request. |
| `↳ location_support` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.LocationSupport` Locations at which this feature can be used. May change over time. |
| `↳ example` | `string` A sample that is a true positive for this infoType. |
| `↳ versions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.VersionDescription>` A list of available versions for the infotype. |
| `↳ categories` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoTypeCategory>` The category of the infoType. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The default sensitivity of the infoType. |
| `↳ specific_info_types` | `string[]` If this field is set, this infoType is a general infoType and these specific infoTypes are contained within it. General infoTypes are infoTypes that encompass multiple specific infoTypes. For example, the "GEOGRAPHIC_DATA" general infoType would have set for this field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". |
| `↳ launch_status` | `int` The launch status of the infoType. |

### getName

Internal name of the infoType.

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

### setName

Internal name of the infoType.

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

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

### getDisplayName

Human readable form of the infoType name.

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

### setDisplayName

Human readable form of the infoType name.

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

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

### getSupportedBy

Which parts of the API supports this InfoType.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setSupportedBy

Which parts of the API supports this InfoType.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getDescription

Description of the infotype. Translated when language is provided in the
request.

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

### setDescription

Description of the infotype. Translated when language is provided in the
request.

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

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

### getLocationSupport

Locations at which this feature can be used. May change over time.

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

### hasLocationSupport

### clearLocationSupport

### setLocationSupport

Locations at which this feature can be used. May change over time.

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

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

### getExample

A sample that is a true positive for this infoType.

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

### setExample

A sample that is a true positive for this infoType.

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

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

### getVersions

A list of available versions for the infotype.

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

### setVersions

A list of available versions for the infotype.

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

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

### getCategories

The category of the infoType.

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

### setCategories

The category of the infoType.

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

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

### getSensitivityScore

The default sensitivity of the infoType.

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

### hasSensitivityScore

### clearSensitivityScore

### setSensitivityScore

The default sensitivity of the infoType.

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

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

### getSpecificInfoTypes

If this field is set, this infoType is a general infoType and these
specific infoTypes are contained within it.

General infoTypes are infoTypes that encompass multiple specific infoTypes.
For example, the "GEOGRAPHIC_DATA" general infoType would have set for this
field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setSpecificInfoTypes

If this field is set, this infoType is a general infoType and these
specific infoTypes are contained within it.

General infoTypes are infoTypes that encompass multiple specific infoTypes.
For example, the "GEOGRAPHIC_DATA" general infoType would have set for this
field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getLaunchStatus

The launch status of the infoType.

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

### setLaunchStatus

The launch status of the infoType.

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

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