|
7 | 7 | * The greeting service definition. |
8 | 8 | * </pre> |
9 | 9 | */ |
10 | | -@javax.annotation.Generated( |
11 | | - value = "by gRPC proto compiler (version 1.63.1)", |
12 | | - comments = "Source: hello.proto") |
13 | 10 | @io.grpc.stub.annotations.GrpcGenerated |
14 | 11 | public final class GreeterGrpc { |
15 | 12 |
|
@@ -63,6 +60,21 @@ public GreeterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOpti |
63 | 60 | return GreeterStub.newStub(factory, channel); |
64 | 61 | } |
65 | 62 |
|
| 63 | + /** |
| 64 | + * Creates a new blocking-style stub that supports all types of calls on the service |
| 65 | + */ |
| 66 | + public static GreeterBlockingV2Stub newBlockingV2Stub( |
| 67 | + io.grpc.Channel channel) { |
| 68 | + io.grpc.stub.AbstractStub.StubFactory<GreeterBlockingV2Stub> factory = |
| 69 | + new io.grpc.stub.AbstractStub.StubFactory<GreeterBlockingV2Stub>() { |
| 70 | + @java.lang.Override |
| 71 | + public GreeterBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { |
| 72 | + return new GreeterBlockingV2Stub(channel, callOptions); |
| 73 | + } |
| 74 | + }; |
| 75 | + return GreeterBlockingV2Stub.newStub(factory, channel); |
| 76 | + } |
| 77 | + |
66 | 78 | /** |
67 | 79 | * Creates a new blocking-style stub that supports unary and streaming output calls on the service |
68 | 80 | */ |
@@ -162,6 +174,36 @@ public void sayHello(helloworld.HelloRequest request, |
162 | 174 | * The greeting service definition. |
163 | 175 | * </pre> |
164 | 176 | */ |
| 177 | + public static final class GreeterBlockingV2Stub |
| 178 | + extends io.grpc.stub.AbstractBlockingStub<GreeterBlockingV2Stub> { |
| 179 | + private GreeterBlockingV2Stub( |
| 180 | + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { |
| 181 | + super(channel, callOptions); |
| 182 | + } |
| 183 | + |
| 184 | + @java.lang.Override |
| 185 | + protected GreeterBlockingV2Stub build( |
| 186 | + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { |
| 187 | + return new GreeterBlockingV2Stub(channel, callOptions); |
| 188 | + } |
| 189 | + |
| 190 | + /** |
| 191 | + * <pre> |
| 192 | + * Sends a greeting |
| 193 | + * </pre> |
| 194 | + */ |
| 195 | + public helloworld.HelloReply sayHello(helloworld.HelloRequest request) throws io.grpc.StatusException { |
| 196 | + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( |
| 197 | + getChannel(), getSayHelloMethod(), getCallOptions(), request); |
| 198 | + } |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * A stub to allow clients to do limited synchronous rpc calls to service Greeter. |
| 203 | + * <pre> |
| 204 | + * The greeting service definition. |
| 205 | + * </pre> |
| 206 | + */ |
165 | 207 | public static final class GreeterBlockingStub |
166 | 208 | extends io.grpc.stub.AbstractBlockingStub<GreeterBlockingStub> { |
167 | 209 | private GreeterBlockingStub( |
|
0 commit comments