'Returns this entity\'s kind, as a string.'

def kind(self):

    if (self.__reference.path().element_size() > 0):
        encoded = self.__reference.path().element_list()[(-1)].type()
        return unicode(encoded.decode('utf-8'))
    else:
        return None
