Data Loss Prevention V2 Client - Class StoredInfoTypeVersion (2.2.0)

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 Google\Cloud\Dlp\V2\StoredInfoTypeConfig

StoredInfoType configuration.

↳ create_time 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<Google\Cloud\Dlp\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 Google\Cloud\Dlp\V2\StoredInfoTypeStats

Statistics about this storedInfoType version.

getConfig

StoredInfoType configuration.

Returns
Type Description
Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null

hasConfig

clearConfig

setConfig

StoredInfoType configuration.

Parameter
Name Description
var Google\Cloud\Dlp\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
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 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

setState

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

Parameter
Name Description
var int
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
Google\Protobuf\Internal\RepeatedField

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<Google\Cloud\Dlp\V2\Error>
Returns
Type Description
$this

getStats

Statistics about this storedInfoType version.

Returns
Type Description
Google\Cloud\Dlp\V2\StoredInfoTypeStats|null

hasStats

clearStats

setStats

Statistics about this storedInfoType version.

Parameter
Name Description
var Google\Cloud\Dlp\V2\StoredInfoTypeStats
Returns
Type Description
$this