public static final class TestServiceGrpc.TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceGrpc.TestServiceBlockingStub>
A simple service to test the various types of RPCs and experiment with performance with various types of payload.
| Modifier and Type | Method and Description |
|---|---|
protected TestServiceGrpc.TestServiceBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
Messages.SimpleResponse |
cacheableUnaryCall(Messages.SimpleRequest request)
One request followed by one response.
|
EmptyProtos.Empty |
emptyCall(EmptyProtos.Empty request)
One empty request followed by one empty response.
|
Iterator<Messages.StreamingOutputCallResponse> |
streamingOutputCall(Messages.StreamingOutputCallRequest request)
One request followed by a sequence of responses (streamed download).
|
Messages.SimpleResponse |
unaryCall(Messages.SimpleRequest request)
One request followed by one response.
|
EmptyProtos.Empty |
unimplementedCall(EmptyProtos.Empty request)
The test server will not implement this method.
|
protected TestServiceGrpc.TestServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<TestServiceGrpc.TestServiceBlockingStub>public EmptyProtos.Empty emptyCall(EmptyProtos.Empty request)
One empty request followed by one empty response.
public Messages.SimpleResponse unaryCall(Messages.SimpleRequest request)
One request followed by one response.
public Messages.SimpleResponse cacheableUnaryCall(Messages.SimpleRequest request)
One request followed by one response. Response has cache control headers set such that a caching HTTP proxy (such as GFE) can satisfy subsequent requests.
public Iterator<Messages.StreamingOutputCallResponse> streamingOutputCall(Messages.StreamingOutputCallRequest request)
One request followed by a sequence of responses (streamed download). The server returns the payload with client desired type and sizes.
public EmptyProtos.Empty unimplementedCall(EmptyProtos.Empty request)
The test server will not implement this method. It will be used to test the behavior when clients call unimplemented methods.