Class BigtableInstanceAdminSettings
- java.lang.Object
-
- com.google.cloud.bigtable.admin.v2.BigtableInstanceAdminSettings
-
public final class BigtableInstanceAdminSettings extends Object
Settings class to configure an instance ofBigtableInstanceAdminClient.It must be configured with a project ID and can be used to change default RPC settings.
Example usage:
BigtableInstanceAdminSettings.Builder settingsBuilder = BigtableInstanceAdminSettings.newBuilder() .setProjectId("my-project"); settingsBuilder.stubSettings().createInstanceSettings() .setRetrySettings( RetrySettings.newBuilder() .setTotalTimeout(Duration.ofMinutes(15)) .build()); BigtableInstanceAdminSettings settings = settingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBigtableInstanceAdminSettings.BuilderBuilder for BigtableInstanceAdminSettings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.core.CredentialsProvidergetCredentialsProvider()Gets the credentials provider to use for getting the credentials to make calls with.StringgetProjectId()Gets the ID of the project whose instances the client will manage.BigtableInstanceAdminStubSettingsgetStubSettings()Gets the underlying RPC settings.static BigtableInstanceAdminSettings.BuildernewBuilder()Returns a new builder for this class.static BigtableInstanceAdminSettings.BuildernewBuilderForEmulator(int port)Create a new builder preconfigured to connect to the Bigtable emulator with port number.static BigtableInstanceAdminSettings.BuildernewBuilderForEmulator(String hostname, int port)Creates a new builder preconfigured to connect to the Bigtable emulator with host name and port number.BigtableInstanceAdminSettings.BuildertoBuilder()Returns a builder containing all the values of this settings class.StringtoString()
-
-
-
Method Detail
-
getProjectId
@Nonnull public String getProjectId()
Gets the ID of the project whose instances the client will manage.
-
getCredentialsProvider
public com.google.api.gax.core.CredentialsProvider getCredentialsProvider()
Gets the credentials provider to use for getting the credentials to make calls with.
-
getStubSettings
@Nonnull public BigtableInstanceAdminStubSettings getStubSettings()
Gets the underlying RPC settings.
-
toBuilder
public BigtableInstanceAdminSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
-
newBuilder
public static BigtableInstanceAdminSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilderForEmulator
public static BigtableInstanceAdminSettings.Builder newBuilderForEmulator(int port)
Create a new builder preconfigured to connect to the Bigtable emulator with port number.
-
newBuilderForEmulator
public static BigtableInstanceAdminSettings.Builder newBuilderForEmulator(String hostname, int port)
Creates a new builder preconfigured to connect to the Bigtable emulator with host name and port number.
-
-