code: def Append(self, component=None, **kwarg):
      
      if component is None:
        component = self.__class__(**kwarg)
  
      if self.HasField("pathtype"):
        self.last.nested_path = component
      else:
        for k, v in iteritems(kwarg):
          setattr(self, k, v)
  
        self.SetRawData(component.GetRawData())
  
      return self
docs: Append a new pathspec component to this pathspec.