package com.vungle.warren.downloader; import android.text.TextUtils; import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes2.dex */ public class f { /* renamed from: a, reason: collision with root package name */ public final int f8146a; /* renamed from: b, reason: collision with root package name */ public final String f8147b; /* renamed from: c, reason: collision with root package name */ public final String f8148c; /* renamed from: d, reason: collision with root package name */ public final boolean f8149d; /* renamed from: f, reason: collision with root package name */ final String f8151f; /* renamed from: g, reason: collision with root package name */ public final String f8152g; /* renamed from: e, reason: collision with root package name */ private AtomicReference f8150e = new AtomicReference(); /* renamed from: h, reason: collision with root package name */ private AtomicBoolean f8153h = new AtomicBoolean(false); public f(int i10, c cVar, String str, String str2, boolean z10, String str3) { if (TextUtils.isEmpty(str2) || TextUtils.isEmpty(str)) { throw new IllegalArgumentException("Url or path is empty"); } this.f8146a = i10; this.f8150e.set(cVar); this.f8147b = str; this.f8148c = str2; this.f8151f = UUID.nameUUIDFromBytes((str2 + "_" + str).getBytes()).toString(); this.f8149d = z10; this.f8152g = str3; } void a() { this.f8153h.set(true); } public c b() { return (c) this.f8150e.get(); } boolean c() { return this.f8153h.get(); } public void d(c cVar) { this.f8150e.set(cVar); } public String toString() { return "DownloadRequest{networkType=" + this.f8146a + ", priority=" + this.f8150e + ", url='" + this.f8147b + "', path='" + this.f8148c + "', pauseOnConnectionLost=" + this.f8149d + ", id='" + this.f8151f + "', cookieString='" + this.f8152g + "', cancelled=" + this.f8153h + '}'; } }