math.rb 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 2015, Google Inc.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms, with or without
  5. # modification, are permitted provided that the following conditions are
  6. # met:
  7. #
  8. # * Redistributions of source code must retain the above copyright
  9. # notice, this list of conditions and the following disclaimer.
  10. # * Redistributions in binary form must reproduce the above
  11. # copyright notice, this list of conditions and the following disclaimer
  12. # in the documentation and/or other materials provided with the
  13. # distribution.
  14. # * Neither the name of Google Inc. nor the names of its
  15. # contributors may be used to endorse or promote products derived from
  16. # this software without specific prior written permission.
  17. #
  18. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. # Generated by the protocol buffer compiler. DO NOT EDIT!
  30. # source: math.proto
  31. require 'google/protobuf'
  32. Google::Protobuf::DescriptorPool.generated_pool.build do
  33. add_message "math.DivArgs" do
  34. optional :dividend, :int64, 1
  35. optional :divisor, :int64, 2
  36. end
  37. add_message "math.DivReply" do
  38. optional :quotient, :int64, 1
  39. optional :remainder, :int64, 2
  40. end
  41. add_message "math.FibArgs" do
  42. optional :limit, :int64, 1
  43. end
  44. add_message "math.Num" do
  45. optional :num, :int64, 1
  46. end
  47. add_message "math.FibReply" do
  48. optional :count, :int64, 1
  49. end
  50. end
  51. module Math
  52. DivArgs = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivArgs").msgclass
  53. DivReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivReply").msgclass
  54. FibArgs = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibArgs").msgclass
  55. Num = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.Num").msgclass
  56. FibReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibReply").msgclass
  57. end