2727import com .google .protobuf .Empty ;
2828import java .io .IOException ;
2929import java .util .concurrent .ExecutionException ;
30- import javax .annotation .Nonnull ;
3130
3231/**
3332 * Modern Cloud Bigtable Table Admin Client.
@@ -47,12 +46,13 @@ protected BigtableTableAdminClientV2(BigtableTableAdminStub stub) {
4746 }
4847
4948 /** Constructs an instance of BigtableTableAdminClientV2 with the given settings. */
50- public static final BigtableTableAdminClientV2 createClient (BaseBigtableTableAdminSettings settings )
51- throws IOException {
49+ public static final BigtableTableAdminClientV2 createClient (
50+ BaseBigtableTableAdminSettings settings ) throws IOException {
5251 // Explicitly create the enhanced stub
5352 EnhancedBigtableTableAdminStub stub =
5453 EnhancedBigtableTableAdminStub .createEnhanced (
55- (com .google .cloud .bigtable .admin .v2 .stub .BigtableTableAdminStubSettings ) settings .getStubSettings (),
54+ (com .google .cloud .bigtable .admin .v2 .stub .BigtableTableAdminStubSettings )
55+ settings .getStubSettings (),
5656 com .google .cloud .bigtable .data .v2 .internal .TableAdminRequestContext .create ("" , "" ));
5757 // Pass the enhanced stub to the existing stub-based constructor
5858 return new BigtableTableAdminClientV2 (stub );
@@ -91,7 +91,9 @@ public ApiFuture<Empty> awaitOptimizeRestoredTable(ApiFuture<RestoredTableResult
9191 }
9292
9393 // 3. Return the future for the optimization operation
94- return ((EnhancedBigtableTableAdminStub ) getStub ()).awaitOptimizeRestoredTableCallable ().resumeFutureCall (token .getOperationName ());
94+ return ((EnhancedBigtableTableAdminStub ) getStub ())
95+ .awaitOptimizeRestoredTableCallable ()
96+ .resumeFutureCall (token .getOperationName ());
9597 }
9698
9799 /**
@@ -139,7 +141,9 @@ public void awaitOptimizeRestoredTable(OptimizeRestoredTableOperationToken token
139141 public ApiFuture <Void > awaitOptimizeRestoredTableAsync (
140142 OptimizeRestoredTableOperationToken token ) {
141143 ApiFuture <Empty > emptyFuture =
142- ((EnhancedBigtableTableAdminStub ) getStub ()).awaitOptimizeRestoredTableCallable ().resumeFutureCall (token .getOperationName ());
144+ ((EnhancedBigtableTableAdminStub ) getStub ())
145+ .awaitOptimizeRestoredTableCallable ()
146+ .resumeFutureCall (token .getOperationName ());
143147 return ApiFutures .transform (
144148 emptyFuture ,
145149 new com .google .api .core .ApiFunction <Empty , Void >() {
@@ -171,7 +175,8 @@ public void waitForConsistency(String tableId, String consistencyToken) {
171175 * @param consistencyToken The token to poll.
172176 */
173177 public ApiFuture <Void > waitForConsistencyAsync (String tableId , String consistencyToken ) {
174- return ((EnhancedBigtableTableAdminStub ) getStub ()).awaitConsistencyCallable ()
178+ return ((EnhancedBigtableTableAdminStub ) getStub ())
179+ .awaitConsistencyCallable ()
175180 .futureCall (ConsistencyRequest .forReplication (tableId , consistencyToken ));
176181 }
177182}
0 commit comments