Data Loss Prevention V2 Client - Class Proximity (1.12.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
NameDescription
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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getWindowAfter

Number of characters after the finding to consider.

Returns
TypeDescription
int

setWindowAfter

Number of characters after the finding to consider.

Parameter
NameDescription
var int
Returns
TypeDescription
$this