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

A column with a semantic tag attached.

Generated from protobuf message `google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField`

## Namespace

Google \\ Cloud \\ Dlp \\ V2 \\ PrivacyMetric \\ KMapEstimationConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FieldId` Required. Identifies the column. |
| `↳ info_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.InfoType` A column can be tagged with a InfoType to use the relevant public dataset as a statistical model of population, if available. We currently support US ZIP codes, region codes, ages and genders. To programmatically obtain the list of supported InfoTypes, use ListInfoTypes with the supported_by=RISK_ANALYSIS filter. |
| `↳ custom_tag` | `string` A column can be tagged with a custom tag. In this case, the user must indicate an auxiliary table that contains statistical information on the possible values of this column. |
| `↳ inferred` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/GPBEmpty` If no semantic tag is indicated, we infer the statistical model from the distribution of values in the input data |

### getField

Required. Identifies the column.

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

### hasField

### clearField

### setField

Required. Identifies the column.

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

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

### getInfoType

A column can be tagged with a InfoType to use the relevant public
dataset as a statistical model of population, if available. We
currently support US ZIP codes, region codes, ages and genders.

To programmatically obtain the list of supported InfoTypes, use
ListInfoTypes with the supported_by=RISK_ANALYSIS filter.

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

### hasInfoType

### setInfoType

A column can be tagged with a InfoType to use the relevant public
dataset as a statistical model of population, if available. We
currently support US ZIP codes, region codes, ages and genders.

To programmatically obtain the list of supported InfoTypes, use
ListInfoTypes with the supported_by=RISK_ANALYSIS filter.

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

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

### getCustomTag

A column can be tagged with a custom tag. In this case, the user must
indicate an auxiliary table that contains statistical information on
the possible values of this column.

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

### hasCustomTag

### setCustomTag

A column can be tagged with a custom tag. In this case, the user must
indicate an auxiliary table that contains statistical information on
the possible values of this column.

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

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

### getInferred

If no semantic tag is indicated, we infer the statistical model from
the distribution of values in the input data

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

### hasInferred

### setInferred

If no semantic tag is indicated, we infer the statistical model from
the distribution of values in the input data

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

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

### getTag

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