Skip to content

Commit 5a279b2

Browse files
chore: Update gapic-generator-python to 1.25.0 (#1043)
* chore: Update gapic-generator-python to 1.25.0 PiperOrigin-RevId: 755914147 Source-Link: googleapis/googleapis@97a83d7 Source-Link: googleapis/googleapis-gen@a9977ef Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTk5NzdlZmVkYzgzNmNjZWNlMWYwMWQ1MjliMDMxNWUxZWZlNTJhZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 043d9ef commit 5a279b2

File tree

8 files changed

+30
-0
lines changed

8 files changed

+30
-0
lines changed

google/cloud/firestore_admin_v1/services/firestore_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:
@@ -4342,5 +4343,8 @@ async def __aexit__(self, exc_type, exc, tb):
43424343
gapic_version=package_version.__version__
43434344
)
43444345

4346+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4347+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4348+
43454349

43464350
__all__ = ("FirestoreAdminAsyncClient",)

google/cloud/firestore_admin_v1/services/firestore_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]
@@ -4837,5 +4838,7 @@ def cancel_operation(
48374838
gapic_version=package_version.__version__
48384839
)
48394840

4841+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4842+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
48404843

48414844
__all__ = ("FirestoreAdminClient",)

google/cloud/firestore_admin_v1/services/firestore_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.firestore_admin_v1.types import backup
3132
from google.cloud.firestore_admin_v1.types import database
@@ -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 FirestoreAdminTransport(abc.ABC):
4852
"""Abstract transport class for FirestoreAdmin."""

google/cloud/firestore_admin_v1/services/firestore_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 FirestoreAdminRestInterceptor:
7478
"""Interceptor for FirestoreAdmin.

google/cloud/firestore_v1/services/firestore/async_client.py

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

4445

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

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

22022206
__all__ = ("FirestoreAsyncClient",)

google/cloud/firestore_v1/services/firestore/client.py

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

5152
try:
5253
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -2585,5 +2586,7 @@ def cancel_operation(
25852586
gapic_version=package_version.__version__
25862587
)
25872588

2589+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2590+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
25882591

25892592
__all__ = ("FirestoreClient",)

google/cloud/firestore_v1/services/firestore/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from google.api_core import retry as retries
2626
from google.auth import credentials as ga_credentials # type: ignore
2727
from google.oauth2 import service_account # type: ignore
28+
import google.protobuf
2829

2930
from google.cloud.firestore_v1.types import document
3031
from google.cloud.firestore_v1.types import document as gf_document
@@ -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 FirestoreTransport(abc.ABC):
4246
"""Abstract transport class for Firestore."""

google/cloud/firestore_v1/services/firestore/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.cloud.location import locations_pb2 # type: ignore
@@ -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 FirestoreRestInterceptor:
6872
"""Interceptor for Firestore.

0 commit comments

Comments
 (0)