package com.google.android.gms.common.api;

import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.ReflectedParcelable;
import java.util.Arrays;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p242.p246.p247.C4249;
import p138.p176.p177.p242.p246.p249.C4281;
import p138.p176.p177.p242.p246.p249.p250.AbstractC4283;

/* JADX INFO: loaded from: classes.dex */
public final class Status extends AbstractC4283 implements ReflectedParcelable {
    public static final Parcelable.Creator<Status> CREATOR;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public static final Status f2075 = new Status(0, null);

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public static final Status f2076;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public static final Status f2077;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final int f2078;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final int f2079;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final String f2080;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final PendingIntent f2081;

    static {
        new Status(14, null);
        new Status(8, null);
        f2076 = new Status(15, null);
        f2077 = new Status(16, null);
        new Status(17, null);
        new Status(18, null);
        CREATOR = new C4249();
    }

    public Status(int i, int i2, String str, PendingIntent pendingIntent) {
        this.f2078 = i;
        this.f2079 = i2;
        this.f2080 = str;
        this.f2081 = pendingIntent;
    }

    public Status(int i, String str) {
        this.f2078 = 1;
        this.f2079 = i;
        this.f2080 = str;
        this.f2081 = null;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof Status)) {
            return false;
        }
        Status status = (Status) obj;
        return this.f2078 == status.f2078 && this.f2079 == status.f2079 && C0567.m1922((Object) this.f2080, (Object) status.f2080) && C0567.m1922(this.f2081, status.f2081);
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{Integer.valueOf(this.f2078), Integer.valueOf(this.f2079), this.f2080, this.f2081});
    }

    public final String toString() {
        C4281 c4281M1935 = C0567.m1935(this);
        String string = this.f2080;
        if (string == null) {
            int i = this.f2079;
            switch (i) {
                case -1:
                    string = "SUCCESS_CACHE";
                    break;
                case 0:
                    string = "SUCCESS";
                    break;
                case 1:
                case 9:
                case 11:
                case 12:
                default:
                    StringBuilder sb = new StringBuilder(32);
                    sb.append("unknown status code: ");
                    sb.append(i);
                    string = sb.toString();
                    break;
                case 2:
                    string = "SERVICE_VERSION_UPDATE_REQUIRED";
                    break;
                case 3:
                    string = "SERVICE_DISABLED";
                    break;
                case 4:
                    string = "SIGN_IN_REQUIRED";
                    break;
                case 5:
                    string = "INVALID_ACCOUNT";
                    break;
                case 6:
                    string = "RESOLUTION_REQUIRED";
                    break;
                case 7:
                    string = "NETWORK_ERROR";
                    break;
                case 8:
                    string = "INTERNAL_ERROR";
                    break;
                case 10:
                    string = "DEVELOPER_ERROR";
                    break;
                case 13:
                    string = "ERROR";
                    break;
                case 14:
                    string = "INTERRUPTED";
                    break;
                case 15:
                    string = "TIMEOUT";
                    break;
                case 16:
                    string = "CANCELED";
                    break;
                case 17:
                    string = "API_NOT_CONNECTED";
                    break;
                case 18:
                    string = "DEAD_CLIENT";
                    break;
            }
        }
        c4281M1935.m6962("statusCode", string);
        c4281M1935.m6962("resolution", this.f2081);
        return c4281M1935.toString();
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        int iM1843 = C0567.m1843(parcel);
        C0567.m1880(parcel, 1, this.f2079);
        C0567.m1885(parcel, 2, this.f2080, false);
        C0567.m1884(parcel, 3, (Parcelable) this.f2081, i, false);
        C0567.m1880(parcel, 1000, this.f2078);
        C0567.m1955(parcel, iM1843);
    }
}
