'Turn an googledatastore.Entity into a user-level query result.'

def pb_v1_to_query_result(self, pb, query_options):

    if query_options.keys_only:
        return self.pb_v1_to_key(pb.key)
    else:
        return self.pb_v1_to_entity(pb, bool(query_options.projection))
