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

Details about a piece of potentially sensitive information that was detected
when the data resource was profiled.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ quote` | `string` The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted. |
| `↳ infotype` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoType` The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found. |
| `↳ quote_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.QuoteInfo` Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME. |
| `↳ data_profile_resource_name` | `string` Resource name of the data profile associated with the finding. |
| `↳ finding_id` | `string` A unique identifier for the finding. |
| `↳ timestamp` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Timestamp when the finding was detected. |
| `↳ location` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileFindingLocation` Where the content was found. |
| `↳ resource_visibility` | `int` How broadly a resource has been shared. |
| `↳ full_resource_name` | `string` The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding. |
| `↳ data_source_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` The type of the resource that was profiled. |

### getQuote

The content that was found. Even if the content is not textual, it
may be converted to a textual representation here. If the finding exceeds
4096 bytes in length, the quote may be omitted.

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

### setQuote

The content that was found. Even if the content is not textual, it
may be converted to a textual representation here. If the finding exceeds
4096 bytes in length, the quote may be omitted.

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

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

### getInfotype

The [type of
content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
that might have been found.

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

### hasInfotype

### clearInfotype

### setInfotype

The [type of
content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
that might have been found.

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

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

### getQuoteInfo

Contains data parsed from quotes. Currently supported infoTypes: DATE,
DATE_OF_BIRTH, and TIME.

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

### hasQuoteInfo

### clearQuoteInfo

### setQuoteInfo

Contains data parsed from quotes. Currently supported infoTypes: DATE,
DATE_OF_BIRTH, and TIME.

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

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

### getDataProfileResourceName

Resource name of the data profile associated with the finding.

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

### setDataProfileResourceName

Resource name of the data profile associated with the finding.

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

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

### getFindingId

A unique identifier for the finding.

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

### setFindingId

A unique identifier for the finding.

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

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

### getTimestamp

Timestamp when the finding was detected.

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

### hasTimestamp

### clearTimestamp

### setTimestamp

Timestamp when the finding was detected.

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

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

### getLocation

Where the content was found.

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

### hasLocation

### clearLocation

### setLocation

Where the content was found.

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

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

### getFullResourceName

The [full resource
name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
of the resource profiled for this finding.

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

### setFullResourceName

The [full resource
name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
of the resource profiled for this finding.

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

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

### getDataSourceType

The type of the resource that was profiled.

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

### hasDataSourceType

### clearDataSourceType

### setDataSourceType

The type of the resource that was profiled.

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

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