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.readRowsSettings()
.setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);
BigtableDataSettings settings = builder.build();
Modifier and Type | Class and Description |
---|---|
static class |
EnhancedBigtableStubSettings.Builder
Builder for BigtableDataSettings.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.rpc.BatchingCallSettings<RowMutation,Void> |
bulkMutateRowsSettings()
Returns the object with the settings used for calls to MutateRows.
|
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() |
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.
|
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<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.
|
public static EnhancedBigtableStubSettings.Builder newBuilder()
public String getProjectId()
public String getInstanceId()
public String getAppProfileId()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> readRowsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> sampleRowKeysSettings()
public com.google.api.gax.rpc.UnaryCallSettings<Query,Row> readRowSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> mutateRowSettings()
public com.google.api.gax.rpc.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 com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
public EnhancedBigtableStubSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
Copyright © 2019 Google LLC. All rights reserved.