blob: cb76da8737f9d8a75366ee06380b6cbfbc3979eb [file] [log] [blame]
Eric Andersonb22bcdf2016-03-29 14:13:28 -07001package io.grpc.testing.integration;
Eric Anderson99a6d8d2016-03-22 11:31:36 -07002
3import static io.grpc.stub.ClientCalls.asyncUnaryCall;
4import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
5import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
6import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
7import static io.grpc.stub.ClientCalls.blockingUnaryCall;
8import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
9import static io.grpc.stub.ClientCalls.futureUnaryCall;
10import static io.grpc.MethodDescriptor.generateFullMethodName;
11import static io.grpc.stub.ServerCalls.asyncUnaryCall;
12import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
13import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
14import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
Lukasz Strzalkowski2fbf1422016-04-08 02:28:32 +020015import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
16import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
Eric Anderson99a6d8d2016-03-22 11:31:36 -070017
18@javax.annotation.Generated(
Lukasz Strzalkowski363e0f62016-04-11 19:34:15 +020019 value = "by gRPC proto compiler (version 0.14.0-SNAPSHOT)",
Eric Andersonb22bcdf2016-03-29 14:13:28 -070020 comments = "Source: test.proto")
Eric Anderson99a6d8d2016-03-22 11:31:36 -070021public class TestServiceGrpc {
22
23 private TestServiceGrpc() {}
24
Eric Andersonb22bcdf2016-03-29 14:13:28 -070025 public static final String SERVICE_NAME = "grpc.testing.TestService";
Eric Anderson99a6d8d2016-03-22 11:31:36 -070026
27 // Static method descriptors that strictly reflect the proto.
28 @io.grpc.ExperimentalApi
Eric Andersonb22bcdf2016-03-29 14:13:28 -070029 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
30 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
Eric Anderson99a6d8d2016-03-22 11:31:36 -070031 io.grpc.MethodDescriptor.create(
32 io.grpc.MethodDescriptor.MethodType.UNARY,
33 generateFullMethodName(
Eric Andersonb22bcdf2016-03-29 14:13:28 -070034 "grpc.testing.TestService", "UnaryCall"),
35 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.getDefaultInstance()),
36 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.getDefaultInstance()));
Eric Anderson99a6d8d2016-03-22 11:31:36 -070037 @io.grpc.ExperimentalApi
Eric Andersonb22bcdf2016-03-29 14:13:28 -070038 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
39 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
Eric Anderson99a6d8d2016-03-22 11:31:36 -070040 io.grpc.MethodDescriptor.create(
41 io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING,
42 generateFullMethodName(
Eric Andersonb22bcdf2016-03-29 14:13:28 -070043 "grpc.testing.TestService", "StreamingOutputCall"),
44 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.getDefaultInstance()),
45 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.getDefaultInstance()));
Eric Anderson99a6d8d2016-03-22 11:31:36 -070046 @io.grpc.ExperimentalApi
Eric Andersonb22bcdf2016-03-29 14:13:28 -070047 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
48 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
Eric Anderson99a6d8d2016-03-22 11:31:36 -070049 io.grpc.MethodDescriptor.create(
50 io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING,
51 generateFullMethodName(
Eric Andersonb22bcdf2016-03-29 14:13:28 -070052 "grpc.testing.TestService", "StreamingInputCall"),
53 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.getDefaultInstance()),
54 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.getDefaultInstance()));
Eric Anderson99a6d8d2016-03-22 11:31:36 -070055 @io.grpc.ExperimentalApi
Eric Andersonb22bcdf2016-03-29 14:13:28 -070056 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
57 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_BIDI_CALL =
Eric Anderson99a6d8d2016-03-22 11:31:36 -070058 io.grpc.MethodDescriptor.create(
59 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
60 generateFullMethodName(
Eric Andersonb22bcdf2016-03-29 14:13:28 -070061 "grpc.testing.TestService", "FullBidiCall"),
62 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.getDefaultInstance()),
63 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.getDefaultInstance()));
Eric Anderson99a6d8d2016-03-22 11:31:36 -070064 @io.grpc.ExperimentalApi
Eric Andersonb22bcdf2016-03-29 14:13:28 -070065 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
66 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_BIDI_CALL =
Eric Anderson99a6d8d2016-03-22 11:31:36 -070067 io.grpc.MethodDescriptor.create(
68 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
69 generateFullMethodName(
Eric Andersonb22bcdf2016-03-29 14:13:28 -070070 "grpc.testing.TestService", "HalfBidiCall"),
71 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.getDefaultInstance()),
72 io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.getDefaultInstance()));
Eric Anderson99a6d8d2016-03-22 11:31:36 -070073
74 public static TestServiceStub newStub(io.grpc.Channel channel) {
75 return new TestServiceStub(channel);
76 }
77
78 public static TestServiceBlockingStub newBlockingStub(
79 io.grpc.Channel channel) {
80 return new TestServiceBlockingStub(channel);
81 }
82
83 public static TestServiceFutureStub newFutureStub(
84 io.grpc.Channel channel) {
85 return new TestServiceFutureStub(channel);
86 }
87
88 public static interface TestService {
89
Eric Andersonb22bcdf2016-03-29 14:13:28 -070090 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
91 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -070092
Eric Andersonb22bcdf2016-03-29 14:13:28 -070093 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
94 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -070095
Eric Andersonb22bcdf2016-03-29 14:13:28 -070096 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
97 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -070098
Eric Andersonb22bcdf2016-03-29 14:13:28 -070099 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
100 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700101
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700102 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
103 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700104 }
105
Lukasz Strzalkowski2fbf1422016-04-08 02:28:32 +0200106 public static abstract class AbstractTestService implements TestService, io.grpc.BindableService {
107
108 @java.lang.Override
109 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
110 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
111 asyncUnimplementedUnaryCall(METHOD_UNARY_CALL, responseObserver);
112 }
113
114 @java.lang.Override
115 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
116 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
117 asyncUnimplementedUnaryCall(METHOD_STREAMING_OUTPUT_CALL, responseObserver);
118 }
119
120 @java.lang.Override
121 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
122 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
123 return asyncUnimplementedStreamingCall(METHOD_STREAMING_INPUT_CALL, responseObserver);
124 }
125
126 @java.lang.Override
127 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
128 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
129 return asyncUnimplementedStreamingCall(METHOD_FULL_BIDI_CALL, responseObserver);
130 }
131
132 @java.lang.Override
133 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
134 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
135 return asyncUnimplementedStreamingCall(METHOD_HALF_BIDI_CALL, responseObserver);
136 }
137
138 @java.lang.Override public io.grpc.ServerServiceDefinition bindService() {
139 return TestServiceGrpc.bindService(this);
140 }
141 }
142
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700143 public static interface TestServiceBlockingClient {
144
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700145 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700146
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700147 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
148 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700149 }
150
151 public static interface TestServiceFutureClient {
152
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700153 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
154 io.grpc.testing.integration.Test.SimpleRequest request);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700155 }
156
157 public static class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub>
158 implements TestService {
159 private TestServiceStub(io.grpc.Channel channel) {
160 super(channel);
161 }
162
163 private TestServiceStub(io.grpc.Channel channel,
164 io.grpc.CallOptions callOptions) {
165 super(channel, callOptions);
166 }
167
168 @java.lang.Override
169 protected TestServiceStub build(io.grpc.Channel channel,
170 io.grpc.CallOptions callOptions) {
171 return new TestServiceStub(channel, callOptions);
172 }
173
174 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700175 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
176 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700177 asyncUnaryCall(
178 getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request, responseObserver);
179 }
180
181 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700182 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
183 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700184 asyncServerStreamingCall(
185 getChannel().newCall(METHOD_STREAMING_OUTPUT_CALL, getCallOptions()), request, responseObserver);
186 }
187
188 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700189 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
190 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700191 return asyncClientStreamingCall(
192 getChannel().newCall(METHOD_STREAMING_INPUT_CALL, getCallOptions()), responseObserver);
193 }
194
195 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700196 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
197 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700198 return asyncBidiStreamingCall(
199 getChannel().newCall(METHOD_FULL_BIDI_CALL, getCallOptions()), responseObserver);
200 }
201
202 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700203 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
204 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700205 return asyncBidiStreamingCall(
206 getChannel().newCall(METHOD_HALF_BIDI_CALL, getCallOptions()), responseObserver);
207 }
208 }
209
210 public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub>
211 implements TestServiceBlockingClient {
212 private TestServiceBlockingStub(io.grpc.Channel channel) {
213 super(channel);
214 }
215
216 private TestServiceBlockingStub(io.grpc.Channel channel,
217 io.grpc.CallOptions callOptions) {
218 super(channel, callOptions);
219 }
220
221 @java.lang.Override
222 protected TestServiceBlockingStub build(io.grpc.Channel channel,
223 io.grpc.CallOptions callOptions) {
224 return new TestServiceBlockingStub(channel, callOptions);
225 }
226
227 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700228 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700229 return blockingUnaryCall(
230 getChannel(), METHOD_UNARY_CALL, getCallOptions(), request);
231 }
232
233 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700234 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
235 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700236 return blockingServerStreamingCall(
237 getChannel(), METHOD_STREAMING_OUTPUT_CALL, getCallOptions(), request);
238 }
239 }
240
241 public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub>
242 implements TestServiceFutureClient {
243 private TestServiceFutureStub(io.grpc.Channel channel) {
244 super(channel);
245 }
246
247 private TestServiceFutureStub(io.grpc.Channel channel,
248 io.grpc.CallOptions callOptions) {
249 super(channel, callOptions);
250 }
251
252 @java.lang.Override
253 protected TestServiceFutureStub build(io.grpc.Channel channel,
254 io.grpc.CallOptions callOptions) {
255 return new TestServiceFutureStub(channel, callOptions);
256 }
257
258 @java.lang.Override
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700259 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
260 io.grpc.testing.integration.Test.SimpleRequest request) {
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700261 return futureUnaryCall(
262 getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request);
263 }
264 }
265
266 private static final int METHODID_UNARY_CALL = 0;
267 private static final int METHODID_STREAMING_OUTPUT_CALL = 1;
268 private static final int METHODID_STREAMING_INPUT_CALL = 2;
269 private static final int METHODID_FULL_BIDI_CALL = 3;
270 private static final int METHODID_HALF_BIDI_CALL = 4;
271
272 private static class MethodHandlers<Req, Resp> implements
273 io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
274 io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
275 io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
276 io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
277 private final TestService serviceImpl;
278 private final int methodId;
279
280 public MethodHandlers(TestService serviceImpl, int methodId) {
281 this.serviceImpl = serviceImpl;
282 this.methodId = methodId;
283 }
284
285 @java.lang.Override
286 @java.lang.SuppressWarnings("unchecked")
287 public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
288 switch (methodId) {
289 case METHODID_UNARY_CALL:
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700290 serviceImpl.unaryCall((io.grpc.testing.integration.Test.SimpleRequest) request,
291 (io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse>) responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700292 break;
293 case METHODID_STREAMING_OUTPUT_CALL:
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700294 serviceImpl.streamingOutputCall((io.grpc.testing.integration.Test.StreamingOutputCallRequest) request,
295 (io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse>) responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700296 break;
297 default:
298 throw new AssertionError();
299 }
300 }
301
302 @java.lang.Override
303 @java.lang.SuppressWarnings("unchecked")
304 public io.grpc.stub.StreamObserver<Req> invoke(
305 io.grpc.stub.StreamObserver<Resp> responseObserver) {
306 switch (methodId) {
307 case METHODID_STREAMING_INPUT_CALL:
308 return (io.grpc.stub.StreamObserver<Req>) serviceImpl.streamingInputCall(
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700309 (io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse>) responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700310 case METHODID_FULL_BIDI_CALL:
311 return (io.grpc.stub.StreamObserver<Req>) serviceImpl.fullBidiCall(
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700312 (io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse>) responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700313 case METHODID_HALF_BIDI_CALL:
314 return (io.grpc.stub.StreamObserver<Req>) serviceImpl.halfBidiCall(
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700315 (io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse>) responseObserver);
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700316 default:
317 throw new AssertionError();
318 }
319 }
320 }
321
322 public static io.grpc.ServerServiceDefinition bindService(
323 final TestService serviceImpl) {
324 return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME)
325 .addMethod(
326 METHOD_UNARY_CALL,
327 asyncUnaryCall(
328 new MethodHandlers<
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700329 io.grpc.testing.integration.Test.SimpleRequest,
330 io.grpc.testing.integration.Test.SimpleResponse>(
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700331 serviceImpl, METHODID_UNARY_CALL)))
332 .addMethod(
333 METHOD_STREAMING_OUTPUT_CALL,
334 asyncServerStreamingCall(
335 new MethodHandlers<
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700336 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
337 io.grpc.testing.integration.Test.StreamingOutputCallResponse>(
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700338 serviceImpl, METHODID_STREAMING_OUTPUT_CALL)))
339 .addMethod(
340 METHOD_STREAMING_INPUT_CALL,
341 asyncClientStreamingCall(
342 new MethodHandlers<
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700343 io.grpc.testing.integration.Test.StreamingInputCallRequest,
344 io.grpc.testing.integration.Test.StreamingInputCallResponse>(
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700345 serviceImpl, METHODID_STREAMING_INPUT_CALL)))
346 .addMethod(
347 METHOD_FULL_BIDI_CALL,
348 asyncBidiStreamingCall(
349 new MethodHandlers<
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700350 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
351 io.grpc.testing.integration.Test.StreamingOutputCallResponse>(
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700352 serviceImpl, METHODID_FULL_BIDI_CALL)))
353 .addMethod(
354 METHOD_HALF_BIDI_CALL,
355 asyncBidiStreamingCall(
356 new MethodHandlers<
Eric Andersonb22bcdf2016-03-29 14:13:28 -0700357 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
358 io.grpc.testing.integration.Test.StreamingOutputCallResponse>(
Eric Anderson99a6d8d2016-03-22 11:31:36 -0700359 serviceImpl, METHODID_HALF_BIDI_CALL)))
360 .build();
361 }
362}