Data Loss Prevention V2 Client - Class InfoTypeLikelihood (1.11.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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\Dlp\V2\InfoType
Returns
TypeDescription
$this

getMinLikelihood

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

Returns
TypeDescription
int

setMinLikelihood

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this