def _SetCursor(self, value):
    if self._query_final is not None:
      raise AttributeError('Can\'t set cursor. Query info is final.')

    if self._cursor is not None:
      raise AttributeError('Cursor can\'t be set twice.')
    if not isinstance(value, datastore_query.Cursor):
      raise TypeError('Cursor must be an instance of datastore_query.Cursor.')
    self._cursor = value
:param zone: Zone to list redirects for.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/endpoints_proto_datastore/ndb/model.py/_EndpointsQueryInfo._SetCursor--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/pointdns.py/PointDNSDriver.ex_list_redirects