Skip to content

Commit 34f6b27

Browse files
chore: Update gapic-generator-python to 1.25.0 (#608)
* chore: Update gapic-generator-python to 1.24.0 PiperOrigin-RevId: 747419463 Source-Link: googleapis/googleapis@340579b Source-Link: googleapis/googleapis-gen@e8997ec Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTg5OTdlYzUxMzZlY2I2ZWQ5YTk2OWE0YzJmMTNiM2FiNmExN2MxMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to 1.24.1 PiperOrigin-RevId: 748739072 Source-Link: googleapis/googleapis@b947e52 Source-Link: googleapis/googleapis-gen@8c5821a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGM1ODIxYWE2NWE5MjFkNTliM2Y3NjUzZDZmMzdjOWM2NzQxMGMyZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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 df72901 commit 34f6b27

File tree

10 files changed

+32
-4
lines changed

10 files changed

+32
-4
lines changed

google/cloud/datastore_admin_v1/services/datastore_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:
@@ -1378,5 +1379,8 @@ async def __aexit__(self, exc_type, exc, tb):
13781379
gapic_version=package_version.__version__
13791380
)
13801381

1382+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1383+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1384+
13811385

13821386
__all__ = ("DatastoreAdminAsyncClient",)

google/cloud/datastore_admin_v1/services/datastore_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]
@@ -1779,5 +1780,7 @@ def cancel_operation(
17791780
gapic_version=package_version.__version__
17801781
)
17811782

1783+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1784+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
17821785

17831786
__all__ = ("DatastoreAdminClient",)

google/cloud/datastore_admin_v1/services/datastore_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.datastore_admin_v1.types import datastore_admin
3132
from google.cloud.datastore_admin_v1.types import index
@@ -35,6 +36,9 @@
3536
gapic_version=package_version.__version__
3637
)
3738

39+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
40+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
41+
3842

3943
class DatastoreAdminTransport(abc.ABC):
4044
"""Abstract transport class for DatastoreAdmin."""

google/cloud/datastore_admin_v1/services/datastore_admin/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7373
f"Sending request for {client_call_details.method}",
7474
extra={
7575
"serviceName": "google.datastore.admin.v1.DatastoreAdmin",
76-
"rpcName": client_call_details.method,
76+
"rpcName": str(client_call_details.method),
7777
"request": grpc_request,
7878
"metadata": grpc_request["metadata"],
7979
},
8080
)
81-
8281
response = continuation(client_call_details, request)
8382
if logging_enabled: # pragma: NO COVER
8483
response_metadata = response.trailing_metadata()

google/cloud/datastore_admin_v1/services/datastore_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
@@ -61,6 +62,9 @@
6162
rest_version=f"requests@{requests_version}",
6263
)
6364

65+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
66+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
67+
6468

6569
class DatastoreAdminRestInterceptor:
6670
"""Interceptor for DatastoreAdmin.

google/cloud/datastore_v1/services/datastore/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:
@@ -1512,5 +1513,8 @@ async def __aexit__(self, exc_type, exc, tb):
15121513
gapic_version=package_version.__version__
15131514
)
15141515

1516+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1517+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1518+
15151519

15161520
__all__ = ("DatastoreAsyncClient",)

google/cloud/datastore_v1/services/datastore/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]
@@ -1914,5 +1915,7 @@ def cancel_operation(
19141915
gapic_version=package_version.__version__
19151916
)
19161917

1918+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1919+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
19171920

19181921
__all__ = ("DatastoreClient",)

google/cloud/datastore_v1/services/datastore/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.datastore_v1.types import datastore
3031
from google.longrunning import operations_pb2 # type: ignore
@@ -33,6 +34,9 @@
3334
gapic_version=package_version.__version__
3435
)
3536

37+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
38+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
39+
3640

3741
class DatastoreTransport(abc.ABC):
3842
"""Abstract transport class for Datastore."""

google/cloud/datastore_v1/services/datastore/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7171
f"Sending request for {client_call_details.method}",
7272
extra={
7373
"serviceName": "google.datastore.v1.Datastore",
74-
"rpcName": client_call_details.method,
74+
"rpcName": str(client_call_details.method),
7575
"request": grpc_request,
7676
"metadata": grpc_request["metadata"],
7777
},
7878
)
79-
8079
response = continuation(client_call_details, request)
8180
if logging_enabled: # pragma: NO COVER
8281
response_metadata = response.trailing_metadata()

google/cloud/datastore_v1/services/datastore/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

@@ -59,6 +60,9 @@
5960
rest_version=f"requests@{requests_version}",
6061
)
6162

63+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
64+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
65+
6266

6367
class DatastoreRestInterceptor:
6468
"""Interceptor for Datastore.

0 commit comments

Comments
 (0)