diff options
Diffstat (limited to 'src/node/examples/stock.proto')
-rw-r--r-- | src/node/examples/stock.proto | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/node/examples/stock.proto b/src/node/examples/stock.proto index efe98d84ff..2bc5c29d17 100644 --- a/src/node/examples/stock.proto +++ b/src/node/examples/stock.proto @@ -35,28 +35,28 @@ package examples; message StockRequest { optional string symbol = 1; optional int32 num_trades_to_watch = 2 [default=0]; -}; +} message StockReply { optional float price = 1; optional string symbol = 2; -}; +} // Interface exported by the server service Stock { // Simple blocking RPC rpc GetLastTradePrice(StockRequest) returns (StockReply) { - }; + } // Bidirectional streaming RPC rpc GetLastTradePriceMultiple(stream StockRequest) returns (stream StockReply) { - }; + } // Unidirectional server-to-client streaming RPC rpc WatchFutureTrades(StockRequest) returns (stream StockReply) { - }; + } // Unidirectional client-to-server streaming RPC rpc GetHighestTradePrice(stream StockRequest) returns (StockReply) { - }; + } -};
\ No newline at end of file +}
\ No newline at end of file |