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

Snapshot of the configurations used to generate the profile.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ inspect_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InspectConfig` A copy of the inspection config used to generate this profile. This is a copy of the inspect_template specified in `DataProfileJobConfig`. |
| `↳ data_profile_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileJobConfig` A copy of the configuration used to generate this profile. This is deprecated, and the DiscoveryConfig field is preferred moving forward. DataProfileJobConfig will still be written here for Discovery in BigQuery for backwards compatibility, but will not be updated with new fields, while DiscoveryConfig will. |
| `↳ discovery_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryConfig` A copy of the configuration used to generate this profile. |
| `↳ inspect_template_name` | `string` Name of the inspection template used to generate this profile |
| `↳ inspect_template_modified_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Timestamp when the template was modified |

### getInspectConfig

A copy of the inspection config used to generate this profile. This
is a copy of the inspect_template specified in `DataProfileJobConfig`.

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

### hasInspectConfig

### clearInspectConfig

### setInspectConfig

A copy of the inspection config used to generate this profile. This
is a copy of the inspect_template specified in `DataProfileJobConfig`.

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

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

### getDataProfileJob

A copy of the configuration used to generate this profile. This is
deprecated, and the DiscoveryConfig field is preferred moving forward.

DataProfileJobConfig will still be written here for Discovery in BigQuery
for backwards compatibility, but will not be updated with new fields, while
DiscoveryConfig will.

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

### hasDataProfileJob

### clearDataProfileJob

### setDataProfileJob

A copy of the configuration used to generate this profile. This is
deprecated, and the DiscoveryConfig field is preferred moving forward.

DataProfileJobConfig will still be written here for Discovery in BigQuery
for backwards compatibility, but will not be updated with new fields, while
DiscoveryConfig will.

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

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

### getDiscoveryConfig

A copy of the configuration used to generate this profile.

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

### hasDiscoveryConfig

### clearDiscoveryConfig

### setDiscoveryConfig

A copy of the configuration used to generate this profile.

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

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

### getInspectTemplateName

Name of the inspection template used to generate this profile

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

### setInspectTemplateName

Name of the inspection template used to generate this profile

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

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

### getInspectTemplateModifiedTime

Timestamp when the template was modified

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

### hasInspectTemplateModifiedTime

### clearInspectTemplateModifiedTime

### setInspectTemplateModifiedTime

Timestamp when the template was modified

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

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