Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add OR query support #1198

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.7.0')
implementation platform('com.google.cloud:libraries-bom:26.8.0')

implementation 'com.google.cloud:google-cloud-firestore'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
* <p>Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL document database
* that simplifies storing, syncing, and querying data for your mobile, web, and IoT apps at global
* scale. Its client libraries provide live synchronization and offline support, while its security
* features and integrations with Firebase and Google Cloud Platform (GCP) accelerate building truly
* features and integrations with Firebase and Google Cloud Platform accelerate building truly
* serverless apps.
*
* <p>This class provides the ability to make remote calls to the backing service through method
Expand Down Expand Up @@ -1039,7 +1039,8 @@ public final PartitionQueryPagedResponse partitionQuery(PartitionQueryRequest re

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Streams batches of document updates and deletes, in order.
* Streams batches of document updates and deletes, in order. This method is only available via
* the gRPC API (not REST).
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1072,7 +1073,7 @@ public final BidiStreamingCallable<WriteRequest, WriteResponse> writeCallable()

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Listens to changes.
* Listens to changes. This method is only available via the gRPC API (not REST).
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* <p>Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL document database
* that simplifies storing, syncing, and querying data for your mobile, web, and IoT apps at global
* scale. Its client libraries provide live synchronization and offline support, while its security
* features and integrations with Firebase and Google Cloud Platform (GCP) accelerate building truly
* features and integrations with Firebase and Google Cloud Platform accelerate building truly
* serverless apps.
*
* <p>Sample for FirestoreClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
* document database that simplifies storing, syncing, and querying data for
* your mobile, web, and IoT apps at global scale. Its client libraries provide
* live synchronization and offline support, while its security features and
* integrations with Firebase and Google Cloud Platform (GCP) accelerate
* building truly serverless apps.
* integrations with Firebase and Google Cloud Platform accelerate building
* truly serverless apps.
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -772,8 +772,8 @@ public FirestoreFutureStub newStub(
* document database that simplifies storing, syncing, and querying data for
* your mobile, web, and IoT apps at global scale. Its client libraries provide
* live synchronization and offline support, while its security features and
* integrations with Firebase and Google Cloud Platform (GCP) accelerate
* building truly serverless apps.
* integrations with Firebase and Google Cloud Platform accelerate building
* truly serverless apps.
* </pre>
*/
public abstract static class FirestoreImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -911,8 +911,9 @@ public void runQuery(
*
* <pre>
* Runs an aggregation query.
* Rather than producing [Document][google.firestore.v1.Document] results like [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery],
* this API allows running an aggregation to produce a series of
* Rather than producing [Document][google.firestore.v1.Document] results like
* [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
* allows running an aggregation to produce a series of
* [AggregationResult][google.firestore.v1.AggregationResult] server-side.
* High-Level Example:
* ```
Expand Down Expand Up @@ -950,7 +951,8 @@ public void partitionQuery(
*
*
* <pre>
* Streams batches of document updates and deletes, in order.
* Streams batches of document updates and deletes, in order. This method is
* only available via the gRPC API (not REST).
* </pre>
*/
public io.grpc.stub.StreamObserver<com.google.firestore.v1.WriteRequest> write(
Expand All @@ -963,7 +965,8 @@ public io.grpc.stub.StreamObserver<com.google.firestore.v1.WriteRequest> write(
*
*
* <pre>
* Listens to changes.
* Listens to changes. This method is only available via the gRPC API (not
* REST).
* </pre>
*/
public io.grpc.stub.StreamObserver<com.google.firestore.v1.ListenRequest> listen(
Expand Down Expand Up @@ -995,7 +998,8 @@ public void listCollectionIds(
* The BatchWrite method does not apply the write operations atomically
* and can apply them out of order. Method does not allow more than one write
* per document. Each write succeeds or fails independently. See the
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the success status of each write.
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
* success status of each write.
* If you require an atomically applied set of writes, use
* [Commit][google.firestore.v1.Firestore.Commit] instead.
* </pre>
Expand Down Expand Up @@ -1138,8 +1142,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
* document database that simplifies storing, syncing, and querying data for
* your mobile, web, and IoT apps at global scale. Its client libraries provide
* live synchronization and offline support, while its security features and
* integrations with Firebase and Google Cloud Platform (GCP) accelerate
* building truly serverless apps.
* integrations with Firebase and Google Cloud Platform accelerate building
* truly serverless apps.
* </pre>
*/
public static final class FirestoreStub extends io.grpc.stub.AbstractAsyncStub<FirestoreStub> {
Expand Down Expand Up @@ -1300,8 +1304,9 @@ public void runQuery(
*
* <pre>
* Runs an aggregation query.
* Rather than producing [Document][google.firestore.v1.Document] results like [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery],
* this API allows running an aggregation to produce a series of
* Rather than producing [Document][google.firestore.v1.Document] results like
* [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
* allows running an aggregation to produce a series of
* [AggregationResult][google.firestore.v1.AggregationResult] server-side.
* High-Level Example:
* ```
Expand Down Expand Up @@ -1343,7 +1348,8 @@ public void partitionQuery(
*
*
* <pre>
* Streams batches of document updates and deletes, in order.
* Streams batches of document updates and deletes, in order. This method is
* only available via the gRPC API (not REST).
* </pre>
*/
public io.grpc.stub.StreamObserver<com.google.firestore.v1.WriteRequest> write(
Expand All @@ -1356,7 +1362,8 @@ public io.grpc.stub.StreamObserver<com.google.firestore.v1.WriteRequest> write(
*
*
* <pre>
* Listens to changes.
* Listens to changes. This method is only available via the gRPC API (not
* REST).
* </pre>
*/
public io.grpc.stub.StreamObserver<com.google.firestore.v1.ListenRequest> listen(
Expand Down Expand Up @@ -1390,7 +1397,8 @@ public void listCollectionIds(
* The BatchWrite method does not apply the write operations atomically
* and can apply them out of order. Method does not allow more than one write
* per document. Each write succeeds or fails independently. See the
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the success status of each write.
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
* success status of each write.
* If you require an atomically applied set of writes, use
* [Commit][google.firestore.v1.Firestore.Commit] instead.
* </pre>
Expand Down Expand Up @@ -1428,8 +1436,8 @@ public void createDocument(
* document database that simplifies storing, syncing, and querying data for
* your mobile, web, and IoT apps at global scale. Its client libraries provide
* live synchronization and offline support, while its security features and
* integrations with Firebase and Google Cloud Platform (GCP) accelerate
* building truly serverless apps.
* integrations with Firebase and Google Cloud Platform accelerate building
* truly serverless apps.
* </pre>
*/
public static final class FirestoreBlockingStub
Expand Down Expand Up @@ -1567,8 +1575,9 @@ public java.util.Iterator<com.google.firestore.v1.RunQueryResponse> runQuery(
*
* <pre>
* Runs an aggregation query.
* Rather than producing [Document][google.firestore.v1.Document] results like [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery],
* this API allows running an aggregation to produce a series of
* Rather than producing [Document][google.firestore.v1.Document] results like
* [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
* allows running an aggregation to produce a series of
* [AggregationResult][google.firestore.v1.AggregationResult] server-side.
* High-Level Example:
* ```
Expand Down Expand Up @@ -1619,7 +1628,8 @@ public com.google.firestore.v1.ListCollectionIdsResponse listCollectionIds(
* The BatchWrite method does not apply the write operations atomically
* and can apply them out of order. Method does not allow more than one write
* per document. Each write succeeds or fails independently. See the
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the success status of each write.
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
* success status of each write.
* If you require an atomically applied set of writes, use
* [Commit][google.firestore.v1.Firestore.Commit] instead.
* </pre>
Expand Down Expand Up @@ -1653,8 +1663,8 @@ public com.google.firestore.v1.Document createDocument(
* document database that simplifies storing, syncing, and querying data for
* your mobile, web, and IoT apps at global scale. Its client libraries provide
* live synchronization and offline support, while its security features and
* integrations with Firebase and Google Cloud Platform (GCP) accelerate
* building truly serverless apps.
* integrations with Firebase and Google Cloud Platform accelerate building
* truly serverless apps.
* </pre>
*/
public static final class FirestoreFutureStub
Expand Down Expand Up @@ -1800,7 +1810,8 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
* The BatchWrite method does not apply the write operations atomically
* and can apply them out of order. Method does not allow more than one write
* per document. Each write succeeds or fails independently. See the
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the success status of each write.
* [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
* success status of each write.
* If you require an atomically applied set of writes, use
* [Commit][google.firestore.v1.Firestore.Commit] instead.
* </pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public int getAggregateFieldsCount() {
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -140,7 +141,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -156,7 +158,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -180,7 +183,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand Down Expand Up @@ -613,7 +617,8 @@ public int getAggregateFieldsCount() {
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -638,7 +643,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -654,7 +660,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -678,7 +685,8 @@ public java.util.Map<java.lang.String, com.google.firestore.v1.Value> getAggrega
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand Down Expand Up @@ -708,7 +716,8 @@ public Builder clearAggregateFields() {
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -734,7 +743,8 @@ public Builder removeAggregateFields(java.lang.String key) {
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -757,7 +767,8 @@ public Builder putAggregateFields(java.lang.String key, com.google.firestore.v1.
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public interface AggregationResultOrBuilder
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -41,7 +42,8 @@ public interface AggregationResultOrBuilder
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -57,7 +59,8 @@ public interface AggregationResultOrBuilder
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -70,7 +73,8 @@ public interface AggregationResultOrBuilder
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand All @@ -87,7 +91,8 @@ com.google.firestore.v1.Value getAggregateFieldsOrDefault(
*
* <pre>
* The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
* The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* The key is the
* [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
* assigned to the aggregation function on input and the size of this map
* equals the number of aggregation functions in the query.
* </pre>
Expand Down
Loading