def __eq__(self, other):
    return (isinstance(other, Request) and (other._params == self._params) and (other._index == self._index) and (other._doc_type == self._doc_type) and (other.to_dict() == self.to_dict()))
def __eq__(self, other):
    return (isinstance(other, Request) and (other._params == self._params) and (other._index == self._index) and (other._doc_type == self._doc_type) and (other.to_dict() == self.to_dict()))