Data Loss Prevention V2 Client - Class PrivacyMetric (1.10.2)

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

hasNumericalStatsConfig

setNumericalStatsConfig

Numerical stats

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

getCategoricalStatsConfig

Categorical stats

Returns
TypeDescription
Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig|null

hasCategoricalStatsConfig

setCategoricalStatsConfig

Categorical stats

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

getKAnonymityConfig

K-anonymity

Returns
TypeDescription
Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig|null

hasKAnonymityConfig

setKAnonymityConfig

K-anonymity

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

getLDiversityConfig

l-diversity

Returns
TypeDescription
Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig|null

hasLDiversityConfig

setLDiversityConfig

l-diversity

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

getKMapEstimationConfig

k-map

Returns
TypeDescription
Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig|null

hasKMapEstimationConfig

setKMapEstimationConfig

k-map

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

getDeltaPresenceEstimationConfig

delta-presence

Returns
TypeDescription
Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig|null

hasDeltaPresenceEstimationConfig

setDeltaPresenceEstimationConfig

delta-presence

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

getType

Returns
TypeDescription
string