Data Loss Prevention V2 Client - Class WordList (1.13.2)

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

Message defining a list of words or phrases to search for in the data.

Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList

Namespace

Google \ Cloud \ Dlp \ V2 \ CustomInfoType \ Dictionary

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ words array

Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]

getWords

Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setWords

Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]

Parameter
Name Description
var string[]
Returns
Type Description
$this