raft: make snapshot a protobuf type