Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API enum BigQueryOptions.Types.SampleMethod.
How to sample rows if not all rows are scanned. Meaningful only when used
in conjunction with either rows_limit or rows_limit_percent. If not
specified, rows are scanned in the order BigQuery reads them.
Scan groups of rows in the order BigQuery provides (default). Multiple
groups of rows may be scanned in parallel, so results may not appear in
the same order the rows are read.
[[["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 webpage provides reference documentation and code samples for the \u003ccode\u003eBigQueryOptions.Types.SampleMethod\u003c/code\u003e enum in the Google Cloud Data Loss Prevention v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBigQueryOptions.Types.SampleMethod\u003c/code\u003e enum is used to determine how rows are sampled when not all rows are scanned, being relevant when used in combination with \u003ccode\u003erows_limit\u003c/code\u003e or \u003ccode\u003erows_limit_percent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe enum offers three possible sampling methods: \u003ccode\u003eRandomStart\u003c/code\u003e, \u003ccode\u003eTop\u003c/code\u003e (default), and \u003ccode\u003eUnspecified\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers versions ranging from 2.15.0 up to the latest 4.16.0, with each version linked to its specific documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation specifies that the \u003ccode\u003eBigQueryOptions.Types.SampleMethod\u003c/code\u003e is within the namespace \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e and contained in the assembly \u003ccode\u003eGoogle.Cloud.Dlp.V2.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]