16
16
package com .google .cloud .translate .v3 ;
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
*
@@ -467,7 +462,8 @@ public void translateText(
467
462
com .google .cloud .translate .v3 .TranslateTextRequest request ,
468
463
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .TranslateTextResponse >
469
464
responseObserver ) {
470
- asyncUnimplementedUnaryCall (getTranslateTextMethod (), responseObserver );
465
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
466
+ getTranslateTextMethod (), responseObserver );
471
467
}
472
468
473
469
/**
@@ -481,7 +477,8 @@ public void detectLanguage(
481
477
com .google .cloud .translate .v3 .DetectLanguageRequest request ,
482
478
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .DetectLanguageResponse >
483
479
responseObserver ) {
484
- asyncUnimplementedUnaryCall (getDetectLanguageMethod (), responseObserver );
480
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
481
+ getDetectLanguageMethod (), responseObserver );
485
482
}
486
483
487
484
/**
@@ -495,7 +492,8 @@ public void getSupportedLanguages(
495
492
com .google .cloud .translate .v3 .GetSupportedLanguagesRequest request ,
496
493
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .SupportedLanguages >
497
494
responseObserver ) {
498
- asyncUnimplementedUnaryCall (getGetSupportedLanguagesMethod (), responseObserver );
495
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
496
+ getGetSupportedLanguagesMethod (), responseObserver );
499
497
}
500
498
501
499
/**
@@ -513,7 +511,8 @@ public void getSupportedLanguages(
513
511
public void batchTranslateText (
514
512
com .google .cloud .translate .v3 .BatchTranslateTextRequest request ,
515
513
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
516
- asyncUnimplementedUnaryCall (getBatchTranslateTextMethod (), responseObserver );
514
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
515
+ getBatchTranslateTextMethod (), responseObserver );
517
516
}
518
517
519
518
/**
@@ -527,7 +526,8 @@ public void batchTranslateText(
527
526
public void createGlossary (
528
527
com .google .cloud .translate .v3 .CreateGlossaryRequest request ,
529
528
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
530
- asyncUnimplementedUnaryCall (getCreateGlossaryMethod (), responseObserver );
529
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
530
+ getCreateGlossaryMethod (), responseObserver );
531
531
}
532
532
533
533
/**
@@ -542,7 +542,8 @@ public void listGlossaries(
542
542
com .google .cloud .translate .v3 .ListGlossariesRequest request ,
543
543
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .ListGlossariesResponse >
544
544
responseObserver ) {
545
- asyncUnimplementedUnaryCall (getListGlossariesMethod (), responseObserver );
545
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
546
+ getListGlossariesMethod (), responseObserver );
546
547
}
547
548
548
549
/**
@@ -556,7 +557,8 @@ public void listGlossaries(
556
557
public void getGlossary (
557
558
com .google .cloud .translate .v3 .GetGlossaryRequest request ,
558
559
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .Glossary > responseObserver ) {
559
- asyncUnimplementedUnaryCall (getGetGlossaryMethod (), responseObserver );
560
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
561
+ getGetGlossaryMethod (), responseObserver );
560
562
}
561
563
562
564
/**
@@ -571,61 +573,62 @@ public void getGlossary(
571
573
public void deleteGlossary (
572
574
com .google .cloud .translate .v3 .DeleteGlossaryRequest request ,
573
575
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
574
- asyncUnimplementedUnaryCall (getDeleteGlossaryMethod (), responseObserver );
576
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
577
+ getDeleteGlossaryMethod (), responseObserver );
575
578
}
576
579
577
580
@ java .lang .Override
578
581
public final io .grpc .ServerServiceDefinition bindService () {
579
582
return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
580
583
.addMethod (
581
584
getTranslateTextMethod (),
582
- asyncUnaryCall (
585
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
583
586
new MethodHandlers <
584
587
com .google .cloud .translate .v3 .TranslateTextRequest ,
585
588
com .google .cloud .translate .v3 .TranslateTextResponse >(
586
589
this , METHODID_TRANSLATE_TEXT )))
587
590
.addMethod (
588
591
getDetectLanguageMethod (),
589
- asyncUnaryCall (
592
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
590
593
new MethodHandlers <
591
594
com .google .cloud .translate .v3 .DetectLanguageRequest ,
592
595
com .google .cloud .translate .v3 .DetectLanguageResponse >(
593
596
this , METHODID_DETECT_LANGUAGE )))
594
597
.addMethod (
595
598
getGetSupportedLanguagesMethod (),
596
- asyncUnaryCall (
599
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
597
600
new MethodHandlers <
598
601
com .google .cloud .translate .v3 .GetSupportedLanguagesRequest ,
599
602
com .google .cloud .translate .v3 .SupportedLanguages >(
600
603
this , METHODID_GET_SUPPORTED_LANGUAGES )))
601
604
.addMethod (
602
605
getBatchTranslateTextMethod (),
603
- asyncUnaryCall (
606
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
604
607
new MethodHandlers <
605
608
com .google .cloud .translate .v3 .BatchTranslateTextRequest ,
606
609
com .google .longrunning .Operation >(this , METHODID_BATCH_TRANSLATE_TEXT )))
607
610
.addMethod (
608
611
getCreateGlossaryMethod (),
609
- asyncUnaryCall (
612
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
610
613
new MethodHandlers <
611
614
com .google .cloud .translate .v3 .CreateGlossaryRequest ,
612
615
com .google .longrunning .Operation >(this , METHODID_CREATE_GLOSSARY )))
613
616
.addMethod (
614
617
getListGlossariesMethod (),
615
- asyncUnaryCall (
618
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
616
619
new MethodHandlers <
617
620
com .google .cloud .translate .v3 .ListGlossariesRequest ,
618
621
com .google .cloud .translate .v3 .ListGlossariesResponse >(
619
622
this , METHODID_LIST_GLOSSARIES )))
620
623
.addMethod (
621
624
getGetGlossaryMethod (),
622
- asyncUnaryCall (
625
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
623
626
new MethodHandlers <
624
627
com .google .cloud .translate .v3 .GetGlossaryRequest ,
625
628
com .google .cloud .translate .v3 .Glossary >(this , METHODID_GET_GLOSSARY )))
626
629
.addMethod (
627
630
getDeleteGlossaryMethod (),
628
- asyncUnaryCall (
631
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
629
632
new MethodHandlers <
630
633
com .google .cloud .translate .v3 .DeleteGlossaryRequest ,
631
634
com .google .longrunning .Operation >(this , METHODID_DELETE_GLOSSARY )))
@@ -663,7 +666,7 @@ public void translateText(
663
666
com .google .cloud .translate .v3 .TranslateTextRequest request ,
664
667
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .TranslateTextResponse >
665
668
responseObserver ) {
666
- asyncUnaryCall (
669
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
667
670
getChannel ().newCall (getTranslateTextMethod (), getCallOptions ()),
668
671
request ,
669
672
responseObserver );
@@ -680,7 +683,7 @@ public void detectLanguage(
680
683
com .google .cloud .translate .v3 .DetectLanguageRequest request ,
681
684
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .DetectLanguageResponse >
682
685
responseObserver ) {
683
- asyncUnaryCall (
686
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
684
687
getChannel ().newCall (getDetectLanguageMethod (), getCallOptions ()),
685
688
request ,
686
689
responseObserver );
@@ -697,7 +700,7 @@ public void getSupportedLanguages(
697
700
com .google .cloud .translate .v3 .GetSupportedLanguagesRequest request ,
698
701
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .SupportedLanguages >
699
702
responseObserver ) {
700
- asyncUnaryCall (
703
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
701
704
getChannel ().newCall (getGetSupportedLanguagesMethod (), getCallOptions ()),
702
705
request ,
703
706
responseObserver );
@@ -718,7 +721,7 @@ public void getSupportedLanguages(
718
721
public void batchTranslateText (
719
722
com .google .cloud .translate .v3 .BatchTranslateTextRequest request ,
720
723
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
721
- asyncUnaryCall (
724
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
722
725
getChannel ().newCall (getBatchTranslateTextMethod (), getCallOptions ()),
723
726
request ,
724
727
responseObserver );
@@ -735,7 +738,7 @@ public void batchTranslateText(
735
738
public void createGlossary (
736
739
com .google .cloud .translate .v3 .CreateGlossaryRequest request ,
737
740
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
738
- asyncUnaryCall (
741
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
739
742
getChannel ().newCall (getCreateGlossaryMethod (), getCallOptions ()),
740
743
request ,
741
744
responseObserver );
@@ -753,7 +756,7 @@ public void listGlossaries(
753
756
com .google .cloud .translate .v3 .ListGlossariesRequest request ,
754
757
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .ListGlossariesResponse >
755
758
responseObserver ) {
756
- asyncUnaryCall (
759
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
757
760
getChannel ().newCall (getListGlossariesMethod (), getCallOptions ()),
758
761
request ,
759
762
responseObserver );
@@ -770,7 +773,7 @@ public void listGlossaries(
770
773
public void getGlossary (
771
774
com .google .cloud .translate .v3 .GetGlossaryRequest request ,
772
775
io .grpc .stub .StreamObserver <com .google .cloud .translate .v3 .Glossary > responseObserver ) {
773
- asyncUnaryCall (
776
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
774
777
getChannel ().newCall (getGetGlossaryMethod (), getCallOptions ()),
775
778
request ,
776
779
responseObserver );
@@ -788,7 +791,7 @@ public void getGlossary(
788
791
public void deleteGlossary (
789
792
com .google .cloud .translate .v3 .DeleteGlossaryRequest request ,
790
793
io .grpc .stub .StreamObserver <com .google .longrunning .Operation > responseObserver ) {
791
- asyncUnaryCall (
794
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
792
795
getChannel ().newCall (getDeleteGlossaryMethod (), getCallOptions ()),
793
796
request ,
794
797
responseObserver );
@@ -824,7 +827,8 @@ protected TranslationServiceBlockingStub build(
824
827
*/
825
828
public com .google .cloud .translate .v3 .TranslateTextResponse translateText (
826
829
com .google .cloud .translate .v3 .TranslateTextRequest request ) {
827
- return blockingUnaryCall (getChannel (), getTranslateTextMethod (), getCallOptions (), request );
830
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
831
+ getChannel (), getTranslateTextMethod (), getCallOptions (), request );
828
832
}
829
833
830
834
/**
@@ -836,7 +840,8 @@ public com.google.cloud.translate.v3.TranslateTextResponse translateText(
836
840
*/
837
841
public com .google .cloud .translate .v3 .DetectLanguageResponse detectLanguage (
838
842
com .google .cloud .translate .v3 .DetectLanguageRequest request ) {
839
- return blockingUnaryCall (getChannel (), getDetectLanguageMethod (), getCallOptions (), request );
843
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
844
+ getChannel (), getDetectLanguageMethod (), getCallOptions (), request );
840
845
}
841
846
842
847
/**
@@ -848,7 +853,7 @@ public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(
848
853
*/
849
854
public com .google .cloud .translate .v3 .SupportedLanguages getSupportedLanguages (
850
855
com .google .cloud .translate .v3 .GetSupportedLanguagesRequest request ) {
851
- return blockingUnaryCall (
856
+ return io . grpc . stub . ClientCalls . blockingUnaryCall (
852
857
getChannel (), getGetSupportedLanguagesMethod (), getCallOptions (), request );
853
858
}
854
859
@@ -866,7 +871,7 @@ public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(
866
871
*/
867
872
public com .google .longrunning .Operation batchTranslateText (
868
873
com .google .cloud .translate .v3 .BatchTranslateTextRequest request ) {
869
- return blockingUnaryCall (
874
+ return io . grpc . stub . ClientCalls . blockingUnaryCall (
870
875
getChannel (), getBatchTranslateTextMethod (), getCallOptions (), request );
871
876
}
872
877
@@ -880,7 +885,8 @@ public com.google.longrunning.Operation batchTranslateText(
880
885
*/
881
886
public com .google .longrunning .Operation createGlossary (
882
887
com .google .cloud .translate .v3 .CreateGlossaryRequest request ) {
883
- return blockingUnaryCall (getChannel (), getCreateGlossaryMethod (), getCallOptions (), request );
888
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
889
+ getChannel (), getCreateGlossaryMethod (), getCallOptions (), request );
884
890
}
885
891
886
892
/**
@@ -893,7 +899,8 @@ public com.google.longrunning.Operation createGlossary(
893
899
*/
894
900
public com .google .cloud .translate .v3 .ListGlossariesResponse listGlossaries (
895
901
com .google .cloud .translate .v3 .ListGlossariesRequest request ) {
896
- return blockingUnaryCall (getChannel (), getListGlossariesMethod (), getCallOptions (), request );
902
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
903
+ getChannel (), getListGlossariesMethod (), getCallOptions (), request );
897
904
}
898
905
899
906
/**
@@ -906,7 +913,8 @@ public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(
906
913
*/
907
914
public com .google .cloud .translate .v3 .Glossary getGlossary (
908
915
com .google .cloud .translate .v3 .GetGlossaryRequest request ) {
909
- return blockingUnaryCall (getChannel (), getGetGlossaryMethod (), getCallOptions (), request );
916
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
917
+ getChannel (), getGetGlossaryMethod (), getCallOptions (), request );
910
918
}
911
919
912
920
/**
@@ -920,7 +928,8 @@ public com.google.cloud.translate.v3.Glossary getGlossary(
920
928
*/
921
929
public com .google .longrunning .Operation deleteGlossary (
922
930
com .google .cloud .translate .v3 .DeleteGlossaryRequest request ) {
923
- return blockingUnaryCall (getChannel (), getDeleteGlossaryMethod (), getCallOptions (), request );
931
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
932
+ getChannel (), getDeleteGlossaryMethod (), getCallOptions (), request );
924
933
}
925
934
}
926
935
@@ -953,7 +962,7 @@ protected TranslationServiceFutureStub build(
953
962
public com .google .common .util .concurrent .ListenableFuture <
954
963
com .google .cloud .translate .v3 .TranslateTextResponse >
955
964
translateText (com .google .cloud .translate .v3 .TranslateTextRequest request ) {
956
- return futureUnaryCall (
965
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
957
966
getChannel ().newCall (getTranslateTextMethod (), getCallOptions ()), request );
958
967
}
959
968
@@ -967,7 +976,7 @@ protected TranslationServiceFutureStub build(
967
976
public com .google .common .util .concurrent .ListenableFuture <
968
977
com .google .cloud .translate .v3 .DetectLanguageResponse >
969
978
detectLanguage (com .google .cloud .translate .v3 .DetectLanguageRequest request ) {
970
- return futureUnaryCall (
979
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
971
980
getChannel ().newCall (getDetectLanguageMethod (), getCallOptions ()), request );
972
981
}
973
982
@@ -981,7 +990,7 @@ protected TranslationServiceFutureStub build(
981
990
public com .google .common .util .concurrent .ListenableFuture <
982
991
com .google .cloud .translate .v3 .SupportedLanguages >
983
992
getSupportedLanguages (com .google .cloud .translate .v3 .GetSupportedLanguagesRequest request ) {
984
- return futureUnaryCall (
993
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
985
994
getChannel ().newCall (getGetSupportedLanguagesMethod (), getCallOptions ()), request );
986
995
}
987
996
@@ -999,7 +1008,7 @@ protected TranslationServiceFutureStub build(
999
1008
*/
1000
1009
public com .google .common .util .concurrent .ListenableFuture <com .google .longrunning .Operation >
1001
1010
batchTranslateText (com .google .cloud .translate .v3 .BatchTranslateTextRequest request ) {
1002
- return futureUnaryCall (
1011
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
1003
1012
getChannel ().newCall (getBatchTranslateTextMethod (), getCallOptions ()), request );
1004
1013
}
1005
1014
@@ -1013,7 +1022,7 @@ protected TranslationServiceFutureStub build(
1013
1022
*/
1014
1023
public com .google .common .util .concurrent .ListenableFuture <com .google .longrunning .Operation >
1015
1024
createGlossary (com .google .cloud .translate .v3 .CreateGlossaryRequest request ) {
1016
- return futureUnaryCall (
1025
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
1017
1026
getChannel ().newCall (getCreateGlossaryMethod (), getCallOptions ()), request );
1018
1027
}
1019
1028
@@ -1028,7 +1037,7 @@ protected TranslationServiceFutureStub build(
1028
1037
public com .google .common .util .concurrent .ListenableFuture <
1029
1038
com .google .cloud .translate .v3 .ListGlossariesResponse >
1030
1039
listGlossaries (com .google .cloud .translate .v3 .ListGlossariesRequest request ) {
1031
- return futureUnaryCall (
1040
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
1032
1041
getChannel ().newCall (getListGlossariesMethod (), getCallOptions ()), request );
1033
1042
}
1034
1043
@@ -1043,7 +1052,7 @@ protected TranslationServiceFutureStub build(
1043
1052
public com .google .common .util .concurrent .ListenableFuture <
1044
1053
com .google .cloud .translate .v3 .Glossary >
1045
1054
getGlossary (com .google .cloud .translate .v3 .GetGlossaryRequest request ) {
1046
- return futureUnaryCall (
1055
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
1047
1056
getChannel ().newCall (getGetGlossaryMethod (), getCallOptions ()), request );
1048
1057
}
1049
1058
@@ -1058,7 +1067,7 @@ protected TranslationServiceFutureStub build(
1058
1067
*/
1059
1068
public com .google .common .util .concurrent .ListenableFuture <com .google .longrunning .Operation >
1060
1069
deleteGlossary (com .google .cloud .translate .v3 .DeleteGlossaryRequest request ) {
1061
- return futureUnaryCall (
1070
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
1062
1071
getChannel ().newCall (getDeleteGlossaryMethod (), getCallOptions ()), request );
1063
1072
}
1064
1073
}
0 commit comments