1616package com .google .cloud .dialogflow .v2 ;
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 *
@@ -363,7 +358,8 @@ public void listContexts(
363358 com .google .cloud .dialogflow .v2 .ListContextsRequest request ,
364359 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .ListContextsResponse >
365360 responseObserver ) {
366- asyncUnimplementedUnaryCall (getListContextsMethod (), responseObserver );
361+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
362+ getListContextsMethod (), responseObserver );
367363 }
368364
369365 /**
@@ -376,7 +372,7 @@ public void listContexts(
376372 public void getContext (
377373 com .google .cloud .dialogflow .v2 .GetContextRequest request ,
378374 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
379- asyncUnimplementedUnaryCall (getGetContextMethod (), responseObserver );
375+ io . grpc . stub . ServerCalls . asyncUnimplementedUnaryCall (getGetContextMethod (), responseObserver );
380376 }
381377
382378 /**
@@ -390,7 +386,8 @@ public void getContext(
390386 public void createContext (
391387 com .google .cloud .dialogflow .v2 .CreateContextRequest request ,
392388 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
393- asyncUnimplementedUnaryCall (getCreateContextMethod (), responseObserver );
389+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
390+ getCreateContextMethod (), responseObserver );
394391 }
395392
396393 /**
@@ -403,7 +400,8 @@ public void createContext(
403400 public void updateContext (
404401 com .google .cloud .dialogflow .v2 .UpdateContextRequest request ,
405402 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
406- asyncUnimplementedUnaryCall (getUpdateContextMethod (), responseObserver );
403+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
404+ getUpdateContextMethod (), responseObserver );
407405 }
408406
409407 /**
@@ -416,7 +414,8 @@ public void updateContext(
416414 public void deleteContext (
417415 com .google .cloud .dialogflow .v2 .DeleteContextRequest request ,
418416 io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
419- asyncUnimplementedUnaryCall (getDeleteContextMethod (), responseObserver );
417+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
418+ getDeleteContextMethod (), responseObserver );
420419 }
421420
422421 /**
@@ -429,46 +428,47 @@ public void deleteContext(
429428 public void deleteAllContexts (
430429 com .google .cloud .dialogflow .v2 .DeleteAllContextsRequest request ,
431430 io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
432- asyncUnimplementedUnaryCall (getDeleteAllContextsMethod (), responseObserver );
431+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
432+ getDeleteAllContextsMethod (), responseObserver );
433433 }
434434
435435 @ java .lang .Override
436436 public final io .grpc .ServerServiceDefinition bindService () {
437437 return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
438438 .addMethod (
439439 getListContextsMethod (),
440- asyncUnaryCall (
440+ io . grpc . stub . ServerCalls . asyncUnaryCall (
441441 new MethodHandlers <
442442 com .google .cloud .dialogflow .v2 .ListContextsRequest ,
443443 com .google .cloud .dialogflow .v2 .ListContextsResponse >(
444444 this , METHODID_LIST_CONTEXTS )))
445445 .addMethod (
446446 getGetContextMethod (),
447- asyncUnaryCall (
447+ io . grpc . stub . ServerCalls . asyncUnaryCall (
448448 new MethodHandlers <
449449 com .google .cloud .dialogflow .v2 .GetContextRequest ,
450450 com .google .cloud .dialogflow .v2 .Context >(this , METHODID_GET_CONTEXT )))
451451 .addMethod (
452452 getCreateContextMethod (),
453- asyncUnaryCall (
453+ io . grpc . stub . ServerCalls . asyncUnaryCall (
454454 new MethodHandlers <
455455 com .google .cloud .dialogflow .v2 .CreateContextRequest ,
456456 com .google .cloud .dialogflow .v2 .Context >(this , METHODID_CREATE_CONTEXT )))
457457 .addMethod (
458458 getUpdateContextMethod (),
459- asyncUnaryCall (
459+ io . grpc . stub . ServerCalls . asyncUnaryCall (
460460 new MethodHandlers <
461461 com .google .cloud .dialogflow .v2 .UpdateContextRequest ,
462462 com .google .cloud .dialogflow .v2 .Context >(this , METHODID_UPDATE_CONTEXT )))
463463 .addMethod (
464464 getDeleteContextMethod (),
465- asyncUnaryCall (
465+ io . grpc . stub . ServerCalls . asyncUnaryCall (
466466 new MethodHandlers <
467467 com .google .cloud .dialogflow .v2 .DeleteContextRequest ,
468468 com .google .protobuf .Empty >(this , METHODID_DELETE_CONTEXT )))
469469 .addMethod (
470470 getDeleteAllContextsMethod (),
471- asyncUnaryCall (
471+ io . grpc . stub . ServerCalls . asyncUnaryCall (
472472 new MethodHandlers <
473473 com .google .cloud .dialogflow .v2 .DeleteAllContextsRequest ,
474474 com .google .protobuf .Empty >(this , METHODID_DELETE_ALL_CONTEXTS )))
@@ -504,7 +504,7 @@ public void listContexts(
504504 com .google .cloud .dialogflow .v2 .ListContextsRequest request ,
505505 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .ListContextsResponse >
506506 responseObserver ) {
507- asyncUnaryCall (
507+ io . grpc . stub . ClientCalls . asyncUnaryCall (
508508 getChannel ().newCall (getListContextsMethod (), getCallOptions ()),
509509 request ,
510510 responseObserver );
@@ -520,7 +520,7 @@ public void listContexts(
520520 public void getContext (
521521 com .google .cloud .dialogflow .v2 .GetContextRequest request ,
522522 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
523- asyncUnaryCall (
523+ io . grpc . stub . ClientCalls . asyncUnaryCall (
524524 getChannel ().newCall (getGetContextMethod (), getCallOptions ()), request , responseObserver );
525525 }
526526
@@ -535,7 +535,7 @@ public void getContext(
535535 public void createContext (
536536 com .google .cloud .dialogflow .v2 .CreateContextRequest request ,
537537 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
538- asyncUnaryCall (
538+ io . grpc . stub . ClientCalls . asyncUnaryCall (
539539 getChannel ().newCall (getCreateContextMethod (), getCallOptions ()),
540540 request ,
541541 responseObserver );
@@ -551,7 +551,7 @@ public void createContext(
551551 public void updateContext (
552552 com .google .cloud .dialogflow .v2 .UpdateContextRequest request ,
553553 io .grpc .stub .StreamObserver <com .google .cloud .dialogflow .v2 .Context > responseObserver ) {
554- asyncUnaryCall (
554+ io . grpc . stub . ClientCalls . asyncUnaryCall (
555555 getChannel ().newCall (getUpdateContextMethod (), getCallOptions ()),
556556 request ,
557557 responseObserver );
@@ -567,7 +567,7 @@ public void updateContext(
567567 public void deleteContext (
568568 com .google .cloud .dialogflow .v2 .DeleteContextRequest request ,
569569 io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
570- asyncUnaryCall (
570+ io . grpc . stub . ClientCalls . asyncUnaryCall (
571571 getChannel ().newCall (getDeleteContextMethod (), getCallOptions ()),
572572 request ,
573573 responseObserver );
@@ -583,7 +583,7 @@ public void deleteContext(
583583 public void deleteAllContexts (
584584 com .google .cloud .dialogflow .v2 .DeleteAllContextsRequest request ,
585585 io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
586- asyncUnaryCall (
586+ io . grpc . stub . ClientCalls . asyncUnaryCall (
587587 getChannel ().newCall (getDeleteAllContextsMethod (), getCallOptions ()),
588588 request ,
589589 responseObserver );
@@ -617,7 +617,8 @@ protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
617617 */
618618 public com .google .cloud .dialogflow .v2 .ListContextsResponse listContexts (
619619 com .google .cloud .dialogflow .v2 .ListContextsRequest request ) {
620- return blockingUnaryCall (getChannel (), getListContextsMethod (), getCallOptions (), request );
620+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
621+ getChannel (), getListContextsMethod (), getCallOptions (), request );
621622 }
622623
623624 /**
@@ -629,7 +630,8 @@ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(
629630 */
630631 public com .google .cloud .dialogflow .v2 .Context getContext (
631632 com .google .cloud .dialogflow .v2 .GetContextRequest request ) {
632- return blockingUnaryCall (getChannel (), getGetContextMethod (), getCallOptions (), request );
633+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
634+ getChannel (), getGetContextMethod (), getCallOptions (), request );
633635 }
634636
635637 /**
@@ -642,7 +644,8 @@ public com.google.cloud.dialogflow.v2.Context getContext(
642644 */
643645 public com .google .cloud .dialogflow .v2 .Context createContext (
644646 com .google .cloud .dialogflow .v2 .CreateContextRequest request ) {
645- return blockingUnaryCall (getChannel (), getCreateContextMethod (), getCallOptions (), request );
647+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
648+ getChannel (), getCreateContextMethod (), getCallOptions (), request );
646649 }
647650
648651 /**
@@ -654,7 +657,8 @@ public com.google.cloud.dialogflow.v2.Context createContext(
654657 */
655658 public com .google .cloud .dialogflow .v2 .Context updateContext (
656659 com .google .cloud .dialogflow .v2 .UpdateContextRequest request ) {
657- return blockingUnaryCall (getChannel (), getUpdateContextMethod (), getCallOptions (), request );
660+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
661+ getChannel (), getUpdateContextMethod (), getCallOptions (), request );
658662 }
659663
660664 /**
@@ -666,7 +670,8 @@ public com.google.cloud.dialogflow.v2.Context updateContext(
666670 */
667671 public com .google .protobuf .Empty deleteContext (
668672 com .google .cloud .dialogflow .v2 .DeleteContextRequest request ) {
669- return blockingUnaryCall (getChannel (), getDeleteContextMethod (), getCallOptions (), request );
673+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
674+ getChannel (), getDeleteContextMethod (), getCallOptions (), request );
670675 }
671676
672677 /**
@@ -678,7 +683,7 @@ public com.google.protobuf.Empty deleteContext(
678683 */
679684 public com .google .protobuf .Empty deleteAllContexts (
680685 com .google .cloud .dialogflow .v2 .DeleteAllContextsRequest request ) {
681- return blockingUnaryCall (
686+ return io . grpc . stub . ClientCalls . blockingUnaryCall (
682687 getChannel (), getDeleteAllContextsMethod (), getCallOptions (), request );
683688 }
684689 }
@@ -711,7 +716,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
711716 public com .google .common .util .concurrent .ListenableFuture <
712717 com .google .cloud .dialogflow .v2 .ListContextsResponse >
713718 listContexts (com .google .cloud .dialogflow .v2 .ListContextsRequest request ) {
714- return futureUnaryCall (
719+ return io . grpc . stub . ClientCalls . futureUnaryCall (
715720 getChannel ().newCall (getListContextsMethod (), getCallOptions ()), request );
716721 }
717722
@@ -725,7 +730,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
725730 public com .google .common .util .concurrent .ListenableFuture <
726731 com .google .cloud .dialogflow .v2 .Context >
727732 getContext (com .google .cloud .dialogflow .v2 .GetContextRequest request ) {
728- return futureUnaryCall (
733+ return io . grpc . stub . ClientCalls . futureUnaryCall (
729734 getChannel ().newCall (getGetContextMethod (), getCallOptions ()), request );
730735 }
731736
@@ -740,7 +745,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
740745 public com .google .common .util .concurrent .ListenableFuture <
741746 com .google .cloud .dialogflow .v2 .Context >
742747 createContext (com .google .cloud .dialogflow .v2 .CreateContextRequest request ) {
743- return futureUnaryCall (
748+ return io . grpc . stub . ClientCalls . futureUnaryCall (
744749 getChannel ().newCall (getCreateContextMethod (), getCallOptions ()), request );
745750 }
746751
@@ -754,7 +759,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
754759 public com .google .common .util .concurrent .ListenableFuture <
755760 com .google .cloud .dialogflow .v2 .Context >
756761 updateContext (com .google .cloud .dialogflow .v2 .UpdateContextRequest request ) {
757- return futureUnaryCall (
762+ return io . grpc . stub . ClientCalls . futureUnaryCall (
758763 getChannel ().newCall (getUpdateContextMethod (), getCallOptions ()), request );
759764 }
760765
@@ -767,7 +772,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
767772 */
768773 public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty >
769774 deleteContext (com .google .cloud .dialogflow .v2 .DeleteContextRequest request ) {
770- return futureUnaryCall (
775+ return io . grpc . stub . ClientCalls . futureUnaryCall (
771776 getChannel ().newCall (getDeleteContextMethod (), getCallOptions ()), request );
772777 }
773778
@@ -780,7 +785,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
780785 */
781786 public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty >
782787 deleteAllContexts (com .google .cloud .dialogflow .v2 .DeleteAllContextsRequest request ) {
783- return futureUnaryCall (
788+ return io . grpc . stub . ClientCalls . futureUnaryCall (
784789 getChannel ().newCall (getDeleteAllContextsMethod (), getCallOptions ()), request );
785790 }
786791 }
0 commit comments