16
16
package com .google .cloud .documentai .v1beta3 ;
17
17
18
18
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 ;
24
19
25
20
/**
26
21
*
@@ -253,7 +248,8 @@ public void processDocument(
253
248
com .google .cloud .documentai .v1beta3 .ProcessRequest request ,
254
249
io .grpc .stub .StreamObserver <com .google .cloud .documentai .v1beta3 .ProcessResponse >
255
250
responseObserver ) {
256
- asyncUnimplementedUnaryCall (getProcessDocumentMethod (), responseObserver );
251
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
252
+ getProcessDocumentMethod (), responseObserver );
257
253
}
258
254
259
255
/**
@@ -267,7 +263,8 @@ public void processDocument(
267
263
public void batchProcessDocuments (
268
264
com .google .cloud .documentai .v1beta3 .BatchProcessRequest request ,
269
265
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
270
- asyncUnimplementedUnaryCall (getBatchProcessDocumentsMethod (), responseObserver );
266
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
267
+ getBatchProcessDocumentsMethod (), responseObserver );
271
268
}
272
269
273
270
/**
@@ -281,28 +278,29 @@ public void batchProcessDocuments(
281
278
public void reviewDocument (
282
279
com .google .cloud .documentai .v1beta3 .ReviewDocumentRequest request ,
283
280
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
284
- asyncUnimplementedUnaryCall (getReviewDocumentMethod (), responseObserver );
281
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
282
+ getReviewDocumentMethod (), responseObserver );
285
283
}
286
284
287
285
@ java .lang .Override
288
286
public final io .grpc .ServerServiceDefinition bindService () {
289
287
return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
290
288
.addMethod (
291
289
getProcessDocumentMethod (),
292
- asyncUnaryCall (
290
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
293
291
new MethodHandlers <
294
292
com .google .cloud .documentai .v1beta3 .ProcessRequest ,
295
293
com .google .cloud .documentai .v1beta3 .ProcessResponse >(
296
294
this , METHODID_PROCESS_DOCUMENT )))
297
295
.addMethod (
298
296
getBatchProcessDocumentsMethod (),
299
- asyncUnaryCall (
297
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
300
298
new MethodHandlers <
301
299
com .google .cloud .documentai .v1beta3 .BatchProcessRequest ,
302
300
com .google .longrunning .Operation >(this , METHODID_BATCH_PROCESS_DOCUMENTS )))
303
301
.addMethod (
304
302
getReviewDocumentMethod (),
305
- asyncUnaryCall (
303
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
306
304
new MethodHandlers <
307
305
com .google .cloud .documentai .v1beta3 .ReviewDocumentRequest ,
308
306
com .google .longrunning .Operation >(this , METHODID_REVIEW_DOCUMENT )))
@@ -343,7 +341,7 @@ public void processDocument(
343
341
com .google .cloud .documentai .v1beta3 .ProcessRequest request ,
344
342
io .grpc .stub .StreamObserver <com .google .cloud .documentai .v1beta3 .ProcessResponse >
345
343
responseObserver ) {
346
- asyncUnaryCall (
344
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
347
345
getChannel ().newCall (getProcessDocumentMethod (), getCallOptions ()),
348
346
request ,
349
347
responseObserver );
@@ -360,7 +358,7 @@ public void processDocument(
360
358
public void batchProcessDocuments (
361
359
com .google .cloud .documentai .v1beta3 .BatchProcessRequest request ,
362
360
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
363
- asyncUnaryCall (
361
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
364
362
getChannel ().newCall (getBatchProcessDocumentsMethod (), getCallOptions ()),
365
363
request ,
366
364
responseObserver );
@@ -377,7 +375,7 @@ public void batchProcessDocuments(
377
375
public void reviewDocument (
378
376
com .google .cloud .documentai .v1beta3 .ReviewDocumentRequest request ,
379
377
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
380
- asyncUnaryCall (
378
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
381
379
getChannel ().newCall (getReviewDocumentMethod (), getCallOptions ()),
382
380
request ,
383
381
responseObserver );
@@ -416,7 +414,8 @@ protected DocumentProcessorServiceBlockingStub build(
416
414
*/
417
415
public com .google .cloud .documentai .v1beta3 .ProcessResponse processDocument (
418
416
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 );
420
419
}
421
420
422
421
/**
@@ -429,7 +428,7 @@ public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument(
429
428
*/
430
429
public com .google .longrunning .Operation batchProcessDocuments (
431
430
com .google .cloud .documentai .v1beta3 .BatchProcessRequest request ) {
432
- return blockingUnaryCall (
431
+ return io . grpc . stub . ClientCalls . blockingUnaryCall (
433
432
getChannel (), getBatchProcessDocumentsMethod (), getCallOptions (), request );
434
433
}
435
434
@@ -443,7 +442,8 @@ public com.google.longrunning.Operation batchProcessDocuments(
443
442
*/
444
443
public com .google .longrunning .Operation reviewDocument (
445
444
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 );
447
447
}
448
448
}
449
449
@@ -480,7 +480,7 @@ protected DocumentProcessorServiceFutureStub build(
480
480
public com .google .common .util .concurrent .ListenableFuture <
481
481
com .google .cloud .documentai .v1beta3 .ProcessResponse >
482
482
processDocument (com .google .cloud .documentai .v1beta3 .ProcessRequest request ) {
483
- return futureUnaryCall (
483
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
484
484
getChannel ().newCall (getProcessDocumentMethod (), getCallOptions ()), request );
485
485
}
486
486
@@ -494,7 +494,7 @@ protected DocumentProcessorServiceFutureStub build(
494
494
*/
495
495
public com .google .common .util .concurrent .ListenableFuture <com .google .longrunning .Operation >
496
496
batchProcessDocuments (com .google .cloud .documentai .v1beta3 .BatchProcessRequest request ) {
497
- return futureUnaryCall (
497
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
498
498
getChannel ().newCall (getBatchProcessDocumentsMethod (), getCallOptions ()), request );
499
499
}
500
500
@@ -508,7 +508,7 @@ protected DocumentProcessorServiceFutureStub build(
508
508
*/
509
509
public com .google .common .util .concurrent .ListenableFuture <com .google .longrunning .Operation >
510
510
reviewDocument (com .google .cloud .documentai .v1beta3 .ReviewDocumentRequest request ) {
511
- return futureUnaryCall (
511
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
512
512
getChannel ().newCall (getReviewDocumentMethod (), getCallOptions ()), request );
513
513
}
514
514
}
0 commit comments