package X3;

import com.google.crypto.tink.shaded.protobuf.AbstractC1274w;
import com.google.crypto.tink.shaded.protobuf.C1273v;
import m1.AbstractC2464a;

/* JADX INFO: loaded from: classes3.dex */
public final class f0 extends AbstractC1274w {
    private static final f0 DEFAULT_INSTANCE;
    public static final int KEY_DATA_FIELD_NUMBER = 1;
    public static final int KEY_ID_FIELD_NUMBER = 3;
    public static final int OUTPUT_PREFIX_TYPE_FIELD_NUMBER = 4;
    private static volatile com.google.crypto.tink.shaded.protobuf.X PARSER = null;
    public static final int STATUS_FIELD_NUMBER = 2;
    private Y keyData_;
    private int keyId_;
    private int outputPrefixType_;
    private int status_;

    static {
        f0 f0Var = new f0();
        DEFAULT_INSTANCE = f0Var;
        AbstractC1274w.s(f0.class, f0Var);
    }

    public static e0 E() {
        return (e0) DEFAULT_INSTANCE.g();
    }

    public static void v(f0 f0Var, Y y6) {
        f0Var.getClass();
        f0Var.keyData_ = y6;
    }

    public static void w(f0 f0Var, r0 r0Var) {
        f0Var.getClass();
        f0Var.outputPrefixType_ = r0Var.b();
    }

    public static void x(f0 f0Var) {
        Z z6 = Z.ENABLED;
        f0Var.getClass();
        f0Var.status_ = z6.a();
    }

    public static void y(f0 f0Var, int i6) {
        f0Var.keyId_ = i6;
    }

    public final int A() {
        return this.keyId_;
    }

    public final r0 B() {
        r0 r0VarA = r0.a(this.outputPrefixType_);
        return r0VarA == null ? r0.UNRECOGNIZED : r0VarA;
    }

    public final Z C() {
        int i6 = this.status_;
        Z z6 = i6 != 0 ? i6 != 1 ? i6 != 2 ? i6 != 3 ? null : Z.DESTROYED : Z.DISABLED : Z.ENABLED : Z.UNKNOWN_STATUS;
        return z6 == null ? Z.UNRECOGNIZED : z6;
    }

    public final boolean D() {
        return this.keyData_ != null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.AbstractC1274w
    public final Object h(int i6) {
        com.google.crypto.tink.shaded.protobuf.X c1273v;
        switch (AbstractC2464a.c(i6)) {
            case 0:
                return (byte) 1;
            case 1:
                return null;
            case 2:
                return new com.google.crypto.tink.shaded.protobuf.b0(DEFAULT_INSTANCE, "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\t\u0002\f\u0003\u000b\u0004\f", new Object[]{"keyData_", "status_", "keyId_", "outputPrefixType_"});
            case 3:
                return new f0();
            case 4:
                return new e0(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                com.google.crypto.tink.shaded.protobuf.X x6 = PARSER;
                if (x6 != null) {
                    return x6;
                }
                synchronized (f0.class) {
                    try {
                        c1273v = PARSER;
                        if (c1273v == null) {
                            c1273v = new C1273v();
                            PARSER = c1273v;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return c1273v;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final Y z() {
        Y y6 = this.keyData_;
        return y6 == null ? Y.y() : y6;
    }
}
