Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 4c5a347

Browse files
chore: update gax-java dependency to 1.62 (#381)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/3f6ca683-ffe3-4731-b15d-91fc1937c0e0/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: googleapis/googleapis@0e91521
1 parent 495b177 commit 4c5a347

File tree

4 files changed

+46
-52
lines changed

4 files changed

+46
-52
lines changed

grpc-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceGrpc.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.documentai.v1beta1;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
22-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2419

2520
/**
2621
*
@@ -157,15 +152,16 @@ public abstract static class DocumentUnderstandingServiceImplBase
157152
public void batchProcessDocuments(
158153
com.google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest request,
159154
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
160-
asyncUnimplementedUnaryCall(getBatchProcessDocumentsMethod(), responseObserver);
155+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
156+
getBatchProcessDocumentsMethod(), responseObserver);
161157
}
162158

163159
@java.lang.Override
164160
public final io.grpc.ServerServiceDefinition bindService() {
165161
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
166162
.addMethod(
167163
getBatchProcessDocumentsMethod(),
168-
asyncUnaryCall(
164+
io.grpc.stub.ServerCalls.asyncUnaryCall(
169165
new MethodHandlers<
170166
com.google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest,
171167
com.google.longrunning.Operation>(this, METHODID_BATCH_PROCESS_DOCUMENTS)))
@@ -205,7 +201,7 @@ protected DocumentUnderstandingServiceStub build(
205201
public void batchProcessDocuments(
206202
com.google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest request,
207203
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
208-
asyncUnaryCall(
204+
io.grpc.stub.ClientCalls.asyncUnaryCall(
209205
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()),
210206
request,
211207
responseObserver);
@@ -243,7 +239,7 @@ protected DocumentUnderstandingServiceBlockingStub build(
243239
*/
244240
public com.google.longrunning.Operation batchProcessDocuments(
245241
com.google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest request) {
246-
return blockingUnaryCall(
242+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
247243
getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request);
248244
}
249245
}
@@ -280,7 +276,7 @@ protected DocumentUnderstandingServiceFutureStub build(
280276
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
281277
batchProcessDocuments(
282278
com.google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest request) {
283-
return futureUnaryCall(
279+
return io.grpc.stub.ClientCalls.futureUnaryCall(
284280
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request);
285281
}
286282
}

grpc-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceGrpc.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.documentai.v1beta2;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
22-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2419

2520
/**
2621
*
@@ -207,7 +202,8 @@ public abstract static class DocumentUnderstandingServiceImplBase
207202
public void batchProcessDocuments(
208203
com.google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest request,
209204
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
210-
asyncUnimplementedUnaryCall(getBatchProcessDocumentsMethod(), responseObserver);
205+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
206+
getBatchProcessDocumentsMethod(), responseObserver);
211207
}
212208

213209
/**
@@ -221,21 +217,22 @@ public void processDocument(
221217
com.google.cloud.documentai.v1beta2.ProcessDocumentRequest request,
222218
io.grpc.stub.StreamObserver<com.google.cloud.documentai.v1beta2.Document>
223219
responseObserver) {
224-
asyncUnimplementedUnaryCall(getProcessDocumentMethod(), responseObserver);
220+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
221+
getProcessDocumentMethod(), responseObserver);
225222
}
226223

227224
@java.lang.Override
228225
public final io.grpc.ServerServiceDefinition bindService() {
229226
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
230227
.addMethod(
231228
getBatchProcessDocumentsMethod(),
232-
asyncUnaryCall(
229+
io.grpc.stub.ServerCalls.asyncUnaryCall(
233230
new MethodHandlers<
234231
com.google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest,
235232
com.google.longrunning.Operation>(this, METHODID_BATCH_PROCESS_DOCUMENTS)))
236233
.addMethod(
237234
getProcessDocumentMethod(),
238-
asyncUnaryCall(
235+
io.grpc.stub.ServerCalls.asyncUnaryCall(
239236
new MethodHandlers<
240237
com.google.cloud.documentai.v1beta2.ProcessDocumentRequest,
241238
com.google.cloud.documentai.v1beta2.Document>(
@@ -277,7 +274,7 @@ protected DocumentUnderstandingServiceStub build(
277274
public void batchProcessDocuments(
278275
com.google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest request,
279276
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
280-
asyncUnaryCall(
277+
io.grpc.stub.ClientCalls.asyncUnaryCall(
281278
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()),
282279
request,
283280
responseObserver);
@@ -294,7 +291,7 @@ public void processDocument(
294291
com.google.cloud.documentai.v1beta2.ProcessDocumentRequest request,
295292
io.grpc.stub.StreamObserver<com.google.cloud.documentai.v1beta2.Document>
296293
responseObserver) {
297-
asyncUnaryCall(
294+
io.grpc.stub.ClientCalls.asyncUnaryCall(
298295
getChannel().newCall(getProcessDocumentMethod(), getCallOptions()),
299296
request,
300297
responseObserver);
@@ -333,7 +330,7 @@ protected DocumentUnderstandingServiceBlockingStub build(
333330
*/
334331
public com.google.longrunning.Operation batchProcessDocuments(
335332
com.google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest request) {
336-
return blockingUnaryCall(
333+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
337334
getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request);
338335
}
339336

@@ -346,7 +343,8 @@ public com.google.longrunning.Operation batchProcessDocuments(
346343
*/
347344
public com.google.cloud.documentai.v1beta2.Document processDocument(
348345
com.google.cloud.documentai.v1beta2.ProcessDocumentRequest request) {
349-
return blockingUnaryCall(getChannel(), getProcessDocumentMethod(), getCallOptions(), request);
346+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
347+
getChannel(), getProcessDocumentMethod(), getCallOptions(), request);
350348
}
351349
}
352350

@@ -383,7 +381,7 @@ protected DocumentUnderstandingServiceFutureStub build(
383381
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
384382
batchProcessDocuments(
385383
com.google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest request) {
386-
return futureUnaryCall(
384+
return io.grpc.stub.ClientCalls.futureUnaryCall(
387385
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request);
388386
}
389387

@@ -397,7 +395,7 @@ protected DocumentUnderstandingServiceFutureStub build(
397395
public com.google.common.util.concurrent.ListenableFuture<
398396
com.google.cloud.documentai.v1beta2.Document>
399397
processDocument(com.google.cloud.documentai.v1beta2.ProcessDocumentRequest request) {
400-
return futureUnaryCall(
398+
return io.grpc.stub.ClientCalls.futureUnaryCall(
401399
getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request);
402400
}
403401
}

grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.documentai.v1beta3;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
22-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2419

2520
/**
2621
*
@@ -253,7 +248,8 @@ public void processDocument(
253248
com.google.cloud.documentai.v1beta3.ProcessRequest request,
254249
io.grpc.stub.StreamObserver<com.google.cloud.documentai.v1beta3.ProcessResponse>
255250
responseObserver) {
256-
asyncUnimplementedUnaryCall(getProcessDocumentMethod(), responseObserver);
251+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
252+
getProcessDocumentMethod(), responseObserver);
257253
}
258254

259255
/**
@@ -267,7 +263,8 @@ public void processDocument(
267263
public void batchProcessDocuments(
268264
com.google.cloud.documentai.v1beta3.BatchProcessRequest request,
269265
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
270-
asyncUnimplementedUnaryCall(getBatchProcessDocumentsMethod(), responseObserver);
266+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
267+
getBatchProcessDocumentsMethod(), responseObserver);
271268
}
272269

273270
/**
@@ -281,28 +278,29 @@ public void batchProcessDocuments(
281278
public void reviewDocument(
282279
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request,
283280
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
284-
asyncUnimplementedUnaryCall(getReviewDocumentMethod(), responseObserver);
281+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
282+
getReviewDocumentMethod(), responseObserver);
285283
}
286284

287285
@java.lang.Override
288286
public final io.grpc.ServerServiceDefinition bindService() {
289287
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
290288
.addMethod(
291289
getProcessDocumentMethod(),
292-
asyncUnaryCall(
290+
io.grpc.stub.ServerCalls.asyncUnaryCall(
293291
new MethodHandlers<
294292
com.google.cloud.documentai.v1beta3.ProcessRequest,
295293
com.google.cloud.documentai.v1beta3.ProcessResponse>(
296294
this, METHODID_PROCESS_DOCUMENT)))
297295
.addMethod(
298296
getBatchProcessDocumentsMethod(),
299-
asyncUnaryCall(
297+
io.grpc.stub.ServerCalls.asyncUnaryCall(
300298
new MethodHandlers<
301299
com.google.cloud.documentai.v1beta3.BatchProcessRequest,
302300
com.google.longrunning.Operation>(this, METHODID_BATCH_PROCESS_DOCUMENTS)))
303301
.addMethod(
304302
getReviewDocumentMethod(),
305-
asyncUnaryCall(
303+
io.grpc.stub.ServerCalls.asyncUnaryCall(
306304
new MethodHandlers<
307305
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest,
308306
com.google.longrunning.Operation>(this, METHODID_REVIEW_DOCUMENT)))
@@ -343,7 +341,7 @@ public void processDocument(
343341
com.google.cloud.documentai.v1beta3.ProcessRequest request,
344342
io.grpc.stub.StreamObserver<com.google.cloud.documentai.v1beta3.ProcessResponse>
345343
responseObserver) {
346-
asyncUnaryCall(
344+
io.grpc.stub.ClientCalls.asyncUnaryCall(
347345
getChannel().newCall(getProcessDocumentMethod(), getCallOptions()),
348346
request,
349347
responseObserver);
@@ -360,7 +358,7 @@ public void processDocument(
360358
public void batchProcessDocuments(
361359
com.google.cloud.documentai.v1beta3.BatchProcessRequest request,
362360
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
363-
asyncUnaryCall(
361+
io.grpc.stub.ClientCalls.asyncUnaryCall(
364362
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()),
365363
request,
366364
responseObserver);
@@ -377,7 +375,7 @@ public void batchProcessDocuments(
377375
public void reviewDocument(
378376
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request,
379377
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
380-
asyncUnaryCall(
378+
io.grpc.stub.ClientCalls.asyncUnaryCall(
381379
getChannel().newCall(getReviewDocumentMethod(), getCallOptions()),
382380
request,
383381
responseObserver);
@@ -416,7 +414,8 @@ protected DocumentProcessorServiceBlockingStub build(
416414
*/
417415
public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument(
418416
com.google.cloud.documentai.v1beta3.ProcessRequest request) {
419-
return blockingUnaryCall(getChannel(), getProcessDocumentMethod(), getCallOptions(), request);
417+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
418+
getChannel(), getProcessDocumentMethod(), getCallOptions(), request);
420419
}
421420

422421
/**
@@ -429,7 +428,7 @@ public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument(
429428
*/
430429
public com.google.longrunning.Operation batchProcessDocuments(
431430
com.google.cloud.documentai.v1beta3.BatchProcessRequest request) {
432-
return blockingUnaryCall(
431+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
433432
getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request);
434433
}
435434

@@ -443,7 +442,8 @@ public com.google.longrunning.Operation batchProcessDocuments(
443442
*/
444443
public com.google.longrunning.Operation reviewDocument(
445444
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) {
446-
return blockingUnaryCall(getChannel(), getReviewDocumentMethod(), getCallOptions(), request);
445+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
446+
getChannel(), getReviewDocumentMethod(), getCallOptions(), request);
447447
}
448448
}
449449

@@ -480,7 +480,7 @@ protected DocumentProcessorServiceFutureStub build(
480480
public com.google.common.util.concurrent.ListenableFuture<
481481
com.google.cloud.documentai.v1beta3.ProcessResponse>
482482
processDocument(com.google.cloud.documentai.v1beta3.ProcessRequest request) {
483-
return futureUnaryCall(
483+
return io.grpc.stub.ClientCalls.futureUnaryCall(
484484
getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request);
485485
}
486486

@@ -494,7 +494,7 @@ protected DocumentProcessorServiceFutureStub build(
494494
*/
495495
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
496496
batchProcessDocuments(com.google.cloud.documentai.v1beta3.BatchProcessRequest request) {
497-
return futureUnaryCall(
497+
return io.grpc.stub.ClientCalls.futureUnaryCall(
498498
getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request);
499499
}
500500

@@ -508,7 +508,7 @@ protected DocumentProcessorServiceFutureStub build(
508508
*/
509509
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
510510
reviewDocument(com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) {
511-
return futureUnaryCall(
511+
return io.grpc.stub.ClientCalls.futureUnaryCall(
512512
getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request);
513513
}
514514
}

synth.metadata

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-document-ai.git",
7-
"sha": "52135656aa3decdc57ed15eb39ccfa79d5e755e0"
7+
"sha": "495b17716b7a580360902f4e9a1ff4dd0c6330c1"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "3befd26ca55723d3e8111909331eac1249837987",
15-
"internalRef": "360805639"
14+
"sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
15+
"internalRef": "361377784"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "3befd26ca55723d3e8111909331eac1249837987",
23-
"internalRef": "360805639"
22+
"sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
23+
"internalRef": "361377784"
2424
}
2525
},
2626
{
2727
"git": {
2828
"name": "googleapis",
2929
"remote": "https://github.com/googleapis/googleapis.git",
30-
"sha": "3befd26ca55723d3e8111909331eac1249837987",
31-
"internalRef": "360805639"
30+
"sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
31+
"internalRef": "361377784"
3232
}
3333
},
3434
{

0 commit comments

Comments
 (0)