# Stackdriver Logging V2 Client - Class BigQueryOptions (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class BigQueryOptions.

Options that change functionality of a sink exporting data to BigQuery.

Generated from protobuf message `google.logging.v2.BigQueryOptions`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ use_partitioned_tables` | `bool` Optional. Whether to use [BigQuery's partition tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and [special query syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone. |
| `↳ uses_timestamp_column_partitioning` | `bool` Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use. All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false. |

### getUsePartitionedTables

Optional. Whether to use [BigQuery's partition
tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
default, Cloud Logging creates dated tables based on the log entries'
timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
is no longer present and [special query
syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
has to be used instead. In both cases, tables are sharded based on UTC
timezone.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUsePartitionedTables

Optional. Whether to use [BigQuery's partition
tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
default, Cloud Logging creates dated tables based on the log entries'
timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
is no longer present and [special query
syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
has to be used instead. In both cases, tables are sharded based on UTC
timezone.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUsesTimestampColumnPartitioning

Output only. True if new timestamp column based partitioning is in use,
false if legacy ingestion-time partitioning is in use.

All new sinks will have this field set true and will use timestamp column
based partitioning. If use_partitioned_tables is false, this value has no
meaning and will be false. Legacy sinks using partitioned tables will have
this field set to false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUsesTimestampColumnPartitioning

Output only. True if new timestamp column based partitioning is in use,
false if legacy ingestion-time partitioning is in use.

All new sinks will have this field set true and will use timestamp column
based partitioning. If use_partitioned_tables is false, this value has no
meaning and will be false. Legacy sinks using partitioned tables will have
this field set to false.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |