# Module enums (3.42.1)

3.42.1 (latest) 3.42.0 3.41.0 3.40.1 3.39.0 3.38.0 3.37.0 3.36.0 3.35.1 3.34.0 3.33.0 3.31.0 3.30.0 3.29.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.1 3.22.0 3.21.0 3.20.1 3.19.0 3.18.0 3.17.2 3.16.0 3.15.0 3.14.1 3.13.0 3.12.0 3.11.4 3.4.0 3.3.6 3.2.0 3.1.0 3.0.1 2.34.4 2.33.0 2.32.0 2.31.0 2.30.1 2.29.0 2.28.1 2.27.1 2.26.0 2.25.2 2.24.1 2.23.3 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.1 2.15.0 2.14.0 2.13.1 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.0 2.0.0 1.28.2 1.27.2 1.26.1 1.25.0 1.24.0 1.23.1 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 API documentation for `bigquery.enums` module.

## Classes

### [AutoRowIDs](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.AutoRowIDs)

    AutoRowIDs(value)

How to handle automatic insert IDs when inserting rows as a stream.

### [BigLakeFileFormat](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.BigLakeFileFormat)

    BigLakeFileFormat()

API documentation for `bigquery.enums.BigLakeFileFormat` class.

### [BigLakeTableFormat](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.BigLakeTableFormat)

    BigLakeTableFormat()

API documentation for `bigquery.enums.BigLakeTableFormat` class.

### [Compression](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.Compression)

    Compression(value)

The compression type to use for exported files. The default value is
`NONE`.

`DEFLATE` and `SNAPPY` are
only supported for Avro.

### [CreateDisposition](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.CreateDisposition)

    CreateDisposition()

Specifies whether the job is allowed to create new tables. The default
value is `CREATE_IF_NEEDED`.

Creation, truncation and append actions occur as one atomic update
upon job completion.

### [DatasetView](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.DatasetView)

    DatasetView(value)

DatasetView specifies which dataset information is returned.

### [DecimalTargetType](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.DecimalTargetType)

    DecimalTargetType()

The data types that could be used as a target type when converting decimal values.

<https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#DecimalTargetType>

.. versionadded:: 2.21.0

### [DefaultPandasDTypes](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.DefaultPandasDTypes)

    DefaultPandasDTypes(value)

Default Pandas DataFrem DTypes to convert BigQuery data. These
Sentinel values are used instead of None to maintain backward compatibility,
and allow Pandas package is not available. For more information:
<https://stackoverflow.com/a/60605919/101923>

### [DestinationFormat](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.DestinationFormat)

    DestinationFormat()

The exported file format. The default value is `CSV`.

Tables with nested or repeated fields cannot be exported as CSV.

### [DeterminismLevel](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.DeterminismLevel)

    DeterminismLevel()

Specifies determinism level for JavaScript user-defined functions (UDFs).

<https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#DeterminismLevel>

### [Encoding](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.Encoding)

    Encoding()

The character encoding of the data. The default is `UTF_8`.

BigQuery decodes the data after the raw, binary data has been
split using the values of the quote and fieldDelimiter properties.

### [EntityTypes](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.EntityTypes)

    EntityTypes(value)

Enum of allowed entity type names in AccessEntry

### [JobCreationMode](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.JobCreationMode)

    JobCreationMode()

Documented values for Job Creation Mode.

### [KeyResultStatementKind](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.KeyResultStatementKind)

    KeyResultStatementKind()

Determines which statement in the script represents the "key result".

The "key result" is used to populate the schema and query results of the script job.

<https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#keyresultstatementkind>

### [QueryApiMethod](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.QueryApiMethod)

    QueryApiMethod(value)

API method used to start the query. The default value is
`INSERT`.

### [QueryPriority](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.QueryPriority)

    QueryPriority()

Specifies a priority for the query. The default value is
`INTERACTIVE`.

### [RoundingMode](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.RoundingMode)

    RoundingMode(value)

Rounding mode options that can be used when storing NUMERIC or BIGNUMERIC
values.

ROUNDING_MODE_UNSPECIFIED: will default to using ROUND_HALF_AWAY_FROM_ZERO.

ROUND_HALF_AWAY_FROM_ZERO: rounds half values away from zero when applying
precision and scale upon writing of NUMERIC and BIGNUMERIC values.
For Scale: 0

- 1.1, 1.2, 1.3, 1.4 =\> 1
- 1.5, 1.6, 1.7, 1.8, 1.9 =\> 2

ROUND_HALF_EVEN: rounds half values to the nearest even value when applying
precision and scale upon writing of NUMERIC and BIGNUMERIC values.
For Scale: 0

- 1.1, 1.2, 1.3, 1.4 =\> 1
- 1.5 =\> 2
- 1.6, 1.7, 1.8, 1.9 =\> 2
- 2.5 =\> 2

### [SchemaUpdateOption](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.SchemaUpdateOption)

    SchemaUpdateOption()

Specifies an update to the destination table schema as a side effect of
a load job.

### [SourceColumnMatch](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.SourceColumnMatch)

    SourceColumnMatch(value)

Uses sensible defaults based on how the schema is provided.
If autodetect is used, then columns are matched by name. Otherwise, columns
are matched by position. This is done to keep the behavior backward-compatible.

### [SourceFormat](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.SourceFormat)

    SourceFormat()

The format of the data files. The default value is `CSV`.

Note that the set of allowed values for loading data is different
than the set used for external data sources (see
[ExternalSourceFormat](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.external_config.ExternalSourceFormat)).

### [SqlTypeNames](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.SqlTypeNames)

    SqlTypeNames(value)

Enum of allowed SQL type names in schema.SchemaField.

Datatype used in Legacy SQL.

### [StandardSqlTypeNames](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.StandardSqlTypeNames)

    StandardSqlTypeNames(value)

Enum of allowed SQL type names in schema.SchemaField.

Datatype used in GoogleSQL.

### [TimestampPrecision](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.TimestampPrecision)

    TimestampPrecision(value)

Precision (maximum number of total digits in base 10) for seconds of
TIMESTAMP type.

### [UpdateMode](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.UpdateMode)

    UpdateMode(value)

Specifies the kind of information to update in a dataset.

### [WriteDisposition](https://docs.cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.enums.WriteDisposition)

    WriteDisposition()

Specifies the action that occurs if destination table already exists.

The default value is `WRITE_APPEND`.

Each action is atomic and only occurs if BigQuery is able to complete
the job successfully. Creation, truncation and append actions occur as one
atomic update upon job completion.