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 kwarg.items():
        setattr(self, k, v)

      self.SetRawData(component.GetRawData())

    return self
Append a new pathspec component to this pathspec.
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/paths.py/PathSpec.Append