public static class EnhancedBigtableStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<EnhancedBigtableStubSettings,EnhancedBigtableStubSettings.Builder>
| Modifier and Type | Method and Description |
|---|---|
boolean |
areInternalMetricsEnabled()
Checks if internal metrics are disabled
|
EnhancedBigtableStubSettings |
build() |
BigtableBatchingCallSettings.Builder |
bulkMutateRowsSettings()
Returns the builder for the settings used for calls to MutateRows.
|
BigtableBulkReadRowsCallSettings.Builder |
bulkReadRowsSettings()
Returns the builder for the settings used for calls to MutateRows.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<ConditionalRowMutation,Boolean> |
checkAndMutateRowSettings()
Returns the builder for the settings used for calls to CheckAndMutateRow.
|
EnhancedBigtableStubSettings.Builder |
disableInternalMetrics()
Disable collection of internal metrics that help google detect issues accessing Bigtable.
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<BoundStatement,com.google.cloud.bigtable.data.v2.internal.SqlRow> |
executeQuerySettings()
Returns the builder for the settings used for calls to ExecuteQuery
Note that this will currently ignore any retry settings other than deadlines.
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<String,Range.ByteStringRange> |
generateInitialChangeStreamPartitionsSettings()
Returns the builder for the settings used for calls to GenerateInitialChangeStreamPartitions.
|
String |
getAppProfileId()
Gets the app profile id that was previously set on this Builder.
|
boolean |
getEnableRetryInfo()
Deprecated.
RetryInfo is always on.
|
boolean |
getEnableRoutingCookie()
Deprecated.
routing cookies are always on.
|
String |
getInstanceId()
Gets the target instance id that was previously set on this Builder.
|
Map<String,String> |
getJwtAudienceMapping()
Deprecated.
This is a no op and will always return an empty map. Audience is always set to
bigtable service name.
|
String |
getMetricsEndpoint()
Get the Google Cloud Monitoring endpoint for publishing client side metrics.
|
com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider |
getMetricsProvider()
Gets the
MetricsProvider. |
List<String> |
getPrimedTableIds()
Deprecated.
This field is ignored. If
isRefreshingChannel() is enabled, warm up
requests will be sent to all table ids of the instance. |
String |
getProjectId()
Gets the project id of the target instance that was previously set on this Builder.
|
boolean |
isRefreshingChannel()
Deprecated.
Channel refreshing is enabled by default and this method will be deprecated.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<RowMutation,Void> |
mutateRowSettings()
Returns the builder for the settings used for calls to MutateRow.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<PingAndWarmRequest,Void> |
pingAndWarmSettings()
Returns the builder with the settings used for calls to PingAndWarm.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.bigtable.data.v2.internal.PrepareQueryRequest,com.google.cloud.bigtable.data.v2.internal.PrepareResponse> |
prepareQuerySettings()
Returns the builder with the settings used for calls to PrepareQuery
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadChangeStreamQuery,ChangeStreamRecord> |
readChangeStreamSettings()
Returns the builder for the settings used for calls to ReadChangeStream.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<ReadModifyWriteRow,Row> |
readModifyWriteRowSettings()
Returns the builder with the settings used for calls to ReadModifyWriteRow.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<Query,Row> |
readRowSettings()
Returns the builder for the settings used for point reads using readRow.
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<Query,Row> |
readRowsSettings()
Returns the builder for the settings used for calls to readRows.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<String,List<KeyOffset>> |
sampleRowKeysSettings()
Returns the builder for the settings used for calls to SampleRowKeysSettings.
|
EnhancedBigtableStubSettings.Builder |
setAppProfileId(String appProfileId)
Sets the AppProfile to use.
|
EnhancedBigtableStubSettings.Builder |
setDefaultAppProfileId()
Resets the AppProfile id to the default for the instance.
|
EnhancedBigtableStubSettings.Builder |
setDirectPathConfig(EnhancedBigtableStubSettings.DirectPathConfig directPathConfig) |
EnhancedBigtableStubSettings.Builder |
setEnableRetryInfo(boolean enableRetryInfo)
Deprecated.
This is a no-op, RetryInfo is always used now.
|
EnhancedBigtableStubSettings.Builder |
setEnableRoutingCookie(boolean enableRoutingCookie)
Deprecated.
this now a no-op as routing cookies are always on.
|
EnhancedBigtableStubSettings.Builder |
setInstanceId(String instanceId)
Sets the target instance id.
|
EnhancedBigtableStubSettings.Builder |
setJwtAudience(String audience)
Set the jwt audience override.
|
EnhancedBigtableStubSettings.Builder |
setJwtAudienceMapping(Map<String,String> jwtAudienceMapping)
Deprecated.
This is a no op. Audience is always set to bigtable service name.
|
EnhancedBigtableStubSettings.Builder |
setMetricsEndpoint(String endpoint)
Built-in client side metrics are published through Google Cloud Monitoring endpoint.
|
EnhancedBigtableStubSettings.Builder |
setMetricsProvider(com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider metricsProvider)
Sets the
MetricsProvider. |
EnhancedBigtableStubSettings.Builder |
setPrimedTableIds(String... tableIds)
Deprecated.
This field is ignored. If
isRefreshingChannel() is enabled, warm up
requests will be sent to all table ids of the instance. |
EnhancedBigtableStubSettings.Builder |
setProjectId(String projectId)
Sets the project id of that target instance.
|
EnhancedBigtableStubSettings.Builder |
setRefreshingChannel(boolean isRefreshingChannel)
Deprecated.
Channel refreshing is enabled by default and this method will be deprecated.
|
EnhancedBigtableStubSettings.Builder |
setSessionsEnabled(boolean enabled) |
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogCheckIntervalDuration, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toStringpublic EnhancedBigtableStubSettings.Builder setProjectId(@Nonnull String projectId)
public String getProjectId()
public EnhancedBigtableStubSettings.Builder setInstanceId(@Nonnull String instanceId)
public String getInstanceId()
public EnhancedBigtableStubSettings.Builder setAppProfileId(@Nonnull String appProfileId)
public EnhancedBigtableStubSettings.Builder setDefaultAppProfileId()
An application profile (sometimes also shortened to "app profile") is a group of configuration parameters for an individual use case. A client will identify itself with an application profile ID at connection time, and the requests will be handled according to that application profile.
Every Bigtable Instance has a default application profile associated with it, this method configures the client to use it.
public String getAppProfileId()
@Deprecated public EnhancedBigtableStubSettings.Builder setRefreshingChannel(boolean isRefreshingChannel)
When enabled, this will wait for the connection to complete the SSL handshake and warm up serverside caches for all the tables of the instance. This feature is enabled by default.
@InternalApi(value="For internal use only.") public EnhancedBigtableStubSettings.Builder setDirectPathConfig(EnhancedBigtableStubSettings.DirectPathConfig directPathConfig)
@Deprecated public EnhancedBigtableStubSettings.Builder setPrimedTableIds(String... tableIds)
isRefreshingChannel() is enabled, warm up
requests will be sent to all table ids of the instance.@Deprecated public boolean isRefreshingChannel()
@Deprecated public List<String> getPrimedTableIds()
isRefreshingChannel() is enabled, warm up
requests will be sent to all table ids of the instance.@InternalApi(value="Used for internal testing") @Deprecated public EnhancedBigtableStubSettings.Builder setJwtAudienceMapping(Map<String,String> jwtAudienceMapping)
to override the audience.@InternalApi(value="Used for internal testing") public EnhancedBigtableStubSettings.Builder setJwtAudience(String audience)
@InternalApi public EnhancedBigtableStubSettings.Builder setSessionsEnabled(boolean enabled)
public EnhancedBigtableStubSettings.Builder setMetricsProvider(com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider metricsProvider)
MetricsProvider.
By default, this is set to DefaultMetricsProvider.INSTANCE which will
collect and export client side metrics.
To disable client side metrics, set it to NoopMetricsProvider.INSTANCE.
To use a custom OpenTelemetry instance, refer to CustomOpenTelemetryMetricsProvider on how to
set it up.
public com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider getMetricsProvider()
MetricsProvider.public EnhancedBigtableStubSettings.Builder setMetricsEndpoint(String endpoint)
@Nullable public String getMetricsEndpoint()
public EnhancedBigtableStubSettings.Builder disableInternalMetrics()
public boolean areInternalMetricsEnabled()
@InternalApi(value="Used for internal testing") @Deprecated public Map<String,String> getJwtAudienceMapping()
to get the audience.@Deprecated public EnhancedBigtableStubSettings.Builder setEnableRoutingCookie(boolean enableRoutingCookie)
@Deprecated public boolean getEnableRoutingCookie()
@Deprecated public EnhancedBigtableStubSettings.Builder setEnableRetryInfo(boolean enableRetryInfo)
@Deprecated public boolean getEnableRetryInfo()
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<Query,Row> readRowsSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<Query,Row> readRowSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<String,List<KeyOffset>> sampleRowKeysSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RowMutation,Void> mutateRowSettings()
public BigtableBatchingCallSettings.Builder bulkMutateRowsSettings()
public BigtableBulkReadRowsCallSettings.Builder bulkReadRowsSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadChangeStreamQuery,ChangeStreamRecord> readChangeStreamSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<String,Range.ByteStringRange> generateInitialChangeStreamPartitionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PingAndWarmRequest,Void> pingAndWarmSettings()
@BetaApi public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<BoundStatement,com.google.cloud.bigtable.data.v2.internal.SqlRow> executeQuerySettings()
Note that this will currently ignore any retry settings other than deadlines. ExecuteQuery requests will not be retried currently.
@BetaApi public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.bigtable.data.v2.internal.PrepareQueryRequest,com.google.cloud.bigtable.data.v2.internal.PrepareResponse> prepareQuerySettings()
public EnhancedBigtableStubSettings build()
build in class com.google.api.gax.rpc.StubSettings.Builder<EnhancedBigtableStubSettings,EnhancedBigtableStubSettings.Builder>Copyright © 2026 Google LLC. All rights reserved.