Package com.bytedesk.core.proto
Class SimpleGrpc.SimpleBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SimpleGrpc.SimpleBlockingV2Stub>
com.bytedesk.core.proto.SimpleGrpc.SimpleBlockingV2Stub
- Enclosing class:
- SimpleGrpc
public static final class SimpleGrpc.SimpleBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SimpleGrpc.SimpleBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Simple.
The greeting service definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimpleBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleGrpc.SimpleBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) sayHello(HelloRequest request) Sends a greetingio.grpc.stub.BlockingClientCall<?,HelloReply> streamHello(HelloRequest request) Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Constructor Details
-
SimpleBlockingV2Stub
private SimpleBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
protected SimpleGrpc.SimpleBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SimpleGrpc.SimpleBlockingV2Stub>
-
sayHello
Sends a greeting
- Throws:
io.grpc.StatusException
-
streamHello
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,HelloReply> streamHello(HelloRequest request)
-