Data Loss Prevention V2 Client - Class InspectionRule (1.13.2)

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 Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule

Hotword-based detection rule.

↳ exclusion_rule Google\Cloud\Dlp\V2\ExclusionRule

Exclusion rule.

getHotwordRule

Hotword-based detection rule.

Returns
Type Description
Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null

hasHotwordRule

setHotwordRule

Hotword-based detection rule.

Parameter
Name Description
var Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule
Returns
Type Description
$this

getExclusionRule

Exclusion rule.

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

hasExclusionRule

setExclusionRule

Exclusion rule.

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

getType

Returns
Type Description
string