@property
def last(self):
    if (self.HasField('pathtype') and (self.pathtype != self.PathType.UNSET)):
        return list(self)[(- 1)]
    return self
@property
def last(self):
    if (self.HasField('pathtype') and (self.pathtype != self.PathType.UNSET)):
        return list(self)[(- 1)]
    return self