# Class BigQueryOptions (2.65.0)

2.65.0 (latest) 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.2 2.56.0 2.55.3 2.54.2 2.53.0 2.52.0 2.51.0 2.50.1 2.49.0 2.48.1 2.47.0 2.46.0 2.45.0 2.44.0 2.43.3 2.42.3 2.41.0 2.40.3 2.39.1 2.38.2 2.37.2 2.36.0 2.35.0 2.34.2 2.33.2

    public class BigQueryOptions extends ServiceOptions<BigQuery,BigQueryOptions>

## Inheritance

[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> com.google.cloud.ServiceOptions \> BigQueryOptions

## Inherited Members

com.google.cloud.ServiceOptions.\<B\>toBuilder() com.google.cloud.ServiceOptions.\<T\>getFromServiceLoader(java.lang.Class\<? extends T\>,T) com.google.cloud.ServiceOptions.\<T\>newInstance(java.lang.String) com.google.cloud.ServiceOptions.baseEquals(com.google.cloud.ServiceOptions\<?,?\>) com.google.cloud.ServiceOptions.baseHashCode() com.google.cloud.ServiceOptions.defaultRetrySettings() com.google.cloud.ServiceOptions.getApiTracerFactory() com.google.cloud.ServiceOptions.getAppEngineAppId() com.google.cloud.ServiceOptions.getAppEngineProjectId() com.google.cloud.ServiceOptions.getAppEngineProjectIdFromAppId() com.google.cloud.ServiceOptions.getApplicationName() com.google.cloud.ServiceOptions.getClientLibToken() com.google.cloud.ServiceOptions.getClock() com.google.cloud.ServiceOptions.getCredentials() com.google.cloud.ServiceOptions.getDefaultHost() com.google.cloud.ServiceOptions.getDefaultProject() com.google.cloud.ServiceOptions.getDefaultProjectId() com.google.cloud.ServiceOptions.getDefaultRetrySettings() com.google.cloud.ServiceOptions.getGoogApiClientLibName() com.google.cloud.ServiceOptions.getGoogleCloudProjectId() com.google.cloud.ServiceOptions.getHost() com.google.cloud.ServiceOptions.getLibraryName() com.google.cloud.ServiceOptions.getLibraryVersion() com.google.cloud.ServiceOptions.getMergedHeaderProvider(com.google.api.gax.rpc.HeaderProvider) com.google.cloud.ServiceOptions.getNoRetrySettings() com.google.cloud.ServiceOptions.getProjectId() com.google.cloud.ServiceOptions.getQuotaProjectId() com.google.cloud.ServiceOptions.getResolvedApiaryHost(java.lang.String) com.google.cloud.ServiceOptions.getResolvedHost(java.lang.String) com.google.cloud.ServiceOptions.getRetrySettings() com.google.cloud.ServiceOptions.getRpc() com.google.cloud.ServiceOptions.getScopedCredentials() com.google.cloud.ServiceOptions.getScopes() com.google.cloud.ServiceOptions.getService() com.google.cloud.ServiceOptions.getServiceAccountProjectId() com.google.cloud.ServiceOptions.getTransportOptions() com.google.cloud.ServiceOptions.getUniverseDomain() com.google.cloud.ServiceOptions.getUserAgent() com.google.cloud.ServiceOptions.hasValidUniverseDomain() com.google.cloud.ServiceOptions.projectIdRequired() com.google.cloud.ServiceOptions.shouldRefreshRpc(com.google.cloud.ServiceRpc) com.google.cloud.ServiceOptions.shouldRefreshService(ServiceT) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDefaultHttpTransportOptions()

    public static HttpTransportOptions getDefaultHttpTransportOptions()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.http.HttpTransportOptions` |   |

### getDefaultInstance()

    public static BigQueryOptions getDefaultInstance()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryOptions` |   |

### newBuilder()

    public static BigQueryOptions.Builder newBuilder()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryOptions.Builder` |   |

## Methods

### equals(Object obj)

    public boolean equals(Object obj)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)

### getBigQueryRpcV2()

    protected HttpBigQueryRpc getBigQueryRpcV2()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc` |   |

### getDataFormatOptions()

    public DataFormatOptions getDataFormatOptions()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.DataFormatOptions` |   |

### getDefaultJobCreationMode()

    public QueryJobConfiguration.JobCreationMode getDefaultJobCreationMode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode` |   |

### getLocation()

    public String getLocation()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getOpenTelemetryTracer()

    public Tracer getOpenTelemetryTracer()

Returns the OpenTelemetry tracer used by this BigQuery instance

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.opentelemetry.api.trace.Tracer` | OpenTelemetry tracer object or `null` if not set |

### getResultRetryAlgorithm()

    public ResultRetryAlgorithm<?> getResultRetryAlgorithm()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.ResultRetryAlgorithm.html<?>` |   |

### getScopes()

    protected Set<String> getScopes()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Set.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

**Overrides** com.google.cloud.ServiceOptions.getScopes()

### getThrowNotFound()

    public boolean getThrowNotFound()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getUseInt64Timestamps()

    public boolean getUseInt64Timestamps()

> [!WARNING]
> **Obsolete**
>
> *Use getDataFormatOptions().isUseInt64Timestamp() instead*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This getter is marked as Obsolete. Prefer [DataFormatOptions.Builder#useInt64Timestamp(boolean)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.DataFormatOptions.Builder#com_google_cloud_bigquery_DataFormatOptions_Builder_useInt64Timestamp_boolean_) to set the int64timestamp configuration
instead.

Warning: DataFormatOptions values have precedence. Use [DataFormatOptions#useInt64Timestamp()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.DataFormatOptions#com_google_cloud_bigquery_DataFormatOptions_useInt64Timestamp__) to get `useInt64Timestamp` value used by the BigQuery
client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### hashCode()

    public int hashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)

### isOpenTelemetryTracingEnabled()

    public boolean isOpenTelemetryTracingEnabled()

Returns whether this BigQuery instance has OpenTelemetry tracing enabled

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | true if tracing is enabled, false if not |

### isQueryPreviewEnabled() (deprecated)

    public boolean isQueryPreviewEnabled()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### setDefaultJobCreationMode(QueryJobConfiguration.JobCreationMode jobCreationMode)

    public void setDefaultJobCreationMode(QueryJobConfiguration.JobCreationMode jobCreationMode)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `jobCreationMode` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode` |

### setQueryPreviewEnabled(String queryPreviewEnabled) (deprecated)

    public void setQueryPreviewEnabled(String queryPreviewEnabled)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `queryPreviewEnabled` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### setThrowNotFound(boolean setThrowNotFound)

    public void setThrowNotFound(boolean setThrowNotFound)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `setThrowNotFound` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

### setUseInt64Timestamps(boolean useInt64Timestamps)

    public void setUseInt64Timestamps(boolean useInt64Timestamps)

> [!WARNING]
> **Obsolete**
>
> *Use Builder#setDataFormatOptions(DataFormatOptions) instead*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This setter is marked as Obsolete. Prefer Builder#setDataFormatOptions(DataFormatOptions) to set the int64timestamp configuration
instead.

If useInt64Timestamps is set via DataFormatOptions, then the value in DataFormatOptions will
be used. Otherwise, this value will be passed to DataFormatOptions.

Alternative: `DataFormatOptions.newBuilder().setUseInt64Timestamp(...).build()`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `useInt64Timestamps` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

### toBuilder()

    public BigQueryOptions.Builder toBuilder()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryOptions.Builder` |   |

**Overrides** com.google.cloud.ServiceOptions.\<B\>toBuilder()