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

import android.net.Uri;

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f20231f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f20232g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f20233h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final com.google.common.base.e f20234i;

    public i5(Uri uri) {
        this(null, uri, "", "", false, false, false, false, null);
    }

    public final h5 a(long j10, String str) {
        Long lValueOf = Long.valueOf(j10);
        Object obj = d5.f20153g;
        return new h5(this, str, lValueOf, 0);
    }

    public final h5 b(String str, String str2) {
        Object obj = d5.f20153g;
        return new h5(this, str, str2, 3);
    }

    public final h5 c(String str, boolean z10) {
        Boolean boolValueOf = Boolean.valueOf(z10);
        Object obj = d5.f20153g;
        return new h5(this, str, boolValueOf, 2);
    }

    public final i5 d() {
        return new i5(this.f20226a, this.f20227b, this.f20228c, this.f20229d, this.f20230e, this.f20231f, true, this.f20233h, this.f20234i);
    }

    public final i5 e() {
        if (!this.f20228c.isEmpty()) {
            throw new IllegalStateException("Cannot set GServices prefix and skip GServices");
        }
        com.google.common.base.e eVar = this.f20234i;
        if (eVar == null) {
            return new i5(this.f20226a, this.f20227b, this.f20228c, this.f20229d, true, this.f20231f, this.f20232g, this.f20233h, eVar);
        }
        throw new IllegalStateException("Cannot skip gservices both always and conditionally");
    }

    public i5(String str, Uri uri, String str2, String str3, boolean z10, boolean z11, boolean z12, boolean z13, com.google.common.base.e eVar) {
        this.f20226a = str;
        this.f20227b = uri;
        this.f20228c = str2;
        this.f20229d = str3;
        this.f20230e = z10;
        this.f20231f = z11;
        this.f20232g = z12;
        this.f20233h = z13;
        this.f20234i = eVar;
    }
}
