package M2;

import E1.C0104k;
import O1.C0225a;
import P2.w;
import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.internal.measurement.X1;
import java.util.Arrays;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class b extends Q2.a {

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

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final PendingIntent f4156s;

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

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public static final b f4153u = new b(0);
    public static final Parcelable.Creator<b> CREATOR = new C0104k(4);

    public b(int i, int i5, PendingIntent pendingIntent, String str) {
        this.f4154q = i;
        this.f4155r = i5;
        this.f4156s = pendingIntent;
        this.f4157t = str;
    }

    public static String a(int i) {
        if (i == 99) {
            return "UNFINISHED";
        }
        if (i == 1500) {
            return "DRIVE_EXTERNAL_STORAGE_REQUIRED";
        }
        switch (i) {
            case -1:
                return "UNKNOWN";
            case u0.f15495q /* 0 */:
                return "SUCCESS";
            case 1:
                return "SERVICE_MISSING";
            case 2:
                return "SERVICE_VERSION_UPDATE_REQUIRED";
            case 3:
                return "SERVICE_DISABLED";
            case 4:
                return "SIGN_IN_REQUIRED";
            case 5:
                return "INVALID_ACCOUNT";
            case Z.g.STRING_SET_FIELD_NUMBER /* 6 */:
                return "RESOLUTION_REQUIRED";
            case Z.g.DOUBLE_FIELD_NUMBER /* 7 */:
                return "NETWORK_ERROR";
            case Z.g.BYTES_FIELD_NUMBER /* 8 */:
                return "INTERNAL_ERROR";
            case 9:
                return "SERVICE_INVALID";
            case 10:
                return "DEVELOPER_ERROR";
            case 11:
                return "LICENSE_CHECK_FAILED";
            default:
                switch (i) {
                    case 13:
                        return "CANCELED";
                    case 14:
                        return "TIMEOUT";
                    case 15:
                        return "INTERRUPTED";
                    case 16:
                        return "API_UNAVAILABLE";
                    case 17:
                        return "SIGN_IN_FAILED";
                    case 18:
                        return "SERVICE_UPDATING";
                    case 19:
                        return "SERVICE_MISSING_PERMISSION";
                    case 20:
                        return "RESTRICTED_PROFILE";
                    case 21:
                        return "API_VERSION_UPDATE_REQUIRED";
                    case 22:
                        return "RESOLUTION_ACTIVITY_NOT_FOUND";
                    case 23:
                        return "API_DISABLED";
                    case 24:
                        return "API_DISABLED_FOR_CONNECTION";
                    case 25:
                        return "API_INSTALL_REQUIRED";
                    default:
                        return I1.a.k(i, "UNKNOWN_ERROR_CODE(", ")");
                }
        }
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof b)) {
            return false;
        }
        b bVar = (b) obj;
        return this.f4155r == bVar.f4155r && w.i(this.f4156s, bVar.f4156s) && w.i(this.f4157t, bVar.f4157t);
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{Integer.valueOf(this.f4155r), this.f4156s, this.f4157t});
    }

    public final String toString() {
        C0225a c0225a = new C0225a(this);
        c0225a.d(a(this.f4155r), "statusCode");
        c0225a.d(this.f4156s, "resolution");
        c0225a.d(this.f4157t, "message");
        return c0225a.toString();
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        int iU = X1.U(parcel, 20293);
        X1.Z(parcel, 1, 4);
        parcel.writeInt(this.f4154q);
        X1.Z(parcel, 2, 4);
        parcel.writeInt(this.f4155r);
        X1.Q(parcel, 3, this.f4156s, i);
        X1.R(parcel, 4, this.f4157t);
        X1.Y(parcel, iU);
    }

    public b(int i) {
        this(1, i, null, null);
    }

    public b(int i, PendingIntent pendingIntent) {
        this(1, i, pendingIntent, null);
    }
}
