Class BigQueryOptions.Builder (3.13.7)

public static final class BigQueryOptions.Builder extends GeneratedMessageV3.Builder<BigQueryOptions.Builder> implements BigQueryOptionsOrBuilder

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

Protobuf type google.logging.v2.BigQueryOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryOptions.Builder
Overrides

build()

public BigQueryOptions build()
Returns
Type Description
BigQueryOptions

buildPartial()

public BigQueryOptions buildPartial()
Returns
Type Description
BigQueryOptions

clear()

public BigQueryOptions.Builder clear()
Returns
Type Description
BigQueryOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BigQueryOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BigQueryOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BigQueryOptions.Builder
Overrides

clearUsePartitionedTables()

public BigQueryOptions.Builder clearUsePartitionedTables()

Optional. Whether to use BigQuery'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 and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.

bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryOptions.Builder

This builder for chaining.

clearUsesTimestampColumnPartitioning()

public BigQueryOptions.Builder clearUsesTimestampColumnPartitioning()

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.

bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BigQueryOptions.Builder

This builder for chaining.

clone()

public BigQueryOptions.Builder clone()
Returns
Type Description
BigQueryOptions.Builder
Overrides

getDefaultInstanceForType()

public BigQueryOptions getDefaultInstanceForType()
Returns
Type Description
BigQueryOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUsePartitionedTables()

public boolean getUsePartitionedTables()

Optional. Whether to use BigQuery'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 and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.

bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The usePartitionedTables.

getUsesTimestampColumnPartitioning()

public boolean 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.

bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The usesTimestampColumnPartitioning.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BigQueryOptions other)

public BigQueryOptions.Builder mergeFrom(BigQueryOptions other)
Parameter
Name Description
other BigQueryOptions
Returns
Type Description
BigQueryOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryOptions.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public BigQueryOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BigQueryOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BigQueryOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryOptions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BigQueryOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BigQueryOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BigQueryOptions.Builder
Overrides

setUsePartitionedTables(boolean value)

public BigQueryOptions.Builder setUsePartitionedTables(boolean value)

Optional. Whether to use BigQuery'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 and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.

bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The usePartitionedTables to set.

Returns
Type Description
BigQueryOptions.Builder

This builder for chaining.

setUsesTimestampColumnPartitioning(boolean value)

public BigQueryOptions.Builder setUsesTimestampColumnPartitioning(boolean value)

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.

bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The usesTimestampColumnPartitioning to set.

Returns
Type Description
BigQueryOptions.Builder

This builder for chaining.