Package com.google.cloud.bigquery
Class BigQueryOptions.Builder
java.lang.Object
com.google.cloud.ServiceOptions.Builder<BigQuery,BigQueryOptions,BigQueryOptions.Builder>
com.google.cloud.bigquery.BigQueryOptions.Builder
- Enclosing class:
- BigQueryOptions
public static class BigQueryOptions.Builder
extends ServiceOptions.Builder<BigQuery,BigQueryOptions,BigQueryOptions.Builder>
-
Field Summary
Fields inherited from class com.google.cloud.ServiceOptions.Builder
credentials -
Method Summary
Modifier and TypeMethodDescriptionbuild()setDataFormatOptions(DataFormatOptions dataFormatOptions) Set the format options for the BigQuery data typessetEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) Enables OpenTelemetry tracing functionality for this BigQuery instancesetLocation(String location) setOpenTelemetryTracer(io.opentelemetry.api.trace.Tracer tracer) Sets the OpenTelemetry tracer for this BigQuery instance to be tracer.setResultRetryAlgorithm(ResultRetryAlgorithm<?> resultRetryAlgorithm) setTransportOptions(TransportOptions transportOptions) setUseInt64Timestamps(boolean useInt64Timestamps) This setter is marked as Obsolete.Methods inherited from class com.google.cloud.ServiceOptions.Builder
getAllowedClientLibTokens, self, setApiTracerFactory, setClientLibToken, setClock, setCredentials, setHeaderProvider, setHost, setProjectId, setQuotaProjectId, setRetrySettings, setServiceFactory, setServiceRpcFactory, setUniverseDomain
-
Method Details
-
setTransportOptions
- Overrides:
setTransportOptionsin classServiceOptions.Builder<BigQuery,BigQueryOptions, BigQueryOptions.Builder>
-
setLocation
-
setUseInt64Timestamps
@ObsoleteApi("Use setDataFormatOptions(DataFormatOptions) instead") public BigQueryOptions.Builder setUseInt64Timestamps(boolean useInt64Timestamps) This setter is marked as Obsolete. PrefersetDataFormatOptions(DataFormatOptions)to set the int64timestamp configuration instead.If useInt64Timestamps value is set in here and via DataFormatOptions, the DataFormatOptions configuration value is used.
DataFormatOptions.newBuilder().setUseInt64Timestamp(...).build() -
setDataFormatOptions
Set the format options for the BigQuery data types- Parameters:
dataFormatOptions- Configuration of the formatting options
-
setEnableOpenTelemetryTracing
Enables OpenTelemetry tracing functionality for this BigQuery instanceTraces may contain sensitive data such as resource names, full URLs, and error messages.Before configuring subscribers or exporters for traces, review the contents of the spans and consult the OpenTelemetry documentation to set up filters and formatters to prevent leaking sensitive information, depending on your intended use case.
See also: OpenTelemetry Semantic Conventions
- Parameters:
enableOpenTelemetryTracing- enables OpenTelemetry tracing if true
-
setOpenTelemetryTracer
Sets the OpenTelemetry tracer for this BigQuery instance to be tracer.- Parameters:
tracer- OpenTelemetry tracer to be used
-
setResultRetryAlgorithm
public BigQueryOptions.Builder setResultRetryAlgorithm(ResultRetryAlgorithm<?> resultRetryAlgorithm) -
build
- Specified by:
buildin classServiceOptions.Builder<BigQuery,BigQueryOptions, BigQueryOptions.Builder>
-