Skip to content

Commit eb4fe8e

Browse files
feat: Add bloom filter related proto fields (only in the preview API surface) (#707)
* feat: Add bloom filter related proto fields (only in the preview API surface) PiperOrigin-RevId: 527090049 Source-Link: googleapis/googleapis@e2b7cb9 Source-Link: googleapis/googleapis-gen@b0d2cc1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBkMmNjMWM0OGRkYWMxYzVkYmFjMWNlMTk5ZDI5ZWFmMWM1ZWMwYyJ9 * 🦉 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> Co-authored-by: Mariatta Wijaya <[email protected]>
1 parent 1587285 commit eb4fe8e

File tree

6 files changed

+41
-27
lines changed

6 files changed

+41
-27
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,8 +1430,8 @@ def write(
14301430
metadata: Sequence[Tuple[str, str]] = (),
14311431
) -> Awaitable[AsyncIterable[firestore.WriteResponse]]:
14321432
r"""Streams batches of document updates and deletes, in
1433-
order. This method is only available via the gRPC API
1434-
(not REST).
1433+
order. This method is only available via gRPC or
1434+
WebChannel (not REST).
14351435
14361436
.. code-block:: python
14371437
@@ -1531,7 +1531,7 @@ def listen(
15311531
metadata: Sequence[Tuple[str, str]] = (),
15321532
) -> Awaitable[AsyncIterable[firestore.ListenResponse]]:
15331533
r"""Listens to changes. This method is only available via
1534-
the gRPC API (not REST).
1534+
gRPC or WebChannel (not REST).
15351535
15361536
.. code-block:: python
15371537

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,8 @@ def write(
15201520
metadata: Sequence[Tuple[str, str]] = (),
15211521
) -> Iterable[firestore.WriteResponse]:
15221522
r"""Streams batches of document updates and deletes, in
1523-
order. This method is only available via the gRPC API
1524-
(not REST).
1523+
order. This method is only available via gRPC or
1524+
WebChannel (not REST).
15251525
15261526
.. code-block:: python
15271527
@@ -1617,7 +1617,7 @@ def listen(
16171617
metadata: Sequence[Tuple[str, str]] = (),
16181618
) -> Iterable[firestore.ListenResponse]:
16191619
r"""Listens to changes. This method is only available via
1620-
the gRPC API (not REST).
1620+
gRPC or WebChannel (not REST).
16211621
16221622
.. code-block:: python
16231623

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ def write(self) -> Callable[[firestore.WriteRequest], firestore.WriteResponse]:
555555
r"""Return a callable for the write method over gRPC.
556556
557557
Streams batches of document updates and deletes, in
558-
order. This method is only available via the gRPC API
559-
(not REST).
558+
order. This method is only available via gRPC or
559+
WebChannel (not REST).
560560
561561
Returns:
562562
Callable[[~.WriteRequest],
@@ -581,7 +581,7 @@ def listen(self) -> Callable[[firestore.ListenRequest], firestore.ListenResponse
581581
r"""Return a callable for the listen method over gRPC.
582582
583583
Listens to changes. This method is only available via
584-
the gRPC API (not REST).
584+
gRPC or WebChannel (not REST).
585585
586586
Returns:
587587
Callable[[~.ListenRequest],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ def write(
571571
r"""Return a callable for the write method over gRPC.
572572
573573
Streams batches of document updates and deletes, in
574-
order. This method is only available via the gRPC API
575-
(not REST).
574+
order. This method is only available via gRPC or
575+
WebChannel (not REST).
576576
577577
Returns:
578578
Callable[[~.WriteRequest],
@@ -599,7 +599,7 @@ def listen(
599599
r"""Return a callable for the listen method over gRPC.
600600
601601
Listens to changes. This method is only available via
602-
the gRPC API (not REST).
602+
gRPC or WebChannel (not REST).
603603
604604
Returns:
605605
Callable[[~.ListenRequest],

google/cloud/firestore_v1/types/firestore.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,14 @@ class RunAggregationQueryResponse(proto.Message):
886886
Only present on the first response when the
887887
request requested to start a new transaction.
888888
read_time (google.protobuf.timestamp_pb2.Timestamp):
889-
The time at which the aggregate value is
890-
valid for.
889+
The time at which the aggregate result was computed. This is
890+
always monotonically increasing; in this case, the previous
891+
AggregationResult in the result stream are guaranteed not to
892+
have changed between their ``read_time`` and this one.
893+
894+
If the query returns no results, a response with
895+
``read_time`` and no ``result`` will be sent, and this
896+
represents the time at which the query was run.
891897
"""
892898

893899
result: aggregation_result.AggregationResult = proto.Field(

google/cloud/firestore_v1/types/query.py

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ class StructuredQuery(proto.Message):
3838
3939
Attributes:
4040
select (google.cloud.firestore_v1.types.StructuredQuery.Projection):
41-
The projection to return.
41+
Optional sub-set of the fields to return.
42+
43+
This acts as a
44+
[DocumentMask][google.firestore.v1.DocumentMask] over the
45+
documents returned from a query. When not set, assumes that
46+
the caller wants all fields returned.
4247
from_ (MutableSequence[google.cloud.firestore_v1.types.StructuredQuery.CollectionSelector]):
4348
The collections to query.
4449
where (google.cloud.firestore_v1.types.StructuredQuery.Filter):
@@ -328,27 +333,30 @@ class Operator(proto.Enum):
328333
329334
Requires:
330335
331-
- That ``value`` is a non-empty ``ArrayValue`` with at most
332-
10 values.
333-
- No other ``IN`` or ``ARRAY_CONTAINS_ANY`` or ``NOT_IN``.
336+
- That ``value`` is a non-empty ``ArrayValue``, subject to
337+
disjunction limits.
338+
- No ``NOT_IN`` filters in the same query.
334339
ARRAY_CONTAINS_ANY (9):
335340
The given ``field`` is an array that contains any of the
336341
values in the given array.
337342
338343
Requires:
339344
340-
- That ``value`` is a non-empty ``ArrayValue`` with at most
341-
10 values.
342-
- No other ``IN`` or ``ARRAY_CONTAINS_ANY`` or ``NOT_IN``.
345+
- That ``value`` is a non-empty ``ArrayValue``, subject to
346+
disjunction limits.
347+
- No other ``ARRAY_CONTAINS_ANY`` filters within the same
348+
disjunction.
349+
- No ``NOT_IN`` filters in the same query.
343350
NOT_IN (10):
344351
The value of the ``field`` is not in the given array.
345352
346353
Requires:
347354
348355
- That ``value`` is a non-empty ``ArrayValue`` with at most
349356
10 values.
350-
- No other ``IN``, ``ARRAY_CONTAINS_ANY``, ``NOT_IN``,
351-
``NOT_EQUAL``, ``IS_NOT_NULL``, or ``IS_NOT_NAN``.
357+
- No other ``OR``, ``IN``, ``ARRAY_CONTAINS_ANY``,
358+
``NOT_IN``, ``NOT_EQUAL``, ``IS_NOT_NULL``, or
359+
``IS_NOT_NAN``.
352360
- That ``field`` comes first in the ``order_by``.
353361
"""
354362
OPERATOR_UNSPECIFIED = 0
@@ -558,7 +566,7 @@ class StructuredAggregationQuery(proto.Message):
558566
"""
559567

560568
class Aggregation(proto.Message):
561-
r"""Defines a aggregation that produces a single result.
569+
r"""Defines an aggregation that produces a single result.
562570
563571
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
564572
@@ -581,7 +589,7 @@ class Aggregation(proto.Message):
581589
COUNT_UP_TO(1) AS count_up_to_1,
582590
COUNT_UP_TO(2),
583591
COUNT_UP_TO(3) AS count_up_to_3,
584-
COUNT_UP_TO(4)
592+
COUNT(*)
585593
OVER (
586594
...
587595
);
@@ -594,7 +602,7 @@ class Aggregation(proto.Message):
594602
COUNT_UP_TO(1) AS count_up_to_1,
595603
COUNT_UP_TO(2) AS field_1,
596604
COUNT_UP_TO(3) AS count_up_to_3,
597-
COUNT_UP_TO(4) AS field_2
605+
COUNT(*) AS field_2
598606
OVER (
599607
...
600608
);
@@ -618,7 +626,7 @@ class Count(proto.Message):
618626
documents to count.
619627
620628
This provides a way to set an upper bound on the number of
621-
documents to scan, limiting latency and cost.
629+
documents to scan, limiting latency, and cost.
622630
623631
Unspecified is interpreted as no bound.
624632

0 commit comments

Comments
 (0)