Extract out parsing proto file logic from ProtobufGen

Add a comment - that nesting of types isn't taken into account