Data Loss Prevention V2 Client - Class LDiversityConfig (1.9.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
NameDescription
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
TypeDescription
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
NameDescription
var array<Google\Cloud\Dlp\V2\FieldId>
Returns
TypeDescription
$this

getSensitiveAttribute

Sensitive field for computing the l-value.

Returns
TypeDescription
Google\Cloud\Dlp\V2\FieldId|null

hasSensitiveAttribute

clearSensitiveAttribute

setSensitiveAttribute

Sensitive field for computing the l-value.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\FieldId
Returns
TypeDescription
$this