blob: 8bc7673ba3496077d3483220be1695a7e50090fe [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.
20 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
nmittlerf8314582015-01-27 10:25:39 -080021 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070022 io.grpc.MethodDescriptor.create(
23 io.grpc.MethodDescriptor.MethodType.UNARY,
Kun Zhang042b2782015-08-17 15:43:40 -070024 generateFullMethodName(
25 "grpc.testing.TestService", "UnaryCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070026 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.parser()),
27 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070028 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080029 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070030 io.grpc.MethodDescriptor.create(
31 io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070032 generateFullMethodName(
33 "grpc.testing.TestService", "StreamingOutputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070034 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
35 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070036 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080037 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070038 io.grpc.MethodDescriptor.create(
39 io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070040 generateFullMethodName(
41 "grpc.testing.TestService", "StreamingInputCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070042 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.parser()),
43 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070044 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070045 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070046 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070047 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070048 generateFullMethodName(
49 "grpc.testing.TestService", "FullBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070050 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
51 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070052 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070053 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_BIDI_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070054 io.grpc.MethodDescriptor.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070055 io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
Kun Zhang042b2782015-08-17 15:43:40 -070056 generateFullMethodName(
57 "grpc.testing.TestService", "HalfBidiCall"),
Kun Zhang79f3f022015-07-15 16:55:26 -070058 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
59 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
zhangkun835e607852015-01-22 12:31:56 -080060
nmittlerf8314582015-01-27 10:25:39 -080061 public static TestServiceStub newStub(io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070062 return new TestServiceStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080063 }
64
65 public static TestServiceBlockingStub newBlockingStub(
nmittlerf8314582015-01-27 10:25:39 -080066 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070067 return new TestServiceBlockingStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080068 }
69
70 public static TestServiceFutureStub newFutureStub(
nmittlerf8314582015-01-27 10:25:39 -080071 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070072 return new TestServiceFutureStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080073 }
74
75 public static interface TestService {
76
nmittlerf8314582015-01-27 10:25:39 -080077 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
78 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080079
nmittlerf8314582015-01-27 10:25:39 -080080 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
81 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080082
nmittlerf8314582015-01-27 10:25:39 -080083 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
84 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080085
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070086 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080087 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080088
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -070089 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfBidiCall(
nmittlerf8314582015-01-27 10:25:39 -080090 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080091 }
92
93 public static interface TestServiceBlockingClient {
94
nmittlerf8314582015-01-27 10:25:39 -080095 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -080096
nmittlerf8314582015-01-27 10:25:39 -080097 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
98 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
zhangkun835e607852015-01-22 12:31:56 -080099 }
100
101 public static interface TestServiceFutureClient {
102
nmittlerf8314582015-01-27 10:25:39 -0800103 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
104 io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -0800105 }
106
Kun Zhangeb929672015-07-17 17:02:58 -0700107 public static class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub>
zhangkun835e607852015-01-22 12:31:56 -0800108 implements TestService {
Kun Zhangeb929672015-07-17 17:02:58 -0700109 private TestServiceStub(io.grpc.Channel channel) {
110 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800111 }
112
Kun Zhangd3c5b002015-06-25 20:24:01 -0700113 private TestServiceStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700114 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700115 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700116 }
117
zhangkun835e607852015-01-22 12:31:56 -0800118 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800119 protected TestServiceStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700120 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700121 return new TestServiceStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800122 }
123
124 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800125 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
126 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800127 asyncUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700128 channel.newCall(METHOD_UNARY_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800129 }
130
131 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800132 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
133 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800134 asyncServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700135 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800136 }
137
138 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800139 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
140 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800141 return asyncClientStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700142 channel.newCall(METHOD_STREAMING_INPUT_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800143 }
144
145 @java.lang.Override
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700146 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullBidiCall(
nmittlerf8314582015-01-27 10:25:39 -0800147 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700148 return asyncBidiStreamingCall(
149 channel.newCall(METHOD_FULL_BIDI_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> halfBidiCall(
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_HALF_BIDI_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800157 }
158 }
159
Kun Zhangeb929672015-07-17 17:02:58 -0700160 public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub>
zhangkun835e607852015-01-22 12:31:56 -0800161 implements TestServiceBlockingClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700162 private TestServiceBlockingStub(io.grpc.Channel channel) {
163 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800164 }
165
Kun Zhangd3c5b002015-06-25 20:24:01 -0700166 private TestServiceBlockingStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700167 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700168 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700169 }
170
zhangkun835e607852015-01-22 12:31:56 -0800171 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800172 protected TestServiceBlockingStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700173 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700174 return new TestServiceBlockingStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800175 }
176
177 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800178 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800179 return blockingUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700180 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800181 }
182
183 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800184 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
185 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800186 return blockingServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700187 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800188 }
189 }
190
Kun Zhangeb929672015-07-17 17:02:58 -0700191 public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub>
zhangkun835e607852015-01-22 12:31:56 -0800192 implements TestServiceFutureClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700193 private TestServiceFutureStub(io.grpc.Channel channel) {
194 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800195 }
196
Kun Zhangd3c5b002015-06-25 20:24:01 -0700197 private TestServiceFutureStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700198 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700199 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700200 }
201
zhangkun835e607852015-01-22 12:31:56 -0800202 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800203 protected TestServiceFutureStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700204 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700205 return new TestServiceFutureStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800206 }
207
208 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800209 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
210 io.grpc.testing.integration.Test.SimpleRequest request) {
Kun Zhang686dcff2015-07-16 12:34:37 -0700211 return futureUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700212 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800213 }
214 }
215
nmittlerf8314582015-01-27 10:25:39 -0800216 public static io.grpc.ServerServiceDefinition bindService(
zhangkun835e607852015-01-22 12:31:56 -0800217 final TestService serviceImpl) {
nmittlerf8314582015-01-27 10:25:39 -0800218 return io.grpc.ServerServiceDefinition.builder("grpc.testing.TestService")
Kun Zhang73acc732015-06-26 16:32:05 -0700219 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800220 METHOD_UNARY_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700221 asyncUnaryCall(
222 new io.grpc.stub.ServerCalls.UnaryMethod<
nmittlerf8314582015-01-27 10:25:39 -0800223 io.grpc.testing.integration.Test.SimpleRequest,
224 io.grpc.testing.integration.Test.SimpleResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800225 @java.lang.Override
226 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800227 io.grpc.testing.integration.Test.SimpleRequest request,
228 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800229 serviceImpl.unaryCall(request, responseObserver);
230 }
231 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700232 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800233 METHOD_STREAMING_OUTPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700234 asyncServerStreamingCall(
235 new io.grpc.stub.ServerCalls.ServerStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800236 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
237 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800238 @java.lang.Override
239 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800240 io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
241 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800242 serviceImpl.streamingOutputCall(request, responseObserver);
243 }
244 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700245 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800246 METHOD_STREAMING_INPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700247 asyncClientStreamingCall(
248 new io.grpc.stub.ServerCalls.ClientStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800249 io.grpc.testing.integration.Test.StreamingInputCallRequest,
250 io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800251 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800252 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> invoke(
253 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800254 return serviceImpl.streamingInputCall(responseObserver);
255 }
256 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700257 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700258 METHOD_FULL_BIDI_CALL,
259 asyncBidiStreamingCall(
260 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800261 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
262 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800263 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800264 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
265 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700266 return serviceImpl.fullBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800267 }
268 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700269 .addMethod(io.grpc.ServerMethodDefinition.create(
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700270 METHOD_HALF_BIDI_CALL,
271 asyncBidiStreamingCall(
272 new io.grpc.stub.ServerCalls.BidiStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800273 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
274 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800275 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800276 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
277 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Carl Mastrangelo67fc45d2015-08-05 13:56:50 -0700278 return serviceImpl.halfBidiCall(responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800279 }
280 }))).build();
281 }
282}