Protocol buffer test, based on https://developers.google.com/protocol-buffers/docs/cpptutorial