Google Cloud Model Armor V1 Client - Class Dictionary (0.10.0)

Reference documentation and code samples for the Google Cloud Model Armor V1 Client class Dictionary.

Message defining a custom dictionary of words or phrases for syntactic match.

Dictionary words are case-insensitive and all characters other than letters and digits in the unicode Basic Multilingual Plane will be replaced with whitespace when scanning for matches. For example, the dictionary phrase Sam Johnson will match all three phrases sam johnson, Sam, Johnson, and Sam (Johnson). Additionally, the characters surrounding any match must be of a different type than the adjacent characters within the word, so letters must be next to non-letters and digits must be next to non-digits. For example, the dictionary word jen will match the first three letters of the text jen123 but will return no matches for jennifer. Dictionary words containing a large number of characters that are not letters or digits may result in unexpected matches because such characters are treated as whitespace. For details about the size limits of dictionaries, see Quotas and limits.

Generated from protobuf message google.cloud.modelarmor.v1.Dictionary

Namespace

Google \ Cloud \ ModelArmor \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ word_list WordList

Message defining a list of words or phrases.

getWordList

Message defining a list of words or phrases.

Returns
Type Description
WordList|null

hasWordList

setWordList

Message defining a list of words or phrases.

Parameter
Name Description
var WordList
Returns
Type Description
$this

getSource

Returns
Type Description
string