def __get__(self, entity, unused_cls=None):
    if entity is None:
      return self  # __get__ called on class
    return self._get_value(entity)
Descriptor protocol: get the value from the entity.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Property.__get__