Module: GrpcReflection::ProtobufExt::DescriptorPool

Defined in:
lib/grpc_reflection/protobuf_ext.rb

Instance Method Summary collapse

Instance Method Details

#add_serialized_file(descriptor_data) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/grpc_reflection/protobuf_ext.rb', line 7

def add_serialized_file(descriptor_data)
  begin
    GrpcReflection::FileDescriptorManager.add(descriptor_data)
  rescue => e
    $stderr.puts "[grpc-reflection] parsing descriptor data is failed #{e.message}"
  end

  super
end