Class BigQueryOptions.Builder (3.16.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

build()

public BigQueryOptions build()
Returns
TypeDescription
BigQueryOptions

buildPartial()

public BigQueryOptions buildPartial()
Returns
TypeDescription
BigQueryOptions

clear()

public BigQueryOptions.Builder clear()
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BigQueryOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BigQueryOptions.Builder

This builder for chaining.

clone()

public BigQueryOptions.Builder clone()
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

getDefaultInstanceForType()

public BigQueryOptions getDefaultInstanceForType()
Returns
TypeDescription
BigQueryOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The usesTimestampColumnPartitioning.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BigQueryOptions other)

public BigQueryOptions.Builder mergeFrom(BigQueryOptions other)
Parameter
NameDescription
otherBigQueryOptions
Returns
TypeDescription
BigQueryOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BigQueryOptions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BigQueryOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

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

public BigQueryOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BigQueryOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The usePartitionedTables to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The usesTimestampColumnPartitioning to set.

Returns
TypeDescription
BigQueryOptions.Builder

This builder for chaining.