1616package com .google .cloud .documentai .v1beta3 ;
1717
1818import 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 }
0 commit comments