package com.google.android.gms.common;

import com.google.android.gms.common.internal.Preconditions;
import java.util.List;
import o.AbstractC1229fo0;
import o.C1706ko0;
import o.Zn0;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class zzy {
    private String zza = null;
    private long zzb = -1;
    private AbstractC1229fo0 zzc;
    private AbstractC1229fo0 zzd;

    public zzy() {
        Zn0 zn0 = AbstractC1229fo0.m;
        C1706ko0 c1706ko0 = C1706ko0.p;
        this.zzc = c1706ko0;
        this.zzd = c1706ko0;
    }

    public final zzy zza(long j) {
        this.zzb = j;
        return this;
    }

    public final zzy zzb(List list) {
        Preconditions.checkNotNull(list);
        this.zzd = AbstractC1229fo0.k(list);
        return this;
    }

    public final zzy zzc(List list) {
        Preconditions.checkNotNull(list);
        this.zzc = AbstractC1229fo0.k(list);
        return this;
    }

    public final zzy zzd(String str) {
        this.zza = str;
        return this;
    }

    public final zzaa zze() {
        if (this.zza == null) {
            throw new IllegalStateException("packageName must be defined");
        }
        if (this.zzb < 0) {
            throw new IllegalStateException("minimumStampedVersionNumber must be greater than or equal to 0");
        }
        if (this.zzc.isEmpty() && this.zzd.isEmpty()) {
            throw new IllegalStateException("Either orderedTestCerts or orderedProdCerts must have at least one cert");
        }
        return new zzaa(this.zza, this.zzb, this.zzc, this.zzd, null);
    }
}
