@InternalApi public class EnhancedBigtableStubSettings extends 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.readRowsSettings()
.setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);
BigtableDataSettings settings = builder.build();
This class is considered an internal implementation detail and not meant to be used by applications.
Modifier and Type | Class and Description |
---|---|
static class |
EnhancedBigtableStubSettings.Builder
Builder for BigtableDataSettings.
|
Modifier and Type | Method and Description |
---|---|
BatchingCallSettings<RowMutation,Void> |
bulkMutateRowsSettings()
Returns the object with the settings used for calls to MutateRows.
|
UnaryCallSettings<ConditionalRowMutation,Boolean> |
checkAndMutateRowSettings()
Returns the object with the settings used for calls to CheckAndMutateRow.
|
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
String |
getAppProfileId()
Returns the configured AppProfile to use
|
String |
getInstanceId()
Returns the target instance id.
|
String |
getProjectId()
Returns the project id of the target instance.
|
UnaryCallSettings<RowMutation,Void> |
mutateRowSettings()
Returns the object with the settings used for calls to MutateRow.
|
static EnhancedBigtableStubSettings.Builder |
newBuilder()
Create a new builder.
|
UnaryCallSettings<ReadModifyWriteRow,Row> |
readModifyWriteRowSettings()
Returns the object with the settings used for calls to ReadModifyWriteRow.
|
UnaryCallSettings<Query,Row> |
readRowSettings()
Returns the object with the settings used for point reads via ReadRows.
|
ServerStreamingCallSettings<Query,Row> |
readRowsSettings()
Returns the object with the settings used for calls to ReadRows.
|
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.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
public static EnhancedBigtableStubSettings.Builder newBuilder()
public String getProjectId()
public String getInstanceId()
public String getAppProfileId()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public ServerStreamingCallSettings<Query,Row> readRowsSettings()
public UnaryCallSettings<String,List<KeyOffset>> sampleRowKeysSettings()
public UnaryCallSettings<Query,Row> readRowSettings()
public UnaryCallSettings<RowMutation,Void> mutateRowSettings()
public BatchingCallSettings<RowMutation,Void> 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.
public UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
public UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
public EnhancedBigtableStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<EnhancedBigtableStubSettings>
Copyright © 2019 Google LLC. All rights reserved.