@ 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 .