'Returns the range completed by the download_result.
Returns:
A KeyRangeItem representing a completed range.'

def _FinishedRange(self):

    assert (self.download_result is not None)
    if (self.key_range.direction == key_range_module.KeyRange.ASC):
        key_start = self.key_range.key_start
        if self.download_result.continued:
            key_end = self.download_result.key_end
        else:
            key_end = self.key_range.key_end
    else:
        key_end = self.key_range.key_end
        if self.download_result.continued:
            key_start = self.download_result.key_start
        else:
            key_start = self.key_range.key_start
    key_range = KeyRange(key_start=key_start, key_end=key_end, direction=self.key_range.direction)
    result = self.__class__(self.request_manager, self.progress_queue, self.kind, key_range, progress_key=self.progress_key, state=self.state)
    result.download_result = self.download_result
    result.count = self.count
    return result
