Reference documentation and code samples for the Data Loss Prevention V2 Client class 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.
Generated from protobuf enumSAMPLE_METHOD_UNSPECIFIED = 0;
TOP
Value: 1
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"]],[["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-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class SampleMethod (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.BigQueryOptions.SampleMethod)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.BigQueryOptions.SampleMethod)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.BigQueryOptions.SampleMethod)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.BigQueryOptions.SampleMethod)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.BigQueryOptions.SampleMethod)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.BigQueryOptions.SampleMethod)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.BigQueryOptions.SampleMethod)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.BigQueryOptions.SampleMethod)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.BigQueryOptions.SampleMethod)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.BigQueryOptions.SampleMethod)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.BigQueryOptions.SampleMethod)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.BigQueryOptions.SampleMethod)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.BigQueryOptions.SampleMethod)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.BigQueryOptions.SampleMethod)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.BigQueryOptions.SampleMethod)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.BigQueryOptions.SampleMethod)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.BigQueryOptions.SampleMethod)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.BigQueryOptions.SampleMethod)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.BigQueryOptions.SampleMethod) \nReference documentation and code samples for the Data Loss Prevention V2 Client class SampleMethod.\n\nHow to sample rows if not all rows are scanned. Meaningful only when used\nin conjunction with either rows_limit or rows_limit_percent. If not\nspecified, rows are scanned in the order BigQuery reads them.\n\nProtobuf type `google.privacy.dlp.v2.BigQueryOptions.SampleMethod`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2 \\\\ BigQueryOptions\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SAMPLE_METHOD_UNSPECIFIED\n\n Value: 0\n\nNo sampling.\n\nGenerated from protobuf enum `SAMPLE_METHOD_UNSPECIFIED = 0;`\n\n### TOP\n\n Value: 1\n\nScan groups of rows in the order BigQuery provides (default). Multiple\ngroups of rows may be scanned in parallel, so results may not appear in\nthe same order the rows are read.\n\nGenerated from protobuf enum `TOP = 1;`\n\n### RANDOM_START\n\n Value: 2\n\nRandomly pick groups of rows to scan.\n\nGenerated from protobuf enum `RANDOM_START = 2;`"]]