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\u003eThis page provides documentation for the \u003ccode\u003eCloudStorageOptions.Types.SampleMethod\u003c/code\u003e enum within the Google Cloud Data Loss Prevention v2 API, specifically for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSampleMethod\u003c/code\u003e enum dictates how bytes are sampled when not all bytes in a file are scanned, especially when used with \u003ccode\u003ebytes_limit_per_file\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are three sampling methods defined within the enum: \u003ccode\u003eRandomStart\u003c/code\u003e which allows you to randomly start the scanning, \u003ccode\u003eTop\u003c/code\u003e which will start the scan from the top, and \u003ccode\u003eUnspecified\u003c/code\u003e which means there will be no sampling.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a comprehensive list of all available versions of this API enum, ranging from version 2.15.0 to the latest version, 4.16.0, with links for each.\u003c/p\u003e\n"]]],[],null,[]]