package com.google.firebase.components;

import a0.v;
import androidx.annotation.Nullable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

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

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

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

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

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

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

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

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

    public /* synthetic */ a(String str, HashSet hashSet, HashSet hashSet2, int i10, int i11, e eVar, Set set) {
        this(str, (Set<p>) hashSet, (Set<k>) hashSet2, i10, i11, eVar, (Set<Class<?>>) set);
    }

    public static v a(p pVar) {
        return new v(pVar, new p[0]);
    }

    public static v b(Class cls) {
        return new v(cls, new Class[0]);
    }

    public static a c(Object obj, Class cls, Class... clsArr) {
        v vVar = new v(cls, clsArr);
        vVar.f217f = new androidx.media3.exoplayer.offline.e(obj, 1);
        return vVar.e();
    }

    public final a d(nb.e eVar) {
        return new a(this.f24002a, (Set<p>) this.f24003b, (Set<k>) this.f24004c, this.f24005d, this.f24006e, eVar, (Set<Class<?>>) this.f24008g);
    }

    @Nullable
    public String getName() {
        return this.f24002a;
    }

    public final String toString() {
        return "Component<" + Arrays.toString(this.f24003b.toArray()) + ">{" + this.f24005d + ", type=" + this.f24006e + ", deps=" + Arrays.toString(this.f24004c.toArray()) + "}";
    }

    private a(@Nullable String str, Set<p> set, Set<k> set2, int i10, int i11, e eVar, Set<Class<?>> set3) {
        this.f24002a = str;
        this.f24003b = Collections.unmodifiableSet(set);
        this.f24004c = Collections.unmodifiableSet(set2);
        this.f24005d = i10;
        this.f24006e = i11;
        this.f24007f = eVar;
        this.f24008g = Collections.unmodifiableSet(set3);
    }
}
