Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 6fb1fab

Browse files
chore: generate libraries at Mon Jan 26 21:09:41 UTC 2026
1 parent 85736e5 commit 6fb1fab

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,8 +1461,8 @@ public ApiFuture<Void> awaitReplicationAsync(final String tableId) {
14611461
}
14621462

14631463
/**
1464-
* Generates a consistency token and polls it until replication is consistent.
1465-
* Blocks until completion.
1464+
* Generates a consistency token and polls it until replication is consistent. Blocks until
1465+
* completion.
14661466
*
14671467
* @param tableId The table to check.
14681468
*/
@@ -1480,16 +1480,14 @@ public ApiFuture<Void> waitForConsistencyAsync(String tableId) {
14801480
}
14811481

14821482
/**
1483-
* Polls an existing consistency token until replication is consistent.
1484-
* Useful for checking consistency of a token generated in a separate process.
1485-
* Blocks until completion.
1483+
* Polls an existing consistency token until replication is consistent. Useful for checking
1484+
* consistency of a token generated in a separate process. Blocks until completion.
14861485
*
14871486
* @param tableId The table to check.
14881487
* @param consistencyToken The token to poll.
14891488
*/
14901489
public void waitForConsistency(String tableId, String consistencyToken) {
1491-
ApiExceptions.callAndTranslateApiException(
1492-
waitForConsistencyAsync(tableId, consistencyToken));
1490+
ApiExceptions.callAndTranslateApiException(waitForConsistencyAsync(tableId, consistencyToken));
14931491
}
14941492

14951493
/**
@@ -1499,8 +1497,8 @@ public void waitForConsistency(String tableId, String consistencyToken) {
14991497
* @param consistencyToken The token to poll.
15001498
*/
15011499
public ApiFuture<Void> waitForConsistencyAsync(String tableId, String consistencyToken) {
1502-
return stub.awaitConsistencyCallable().futureCall(
1503-
ConsistencyRequest.forReplication(tableId, consistencyToken));
1500+
return stub.awaitConsistencyCallable()
1501+
.futureCall(ConsistencyRequest.forReplication(tableId, consistencyToken));
15041502
}
15051503

15061504
/**

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/ConsistencyRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public abstract class ConsistencyRequest {
3535
protected abstract CheckConsistencyRequest.ModeCase getMode();
3636

3737
/**
38-
* Internal accessor for the consistency token.
39-
* Must be public to be accessible from the stub package.
38+
* Internal accessor for the consistency token. Must be public to be accessible from the stub
39+
* package.
4040
*/
4141
@InternalApi
4242
@Nullable
@@ -88,4 +88,4 @@ public GenerateConsistencyTokenRequest toGenerateTokenProto(
8888

8989
return builder.setName(tableName.toString()).build();
9090
}
91-
}
91+
}

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/stub/AwaitConsistencyCallableTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ public void testWithProvidedToken() throws Exception {
353353

354354
// 4. Verify: Generate was NEVER called, Check WAS called
355355
Mockito.verify(mockGenerateConsistencyTokenCallable, Mockito.never())
356-
.futureCall(ArgumentMatchers.any(GenerateConsistencyTokenRequest.class), ArgumentMatchers.any(ApiCallContext.class));
356+
.futureCall(
357+
ArgumentMatchers.any(GenerateConsistencyTokenRequest.class),
358+
ArgumentMatchers.any(ApiCallContext.class));
357359
Mockito.verify(mockCheckConsistencyCallable, Mockito.times(1))
358360
.futureCall(expectedCheckRequest, CALL_CONTEXT);
359361
}

0 commit comments

Comments
 (0)