title: Best practice for determining the type of a protocol buffers message
body: <p>I need to serialize and deserialize a sequence of protocol buffers messages to and from a byte stream.  There are a handful of predetermined message types.  What is the recommended way of encoding the type information so that my application can know which type it should be reading?</p>