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

Commit 5ad191b

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/de8b7308-42e1-491a-9337-882343eb7261/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: googleapis/googleapis@0e91521
1 parent 7630275 commit 5ad191b

File tree

4 files changed

+105
-102
lines changed

4 files changed

+105
-102
lines changed

grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
package com.google.cloud.speech.v1;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
20-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
21-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
22-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
24-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
25-
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
26-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2719

2820
/**
2921
*
@@ -236,7 +228,7 @@ public void recognize(
236228
com.google.cloud.speech.v1.RecognizeRequest request,
237229
io.grpc.stub.StreamObserver<com.google.cloud.speech.v1.RecognizeResponse>
238230
responseObserver) {
239-
asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver);
231+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver);
240232
}
241233

242234
/**
@@ -254,7 +246,8 @@ public void recognize(
254246
public void longRunningRecognize(
255247
com.google.cloud.speech.v1.LongRunningRecognizeRequest request,
256248
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
257-
asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver);
249+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
250+
getLongRunningRecognizeMethod(), responseObserver);
258251
}
259252

260253
/**
@@ -269,27 +262,28 @@ public void longRunningRecognize(
269262
streamingRecognize(
270263
io.grpc.stub.StreamObserver<com.google.cloud.speech.v1.StreamingRecognizeResponse>
271264
responseObserver) {
272-
return asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver);
265+
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
266+
getStreamingRecognizeMethod(), responseObserver);
273267
}
274268

275269
@java.lang.Override
276270
public final io.grpc.ServerServiceDefinition bindService() {
277271
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
278272
.addMethod(
279273
getRecognizeMethod(),
280-
asyncUnaryCall(
274+
io.grpc.stub.ServerCalls.asyncUnaryCall(
281275
new MethodHandlers<
282276
com.google.cloud.speech.v1.RecognizeRequest,
283277
com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE)))
284278
.addMethod(
285279
getLongRunningRecognizeMethod(),
286-
asyncUnaryCall(
280+
io.grpc.stub.ServerCalls.asyncUnaryCall(
287281
new MethodHandlers<
288282
com.google.cloud.speech.v1.LongRunningRecognizeRequest,
289283
com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE)))
290284
.addMethod(
291285
getStreamingRecognizeMethod(),
292-
asyncBidiStreamingCall(
286+
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
293287
new MethodHandlers<
294288
com.google.cloud.speech.v1.StreamingRecognizeRequest,
295289
com.google.cloud.speech.v1.StreamingRecognizeResponse>(
@@ -327,7 +321,7 @@ public void recognize(
327321
com.google.cloud.speech.v1.RecognizeRequest request,
328322
io.grpc.stub.StreamObserver<com.google.cloud.speech.v1.RecognizeResponse>
329323
responseObserver) {
330-
asyncUnaryCall(
324+
io.grpc.stub.ClientCalls.asyncUnaryCall(
331325
getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver);
332326
}
333327

@@ -346,7 +340,7 @@ public void recognize(
346340
public void longRunningRecognize(
347341
com.google.cloud.speech.v1.LongRunningRecognizeRequest request,
348342
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
349-
asyncUnaryCall(
343+
io.grpc.stub.ClientCalls.asyncUnaryCall(
350344
getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()),
351345
request,
352346
responseObserver);
@@ -364,7 +358,7 @@ public void longRunningRecognize(
364358
streamingRecognize(
365359
io.grpc.stub.StreamObserver<com.google.cloud.speech.v1.StreamingRecognizeResponse>
366360
responseObserver) {
367-
return asyncBidiStreamingCall(
361+
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
368362
getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver);
369363
}
370364
}
@@ -397,7 +391,8 @@ protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions
397391
*/
398392
public com.google.cloud.speech.v1.RecognizeResponse recognize(
399393
com.google.cloud.speech.v1.RecognizeRequest request) {
400-
return blockingUnaryCall(getChannel(), getRecognizeMethod(), getCallOptions(), request);
394+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
395+
getChannel(), getRecognizeMethod(), getCallOptions(), request);
401396
}
402397

403398
/**
@@ -414,7 +409,7 @@ public com.google.cloud.speech.v1.RecognizeResponse recognize(
414409
*/
415410
public com.google.longrunning.Operation longRunningRecognize(
416411
com.google.cloud.speech.v1.LongRunningRecognizeRequest request) {
417-
return blockingUnaryCall(
412+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
418413
getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request);
419414
}
420415
}
@@ -448,7 +443,8 @@ protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
448443
public com.google.common.util.concurrent.ListenableFuture<
449444
com.google.cloud.speech.v1.RecognizeResponse>
450445
recognize(com.google.cloud.speech.v1.RecognizeRequest request) {
451-
return futureUnaryCall(getChannel().newCall(getRecognizeMethod(), getCallOptions()), request);
446+
return io.grpc.stub.ClientCalls.futureUnaryCall(
447+
getChannel().newCall(getRecognizeMethod(), getCallOptions()), request);
452448
}
453449

454450
/**
@@ -465,7 +461,7 @@ protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
465461
*/
466462
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
467463
longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) {
468-
return futureUnaryCall(
464+
return io.grpc.stub.ClientCalls.futureUnaryCall(
469465
getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request);
470466
}
471467
}

0 commit comments

Comments
 (0)