Class BigtableInstanceAdminSettings (2.40.0)

public final class BigtableInstanceAdminSettings

Settings class to configure an instance of BigtableInstanceAdminClient.

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();
 

Inheritance

java.lang.Object > BigtableInstanceAdminSettings

Static Methods

newBuilder()

public static BigtableInstanceAdminSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
Type Description
BigtableInstanceAdminSettings.Builder

newBuilderForEmulator(int port)

public static BigtableInstanceAdminSettings.Builder newBuilderForEmulator(int port)

Create a new builder preconfigured to connect to the Bigtable emulator with port number.

Parameter
Name Description
port int
Returns
Type Description
BigtableInstanceAdminSettings.Builder

newBuilderForEmulator(String hostname, int port)

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.

Parameters
Name Description
hostname String
port int
Returns
Type Description
BigtableInstanceAdminSettings.Builder

Methods

getCredentialsProvider()

public CredentialsProvider getCredentialsProvider()

Gets the credentials provider to use for getting the credentials to make calls with.

Returns
Type Description
CredentialsProvider

getProjectId()

public String getProjectId()

Gets the ID of the project whose instances the client will manage.

Returns
Type Description
String

getStubSettings()

public BigtableInstanceAdminStubSettings getStubSettings()

Gets the underlying RPC settings.

Returns
Type Description
BigtableInstanceAdminStubSettings

toBuilder()

public BigtableInstanceAdminSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
Type Description
BigtableInstanceAdminSettings.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides