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 messagegoogle.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 useBigQuery's partition 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 andspecial query syntaxhas 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 useBigQuery's partition
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 andspecial query
syntaxhas to be used instead. In both cases, tables are sharded based on UTC
timezone.
Returns
Type
Description
bool
setUsePartitionedTables
Optional. Whether to useBigQuery's partition
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 andspecial query
syntaxhas 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.
[[["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,["# Stackdriver Logging V2 Client - Class BigQueryOptions (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.BigQueryOptions)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.BigQueryOptions)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.BigQueryOptions)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.BigQueryOptions)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.BigQueryOptions)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.BigQueryOptions)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.BigQueryOptions)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.BigQueryOptions)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.BigQueryOptions)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.BigQueryOptions) \nReference documentation and code samples for the Stackdriver Logging V2 Client class BigQueryOptions.\n\nOptions that change functionality of a sink exporting data to BigQuery.\n\nGenerated from protobuf message `google.logging.v2.BigQueryOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUsePartitionedTables\n\nOptional. Whether to use [BigQuery's partition\ntables](https://cloud.google.com/bigquery/docs/partitioned-tables). By\ndefault, Cloud Logging creates dated tables based on the log entries'\ntimestamps, e.g. syslog_20170523. With partitioned tables the date suffix\nis no longer present and [special query\nsyntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)\nhas to be used instead. In both cases, tables are sharded based on UTC\ntimezone.\n\n### setUsePartitionedTables\n\nOptional. Whether to use [BigQuery's partition\ntables](https://cloud.google.com/bigquery/docs/partitioned-tables). By\ndefault, Cloud Logging creates dated tables based on the log entries'\ntimestamps, e.g. syslog_20170523. With partitioned tables the date suffix\nis no longer present and [special query\nsyntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)\nhas to be used instead. In both cases, tables are sharded based on UTC\ntimezone.\n\n### getUsesTimestampColumnPartitioning\n\nOutput only. True if new timestamp column based partitioning is in use,\nfalse if legacy ingestion-time partitioning is in use.\n\nAll new sinks will have this field set true and will use timestamp column\nbased partitioning. If use_partitioned_tables is false, this value has no\nmeaning and will be false. Legacy sinks using partitioned tables will have\nthis field set to false.\n\n### setUsesTimestampColumnPartitioning\n\nOutput only. True if new timestamp column based partitioning is in use,\nfalse if legacy ingestion-time partitioning is in use.\n\nAll new sinks will have this field set true and will use timestamp column\nbased partitioning. If use_partitioned_tables is false, this value has no\nmeaning and will be false. Legacy sinks using partitioned tables will have\nthis field set to false."]]