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

An auxiliary table containing statistical information on the relative
frequency of different quasi-identifiers values. It has one or several
quasi-identifiers columns, and one column that indicates the relative
frequency of each quasi-identifier tuple.

If a tuple is present in the data but not in the auxiliary table, the
corresponding relative frequency is assumed to be zero (and thus, the
tuple is highly reidentifiable).

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` Required. Auxiliary table location. |
| `↳ quasi_ids` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.StatisticalTable.QuasiIdentifierField>` Required. Quasi-identifier columns. |
| `↳ relative_frequency` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FieldId` Required. The relative frequency column must contain a floating-point number between 0 and 1 (inclusive). Null values are assumed to be zero. |

### getTable

Required. Auxiliary table location.

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

### hasTable

### clearTable

### setTable

Required. Auxiliary table location.

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

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

### getQuasiIds

Required. Quasi-identifier columns.

| **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.StatisticalTable.QuasiIdentifierField>` |   |

### setQuasiIds

Required. Quasi-identifier columns.

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

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

### getRelativeFrequency

Required. The relative frequency column must contain a floating-point
number between 0 and 1 (inclusive). Null values are assumed to be zero.

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

### hasRelativeFrequency

### clearRelativeFrequency

### setRelativeFrequency

Required. The relative frequency column must contain a floating-point
number between 0 and 1 (inclusive). Null values are assumed to be zero.

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

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