Using google protocol buffers for data transfer