public sealed class Proximity : IMessage<CustomInfoType.Types.DetectionRule.Types.Proximity>, IEquatable<CustomInfoType.Types.DetectionRule.Types.Proximity>, IDeepCloneable<CustomInfoType.Types.DetectionRule.Types.Proximity>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CustomInfoType.Types.DetectionRule.Types.Proximity.
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 page provides reference documentation for the \u003ccode\u003eCustomInfoType.Types.DetectionRule.Types.Proximity\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProximity\u003c/code\u003e class is used to define a window around a finding for applying detection rules, as seen with the \u003ccode\u003eWindowAfter\u003c/code\u003e and \u003ccode\u003eWindowBefore\u003c/code\u003e properties.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers access to various versions of the documentation, ranging from version 2.15.0 up to the latest, 4.16.0, and down to the selected current version 4.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProximity\u003c/code\u003e 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, showcasing its functionality within the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProximity\u003c/code\u003e class has two constructors \u003ccode\u003eProximity()\u003c/code\u003e and \u003ccode\u003eProximity(CustomInfoType.Types.DetectionRule.Types.Proximity other)\u003c/code\u003e, and both the \u003ccode\u003eWindowAfter\u003c/code\u003e and \u003ccode\u003eWindowBefore\u003c/code\u003e properties return and receive an Int32 value.\u003c/p\u003e\n"]]],[],null,[]]