Extract out parsing proto file logic from ProtobufGen

I keep forgetting n/l rules. added n/l. thanks