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

The file cluster summary.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_cluster_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileClusterType` The file cluster type. |
| `↳ file_store_info_type_summaries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreInfoTypeSummary>` InfoTypes detected in this cluster. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been scanned. |
| `↳ data_risk_level` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` The data risk level of this cluster. RISK_LOW if nothing has been scanned. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Error>` A list of errors detected while scanning this cluster. The list is truncated to 10 per cluster. |
| `↳ file_extensions_scanned` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileExtensionInfo>` A sample of file types scanned in this cluster. Empty if no files were scanned. File extensions can be derived from the file name or the file content. |
| `↳ file_extensions_seen` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileExtensionInfo>` A sample of file types seen in this cluster. Empty if no files were seen. File extensions can be derived from the file name or the file content. |
| `↳ no_files_exist` | `bool` True if no files exist in this cluster. If the file store had more files than could be listed, this will be false even if no files for this cluster were seen and file_extensions_seen is empty. |

### getFileClusterType

The file cluster type.

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

### hasFileClusterType

### clearFileClusterType

### setFileClusterType

The file cluster type.

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

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

### getFileStoreInfoTypeSummaries

InfoTypes detected in this cluster.

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

### setFileStoreInfoTypeSummaries

InfoTypes detected in this cluster.

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

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

### getSensitivityScore

The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
if nothing has been scanned.

| **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 cluster. The score will be SENSITIVITY_LOW
if nothing has been scanned.

| **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 cluster. RISK_LOW if nothing has been
scanned.

| **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 cluster. RISK_LOW if nothing has been
scanned.

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

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

### getErrors

A list of errors detected while scanning this cluster. The list is
truncated to 10 per cluster.

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

### setErrors

A list of errors detected while scanning this cluster. The list is
truncated to 10 per cluster.

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

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

### getFileExtensionsScanned

A sample of file types scanned in this cluster. Empty if no files were
scanned. File extensions can be derived from the file name or the file
content.

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

### setFileExtensionsScanned

A sample of file types scanned in this cluster. Empty if no files were
scanned. File extensions can be derived from the file name or the file
content.

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

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

### getFileExtensionsSeen

A sample of file types seen in this cluster. Empty if no files were seen.

File extensions can be derived from the file name or the file content.

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

### setFileExtensionsSeen

A sample of file types seen in this cluster. Empty if no files were seen.

File extensions can be derived from the file name or the file content.

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

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

### getNoFilesExist

True if no files exist in this cluster. If the file store had more files
than could be listed, this will be false even if no files for this cluster
were seen and file_extensions_seen is empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setNoFilesExist

True if no files exist in this cluster. If the file store had more files
than could be listed, this will be false even if no files for this cluster
were seen and file_extensions_seen is empty.

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

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