'Turn an entity_pb.EntityProto into a user-level query result.'

def pb_to_query_result(self, pb, query_options):

    if query_options.keys_only:
        return self.pb_to_key(pb.key())
    else:
        return self.pb_to_entity(pb)
