public final class BigtableTableAdminSettings extends Object
BigtableTableAdminClient
.
It must be configured with a project id and instance id.
Example usage:
BigtableTableAdminSettings.Builder tableAdminSettingsBuilder = BigtableTableAdminSettings.newBuilder()
.setProjectId("my-project")
.setInstanceId("my-instance");
tableAdminSettingsBuilder.stubSettings().createTableSettings()
.setRetrySettings(
RetrySettings.newBuilder()
.setTotalTimeout(Duration.ofMinutes(15))
.build());
BigtableTableAdminSettings tableAdminSettings = tableAdminSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
BigtableTableAdminSettings.Builder
Builder for BigtableTableAdminSettings.
|
Modifier and Type | Method and Description |
---|---|
CredentialsProvider |
getCredentialsProvider()
Gets the CredentialsProvider to use for getting the credentials to make calls with.
|
String |
getInstanceId()
Gets the instance id whose tables the client will manage.
|
String |
getProjectId()
Gets the project id of instance whose tables the client will manage.
|
BigtableTableAdminStubSettings |
getStubSettings()
Gets the underlying RPC settings.
|
static BigtableTableAdminSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static BigtableTableAdminSettings.Builder |
newBuilderForEmulator(int port)
Create a new builder preconfigured to connect to the Bigtable emulator.
|
BigtableTableAdminSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
public String getProjectId()
public String getInstanceId()
public CredentialsProvider getCredentialsProvider()
public BigtableTableAdminStubSettings getStubSettings()
public BigtableTableAdminSettings.Builder toBuilder()
public static BigtableTableAdminSettings.Builder newBuilder()
public static BigtableTableAdminSettings.Builder newBuilderForEmulator(int port)
Copyright © 2019 Google LLC. All rights reserved.