Added enum to top scope in the full message.
Refactored ProtoParser to use instance methods.