Skip to content

Commit 244be52

Browse files
committed
Updated examples to handle blockingV2ServerStreamingCall throwing StatusException
1 parent 05151ff commit 244be52

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

android-interop-testing/src/generated/release/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ protected MetricsServiceBlockingV2Stub build(
234234
* </pre>
235235
*/
236236
public io.grpc.stub.BlockingClientCall<?, io.grpc.testing.integration.Metrics.GaugeResponse>
237-
getAllGauges(io.grpc.testing.integration.Metrics.EmptyMessage request) throws java.lang.InterruptedException {
237+
getAllGauges(io.grpc.testing.integration.Metrics.EmptyMessage request) throws java.lang.InterruptedException,
238+
io.grpc.StatusException {
238239
return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall(
239240
getChannel(), getGetAllGaugesMethod(), getCallOptions(), request);
240241
}

android-interop-testing/src/generated/release/grpc/io/grpc/testing/integration/TestServiceGrpc.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ public io.grpc.testing.integration.Messages.SimpleResponse cacheableUnaryCall(io
610610
* </pre>
611611
*/
612612
public io.grpc.stub.BlockingClientCall<?, io.grpc.testing.integration.Messages.StreamingOutputCallResponse>
613-
streamingOutputCall(io.grpc.testing.integration.Messages.StreamingOutputCallRequest request) throws java.lang.InterruptedException {
613+
streamingOutputCall(io.grpc.testing.integration.Messages.StreamingOutputCallRequest request) throws java.lang.InterruptedException,
614+
io.grpc.StatusException {
614615
return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall(
615616
getChannel(), getStreamingOutputCallMethod(), getCallOptions(), request);
616617
}

0 commit comments

Comments
 (0)