@@ -45,6 +45,37 @@ io.grpc.examples.GreeterOuterClass.HelloReply> getSayAuthHelloMethod() {
4545 return getSayAuthHelloMethod ;
4646 }
4747
48+ private static volatile io .grpc .MethodDescriptor <com .google .protobuf .Empty ,
49+ io .grpc .examples .GreeterOuterClass .HelloReply > getSayAuthHello2Method ;
50+
51+ @ io .grpc .stub .annotations .RpcMethod (
52+ fullMethodName = SERVICE_NAME + '/' + "SayAuthHello2" ,
53+ requestType = com .google .protobuf .Empty .class ,
54+ responseType = io .grpc .examples .GreeterOuterClass .HelloReply .class ,
55+ methodType = io .grpc .MethodDescriptor .MethodType .UNARY )
56+ public static io .grpc .MethodDescriptor <com .google .protobuf .Empty ,
57+ io .grpc .examples .GreeterOuterClass .HelloReply > getSayAuthHello2Method () {
58+ io .grpc .MethodDescriptor <com .google .protobuf .Empty , io .grpc .examples .GreeterOuterClass .HelloReply > getSayAuthHello2Method ;
59+ if ((getSayAuthHello2Method = SecuredGreeterGrpc .getSayAuthHello2Method ) == null ) {
60+ synchronized (SecuredGreeterGrpc .class ) {
61+ if ((getSayAuthHello2Method = SecuredGreeterGrpc .getSayAuthHello2Method ) == null ) {
62+ SecuredGreeterGrpc .getSayAuthHello2Method = getSayAuthHello2Method =
63+ io .grpc .MethodDescriptor .<com .google .protobuf .Empty , io .grpc .examples .GreeterOuterClass .HelloReply >newBuilder ()
64+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
65+ .setFullMethodName (generateFullMethodName (SERVICE_NAME , "SayAuthHello2" ))
66+ .setSampledToLocalTracing (true )
67+ .setRequestMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
68+ com .google .protobuf .Empty .getDefaultInstance ()))
69+ .setResponseMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
70+ io .grpc .examples .GreeterOuterClass .HelloReply .getDefaultInstance ()))
71+ .setSchemaDescriptor (new SecuredGreeterMethodDescriptorSupplier ("SayAuthHello2" ))
72+ .build ();
73+ }
74+ }
75+ }
76+ return getSayAuthHello2Method ;
77+ }
78+
4879 /**
4980 * Creates a new async stub that supports all call types for the service
5081 */
@@ -100,6 +131,13 @@ public void sayAuthHello(com.google.protobuf.Empty request,
100131 io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getSayAuthHelloMethod (), responseObserver );
101132 }
102133
134+ /**
135+ */
136+ public void sayAuthHello2 (com .google .protobuf .Empty request ,
137+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .HelloReply > responseObserver ) {
138+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getSayAuthHello2Method (), responseObserver );
139+ }
140+
103141 @ java .lang .Override public final io .grpc .ServerServiceDefinition bindService () {
104142 return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
105143 .addMethod (
@@ -109,6 +147,13 @@ public void sayAuthHello(com.google.protobuf.Empty request,
109147 com .google .protobuf .Empty ,
110148 io .grpc .examples .GreeterOuterClass .HelloReply >(
111149 this , METHODID_SAY_AUTH_HELLO )))
150+ .addMethod (
151+ getSayAuthHello2Method (),
152+ io .grpc .stub .ServerCalls .asyncUnaryCall (
153+ new MethodHandlers <
154+ com .google .protobuf .Empty ,
155+ io .grpc .examples .GreeterOuterClass .HelloReply >(
156+ this , METHODID_SAY_AUTH_HELLO2 )))
112157 .build ();
113158 }
114159 }
@@ -134,6 +179,14 @@ public void sayAuthHello(com.google.protobuf.Empty request,
134179 io .grpc .stub .ClientCalls .asyncUnaryCall (
135180 getChannel ().newCall (getSayAuthHelloMethod (), getCallOptions ()), request , responseObserver );
136181 }
182+
183+ /**
184+ */
185+ public void sayAuthHello2 (com .google .protobuf .Empty request ,
186+ io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .HelloReply > responseObserver ) {
187+ io .grpc .stub .ClientCalls .asyncUnaryCall (
188+ getChannel ().newCall (getSayAuthHello2Method (), getCallOptions ()), request , responseObserver );
189+ }
137190 }
138191
139192 /**
@@ -156,6 +209,13 @@ public io.grpc.examples.GreeterOuterClass.HelloReply sayAuthHello(com.google.pro
156209 return io .grpc .stub .ClientCalls .blockingUnaryCall (
157210 getChannel (), getSayAuthHelloMethod (), getCallOptions (), request );
158211 }
212+
213+ /**
214+ */
215+ public io .grpc .examples .GreeterOuterClass .HelloReply sayAuthHello2 (com .google .protobuf .Empty request ) {
216+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
217+ getChannel (), getSayAuthHello2Method (), getCallOptions (), request );
218+ }
159219 }
160220
161221 /**
@@ -179,9 +239,18 @@ public com.google.common.util.concurrent.ListenableFuture<io.grpc.examples.Greet
179239 return io .grpc .stub .ClientCalls .futureUnaryCall (
180240 getChannel ().newCall (getSayAuthHelloMethod (), getCallOptions ()), request );
181241 }
242+
243+ /**
244+ */
245+ public com .google .common .util .concurrent .ListenableFuture <io .grpc .examples .GreeterOuterClass .HelloReply > sayAuthHello2 (
246+ com .google .protobuf .Empty request ) {
247+ return io .grpc .stub .ClientCalls .futureUnaryCall (
248+ getChannel ().newCall (getSayAuthHello2Method (), getCallOptions ()), request );
249+ }
182250 }
183251
184252 private static final int METHODID_SAY_AUTH_HELLO = 0 ;
253+ private static final int METHODID_SAY_AUTH_HELLO2 = 1 ;
185254
186255 private static final class MethodHandlers <Req , Resp > implements
187256 io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -204,6 +273,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
204273 serviceImpl .sayAuthHello ((com .google .protobuf .Empty ) request ,
205274 (io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .HelloReply >) responseObserver );
206275 break ;
276+ case METHODID_SAY_AUTH_HELLO2 :
277+ serviceImpl .sayAuthHello2 ((com .google .protobuf .Empty ) request ,
278+ (io .grpc .stub .StreamObserver <io .grpc .examples .GreeterOuterClass .HelloReply >) responseObserver );
279+ break ;
207280 default :
208281 throw new AssertionError ();
209282 }
@@ -266,6 +339,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
266339 serviceDescriptor = result = io .grpc .ServiceDescriptor .newBuilder (SERVICE_NAME )
267340 .setSchemaDescriptor (new SecuredGreeterFileDescriptorSupplier ())
268341 .addMethod (getSayAuthHelloMethod ())
342+ .addMethod (getSayAuthHello2Method ())
269343 .build ();
270344 }
271345 }
0 commit comments