public sealed class ExcludeByHotword : IMessage<ExcludeByHotword>, IEquatable<ExcludeByHotword>, IDeepCloneable<ExcludeByHotword>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ExcludeByHotword.
The rule to exclude findings based on a hotword. For record inspection of
tables, column names are considered hotwords. An example of this is to
exclude a finding if it belongs to a BigQuery column that matches a specific
pattern.
public CustomInfoType.Types.DetectionRule.Types.Proximity Proximity { get; set; }
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
[[["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 latest version of the Google Cloud Data Loss Prevention v2 API related to \u003ccode\u003eExcludeByHotword\u003c/code\u003e is 4.16.0, with numerous previous versions listed, starting with 2.15.0, and going up to 4.15.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eExcludeByHotword\u003c/code\u003e is a class used within the Google Cloud Data Loss Prevention v2 API to define rules for excluding findings based on the presence of a specified hotword.\u003c/p\u003e\n"],["\u003cp\u003eThis class can be used to exclude findings in tables if they are contained within columns that match certain patterns, which are determined by the hotword definition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExcludeByHotword\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and has inherited members like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the base object class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExcludeByHotword\u003c/code\u003e class includes properties such as \u003ccode\u003eHotwordRegex\u003c/code\u003e, for defining the hotword pattern, and \u003ccode\u003eProximity\u003c/code\u003e, for specifying the character range within which the hotword must be found.\u003c/p\u003e\n"]]],[],null,[]]