Data Loss Prevention V2 Client - Class LDiversityConfig (2.1.0)

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

l-diversity metric, used for analysis of reidentification risk.

Generated from protobuf message google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig

Namespace

Google \ Cloud \ Dlp \ V2 \ PrivacyMetric

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ quasi_ids array<Google\Cloud\Dlp\V2\FieldId>

Set of quasi-identifiers indicating how equivalence classes are defined for the l-diversity computation. When multiple fields are specified, they are considered a single composite key.

↳ sensitive_attribute Google\Cloud\Dlp\V2\FieldId

Sensitive field for computing the l-value.

getQuasiIds

Set of quasi-identifiers indicating how equivalence classes are defined for the l-diversity computation. When multiple fields are specified, they are considered a single composite key.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setQuasiIds

Set of quasi-identifiers indicating how equivalence classes are defined for the l-diversity computation. When multiple fields are specified, they are considered a single composite key.

Parameter
Name Description
var array<Google\Cloud\Dlp\V2\FieldId>
Returns
Type Description
$this

getSensitiveAttribute

Sensitive field for computing the l-value.

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

hasSensitiveAttribute

clearSensitiveAttribute

setSensitiveAttribute

Sensitive field for computing the l-value.

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