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

If set, the detailed data profiles will be persisted to the location
of your choice whenever updated.

Generated from protobuf message `google.privacy.dlp.v2.DataProfileAction.Export`

## Namespace

Google \\ Cloud \\ Dlp \\ V2 \\ DataProfileAction

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ profile_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` Store all profiles to BigQuery. \* \* The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names. \* \* See [Analyze data profiles stored in BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). \* \* See [Sample queries for your BigQuery table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). \* \* Data is inserted using [streaming insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished. \* \* The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification. \* \* The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Data Studio reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary. |
| `↳ sample_findings_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` Store sample [data profile findings](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileFinding) in an existing table or a new table in an existing dataset. Each regeneration will result in new rows in BigQuery. Data is inserted using [streaming insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished. |

### getProfileTable

Store all profiles to BigQuery.

- The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names.
- See [Analyze data profiles stored in
  BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
- See [Sample queries for your BigQuery
  table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
- Data is inserted using [streaming
  insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
  - The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification.
  - The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Data Studio
    reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.

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

### hasProfileTable

### clearProfileTable

### setProfileTable

Store all profiles to BigQuery.

- The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names.
- See [Analyze data profiles stored in
  BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
- See [Sample queries for your BigQuery
  table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
- Data is inserted using [streaming
  insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
  - The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification.
  - The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Data Studio
    reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.

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

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

### getSampleFindingsTable

Store sample [data profile
findings](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileFinding) in an existing table
or a new table in an existing dataset. Each regeneration will result in
new rows in BigQuery. Data is inserted using [streaming
insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
and so data may be in the buffer for a period of time after the profile
has finished.

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

### hasSampleFindingsTable

### clearSampleFindingsTable

### setSampleFindingsTable

Store sample [data profile
findings](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileFinding) in an existing table
or a new table in an existing dataset. Each regeneration will result in
new rows in BigQuery. Data is inserted using [streaming
insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
and so data may be in the buffer for a period of time after the profile
has finished.

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

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