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

The profile for a scanned table.

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

## 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. |
| `↳ data_source_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` The resource type that was profiled. |
| `↳ project_data_profile` | `string` The resource name of the project data profile for this table. |
| `↳ dataset_project_id` | `string` The Google Cloud project ID that owns the 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 locations. |
| `↳ dataset_id` | `string` If the resource is BigQuery, the dataset ID. |
| `↳ table_id` | `string` The table ID. |
| `↳ full_resource` | `string` The Cloud Asset Inventory resource that was profiled in order to generate this TableDataProfile. <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `↳ 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. This will always be set to DONE when the table data profile is written to another service like BigQuery or Pub/Sub. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The sensitivity score of this table. |
| `↳ data_risk_level` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` The data risk level of this table. |
| `↳ predicted_info_types` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoTypeSummary>` The infoTypes predicted from this table's data. |
| `↳ other_info_types` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.OtherInfoTypeSummary>` Other infoTypes found in this table's data. |
| `↳ config_snapshot` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileConfigSnapshot` The snapshot of the configurations used to generate the profile. |
| `↳ last_modified_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when this table was last modified |
| `↳ expiration_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The time when this table expires. |
| `↳ scanned_column_count` | `int|string` The number of columns profiled in the table. |
| `↳ failed_column_count` | `int|string` The number of columns skipped in the table because of an error. |
| `↳ table_size_bytes` | `int|string` The size of the table when the profile was generated. |
| `↳ row_count` | `int|string` Number of rows in the table when the profile was generated. This will not be populated for BigLake tables. |
| `↳ encryption_status` | `int` How the table is encrypted. |
| `↳ resource_visibility` | `int` How broadly a resource has been shared. |
| `↳ profile_last_generated` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last time the profile was generated. |
| `↳ resource_labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The labels applied to the resource at the time the profile was generated. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which the table was created. |
| `↳ sample_findings_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` The BigQuery table to which the sample findings are written. |
| `↳ tags` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Tag>` The tags attached to the table, including any tags attached during profiling. Because tags are attached to Cloud SQL instances rather than Cloud SQL tables, this field is empty for Cloud SQL table profiles. |
| `↳ related_resources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RelatedResource>` Resources related to this profile. |
| `↳ domains` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Domain>` Domains associated with the profile. |

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

### getDataSourceType

The resource type that was profiled.

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

### hasDataSourceType

### clearDataSourceType

### setDataSourceType

The resource type that was profiled.

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

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

### getProjectDataProfile

The resource name of the project data profile for this table.

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

### setProjectDataProfile

The resource name of the project data profile for this table.

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

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

### getDatasetProjectId

The Google Cloud project ID that owns the resource.

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

### setDatasetProjectId

The Google Cloud project ID that owns the 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
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
locations.

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

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

### getDatasetId

If the resource is BigQuery, the dataset ID.

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

### setDatasetId

If the resource is BigQuery, the dataset ID.

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

### getFullResource

The Cloud Asset Inventory resource that was profiled in order to generate
this TableDataProfile.

<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

### setFullResource

The Cloud Asset Inventory resource that was profiled in order to generate
this TableDataProfile.

<https://cloud.google.com/apis/design/resource_names#full_resource_name>

| **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. This will always be set to DONE when the table data
profile is written to another service like BigQuery or Pub/Sub.

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

### setState

State of a profile. This will always be set to DONE when the table data
profile is written to another service like BigQuery or Pub/Sub.

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

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

### getSensitivityScore

The sensitivity score of this table.

| **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 table.

| **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 table.

| **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 table.

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

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

### getPredictedInfoTypes

The infoTypes predicted from this table's data.

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

### setPredictedInfoTypes

The infoTypes predicted from this table's data.

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

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

### getOtherInfoTypes

Other infoTypes found in this table's data.

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

### setOtherInfoTypes

Other infoTypes found in this table's data.

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

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

### getConfigSnapshot

The snapshot of the configurations used to generate the profile.

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

### hasConfigSnapshot

### clearConfigSnapshot

### setConfigSnapshot

The snapshot of the configurations used to generate the profile.

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

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

### getLastModifiedTime

The time when this table was last modified

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

### hasLastModifiedTime

### clearLastModifiedTime

### setLastModifiedTime

The time when this table was last modified

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

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

### getExpirationTime

Optional. The time when this table expires.

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

### hasExpirationTime

### clearExpirationTime

### setExpirationTime

Optional. The time when this table expires.

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

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

### getScannedColumnCount

The number of columns profiled in the table.

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

### setScannedColumnCount

The number of columns profiled in the table.

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

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

### getFailedColumnCount

The number of columns skipped in the table because of an error.

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

### setFailedColumnCount

The number of columns skipped in the table because of an error.

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

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

### getTableSizeBytes

The size of the table when the profile was generated.

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

### setTableSizeBytes

The size of the table when the profile was generated.

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

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

### getRowCount

Number of rows in the table when the profile was generated.

This will not be populated for BigLake tables.

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

### setRowCount

Number of rows in the table when the profile was generated.

This will not be populated for BigLake tables.

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

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

### getEncryptionStatus

How the table is encrypted.

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

### setEncryptionStatus

How the table is encrypted.

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

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

### getResourceVisibility

How broadly a resource has been shared.

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

### setResourceVisibility

How broadly a resource has been shared.

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

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

### getResourceLabels

The labels applied to the resource at the time the profile was generated.

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

### setResourceLabels

The labels applied to the resource at the time the profile was generated.

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

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

### getCreateTime

The time at which the table was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

The time at which the table was created.

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

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

### getSampleFindingsTable

The BigQuery table to which the sample findings are written.

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

### hasSampleFindingsTable

### clearSampleFindingsTable

### setSampleFindingsTable

The BigQuery table to which the sample findings are written.

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

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

### getTags

The tags attached to the table, including any tags attached during
profiling. Because tags are attached to Cloud SQL instances rather than
Cloud SQL tables, this field is empty for Cloud SQL table profiles.

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

### setTags

The tags attached to the table, including any tags attached during
profiling. Because tags are attached to Cloud SQL instances rather than
Cloud SQL tables, this field is empty for Cloud SQL table profiles.

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

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

### getRelatedResources

Resources related to this profile.

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

### setRelatedResources

Resources related to this profile.

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

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

### getDomains

Domains associated with the profile.

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

### setDomains

Domains associated with the profile.

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

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