Visitar URL original
chore: Update generation configuration at Sun Oct 27 02:28:38 UTC 202… · googleapis/google-cloud-java@c7045aa · GitHub
Skip to content

Commit c7045aa

Browse files
chore: Update generation configuration at Sun Oct 27 02:28:38 UTC 2024 (#1907)
* chore: Update generation configuration at Sat Oct 26 02:23:56 UTC 2024 * chore: Update generation configuration at Sun Oct 27 02:28:38 UTC 2024 * generate library --------- Co-authored-by: JoeWang1127 <joewa@google.com>
1 parent b9df8d5 commit c7045aa

6 files changed

Lines changed: 53 additions & 39 deletions

File tree

‎java-firestore/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>libraries-bom</artifactId>
22-
<version>26.48.0</version>
22+
<version>26.49.0</version>
2323
<type>pom</type>
2424
<scope>import</scope>
2525
</dependency>
@@ -41,28 +41,28 @@ If you are using Maven without the BOM, add this to your dependencies:
4141
<dependency>
4242
<groupId>com.google.cloud</groupId>
4343
<artifactId>google-cloud-firestore</artifactId>
44-
<version>3.27.1</version>
44+
<version>3.27.3</version>
4545
</dependency>
4646

4747
```
4848

4949
If you are using Gradle 5.x or later, add this to your dependencies:
5050

5151
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.48.0')
52+
implementation platform('com.google.cloud:libraries-bom:26.49.0')
5353
5454
implementation 'com.google.cloud:google-cloud-firestore'
5555
```
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-firestore:3.27.2'
59+
implementation 'com.google.cloud:google-cloud-firestore:3.27.3'
6060
```
6161

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

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.27.2"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.27.3"
6666
```
6767

6868
## Authentication
@@ -219,7 +219,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
219219
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-firestore/java11.html
220220
[stability-image]: https://img.shields.io/badge/stability-stable-green
221221
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-firestore.svg
222-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.27.2
222+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.27.3
223223
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
224224
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
225225
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

‎java-firestore/generation_config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
gapic_generator_version: 2.48.0
2-
googleapis_commitish: 537fd482f6bb8afb3a146d9b21673a8eb27958bd
1+
gapic_generator_version: 2.49.0
2+
googleapis_commitish: 48d30c4966ef9ea31b897e13f75d8f94070cc8e9
33
libraries_bom_version: 26.49.0
44
libraries:
55
- api_shortname: firestore

‎java-firestore/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,24 @@
395395
"allDeclaredClasses": true,
396396
"allPublicClasses": true
397397
},
398+
{
399+
"name": "com.google.api.SelectiveGapicGeneration",
400+
"queryAllDeclaredConstructors": true,
401+
"queryAllPublicConstructors": true,
402+
"queryAllDeclaredMethods": true,
403+
"allPublicMethods": true,
404+
"allDeclaredClasses": true,
405+
"allPublicClasses": true
406+
},
407+
{
408+
"name": "com.google.api.SelectiveGapicGeneration$Builder",
409+
"queryAllDeclaredConstructors": true,
410+
"queryAllPublicConstructors": true,
411+
"queryAllDeclaredMethods": true,
412+
"allPublicMethods": true,
413+
"allDeclaredClasses": true,
414+
"allPublicClasses": true
415+
},
398416
{
399417
"name": "com.google.cloud.location.GetLocationRequest",
400418
"queryAllDeclaredConstructors": true,

‎java-firestore/google-cloud-firestore/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,24 @@
395395
"allDeclaredClasses": true,
396396
"allPublicClasses": true
397397
},
398+
{
399+
"name": "com.google.api.SelectiveGapicGeneration",
400+
"queryAllDeclaredConstructors": true,
401+
"queryAllPublicConstructors": true,
402+
"queryAllDeclaredMethods": true,
403+
"allPublicMethods": true,
404+
"allDeclaredClasses": true,
405+
"allPublicClasses": true
406+
},
407+
{
408+
"name": "com.google.api.SelectiveGapicGeneration$Builder",
409+
"queryAllDeclaredConstructors": true,
410+
"queryAllPublicConstructors": true,
411+
"queryAllDeclaredMethods": true,
412+
"allPublicMethods": true,
413+
"allDeclaredClasses": true,
414+
"allPublicClasses": true
415+
},
398416
{
399417
"name": "com.google.cloud.location.GetLocationRequest",
400418
"queryAllDeclaredConstructors": true,

‎java-firestore/samples/snippets/src/main/java/com/example/firestore/snippets/MultipleRangeInequalityFiltersSnippets.java‎

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,16 @@
1616

1717
package com.example.firestore.snippets;
1818

19-
import com.example.firestore.snippets.model.City;
2019
import com.google.api.core.ApiFuture;
21-
import com.google.api.core.ApiFutures;
2220
import com.google.cloud.firestore.CollectionReference;
23-
import com.google.cloud.firestore.DocumentSnapshot;
2421
import com.google.cloud.firestore.Firestore;
2522
import com.google.cloud.firestore.Query;
26-
import com.google.cloud.firestore.Query.Direction;
27-
import com.google.cloud.firestore.QueryDocumentSnapshot;
28-
import com.google.cloud.firestore.QuerySnapshot;
2923
import com.google.cloud.firestore.WriteResult;
30-
import java.util.ArrayList;
3124
import java.util.Arrays;
3225
import java.util.HashMap;
33-
import java.util.List;
3426
import java.util.Map;
35-
import java.util.concurrent.ExecutionException;
36-
import java.util.concurrent.TimeUnit;
37-
import java.util.concurrent.TimeoutException;
3827

39-
/**
40-
* Snippets to support firestore querying data documentation.
41-
*/
28+
/** Snippets to support firestore querying data documentation. */
4229
class MultipleRangeInequalityFiltersSnippets {
4330

4431
private final Firestore db;
@@ -47,9 +34,7 @@ class MultipleRangeInequalityFiltersSnippets {
4734
this.db = db;
4835
}
4936

50-
/**
51-
* Creates cities collection and add sample documents to test queries.
52-
*/
37+
/** Creates cities collection and add sample documents to test queries. */
5338
void prepareExamples() throws Exception {
5439
// Data for each city
5540
Map<String, Object> sfData = new HashMap<>();
@@ -109,8 +94,8 @@ void prepareExamples() throws Exception {
10994
System.out.println("Data added successfully!");
11095
}
11196

112-
private static void addCityDocument(CollectionReference citiesRef, String documentId,
113-
Map<String, Object> data) {
97+
private static void addCityDocument(
98+
CollectionReference citiesRef, String documentId, Map<String, Object> data) {
11499
ApiFuture<WriteResult> future = citiesRef.document(documentId).set(data);
115100
try {
116101
WriteResult result = future.get();
@@ -123,9 +108,10 @@ private static void addCityDocument(CollectionReference citiesRef, String docume
123108
/* Example of Query with range and inequality filters. */
124109
Query compoundMultiInequalities() {
125110
// [START firestore_query_filter_compound_multi_ineq]
126-
Query query = db.collection("cities")
127-
.whereGreaterThan("population", 1000000)
128-
.whereLessThan("density", 10000);
111+
Query query =
112+
db.collection("cities")
113+
.whereGreaterThan("population", 1000000)
114+
.whereLessThan("density", 10000);
129115
// [END firestore_query_filter_compound_multi_ineq]
130116
return query;
131117
}
@@ -141,9 +127,7 @@ void indexingConsiderations() {
141127
// [END firestore_query_indexing_considerations]
142128
}
143129

144-
/**
145-
* Closes the gRPC channels associated with this instance and frees up their resources.
146-
*/
130+
/** Closes the gRPC channels associated with this instance and frees up their resources. */
147131
void close() throws Exception {
148132
db.close();
149133
}

‎java-firestore/samples/snippets/src/test/java/com/example/firestore/snippets/MultipleRangeInequalityFiltersSnippetsIT.java‎

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

1919
import static com.google.common.collect.Sets.newHashSet;
2020
import static org.junit.Assert.assertEquals;
21-
import static org.junit.Assert.assertTrue;
2221

2322
import com.example.firestore.BaseIntegrationTest;
2423
import com.google.api.core.ApiFuture;
2524
import com.google.cloud.firestore.DocumentSnapshot;
2625
import com.google.cloud.firestore.Query;
27-
import com.google.cloud.firestore.QueryDocumentSnapshot;
2826
import com.google.cloud.firestore.QuerySnapshot;
29-
import com.google.common.collect.ImmutableMap;
3027
import java.util.ArrayList;
31-
import java.util.Arrays;
3228
import java.util.HashSet;
3329
import java.util.List;
34-
import java.util.Map;
35-
import java.util.Objects;
3630
import java.util.Set;
3731
import org.junit.AfterClass;
3832
import org.junit.BeforeClass;

0 commit comments

Comments
 (0)