blob: 081ef00ccfb7d97f53c417b78b9097448f7ff523 [file] [log] [blame]
nmittlerf8314582015-01-27 10:25:39 -08001package io.grpc.testing.integration;
zhangkun835e607852015-01-22 12:31:56 -08002
nmittlerf8314582015-01-27 10:25:39 -08003import static io.grpc.stub.Calls.createMethodDescriptor;
4import static io.grpc.stub.Calls.asyncUnaryCall;
5import static io.grpc.stub.Calls.asyncServerStreamingCall;
6import static io.grpc.stub.Calls.asyncClientStreamingCall;
7import static io.grpc.stub.Calls.duplexStreamingCall;
8import static io.grpc.stub.Calls.blockingUnaryCall;
9import static io.grpc.stub.Calls.blockingServerStreamingCall;
10import static io.grpc.stub.Calls.unaryFutureCall;
11import static io.grpc.stub.ServerCalls.createMethodDefinition;
12import static io.grpc.stub.ServerCalls.asyncUnaryRequestCall;
13import static io.grpc.stub.ServerCalls.asyncStreamingRequestCall;
zhangkun835e607852015-01-22 12:31:56 -080014
15@javax.annotation.Generated("by gRPC proto compiler")
16public class TestServiceGrpc {
17
nmittlerf8314582015-01-27 10:25:39 -080018 private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.SimpleRequest,
19 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
20 io.grpc.stub.Method.create(
21 io.grpc.MethodType.UNARY, "UnaryCall",
Eric Anderson3666de42015-04-10 16:35:23 -070022 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.PARSER),
23 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.PARSER));
nmittlerf8314582015-01-27 10:25:39 -080024 private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
25 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
26 io.grpc.stub.Method.create(
27 io.grpc.MethodType.SERVER_STREAMING, "StreamingOutputCall",
Eric Anderson3666de42015-04-10 16:35:23 -070028 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
29 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
nmittlerf8314582015-01-27 10:25:39 -080030 private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingInputCallRequest,
31 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
32 io.grpc.stub.Method.create(
33 io.grpc.MethodType.CLIENT_STREAMING, "StreamingInputCall",
Eric Anderson3666de42015-04-10 16:35:23 -070034 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.PARSER),
35 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.PARSER));
nmittlerf8314582015-01-27 10:25:39 -080036 private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
37 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
38 io.grpc.stub.Method.create(
39 io.grpc.MethodType.DUPLEX_STREAMING, "FullDuplexCall",
Eric Anderson3666de42015-04-10 16:35:23 -070040 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
41 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
nmittlerf8314582015-01-27 10:25:39 -080042 private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
43 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
44 io.grpc.stub.Method.create(
45 io.grpc.MethodType.DUPLEX_STREAMING, "HalfDuplexCall",
Eric Anderson3666de42015-04-10 16:35:23 -070046 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
47 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
zhangkun835e607852015-01-22 12:31:56 -080048
nmittlerf8314582015-01-27 10:25:39 -080049 public static TestServiceStub newStub(io.grpc.Channel channel) {
zhangkun835e607852015-01-22 12:31:56 -080050 return new TestServiceStub(channel, CONFIG);
51 }
52
53 public static TestServiceBlockingStub newBlockingStub(
nmittlerf8314582015-01-27 10:25:39 -080054 io.grpc.Channel channel) {
zhangkun835e607852015-01-22 12:31:56 -080055 return new TestServiceBlockingStub(channel, CONFIG);
56 }
57
58 public static TestServiceFutureStub newFutureStub(
nmittlerf8314582015-01-27 10:25:39 -080059 io.grpc.Channel channel) {
zhangkun835e607852015-01-22 12:31:56 -080060 return new TestServiceFutureStub(channel, CONFIG);
61 }
62
63 public static final TestServiceServiceDescriptor CONFIG =
64 new TestServiceServiceDescriptor();
65
66 @javax.annotation.concurrent.Immutable
67 public static class TestServiceServiceDescriptor extends
nmittlerf8314582015-01-27 10:25:39 -080068 io.grpc.stub.AbstractServiceDescriptor<TestServiceServiceDescriptor> {
69 public final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
70 io.grpc.testing.integration.Test.SimpleResponse> unaryCall;
71 public final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
72 io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall;
73 public final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
74 io.grpc.testing.integration.Test.StreamingInputCallResponse> streamingInputCall;
75 public final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
76 io.grpc.testing.integration.Test.StreamingOutputCallResponse> fullDuplexCall;
77 public final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
78 io.grpc.testing.integration.Test.StreamingOutputCallResponse> halfDuplexCall;
zhangkun835e607852015-01-22 12:31:56 -080079
80 private TestServiceServiceDescriptor() {
81 unaryCall = createMethodDescriptor(
82 "grpc.testing.TestService", METHOD_UNARY_CALL);
83 streamingOutputCall = createMethodDescriptor(
84 "grpc.testing.TestService", METHOD_STREAMING_OUTPUT_CALL);
85 streamingInputCall = createMethodDescriptor(
86 "grpc.testing.TestService", METHOD_STREAMING_INPUT_CALL);
87 fullDuplexCall = createMethodDescriptor(
88 "grpc.testing.TestService", METHOD_FULL_DUPLEX_CALL);
89 halfDuplexCall = createMethodDescriptor(
90 "grpc.testing.TestService", METHOD_HALF_DUPLEX_CALL);
91 }
92
Eric Anderson76d09552015-03-12 15:25:11 -070093 @SuppressWarnings("unchecked")
zhangkun835e607852015-01-22 12:31:56 -080094 private TestServiceServiceDescriptor(
nmittlerf8314582015-01-27 10:25:39 -080095 java.util.Map<java.lang.String, io.grpc.MethodDescriptor<?, ?>> methodMap) {
96 unaryCall = (io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
97 io.grpc.testing.integration.Test.SimpleResponse>) methodMap.get(
zhangkun835e607852015-01-22 12:31:56 -080098 CONFIG.unaryCall.getName());
nmittlerf8314582015-01-27 10:25:39 -080099 streamingOutputCall = (io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
100 io.grpc.testing.integration.Test.StreamingOutputCallResponse>) methodMap.get(
zhangkun835e607852015-01-22 12:31:56 -0800101 CONFIG.streamingOutputCall.getName());
nmittlerf8314582015-01-27 10:25:39 -0800102 streamingInputCall = (io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
103 io.grpc.testing.integration.Test.StreamingInputCallResponse>) methodMap.get(
zhangkun835e607852015-01-22 12:31:56 -0800104 CONFIG.streamingInputCall.getName());
nmittlerf8314582015-01-27 10:25:39 -0800105 fullDuplexCall = (io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
106 io.grpc.testing.integration.Test.StreamingOutputCallResponse>) methodMap.get(
zhangkun835e607852015-01-22 12:31:56 -0800107 CONFIG.fullDuplexCall.getName());
nmittlerf8314582015-01-27 10:25:39 -0800108 halfDuplexCall = (io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
109 io.grpc.testing.integration.Test.StreamingOutputCallResponse>) methodMap.get(
zhangkun835e607852015-01-22 12:31:56 -0800110 CONFIG.halfDuplexCall.getName());
111 }
112
113 @java.lang.Override
114 protected TestServiceServiceDescriptor build(
nmittlerf8314582015-01-27 10:25:39 -0800115 java.util.Map<java.lang.String, io.grpc.MethodDescriptor<?, ?>> methodMap) {
zhangkun835e607852015-01-22 12:31:56 -0800116 return new TestServiceServiceDescriptor(methodMap);
117 }
118
119 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800120 public com.google.common.collect.ImmutableList<io.grpc.MethodDescriptor<?, ?>> methods() {
121 return com.google.common.collect.ImmutableList.<io.grpc.MethodDescriptor<?, ?>>of(
zhangkun835e607852015-01-22 12:31:56 -0800122 unaryCall,
123 streamingOutputCall,
124 streamingInputCall,
125 fullDuplexCall,
126 halfDuplexCall);
127 }
128 }
129
130 public static interface TestService {
131
nmittlerf8314582015-01-27 10:25:39 -0800132 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
133 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800134
nmittlerf8314582015-01-27 10:25:39 -0800135 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
136 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800137
nmittlerf8314582015-01-27 10:25:39 -0800138 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
139 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800140
nmittlerf8314582015-01-27 10:25:39 -0800141 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullDuplexCall(
142 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800143
nmittlerf8314582015-01-27 10:25:39 -0800144 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfDuplexCall(
145 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800146 }
147
148 public static interface TestServiceBlockingClient {
149
nmittlerf8314582015-01-27 10:25:39 -0800150 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800151
nmittlerf8314582015-01-27 10:25:39 -0800152 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
153 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800154 }
155
156 public static interface TestServiceFutureClient {
157
nmittlerf8314582015-01-27 10:25:39 -0800158 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
159 io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800160 }
161
162 public static class TestServiceStub extends
nmittlerf8314582015-01-27 10:25:39 -0800163 io.grpc.stub.AbstractStub<TestServiceStub, TestServiceServiceDescriptor>
zhangkun835e607852015-01-22 12:31:56 -0800164 implements TestService {
nmittlerf8314582015-01-27 10:25:39 -0800165 private TestServiceStub(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800166 TestServiceServiceDescriptor config) {
167 super(channel, config);
168 }
169
170 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800171 protected TestServiceStub build(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800172 TestServiceServiceDescriptor config) {
173 return new TestServiceStub(channel, config);
174 }
175
176 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800177 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
178 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800179 asyncUnaryCall(
180 channel.newCall(config.unaryCall), request, responseObserver);
181 }
182
183 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800184 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
185 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800186 asyncServerStreamingCall(
187 channel.newCall(config.streamingOutputCall), request, responseObserver);
188 }
189
190 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800191 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
192 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800193 return asyncClientStreamingCall(
194 channel.newCall(config.streamingInputCall), responseObserver);
195 }
196
197 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800198 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullDuplexCall(
199 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800200 return duplexStreamingCall(
201 channel.newCall(config.fullDuplexCall), responseObserver);
202 }
203
204 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800205 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfDuplexCall(
206 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800207 return duplexStreamingCall(
208 channel.newCall(config.halfDuplexCall), responseObserver);
209 }
210 }
211
212 public static class TestServiceBlockingStub extends
nmittlerf8314582015-01-27 10:25:39 -0800213 io.grpc.stub.AbstractStub<TestServiceBlockingStub, TestServiceServiceDescriptor>
zhangkun835e607852015-01-22 12:31:56 -0800214 implements TestServiceBlockingClient {
nmittlerf8314582015-01-27 10:25:39 -0800215 private TestServiceBlockingStub(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800216 TestServiceServiceDescriptor config) {
217 super(channel, config);
218 }
219
220 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800221 protected TestServiceBlockingStub build(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800222 TestServiceServiceDescriptor config) {
223 return new TestServiceBlockingStub(channel, config);
224 }
225
226 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800227 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800228 return blockingUnaryCall(
229 channel.newCall(config.unaryCall), request);
230 }
231
232 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800233 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
234 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800235 return blockingServerStreamingCall(
236 channel.newCall(config.streamingOutputCall), request);
237 }
238 }
239
240 public static class TestServiceFutureStub extends
nmittlerf8314582015-01-27 10:25:39 -0800241 io.grpc.stub.AbstractStub<TestServiceFutureStub, TestServiceServiceDescriptor>
zhangkun835e607852015-01-22 12:31:56 -0800242 implements TestServiceFutureClient {
nmittlerf8314582015-01-27 10:25:39 -0800243 private TestServiceFutureStub(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800244 TestServiceServiceDescriptor config) {
245 super(channel, config);
246 }
247
248 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800249 protected TestServiceFutureStub build(io.grpc.Channel channel,
zhangkun835e607852015-01-22 12:31:56 -0800250 TestServiceServiceDescriptor config) {
251 return new TestServiceFutureStub(channel, config);
252 }
253
254 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800255 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
256 io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800257 return unaryFutureCall(
258 channel.newCall(config.unaryCall), request);
259 }
260 }
261
nmittlerf8314582015-01-27 10:25:39 -0800262 public static io.grpc.ServerServiceDefinition bindService(
zhangkun835e607852015-01-22 12:31:56 -0800263 final TestService serviceImpl) {
nmittlerf8314582015-01-27 10:25:39 -0800264 return io.grpc.ServerServiceDefinition.builder("grpc.testing.TestService")
zhangkun835e607852015-01-22 12:31:56 -0800265 .addMethod(createMethodDefinition(
266 METHOD_UNARY_CALL,
267 asyncUnaryRequestCall(
nmittlerf8314582015-01-27 10:25:39 -0800268 new io.grpc.stub.ServerCalls.UnaryRequestMethod<
269 io.grpc.testing.integration.Test.SimpleRequest,
270 io.grpc.testing.integration.Test.SimpleResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800271 @java.lang.Override
272 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800273 io.grpc.testing.integration.Test.SimpleRequest request,
274 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800275 serviceImpl.unaryCall(request, responseObserver);
276 }
277 })))
278 .addMethod(createMethodDefinition(
279 METHOD_STREAMING_OUTPUT_CALL,
280 asyncUnaryRequestCall(
nmittlerf8314582015-01-27 10:25:39 -0800281 new io.grpc.stub.ServerCalls.UnaryRequestMethod<
282 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
283 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800284 @java.lang.Override
285 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800286 io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
287 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800288 serviceImpl.streamingOutputCall(request, responseObserver);
289 }
290 })))
291 .addMethod(createMethodDefinition(
292 METHOD_STREAMING_INPUT_CALL,
293 asyncStreamingRequestCall(
nmittlerf8314582015-01-27 10:25:39 -0800294 new io.grpc.stub.ServerCalls.StreamingRequestMethod<
295 io.grpc.testing.integration.Test.StreamingInputCallRequest,
296 io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800297 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800298 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> invoke(
299 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800300 return serviceImpl.streamingInputCall(responseObserver);
301 }
302 })))
303 .addMethod(createMethodDefinition(
304 METHOD_FULL_DUPLEX_CALL,
305 asyncStreamingRequestCall(
nmittlerf8314582015-01-27 10:25:39 -0800306 new io.grpc.stub.ServerCalls.StreamingRequestMethod<
307 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
308 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800309 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800310 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
311 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800312 return serviceImpl.fullDuplexCall(responseObserver);
313 }
314 })))
315 .addMethod(createMethodDefinition(
316 METHOD_HALF_DUPLEX_CALL,
317 asyncStreamingRequestCall(
nmittlerf8314582015-01-27 10:25:39 -0800318 new io.grpc.stub.ServerCalls.StreamingRequestMethod<
319 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
320 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800321 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800322 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
323 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800324 return serviceImpl.halfDuplexCall(responseObserver);
325 }
326 }))).build();
327 }
328}