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

import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.WorkerThread;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class g0 {
    public long A;
    public boolean B;
    public long C;
    public long D;

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public long f21595e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public long f21596f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long f21597g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public long f21598h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public boolean f21599i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public boolean f21600j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public long f21601k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public boolean f21602l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public long f21603m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public long f21604n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public int f21605o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public boolean f21606p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public long f21607q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public int f21608r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public int f21609s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public long f21610t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public String f21611u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public long f21612v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public long f21613w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public long f21614x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public long f21615y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public long f21616z;

    @Nullable
    private Long zzaa;

    @Nullable
    private Long zzab;

    @Nullable
    private String zzad;

    @Nullable
    private byte[] zzai;

    @Nullable
    private String zzap;

    @Nullable
    private String zzc;

    @Nullable
    private String zzd;

    @Nullable
    private String zze;

    @Nullable
    private String zzf;

    @Nullable
    private String zzj;

    @Nullable
    private String zzl;

    @Nullable
    private String zzq;

    @Nullable
    private Boolean zzr;

    @Nullable
    private List<String> zzt;

    @Nullable
    private String zzu;

    public g0(m1 m1Var, String str) {
        com.google.android.gms.common.internal.w.checkNotNull(m1Var);
        com.google.android.gms.common.internal.w.checkNotEmpty(str);
        this.f21591a = m1Var;
        this.f21592b = str;
        j1 j1Var = m1Var.f21758j;
        m1.d(j1Var);
        j1Var.w();
    }

    public final void A(long j10) {
        com.google.android.gms.common.internal.w.a(j10 >= 0);
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21593c != j10;
        this.f21593c = j10;
    }

    public final void B(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21594d != j10;
        this.f21594d = j10;
    }

    public final void C(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21604n != j10;
        this.f21604n = j10;
    }

    public final void D(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21603m != j10;
        this.f21603m = j10;
    }

    public final void a(long j10) {
        m1 m1Var = this.f21591a;
        j1 j1Var = m1Var.f21758j;
        m1.d(j1Var);
        j1Var.w();
        long j11 = this.f21593c + j10;
        p0 p0Var = m1Var.f21757i;
        String str = this.f21592b;
        if (j11 > 2147483647L) {
            m1.d(p0Var);
            p0Var.f21837i.b(p0.A(str), "Bundle index overflow. appId");
            j11 = j10 - 1;
        }
        long j12 = this.f21610t + 1;
        if (j12 > 2147483647L) {
            m1.d(p0Var);
            p0Var.f21837i.b(p0.A(str), "Delivery index overflow. appId");
            j12 = 0;
        }
        this.B = true;
        this.f21593c = j11;
        this.f21610t = j12;
    }

    public final String b() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.f21592b;
    }

    public final String c() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.f21611u;
    }

    public final void d() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B = false;
    }

    public final boolean e() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.B;
    }

    public final boolean f() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.f21602l;
    }

    public final void g(int i10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21609s != i10;
        this.f21609s = i10;
    }

    public final void h(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21596f != j10;
        this.f21596f = j10;
    }

    public final void i(boolean z10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21599i != z10;
        this.f21599i = z10;
    }

    public final void j(int i10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21608r != i10;
        this.f21608r = i10;
    }

    public final void k(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21607q != j10;
        this.f21607q = j10;
    }

    public final void l(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.C != j10;
        this.C = j10;
    }

    public final long m() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.f21596f;
    }

    public final void n(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21615y != j10;
        this.f21615y = j10;
    }

    public final void o(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21616z != j10;
        this.f21616z = j10;
    }

    public final void p(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21614x != j10;
        this.f21614x = j10;
    }

    public final void q(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21613w != j10;
        this.f21613w = j10;
    }

    public final void r(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.A != j10;
        this.A = j10;
    }

    public final void s(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21612v != j10;
        this.f21612v = j10;
    }

    public final void t(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21598h != j10;
        this.f21598h = j10;
    }

    public final void u(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21601k != j10;
        this.f21601k = j10;
    }

    public final void v(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.D != j10;
        this.D = j10;
    }

    public final void w(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21597g != j10;
        this.f21597g = j10;
    }

    public final long x() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.f21601k;
    }

    public final void y(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21610t != j10;
        this.f21610t = j10;
    }

    public final void z(long j10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.f21595e != j10;
        this.f21595e = j10;
    }

    @WorkerThread
    public final void zza(@Nullable Boolean bool) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzr, bool);
        this.zzr = bool;
    }

    @Nullable
    @WorkerThread
    public final String zzaa() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzq;
    }

    @Nullable
    @WorkerThread
    public final String zzab() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        String str = this.zzap;
        zzg(null);
        return str;
    }

    @Nullable
    @WorkerThread
    public final String zzad() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzc;
    }

    @Nullable
    @WorkerThread
    public final String zzae() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzl;
    }

    @Nullable
    @WorkerThread
    public final String zzaf() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzj;
    }

    @Nullable
    @WorkerThread
    public final String zzag() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzf;
    }

    @Nullable
    @WorkerThread
    public final String zzah() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzd;
    }

    @Nullable
    @WorkerThread
    public final String zzai() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzap;
    }

    @Nullable
    @WorkerThread
    public final String zzaj() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zze;
    }

    @Nullable
    @WorkerThread
    public final String zzal() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzu;
    }

    @Nullable
    @WorkerThread
    public final String zzam() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzad;
    }

    @Nullable
    @WorkerThread
    public final List<String> zzan() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzt;
    }

    @Nullable
    @WorkerThread
    public final byte[] zzav() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzai;
    }

    @WorkerThread
    public final void zzb(@Nullable Long l10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzab, l10);
        this.zzab = l10;
    }

    @WorkerThread
    public final void zzc(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzl, str);
        this.zzl = str;
    }

    @WorkerThread
    public final void zzd(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzj, str);
        this.zzj = str;
    }

    @WorkerThread
    public final void zze(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzf, str);
        this.zzf = str;
    }

    @WorkerThread
    public final void zzf(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        if (TextUtils.isEmpty(str)) {
            str = null;
        }
        this.B |= !Objects.equals(this.zzd, str);
        this.zzd = str;
    }

    @WorkerThread
    public final void zzg(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzap, str);
        this.zzap = str;
    }

    @WorkerThread
    public final void zzh(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zze, str);
        this.zze = str;
    }

    @WorkerThread
    public final void zzj(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzu, str);
        this.zzu = str;
    }

    @WorkerThread
    public final void zzk(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.zzad != str;
        this.zzad = str;
    }

    @Nullable
    @WorkerThread
    public final Boolean zzx() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzr;
    }

    @Nullable
    @WorkerThread
    public final Long zzy() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzaa;
    }

    @Nullable
    @WorkerThread
    public final Long zzz() {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        return this.zzab;
    }

    @WorkerThread
    public final void zza(@Nullable Long l10) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzaa, l10);
        this.zzaa = l10;
    }

    @WorkerThread
    public final void zzb(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= !Objects.equals(this.zzc, str);
        this.zzc = str;
    }

    @WorkerThread
    public final void zza(@Nullable String str) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        if (TextUtils.isEmpty(str)) {
            str = null;
        }
        this.B |= !Objects.equals(this.zzq, str);
        this.zzq = str;
    }

    @WorkerThread
    public final void zza(@Nullable List<String> list) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        if (Objects.equals(this.zzt, list)) {
            return;
        }
        this.B = true;
        this.zzt = list != null ? new ArrayList(list) : null;
    }

    @WorkerThread
    public final void zza(@Nullable byte[] bArr) {
        j1 j1Var = this.f21591a.f21758j;
        m1.d(j1Var);
        j1Var.w();
        this.B |= this.zzai != bArr;
        this.zzai = bArr;
    }
}
