xref: /aosp_15_r20/external/grpc-grpc/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1# frozen_string_literal: true
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/empty.proto
4
5require 'google/protobuf'
6
7
8descriptor_data = "\n\"src/proto/grpc/testing/empty.proto\x12\x0cgrpc.testing\"\x07\n\x05\x45mptyb\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 Grpc
35  module Testing
36    Empty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Empty").msgclass
37  end
38end
39