proto: Added functions to unmarshal a raw message body.