Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API enum CloudStorageOptions.Types.SampleMethod.
How to sample bytes if not all bytes are scanned. Meaningful only when used
in conjunction with bytes_limit_per_file. If not specified, scanning would
start from the top.
[[["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 for .NET is 4.16.0, with available documentation and references for multiple versions spanning from 2.15.0 to 4.16.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudStorageOptions.Types.SampleMethod\u003c/code\u003e enum is part of the Google.Cloud.Dlp.V2 namespace, and it's used to define how to sample bytes when not all bytes in a file are scanned.\u003c/p\u003e\n"],["\u003cp\u003eThe available sampling methods include \u003ccode\u003eRandomStart\u003c/code\u003e, \u003ccode\u003eTop\u003c/code\u003e (the default), and \u003ccode\u003eUnspecified\u003c/code\u003e, each specifying how the byte sampling should start within a file.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides detailed descriptions of the fields in \u003ccode\u003eCloudStorageOptions.Types.SampleMethod\u003c/code\u003e, \u003ccode\u003eRandomStart\u003c/code\u003e, \u003ccode\u003eTop\u003c/code\u003e and \u003ccode\u003eUnspecified\u003c/code\u003e, offering insights into their respective roles in the scanning process.\u003c/p\u003e\n"]]],[],null,[]]