1313 * </pre>
1414 */
1515@ javax .annotation .Generated (
16- value = "by gRPC proto compiler (version 1.25.0 )" ,
16+ value = "by gRPC proto compiler (version 1.27.2 )" ,
1717 comments = "Source: greeter.proto" )
1818public final class GreeterGrpc {
1919
@@ -57,23 +57,44 @@ io.grpc.examples.GreeterOuterClass.HelloReply> getSayHelloMethod() {
5757 * Creates a new async stub that supports all call types for the service
5858 */
5959 public static GreeterStub newStub (io .grpc .Channel channel ) {
60- return new GreeterStub (channel );
60+ io .grpc .stub .AbstractStub .StubFactory <GreeterStub > factory =
61+ new io .grpc .stub .AbstractStub .StubFactory <GreeterStub >() {
62+ @ java .lang .Override
63+ public GreeterStub newStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
64+ return new GreeterStub (channel , callOptions );
65+ }
66+ };
67+ return GreeterStub .newStub (factory , channel );
6168 }
6269
6370 /**
6471 * Creates a new blocking-style stub that supports unary and streaming output calls on the service
6572 */
6673 public static GreeterBlockingStub newBlockingStub (
6774 io .grpc .Channel channel ) {
68- return new GreeterBlockingStub (channel );
75+ io .grpc .stub .AbstractStub .StubFactory <GreeterBlockingStub > factory =
76+ new io .grpc .stub .AbstractStub .StubFactory <GreeterBlockingStub >() {
77+ @ java .lang .Override
78+ public GreeterBlockingStub newStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
79+ return new GreeterBlockingStub (channel , callOptions );
80+ }
81+ };
82+ return GreeterBlockingStub .newStub (factory , channel );
6983 }
7084
7185 /**
7286 * Creates a new ListenableFuture-style stub that supports unary calls on the service
7387 */
7488 public static GreeterFutureStub newFutureStub (
7589 io .grpc .Channel channel ) {
76- return new GreeterFutureStub (channel );
90+ io .grpc .stub .AbstractStub .StubFactory <GreeterFutureStub > factory =
91+ new io .grpc .stub .AbstractStub .StubFactory <GreeterFutureStub >() {
92+ @ java .lang .Override
93+ public GreeterFutureStub newStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
94+ return new GreeterFutureStub (channel , callOptions );
95+ }
96+ };
97+ return GreeterFutureStub .newStub (factory , channel );
7798 }
7899
79100 /**
@@ -111,19 +132,15 @@ public void sayHello(io.grpc.examples.GreeterOuterClass.HelloRequest request,
111132 * The greeter service definition.
112133 * </pre>
113134 */
114- public static final class GreeterStub extends io .grpc .stub .AbstractStub <GreeterStub > {
115- private GreeterStub (io .grpc .Channel channel ) {
116- super (channel );
117- }
118-
119- private GreeterStub (io .grpc .Channel channel ,
120- io .grpc .CallOptions callOptions ) {
135+ public static final class GreeterStub extends io .grpc .stub .AbstractAsyncStub <GreeterStub > {
136+ private GreeterStub (
137+ io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
121138 super (channel , callOptions );
122139 }
123140
124141 @ java .lang .Override
125- protected GreeterStub build (io . grpc . Channel channel ,
126- io .grpc .CallOptions callOptions ) {
142+ protected GreeterStub build (
143+ io .grpc .Channel channel , io . grpc . CallOptions callOptions ) {
127144 return new GreeterStub (channel , callOptions );
128145 }
129146
@@ -144,19 +161,15 @@ public void sayHello(io.grpc.examples.GreeterOuterClass.HelloRequest request,
144161 * The greeter service definition.
145162 * </pre>
146163 */
147- public static final class GreeterBlockingStub extends io .grpc .stub .AbstractStub <GreeterBlockingStub > {
148- private GreeterBlockingStub (io .grpc .Channel channel ) {
149- super (channel );
150- }
151-
152- private GreeterBlockingStub (io .grpc .Channel channel ,
153- io .grpc .CallOptions callOptions ) {
164+ public static final class GreeterBlockingStub extends io .grpc .stub .AbstractBlockingStub <GreeterBlockingStub > {
165+ private GreeterBlockingStub (
166+ io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
154167 super (channel , callOptions );
155168 }
156169
157170 @ java .lang .Override
158- protected GreeterBlockingStub build (io . grpc . Channel channel ,
159- io .grpc .CallOptions callOptions ) {
171+ protected GreeterBlockingStub build (
172+ io .grpc .Channel channel , io . grpc . CallOptions callOptions ) {
160173 return new GreeterBlockingStub (channel , callOptions );
161174 }
162175
@@ -176,19 +189,15 @@ public io.grpc.examples.GreeterOuterClass.HelloReply sayHello(io.grpc.examples.G
176189 * The greeter service definition.
177190 * </pre>
178191 */
179- public static final class GreeterFutureStub extends io .grpc .stub .AbstractStub <GreeterFutureStub > {
180- private GreeterFutureStub (io .grpc .Channel channel ) {
181- super (channel );
182- }
183-
184- private GreeterFutureStub (io .grpc .Channel channel ,
185- io .grpc .CallOptions callOptions ) {
192+ public static final class GreeterFutureStub extends io .grpc .stub .AbstractFutureStub <GreeterFutureStub > {
193+ private GreeterFutureStub (
194+ io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
186195 super (channel , callOptions );
187196 }
188197
189198 @ java .lang .Override
190- protected GreeterFutureStub build (io . grpc . Channel channel ,
191- io .grpc .CallOptions callOptions ) {
199+ protected GreeterFutureStub build (
200+ io .grpc .Channel channel , io . grpc . CallOptions callOptions ) {
192201 return new GreeterFutureStub (channel , callOptions );
193202 }
194203
0 commit comments