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

Commit fae7530

Browse files
committed
build(owlbot): un-final static create methods in Admin Base clients
Updates owlbot.py to programmatically remove the \`final\` modifier from the static \`create\` factory methods in the generated BaseBigtableTableAdminClient and BaseBigtableInstanceAdminClient.
1 parent 86c0cca commit fae7530

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

owlbot.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ def make_internal_only(sources):
6767
if os.path.exists("owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/package-info.java"):
6868
os.remove("owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/package-info.java")
6969

70+
# Remove the 'final' modifier from all static create() factory methods in the Base Admin clients
71+
# This allows our handwritten Selective GAPIC subclasses to hide these methods.
72+
s.replace(
73+
f"{library}/**/BaseBigtable*AdminClient.java",
74+
r"public static final BaseBigtable(.*)AdminClient create\(",
75+
r"public static BaseBigtable\1AdminClient create("
76+
)
77+
7078
s.move(library)
7179

7280
s.remove_staging_dirs()

0 commit comments

Comments
 (0)