Automating version number in protobuf marshalling