Protobuf serialization of Persistent messages