Data Loss Prevention V2 Client - Class InspectionRule (2.2.1)

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

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

Generated from protobuf message google.privacy.dlp.v2.InspectionRule

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ hotword_rule CustomInfoType\DetectionRule\HotwordRule

Hotword-based detection rule.

↳ exclusion_rule ExclusionRule

Exclusion rule.

getHotwordRule

Hotword-based detection rule.

Returns
Type Description
CustomInfoType\DetectionRule\HotwordRule|null

hasHotwordRule

setHotwordRule

Hotword-based detection rule.

Parameter
Name Description
var CustomInfoType\DetectionRule\HotwordRule
Returns
Type Description
$this

getExclusionRule

Exclusion rule.

Returns
Type Description
ExclusionRule|null

hasExclusionRule

setExclusionRule

Exclusion rule.

Parameter
Name Description
var ExclusionRule
Returns
Type Description
$this

getType

Returns
Type Description
string