Cloud Data Loss Prevention (DLP) V2 API - Module Google::Cloud::Dlp::V2::CloudStorageOptions::SampleMethod (v0.19.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API module Google::Cloud::Dlp::V2::CloudStorageOptions::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.

Constants

SAMPLE_METHOD_UNSPECIFIED

value: 0

TOP

value: 1
Scan from the top (default).

RANDOM_START

value: 2
For each file larger than bytes_limit_per_file, randomly pick the offset to start scanning. The scanned bytes are contiguous.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.