public sealed class Proximity : IMessage<CustomInfoType.Types.DetectionRule.Types.Proximity>, IEquatable<CustomInfoType.Types.DetectionRule.Types.Proximity>, IDeepCloneable<CustomInfoType.Types.DetectionRule.Types.Proximity>, IBufferMessage, IMessage
Message for specifying a window around a finding to apply a detection
rule.
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.
[[["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\u003eThis webpage details the \u003ccode\u003eProximity\u003c/code\u003e class, a component of the Google Cloud Data Loss Prevention (DLP) API's \u003ccode\u003eCustomInfoType.Types.DetectionRule.Types\u003c/code\u003e, used to define a context window around detected data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProximity\u003c/code\u003e class is found within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace and is implemented as part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2.dll\u003c/code\u003e assembly, and is available in numerous versions, including the latest 4.16.0 and many older ones.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, and buffer message operations, respectively.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eProximity\u003c/code\u003e class include \u003ccode\u003eWindowAfter\u003c/code\u003e and \u003ccode\u003eWindowBefore\u003c/code\u003e, both of which are integers that define the number of characters to consider after and before a finding, respectively, to determine context.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors: a default parameterless constructor, and another that takes a \u003ccode\u003eCustomInfoType.Types.DetectionRule.Types.Proximity\u003c/code\u003e parameter for copying existing instances.\u003c/p\u003e\n"]]],[],null,[]]