Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed May 16, 2024
1 parent cfea0fd commit 99d12e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ If you are using Maven without the 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.37.0')
implementation platform('com.google.cloud:libraries-bom:26.39.0')
implementation 'com.google.cloud:google-cloud-firestore'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-firestore:3.20.0'
implementation 'com.google.cloud:google-cloud-firestore:3.21.1'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.20.0"
libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.21.1"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -222,7 +222,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-firestore/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-firestore.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.20.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.21.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,11 @@
package com.google.cloud.firestore.it;

import static com.google.cloud.firestore.it.ITQueryTest.map;
import static com.google.cloud.firestore.pipeline.Function.avg;
import static com.google.cloud.firestore.pipeline.Function.cosineDistance;
import static com.google.cloud.firestore.pipeline.Function.equal;
import static com.google.cloud.firestore.pipeline.Function.lessThan;
import static com.google.cloud.firestore.pipeline.Function.not;
import static com.google.cloud.firestore.pipeline.Function.or;
import static com.google.cloud.firestore.pipeline.Sort.Ordering.ascending;
import static com.google.cloud.firestore.pipeline.Sort.Ordering.descending;

import com.google.cloud.firestore.CollectionReference;
import com.google.cloud.firestore.LocalFirestoreHelper;
import com.google.cloud.firestore.PaginatingPipeline;
import com.google.cloud.firestore.Pipeline;
import com.google.cloud.firestore.PipelineResult;
import com.google.cloud.firestore.pipeline.Constant;
import com.google.cloud.firestore.pipeline.Field;
import com.google.cloud.firestore.pipeline.Fields;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -85,7 +73,8 @@ public void fromSources() throws Exception {
// Pipeline p =
// Pipeline.fromCollectionGroup("coll1")
// .filter(Field.of("foo").equal(42))
// .filter(or(Field.of("bar").lessThan(100), Constant.of("value").equal(Field.of("key"))))
// .filter(or(Field.of("bar").lessThan(100),
// Constant.of("value").equal(Field.of("key"))))
// .filter(not(Constant.of(128).inAny("f1", "f2")));
// List<PipelineResult> results = p.execute(firestore).get();
//
Expand Down Expand Up @@ -141,7 +130,8 @@ public void fromSources() throws Exception {
// Pipeline.fromCollection("coll1")
// .filter(Field.of("foo").inAny(42, "bar"))
// .paginate(
// 100, cosineDistance(Field.of("embedding1"), Field.of("embedding2")).descending());
// 100, cosineDistance(Field.of("embedding1"),
// Field.of("embedding2")).descending());
//
// List<PipelineResult> results = p.firstPage().execute(firestore).get();
// List<PipelineResult> secondPage =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
Expand Down

0 comments on commit 99d12e1

Please sign in to comment.