In this tutorial we'll see how you can call Unary methods.  We'll be using the RouteGuide example service that is part of the gRPC repository.  Shown below is the *.proto definition of the service

route guide proto


As you can see above, RecordRoute is a Client Streaming method.  It accepts a stream of Point requests and returns a response of type RouteSummary .  Before we can call this method, we'll need to first discover the service. For that, please have a look at the Getting Started.  Once the service is discovered and the client is generated and compiled you'll see the following

RecordRoute - ClientStreaming
(Click to enlarge)
  • Service Panel (Left) : Shows the discovered methods.
  • Request Panel (Middle) : Shows the selected method
  • Response Panel (Right) : Shows the response of the method call
  • Client Stream Panel (Bottom Left) : Shows the stream of client requests to the server


Select the RecordRoute method . This will generate a request populated with default values.  Modify the request by selecting any of the child nodes.  Once, all the parameters are populated, click on the Run button (  )

After clicking the Run button, the Client Streaming Panel will be populated.  Now populate the client request and click on the Write to the request stream () button.  Every request that is successfully sent to the server is copied over to the "Sent Requests" tab.


Call ListFeatures Method
(Click to enlarge)

After you are finished writing to the client stream, click on the "Finish writing to the request stream" button (  ).  The method call will then be completed and the response will be displayed in the response panel (Right side).


Here's a quick GIF of how it works

(Click to enlarge)