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

The profile for a scanned column within a table.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the profile. |
| `↳ profile_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ProfileStatus` Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated. |
| `↳ state` | `int` State of a profile. |
| `↳ profile_last_generated` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last time the profile was generated. |
| `↳ table_data_profile` | `string` The resource name of the table data profile. |
| `↳ table_full_resource` | `string` The resource name of the resource this column is within. |
| `↳ dataset_project_id` | `string` The Google Cloud project ID that owns the profiled resource. |
| `↳ dataset_location` | `string` If supported, the location where the dataset's data is stored. See <https://cloud.google.com/bigquery/docs/locations> for supported BigQuery locations. |
| `↳ dataset_id` | `string` The BigQuery dataset ID, if the resource profiled is a BigQuery table. |
| `↳ table_id` | `string` The table ID. |
| `↳ column` | `string` The name of the column. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The sensitivity of this column. |
| `↳ data_risk_level` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` The data risk level for this column. |
| `↳ column_info_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoTypeSummary` If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types. |
| `↳ other_matches` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.OtherInfoTypeSummary>` Other types found within this column. List will be unordered. |
| `↳ estimated_null_percentage` | `int` Approximate percentage of entries being null in the column. |
| `↳ estimated_uniqueness_score` | `int` Approximate uniqueness of the column. |
| `↳ free_text_score` | `float` The likelihood that this column contains free-form text. A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1. |
| `↳ column_type` | `int` The data type of a given column. |
| `↳ policy_state` | `int` Indicates if a policy tag has been applied to the column. |

### getName

The name of the profile.

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

### setName

The name of the profile.

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

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

### getProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

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

### hasProfileStatus

### clearProfileStatus

### setProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

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

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

### getState

State of a profile.

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

### setState

State of a profile.

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

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

### getTableDataProfile

The resource name of the table data profile.

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

### setTableDataProfile

The resource name of the table data profile.

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

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

### getTableFullResource

The resource name of the resource this column is within.

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

### setTableFullResource

The resource name of the resource this column is within.

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

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

### getDatasetProjectId

The Google Cloud project ID that owns the profiled resource.

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

### setDatasetProjectId

The Google Cloud project ID that owns the profiled resource.

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

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

### getDatasetLocation

If supported, the location where the dataset's data is stored.

See <https://cloud.google.com/bigquery/docs/locations> for supported
BigQuery locations.

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

### setDatasetLocation

If supported, the location where the dataset's data is stored.

See <https://cloud.google.com/bigquery/docs/locations> for supported
BigQuery locations.

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

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

### getDatasetId

The BigQuery dataset ID, if the resource profiled is a BigQuery table.

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

### setDatasetId

The BigQuery dataset ID, if the resource profiled is a BigQuery table.

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

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

### getTableId

The table ID.

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

### setTableId

The table ID.

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

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

### getColumn

The name of the column.

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

### setColumn

The name of the column.

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

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

### getSensitivityScore

The sensitivity of this column.

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

### hasSensitivityScore

### clearSensitivityScore

### setSensitivityScore

The sensitivity of this column.

| **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 for this column.

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

### hasDataRiskLevel

### clearDataRiskLevel

### setDataRiskLevel

The data risk level for this column.

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

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

### getColumnInfoType

If it's been determined this column can be identified as a single type,
this will be set. Otherwise the column either has unidentifiable content
or mixed types.

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

### hasColumnInfoType

### clearColumnInfoType

### setColumnInfoType

If it's been determined this column can be identified as a single type,
this will be set. Otherwise the column either has unidentifiable content
or mixed types.

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

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

### getOtherMatches

Other types found within this column. List will be unordered.

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

### setOtherMatches

Other types found within this column. List will be unordered.

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

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

### getEstimatedNullPercentage

Approximate percentage of entries being null in the column.

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

### setEstimatedNullPercentage

Approximate percentage of entries being null in the column.

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

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

### getEstimatedUniquenessScore

Approximate uniqueness of the column.

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

### setEstimatedUniquenessScore

Approximate uniqueness of the column.

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

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

### getFreeTextScore

The likelihood that this column contains free-form text.

A value close to 1 may indicate the column is likely to contain
free-form or natural language text.
Range in 0-1.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setFreeTextScore

The likelihood that this column contains free-form text.

A value close to 1 may indicate the column is likely to contain
free-form or natural language text.
Range in 0-1.

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

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

### getColumnType

The data type of a given column.

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

### setColumnType

The data type of a given column.

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

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

### getPolicyState

Indicates if a policy tag has been applied to the column.

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

### setPolicyState

Indicates if a policy tag has been applied to the column.

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

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