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 document provides reference documentation for the \u003ccode\u003eCloudStorageOptions.Types.SampleMethod\u003c/code\u003e enum within the Google Cloud Data Loss Prevention v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this resource is 4.16.0, with multiple prior versions available, ranging back to version 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudStorageOptions.Types.SampleMethod\u003c/code\u003e is used to specify how bytes are sampled when not all bytes of a file are scanned, in conjunction with the \u003ccode\u003ebytes_limit_per_file\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eAvailable sample methods include \u003ccode\u003eRandomStart\u003c/code\u003e (random offset), \u003ccode\u003eTop\u003c/code\u003e (start from the beginning), and \u003ccode\u003eUnspecified\u003c/code\u003e (no sampling).\u003c/p\u003e\n"],["\u003cp\u003eThis resource is part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace and contained within the \u003ccode\u003eGoogle.Cloud.Dlp.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]