# Google Cloud Security Command Center V1 Client - Class CloudDlpDataProfile (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CloudDlpDataProfile.

The [data profile](https://cloud.google.com/dlp/docs/data-profiles)
associated with the finding.

Generated from protobuf message `google.cloud.securitycenter.v1.CloudDlpDataProfile`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_profile` | `string` Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`. |
| `↳ parent_type` | `int` The resource hierarchy level at which the data profile was generated. |
| `↳ info_types` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.InfoType>` Type of information detected by SDP. Info type includes name, version and sensitivity of the detected information type. |

### getDataProfile

Name of the data profile, for example,
`projects/123/locations/europe/tableProfiles/8383929`.

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

### setDataProfile

Name of the data profile, for example,
`projects/123/locations/europe/tableProfiles/8383929`.

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

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

### getParentType

The resource hierarchy level at which the data profile was generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ParentType](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudDlpDataProfile.ParentType). |

### setParentType

The resource hierarchy level at which the data profile was generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ParentType](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudDlpDataProfile.ParentType). |

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

### getInfoTypes

Type of information detected by SDP.

Info type includes name, version and sensitivity of the detected
information type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.InfoType>` |   |

### setInfoTypes

Type of information detected by SDP.

Info type includes name, version and sensitivity of the detected
information type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.InfoType>` |

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