@classmethod
def _from_generated(cls, generated):
    path_prop = PathProperties()
    path_prop.name = generated.name
    path_prop.owner = generated.owner
    path_prop.group = generated.group
    path_prop.permissions = generated.permissions
    path_prop.last_modified = generated.last_modified
    path_prop.is_directory = bool(generated.is_directory)
    path_prop.etag = generated.additional_properties.get('etag')
    path_prop.content_length = generated.content_length
    return path_prop
@classmethod
def _from_generated(cls, generated):
    path_prop = PathProperties()
    path_prop.name = generated.name
    path_prop.owner = generated.owner
    path_prop.group = generated.group
    path_prop.permissions = generated.permissions
    path_prop.last_modified = generated.last_modified
    path_prop.is_directory = bool(generated.is_directory)
    path_prop.etag = generated.additional_properties.get('etag')
    path_prop.content_length = generated.content_length
    return path_prop