Data Loss Prevention V2 Client - Class InfoTypeLikelihood (2.2.0)

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

Configuration for setting a minimum likelihood per infotype. Used to customize the minimum likelihood level for specific infotypes in the request. For example, use this if you want to lower the precision for PERSON_NAME without lowering the precision for the other infotypes in the request.

Generated from protobuf message google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood

Namespace

Google \ Cloud \ Dlp \ V2 \ InspectConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ info_type Google\Cloud\Dlp\V2\InfoType

Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails.

↳ min_likelihood int

Only returns findings equal to or above this threshold. This field is required or else the configuration fails.

getInfoType

Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails.

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

hasInfoType

clearInfoType

setInfoType

Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails.

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

getMinLikelihood

Only returns findings equal to or above this threshold. This field is required or else the configuration fails.

Returns
Type Description
int

setMinLikelihood

Only returns findings equal to or above this threshold. This field is required or else the configuration fails.

Parameter
Name Description
var int
Returns
Type Description
$this