Adds a method to read proto files.

- Changes the lowercase to uppercase when parsing event names.
- Adds errors for incorrect event names.