blob: dcf1d831e263d22c8f2a9c824da4669df7603405 [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;
Kun Zhang690b26e2015-07-15 17:20:29 -07006import static io.grpc.stub.ClientCalls.asyncDuplexStreamingCall;
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 Zhang867c76d2015-07-13 17:15:34 -070010import static io.grpc.stub.ServerCalls.asyncUnaryCall;
11import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
12import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
13import static io.grpc.stub.ServerCalls.asyncDuplexStreamingCall;
zhangkun835e607852015-01-22 12:31:56 -080014
15@javax.annotation.Generated("by gRPC proto compiler")
16public class TestServiceGrpc {
17
Kun Zhang73acc732015-06-26 16:32:05 -070018 // Static method descriptors that strictly reflect the proto.
19 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.SimpleRequest,
nmittlerf8314582015-01-27 10:25:39 -080020 io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070021 io.grpc.MethodDescriptor.create(
22 io.grpc.MethodDescriptor.MethodType.UNARY,
23 "grpc.testing.TestService", "UnaryCall",
Kun Zhang79f3f022015-07-15 16:55:26 -070024 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.parser()),
25 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070026 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080027 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070028 io.grpc.MethodDescriptor.create(
29 io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING,
30 "grpc.testing.TestService", "StreamingOutputCall",
Kun Zhang79f3f022015-07-15 16:55:26 -070031 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
32 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070033 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingInputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080034 io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070035 io.grpc.MethodDescriptor.create(
36 io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING,
37 "grpc.testing.TestService", "StreamingInputCall",
Kun Zhang79f3f022015-07-15 16:55:26 -070038 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.parser()),
39 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070040 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080041 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070042 io.grpc.MethodDescriptor.create(
43 io.grpc.MethodDescriptor.MethodType.DUPLEX_STREAMING,
44 "grpc.testing.TestService", "FullDuplexCall",
Kun Zhang79f3f022015-07-15 16:55:26 -070045 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
46 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
Kun Zhang73acc732015-06-26 16:32:05 -070047 public static final io.grpc.MethodDescriptor<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
nmittlerf8314582015-01-27 10:25:39 -080048 io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
Kun Zhang73acc732015-06-26 16:32:05 -070049 io.grpc.MethodDescriptor.create(
50 io.grpc.MethodDescriptor.MethodType.DUPLEX_STREAMING,
51 "grpc.testing.TestService", "HalfDuplexCall",
Kun Zhang79f3f022015-07-15 16:55:26 -070052 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.parser()),
53 io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.parser()));
zhangkun835e607852015-01-22 12:31:56 -080054
nmittlerf8314582015-01-27 10:25:39 -080055 public static TestServiceStub newStub(io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070056 return new TestServiceStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080057 }
58
59 public static TestServiceBlockingStub newBlockingStub(
nmittlerf8314582015-01-27 10:25:39 -080060 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070061 return new TestServiceBlockingStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080062 }
63
64 public static TestServiceFutureStub newFutureStub(
nmittlerf8314582015-01-27 10:25:39 -080065 io.grpc.Channel channel) {
Kun Zhangeb929672015-07-17 17:02:58 -070066 return new TestServiceFutureStub(channel);
zhangkun835e607852015-01-22 12:31:56 -080067 }
68
69 public static interface TestService {
70
nmittlerf8314582015-01-27 10:25:39 -080071 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
72 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080073
nmittlerf8314582015-01-27 10:25:39 -080074 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
75 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080076
nmittlerf8314582015-01-27 10:25:39 -080077 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
78 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080079
nmittlerf8314582015-01-27 10:25:39 -080080 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullDuplexCall(
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.StreamingOutputCallRequest> halfDuplexCall(
84 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver);
zhangkun835e607852015-01-22 12:31:56 -080085 }
86
87 public static interface TestServiceBlockingClient {
88
nmittlerf8314582015-01-27 10:25:39 -080089 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -080090
nmittlerf8314582015-01-27 10:25:39 -080091 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
92 io.grpc.testing.integration.Test.StreamingOutputCallRequest request);
zhangkun835e607852015-01-22 12:31:56 -080093 }
94
95 public static interface TestServiceFutureClient {
96
nmittlerf8314582015-01-27 10:25:39 -080097 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
98 io.grpc.testing.integration.Test.SimpleRequest request);
zhangkun835e607852015-01-22 12:31:56 -080099 }
100
Kun Zhangeb929672015-07-17 17:02:58 -0700101 public static class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub>
zhangkun835e607852015-01-22 12:31:56 -0800102 implements TestService {
Kun Zhangeb929672015-07-17 17:02:58 -0700103 private TestServiceStub(io.grpc.Channel channel) {
104 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800105 }
106
Kun Zhangd3c5b002015-06-25 20:24:01 -0700107 private TestServiceStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700108 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700109 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700110 }
111
zhangkun835e607852015-01-22 12:31:56 -0800112 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800113 protected TestServiceStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700114 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700115 return new TestServiceStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800116 }
117
118 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800119 public void unaryCall(io.grpc.testing.integration.Test.SimpleRequest request,
120 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800121 asyncUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700122 channel.newCall(METHOD_UNARY_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800123 }
124
125 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800126 public void streamingOutputCall(io.grpc.testing.integration.Test.StreamingOutputCallRequest request,
127 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800128 asyncServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700129 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request, responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800130 }
131
132 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800133 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> streamingInputCall(
134 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800135 return asyncClientStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700136 channel.newCall(METHOD_STREAMING_INPUT_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800137 }
138
139 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800140 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> fullDuplexCall(
141 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Kun Zhang690b26e2015-07-15 17:20:29 -0700142 return asyncDuplexStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700143 channel.newCall(METHOD_FULL_DUPLEX_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800144 }
145
146 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800147 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> halfDuplexCall(
148 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
Kun Zhang690b26e2015-07-15 17:20:29 -0700149 return asyncDuplexStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700150 channel.newCall(METHOD_HALF_DUPLEX_CALL, callOptions), responseObserver);
zhangkun835e607852015-01-22 12:31:56 -0800151 }
152 }
153
Kun Zhangeb929672015-07-17 17:02:58 -0700154 public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub>
zhangkun835e607852015-01-22 12:31:56 -0800155 implements TestServiceBlockingClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700156 private TestServiceBlockingStub(io.grpc.Channel channel) {
157 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800158 }
159
Kun Zhangd3c5b002015-06-25 20:24:01 -0700160 private TestServiceBlockingStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700161 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700162 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700163 }
164
zhangkun835e607852015-01-22 12:31:56 -0800165 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800166 protected TestServiceBlockingStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700167 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700168 return new TestServiceBlockingStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800169 }
170
171 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800172 public io.grpc.testing.integration.Test.SimpleResponse unaryCall(io.grpc.testing.integration.Test.SimpleRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800173 return blockingUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700174 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800175 }
176
177 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800178 public java.util.Iterator<io.grpc.testing.integration.Test.StreamingOutputCallResponse> streamingOutputCall(
179 io.grpc.testing.integration.Test.StreamingOutputCallRequest request) {
zhangkun835e607852015-01-22 12:31:56 -0800180 return blockingServerStreamingCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700181 channel.newCall(METHOD_STREAMING_OUTPUT_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800182 }
183 }
184
Kun Zhangeb929672015-07-17 17:02:58 -0700185 public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub>
zhangkun835e607852015-01-22 12:31:56 -0800186 implements TestServiceFutureClient {
Kun Zhangeb929672015-07-17 17:02:58 -0700187 private TestServiceFutureStub(io.grpc.Channel channel) {
188 super(channel);
zhangkun835e607852015-01-22 12:31:56 -0800189 }
190
Kun Zhangd3c5b002015-06-25 20:24:01 -0700191 private TestServiceFutureStub(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700192 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700193 super(channel, callOptions);
Kun Zhangd3c5b002015-06-25 20:24:01 -0700194 }
195
zhangkun835e607852015-01-22 12:31:56 -0800196 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800197 protected TestServiceFutureStub build(io.grpc.Channel channel,
Kun Zhangd3c5b002015-06-25 20:24:01 -0700198 io.grpc.CallOptions callOptions) {
Kun Zhangeb929672015-07-17 17:02:58 -0700199 return new TestServiceFutureStub(channel, callOptions);
zhangkun835e607852015-01-22 12:31:56 -0800200 }
201
202 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800203 public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.integration.Test.SimpleResponse> unaryCall(
204 io.grpc.testing.integration.Test.SimpleRequest request) {
Kun Zhang686dcff2015-07-16 12:34:37 -0700205 return futureUnaryCall(
Kun Zhangeb929672015-07-17 17:02:58 -0700206 channel.newCall(METHOD_UNARY_CALL, callOptions), request);
zhangkun835e607852015-01-22 12:31:56 -0800207 }
208 }
209
nmittlerf8314582015-01-27 10:25:39 -0800210 public static io.grpc.ServerServiceDefinition bindService(
zhangkun835e607852015-01-22 12:31:56 -0800211 final TestService serviceImpl) {
nmittlerf8314582015-01-27 10:25:39 -0800212 return io.grpc.ServerServiceDefinition.builder("grpc.testing.TestService")
Kun Zhang73acc732015-06-26 16:32:05 -0700213 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800214 METHOD_UNARY_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700215 asyncUnaryCall(
216 new io.grpc.stub.ServerCalls.UnaryMethod<
nmittlerf8314582015-01-27 10:25:39 -0800217 io.grpc.testing.integration.Test.SimpleRequest,
218 io.grpc.testing.integration.Test.SimpleResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800219 @java.lang.Override
220 public void invoke(
nmittlerf8314582015-01-27 10:25:39 -0800221 io.grpc.testing.integration.Test.SimpleRequest request,
222 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.SimpleResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800223 serviceImpl.unaryCall(request, responseObserver);
224 }
225 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700226 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800227 METHOD_STREAMING_OUTPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700228 asyncServerStreamingCall(
229 new io.grpc.stub.ServerCalls.ServerStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800230 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
231 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
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.StreamingOutputCallRequest request,
235 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800236 serviceImpl.streamingOutputCall(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_INPUT_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700241 asyncClientStreamingCall(
242 new io.grpc.stub.ServerCalls.ClientStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800243 io.grpc.testing.integration.Test.StreamingInputCallRequest,
244 io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800245 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800246 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallRequest> invoke(
247 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingInputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800248 return serviceImpl.streamingInputCall(responseObserver);
249 }
250 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700251 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800252 METHOD_FULL_DUPLEX_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700253 asyncDuplexStreamingCall(
254 new io.grpc.stub.ServerCalls.DuplexStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800255 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
256 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800257 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800258 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
259 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800260 return serviceImpl.fullDuplexCall(responseObserver);
261 }
262 })))
Kun Zhang73acc732015-06-26 16:32:05 -0700263 .addMethod(io.grpc.ServerMethodDefinition.create(
zhangkun835e607852015-01-22 12:31:56 -0800264 METHOD_HALF_DUPLEX_CALL,
Kun Zhang867c76d2015-07-13 17:15:34 -0700265 asyncDuplexStreamingCall(
266 new io.grpc.stub.ServerCalls.DuplexStreamingMethod<
nmittlerf8314582015-01-27 10:25:39 -0800267 io.grpc.testing.integration.Test.StreamingOutputCallRequest,
268 io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
zhangkun835e607852015-01-22 12:31:56 -0800269 @java.lang.Override
nmittlerf8314582015-01-27 10:25:39 -0800270 public io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallRequest> invoke(
271 io.grpc.stub.StreamObserver<io.grpc.testing.integration.Test.StreamingOutputCallResponse> responseObserver) {
zhangkun835e607852015-01-22 12:31:56 -0800272 return serviceImpl.halfDuplexCall(responseObserver);
273 }
274 }))).build();
275 }
276}