[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class protos.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity (6.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [6.2.0 (latest)](/nodejs/docs/reference/dlp/latest/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [6.1.0](/nodejs/docs/reference/dlp/6.1.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.13.0](/nodejs/docs/reference/dlp/5.13.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.11.0](/nodejs/docs/reference/dlp/5.11.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.10.0](/nodejs/docs/reference/dlp/5.10.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.7.0](/nodejs/docs/reference/dlp/5.7.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.5.0](/nodejs/docs/reference/dlp/5.5.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.3.0](/nodejs/docs/reference/dlp/5.3.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [5.0.0](/nodejs/docs/reference/dlp/5.0.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [4.4.2](/nodejs/docs/reference/dlp/4.4.2/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [4.2.0](/nodejs/docs/reference/dlp/4.2.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [4.1.1](/nodejs/docs/reference/dlp/4.1.1/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [3.5.0](/nodejs/docs/reference/dlp/3.5.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [3.4.0](/nodejs/docs/reference/dlp/3.4.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [3.3.0](/nodejs/docs/reference/dlp/3.3.0/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [3.2.1](/nodejs/docs/reference/dlp/3.2.1/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity)\n- [3.1.8](/nodejs/docs/reference/dlp/3.1.8/dlp/protos.google.privacy.dlp.v2.custominfotype.detectionrule.proximity) \nRepresents a Proximity.\n\nPackage\n-------\n\n[@google-cloud/dlp](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(properties)\n\n constructor(properties?: google.privacy.dlp.v2.CustomInfoType.DetectionRule.IProximity);\n\nConstructs a new Proximity.\n\nProperties\n----------\n\n### windowAfter\n\n public windowAfter: number;\n\nProximity windowAfter.\n\n### windowBefore\n\n public windowBefore: number;\n\nProximity windowBefore.\n\nMethods\n-------\n\n### create(properties)\n\n public static create(properties?: google.privacy.dlp.v2.CustomInfoType.DetectionRule.IProximity): google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity;\n\nCreates a new Proximity instance using the specified properties.\n\n### decode(reader, length)\n\n public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity;\n\nDecodes a Proximity message from the specified reader or buffer.\n\n### decodeDelimited(reader)\n\n public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity;\n\nDecodes a Proximity message from the specified reader or buffer, length delimited.\n\n### encode(message, writer)\n\n public static encode(message: google.privacy.dlp.v2.CustomInfoType.DetectionRule.IProximity, writer?: $protobuf.Writer): $protobuf.Writer;\n\nEncodes the specified Proximity message. Does not implicitly messages.\n\n### encodeDelimited(message, writer)\n\n public static encodeDelimited(message: google.privacy.dlp.v2.CustomInfoType.DetectionRule.IProximity, writer?: $protobuf.Writer): $protobuf.Writer;\n\nEncodes the specified Proximity message, length delimited. Does not implicitly messages.\n\n### fromObject(object)\n\n public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity;\n\nCreates a Proximity message from a plain object. Also converts values to their respective internal types.\n\n### getTypeUrl(typeUrlPrefix)\n\n public static getTypeUrl(typeUrlPrefix?: string): string;\n\nGets the default type url for Proximity\n\n### toJSON()\n\n public toJSON(): { [k: string]: any };\n\nConverts this Proximity to JSON.\n\n### toObject(message, options)\n\n public static toObject(message: google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity, options?: $protobuf.IConversionOptions): { [k: string]: any };\n\nCreates a plain object from a Proximity message. Also converts values to other types if specified.\n\n### verify(message)\n\n public static verify(message: { [k: string]: any }): (string|null);\n\nVerifies a Proximity message."]]