def Validate(self):
    if ((not self.HasField('pathtype')) or (self.pathtype == self.PathType.UNSET)):
        raise ValueError('No path type set in PathSpec.')
def Validate(self):
    if ((not self.HasField('pathtype')) or (self.pathtype == self.PathType.UNSET)):
        raise ValueError('No path type set in PathSpec.')