Commit 9567312
feat: introduce Bigtable Admin V2 clients for Selective GAPIC (#13173)
This PR introduces the modern `BigtableTableAdminClientV2` and
`BigtableInstanceAdminClientV2` clients in `java-bigtable` as
handwritten entry points for the Selective GAPIC hierarchy.
It is a migration of the original PR from the split repository
(googleapis/java-bigtable#2889) into the
`google-cloud-java` monorepo.
## Key Changes
### 1. Core V2 Clients & Callables
- **`BigtableInstanceAdminClientV2`**: Recreates the standardized admin
entry point extending `BaseBigtableInstanceAdminClient`.
- **`BigtableTableAdminClientV2`**: Recreates the administrative client
extending `BaseBigtableTableAdminClient`. It relocates manual wrappers
for Critical User Journeys (CUJs) like chained Long-Running Operations
(`awaitOptimizeRestoredTable`) and consistency token polling
(`waitForConsistency`).
- **`AwaitConsistencyCallableV2`**: Implements a completely decoupled,
lightweight utility callable for polling consistency tokens, ensuring
the V2 administrative client stack has no compile-time dependency on the
data client package.
### 2. Code Generation & POM Rules
- **`owlbot.py`**: Added a post-processing rule to remove the `final`
modifier from the `close()` method in `BaseBigtable*AdminClient` classes
to allow handwritten subclass overrides.
- **`pom.xml`**: Promoted the scope of
`grpc-google-cloud-bigtable-admin-v2` from `test` to compile scope to
support V2 admin gRPC descriptors and classes in production code.
---------
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>1 parent c91e9ce commit 9567312
13 files changed
Lines changed: 1448 additions & 2 deletions
File tree
- java-bigtable
- google-cloud-bigtable
- src
- main/java/com/google/cloud/bigtable/admin/v2
- stub
- test/java/com/google/cloud/bigtable/admin/v2
- stub
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5249 | 5249 | | |
5250 | 5250 | | |
5251 | 5251 | | |
5252 | | - | |
| 5252 | + | |
5253 | 5253 | | |
5254 | 5254 | | |
5255 | 5255 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6414 | 6414 | | |
6415 | 6415 | | |
6416 | 6416 | | |
6417 | | - | |
| 6417 | + | |
6418 | 6418 | | |
6419 | 6419 | | |
6420 | 6420 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments