blob: 105aaba63c45df65008e29a3a84ac1ddc9203352 [file] [log] [blame]
nmittlerf8314582015-01-27 10:25:39 -08001package io.grpc.testing.integration;
zhangkun835e607852015-01-22 12:31:56 -08002
Kun Zhang2ee4d022015-06-04 16:39:25 -07003import static io.grpc.stub.ClientCalls.asyncUnaryCall;
4import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
5import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -07006import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
Kun Zhang2ee4d022015-06-04 16:39:25 -07007import static io.grpc.stub.ClientCalls.blockingUnaryCall;
8import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
Kun Zhang686dcff2015-07-16 12:34:37 -07009import static io.grpc.stub.ClientCalls.futureUnaryCall;
Kun Zhang042b2782015-08-17 15:43:40 -070010import static io.grpc.MethodDescriptor.generateFullMethodName;
Kun Zhang867c76d2015-07-13 17:15:34 -070011import static io.grpc.stub.ServerCalls.asyncUnaryCall;
12import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
13import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070014import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
zhangkun835e607852015-01-22 12:31:56 -080015
16@javax.annotation.Generated("by gRPC proto compiler")
17public class TestServiceGrpc {
18
Kun Zhang73acc732015-06-26 16:32:05 -070019 // Static method descriptors that strictly reflect the proto.
Kun Zhang5bb0ea92015-08-31 09:56:44 -070020 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070021 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
nmittlerf8314582015-01-27 10:25:39 -080022 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070023 io.grpc.MethodDescriptor.create(
24 io.grpc.MethodDescriptor.MethodType.UNARY,
Kun Zhang042b2782015-08-17 15:43:40 -070025 generateFullMethodName(
26 "grpc.testing.TestService", "UnaryCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070027 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.parser()),
28 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070029 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070030 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080031 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070032 io.grpc.MethodDescriptor.create(
33 io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070034 generateFullMethodName(
35 "grpc.testing.TestService", "StreamingOutputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070036 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
37 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070038 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070039 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080040 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070041 io.grpc.MethodDescriptor.create(
42 io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070043 generateFullMethodName(
44 "grpc.testing.TestService", "StreamingInputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070045 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.parser()),
46 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070047 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070048 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070049 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070050 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070051 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070052 generateFullMethodName(
53 "grpc.testing.TestService", "FullBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070054 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
55 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070056 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070057 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070058 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070059 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070060 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070061 generateFullMethodName(
62 "grpc.testing.TestService", "HalfBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070063 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
64 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
zhangkun835e607852015-01-22 12:31:56 -080065
nmittlerf8314582015-01-27 10:25:39 -080066 public static TestServiceStub newStub(io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070067 return new TestServiceStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080068 }
69
70 public static TestServiceBlockingStub newBlockingStub(
nmittlerf8314582015-01-27 10:25:39 -080071 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070072 return new TestServiceBlockingStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080073 }
74
75 public static TestServiceFutureStub newFutureStub(
nmittlerf8314582015-01-27 10:25:39 -080076 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070077 return new TestServiceFutureStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080078 }
79
80 public static interface TestService {
81
nmittlerf8314582015-01-27 10:25:39 -080082 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
83 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080084
nmittlerf8314582015-01-27 10:25:39 -080085 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
86 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080087
nmittlerf8314582015-01-27 10:25:39 -080088 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
89 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080090
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070091 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080092 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080093
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070094 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080095 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080096 }
97
98 public static interface TestServiceBlockingClient {
99
nmittlerf8314582015-01-27 10:25:39 -0800100 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800101
nmittlerf8314582015-01-27 10:25:39 -0800102 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
103 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800104 }
105
106 public static interface TestServiceFutureClient {
107
nmittlerf8314582015-01-27 10:25:39 -0800108 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
109 io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800110 }
111
Kun Zhangeb929672015-07-17 17:02:58 -0700112 public static class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub>
zhangkun835e607852015-01-22 12:31:56 -0800113 implements TestService {
Kun Zhangeb929672015-07-17 17:02:58 -0700114 private TestServiceStub(io.grpc.Channel channel) {
115 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800116 }
117
Kun Zhangd3c5b002015-06-25 20:24:01 -0700118 private TestServiceStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700119 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700120 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700121 }
122
zhangkun835e607852015-01-22 12:31:56 -0800123 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800124 protected TestServiceStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700125 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700126 return new TestServiceStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800127 }
128
129 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800130 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
131 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800132 asyncUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700133 channel.newCall(METHOD_UNARY_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800134 }
135
136 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800137 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
138 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800139 asyncServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700140 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800141 }
142
143 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800144 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
145 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800146 return asyncClientStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700147 channel.newCall(METHOD_STREAMING_INPUT_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800148 }
149
150 @java.lang.Override
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700151 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -0800152 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700153 return asyncBidiStreamingCall(
154 channel.newCall(METHOD_FULL_BIDI_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800155 }
156
157 @java.lang.Override
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700158 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
nmittlerf8314582015-01-27 10:25:39 -0800159 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700160 return asyncBidiStreamingCall(
161 channel.newCall(METHOD_HALF_BIDI_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800162 }
163 }
164
Kun Zhangeb929672015-07-17 17:02:58 -0700165 public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub>
zhangkun835e607852015-01-22 12:31:56 -0800166 implements TestServiceBlockingClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700167 private TestServiceBlockingStub(io.grpc.Channel channel) {
168 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800169 }
170
Kun Zhangd3c5b002015-06-25 20:24:01 -0700171 private TestServiceBlockingStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700172 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700173 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700174 }
175
zhangkun835e607852015-01-22 12:31:56 -0800176 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800177 protected TestServiceBlockingStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700178 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700179 return new TestServiceBlockingStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800180 }
181
182 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800183 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800184 return blockingUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700185 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800186 }
187
188 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800189 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
190 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800191 return blockingServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700192 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800193 }
194 }
195
Kun Zhangeb929672015-07-17 17:02:58 -0700196 public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub>
zhangkun835e607852015-01-22 12:31:56 -0800197 implements TestServiceFutureClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700198 private TestServiceFutureStub(io.grpc.Channel channel) {
199 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800200 }
201
Kun Zhangd3c5b002015-06-25 20:24:01 -0700202 private TestServiceFutureStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700203 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700204 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700205 }
206
zhangkun835e607852015-01-22 12:31:56 -0800207 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800208 protected TestServiceFutureStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700209 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700210 return new TestServiceFutureStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800211 }
212
213 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800214 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
215 io.grpc.testing.integration.Test.SimpleRequest request) {
Kun Zhang686dcff2015-07-16 12:34:37 -0700216 return futureUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700217 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800218 }
219 }
220
nmittlerf8314582015-01-27 10:25:39 -0800221 public static io.grpc.ServerServiceDefinition bindService(
zhangkun835e607852015-01-22 12:31:56 -0800222 final TestService serviceImpl) {
nmittlerf8314582015-01-27 10:25:39 -0800223 return io.grpc.ServerServiceDefinition.builder("grpc.testing.TestService")
Kun Zhang73acc732015-06-26 16:32:05 -0700224 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800225 METHOD_UNARY_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700226 asyncUnaryCall(
227 new io.grpc.stub.ServerCalls.UnaryMethod<
nmittlerf8314582015-01-27 10:25:39 -0800228 io.grpc.testing.integration.Test.SimpleRequest,
229 io.grpc.testing.integration.Test.SimpleResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800230 @java.lang.Override
231 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800232 io.grpc.testing.integration.Test.SimpleRequest request,
233 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800234 serviceImpl.unaryCall(request, responseObserver);
235 }
236 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700237 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800238 METHOD_STREAMING_OUTPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700239 asyncServerStreamingCall(
240 new io.grpc.stub.ServerCalls.ServerStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800241 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
242 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800243 @java.lang.Override
244 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800245 io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
246 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800247 serviceImpl.streamingOutputCall(request, responseObserver);
248 }
249 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700250 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800251 METHOD_STREAMING_INPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700252 asyncClientStreamingCall(
253 new io.grpc.stub.ServerCalls.ClientStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800254 io.grpc.testing.integration.Test.StreamingInputCallRequest,
255 io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800256 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800257 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> invoke(
258 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800259 return serviceImpl.streamingInputCall(responseObserver);
260 }
261 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700262 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700263 METHOD_FULL_BIDI_CALL,
264 asyncBidiStreamingCall(
265 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800266 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
267 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800268 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800269 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
270 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700271 return serviceImpl.fullBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800272 }
273 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700274 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700275 METHOD_HALF_BIDI_CALL,
276 asyncBidiStreamingCall(
277 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800278 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
279 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800280 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800281 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
282 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700283 return serviceImpl.halfBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800284 }
285 }))).build();
286 }
287}