Get desktop application:
View/edit binary Protocol Buffers messages
A simple echo service.
One request followed by one response The server returns the client message as-is.
Sends back abort status.
One empty request, ZERO processing, followed by one empty response (minimum effort to do message serialization).
(message has no fields)
One request followed by a sequence of responses (streamed download). The server will return the same client message repeatedly.
One request followed by a sequence of responses (streamed download). The server abort directly.
A sequence of requests followed by one response (streamed upload). The server returns the total number of messages as the result.
Request type for client side streaming echo.
A special value "" indicates that there's no further messages.
Response type for client side streaming echo.
Total number of client messages that have been received.
A sequence of requests with each message echoed by the server immediately. The server returns the same client messages in order. E.g. this is how the speech API works.
A sequence of requests followed by a sequence of responses. The server buffers all the client messages and then returns the same client messages one by one after the client half-closes the stream. This is how an image recognition API may work.
Used as request type in: EchoService.Echo, EchoService.EchoAbort, EchoService.FullDuplexEcho, EchoService.HalfDuplexEcho
Used as response type in: EchoService.Echo, EchoService.EchoAbort, EchoService.FullDuplexEcho, EchoService.HalfDuplexEcho
Request type for server side streaming echo.
Used as request type in: EchoService.ServerStreamingEcho, EchoService.ServerStreamingEchoAbort
Message string for server streaming request.
The total number of messages to be generated before the server closes the stream; default is 10.
The interval (ms) between two server messages. The server implementation may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
Response type for server streaming response.
Used as response type in: EchoService.ServerStreamingEcho, EchoService.ServerStreamingEchoAbort
Response message.