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

Commit d5a4043

Browse files
1 parent 2bc5cb3 commit d5a4043

File tree

306 files changed

+48
-131062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+48
-131062
lines changed

google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -4089,5 +4090,8 @@ async def __aexit__(self, exc_type, exc, tb):
40894090
gapic_version=package_version.__version__
40904091
)
40914092

4093+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4094+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4095+
40924096

40934097
__all__ = ("DatabaseAdminAsyncClient",)

google/cloud/spanner_admin_database_v1/services/database_admin/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from google.auth.transport.grpc import SslCredentials # type: ignore
4646
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4747
from google.oauth2 import service_account # type: ignore
48+
import google.protobuf
4849

4950
try:
5051
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -4595,5 +4596,7 @@ def cancel_operation(
45954596
gapic_version=package_version.__version__
45964597
)
45974598

4599+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4600+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
45984601

45994602
__all__ = ("DatabaseAdminClient",)

google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from google.api_core import operations_v1
2727
from google.auth import credentials as ga_credentials # type: ignore
2828
from google.oauth2 import service_account # type: ignore
29+
import google.protobuf
2930

3031
from google.cloud.spanner_admin_database_v1.types import backup
3132
from google.cloud.spanner_admin_database_v1.types import backup as gsad_backup
@@ -43,6 +44,9 @@
4344
gapic_version=package_version.__version__
4445
)
4546

47+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
48+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
49+
4650

4751
class DatabaseAdminTransport(abc.ABC):
4852
"""Abstract transport class for DatabaseAdmin."""

google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from google.api_core import rest_helpers
2424
from google.api_core import rest_streaming
2525
from google.api_core import gapic_v1
26+
import google.protobuf
2627

2728
from google.protobuf import json_format
2829
from google.api_core import operations_v1
@@ -69,6 +70,9 @@
6970
rest_version=f"requests@{requests_version}",
7071
)
7172

73+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
74+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
75+
7276

7377
class DatabaseAdminRestInterceptor:
7478
"""Interceptor for DatabaseAdmin.

google/cloud/spanner_admin_instance_v1/services/instance_admin/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -3458,5 +3459,8 @@ async def __aexit__(self, exc_type, exc, tb):
34583459
gapic_version=package_version.__version__
34593460
)
34603461

3462+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
3463+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
3464+
34613465

34623466
__all__ = ("InstanceAdminAsyncClient",)

google/cloud/spanner_admin_instance_v1/services/instance_admin/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from google.auth.transport.grpc import SslCredentials # type: ignore
4646
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4747
from google.oauth2 import service_account # type: ignore
48+
import google.protobuf
4849

4950
try:
5051
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -3874,5 +3875,7 @@ def __exit__(self, type, value, traceback):
38743875
gapic_version=package_version.__version__
38753876
)
38763877

3878+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
3879+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
38773880

38783881
__all__ = ("InstanceAdminClient",)

google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from google.api_core import operations_v1
2727
from google.auth import credentials as ga_credentials # type: ignore
2828
from google.oauth2 import service_account # type: ignore
29+
import google.protobuf
2930

3031
from google.cloud.spanner_admin_instance_v1.types import spanner_instance_admin
3132
from google.iam.v1 import iam_policy_pb2 # type: ignore
@@ -37,6 +38,9 @@
3738
gapic_version=package_version.__version__
3839
)
3940

41+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
42+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
43+
4044

4145
class InstanceAdminTransport(abc.ABC):
4246
"""Abstract transport class for InstanceAdmin."""

google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from google.api_core import rest_helpers
2424
from google.api_core import rest_streaming
2525
from google.api_core import gapic_v1
26+
import google.protobuf
2627

2728
from google.protobuf import json_format
2829
from google.api_core import operations_v1
@@ -63,6 +64,9 @@
6364
rest_version=f"requests@{requests_version}",
6465
)
6566

67+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
68+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
69+
6670

6771
class InstanceAdminRestInterceptor:
6872
"""Interceptor for InstanceAdmin.

google/cloud/spanner_v1/services/spanner/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from google.api_core import retry_async as retries
4040
from google.auth import credentials as ga_credentials # type: ignore
4141
from google.oauth2 import service_account # type: ignore
42+
import google.protobuf
4243

4344

4445
try:
@@ -2197,5 +2198,8 @@ async def __aexit__(self, exc_type, exc, tb):
21972198
gapic_version=package_version.__version__
21982199
)
21992200

2201+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2202+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
2203+
22002204

22012205
__all__ = ("SpannerAsyncClient",)

google/cloud/spanner_v1/services/spanner/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from google.auth.transport.grpc import SslCredentials # type: ignore
4747
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4848
from google.oauth2 import service_account # type: ignore
49+
import google.protobuf
4950

5051
try:
5152
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -2615,5 +2616,7 @@ def __exit__(self, type, value, traceback):
26152616
gapic_version=package_version.__version__
26162617
)
26172618

2619+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2620+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
26182621

26192622
__all__ = ("SpannerClient",)

0 commit comments

Comments
 (0)