For example say that I know my application and the user should only ever communicate N different things, and one at a time. I could manually map each of these to an integer and only allow the payload to be an integer. But it feels like allot of extra work for something that could better just be built into the protocols configuration, and maybe set up by presenting it with a common usage list of your typical messages. Does something like this exist?