public static class TestServiceGrpc.TestServiceStub extends AbstractStub<TestServiceGrpc.TestServiceStub,TestServiceGrpc.TestServiceServiceDescriptor> implements TestServiceGrpc.TestService
AbstractStub.StubConfigBuilder
channel, config
Modifier and Type | Method and Description |
---|---|
protected TestServiceGrpc.TestServiceStub |
build(Channel channel,
TestServiceGrpc.TestServiceServiceDescriptor config)
Returns a new stub with the given channel for the provided method configurations.
|
StreamObserver<SimpleRequest> |
streamingCall(StreamObserver<SimpleResponse> responseObserver) |
void |
unaryCall(SimpleRequest request,
StreamObserver<SimpleResponse> responseObserver) |
configureNewStub, getChannel, getServiceDescriptor
protected TestServiceGrpc.TestServiceStub build(Channel channel, TestServiceGrpc.TestServiceServiceDescriptor config)
AbstractStub
build
in class AbstractStub<TestServiceGrpc.TestServiceStub,TestServiceGrpc.TestServiceServiceDescriptor>
channel
- the channel that this stub will use to do communicationsconfig
- defines the RPC methods of the stubpublic void unaryCall(SimpleRequest request, StreamObserver<SimpleResponse> responseObserver)
unaryCall
in interface TestServiceGrpc.TestService
public StreamObserver<SimpleRequest> streamingCall(StreamObserver<SimpleResponse> responseObserver)
streamingCall
in interface TestServiceGrpc.TestService