# Class BigQueryOptions (3.38.0)

3.38.0 (latest) 3.37.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.1 3.24.0 3.23.0 3.22.0 3.20.0 3.19.0 3.18.1 3.17.0 3.16.0 3.15.3 3.14.0 3.13.0 3.12.3 3.11.1 3.10.1 3.9.2 3.8.1 3.7.1 3.6.2 3.5.0 3.4.0 3.3.1 3.2.4 3.1.1 3.0.1 2.0.2 1.0.2 0.15.2 0.14.0 0.13.0 0.12.1

    BigQueryOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options defining BigQuery table and row identifiers.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `table_reference` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.BigQueryTable` Complete BigQuery table reference. |
| `identifying_fields` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.FieldId]` Table fields that may uniquely identify a row within the table. When `actions.saveFindings.outputConfig.table` is specified, the values of columns specified here are available in the output table under `location.content_locations.record_location.record_key.id_values`. Nested fields such as `person.birthdate.year` are allowed. |
| `rows_limit` | `int` Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. |
| `rows_limit_percent` | `int` Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Caution: A \`known issue |
| `sample_method` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.BigQueryOptions.SampleMethod` How to sample the data. |
| `excluded_fields` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.FieldId]` References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used. |
| `included_fields` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.FieldId]` Limit scanning only to these fields. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used. |

## Classes

### SampleMethod

    SampleMethod(value)

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.