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 \ KMapEstimationConfigMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Cloud\Dlp\V2\FieldId|null |
hasField
clearField
setField
Required. Identifies the column.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\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 |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\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 (below).
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 (below).
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 |
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 |
Google\Protobuf\GPBEmpty
|
Returns | |
---|---|
Type | Description |
$this |
getTag
Returns | |
---|---|
Type | Description |
string |