package com.google.firebase.components;

import com.google.android.gms.measurement.internal.u1;

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

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

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

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

    public k(int i10, int i11, Class cls) {
        this(p.a(cls), i10, i11);
    }

    public static k a(Class cls) {
        return new k(1, 0, cls);
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return this.f24025a.equals(kVar.f24025a) && this.f24026b == kVar.f24026b && this.f24027c == kVar.f24027c;
    }

    public final int hashCode() {
        return ((((this.f24025a.hashCode() ^ 1000003) * 1000003) ^ this.f24026b) * 1000003) ^ this.f24027c;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("Dependency{anInterface=");
        sb.append(this.f24025a);
        sb.append(", type=");
        int i10 = this.f24026b;
        sb.append(i10 == 1 ? "required" : i10 == 0 ? "optional" : "set");
        sb.append(", injection=");
        int i11 = this.f24027c;
        if (i11 == 0) {
            str = "direct";
        } else if (i11 == 1) {
            str = "provider";
        } else {
            if (i11 != 2) {
                throw new AssertionError(u1.g("Unsupported injection: ", i11));
            }
            str = "deferred";
        }
        return defpackage.e.o(sb, str, "}");
    }

    public k(p pVar, int i10, int i11) {
        this.f24025a = pVar;
        this.f24026b = i10;
        this.f24027c = i11;
    }
}
