Data Loss Prevention V2 Client - Class PrivacyMetric (2.2.1)

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

Privacy metric to compute for reidentification risk analysis.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ numerical_stats_config PrivacyMetric\NumericalStatsConfig

Numerical stats

↳ categorical_stats_config PrivacyMetric\CategoricalStatsConfig

Categorical stats

↳ k_anonymity_config PrivacyMetric\KAnonymityConfig

K-anonymity

↳ l_diversity_config PrivacyMetric\LDiversityConfig

l-diversity

↳ k_map_estimation_config PrivacyMetric\KMapEstimationConfig

k-map

↳ delta_presence_estimation_config PrivacyMetric\DeltaPresenceEstimationConfig

delta-presence

getNumericalStatsConfig

Numerical stats

Returns
Type Description
PrivacyMetric\NumericalStatsConfig|null

hasNumericalStatsConfig

setNumericalStatsConfig

Numerical stats

Parameter
Name Description
var PrivacyMetric\NumericalStatsConfig
Returns
Type Description
$this

getCategoricalStatsConfig

Categorical stats

Returns
Type Description
PrivacyMetric\CategoricalStatsConfig|null

hasCategoricalStatsConfig

setCategoricalStatsConfig

Categorical stats

Parameter
Name Description
var PrivacyMetric\CategoricalStatsConfig
Returns
Type Description
$this

getKAnonymityConfig

K-anonymity

Returns
Type Description
PrivacyMetric\KAnonymityConfig|null

hasKAnonymityConfig

setKAnonymityConfig

K-anonymity

Parameter
Name Description
var PrivacyMetric\KAnonymityConfig
Returns
Type Description
$this

getLDiversityConfig

l-diversity

Returns
Type Description
PrivacyMetric\LDiversityConfig|null

hasLDiversityConfig

setLDiversityConfig

l-diversity

Parameter
Name Description
var PrivacyMetric\LDiversityConfig
Returns
Type Description
$this

getKMapEstimationConfig

k-map

Returns
Type Description
PrivacyMetric\KMapEstimationConfig|null

hasKMapEstimationConfig

setKMapEstimationConfig

k-map

Parameter
Name Description
var PrivacyMetric\KMapEstimationConfig
Returns
Type Description
$this

getDeltaPresenceEstimationConfig

delta-presence

Returns
Type Description
PrivacyMetric\DeltaPresenceEstimationConfig|null

hasDeltaPresenceEstimationConfig

setDeltaPresenceEstimationConfig

delta-presence

Parameter
Name Description
var PrivacyMetric\DeltaPresenceEstimationConfig
Returns
Type Description
$this

getType

Returns
Type Description
string