Package io.grpc.testing.protobuf
Class SimpleServiceGrpc.SimpleServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<SimpleServiceGrpc.SimpleServiceStub>
-
- io.grpc.testing.protobuf.SimpleServiceGrpc.SimpleServiceStub
-
- Enclosing class:
- SimpleServiceGrpc
public static final class SimpleServiceGrpc.SimpleServiceStub extends io.grpc.stub.AbstractAsyncStub<SimpleServiceGrpc.SimpleServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SimpleService.A simple service for test.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.stub.StreamObserver<SimpleRequest>bidiStreamingRpc(io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)Simple bidirectional streaming RPC.protected SimpleServiceGrpc.SimpleServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)io.grpc.stub.StreamObserver<SimpleRequest>clientStreamingRpc(io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)Simple client-to-server streaming RPC.voidserverStreamingRpc(SimpleRequest request, io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)Simple server-to-client streaming RPC.voidunaryRpc(SimpleRequest request, io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)Simple unary RPC.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected SimpleServiceGrpc.SimpleServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<SimpleServiceGrpc.SimpleServiceStub>
-
unaryRpc
public void unaryRpc(SimpleRequest request, io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)
Simple unary RPC.
-
clientStreamingRpc
public io.grpc.stub.StreamObserver<SimpleRequest> clientStreamingRpc(io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)
Simple client-to-server streaming RPC.
-
serverStreamingRpc
public void serverStreamingRpc(SimpleRequest request, io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)
Simple server-to-client streaming RPC.
-
bidiStreamingRpc
public io.grpc.stub.StreamObserver<SimpleRequest> bidiStreamingRpc(io.grpc.stub.StreamObserver<SimpleResponse> responseObserver)
Simple bidirectional streaming RPC.
-
-