OLD | NEW |
(Empty) | |
| 1 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 # Source: math.proto for package 'math' |
| 3 |
| 4 require 'grpc' |
| 5 require 'math' |
| 6 |
| 7 module Math |
| 8 module Math |
| 9 |
| 10 # TODO: add proto service documentation here |
| 11 class Service |
| 12 |
| 13 include GRPC::GenericService |
| 14 |
| 15 self.marshal_class_method = :encode |
| 16 self.unmarshal_class_method = :decode |
| 17 self.service_name = 'math.Math' |
| 18 |
| 19 rpc :Div, DivArgs, DivReply |
| 20 rpc :DivMany, stream(DivArgs), stream(DivReply) |
| 21 rpc :Fib, FibArgs, stream(Num) |
| 22 rpc :Sum, stream(Num), Num |
| 23 end |
| 24 |
| 25 Stub = Service.rpc_stub_class |
| 26 end |
| 27 end |
OLD | NEW |