Data Loss Prevention V2 Client - Class QuasiId (1.12.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class QuasiId.

A column with a semantic tag attached.

Generated from protobuf message google.privacy.dlp.v2.QuasiId

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field Google\Cloud\Dlp\V2\FieldId

Required. Identifies the column.

↳ info_type Google\Cloud\Dlp\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 (below).

↳ inferred 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
TypeDescription
Google\Cloud\Dlp\V2\FieldId|null

hasField

clearField

setField

Required. Identifies the column.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\FieldId
Returns
TypeDescription
$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
TypeDescription
Google\Cloud\Dlp\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
NameDescription
var Google\Cloud\Dlp\V2\InfoType
Returns
TypeDescription
$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 (below).

Returns
TypeDescription
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 (below).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInferred

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\GPBEmpty
Returns
TypeDescription
$this

getTag

Returns
TypeDescription
string