raft: make State a protobuf type