@SuppressWarnings("WeakerAccess")
  public ApiFuture<Instance> updateInstanceAsync(UpdateInstanceRequest request) {
    return ApiFutures.transform(
        stub.partialUpdateInstanceOperationCallable().futureCall(request.toProto(projectId)),
        new ApiFunction<com.google.bigtable.admin.v2.Instance, Instance>() {
          @Override
          public Instance apply(com.google.bigtable.admin.v2.Instance proto) {
            return Instance.fromProto(proto);
          }
        },
        MoreExecutors.directExecutor());
  }
@ SuppressWarnings ( "WeakerAccess" ) public ApiFuture < Instance > updateInstanceAsync ( UpdateInstanceRequest request ) { return ApiFutures . transform ( stub . partialUpdateInstanceOperationCallable ( ) . futureCall ( request . toProto ( projectId ) ) , new ApiFunction < com . google . bigtable . admin . v2 . Instance , Instance > ( ) { @ Override public Instance apply ( com . google . bigtable . admin . v2 . Instance proto ) { return Instance . fromProto ( proto ) ; } } , MoreExecutors . directExecutor ( ) ) ; }
Asynchronously updates a new instance and returns its representation wrapped in a future.

<p>Sample code:

<pre>{@code
ApiFuture<Instance> instanceFuture = client.updateInstanceAsync(
UpdateInstanceRequest.of("my-instance")
.setProductionType()
);

Instance instance = instanceFuture.get();
}</pre>

@see UpdateInstanceRequest for details.