math_services.rb 598 B

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