Data Loss Prevention V2 Client - Class CategoricalStatsConfig (1.16.0)

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

Compute numerical stats over an individual column, including number of distinct values and value count distribution.

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

Namespace

Google \ Cloud \ Dlp \ V2 \ PrivacyMetric

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ field Google\Cloud\Dlp\V2\FieldId

Field to compute categorical stats on. All column types are supported except for arrays and structs. However, it may be more informative to use NumericalStats when the field type is supported, depending on the data.

getField

Field to compute categorical stats on. All column types are supported except for arrays and structs. However, it may be more informative to use NumericalStats when the field type is supported, depending on the data.

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

hasField

clearField

setField

Field to compute categorical stats on. All column types are supported except for arrays and structs. However, it may be more informative to use NumericalStats when the field type is supported, depending on the data.

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