package ra;

import com.google.crypto.tink.proto.KeyStatusType;
import com.google.crypto.tink.proto.OutputPrefixType;
import com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite$MethodToInvoke;

/* JADX INFO: loaded from: classes2.dex */
public final class c1 extends com.google.crypto.tink.shaded.protobuf.x implements com.google.crypto.tink.shaded.protobuf.p0 {
    private static final c1 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.v0 PARSER = null;
    public static final int STATUS_FIELD_NUMBER = 2;
    private int bitField0_;
    private w0 keyData_;
    private int keyId_;
    private int outputPrefixType_;
    private int status_;

    static {
        c1 c1Var = new c1();
        DEFAULT_INSTANCE = c1Var;
        com.google.crypto.tink.shaded.protobuf.x.z(c1.class, c1Var);
    }

    public static void D(c1 c1Var, w0 w0Var) {
        c1Var.getClass();
        c1Var.keyData_ = w0Var;
        c1Var.bitField0_ |= 1;
    }

    public static void E(c1 c1Var, OutputPrefixType outputPrefixType) {
        c1Var.getClass();
        c1Var.outputPrefixType_ = outputPrefixType.b();
    }

    public static void F(c1 c1Var, KeyStatusType keyStatusType) {
        c1Var.getClass();
        c1Var.status_ = keyStatusType.a();
    }

    public static void G(c1 c1Var, int i10) {
        c1Var.keyId_ = i10;
    }

    public static b1 M() {
        return (b1) DEFAULT_INSTANCE.j();
    }

    public final w0 H() {
        w0 w0Var = this.keyData_;
        return w0Var == null ? w0.G() : w0Var;
    }

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

    public final OutputPrefixType J() {
        OutputPrefixType outputPrefixTypeA = OutputPrefixType.a(this.outputPrefixType_);
        return outputPrefixTypeA == null ? OutputPrefixType.UNRECOGNIZED : outputPrefixTypeA;
    }

    public final KeyStatusType K() {
        int i10 = this.status_;
        KeyStatusType keyStatusType = i10 != 0 ? i10 != 1 ? i10 != 2 ? i10 != 3 ? null : KeyStatusType.DESTROYED : KeyStatusType.DISABLED : KeyStatusType.ENABLED : KeyStatusType.UNKNOWN_STATUS;
        return keyStatusType == null ? KeyStatusType.UNRECOGNIZED : keyStatusType;
    }

    public final boolean L() {
        return (this.bitField0_ & 1) != 0;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.x
    public final Object k(GeneratedMessageLite$MethodToInvoke generatedMessageLite$MethodToInvoke) {
        int iOrdinal = generatedMessageLite$MethodToInvoke.ordinal();
        if (iOrdinal == 0) {
            return (byte) 1;
        }
        if (iOrdinal == 2) {
            return new com.google.crypto.tink.shaded.protobuf.y0(DEFAULT_INSTANCE, "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001ဉ\u0000\u0002\f\u0003\u000b\u0004\f", new Object[]{"bitField0_", "keyData_", "status_", "keyId_", "outputPrefixType_"});
        }
        if (iOrdinal == 3) {
            return new c1();
        }
        if (iOrdinal == 4) {
            return new b1(DEFAULT_INSTANCE);
        }
        if (iOrdinal == 5) {
            return DEFAULT_INSTANCE;
        }
        if (iOrdinal != 6) {
            throw null;
        }
        com.google.crypto.tink.shaded.protobuf.v0 wVar = PARSER;
        if (wVar == null) {
            synchronized (c1.class) {
                try {
                    wVar = PARSER;
                    if (wVar == null) {
                        wVar = new com.google.crypto.tink.shaded.protobuf.w();
                        PARSER = wVar;
                    }
                } finally {
                }
            }
        }
        return wVar;
    }
}
