blob: 923754810a90bad1d08f51d1890641e69236da06 [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
David P. Baker66b984c2015-08-21 13:00:26 -040019 public static final String SERVICE_NAME = "grpc.testing.TestService";
20
Kun Zhang73acc732015-06-26 16:32:05 -070021 // Static method descriptors that strictly reflect the proto.
Kun Zhang5bb0ea92015-08-31 09:56:44 -070022 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070023 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
nmittlerf8314582015-01-27 10:25:39 -080024 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070025 io.grpc.MethodDescriptor.create(
26 io.grpc.MethodDescriptor.MethodType.UNARY,
Kun Zhang042b2782015-08-17 15:43:40 -070027 generateFullMethodName(
28 "grpc.testing.TestService", "UnaryCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070029 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.parser()),
30 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070031 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070032 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080033 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070034 io.grpc.MethodDescriptor.create(
35 io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070036 generateFullMethodName(
37 "grpc.testing.TestService", "StreamingOutputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070038 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
39 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070040 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070041 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080042 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070043 io.grpc.MethodDescriptor.create(
44 io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070045 generateFullMethodName(
46 "grpc.testing.TestService", "StreamingInputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070047 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.parser()),
48 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070049 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070050 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070051 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070052 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070053 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070054 generateFullMethodName(
55 "grpc.testing.TestService", "FullBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070056 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
57 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang5bb0ea92015-08-31 09:56:44 -070058 @io.grpc.ExperimentalApi
Kun Zhang73acc732015-06-26 16:32:05 -070059 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070060 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070061 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070062 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070063 generateFullMethodName(
64 "grpc.testing.TestService", "HalfBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070065 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
66 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
zhangkun835e607852015-01-22 12:31:56 -080067
nmittlerf8314582015-01-27 10:25:39 -080068 public static TestServiceStub newStub(io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070069 return new TestServiceStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080070 }
71
72 public static TestServiceBlockingStub newBlockingStub(
nmittlerf8314582015-01-27 10:25:39 -080073 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070074 return new TestServiceBlockingStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080075 }
76
77 public static TestServiceFutureStub newFutureStub(
nmittlerf8314582015-01-27 10:25:39 -080078 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070079 return new TestServiceFutureStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080080 }
81
82 public static interface TestService {
83
nmittlerf8314582015-01-27 10:25:39 -080084 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
85 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080086
nmittlerf8314582015-01-27 10:25:39 -080087 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
88 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080089
nmittlerf8314582015-01-27 10:25:39 -080090 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
91 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080092
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070093 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080094 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080095
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070096 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080097 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080098 }
99
100 public static interface TestServiceBlockingClient {
101
nmittlerf8314582015-01-27 10:25:39 -0800102 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800103
nmittlerf8314582015-01-27 10:25:39 -0800104 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
105 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800106 }
107
108 public static interface TestServiceFutureClient {
109
nmittlerf8314582015-01-27 10:25:39 -0800110 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
111 io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800112 }
113
Kun Zhangeb929672015-07-17 17:02:58 -0700114 public static class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub>
zhangkun835e607852015-01-22 12:31:56 -0800115 implements TestService {
Kun Zhangeb929672015-07-17 17:02:58 -0700116 private TestServiceStub(io.grpc.Channel channel) {
117 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800118 }
119
Kun Zhangd3c5b002015-06-25 20:24:01 -0700120 private TestServiceStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700121 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700122 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700123 }
124
zhangkun835e607852015-01-22 12:31:56 -0800125 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800126 protected TestServiceStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700127 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700128 return new TestServiceStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800129 }
130
131 @java.lang.Override
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 asyncUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700135 channel.newCall(METHOD_UNARY_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800136 }
137
138 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800139 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
140 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800141 asyncServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700142 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800143 }
144
145 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800146 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
147 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800148 return asyncClientStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700149 channel.newCall(METHOD_STREAMING_INPUT_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800150 }
151
152 @java.lang.Override
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700153 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -0800154 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700155 return asyncBidiStreamingCall(
156 channel.newCall(METHOD_FULL_BIDI_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800157 }
158
159 @java.lang.Override
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700160 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
nmittlerf8314582015-01-27 10:25:39 -0800161 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700162 return asyncBidiStreamingCall(
163 channel.newCall(METHOD_HALF_BIDI_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800164 }
165 }
166
Kun Zhangeb929672015-07-17 17:02:58 -0700167 public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub>
zhangkun835e607852015-01-22 12:31:56 -0800168 implements TestServiceBlockingClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700169 private TestServiceBlockingStub(io.grpc.Channel channel) {
170 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800171 }
172
Kun Zhangd3c5b002015-06-25 20:24:01 -0700173 private TestServiceBlockingStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700174 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700175 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700176 }
177
zhangkun835e607852015-01-22 12:31:56 -0800178 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800179 protected TestServiceBlockingStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700180 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700181 return new TestServiceBlockingStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800182 }
183
184 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800185 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800186 return blockingUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700187 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800188 }
189
190 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800191 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
192 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800193 return blockingServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700194 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800195 }
196 }
197
Kun Zhangeb929672015-07-17 17:02:58 -0700198 public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub>
zhangkun835e607852015-01-22 12:31:56 -0800199 implements TestServiceFutureClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700200 private TestServiceFutureStub(io.grpc.Channel channel) {
201 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800202 }
203
Kun Zhangd3c5b002015-06-25 20:24:01 -0700204 private TestServiceFutureStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700205 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700206 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700207 }
208
zhangkun835e607852015-01-22 12:31:56 -0800209 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800210 protected TestServiceFutureStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700211 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700212 return new TestServiceFutureStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800213 }
214
215 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800216 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
217 io.grpc.testing.integration.Test.SimpleRequest request) {
Kun Zhang686dcff2015-07-16 12:34:37 -0700218 return futureUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700219 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800220 }
221 }
222
nmittlerf8314582015-01-27 10:25:39 -0800223 public static io.grpc.ServerServiceDefinition bindService(
zhangkun835e607852015-01-22 12:31:56 -0800224 final TestService serviceImpl) {
David P. Baker66b984c2015-08-21 13:00:26 -0400225 return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME)
Kun Zhang73acc732015-06-26 16:32:05 -0700226 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800227 METHOD_UNARY_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700228 asyncUnaryCall(
229 new io.grpc.stub.ServerCalls.UnaryMethod<
nmittlerf8314582015-01-27 10:25:39 -0800230 io.grpc.testing.integration.Test.SimpleRequest,
231 io.grpc.testing.integration.Test.SimpleResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800232 @java.lang.Override
233 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800234 io.grpc.testing.integration.Test.SimpleRequest request,
235 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800236 serviceImpl.unaryCall(request, responseObserver);
237 }
238 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700239 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800240 METHOD_STREAMING_OUTPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700241 asyncServerStreamingCall(
242 new io.grpc.stub.ServerCalls.ServerStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800243 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
244 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800245 @java.lang.Override
246 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800247 io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
248 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800249 serviceImpl.streamingOutputCall(request, responseObserver);
250 }
251 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700252 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800253 METHOD_STREAMING_INPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700254 asyncClientStreamingCall(
255 new io.grpc.stub.ServerCalls.ClientStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800256 io.grpc.testing.integration.Test.StreamingInputCallRequest,
257 io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800258 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800259 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> invoke(
260 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800261 return serviceImpl.streamingInputCall(responseObserver);
262 }
263 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700264 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700265 METHOD_FULL_BIDI_CALL,
266 asyncBidiStreamingCall(
267 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800268 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
269 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800270 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800271 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
272 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700273 return serviceImpl.fullBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800274 }
275 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700276 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700277 METHOD_HALF_BIDI_CALL,
278 asyncBidiStreamingCall(
279 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800280 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
281 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800282 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800283 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
284 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700285 return serviceImpl.halfBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800286 }
287 }))).build();
288 }
289}