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

Commit 58eb0dd

Browse files
authored
Merge branch 'main' into remove-unused-files
2 parents bae77bf + 34f6b27 commit 58eb0dd

57 files changed

Lines changed: 172 additions & 126 deletions

Some content is hidden

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

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:5581906b957284864632cde4e9c51d1cc66b0094990b27e689132fe5cd036046
17-
# created: 2025-03-05
16+
digest: sha256:710b70faff81151657d89db6e028c23a1051787598c8276bdd8eef25c92da8ab
17+
# created: 2025-04-10T17:48:54.829145676Z

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.20.2"
2+
".": "2.21.0"
33
}

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
[1]: https://pypi.org/project/google-cloud-datastore/#history
66

7+
## [2.21.0](https://github.com/googleapis/python-datastore/compare/v2.20.2...v2.21.0) (2025-04-10)
8+
9+
10+
### Features
11+
12+
* Add REST Interceptors which support reading metadata ([7be9c4c](https://github.com/googleapis/python-datastore/commit/7be9c4c594af2c2414e394b8bfe62574b58ef337))
13+
* Add support for opt-in debug logging ([7be9c4c](https://github.com/googleapis/python-datastore/commit/7be9c4c594af2c2414e394b8bfe62574b58ef337))
14+
15+
16+
### Bug Fixes
17+
18+
* Allow protobuf 6.x ([#598](https://github.com/googleapis/python-datastore/issues/598)) ([7c1171b](https://github.com/googleapis/python-datastore/commit/7c1171bf657f7cf4d1404e19611f6c874a8998ca))
19+
* Backwards-compatibility for previous meaning format ([#603](https://github.com/googleapis/python-datastore/issues/603)) ([ed92e8e](https://github.com/googleapis/python-datastore/commit/ed92e8e54a9e0f44302efee89a30a322d0a73636))
20+
* Fix typing issue with gRPC metadata when key ends in -bin ([7be9c4c](https://github.com/googleapis/python-datastore/commit/7be9c4c594af2c2414e394b8bfe62574b58ef337))
21+
722
## [2.20.2](https://github.com/googleapis/python-datastore/compare/v2.20.1...v2.20.2) (2024-12-12)
823

924

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Code-Based Examples
166166
167167
import logging
168168
169-
from google.cloud.translate_v3 import translate
169+
from google.cloud import library_v1
170170
171171
base_logger = logging.getLogger("google")
172172
base_logger.addHandler(logging.StreamHandler())
@@ -178,7 +178,7 @@ Code-Based Examples
178178
179179
import logging
180180
181-
from google.cloud.translate_v3 import translate
181+
from google.cloud import library_v1
182182
183183
base_logger = logging.getLogger("google.cloud.library_v1")
184184
base_logger.addHandler(logging.StreamHandler())

google/cloud/datastore/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "2.20.2" # {x-release-please-version}
15+
__version__ = "2.21.0" # {x-release-please-version}

google/cloud/datastore/helpers.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"""
1919

2020
import datetime
21+
import itertools
2122

2223
from google.protobuf import struct_pb2
2324
from google.type import latlng_pb2
@@ -182,7 +183,15 @@ def _set_pb_meaning_from_entity(entity, name, value, value_pb, is_list=False):
182183
return
183184
elif is_list:
184185
# for lists, set meaning on the root pb and on each sub-element
185-
root_meaning, sub_meaning_list = meaning
186+
if isinstance(meaning, tuple):
187+
root_meaning, sub_meaning_list = meaning
188+
else:
189+
# if meaning isn't a tuple, fall back to pre-v2.20.2 meaning format
190+
root_meaning = None
191+
if isinstance(meaning, list):
192+
sub_meaning_list = meaning
193+
else:
194+
sub_meaning_list = itertools.repeat(meaning)
186195
if root_meaning is not None:
187196
value_pb.meaning = root_meaning
188197
if sub_meaning_list:

google/cloud/datastore/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "2.20.2"
15+
__version__ = "2.21.0"

google/cloud/datastore_admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

google/cloud/datastore_admin/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.20.2" # {x-release-please-version}
16+
__version__ = "2.21.0" # {x-release-please-version}

google/cloud/datastore_admin_v1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)