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