Package com.bytedesk.core.proto
Class SimpleGrpc.SimpleStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
com.bytedesk.core.proto.SimpleGrpc.SimpleStub
- Enclosing class:
- SimpleGrpc
public static final class SimpleGrpc.SimpleStub
extends io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
A stub to allow clients to do asynchronous 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
ConstructorsModifierConstructorDescriptionprivateSimpleStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleGrpc.SimpleStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidsayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Sends a greetingvoidstreamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Methods inherited from class io.grpc.stub.AbstractAsyncStub
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
-
SimpleStub
private SimpleStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<SimpleGrpc.SimpleStub>
-
sayHello
public void sayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Sends a greeting
-
streamHello
public void streamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)
-