@@ -115,6 +115,68 @@ io.grpc.examples.GreeterOuterClass.HelloReply> getSayAuthOnlyHelloMethod() {
115115 return getSayAuthOnlyHelloMethod ;
116116 }
117117
118+ private static volatile io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person ,
119+ io .grpc .examples .GreeterOuterClass .Person > getHelloPersonValidResponseMethod ;
120+
121+ @ io .grpc .stub .annotations .RpcMethod (
122+ fullMethodName = SERVICE_NAME + '/' + "HelloPersonValidResponse" ,
123+ requestType = io .grpc .examples .GreeterOuterClass .Person .class ,
124+ responseType = io .grpc .examples .GreeterOuterClass .Person .class ,
125+ methodType = io .grpc .MethodDescriptor .MethodType .UNARY )
126+ public static io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person ,
127+ io .grpc .examples .GreeterOuterClass .Person > getHelloPersonValidResponseMethod () {
128+ io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person , io .grpc .examples .GreeterOuterClass .Person > getHelloPersonValidResponseMethod ;
129+ if ((getHelloPersonValidResponseMethod = GreeterGrpc .getHelloPersonValidResponseMethod ) == null ) {
130+ synchronized (GreeterGrpc .class ) {
131+ if ((getHelloPersonValidResponseMethod = GreeterGrpc .getHelloPersonValidResponseMethod ) == null ) {
132+ GreeterGrpc .getHelloPersonValidResponseMethod = getHelloPersonValidResponseMethod =
133+ io .grpc .MethodDescriptor .<io .grpc .examples .GreeterOuterClass .Person , io .grpc .examples .GreeterOuterClass .Person >newBuilder ()
134+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
135+ .setFullMethodName (generateFullMethodName (SERVICE_NAME , "HelloPersonValidResponse" ))
136+ .setSampledToLocalTracing (true )
137+ .setRequestMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
138+ io .grpc .examples .GreeterOuterClass .Person .getDefaultInstance ()))
139+ .setResponseMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
140+ io .grpc .examples .GreeterOuterClass .Person .getDefaultInstance ()))
141+ .setSchemaDescriptor (new GreeterMethodDescriptorSupplier ("HelloPersonValidResponse" ))
142+ .build ();
143+ }
144+ }
145+ }
146+ return getHelloPersonValidResponseMethod ;
147+ }
148+
149+ private static volatile io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person ,
150+ io .grpc .examples .GreeterOuterClass .Person > getHelloPersonInvalidResponseMethod ;
151+
152+ @ io .grpc .stub .annotations .RpcMethod (
153+ fullMethodName = SERVICE_NAME + '/' + "HelloPersonInvalidResponse" ,
154+ requestType = io .grpc .examples .GreeterOuterClass .Person .class ,
155+ responseType = io .grpc .examples .GreeterOuterClass .Person .class ,
156+ methodType = io .grpc .MethodDescriptor .MethodType .UNARY )
157+ public static io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person ,
158+ io .grpc .examples .GreeterOuterClass .Person > getHelloPersonInvalidResponseMethod () {
159+ io .grpc .MethodDescriptor <io .grpc .examples .GreeterOuterClass .Person , io .grpc .examples .GreeterOuterClass .Person > getHelloPersonInvalidResponseMethod ;
160+ if ((getHelloPersonInvalidResponseMethod = GreeterGrpc .getHelloPersonInvalidResponseMethod ) == null ) {
161+ synchronized (GreeterGrpc .class ) {
162+ if ((getHelloPersonInvalidResponseMethod = GreeterGrpc .getHelloPersonInvalidResponseMethod ) == null ) {
163+ GreeterGrpc .getHelloPersonInvalidResponseMethod = getHelloPersonInvalidResponseMethod =
164+ io .grpc .MethodDescriptor .<io .grpc .examples .GreeterOuterClass .Person , io .grpc .examples .GreeterOuterClass .Person >newBuilder ()
165+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
166+ .setFullMethodName (generateFullMethodName (SERVICE_NAME , "HelloPersonInvalidResponse" ))
167+ .setSampledToLocalTracing (true )
168+ .setRequestMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
169+ io .grpc .examples .GreeterOuterClass .Person .getDefaultInstance ()))
170+ .setResponseMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
171+ io .grpc .examples .GreeterOuterClass .Person .getDefaultInstance ()))
172+ .setSchemaDescriptor (new GreeterMethodDescriptorSupplier ("HelloPersonInvalidResponse" ))
173+ .build ();
174+ }
175+ }
176+ }
177+ return getHelloPersonInvalidResponseMethod ;
178+ }
179+
118180 /**
119181 * Creates a new async stub that supports all call types for the service
120182 */
@@ -190,6 +252,20 @@ public void sayAuthOnlyHello(com.google.protobuf.Empty request,
190252 asyncUnimplementedUnaryCall (getSayAuthOnlyHelloMethod (), responseObserver );
191253 }
192254
255+ /**
256+ */
257+ public void helloPersonValidResponse (io .grpc .examples .GreeterOuterClass .Person request ,
258+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person > responseObserver ) {
259+ asyncUnimplementedUnaryCall (getHelloPersonValidResponseMethod (), responseObserver );
260+ }
261+
262+ /**
263+ */
264+ public void helloPersonInvalidResponse (io .grpc .examples .GreeterOuterClass .Person request ,
265+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person > responseObserver ) {
266+ asyncUnimplementedUnaryCall (getHelloPersonInvalidResponseMethod (), responseObserver );
267+ }
268+
193269 @ java .lang .Override public final io .grpc .ServerServiceDefinition bindService () {
194270 return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
195271 .addMethod (
@@ -213,6 +289,20 @@ public void sayAuthOnlyHello(com.google.protobuf.Empty request,
213289 com .google .protobuf .Empty ,
214290 io .grpc .examples .GreeterOuterClass .HelloReply >(
215291 this , METHODID_SAY_AUTH_ONLY_HELLO )))
292+ .addMethod (
293+ getHelloPersonValidResponseMethod (),
294+ asyncUnaryCall (
295+ new MethodHandlers <
296+ io .grpc .examples .GreeterOuterClass .Person ,
297+ io .grpc .examples .GreeterOuterClass .Person >(
298+ this , METHODID_HELLO_PERSON_VALID_RESPONSE )))
299+ .addMethod (
300+ getHelloPersonInvalidResponseMethod (),
301+ asyncUnaryCall (
302+ new MethodHandlers <
303+ io .grpc .examples .GreeterOuterClass .Person ,
304+ io .grpc .examples .GreeterOuterClass .Person >(
305+ this , METHODID_HELLO_PERSON_INVALID_RESPONSE )))
216306 .build ();
217307 }
218308 }
@@ -260,6 +350,22 @@ public void sayAuthOnlyHello(com.google.protobuf.Empty request,
260350 asyncUnaryCall (
261351 getChannel ().newCall (getSayAuthOnlyHelloMethod (), getCallOptions ()), request , responseObserver );
262352 }
353+
354+ /**
355+ */
356+ public void helloPersonValidResponse (io .grpc .examples .GreeterOuterClass .Person request ,
357+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person > responseObserver ) {
358+ asyncUnaryCall (
359+ getChannel ().newCall (getHelloPersonValidResponseMethod (), getCallOptions ()), request , responseObserver );
360+ }
361+
362+ /**
363+ */
364+ public void helloPersonInvalidResponse (io .grpc .examples .GreeterOuterClass .Person request ,
365+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person > responseObserver ) {
366+ asyncUnaryCall (
367+ getChannel ().newCall (getHelloPersonInvalidResponseMethod (), getCallOptions ()), request , responseObserver );
368+ }
263369 }
264370
265371 /**
@@ -302,6 +408,20 @@ public io.grpc.examples.GreeterOuterClass.HelloReply sayAuthOnlyHello(com.google
302408 return blockingUnaryCall (
303409 getChannel (), getSayAuthOnlyHelloMethod (), getCallOptions (), request );
304410 }
411+
412+ /**
413+ */
414+ public io .grpc .examples .GreeterOuterClass .Person helloPersonValidResponse (io .grpc .examples .GreeterOuterClass .Person request ) {
415+ return blockingUnaryCall (
416+ getChannel (), getHelloPersonValidResponseMethod (), getCallOptions (), request );
417+ }
418+
419+ /**
420+ */
421+ public io .grpc .examples .GreeterOuterClass .Person helloPersonInvalidResponse (io .grpc .examples .GreeterOuterClass .Person request ) {
422+ return blockingUnaryCall (
423+ getChannel (), getHelloPersonInvalidResponseMethod (), getCallOptions (), request );
424+ }
305425 }
306426
307427 /**
@@ -347,11 +467,29 @@ public com.google.common.util.concurrent.ListenableFuture<io.grpc.examples.Greet
347467 return futureUnaryCall (
348468 getChannel ().newCall (getSayAuthOnlyHelloMethod (), getCallOptions ()), request );
349469 }
470+
471+ /**
472+ */
473+ public com .google .common .util .concurrent .ListenableFuture <io .grpc .examples .GreeterOuterClass .Person > helloPersonValidResponse (
474+ io .grpc .examples .GreeterOuterClass .Person request ) {
475+ return futureUnaryCall (
476+ getChannel ().newCall (getHelloPersonValidResponseMethod (), getCallOptions ()), request );
477+ }
478+
479+ /**
480+ */
481+ public com .google .common .util .concurrent .ListenableFuture <io .grpc .examples .GreeterOuterClass .Person > helloPersonInvalidResponse (
482+ io .grpc .examples .GreeterOuterClass .Person request ) {
483+ return futureUnaryCall (
484+ getChannel ().newCall (getHelloPersonInvalidResponseMethod (), getCallOptions ()), request );
485+ }
350486 }
351487
352488 private static final int METHODID_SAY_HELLO = 0 ;
353489 private static final int METHODID_SAY_AUTH_HELLO = 1 ;
354490 private static final int METHODID_SAY_AUTH_ONLY_HELLO = 2 ;
491+ private static final int METHODID_HELLO_PERSON_VALID_RESPONSE = 3 ;
492+ private static final int METHODID_HELLO_PERSON_INVALID_RESPONSE = 4 ;
355493
356494 private static final class MethodHandlers <Req , Resp > implements
357495 io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -382,6 +520,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
382520 serviceImpl .sayAuthOnlyHello ((com .google .protobuf .Empty ) request ,
383521 (io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .HelloReply >) responseObserver );
384522 break ;
523+ case METHODID_HELLO_PERSON_VALID_RESPONSE :
524+ serviceImpl .helloPersonValidResponse ((io .grpc .examples .GreeterOuterClass .Person ) request ,
525+ (io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person >) responseObserver );
526+ break ;
527+ case METHODID_HELLO_PERSON_INVALID_RESPONSE :
528+ serviceImpl .helloPersonInvalidResponse ((io .grpc .examples .GreeterOuterClass .Person ) request ,
529+ (io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .Person >) responseObserver );
530+ break ;
385531 default :
386532 throw new AssertionError ();
387533 }
@@ -446,6 +592,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
446592 .addMethod (getSayHelloMethod ())
447593 .addMethod (getSayAuthHelloMethod ())
448594 .addMethod (getSayAuthOnlyHelloMethod ())
595+ .addMethod (getHelloPersonValidResponseMethod ())
596+ .addMethod (getHelloPersonInvalidResponseMethod ())
449597 .build ();
450598 }
451599 }
0 commit comments