1*cc02d7e2SAndroid Build Coastguard Worker# frozen_string_literal: true 2*cc02d7e2SAndroid Build Coastguard Worker# Generated by the protocol buffer compiler. DO NOT EDIT! 3*cc02d7e2SAndroid Build Coastguard Worker# source: math.proto 4*cc02d7e2SAndroid Build Coastguard Worker 5*cc02d7e2SAndroid Build Coastguard Workerrequire 'google/protobuf' 6*cc02d7e2SAndroid Build Coastguard Worker 7*cc02d7e2SAndroid Build Coastguard Worker 8*cc02d7e2SAndroid Build Coastguard Workerdescriptor_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*cc02d7e2SAndroid Build Coastguard Worker 10*cc02d7e2SAndroid Build Coastguard Workerpool = Google::Protobuf::DescriptorPool.generated_pool 11*cc02d7e2SAndroid Build Coastguard Worker 12*cc02d7e2SAndroid Build Coastguard Workerbegin 13*cc02d7e2SAndroid Build Coastguard Worker pool.add_serialized_file(descriptor_data) 14*cc02d7e2SAndroid Build Coastguard Workerrescue TypeError 15*cc02d7e2SAndroid Build Coastguard Worker # Compatibility code: will be removed in the next major version. 16*cc02d7e2SAndroid Build Coastguard Worker require 'google/protobuf/descriptor_pb' 17*cc02d7e2SAndroid Build Coastguard Worker parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) 18*cc02d7e2SAndroid Build Coastguard Worker parsed.clear_dependency 19*cc02d7e2SAndroid Build Coastguard Worker serialized = parsed.class.encode(parsed) 20*cc02d7e2SAndroid Build Coastguard Worker file = pool.add_serialized_file(serialized) 21*cc02d7e2SAndroid Build Coastguard Worker warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" 22*cc02d7e2SAndroid Build Coastguard Worker imports = [ 23*cc02d7e2SAndroid Build Coastguard Worker ] 24*cc02d7e2SAndroid Build Coastguard Worker imports.each do |type_name, expected_filename| 25*cc02d7e2SAndroid Build Coastguard Worker import_file = pool.lookup(type_name).file_descriptor 26*cc02d7e2SAndroid Build Coastguard Worker if import_file.name != expected_filename 27*cc02d7e2SAndroid Build Coastguard Worker warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" 28*cc02d7e2SAndroid Build Coastguard Worker end 29*cc02d7e2SAndroid Build Coastguard Worker end 30*cc02d7e2SAndroid Build Coastguard Worker warn "Each proto file must use a consistent fully-qualified name." 31*cc02d7e2SAndroid Build Coastguard Worker warn "This will become an error in the next major version." 32*cc02d7e2SAndroid Build Coastguard Workerend 33*cc02d7e2SAndroid Build Coastguard Worker 34*cc02d7e2SAndroid Build Coastguard Workermodule Math 35*cc02d7e2SAndroid Build Coastguard Worker DivArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivArgs").msgclass 36*cc02d7e2SAndroid Build Coastguard Worker DivReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivReply").msgclass 37*cc02d7e2SAndroid Build Coastguard Worker FibArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibArgs").msgclass 38*cc02d7e2SAndroid Build Coastguard Worker Num = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.Num").msgclass 39*cc02d7e2SAndroid Build Coastguard Worker FibReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.FibReply").msgclass 40*cc02d7e2SAndroid Build Coastguard Workerend 41