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

Commit c6ae0cd

Browse files
chore: update gax-java dependency to 1.62 (#463)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/b096316f-13b7-4a8e-84ef-7f6422d1caba/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: googleapis/googleapis@0e91521
1 parent 62ce326 commit c6ae0cd

File tree

3 files changed

+113
-95
lines changed

3 files changed

+113
-95
lines changed

grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java

Lines changed: 54 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.translate.v3;
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
*
@@ -467,7 +462,8 @@ public void translateText(
467462
com.google.cloud.translate.v3.TranslateTextRequest request,
468463
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.TranslateTextResponse>
469464
responseObserver) {
470-
asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver);
465+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
466+
getTranslateTextMethod(), responseObserver);
471467
}
472468

473469
/**
@@ -481,7 +477,8 @@ public void detectLanguage(
481477
com.google.cloud.translate.v3.DetectLanguageRequest request,
482478
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.DetectLanguageResponse>
483479
responseObserver) {
484-
asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver);
480+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
481+
getDetectLanguageMethod(), responseObserver);
485482
}
486483

487484
/**
@@ -495,7 +492,8 @@ public void getSupportedLanguages(
495492
com.google.cloud.translate.v3.GetSupportedLanguagesRequest request,
496493
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.SupportedLanguages>
497494
responseObserver) {
498-
asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver);
495+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
496+
getGetSupportedLanguagesMethod(), responseObserver);
499497
}
500498

501499
/**
@@ -513,7 +511,8 @@ public void getSupportedLanguages(
513511
public void batchTranslateText(
514512
com.google.cloud.translate.v3.BatchTranslateTextRequest request,
515513
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
516-
asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver);
514+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
515+
getBatchTranslateTextMethod(), responseObserver);
517516
}
518517

519518
/**
@@ -527,7 +526,8 @@ public void batchTranslateText(
527526
public void createGlossary(
528527
com.google.cloud.translate.v3.CreateGlossaryRequest request,
529528
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
530-
asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver);
529+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
530+
getCreateGlossaryMethod(), responseObserver);
531531
}
532532

533533
/**
@@ -542,7 +542,8 @@ public void listGlossaries(
542542
com.google.cloud.translate.v3.ListGlossariesRequest request,
543543
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.ListGlossariesResponse>
544544
responseObserver) {
545-
asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver);
545+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
546+
getListGlossariesMethod(), responseObserver);
546547
}
547548

548549
/**
@@ -556,7 +557,8 @@ public void listGlossaries(
556557
public void getGlossary(
557558
com.google.cloud.translate.v3.GetGlossaryRequest request,
558559
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.Glossary> responseObserver) {
559-
asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver);
560+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
561+
getGetGlossaryMethod(), responseObserver);
560562
}
561563

562564
/**
@@ -571,61 +573,62 @@ public void getGlossary(
571573
public void deleteGlossary(
572574
com.google.cloud.translate.v3.DeleteGlossaryRequest request,
573575
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
574-
asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver);
576+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
577+
getDeleteGlossaryMethod(), responseObserver);
575578
}
576579

577580
@java.lang.Override
578581
public final io.grpc.ServerServiceDefinition bindService() {
579582
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
580583
.addMethod(
581584
getTranslateTextMethod(),
582-
asyncUnaryCall(
585+
io.grpc.stub.ServerCalls.asyncUnaryCall(
583586
new MethodHandlers<
584587
com.google.cloud.translate.v3.TranslateTextRequest,
585588
com.google.cloud.translate.v3.TranslateTextResponse>(
586589
this, METHODID_TRANSLATE_TEXT)))
587590
.addMethod(
588591
getDetectLanguageMethod(),
589-
asyncUnaryCall(
592+
io.grpc.stub.ServerCalls.asyncUnaryCall(
590593
new MethodHandlers<
591594
com.google.cloud.translate.v3.DetectLanguageRequest,
592595
com.google.cloud.translate.v3.DetectLanguageResponse>(
593596
this, METHODID_DETECT_LANGUAGE)))
594597
.addMethod(
595598
getGetSupportedLanguagesMethod(),
596-
asyncUnaryCall(
599+
io.grpc.stub.ServerCalls.asyncUnaryCall(
597600
new MethodHandlers<
598601
com.google.cloud.translate.v3.GetSupportedLanguagesRequest,
599602
com.google.cloud.translate.v3.SupportedLanguages>(
600603
this, METHODID_GET_SUPPORTED_LANGUAGES)))
601604
.addMethod(
602605
getBatchTranslateTextMethod(),
603-
asyncUnaryCall(
606+
io.grpc.stub.ServerCalls.asyncUnaryCall(
604607
new MethodHandlers<
605608
com.google.cloud.translate.v3.BatchTranslateTextRequest,
606609
com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_TEXT)))
607610
.addMethod(
608611
getCreateGlossaryMethod(),
609-
asyncUnaryCall(
612+
io.grpc.stub.ServerCalls.asyncUnaryCall(
610613
new MethodHandlers<
611614
com.google.cloud.translate.v3.CreateGlossaryRequest,
612615
com.google.longrunning.Operation>(this, METHODID_CREATE_GLOSSARY)))
613616
.addMethod(
614617
getListGlossariesMethod(),
615-
asyncUnaryCall(
618+
io.grpc.stub.ServerCalls.asyncUnaryCall(
616619
new MethodHandlers<
617620
com.google.cloud.translate.v3.ListGlossariesRequest,
618621
com.google.cloud.translate.v3.ListGlossariesResponse>(
619622
this, METHODID_LIST_GLOSSARIES)))
620623
.addMethod(
621624
getGetGlossaryMethod(),
622-
asyncUnaryCall(
625+
io.grpc.stub.ServerCalls.asyncUnaryCall(
623626
new MethodHandlers<
624627
com.google.cloud.translate.v3.GetGlossaryRequest,
625628
com.google.cloud.translate.v3.Glossary>(this, METHODID_GET_GLOSSARY)))
626629
.addMethod(
627630
getDeleteGlossaryMethod(),
628-
asyncUnaryCall(
631+
io.grpc.stub.ServerCalls.asyncUnaryCall(
629632
new MethodHandlers<
630633
com.google.cloud.translate.v3.DeleteGlossaryRequest,
631634
com.google.longrunning.Operation>(this, METHODID_DELETE_GLOSSARY)))
@@ -663,7 +666,7 @@ public void translateText(
663666
com.google.cloud.translate.v3.TranslateTextRequest request,
664667
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.TranslateTextResponse>
665668
responseObserver) {
666-
asyncUnaryCall(
669+
io.grpc.stub.ClientCalls.asyncUnaryCall(
667670
getChannel().newCall(getTranslateTextMethod(), getCallOptions()),
668671
request,
669672
responseObserver);
@@ -680,7 +683,7 @@ public void detectLanguage(
680683
com.google.cloud.translate.v3.DetectLanguageRequest request,
681684
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.DetectLanguageResponse>
682685
responseObserver) {
683-
asyncUnaryCall(
686+
io.grpc.stub.ClientCalls.asyncUnaryCall(
684687
getChannel().newCall(getDetectLanguageMethod(), getCallOptions()),
685688
request,
686689
responseObserver);
@@ -697,7 +700,7 @@ public void getSupportedLanguages(
697700
com.google.cloud.translate.v3.GetSupportedLanguagesRequest request,
698701
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.SupportedLanguages>
699702
responseObserver) {
700-
asyncUnaryCall(
703+
io.grpc.stub.ClientCalls.asyncUnaryCall(
701704
getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()),
702705
request,
703706
responseObserver);
@@ -718,7 +721,7 @@ public void getSupportedLanguages(
718721
public void batchTranslateText(
719722
com.google.cloud.translate.v3.BatchTranslateTextRequest request,
720723
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
721-
asyncUnaryCall(
724+
io.grpc.stub.ClientCalls.asyncUnaryCall(
722725
getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()),
723726
request,
724727
responseObserver);
@@ -735,7 +738,7 @@ public void batchTranslateText(
735738
public void createGlossary(
736739
com.google.cloud.translate.v3.CreateGlossaryRequest request,
737740
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
738-
asyncUnaryCall(
741+
io.grpc.stub.ClientCalls.asyncUnaryCall(
739742
getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()),
740743
request,
741744
responseObserver);
@@ -753,7 +756,7 @@ public void listGlossaries(
753756
com.google.cloud.translate.v3.ListGlossariesRequest request,
754757
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.ListGlossariesResponse>
755758
responseObserver) {
756-
asyncUnaryCall(
759+
io.grpc.stub.ClientCalls.asyncUnaryCall(
757760
getChannel().newCall(getListGlossariesMethod(), getCallOptions()),
758761
request,
759762
responseObserver);
@@ -770,7 +773,7 @@ public void listGlossaries(
770773
public void getGlossary(
771774
com.google.cloud.translate.v3.GetGlossaryRequest request,
772775
io.grpc.stub.StreamObserver<com.google.cloud.translate.v3.Glossary> responseObserver) {
773-
asyncUnaryCall(
776+
io.grpc.stub.ClientCalls.asyncUnaryCall(
774777
getChannel().newCall(getGetGlossaryMethod(), getCallOptions()),
775778
request,
776779
responseObserver);
@@ -788,7 +791,7 @@ public void getGlossary(
788791
public void deleteGlossary(
789792
com.google.cloud.translate.v3.DeleteGlossaryRequest request,
790793
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
791-
asyncUnaryCall(
794+
io.grpc.stub.ClientCalls.asyncUnaryCall(
792795
getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()),
793796
request,
794797
responseObserver);
@@ -824,7 +827,8 @@ protected TranslationServiceBlockingStub build(
824827
*/
825828
public com.google.cloud.translate.v3.TranslateTextResponse translateText(
826829
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);
828832
}
829833

830834
/**
@@ -836,7 +840,8 @@ public com.google.cloud.translate.v3.TranslateTextResponse translateText(
836840
*/
837841
public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(
838842
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);
840845
}
841846

842847
/**
@@ -848,7 +853,7 @@ public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(
848853
*/
849854
public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(
850855
com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) {
851-
return blockingUnaryCall(
856+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
852857
getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request);
853858
}
854859

@@ -866,7 +871,7 @@ public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(
866871
*/
867872
public com.google.longrunning.Operation batchTranslateText(
868873
com.google.cloud.translate.v3.BatchTranslateTextRequest request) {
869-
return blockingUnaryCall(
874+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
870875
getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request);
871876
}
872877

@@ -880,7 +885,8 @@ public com.google.longrunning.Operation batchTranslateText(
880885
*/
881886
public com.google.longrunning.Operation createGlossary(
882887
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);
884890
}
885891

886892
/**
@@ -893,7 +899,8 @@ public com.google.longrunning.Operation createGlossary(
893899
*/
894900
public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(
895901
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);
897904
}
898905

899906
/**
@@ -906,7 +913,8 @@ public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(
906913
*/
907914
public com.google.cloud.translate.v3.Glossary getGlossary(
908915
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);
910918
}
911919

912920
/**
@@ -920,7 +928,8 @@ public com.google.cloud.translate.v3.Glossary getGlossary(
920928
*/
921929
public com.google.longrunning.Operation deleteGlossary(
922930
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);
924933
}
925934
}
926935

@@ -953,7 +962,7 @@ protected TranslationServiceFutureStub build(
953962
public com.google.common.util.concurrent.ListenableFuture<
954963
com.google.cloud.translate.v3.TranslateTextResponse>
955964
translateText(com.google.cloud.translate.v3.TranslateTextRequest request) {
956-
return futureUnaryCall(
965+
return io.grpc.stub.ClientCalls.futureUnaryCall(
957966
getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request);
958967
}
959968

@@ -967,7 +976,7 @@ protected TranslationServiceFutureStub build(
967976
public com.google.common.util.concurrent.ListenableFuture<
968977
com.google.cloud.translate.v3.DetectLanguageResponse>
969978
detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) {
970-
return futureUnaryCall(
979+
return io.grpc.stub.ClientCalls.futureUnaryCall(
971980
getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request);
972981
}
973982

@@ -981,7 +990,7 @@ protected TranslationServiceFutureStub build(
981990
public com.google.common.util.concurrent.ListenableFuture<
982991
com.google.cloud.translate.v3.SupportedLanguages>
983992
getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) {
984-
return futureUnaryCall(
993+
return io.grpc.stub.ClientCalls.futureUnaryCall(
985994
getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request);
986995
}
987996

@@ -999,7 +1008,7 @@ protected TranslationServiceFutureStub build(
9991008
*/
10001009
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
10011010
batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) {
1002-
return futureUnaryCall(
1011+
return io.grpc.stub.ClientCalls.futureUnaryCall(
10031012
getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request);
10041013
}
10051014

@@ -1013,7 +1022,7 @@ protected TranslationServiceFutureStub build(
10131022
*/
10141023
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
10151024
createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) {
1016-
return futureUnaryCall(
1025+
return io.grpc.stub.ClientCalls.futureUnaryCall(
10171026
getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request);
10181027
}
10191028

@@ -1028,7 +1037,7 @@ protected TranslationServiceFutureStub build(
10281037
public com.google.common.util.concurrent.ListenableFuture<
10291038
com.google.cloud.translate.v3.ListGlossariesResponse>
10301039
listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) {
1031-
return futureUnaryCall(
1040+
return io.grpc.stub.ClientCalls.futureUnaryCall(
10321041
getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request);
10331042
}
10341043

@@ -1043,7 +1052,7 @@ protected TranslationServiceFutureStub build(
10431052
public com.google.common.util.concurrent.ListenableFuture<
10441053
com.google.cloud.translate.v3.Glossary>
10451054
getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) {
1046-
return futureUnaryCall(
1055+
return io.grpc.stub.ClientCalls.futureUnaryCall(
10471056
getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request);
10481057
}
10491058

@@ -1058,7 +1067,7 @@ protected TranslationServiceFutureStub build(
10581067
*/
10591068
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
10601069
deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) {
1061-
return futureUnaryCall(
1070+
return io.grpc.stub.ClientCalls.futureUnaryCall(
10621071
getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request);
10631072
}
10641073
}

0 commit comments

Comments
 (0)