public sealed class CustomInfoType.Types.Dictionary : IMessage<CustomInfoType.Types.Dictionary>, IEquatable<CustomInfoType.Types.Dictionary>, IDeepCloneable<CustomInfoType.Types.Dictionary>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CustomInfoType.Types.Dictionary.
Custom information type based on a dictionary of words or phrases. This can
be used to match sensitive information specific to the data, such as a list
of employee IDs or job titles.
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, so 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 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 findings because such characters
are treated as whitespace. The
limits page
contains details about the size limits of dictionaries. For dictionaries
that do not fit within these constraints, consider using
LargeCustomDictionaryConfig in the StoredInfoType API.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe provided content details the different versions of the \u003ccode\u003eCustomInfoType.Types.Dictionary\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API, with the latest version being 4.16.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eCustomInfoType.Types.Dictionary\u003c/code\u003e, is used to define custom information types based on dictionaries for matching sensitive data like employee IDs or job titles.\u003c/p\u003e\n"],["\u003cp\u003eDictionary-based matching is case-insensitive and considers characters other than letters and digits as whitespace, allowing for variations in formatting when matching phrases.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation references the \u003ccode\u003eCloudStoragePath\u003c/code\u003e and \u003ccode\u003eWordList\u003c/code\u003e properties that can be used to utilize a dictionary from cloud storage, or a provided list of words respectively, when utilizing this class.\u003c/p\u003e\n"],["\u003cp\u003eDictionaries have size limitations, with larger ones requiring the \u003ccode\u003eLargeCustomDictionaryConfig\u003c/code\u003e in the \u003ccode\u003eStoredInfoType\u003c/code\u003e API.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class CustomInfoType.Types.Dictionary (4.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary) \n\n public sealed class CustomInfoType.Types.Dictionary : IMessage\u003cCustomInfoType.Types.Dictionary\u003e, IEquatable\u003cCustomInfoType.Types.Dictionary\u003e, IDeepCloneable\u003cCustomInfoType.Types.Dictionary\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CustomInfoType.Types.Dictionary.\n\nCustom information type based on a dictionary of words or phrases. This can\nbe used to match sensitive information specific to the data, such as a list\nof employee IDs or job titles.\n\nDictionary words are case-insensitive and all characters other than letters\nand digits in the unicode [Basic Multilingual\nPlane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)\nwill be replaced with whitespace when scanning for matches, so the\ndictionary phrase \"Sam Johnson\" will match all three phrases \"sam johnson\",\n\"Sam, Johnson\", and \"Sam (Johnson)\". Additionally, the characters\nsurrounding any match must be of a different type than the adjacent\ncharacters within the word, so letters must be next to non-letters and\ndigits next to non-digits. For example, the dictionary word \"jen\" will\nmatch the first three letters of the text \"jen123\" but will return no\nmatches for \"jennifer\".\n\nDictionary words containing a large number of characters that are not\nletters or digits may result in unexpected findings because such characters\nare treated as whitespace. The\n[limits](https://cloud.google.com/sensitive-data-protection/limits) page\ncontains details about the size limits of dictionaries. For dictionaries\nthat do not fit within these constraints, consider using\n`LargeCustomDictionaryConfig` in the `StoredInfoType` API. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CustomInfoType.Types.Dictionary \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType)[Types](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types)[Dictionary](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType)[Types](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types)[Dictionary](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType)[Types](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types)[Dictionary](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType.Types.Dictionary), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dlp.V2](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Dlp.V2.dll\n\nConstructors\n------------\n\n### Dictionary()\n\n public Dictionary()\n\n### Dictionary(Dictionary)\n\n public Dictionary(CustomInfoType.Types.Dictionary other)\n\nProperties\n----------\n\n### CloudStoragePath\n\n public CloudStoragePath CloudStoragePath { get; set; }\n\nNewline-delimited file of words in Cloud Storage. Only a single file\nis accepted.\n\n### SourceCase\n\n public CustomInfoType.Types.Dictionary.SourceOneofCase SourceCase { get; }\n\n### WordList\n\n public CustomInfoType.Types.Dictionary.Types.WordList WordList { get; set; }\n\nList of words or phrases to search for."]]