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

Version of a StoredInfoType, including the configuration used to build it,
create timestamp, and current state.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.StoredInfoTypeConfig` StoredInfoType configuration. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Create timestamp of the version. Read-only, determined by the system when the version is created. |
| `↳ state` | `int` Stored info type version state. Read-only, updated by the system during dictionary creation. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Error>` Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first. For example, some of the data for stored custom dictionaries is put in the user's Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid. If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same `config` if it was not the source of the error. |
| `↳ stats` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.StoredInfoTypeStats` Statistics about this storedInfoType version. |

### getConfig

StoredInfoType configuration.

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

### hasConfig

### clearConfig

### setConfig

StoredInfoType configuration.

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

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

### getCreateTime

Create timestamp of the version. Read-only, determined by the system
when the version is created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Create timestamp of the version. Read-only, determined by the system
when the version is created.

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

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

### getState

Stored info type version state. Read-only, updated by the system
during dictionary creation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StoredInfoTypeState](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.StoredInfoTypeState). |

### setState

Stored info type version state. Read-only, updated by the system
during dictionary creation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StoredInfoTypeState](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.StoredInfoTypeState). |

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

### getErrors

Errors that occurred when creating this storedInfoType version, or
anomalies detected in the storedInfoType data that render it unusable. Only
the five most recent errors will be displayed, with the most recent error
appearing first.

For example, some of the data for stored custom dictionaries is put in
the user's Cloud Storage bucket, and if this data is modified or
deleted by the user or another system, the dictionary becomes invalid.
If any errors occur, fix the problem indicated by the error message and
use the UpdateStoredInfoType API method to create another version of the
storedInfoType to continue using it, reusing the same `config` if it was
not the source of the error.

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

Errors that occurred when creating this storedInfoType version, or
anomalies detected in the storedInfoType data that render it unusable. Only
the five most recent errors will be displayed, with the most recent error
appearing first.

For example, some of the data for stored custom dictionaries is put in
the user's Cloud Storage bucket, and if this data is modified or
deleted by the user or another system, the dictionary becomes invalid.
If any errors occur, fix the problem indicated by the error message and
use the UpdateStoredInfoType API method to create another version of the
storedInfoType to continue using it, reusing the same `config` if it was
not the source of the error.

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

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

### getStats

Statistics about this storedInfoType version.

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

### hasStats

### clearStats

### setStats

Statistics about this storedInfoType version.

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

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