public class EnhancedBigtableStubSettings extends com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
EnhancedBigtableStub.
Sane defaults are provided for most settings:
The only required setting is the instance name.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
BigtableDataSettings.Builder settingsBuilder = BigtableDataSettings.newBuilder()
.setProjectId("my-project-id")
.setInstanceId("my-instance-id")
.setAppProfileId("default");
settingsBuilder.stubSettings().readRowsSettings()
.setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);
BigtableDataSettings settings = builder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
EnhancedBigtableStubSettings.Builder
Builder for BigtableDataSettings.
|
static class |
EnhancedBigtableStubSettings.DirectPathConfig |
| Modifier and Type | Method and Description |
|---|---|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
applyDirectAccessTraitsInternal(com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder builder)
Applies Direct Access traits to an existing builder.
|
boolean |
areInternalMetricsEnabled() |
BigtableBatchingCallSettings |
bulkMutateRowsSettings()
Returns the object with the settings used for calls to MutateRows.
|
BigtableBulkReadRowsCallSettings |
bulkReadRowsSettings()
Returns the call settings used for bulk read rows.
|
com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> |
checkAndMutateRowSettings()
Returns the object with the settings used for calls to CheckAndMutateRow.
|
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.ServerStreamingCallSettings<BoundStatement,com.google.cloud.bigtable.data.v2.internal.SqlRow> |
executeQuerySettings() |
com.google.api.gax.rpc.ServerStreamingCallSettings<String,Range.ByteStringRange> |
generateInitialChangeStreamPartitionsSettings() |
String |
getAppProfileId()
Returns the configured AppProfile to use
|
EnhancedBigtableStubSettings.DirectPathConfig |
getDirectPathConfig() |
boolean |
getEnableRetryInfo()
Deprecated.
RetryInfo is now always on.
|
boolean |
getEnableRoutingCookie()
Deprecated.
routing cookies are always on.
|
String |
getInstanceId()
Returns the target instance id.
|
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()
Gets the Google Cloud Monitoring endpoint for publishing client side metrics.
|
com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider |
getMetricsProvider() |
ClientOperationSettings |
getPerOpSettings() |
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()
Returns the project id of the target instance.
|
String |
getServiceName() |
boolean |
isRefreshingChannel()
Deprecated.
Channel refreshing is enabled by default and this method will be deprecated.
|
com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> |
mutateRowSettings()
Returns the object with the settings used for calls to MutateRow.
|
static EnhancedBigtableStubSettings.Builder |
newBuilder()
Create a new builder.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.bigtable.data.v2.internal.PrepareQueryRequest,com.google.cloud.bigtable.data.v2.internal.PrepareResponse> |
prepareQuerySettings()
Returns the object with the settings used for a PrepareQuery request.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<ReadChangeStreamQuery,ChangeStreamRecord> |
readChangeStreamSettings() |
com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> |
readModifyWriteRowSettings()
Returns the object with the settings used for calls to ReadModifyWriteRow.
|
com.google.api.gax.rpc.UnaryCallSettings<Query,Row> |
readRowSettings()
Returns the object with the settings used for point reads via ReadRows.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> |
readRowsSettings()
Returns the object with the settings used for calls to ReadRows.
|
com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> |
sampleRowKeysSettings()
Returns the object with the settings used for calls to SampleRowKeys.
|
EnhancedBigtableStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
String |
toString() |
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getLibraryMetadata, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomainpublic static EnhancedBigtableStubSettings.Builder newBuilder()
public String getProjectId()
@InternalApi public EnhancedBigtableStubSettings.DirectPathConfig getDirectPathConfig()
public String getInstanceId()
public String getAppProfileId()
@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 Map<String,String> getJwtAudienceMapping()
public com.google.cloud.bigtable.data.v2.stub.metrics.MetricsProvider getMetricsProvider()
@Deprecated public boolean getEnableRoutingCookie()
@Deprecated public boolean getEnableRetryInfo()
@Nullable public String getMetricsEndpoint()
public boolean areInternalMetricsEnabled()
@InternalApi public ClientOperationSettings getPerOpSettings()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@InternalApi public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder applyDirectAccessTraitsInternal(com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder builder)
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public String getServiceName()
getServiceName in class com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>public com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> readRowsSettings()
This is idempotent and streaming operation.
Default retry and timeout settings:
Default idle timeout is set to
5 mins. Idle timeout is how long to wait before considering the stream orphaned by the
user and closing it.
Default wait timeout is set to
5 mins. Wait timeout is the maximum amount of time to wait for the next message from the
server.
error codes are:
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE and StatusCode.Code.ABORTED.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt
is 30 minutes with maximum attempt count of
10 times and the timeout to read the entire
stream is 12 hours.
public com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> sampleRowKeysSettings()
This is idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 5
minutes and the timeout for the entire
operation across all of the attempts is 10 mins.
public com.google.api.gax.rpc.UnaryCallSettings<Query,Row> readRowSettings()
This is an idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE and StatusCode.Code.ABORTED.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 20
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
for more explanation.public com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> mutateRowSettings()
This is an idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 60 seconds.
each attempt is 20
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
for more explanation.public BigtableBatchingCallSettings bulkMutateRowsSettings()
Please note that these settings will affect both manually batched calls
(bulkMutateRowsCallable) and automatic batched calls (bulkMutateRowsBatchingCallable). The
RowMutation request signature is ignored for the manual batched calls.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 1
minute and the timeout for the entire
operation across all of the attempts is 10 mins.
On breach of certain triggers, the operation initiates processing of accumulated request for which the default settings are:
request count reaches
100.
request size
reaches to 20MB.
interval of 1 second passes
after batching initialization or last processed batch.
A FlowController will be set up with #getDynamicFlowControlSettings() for throttling in-flight requests. When the pending request
count or accumulated request size reaches FlowController thresholds, then this
operation will be throttled until some of the pending batches are resolved.
for more explanation.,
for batch related configuration explanation.,
for flow control
related configuration explanation.public BigtableBulkReadRowsCallSettings bulkReadRowsSettings()
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE and StatusCode.Code.ABORTED.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 5
minute and the timeout for the entire
operation across all of the attempts is 10 mins.
On breach of certain triggers, the operation initiates processing of accumulated request for which the default settings are:
request count reaches
100.
request size
reaches to 400KB.
interval of 1 second passes
after batching initialization or last processed batch.
When the pending request
count reaches a default of 1000 outstanding row keys per channel then this operation will by
default be blocked until some of
the pending batch are resolved.
for more explanation.,
for batch related configuration explanation.public com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
This is a non-idempotent and non-streaming operation.
By default this operation does not reattempt in case of RPC failure. The default timeout for
the entire operation is 20 seconds.
for more explanation.public com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
This is a non-idempotent and non-streaming operation.
By default this operation does not reattempt in case of RPC failure. The default timeout for
the entire operation is 20 seconds.
for more explanation.public com.google.api.gax.rpc.ServerStreamingCallSettings<String,Range.ByteStringRange> generateInitialChangeStreamPartitionsSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<ReadChangeStreamQuery,ChangeStreamRecord> readChangeStreamSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<BoundStatement,com.google.cloud.bigtable.data.v2.internal.SqlRow> executeQuerySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.bigtable.data.v2.internal.PrepareQueryRequest,com.google.cloud.bigtable.data.v2.internal.PrepareResponse> prepareQuerySettings()
This is an idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 5
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
for more explanation.public EnhancedBigtableStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>public String toString()
toString in class com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>Copyright © 2026 Google LLC. All rights reserved.