package com.google.android.gms.internal.ads;

import android.net.Uri;
import androidx.annotation.Nullable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class dy1 {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final /* synthetic */ int f10563f = 0;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Uri f10564a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map f10565b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f10566c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f10567d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int f10568e;

    @Nullable
    public final byte[] zzc;

    static {
        n7.a("media3.datasource");
    }

    public /* synthetic */ dy1(Uri uri, Map map, long j10, long j11, int i10) {
        this(uri, 0L, 1, null, map, j10, j11, null, i10, null);
    }

    public final String toString() {
        String string = this.f10564a.toString();
        int length = string.length();
        long j10 = this.f10566c;
        int length2 = String.valueOf(j10).length();
        long j11 = this.f10567d;
        int length3 = String.valueOf(j11).length();
        int i10 = this.f10568e;
        StringBuilder sb = new StringBuilder(length + 15 + length2 + 2 + length3 + 8 + String.valueOf(i10).length() + 1);
        sb.append("DataSpec[GET ");
        sb.append(string);
        sb.append(", ");
        sb.append(j10);
        defpackage.e.B(sb, ", ", j11, ", null, ");
        return u.a.b(sb, i10, "]");
    }

    private dy1(Uri uri, long j10, int i10, @Nullable byte[] bArr, Map map, long j11, long j12, @Nullable String str, int i11, @Nullable Object obj) {
        boolean z10 = false;
        boolean z11 = j11 >= 0;
        ih1.x(z11);
        ih1.x(z11);
        if (j12 > 0) {
            z10 = true;
        } else if (j12 == -1) {
            j12 = -1;
            z10 = true;
        }
        ih1.x(z10);
        uri.getClass();
        this.f10564a = uri;
        this.zzc = null;
        this.f10565b = Collections.unmodifiableMap(new HashMap(map));
        this.f10566c = j11;
        this.f10567d = j12;
        this.f10568e = i11;
    }

    @Deprecated
    public dy1(Uri uri, long j10, long j11, @Nullable String str) {
        this(uri, 0L, 1, null, Collections.emptyMap(), j10, j11, null, 0, null);
    }
}
