public static class EnhancedBigtableStubSettings.Builder extends StubSettings.Builder<EnhancedBigtableStubSettings,EnhancedBigtableStubSettings.Builder>
Builder for BigtableDataSettings.
Methods
build()
public EnhancedBigtableStubSettings build()
Overrides
bulkMutateRowsSettings()
public BigtableBatchingCallSettings.Builder bulkMutateRowsSettings()
Returns the builder for the settings used for calls to MutateRows.
Returns |
---|
Type | Description |
com.google.cloud.bigtable.data.v2.stub.BigtableBatchingCallSettings.Builder | |
bulkReadRowsSettings()
public BigtableBulkReadRowsCallSettings.Builder bulkReadRowsSettings()
Returns the builder for the settings used for calls to MutateRows.
Returns |
---|
Type | Description |
com.google.cloud.bigtable.data.v2.stub.BigtableBulkReadRowsCallSettings.Builder | |
checkAndMutateRowSettings()
public UnaryCallSettings.Builder<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
Returns the builder for the settings used for calls to CheckAndMutateRow.
generateInitialChangeStreamPartitionsSettings()
public ServerStreamingCallSettings.Builder<String,Range.ByteStringRange> generateInitialChangeStreamPartitionsSettings()
Returns the builder for the settings used for calls to GenerateInitialChangeStreamPartitions.
getAppProfileId()
public String getAppProfileId()
Gets the app profile id that was previously set on this Builder.
getEnableRetryInfo()
public boolean getEnableRetryInfo()
Gets if RetryInfo is enabled. If true, client bases retry decision and back off time on
server returned RetryInfo value. Otherwise, client uses RetrySettings.
getEnableRoutingCookie()
public boolean getEnableRoutingCookie()
Gets if routing cookie is enabled. If true, client will retry a request with extra metadata
server sent back.
getInstanceId()
public String getInstanceId()
Gets the target instance id that was previously set on this Builder.
getJwtAudienceMapping()
public Map<String,String> getJwtAudienceMapping()
getPrimedTableIds() (deprecated)
public 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.
getProjectId()
public String getProjectId()
Gets the project id of the target instance that was previously set on this Builder.
isRefreshingChannel() (deprecated)
public boolean isRefreshingChannel()
Deprecated. Channel refreshing is enabled by default and this method will be deprecated.
Gets if channels will gracefully refresh connections to Cloud Bigtable service.
mutateRowSettings()
public UnaryCallSettings.Builder<RowMutation,Void> mutateRowSettings()
Returns the builder for the settings used for calls to MutateRow.
pingAndWarmSettings()
public UnaryCallSettings.Builder<PingAndWarmRequest,Void> pingAndWarmSettings()
Returns the builder with the settings used for calls to PingAndWarm.
Returns |
---|
Type | Description |
Builder<com.google.bigtable.v2.PingAndWarmRequest,Void> | |
readChangeStreamSettings()
public ServerStreamingCallSettings.Builder<ReadChangeStreamQuery,ChangeStreamRecord> readChangeStreamSettings()
Returns the builder for the settings used for calls to ReadChangeStream.
readModifyWriteRowSettings()
public UnaryCallSettings.Builder<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
Returns the builder with the settings used for calls to ReadModifyWriteRow.
readRowSettings()
public UnaryCallSettings.Builder<Query,Row> readRowSettings()
Returns the builder for the settings used for point reads using readRow.
readRowsSettings()
public ServerStreamingCallSettings.Builder<Query,Row> readRowsSettings()
Returns the builder for the settings used for calls to readRows.
sampleRowKeysSettings()
public UnaryCallSettings.Builder<String,List<KeyOffset>> sampleRowKeysSettings()
Returns the builder for the settings used for calls to SampleRowKeysSettings.
setAppProfileId(String appProfileId)
public EnhancedBigtableStubSettings.Builder setAppProfileId(String appProfileId)
Sets the AppProfile to use. 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.
Parameter |
---|
Name | Description |
appProfileId | String
|
setDefaultAppProfileId()
public EnhancedBigtableStubSettings.Builder setDefaultAppProfileId()
Resets the AppProfile id to the default for the instance.
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.
setEnableRetryInfo(boolean enableRetryInfo)
public EnhancedBigtableStubSettings.Builder setEnableRetryInfo(boolean enableRetryInfo)
Sets if RetryInfo is enabled. If true, client bases retry decision and back off time on
server returned RetryInfo value. Otherwise, client uses RetrySettings.
Parameter |
---|
Name | Description |
enableRetryInfo | boolean
|
setEnableRoutingCookie(boolean enableRoutingCookie)
public EnhancedBigtableStubSettings.Builder setEnableRoutingCookie(boolean enableRoutingCookie)
Sets if routing cookie is enabled. If true, client will retry a request with extra metadata
server sent back.
Parameter |
---|
Name | Description |
enableRoutingCookie | boolean
|
setInstanceId(String instanceId)
public EnhancedBigtableStubSettings.Builder setInstanceId(String instanceId)
Sets the target instance id. This setting is required. All RPCs will be made in the context
of this setting.
Parameter |
---|
Name | Description |
instanceId | String
|
setJwtAudienceMapping(Map<String,String> jwtAudienceMapping)
public EnhancedBigtableStubSettings.Builder setJwtAudienceMapping(Map<String,String> jwtAudienceMapping)
setPrimedTableIds(String[] tableIds) (deprecated)
public 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.
Parameter |
---|
Name | Description |
tableIds | String[]
|
setProjectId(String projectId)
public EnhancedBigtableStubSettings.Builder setProjectId(String projectId)
Sets the project id of that target instance. This setting is required. All RPCs will be made
in the context of this setting.
Parameter |
---|
Name | Description |
projectId | String
|
setRefreshingChannel(boolean isRefreshingChannel) (deprecated)
public EnhancedBigtableStubSettings.Builder setRefreshingChannel(boolean isRefreshingChannel)
Deprecated. Channel refreshing is enabled by default and this method will be deprecated.
Sets if channels will gracefully refresh connections to Cloud Bigtable service.
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.
See Also: com.google.cloud.bigtable.data.v2.BigtableDataSettings.Builder#setRefreshingChannel
Parameter |
---|
Name | Description |
isRefreshingChannel | boolean
|