Package com.google.cloud.bigquery
Class BigQueryOptions
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields inherited from class com.google.cloud.ServiceOptions
clientLibToken, CREDENTIAL_ENV_NAME, credentials -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected HttpBigQueryRpcstatic HttpTransportOptionsstatic BigQueryOptionsio.opentelemetry.api.trace.TracerReturns the OpenTelemetry tracer used by this BigQuery instancebooleanbooleanThis getter is marked as Obsolete.inthashCode()booleanReturns whether this BigQuery instance has OpenTelemetry tracing enabledbooleanDeprecated.static BigQueryOptions.BuildervoidsetDefaultJobCreationMode(QueryJobConfiguration.JobCreationMode jobCreationMode) voidsetQueryPreviewEnabled(String queryPreviewEnabled) Deprecated.voidsetThrowNotFound(boolean setThrowNotFound) voidsetUseInt64Timestamps(boolean useInt64Timestamps) This setter is marked as Obsolete.Methods inherited from class com.google.cloud.ServiceOptions
baseEquals, baseHashCode, defaultRetrySettings, getApiTracerFactory, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultHost, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getQuotaProjectId, getResolvedApiaryHost, getResolvedHost, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUniverseDomain, getUserAgent, hasValidUniverseDomain, newInstance, projectIdRequired, shouldRefreshRpc, shouldRefreshService
-
Method Details
-
getDefaultHttpTransportOptions
-
getScopes
- Specified by:
getScopesin classServiceOptions<BigQuery,BigQueryOptions>
-
getBigQueryRpcV2
-
getLocation
-
isQueryPreviewEnabled
Deprecated. -
setThrowNotFound
public void setThrowNotFound(boolean setThrowNotFound) -
setUseInt64Timestamps
@ObsoleteApi("Use Builder#setDataFormatOptions(DataFormatOptions) instead") public void setUseInt64Timestamps(boolean useInt64Timestamps) This setter is marked as Obsolete. PreferBigQueryOptions.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() -
setQueryPreviewEnabled
Deprecated. -
setDefaultJobCreationMode
-
getThrowNotFound
public boolean getThrowNotFound() -
getUseInt64Timestamps
@ObsoleteApi("Use getDataFormatOptions().isUseInt64Timestamp() instead") public boolean getUseInt64Timestamps()This getter is marked as Obsolete. PreferDataFormatOptions.Builder.useInt64Timestamp(boolean)to set the int64timestamp configuration instead.Warning: DataFormatOptions values have precedence. Use
DataFormatOptions.useInt64Timestamp()to get `useInt64Timestamp` value used by the BigQuery client. -
getDataFormatOptions
-
getDefaultJobCreationMode
-
isOpenTelemetryTracingEnabled
public boolean isOpenTelemetryTracingEnabled()Returns whether this BigQuery instance has OpenTelemetry tracing enabled- Returns:
- true if tracing is enabled, false if not
-
getOpenTelemetryTracer
public io.opentelemetry.api.trace.Tracer getOpenTelemetryTracer()Returns the OpenTelemetry tracer used by this BigQuery instance- Returns:
- OpenTelemetry tracer object or
nullif not set
-
getResultRetryAlgorithm
-
toBuilder
- Specified by:
toBuilderin classServiceOptions<BigQuery,BigQueryOptions>
-
hashCode
public int hashCode() -
equals
-
getDefaultInstance
-
newBuilder
-