Data Loss Prevention V2 Client - Class PrivacyMetric (1.14.0)

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 Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig

Numerical stats

↳ categorical_stats_config Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig

Categorical stats

↳ k_anonymity_config Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig

K-anonymity

↳ l_diversity_config Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig

l-diversity

↳ k_map_estimation_config Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig

k-map

↳ delta_presence_estimation_config Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig

delta-presence

getNumericalStatsConfig

Numerical stats

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig|null

hasNumericalStatsConfig

setNumericalStatsConfig

Numerical stats

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

getCategoricalStatsConfig

Categorical stats

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig|null

hasCategoricalStatsConfig

setCategoricalStatsConfig

Categorical stats

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

getKAnonymityConfig

K-anonymity

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig|null

hasKAnonymityConfig

setKAnonymityConfig

K-anonymity

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

getLDiversityConfig

l-diversity

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig|null

hasLDiversityConfig

setLDiversityConfig

l-diversity

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

getKMapEstimationConfig

k-map

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig|null

hasKMapEstimationConfig

setKMapEstimationConfig

k-map

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

getDeltaPresenceEstimationConfig

delta-presence

Returns
Type Description
Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig|null

hasDeltaPresenceEstimationConfig

setDeltaPresenceEstimationConfig

delta-presence

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

getType

Returns
Type Description
string