def __init__(self, encoding_method=None, parent=None, **kwargs):
    """Initializes a path specification.

    Note that the encoded stream path specification must have a parent.

    Args:
      encoding_method (Optional[str]): method used to the encode the data.
      parent (Optional[PathSpec]): parent path specification.

    Raises:
      ValueError: when encoding method or parent are not set.
    """
    if not encoding_method or not parent:
      raise ValueError('Missing encoding method or parent value.')

    super(EncodedStreamPathSpec, self).__init__(parent=parent, **kwargs)
    self.encoding_method = encoding_method
def __init__ ( self , encoding_method = None , parent = None , ** kwargs ) : if not encoding_method or not parent : raise ValueError ( 'Missing encoding method or parent value.' ) super ( EncodedStreamPathSpec , self ) . __init__ ( parent = parent , ** kwargs ) self . encoding_method = encoding_method
Initializes a path specification.

    Note that the encoded stream path specification must have a parent.

    Args:
      encoding_method (Optional[str]): method used to the encode the data.
      parent (Optional[PathSpec]): parent path specification.

    Raises:
      ValueError: when encoding method or parent are not set.