xref: /aosp_15_r20/external/grpc-grpc/src/ruby/bin/math_pb.rb (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1# frozen_string_literal: true
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: math.proto
4
5require 'google/protobuf'
6
7
8descriptor_data = "\n\nmath.proto\x12\x04math\",\n\x07\x44ivArgs\x12\x10\n\x08\x64ividend\x18\x01 \x01(\x03\x12\x0f\n\x07\x64ivisor\x18\x02 \x01(\x03\"/\n\x08\x44ivReply\x12\x10\n\x08quotient\x18\x01 \x01(\x03\x12\x11\n\tremainder\x18\x02 \x01(\x03\"\x18\n\x07\x46ibArgs\x12\r\n\x05limit\x18\x01 \x01(\x03\"\x12\n\x03Num\x12\x0b\n\x03num\x18\x01 \x01(\x03\"\x19\n\x08\x46ibReply\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x32\xa4\x01\n\x04Math\x12&\n\x03\x44iv\x12\r.math.DivArgs\x1a\x0e.math.DivReply\"\x00\x12.\n\x07\x44ivMany\x12\r.math.DivArgs\x1a\x0e.math.DivReply\"\x00(\x01\x30\x01\x12#\n\x03\x46ib\x12\r.math.FibArgs\x1a\t.math.Num\"\x00\x30\x01\x12\x1f\n\x03Sum\x12\t.math.Num\x1a\t.math.Num\"\x00(\x01\x62\x06proto3"
9
10pool = Google::Protobuf::DescriptorPool.generated_pool
11
12begin
13  pool.add_serialized_file(descriptor_data)
14rescue TypeError
15  # Compatibility code: will be removed in the next major version.
16  require 'google/protobuf/descriptor_pb'
17  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18  parsed.clear_dependency
19  serialized = parsed.class.encode(parsed)
20  file = pool.add_serialized_file(serialized)
21  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22  imports = [
23  ]
24  imports.each do |type_name, expected_filename|
25    import_file = pool.lookup(type_name).file_descriptor
26    if import_file.name != expected_filename
27      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28    end
29  end
30  warn "Each proto file must use a consistent fully-qualified name."
31  warn "This will become an error in the next major version."
32end
33
34module Math
35  DivArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivArgs").msgclass
36  DivReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivReply").msgclass
37  FibArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibArgs").msgclass
38  Num = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.Num").msgclass
39  FibReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibReply").msgclass
40end
41