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"]],[["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-04-09 UTC."],[[["This page provides reference documentation for the `CloudStorageOptions.Types.SampleMethod` enum within the Google Cloud Data Loss Prevention v2 API."],["The latest version of the API documented is 4.16.0, while the current page is focused on version 4.9.0, with versions ranging back to 2.15.0 available to explore."],["The `SampleMethod` enum defines how bytes are sampled when not all file bytes are scanned, primarily relevant when used with the `bytes_limit_per_file` setting."],["The enum provides three sampling options: `RandomStart` (randomly select a starting offset), `Top` (scan from the top), and `Unspecified` (no sampling)."]]],[]]