Data Loss Prevention V2 Client - Class Proximity (2.2.0)

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

Message for specifying a window around a finding to apply a detection rule.

Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity

Namespace

Google \ Cloud \ Dlp \ V2 \ CustomInfoType \ DetectionRule

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ window_before int

Number of characters before the finding to consider. For tabular data, if you want to modify the likelihood of an entire column of findngs, set this to 1. For more information, see Hotword example: Set the match likelihood of a table column.

↳ window_after int

Number of characters after the finding to consider.

getWindowBefore

Number of characters before the finding to consider. For tabular data, if you want to modify the likelihood of an entire column of findngs, set this to 1. For more information, see Hotword example: Set the match likelihood of a table column.

Returns
Type Description
int

setWindowBefore

Number of characters before the finding to consider. For tabular data, if you want to modify the likelihood of an entire column of findngs, set this to 1. For more information, see Hotword example: Set the match likelihood of a table column.

Parameter
Name Description
var int
Returns
Type Description
$this

getWindowAfter

Number of characters after the finding to consider.

Returns
Type Description
int

setWindowAfter

Number of characters after the finding to consider.

Parameter
Name Description
var int
Returns
Type Description
$this