Yeah, if this was a protobuf all these methods etc. would be just generated for you.