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

An aggregated profile for this project, based on the resources profiled
within it.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The resource name of the profile. |
| `↳ project_id` | `string` Project ID or account that was profiled. |
| `↳ profile_last_generated` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last time the profile was generated. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The sensitivity score of this project. |
| `↳ data_risk_level` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` The data risk level of this project. |
| `↳ profile_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ProfileStatus` Success or error status of the last attempt to profile the project. |
| `↳ table_data_profile_count` | `int|string` The number of table data profiles generated for this project. |
| `↳ file_store_data_profile_count` | `int|string` The number of file store data profiles generated for this project. |

### getName

The resource name of the profile.

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

### setName

The resource name of the profile.

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

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

### getProjectId

Project ID or account that was profiled.

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

### setProjectId

Project ID or account that was profiled.

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

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

### getProfileLastGenerated

The last time the profile was generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasProfileLastGenerated

### clearProfileLastGenerated

### setProfileLastGenerated

The last time the profile was generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getSensitivityScore

The sensitivity score of this project.

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

### hasSensitivityScore

### clearSensitivityScore

### setSensitivityScore

The sensitivity score of this project.

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

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

### getDataRiskLevel

The data risk level of this project.

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

### hasDataRiskLevel

### clearDataRiskLevel

### setDataRiskLevel

The data risk level of this project.

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

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

### getProfileStatus

Success or error status of the last attempt to profile the project.

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

### hasProfileStatus

### clearProfileStatus

### setProfileStatus

Success or error status of the last attempt to profile the project.

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

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

### getTableDataProfileCount

The number of table data profiles generated for this project.

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

### setTableDataProfileCount

The number of table data profiles generated for this project.

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

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

### getFileStoreDataProfileCount

The number of file store data profiles generated for this project.

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

### setFileStoreDataProfileCount

The number of file store data profiles generated for this project.

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

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