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
Setter to be used for public cursor property on query info.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/endpoints_proto_datastore/ndb/model.py/_EndpointsQueryInfo._SetCursor