2.81.0 (latest) 2.80.0 2.79.0 2.78.1 2.77.0 2.74.0 2.73.0 2.72.0 2.71.0 2.70.0 2.68.0 2.67.1 2.66.0 2.65.1 2.63.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.2 2.56.0 2.54.0 2.52.0 2.51.2 2.49.0 2.46.0 2.45.1 2.44.1 2.43.0 2.42.0 2.40.0 2.39.5 2.37.0 2.35.1 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.1 2.28.0

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java) | [Product Reference](https://cloud.google.com/bigtable) |

Client for creating, configuring, and deleting Cloud Bigtable tables

Provides access to the table schemas only, not the data stored within the tables.

See the individual methods for example code.

Sample code to get started:


     // One instance per application.
     BigtableTableAdminClient client =  BigtableTableAdminClient.create("[PROJECT]", "[INSTANCE]");

     com.google.bigtable.admin.v2.CreateTableRequest request =
       com.google.bigtable.admin.v2.CreateTableRequest.newBuilder()
         .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
         .setTableId("my-table")
         .setTable(
           com.google.bigtable.admin.v2.Table.newBuilder()
             .putColumnFamilies("cf1", com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance())
             .putColumnFamilies(
               "cf2",
               com.google.bigtable.admin.v2.ColumnFamily.newBuilder()
                 .setGcRule(GcRuleBuilder.maxVersions(10))
                 .build())
             .build())
         .addInitialSplits(
           com.google.bigtable.admin.v2.CreateTableRequest.Split.newBuilder()
             .setKey(ByteString.copyFromUtf8("b"))
             .build())
         .addInitialSplits(
           com.google.bigtable.admin.v2.CreateTableRequest.Split.newBuilder()
             .setKey(ByteString.copyFromUtf8("q"))
             .build())
         .build();

     client.getBaseClient().createTable(request);

     // Cleanup during application shutdown.
     client.close();
     
Creating a new client is a very expensive operation and should only be done once and shared in
an application. However, close() needs to be called on the client object to clean up resources
such as threads during application shutdown.

This class can be customized by passing in a custom instance of BigtableTableAdminSettings to
create(). For example:

To customize credentials:


     BigtableTableAdminSettings settings = BigtableTableAdminSettings.newBuilder()
       .setProjectId("[PROJECT]")
       .setInstanceId("[INSTANCE]")
       .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
       .build();

     BigtableTableAdminClient client = BigtableTableAdminClient.create(settings);
     
To customize the endpoint:


     BigtableTableAdminSettings.Builder settingsBuilder = BigtableTableAdminSettings.newBuilder()
       .setProjectId("[PROJECT]")
       .setInstanceId("[INSTANCE]");

     settingsBuilder.stubSettings()
       .setEndpoint(myEndpoint).build();

     BigtableTableAdminClient client = BigtableTableAdminClient.create(settingsBuilder.build());
     
## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> BigtableTableAdminClient

## Static Methods

### create(BigtableTableAdminSettings settings)

    public static BigtableTableAdminClient create(BigtableTableAdminSettings settings)

Constructs an instance of BigtableTableAdminClient with the given settings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BigtableTableAdminSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(String projectId, String instanceId)

    public static BigtableTableAdminClient create(String projectId, String instanceId)

Constructs an instance of BigtableTableAdminClient with the given project and instance IDs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `instanceId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(String projectId, String instanceId, EnhancedBigtableTableAdminStub stub)

    public static BigtableTableAdminClient create(String projectId, String instanceId, EnhancedBigtableTableAdminStub stub)

Constructs an instance of BigtableTableAdminClient with the given instance name and stub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `instanceId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.stub.EnhancedBigtableTableAdminStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient` |   |

## Methods

### awaitConsistency(ConsistencyRequest consistencyRequest)

    public void awaitConsistency(ConsistencyRequest consistencyRequest)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `consistencyRequest` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.ConsistencyRequest` |

### awaitOptimizeRestoredTable(ApiFuture\<RestoredTableResult\> restoreFuture)

    public ApiFuture<Empty> awaitOptimizeRestoredTable(ApiFuture<RestoredTableResult> restoreFuture)

Awaits the completion of the "Optimize Restored Table" operation.

This method blocks until the restore operation is complete, extracts the optimization token,
and returns an ApiFuture for the optimization phase.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `restoreFuture` | `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.RestoredTableResult>` The future returned by restoreTableAsync(). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` | An ApiFuture that tracks the optimization progress. |

### awaitOptimizeRestoredTable(OptimizeRestoredTableOperationToken token)

    public void awaitOptimizeRestoredTable(OptimizeRestoredTableOperationToken token)

Awaits a restored table is fully optimized.

Sample code


     RestoredTableResult result =
         client.restoreTable(RestoreTableRequest.of(clusterId, backupId).setTableId(tableId));
     client.awaitOptimizeRestoredTable(result.getOptimizeRestoredTableOperationToken());
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `token` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.OptimizeRestoredTableOperationToken` |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutionException.html` |   |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### awaitOptimizeRestoredTableAsync(OptimizeRestoredTableOperationToken token)

    public ApiFuture<Void> awaitOptimizeRestoredTableAsync(OptimizeRestoredTableOperationToken token)

Awaits a restored table is fully optimized asynchronously.

Sample code


     RestoredTableResult result =
         client.restoreTable(RestoreTableRequest.of(clusterId, backupId).setTableId(tableId));
     ApiFuture<Void> future = client.awaitOptimizeRestoredTableAsync(
         result.getOptimizeRestoredTableOperationToken());

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Void unused) {
           System.out.println("The optimization of the restored table is done.");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `token` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.OptimizeRestoredTableOperationToken` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### awaitReplication(String tableId) (deprecated)

    public void awaitReplication(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#checkConsistency(com.google.bigtable.admin.v2.CheckConsistencyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_checkConsistency_com_google_bigtable_admin_v2_CheckConsistencyRequest_).

Blocks the current thread until replication has caught up to the point when this method was
called. This allows callers to make sure that their mutations have been replicated across all
of their clusters.

Sample code


     client.awaitReplication("my-table");
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### awaitReplicationAsync(String tableId) (deprecated)

    public ApiFuture<Void> awaitReplicationAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#generateConsistencyTokenCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_generateConsistencyTokenCallable__).

Returns a future that is resolved when replication has caught up to the point when this
method was called. This allows callers to make sure that their mutations have been replicated
across all of their clusters.

Sample code:


     ApiFuture<Void> replicationFuture = client.awaitReplicationAsync("my-table");

     ApiFutures.addCallback(
       replicationFuture,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Table table) {
           System.out.println("All clusters are now consistent");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );

     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### close()

    public void close()

### copyBackup(CopyBackupRequest request)

    public Backup copyBackup(CopyBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#copyBackup(com.google.bigtable.admin.v2.CopyBackupRequest).

Copy an existing backup to a new backup in a Cloud Bigtable cluster with the specified
configuration.

Sample code Note: You want to create the client with project and instance where you want the
new backup to be copied to.


     BigtableTableAdminClient client =  BigtableTableAdminClient.create("[PROJECT]", "[INSTANCE]");
     CopyBackupRequest request =
             CopyBackupRequest.of(sourceClusterId, sourceBackupId)
                 .setDestination(clusterId, backupId)
                 .setExpireTime(expireTime);
     Backup response = client.copyBackup(request);
     
If the source backup is located in a different instance


     CopyBackupRequest request =
             CopyBackupRequest.of(sourceClusterId, sourceBackupId)
                 .setSourceInstance(sourceInstanceId)
                 .setDestination(clusterId, backupId)
                 .setExpireTime(expireTime);
     Backup response = client.copyBackup(request);
     
If the source backup is located in a different project


     CopyBackupRequest request =
             CopyBackupRequest.of(sourceClusterId, sourceBackupId)
                 .setSourceInstance(sourceProjectId, sourceInstanceId)
                 .setDestination(clusterId, backupId)
                 .setExpireTime(expireTime);
     Backup response = client.copyBackup(request);
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup` |   |

### copyBackupAsync(CopyBackupRequest request)

    public ApiFuture<Backup> copyBackupAsync(CopyBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#copyBackupOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_copyBackupOperationCallable__).

Creates a copy of a backup from an existing backup in a Cloud Bigtable cluster with the
specified configuration asynchronously.

Sample code


     CopyBackupRequest request =
             CopyBackupRequest.of(sourceClusterId, sourceBackupId)
                 .setDestination(clusterId, backupId)
                 .setExpireTime(expireTime);
     ApiFuture<Backup> future = client.copyBackupAsync(request);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Backup>() {
         public void onSuccess(Backup backup) {
           System.out.println("Successfully create the backup " + backup.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup>` |   |

### createAuthorizedView(CreateAuthorizedViewRequest request)

    public AuthorizedView createAuthorizedView(CreateAuthorizedViewRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createAuthorizedView(com.google.bigtable.admin.v2.CreateAuthorizedViewRequest).

Creates a new authorized view with the specified configuration.

Sample code:


     CreateAuthorizedViewRequest request =
         CreateAuthorizedViewRequest.of("my-table", "my-new-authorized-view")
             .setDeletionProtection(true)
             .setAuthorizedViewType(
                 SubsetView.create()
                     .addRowPrefix("row#")
                     .addFamilySubsets(
                         "my-family", FamilySubsets.create().addQualifier("column")));

     AuthorizedView response = client.createAuthorizedView(request);
     
See Also: CreateAuthorizedViewRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateAuthorizedViewRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView` |   |

### createAuthorizedViewAsync(CreateAuthorizedViewRequest request)

    public ApiFuture<AuthorizedView> createAuthorizedViewAsync(CreateAuthorizedViewRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createAuthorizedViewOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_createAuthorizedViewOperationCallable__).

Asynchronously creates a new authorized view with the specified configuration.

Sample code:


     CreateAuthorizedViewRequest request =
         CreateAuthorizedViewRequest.of("my-table", "my-new-authorized-view")
             .setDeletionProtection(true)
             .setAuthorizedViewType(
                 SubsetView.create()
                     .addRowPrefix("row#")
                     .addFamilySubsets(
                         "my-family", FamilySubsets.create().addQualifier("column")));

     ApiFuture<AuthorizedView> future = client.createAuthorizedViewAsync(request);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<AuthorizedView>() {
         public void onSuccess(AuthorizedView authorizedView) {
           System.out.println("Successfully created the authorized view: " + authorizedView.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
See Also: CreateAuthorizedViewRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateAuthorizedViewRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView>` |   |

### createBackup(CreateBackupRequest request)

    public Backup createBackup(CreateBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createBackup(com.google.bigtable.admin.v2.CreateBackupRequest).

Creates a backup with the specified configuration.

Sample code


     CreateBackupRequest request =
             CreateBackupRequest.of(clusterId, backupId)
                 .setSourceTableId(tableId)
                 .setExpireTime(expireTime);
     Backup response = client.createBackup(request);
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup` |   |

### createBackupAsync(CreateBackupRequest request)

    public ApiFuture<Backup> createBackupAsync(CreateBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createBackupOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_createBackupOperationCallable__).

Creates a backup with the specified configuration asynchronously.

Sample code


     CreateBackupRequest request =
             CreateBackupRequest.of(clusterId, backupId)
                 .setSourceTableId(tableId)
                 .setExpireTime(expireTime);
     ApiFuture<Backup> future = client.createBackupAsync(request);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Backup>() {
         public void onSuccess(Backup backup) {
           System.out.println("Successfully create the backup " + backup.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup>` |   |

### createSchemaBundle(CreateSchemaBundleRequest request)

    public SchemaBundle createSchemaBundle(CreateSchemaBundleRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createSchemaBundle(com.google.bigtable.admin.v2.CreateSchemaBundleRequest).

Creates a new schema bundle with the specified configuration.

Sample code:


     CreateSchemaBundleRequest request = CreateSchemaBundleRequest.of("my-table", "my-new-schema-bundle")
         .setDeletionProtection(true)
         .setSchemaBundleType(
             SubsetView.create()
                 .addRowPrefix("row#")
                 .addFamilySubsets(
                     "my-family", FamilySubsets.create().addQualifier("column")));

     SchemaBundle response = client.createSchemaBundle(request);
     
See Also: CreateSchemaBundleRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateSchemaBundleRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle` |   |

### createSchemaBundleAsync(CreateSchemaBundleRequest request)

    public ApiFuture<SchemaBundle> createSchemaBundleAsync(CreateSchemaBundleRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createSchemaBundleOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_createSchemaBundleOperationCallable__).

Asynchronously creates a new schema bundle with the specified configuration.

Sample code:


     CreateSchemaBundleRequest request = CreateSchemaBundleRequest.of("my-table", "my-new-schema-bundle")
         .setDeletionProtection(true)
         .setSchemaBundleType(
             SubsetView.create()
                 .addRowPrefix("row#")
                 .addFamilySubsets(
                     "my-family", FamilySubsets.create().addQualifier("column")));

     ApiFuture<SchemaBundle> future = client.createSchemaBundleAsync(request);

     ApiFutures.addCallback(
         future,
         new ApiFutureCallback<SchemaBundle>() {
           public void onSuccess(SchemaBundle schemaBundle) {
             System.out.println("Successfully created the schema bundle: " + schemaBundle.getId());
           }

           public void onFailure(Throwable t) {
             t.printStackTrace();
           }
         },
         MoreExecutors.directExecutor());
     
See Also: CreateSchemaBundleRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateSchemaBundleRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle>` |   |

### createTable(CreateTableRequest request)

    public Table createTable(CreateTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createTable(com.google.bigtable.admin.v2.CreateTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_createTable_com_google_bigtable_admin_v2_CreateTableRequest_).

Creates a new table with the specified configuration.

Sample code:


     // A table with a single column family, which retains only the latest value.
     Table table = client.createTable(
       CreateTableRequest.of("my-table")
         .addFamily("cf2", GCRULES.maxVersions(1))
     );

     // Another table with more complex garbage collection rules.
     Table table = client.createTable(
       CreateTableRequest.of("my-table")
         .addFamily("cf2", GCRULES.union()
           .rule(GCRULES.maxAge(Duration.ofDays(30)))
           .rule(GCRULES.maxVersions(5))
         )
     );
     
See Also: CreateTableRequestfor available options., GCRulesfor the documentation on available garbage collection rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table` |   |

### createTableAsync(CreateTableRequest request)

    public ApiFuture<Table> createTableAsync(CreateTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#createTableCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_createTableCallable__).

Asynchronously creates a new table with the specified configuration.

Sample code:


     // A table with a single column family, which retains values up to 7 days.
     ApiFuture<Table> tableFuture = client.createTableAsync(
       CreateTableRequest.of("my-table")
         .addFamily("cf", GCRULES.maxAge(Duration.ofDays(7)))
     );

     // Another table with more complex garbage collection rules.
     ApiFuture<Table> tableFuture = client.createTableAsync(
       CreateTableRequest.of("my-table")
         .addFamily("cf", GCRULES.intersection()
           .rule(GCRULES.maxAge(120, TimeUnit.HOURS))
           .rule(GCRULES.maxVersions(10))
         )
     );

     ApiFutures.addCallback(
       tableFuture,
       new ApiFutureCallback<Table>() {
         public void onSuccess(Table table) {
           System.out.println("Created table: " + table.getTableName());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
See Also: CreateTableRequestfor available options., GCRulesfor the documentation on available garbage collection rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CreateTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table>` |   |

### deleteAuthorizedView(String tableId, String authorizedViewId)

    public void deleteAuthorizedView(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteAuthorizedView(com.google.bigtable.admin.v2.DeleteAuthorizedViewRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteAuthorizedView_com_google_bigtable_admin_v2_DeleteAuthorizedViewRequest_).

Deletes an authorized view with the specified authorized view ID in the specified table.
Note that the deletion is prohibited if the authorized view has deletion_protection field set
to true.

Sample code:


     client.deleteAuthorizedView("my-table", "my-authorized-view");
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### deleteAuthorizedViewAsync(String tableId, String authorizedViewId)

    public ApiFuture<Void> deleteAuthorizedViewAsync(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteAuthorizedViewCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteAuthorizedViewCallable__).

Asynchronously deletes an authorized view with the specified authorized view ID in the
specified table. Note that the deletion is prohibited if the authorized view has
deletion_protection field set to true.

Sample code:


     ApiFuture

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### deleteBackup(String clusterId, String backupId)

    public void deleteBackup(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteBackup(com.google.bigtable.admin.v2.DeleteBackupRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteBackup_com_google_bigtable_admin_v2_DeleteBackupRequest_).

Deletes a backup with the specified backup ID in the specified cluster.

Sample code


     client.deleteBackup(clusterId, backupId);
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### deleteBackupAsync(String clusterId, String backupId)

    public ApiFuture<Void> deleteBackupAsync(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteBackupCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteBackupCallable__).

Deletes a backup with the specified backup ID in the specified cluster asynchronously.

Sample code


     ApiFuture<Void> future = client.deleteBackupAsync(clusterId, backupId);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Backup>() {
         public void onSuccess(Void unused) {
           System.out.println("Successfully delete the backup.");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### deleteSchemaBundle(String tableId, String schemaBundleId)

    public void deleteSchemaBundle(String tableId, String schemaBundleId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteSchemaBundle(com.google.bigtable.admin.v2.DeleteSchemaBundleRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteSchemaBundle_com_google_bigtable_admin_v2_DeleteSchemaBundleRequest_).

Deletes an schema bundle with the specified schema bundle ID in the specified table.

Sample code:


     client.deleteSchemaBundle("my-table", "my-schema-bundle");
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `schemaBundleId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### deleteSchemaBundleAsync(String tableId, String schemaBundleId)

    public ApiFuture<Void> deleteSchemaBundleAsync(String tableId, String schemaBundleId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteSchemaBundleCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteSchemaBundleCallable__).

Asynchronously deletes an schema bundle with the specified schema bundle ID in the specified
table.

Sample code:


     ApiFuture

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `schemaBundleId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### deleteTable(String tableId)

    public void deleteTable(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteTable(com.google.bigtable.admin.v2.DeleteTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteTable_com_google_bigtable_admin_v2_DeleteTableRequest_).

Deletes the table specified by the table ID.

Sample code:


     client.deleteTable("my-table");
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### deleteTableAsync(String tableId)

    public ApiFuture<Void> deleteTableAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#deleteTableCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_deleteTableCallable__).

Asynchronously deletes the table specified by the table ID.

Sample code:


     ApiFuture<Void> future = client.deleteTableAsync("my-table");

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Void ignored) {
           System.out.println("Successfully deleted the table");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### dropAllRows(String tableId)

    public void dropAllRows(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRange_com_google_bigtable_admin_v2_DropRowRangeRequest_).

Drops all data in the table.

Sample code:


     client.dropAllRows("my-table");
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### dropAllRowsAsync(String tableId)

    public ApiFuture<Void> dropAllRowsAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRangeCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRangeCallable__).

Asynchronously drops all data in the table.

Sample code:


     ApiFuture<Void> dropFuture = client.dropAllRowsAsync("my-table");

     ApiFutures.addCallback(
       dropFuture,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Void tableNames) {
           System.out.println("Successfully dropped all data");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### dropRowRange(String tableId, ByteString rowKeyPrefix)

    public void dropRowRange(String tableId, ByteString rowKeyPrefix)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRange_com_google_bigtable_admin_v2_DropRowRangeRequest_).

Drops rows by the specified row key prefix and table ID.

Please note that this method is considered part of the admin API and is rate limited.

Sample code:


     client.dropRowRange("my-table", ByteString.copyFromUtf8("prefix"));
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `rowKeyPrefix` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

### dropRowRange(String tableId, String rowKeyPrefix)

    public void dropRowRange(String tableId, String rowKeyPrefix)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRange_com_google_bigtable_admin_v2_DropRowRangeRequest_).

Drops rows by the specified row key prefix and table ID.

Please note that this method is considered part of the admin API and is rate limited.

Sample code:


     client.dropRowRange("my-table", "prefix");
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `rowKeyPrefix` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### dropRowRangeAsync(String tableId, ByteString rowKeyPrefix)

    public ApiFuture<Void> dropRowRangeAsync(String tableId, ByteString rowKeyPrefix)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRangeCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRangeCallable__).

Asynchronously drops rows by the specified row key prefix and table ID.

Please note that this method is considered part of the admin API and is rate limited.

Sample code:


     ApiFuture<Void> dropFuture = client.dropRowRangeAsync("my-table", ByteString.copyFromUtf8("prefix"));

     ApiFutures.addCallback(
       dropFuture,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Void tableNames) {
           System.out.println("Successfully dropped row range.");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `rowKeyPrefix` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### dropRowRangeAsync(String tableId, String rowKeyPrefix)

    public ApiFuture<Void> dropRowRangeAsync(String tableId, String rowKeyPrefix)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#dropRowRangeCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_dropRowRangeCallable__).

Asynchronously drops rows by the specified row key prefix and table ID.

Please note that this method is considered part of the admin API and is rate limited.

Sample code:


     ApiFuture<Void> dropFuture = client.dropRowRangeAsync("my-table", "prefix");

     ApiFutures.addCallback(
       dropFuture,
       new ApiFutureCallback<Void>() {
         public void onSuccess(Void tableNames) {
           System.out.println("Successfully dropped row range.");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `rowKeyPrefix` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |

### exists(String tableId)

    public boolean exists(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTable(com.google.bigtable.admin.v2.GetTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTable_com_google_bigtable_admin_v2_GetTableRequest_).

Checks if the table specified by the table ID exists.

Sample code:


     if(client.exists("my-table")) {
       System.out.println("Table exists");
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### existsAsync(String tableId)

    public ApiFuture<Boolean> existsAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTableCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTableCallable__).

Asynchronously checks if the table specified by the table ID exists.

Sample code:


     ApiFuture<Boolean> found = client.existsAsync("my-table");

     ApiFutures.addCallback(
      found,
      new ApiFutureCallback<Boolean>() {
        public void onSuccess(Boolean found) {
          if (found) {
            System.out.println("Table exists");
          } else {
            System.out.println("Table not found");
          }
        }

        public void onFailure(Throwable t) {
          t.printStackTrace();
        }
      },
      MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html>` |   |

### getAuthorizedView(String tableId, String authorizedViewId)

    public AuthorizedView getAuthorizedView(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getAuthorizedView(com.google.bigtable.admin.v2.GetAuthorizedViewRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getAuthorizedView_com_google_bigtable_admin_v2_GetAuthorizedViewRequest_).

Gets an authorized view with the specified authorized view ID in the specified table.

Sample code:


     AuthorizedView authorizedView = client.getAuthorizedView("my-table", "my-authorized-view");
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView` |   |

### getAuthorizedViewAsync(String tableId, String authorizedViewId)

    public ApiFuture<AuthorizedView> getAuthorizedViewAsync(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getAuthorizedViewCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getAuthorizedViewCallable__).

Asynchronously gets an authorized view with the specified authorized view ID in the
specified table.

Sample code:


     ApiFuture<AuthorizedView> future = client.getAuthorizedViewAsync("my-table", "my-authorized-view");

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<AuthorizedView>() {
         public void onSuccess(AuthorizedView authorizedView) {
           System.out.println("Successfully get the authorized view: " + authorizedView.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView>` |   |

### getAuthorizedViewIamPolicy(String tableId, String authorizedViewId)

    public Policy getAuthorizedViewIamPolicy(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicy(com.google.iam.v1.GetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicy_com_google_iam_v1_GetIamPolicyRequest_).

Gets the IAM access control policy for the specified authorized view.

Sample code:


     Policy policy = client.getAuthorizedViewIamPolicy("my-table-id", "my-authorized-view-id");
     for(Map.Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
       System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
     }
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### getAuthorizedViewIamPolicyAsync(String tableId, String authorizedViewId)

    public ApiFuture<Policy> getAuthorizedViewIamPolicyAsync(String tableId, String authorizedViewId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicyCallable__).

Asynchronously gets the IAM access control policy for the specified authorized view.

Sample code:


     ApiFuture<Policy> policyFuture = client.getAuthorizedViewIamPolicyAsync("my-table-id", "my-authorized-view-id");

     ApiFutures.addCallback(policyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### getBackup(String clusterId, String backupId)

    public Backup getBackup(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getBackup(com.google.bigtable.admin.v2.GetBackupRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getBackup_com_google_bigtable_admin_v2_GetBackupRequest_).

Gets a backup with the specified backup ID in the specified cluster.

Sample code


     Backup backup = client.getBackup(clusterId, backupId);
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup` |   |

### getBackupAsync(String clusterId, String backupId)

    public ApiFuture<Backup> getBackupAsync(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getBackupCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getBackupCallable__).

Gets a backup with the specified backup ID in the specified cluster asynchronously.

Sample code


     ApiFuture<Backup> future = client.getBackupAsync(clusterId, backupId);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Backup>() {
         public void onSuccess(Backup backup) {
           System.out.println("Successfully get the backup " + backup.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup>` |   |

### getBackupIamPolicy(String clusterId, String backupId)

    public Policy getBackupIamPolicy(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicy(com.google.iam.v1.GetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicy_com_google_iam_v1_GetIamPolicyRequest_).

Gets the IAM access control policy for the specified backup.

Sample code:


     Policy policy = client.getBackupIamPolicy("my-cluster-id", "my-backup-id");
     for(Map.Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
       System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
     }
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### getBackupIamPolicyAsync(String clusterId, String backupId)

    public ApiFuture<Policy> getBackupIamPolicyAsync(String clusterId, String backupId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicyCallable__).

Asynchronously gets the IAM access control policy for the specified backup.

Sample code:


     ApiFuture<Policy> policyFuture = client.getBackupIamPolicyAsync("my-cluster-id", "my-backup-id");

     ApiFutures.addCallback(policyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### getBaseClient()

    public synchronized BigtableTableAdminClientV2 getBaseClient()

Returns the modern V2 client. This provides access to the newest features and proto-based
methods.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BigtableTableAdminClientV2` |   |

### getEncryptionInfo(String tableId)

    public Map<String,List<EncryptionInfo>> getEncryptionInfo(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTable(com.google.bigtable.admin.v2.GetTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTable_com_google_bigtable_admin_v2_GetTableRequest_).

Gets the current encryption info for the table across all of the clusters.

The returned Map will be keyed by cluster id and contain a status for all of the keys in
use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.EncryptionInfo>>` |   |

### getEncryptionInfoAsync(String tableId)

    public ApiFuture<Map<String,List<EncryptionInfo>>> getEncryptionInfoAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTableCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTableCallable__).

Asynchronously gets the current encryption info for the table across all of the clusters.

The returned Map will be keyed by cluster id and contain a status for all of the keys in
use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.EncryptionInfo>>>` |   |

### getIamPolicy(String tableId)

    public Policy getIamPolicy(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicy(com.google.iam.v1.GetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicy_com_google_iam_v1_GetIamPolicyRequest_).

Gets the IAM access control policy for the specified table.

Sample code:


     Policy policy = client.getIamPolicy("my-table");
     for(Map.Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
       System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
     }
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### getIamPolicyAsync(String tableId)

    public ApiFuture<Policy> getIamPolicyAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getIamPolicyCallable__).

Asynchronously gets the IAM access control policy for the specified table.

Sample code:


     ApiFuture<Policy> policyFuture = client.getIamPolicyAsync("my-table");

     ApiFutures.addCallback(policyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### getInstanceId()

    public String getInstanceId()

Gets the ID of the instance whose tables this client manages.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getProjectId()

    public String getProjectId()

Gets the project ID of the instance whose tables this client manages.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getSchemaBundle(String tableId, String schemaBundleId)

    public SchemaBundle getSchemaBundle(String tableId, String schemaBundleId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getSchemaBundle(com.google.bigtable.admin.v2.GetSchemaBundleRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getSchemaBundle_com_google_bigtable_admin_v2_GetSchemaBundleRequest_).

Gets an schema bundle with the specified schema bundle ID in the specified table.

Sample code:


     SchemaBundle schemaBundle = client.getSchemaBundle("my-table", "my-schema-bundle");
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `schemaBundleId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle` |   |

### getSchemaBundleAsync(String tableId, String schemaBundleId)

    public ApiFuture<SchemaBundle> getSchemaBundleAsync(String tableId, String schemaBundleId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getSchemaBundleCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getSchemaBundleCallable__).

Asynchronously gets an schema bundle with the specified schema bundle ID in the specified
table.

Sample code:


     ApiFuture<SchemaBundle> future = client.getSchemaBundleAsync("my-table", "my-schema-bundle");

     ApiFutures.addCallback(
         future,
         new ApiFutureCallback<SchemaBundle>() {
           public void onSuccess(SchemaBundle schemaBundle) {
             System.out.println("Successfully get the schema bundle: " + schemaBundle.getId());
           }

           public void onFailure(Throwable t) {
             t.printStackTrace();
           }
         },
         MoreExecutors.directExecutor());
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `schemaBundleId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle>` |   |

### getTable(String tableId)

    public Table getTable(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTable(com.google.bigtable.admin.v2.GetTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTable_com_google_bigtable_admin_v2_GetTableRequest_).

Gets the table metadata by table ID.

Sample code:


     Table table = client.getTable("my-table");

     System.out.println("Got metadata for table: " + table.getId());
     System.out.println("Column families:");

     for (ColumnFamily cf : table.getColumnFamilies()) {
       System.out.println(cf.getId());
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table` |   |

### getTableAsync(String tableId)

    public ApiFuture<Table> getTableAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#getTableCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_getTableCallable__).

Asynchronously gets the table metadata by table ID.

Sample code:


     ApiFuture<Table> tableFuture = client.getTableAsync("my-table");

     ApiFutures.addCallback(
       tableFuture,
       new ApiFutureCallback<Table>() {
         public void onSuccess(Table table) {
           System.out.println("Got metadata for table: " + table.getId());
           System.out.println("Column families:");
           for (ColumnFamily cf : table.getColumnFamilies()) {
             System.out.println(cf.getId());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table>` |   |

### listAuthorizedViews(String tableId)

    public List<String> listAuthorizedViews(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listAuthorizedViews(com.google.bigtable.admin.v2.ListAuthorizedViewsRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listAuthorizedViews_com_google_bigtable_admin_v2_ListAuthorizedViewsRequest_).

Lists all authorized view IDs in the specified table.

Sample code:


     List<String> authorizedViews = client.listAuthorizedViews("my-table");
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### listAuthorizedViewsAsync(String tableId)

    public ApiFuture<List<String>> listAuthorizedViewsAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listAuthorizedViewsPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listAuthorizedViewsPagedCallable__).

Asynchronously lists all authorized view IDs in the specified table.

Sample code:


     ApiFuture<List<String>> future = client.listAuthorizedViewsAsync("my-table");

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> authorizedViewIds) {
           System.out.println("Successfully get list of authorized views:");
           for (AuthorizedView authorizedViewId : authorizedViewIds) {
             System.out.println(authorizedViewId);
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### listBackups(String clusterId)

    public List<String> listBackups(String clusterId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listBackups(com.google.bigtable.admin.v2.ListBackupsRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listBackups_com_google_bigtable_admin_v2_ListBackupsRequest_).

Lists backups in the specified cluster.

Sample code


     List<String> backups = client.listBackups(clusterId);
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### listBackupsAsync(String clusterId)

    public ApiFuture<List<String>> listBackupsAsync(String clusterId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listBackupsPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listBackupsPagedCallable__).

Lists backups in the specified cluster asynchronously.

Sample code:


     ApiFuture<List<String>> listFuture = client.listBackupsAsync(clusterId);

     ApiFutures.addCallback(
       listFuture,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> backupIds) {
           System.out.println("Got list of backups:");
           for (String backupId : backupIds) {
             System.out.println(backupId);
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### listSchemaBundles(String tableId)

    public List<String> listSchemaBundles(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listSchemaBundles(com.google.bigtable.admin.v2.ListSchemaBundlesRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listSchemaBundles_com_google_bigtable_admin_v2_ListSchemaBundlesRequest_).

Lists all schema bundle IDs in the specified table.

Sample code:


     List<String> schemaBundles = client.listSchemaBundles("my-table");
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### listSchemaBundlesAsync(String tableId)

    public ApiFuture<List<String>> listSchemaBundlesAsync(String tableId)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listSchemaBundlesPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listSchemaBundlesPagedCallable__).

Asynchronously lists all schema bundle IDs in the specified table.

Sample code:


     ApiFuture<List<String>> future = client.listSchemaBundlesAsync("my-table");

     ApiFutures.addCallback(
         future,
         new ApiFutureCallback<List<String>>() {
           public void onSuccess(List<String> schemaBundleIds) {
             System.out.println("Successfully get list of schema bundles:");
             for (SchemaBundle schemaBundleId : schemaBundleIds) {
               System.out.println(schemaBundleId);
             }
           }

           public void onFailure(Throwable t) {
             t.printStackTrace();
           }
         },
         MoreExecutors.directExecutor());
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### listTables()

    public List<String> listTables()

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listTables(com.google.bigtable.admin.v2.ListTablesRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listTables_com_google_bigtable_admin_v2_ListTablesRequest_).

Lists all table IDs in the instance.

Sample code:


     List<String> tableIds = client.listTables();
     System.out.println("Got list of tables:");
     for(String tableId: tableIds) {
       System.out.println(tableId);
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### listTablesAsync()

    public ApiFuture<List<String>> listTablesAsync()

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#listTablesPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_listTablesPagedCallable__).

Asynchronously lists all table IDs in the instance.

Sample code:


     ApiFuture<List<String>> listFuture = client.listTables();

     ApiFutures.addCallback(
       listFuture,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> tableIds) {
           System.out.println("Got list of tables:");
           for (String tableId : tableIds) {
             System.out.println(tableId);
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### modifyFamilies(ModifyColumnFamiliesRequest request)

    public Table modifyFamilies(ModifyColumnFamiliesRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#modifyColumnFamilies(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_modifyColumnFamilies_com_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_).

Creates, updates and drops column families as specified in the request.

Sample code:


     Table modifiedTable = client.modifyFamilies(
       ModifyColumnFamiliesRequest.of(tableId)
         .addFamily("cf1")
         .addFamily("cf2", GCRULES.maxAge(Duration.ofSeconds(1000, 20000)))
         .updateFamily(
           "cf3",
           GCRULES.union()
             .rule(GCRULES.maxAge(Duration.ofSeconds(100)))
             .rule(GCRULES.maxVersions(1))
           )
         .addFamily(
           "cf4",
           GCRULES.intersection()
             .rule(GCRULES.maxAge(Duration.ofSeconds(2000)))
             .rule(GCRULES.maxVersions(10))
         )
         .dropFamily("cf5")
     );

     System.out.println("Resulting families:");

     for (ColumnFamily cf : modifiedTable.getColumnFamilies()) {
       System.out.println(cf.getId());
     }
     
See Also: ModifyColumnFamiliesRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table` |   |

### modifyFamiliesAsync(ModifyColumnFamiliesRequest request)

    public ApiFuture<Table> modifyFamiliesAsync(ModifyColumnFamiliesRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#modifyColumnFamiliesCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_modifyColumnFamiliesCallable__).

Asynchronously creates, updates, and drops column families as specified in the request.

Sample code:


     ApiFuture<Table> modifiedTableFuture = client.modifyFamiliesAsync(
       ModifyColumnFamiliesRequest.of(tableId)
         .addFamily("cf1")
         .addFamily("cf2", GCRULES.maxAge(Duration.ofSeconds(1000, 20000)))
         .updateFamily(
           "cf3",
           GCRULES.union()
             .rule(GCRULES.maxAge(Duration.ofSeconds(100)))
             .rule(GCRULES.maxVersions(1))
           )
         .addFamily(
           "cf4",
           GCRULES.intersection()
             .rule(GCRULES.maxAge(Duration.ofSeconds(2000)))
             .rule(GCRULES.maxVersions(10))
         )
         .dropFamily("cf5")
     );

     ApiFutures.addCallback(
       modifiedTableFuture,
       new ApiFutureCallback<Table>() {
         public void onSuccess(Table table) {
           System.out.println("Modified table: " + table.getTableName());
           System.out.println("Resulting families:");

           for (ColumnFamily cf : modifiedTable.getColumnFamilies()) {
             System.out.println(cf.getId());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
See Also: ModifyColumnFamiliesRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table>` |   |

### restoreTable(RestoreTableRequest request)

    public RestoredTableResult restoreTable(RestoreTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#restoreTable(com.google.bigtable.admin.v2.RestoreTableRequest).

Restores a backup to a new table with the specified configuration.

Sample code


     RestoredTableResult result =
         client.restoreTable(RestoreTableRequest.of(clusterId, backupId).setTableId(tableId));
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.RestoreTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.RestoredTableResult` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutionException.html` |   |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### restoreTableAsync(RestoreTableRequest request)

    public ApiFuture<RestoredTableResult> restoreTableAsync(RestoreTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#restoreTableAsync(com.google.bigtable.admin.v2.RestoreTableRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_restoreTableAsync_com_google_bigtable_admin_v2_RestoreTableRequest_).

Restores a backup to a new table with the specified configuration asynchronously.

Sample code


     ApiFuture<RestoredTableResult> future = client.restoreTableAsync(
         RestoreTableRequest.of(clusterId, backupId).setTableId(tableId));

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<RestoredTableResult>() {
         public void onSuccess(RestoredTableResult result) {
           System.out.println("Successfully restore the table.");
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.RestoreTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.RestoredTableResult>` |   |

### setAuthorizedViewIamPolicy(String tableId, String authorizedViewId, Policy policy)

    public Policy setAuthorizedViewIamPolicy(String tableId, String authorizedViewId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicy(com.google.iam.v1.SetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicy_com_google_iam_v1_SetIamPolicyRequest_).

Replaces the IAM policy associated with the specified authorized view.

Sample code:


     Policy newPolicy = client.setAuthorizedViewIamPolicy("my-table-id", "my-authorized-view-id",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### setAuthorizedViewIamPolicyAsync(String tableId, String authorizedViewId, Policy policy)

    public ApiFuture<Policy> setAuthorizedViewIamPolicyAsync(String tableId, String authorizedViewId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicyCallable__).

Asynchronously replaces the IAM policy associated with the specified authorized view.

Sample code:


     ApiFuture<Policy> newPolicyFuture = client.setAuthorizedViewIamPolicyAsync("my-table-id", "my-authorized-view-id",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());

     ApiFutures.addCallback(newPolicyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### setBackupIamPolicy(String clusterId, String backupId, Policy policy)

    public Policy setBackupIamPolicy(String clusterId, String backupId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicy(com.google.iam.v1.SetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicy_com_google_iam_v1_SetIamPolicyRequest_).

Replaces the IAM policy associated with the specified backup.

Sample code:


     Policy newPolicy = client.setBackupIamPolicy("my-cluster-id", "my-backup-id",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### setBackupIamPolicyAsync(String clusterId, String backupId, Policy policy)

    public ApiFuture<Policy> setBackupIamPolicyAsync(String clusterId, String backupId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicyCallable__).

Asynchronously replaces the IAM policy associated with the specified backup.

Sample code:


     ApiFuture<Policy> newPolicyFuture = client.setBackupIamPolicyAsync("my-cluster-id", "my-backup-id",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());

     ApiFutures.addCallback(newPolicyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### setIamPolicy(String tableId, Policy policy)

    public Policy setIamPolicy(String tableId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicy(com.google.iam.v1.SetIamPolicyRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicy_com_google_iam_v1_SetIamPolicyRequest_).

Replaces the IAM policy associated with the specified table.

Sample code:


     Policy newPolicy = client.setIamPolicy("my-table",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.Policy` |   |

### setIamPolicyAsync(String tableId, Policy policy)

    public ApiFuture<Policy> setIamPolicyAsync(String tableId, Policy policy)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#setIamPolicyCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_setIamPolicyCallable__).

Asynchronously replaces the IAM policy associated with the specified table.

Sample code:


     ApiFuture<Policy> newPolicyFuture = client.setIamPolicyAsync("my-table",
       Policy.newBuilder()
         .addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
         .addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"))
         .build());

     ApiFutures.addCallback(policyFuture,
       new ApiFutureCallback<Policy>() {
         public void onSuccess(Policy policy) {
           for (Entry<Role, Set<Identity>> entry : policy.getBindings().entrySet()) {
             System.out.printf("Role: %s Identities: %s
    ", entry.getKey(), entry.getValue());
           }
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Table-level IAM management](https://cloud.google.com/bigtable/docs/access-control#iam-management-table)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `policy` | `com.google.cloud.Policy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<com.google.cloud.Policy>` |   |

### testAuthorizedViewIamPermission(String tableId, String authorizedViewId, String\[\] permissions)

    public List<String> testAuthorizedViewIamPermission(String tableId, String authorizedViewId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissions_com_google_iam_v1_TestIamPermissionsRequest_).

Tests whether the caller has the given permissions for the specified authorized view.
Returns a subset of the specified permissions that the caller has.

Sample code:


     List<String> grantedPermissions = client.testAuthorizedViewIamPermission("my-table-id", "my-authorized-view-id",
       "bigtable.authorizedViews.get", "bigtable.authorizedViews.delete");
     
System.out.println("Has get access: " +
grantedPermissions.contains("bigtable.authorizedViews.get"));

System.out.println("Has delete access: " +
grantedPermissions.contains("bigtable.authorizedViews.delete"));
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### testAuthorizedViewIamPermissionAsync(String tableId, String authorizedViewId, String\[\] permissions)

    public ApiFuture<List<String>> testAuthorizedViewIamPermissionAsync(String tableId, String authorizedViewId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissionsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissionsCallable__).

Asynchronously tests whether the caller has the given permissions for the specified
authorized view. Returns a subset of the specified permissions that the caller has.

Sample code:


     ApiFuture<List<String>> grantedPermissionsFuture = client.testAuthorizedViewIamPermissionAsync("my-table-id",
       "my-authorized-view-id", "bigtable.authorizedViews.get", "bigtable.authorizedViews.delete");

     ApiFutures.addCallback(grantedPermissionsFuture,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> grantedPermissions) {
           System.out.println("Has get access: " + grantedPermissions.contains("bigtable.authorizedViews.get"));
           System.out.println("Has delete access: " + grantedPermissions.contains("bigtable.authorizedViews.delete"));
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `authorizedViewId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### testBackupIamPermission(String clusterId, String backupId, String\[\] permissions)

    public List<String> testBackupIamPermission(String clusterId, String backupId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissions_com_google_iam_v1_TestIamPermissionsRequest_).

Tests whether the caller has the given permissions for the specified backup. Returns a
subset of the specified permissions that the caller has.

Sample code:


     List<String> grantedPermissions = client.testBackupIamPermission("my-cluster-id", "my-backup-id",
       "bigtable.backups.restore", "bigtable.backups.delete");
     
System.out.println("Has restore access: " +
grantedPermissions.contains("bigtable.backups.restore"));

System.out.println("Has delete access: " +
grantedPermissions.contains("bigtable.backups.delete"));
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### testBackupIamPermissionAsync(String clusterId, String backupId, String\[\] permissions)

    public ApiFuture<List<String>> testBackupIamPermissionAsync(String clusterId, String backupId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissionsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissionsCallable__).

Asynchronously tests whether the caller has the given permissions for the specified backup.
Returns a subset of the specified permissions that the caller has.

Sample code:


     ApiFuture<List<String>> grantedPermissionsFuture = client.testBackupIamPermissionAsync("my-cluster-id", "my-backup-id",
       "bigtable.backups.restore", "bigtable.backups.delete");

     ApiFutures.addCallback(grantedPermissionsFuture,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> grantedPermissions) {
           System.out.println("Has restore access: " + grantedPermissions.contains("bigtable.backups.restore"));
           System.out.println("Has delete access: " + grantedPermissions.contains("bigtable.backups.delete"));
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clusterId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `backupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### testIamPermission(String tableId, String\[\] permissions)

    public List<String> testIamPermission(String tableId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissions_com_google_iam_v1_TestIamPermissionsRequest_).

Tests whether the caller has the given permissions for the specified table. Returns a subset
of the specified permissions that the caller has.

Sample code:


     List<String> grantedPermissions = client.testIamPermission("my-table",
       "bigtable.tables.readRows", "bigtable.tables.mutateRows");
     
System.out.println("Has read access: " +
grantedPermissions.contains("bigtable.tables.readRows")); System.out.println("Has write access:
" + grantedPermissions.contains("bigtable.tables.mutateRows"));
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### testIamPermissionAsync(String tableId, String\[\] permissions)

    public ApiFuture<List<String>> testIamPermissionAsync(String tableId, String[] permissions)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#testIamPermissionsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_testIamPermissionsCallable__).

Asynchronously tests whether the caller has the given permissions for the specified table.
Returns a subset of the specified permissions that the caller has.

Sample code:


     ApiFuture<List<String>> grantedPermissionsFuture = client.testIamPermissionAsync("my-table",
       "bigtable.tables.readRows", "bigtable.tables.mutateRows");

     ApiFutures.addCallback(grantedPermissionsFuture,
       new ApiFutureCallback<List<String>>() {
         public void onSuccess(List<String> grantedPermissions) {
           System.out.println("Has read access: " + grantedPermissions.contains("bigtable.tables.readRows"));
           System.out.println("Has write access: " + grantedPermissions.contains("bigtable.tables.mutateRows"));
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor());
     
See Also: [Cloud Bigtable permissions](https://cloud.google.com/bigtable/docs/access-control#permissions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `permissions` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>>` |   |

### updateAuthorizedView(UpdateAuthorizedViewRequest request)

    public AuthorizedView updateAuthorizedView(UpdateAuthorizedViewRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateAuthorizedView(com.google.bigtable.admin.v2.UpdateAuthorizedViewRequest).

Updates an existing authorized view with the specified configuration.

Sample code:


     AuthorizedView existingAuthorizedView = client.getAuthorizedView("my-table", "my-authorized-view");

     UpdateAuthorizedViewRequest request =
         UpdateAuthorizedViewRequest.of(existingAuthorizedView).setDeletionProtection(true);

     AuthorizedView response = client.updateAuthorizedView(request);
     
See Also: UpdateAuthorizedViewRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateAuthorizedViewRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView` |   |

### updateAuthorizedViewAsync(UpdateAuthorizedViewRequest request)

    public ApiFuture<AuthorizedView> updateAuthorizedViewAsync(UpdateAuthorizedViewRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateAuthorizedViewOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_updateAuthorizedViewOperationCallable__).

Asynchronously updates an existing authorized view with the specified configuration.

Sample code:


     AuthorizedView existingAuthorizedView = client.getAuthorizedView("my-table", "my-authorized-view");

     UpdateAuthorizedViewRequest request =
         UpdateAuthorizedViewRequest.of(existingAuthorizedView).setDeletionProtection(true);

     ApiFuture<AuthorizedView> future = client.updateAuthorizedViewAsync(request);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<AuthorizedView>() {
         public void onSuccess(AuthorizedView authorizedView) {
           System.out.println("Successfully updated the authorized view: " + authorizedView.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
See Also: UpdateAuthorizedViewRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateAuthorizedViewRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.AuthorizedView>` |   |

### updateBackup(UpdateBackupRequest request)

    public Backup updateBackup(UpdateBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateBackup(com.google.bigtable.admin.v2.UpdateBackupRequest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_updateBackup_com_google_bigtable_admin_v2_UpdateBackupRequest_).

Updates a backup with the specified configuration.

Sample code


     Backup backup = client.updateBackup(clusterId, backupId);
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup` |   |

### updateBackupAsync(UpdateBackupRequest request)

    public ApiFuture<Backup> updateBackupAsync(UpdateBackupRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateBackupCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_updateBackupCallable__).

Updates a backup with the specified configuration asynchronously.

Sample code


     ApiFuture<Backup> future = client.updateBackupAsync(clusterId, backupId);

     ApiFutures.addCallback(
       future,
       new ApiFutureCallback<Backup>() {
         public void onSuccess(Backup backup) {
           System.out.println("Successfully update the backup " + backup.getId());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateBackupRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Backup>` |   |

### updateSchemaBundle(UpdateSchemaBundleRequest request)

    public SchemaBundle updateSchemaBundle(UpdateSchemaBundleRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateSchemaBundle(com.google.bigtable.admin.v2.UpdateSchemaBundleRequest).

Updates an existing schema bundle with the specified configuration.

Sample code:


     SchemaBundle existingSchemaBundle = client.getSchemaBundle("my-table", "my-schema-bundle");

     UpdateSchemaBundleRequest request = UpdateSchemaBundleRequest.of(existingSchemaBundle).setDeletionProtection(true);

     SchemaBundle response = client.updateSchemaBundle(request);
     
See Also: UpdateSchemaBundleRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateSchemaBundleRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle` |   |

### updateSchemaBundleAsync(UpdateSchemaBundleRequest request)

    public ApiFuture<SchemaBundle> updateSchemaBundleAsync(UpdateSchemaBundleRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateSchemaBundleOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_updateSchemaBundleOperationCallable__).

Asynchronously updates an existing schema bundle with the specified configuration.

Sample code:


     SchemaBundle existingSchemaBundle = client.getSchemaBundle("my-table", "my-schema-bundle");

     UpdateSchemaBundleRequest request = UpdateSchemaBundleRequest.of(existingSchemaBundle).setDeletionProtection(true);

     ApiFuture<SchemaBundle> future = client.updateSchemaBundleAsync(request);

     ApiFutures.addCallback(
         future,
         new ApiFutureCallback<SchemaBundle>() {
           public void onSuccess(SchemaBundle schemaBundle) {
             System.out.println("Successfully updated the schema bundle: " + schemaBundle.getId());
           }

           public void onFailure(Throwable t) {
             t.printStackTrace();
           }
         },
         MoreExecutors.directExecutor());
     
See Also: UpdateSchemaBundleRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateSchemaBundleRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.SchemaBundle>` |   |

### updateTable(UpdateTableRequest request)

    public Table updateTable(UpdateTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateTable(com.google.bigtable.admin.v2.UpdateTableRequest).

Update a table with the specified configuration.

Sample code:


     // Alter change stream retention period.
     Table table = client.updateTable(
       UpdateTableRequest.of("my-table")
         .addChangeStreamRetention(Duration.ofHours(24))
     );

     // Disable change stream
     Table table = client.updateTable(
       UpdateTableRequest.of("my-table")
         .disableChangeStream()
     );
     
See Also: UpdateTableRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table` |   |

### updateTableAsync(UpdateTableRequest request)

    public ApiFuture<Table> updateTableAsync(UpdateTableRequest request)

> [!WARNING]
> **Obsolete**
>
> *Use getBaseClient() to access the auto-generated proto-based methods instead.*
>
> This feature is stable for usage in this major version, but may be deprecated in a future release.

This method is obsolete. For the recommended proto-based approach, please see [com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#updateTableOperationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient#com_google_cloud_bigtable_admin_v2_BaseBigtableTableAdminClient_updateTableOperationCallable__).

Asynchronously update a table with the specified configuration.

Sample code:


     // Update table to 1 day change stream retention.
     ApiFuture<Table> tableFuture = client.createTableAsync(
       UpdateTableRequest.of("my-table")
         .addChangeStreamRetention(Duration.ofHours(24))
     );

     ApiFutures.addCallback(
       tableFuture,
       new ApiFutureCallback<Table>() {
         public void onSuccess(Table table) {
           System.out.println("Updated table: " + table.getTableName());
         }

         public void onFailure(Throwable t) {
           t.printStackTrace();
         }
       },
       MoreExecutors.directExecutor()
     );
     
See Also: UpdateTableRequestfor available options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.UpdateTableRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.Table>` |   |

### waitForConsistency(String tableId, String consistencyToken)

    public void waitForConsistency(String tableId, String consistencyToken)

Polls an existing consistency token until table replication is consistent across all clusters.
Useful for checking consistency of a token generated in a separate process. Blocks until
completion.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The table to check. |
| `consistencyToken` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The token to poll. |

### waitForConsistencyAsync(String tableId, String consistencyToken)

    public ApiFuture<Void> waitForConsistencyAsync(String tableId, String consistencyToken)

Asynchronously polls the consistency token. Returns a future that completes when table
replication is consistent across all clusters.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The table to check. |
| `consistencyToken` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The token to poll. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html>` |   |