Skip to content

Commit 2281320

Browse files
fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 (#1534)
* chore: Add FindNearest API to the preview branch docs: Improve the documentation on Document.fields PiperOrigin-RevId: 599602467 Source-Link: googleapis/googleapis@d32bd97 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0545ffc488b82d3a4771118c923d64cd0b759953 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDU0NWZmYzQ4OGI4MmQzYTQ3NzExMThjOTIzZDY0Y2QwYjc1OTk1MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: googleapis/googleapis@17e6661 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 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>
1 parent be2f5fe commit 2281320

File tree

9 files changed

+395
-337
lines changed

9 files changed

+395
-337
lines changed

google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java

Lines changed: 78 additions & 77 deletions
Large diffs are not rendered by default.

google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,15 @@ public FirestoreAdminStub createStub() throws IOException {
403403
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
404404
}
405405

406+
/** Returns the endpoint set by the user or the the service's default endpoint. */
407+
@Override
408+
public String getEndpoint() {
409+
if (super.getEndpoint() != null) {
410+
return super.getEndpoint();
411+
}
412+
return getDefaultEndpoint();
413+
}
414+
406415
/** Returns the default service name. */
407416
@Override
408417
public String getServiceName() {
@@ -713,7 +722,6 @@ private static Builder createDefault() {
713722
builder.setTransportChannelProvider(defaultTransportChannelProvider());
714723
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
715724
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
716-
builder.setEndpoint(getDefaultEndpoint());
717725
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
718726
builder.setSwitchToMtlsEndpointAllowed(true);
719727

@@ -726,7 +734,6 @@ private static Builder createHttpJsonDefault() {
726734
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
727735
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
728736
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
729-
builder.setEndpoint(getDefaultEndpoint());
730737
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
731738
builder.setSwitchToMtlsEndpointAllowed(true);
732739

@@ -1119,6 +1126,15 @@ public UnaryCallSettings.Builder<DeleteDatabaseRequest, Operation> deleteDatabas
11191126
return deleteDatabaseOperationSettings;
11201127
}
11211128

1129+
/** Returns the endpoint set by the user or the the service's default endpoint. */
1130+
@Override
1131+
public String getEndpoint() {
1132+
if (super.getEndpoint() != null) {
1133+
return super.getEndpoint();
1134+
}
1135+
return getDefaultEndpoint();
1136+
}
1137+
11221138
@Override
11231139
public FirestoreAdminStubSettings build() throws IOException {
11241140
return new FirestoreAdminStubSettings(this);

google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -105,240 +105,241 @@
105105
* <th>Method</th>
106106
* <th>Description</th>
107107
* <th>Method Variants</th>
108+
* </tr>
108109
* <tr>
109-
* <td>GetDocument</td>
110+
* <td><p> GetDocument</td>
110111
* <td><p> Gets a single document.</td>
111112
* <td>
112113
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
113114
* <ul>
114-
* <li>getDocument(GetDocumentRequest request)
115+
* <li><p> getDocument(GetDocumentRequest request)
115116
* </ul>
116117
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
117118
* <ul>
118-
* <li>getDocumentCallable()
119+
* <li><p> getDocumentCallable()
119120
* </ul>
120121
* </td>
121122
* </tr>
122123
* <tr>
123-
* <td>ListDocuments</td>
124+
* <td><p> ListDocuments</td>
124125
* <td><p> Lists documents.</td>
125126
* <td>
126127
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
127128
* <ul>
128-
* <li>listDocuments(ListDocumentsRequest request)
129+
* <li><p> listDocuments(ListDocumentsRequest request)
129130
* </ul>
130131
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
131132
* <ul>
132-
* <li>listDocumentsPagedCallable()
133-
* <li>listDocumentsCallable()
133+
* <li><p> listDocumentsPagedCallable()
134+
* <li><p> listDocumentsCallable()
134135
* </ul>
135136
* </td>
136137
* </tr>
137138
* <tr>
138-
* <td>UpdateDocument</td>
139+
* <td><p> UpdateDocument</td>
139140
* <td><p> Updates or inserts a document.</td>
140141
* <td>
141142
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
142143
* <ul>
143-
* <li>updateDocument(UpdateDocumentRequest request)
144+
* <li><p> updateDocument(UpdateDocumentRequest request)
144145
* </ul>
145146
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
146147
* <ul>
147-
* <li>updateDocument(Document document, DocumentMask updateMask)
148+
* <li><p> updateDocument(Document document, DocumentMask updateMask)
148149
* </ul>
149150
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
150151
* <ul>
151-
* <li>updateDocumentCallable()
152+
* <li><p> updateDocumentCallable()
152153
* </ul>
153154
* </td>
154155
* </tr>
155156
* <tr>
156-
* <td>DeleteDocument</td>
157+
* <td><p> DeleteDocument</td>
157158
* <td><p> Deletes a document.</td>
158159
* <td>
159160
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
160161
* <ul>
161-
* <li>deleteDocument(DeleteDocumentRequest request)
162+
* <li><p> deleteDocument(DeleteDocumentRequest request)
162163
* </ul>
163164
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
164165
* <ul>
165-
* <li>deleteDocument(String name)
166+
* <li><p> deleteDocument(String name)
166167
* </ul>
167168
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
168169
* <ul>
169-
* <li>deleteDocumentCallable()
170+
* <li><p> deleteDocumentCallable()
170171
* </ul>
171172
* </td>
172173
* </tr>
173174
* <tr>
174-
* <td>BatchGetDocuments</td>
175+
* <td><p> BatchGetDocuments</td>
175176
* <td><p> Gets multiple documents.
176177
* <p> Documents returned by this method are not guaranteed to be returned in the same order that they were requested.</td>
177178
* <td>
178179
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
179180
* <ul>
180-
* <li>batchGetDocumentsCallable()
181+
* <li><p> batchGetDocumentsCallable()
181182
* </ul>
182183
* </td>
183184
* </tr>
184185
* <tr>
185-
* <td>BeginTransaction</td>
186+
* <td><p> BeginTransaction</td>
186187
* <td><p> Starts a new transaction.</td>
187188
* <td>
188189
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
189190
* <ul>
190-
* <li>beginTransaction(BeginTransactionRequest request)
191+
* <li><p> beginTransaction(BeginTransactionRequest request)
191192
* </ul>
192193
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
193194
* <ul>
194-
* <li>beginTransaction(String database)
195+
* <li><p> beginTransaction(String database)
195196
* </ul>
196197
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
197198
* <ul>
198-
* <li>beginTransactionCallable()
199+
* <li><p> beginTransactionCallable()
199200
* </ul>
200201
* </td>
201202
* </tr>
202203
* <tr>
203-
* <td>Commit</td>
204+
* <td><p> Commit</td>
204205
* <td><p> Commits a transaction, while optionally updating documents.</td>
205206
* <td>
206207
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
207208
* <ul>
208-
* <li>commit(CommitRequest request)
209+
* <li><p> commit(CommitRequest request)
209210
* </ul>
210211
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
211212
* <ul>
212-
* <li>commit(String database, List&lt;Write&gt; writes)
213+
* <li><p> commit(String database, List&lt;Write&gt; writes)
213214
* </ul>
214215
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
215216
* <ul>
216-
* <li>commitCallable()
217+
* <li><p> commitCallable()
217218
* </ul>
218219
* </td>
219220
* </tr>
220221
* <tr>
221-
* <td>Rollback</td>
222+
* <td><p> Rollback</td>
222223
* <td><p> Rolls back a transaction.</td>
223224
* <td>
224225
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
225226
* <ul>
226-
* <li>rollback(RollbackRequest request)
227+
* <li><p> rollback(RollbackRequest request)
227228
* </ul>
228229
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
229230
* <ul>
230-
* <li>rollback(String database, ByteString transaction)
231+
* <li><p> rollback(String database, ByteString transaction)
231232
* </ul>
232233
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
233234
* <ul>
234-
* <li>rollbackCallable()
235+
* <li><p> rollbackCallable()
235236
* </ul>
236237
* </td>
237238
* </tr>
238239
* <tr>
239-
* <td>RunQuery</td>
240+
* <td><p> RunQuery</td>
240241
* <td><p> Runs a query.</td>
241242
* <td>
242243
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
243244
* <ul>
244-
* <li>runQueryCallable()
245+
* <li><p> runQueryCallable()
245246
* </ul>
246247
* </td>
247248
* </tr>
248249
* <tr>
249-
* <td>RunAggregationQuery</td>
250+
* <td><p> RunAggregationQuery</td>
250251
* <td><p> Runs an aggregation query.
251252
* <p> 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.
252253
* <p> High-Level Example:
253254
* <p> ``` -- Return the number of documents in table given a filter. SELECT COUNT(&#42;) FROM ( SELECT &#42; FROM k where a = true ); ```</td>
254255
* <td>
255256
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
256257
* <ul>
257-
* <li>runAggregationQueryCallable()
258+
* <li><p> runAggregationQueryCallable()
258259
* </ul>
259260
* </td>
260261
* </tr>
261262
* <tr>
262-
* <td>PartitionQuery</td>
263+
* <td><p> PartitionQuery</td>
263264
* <td><p> Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting/end points for the query results.</td>
264265
* <td>
265266
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
266267
* <ul>
267-
* <li>partitionQuery(PartitionQueryRequest request)
268+
* <li><p> partitionQuery(PartitionQueryRequest request)
268269
* </ul>
269270
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
270271
* <ul>
271-
* <li>partitionQueryPagedCallable()
272-
* <li>partitionQueryCallable()
272+
* <li><p> partitionQueryPagedCallable()
273+
* <li><p> partitionQueryCallable()
273274
* </ul>
274275
* </td>
275276
* </tr>
276277
* <tr>
277-
* <td>Write</td>
278+
* <td><p> Write</td>
278279
* <td><p> Streams batches of document updates and deletes, in order. This method is only available via gRPC or WebChannel (not REST).</td>
279280
* <td>
280281
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
281282
* <ul>
282-
* <li>writeCallable()
283+
* <li><p> writeCallable()
283284
* </ul>
284285
* </td>
285286
* </tr>
286287
* <tr>
287-
* <td>Listen</td>
288+
* <td><p> Listen</td>
288289
* <td><p> Listens to changes. This method is only available via gRPC or WebChannel (not REST).</td>
289290
* <td>
290291
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
291292
* <ul>
292-
* <li>listenCallable()
293+
* <li><p> listenCallable()
293294
* </ul>
294295
* </td>
295296
* </tr>
296297
* <tr>
297-
* <td>ListCollectionIds</td>
298+
* <td><p> ListCollectionIds</td>
298299
* <td><p> Lists all the collection IDs underneath a document.</td>
299300
* <td>
300301
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
301302
* <ul>
302-
* <li>listCollectionIds(ListCollectionIdsRequest request)
303+
* <li><p> listCollectionIds(ListCollectionIdsRequest request)
303304
* </ul>
304305
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
305306
* <ul>
306-
* <li>listCollectionIds(String parent)
307+
* <li><p> listCollectionIds(String parent)
307308
* </ul>
308309
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
309310
* <ul>
310-
* <li>listCollectionIdsPagedCallable()
311-
* <li>listCollectionIdsCallable()
311+
* <li><p> listCollectionIdsPagedCallable()
312+
* <li><p> listCollectionIdsCallable()
312313
* </ul>
313314
* </td>
314315
* </tr>
315316
* <tr>
316-
* <td>BatchWrite</td>
317+
* <td><p> BatchWrite</td>
317318
* <td><p> Applies a batch of write operations.
318319
* <p> 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.
319320
* <p> If you require an atomically applied set of writes, use [Commit][google.firestore.v1.Firestore.Commit] instead.</td>
320321
* <td>
321322
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
322323
* <ul>
323-
* <li>batchWrite(BatchWriteRequest request)
324+
* <li><p> batchWrite(BatchWriteRequest request)
324325
* </ul>
325326
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
326327
* <ul>
327-
* <li>batchWriteCallable()
328+
* <li><p> batchWriteCallable()
328329
* </ul>
329330
* </td>
330331
* </tr>
331332
* <tr>
332-
* <td>CreateDocument</td>
333+
* <td><p> CreateDocument</td>
333334
* <td><p> Creates a new document.</td>
334335
* <td>
335336
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
336337
* <ul>
337-
* <li>createDocument(CreateDocumentRequest request)
338+
* <li><p> createDocument(CreateDocumentRequest request)
338339
* </ul>
339340
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
340341
* <ul>
341-
* <li>createDocumentCallable()
342+
* <li><p> createDocumentCallable()
342343
* </ul>
343344
* </td>
344345
* </tr>

google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,15 @@ public FirestoreStub createStub() throws IOException {
426426
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
427427
}
428428

429+
/** Returns the endpoint set by the user or the the service's default endpoint. */
430+
@Override
431+
public String getEndpoint() {
432+
if (super.getEndpoint() != null) {
433+
return super.getEndpoint();
434+
}
435+
return getDefaultEndpoint();
436+
}
437+
429438
/** Returns the default service name. */
430439
@Override
431440
public String getServiceName() {
@@ -769,7 +778,6 @@ private static Builder createDefault() {
769778
builder.setTransportChannelProvider(defaultTransportChannelProvider());
770779
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
771780
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
772-
builder.setEndpoint(getDefaultEndpoint());
773781
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
774782
builder.setSwitchToMtlsEndpointAllowed(true);
775783

@@ -782,7 +790,6 @@ private static Builder createHttpJsonDefault() {
782790
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
783791
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
784792
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
785-
builder.setEndpoint(getDefaultEndpoint());
786793
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
787794
builder.setSwitchToMtlsEndpointAllowed(true);
788795

@@ -969,6 +976,15 @@ public UnaryCallSettings.Builder<CreateDocumentRequest, Document> createDocument
969976
return createDocumentSettings;
970977
}
971978

979+
/** Returns the endpoint set by the user or the the service's default endpoint. */
980+
@Override
981+
public String getEndpoint() {
982+
if (super.getEndpoint() != null) {
983+
return super.getEndpoint();
984+
}
985+
return getDefaultEndpoint();
986+
}
987+
972988
@Override
973989
public FirestoreStubSettings build() throws IOException {
974990
return new FirestoreStubSettings(this);

0 commit comments

Comments
 (0)