public static class BigQueryOptions.Builder extends ServiceOptions.Builder<BigQuery,BigQueryOptions,BigQueryOptions.Builder>Methods
build()
public BigQueryOptions build()| Returns | |
|---|---|
| Type | Description |
BigQueryOptions |
|
setDataFormatOptions(DataFormatOptions dataFormatOptions)
public BigQueryOptions.Builder setDataFormatOptions(DataFormatOptions dataFormatOptions)Set the format options for the BigQuery data types
| Parameter | |
|---|---|
| Name | Description |
dataFormatOptions |
DataFormatOptionsConfiguration of the formatting options |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing)
public BigQueryOptions.Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing)Enables OpenTelemetry tracing functionality for this BigQuery instance
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
| Parameter | |
|---|---|
| Name | Description |
enableOpenTelemetryTracing |
booleanenables OpenTelemetry tracing if true |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setLocation(String location)
public BigQueryOptions.Builder setLocation(String location)| Parameter | |
|---|---|
| Name | Description |
location |
String |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setOpenTelemetryTracer(Tracer tracer)
public BigQueryOptions.Builder setOpenTelemetryTracer(Tracer tracer)Sets the OpenTelemetry tracer for this BigQuery instance to be tracer.
| Parameter | |
|---|---|
| Name | Description |
tracer |
io.opentelemetry.api.trace.TracerOpenTelemetry tracer to be used |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setResultRetryAlgorithm(ResultRetryAlgorithm<?> resultRetryAlgorithm)
public BigQueryOptions.Builder setResultRetryAlgorithm(ResultRetryAlgorithm<?> resultRetryAlgorithm)| Parameter | |
|---|---|
| Name | Description |
resultRetryAlgorithm |
ResultRetryAlgorithm<?> |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setTransportOptions(TransportOptions transportOptions)
public BigQueryOptions.Builder setTransportOptions(TransportOptions transportOptions)| Parameter | |
|---|---|
| Name | Description |
transportOptions |
com.google.cloud.TransportOptions |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setUseInt64Timestamps(boolean useInt64Timestamps)
public BigQueryOptions.Builder setUseInt64Timestamps(boolean useInt64Timestamps)This setter is marked as Obsolete. Prefer #setDataFormatOptions(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()
| Parameter | |
|---|---|
| Name | Description |
useInt64Timestamps |
boolean |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|