package mk;

import com.google.crypto.tink.shaded.protobuf.z;

/* loaded from: classes3.dex */
public enum i0 implements z.a {
    UNKNOWN_PREFIX(0),
    TINK(1),
    LEGACY(2),
    RAW(3),
    CRUNCHY(4),
    UNRECOGNIZED(-1);

    public static final int CRUNCHY_VALUE = 4;
    public static final int LEGACY_VALUE = 2;
    public static final int RAW_VALUE = 3;
    public static final int TINK_VALUE = 1;
    public static final int UNKNOWN_PREFIX_VALUE = 0;
    private static final z.b internalValueMap = new z.b() { // from class: mk.i0.a
    };
    private final int value;

    /* loaded from: classes3.dex */
    private static final class b implements z.c {

        /* renamed from: a, reason: collision with root package name */
        static final z.c f29172a = new b();

        private b() {
        }

        @Override // com.google.crypto.tink.shaded.protobuf.z.c
        public boolean isInRange(int i10) {
            return i0.forNumber(i10) != null;
        }
    }

    i0(int i10) {
        this.value = i10;
    }

    public static i0 forNumber(int i10) {
        if (i10 == 0) {
            return UNKNOWN_PREFIX;
        }
        if (i10 == 1) {
            return TINK;
        }
        if (i10 == 2) {
            return LEGACY;
        }
        if (i10 == 3) {
            return RAW;
        }
        if (i10 != 4) {
            return null;
        }
        return CRUNCHY;
    }

    public static z.b internalGetValueMap() {
        return internalValueMap;
    }

    public static z.c internalGetVerifier() {
        return b.f29172a;
    }

    public final int getNumber() {
        if (this != UNRECOGNIZED) {
            return this.value;
        }
        throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
    }

    @Deprecated
    public static i0 valueOf(int i10) {
        return forNumber(i10);
    }
}
