package X3;

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

/* JADX INFO: loaded from: classes3.dex */
public final class Y extends AbstractC1274w {
    private static final Y DEFAULT_INSTANCE;
    public static final int KEY_MATERIAL_TYPE_FIELD_NUMBER = 3;
    private static volatile com.google.crypto.tink.shaded.protobuf.X PARSER = null;
    public static final int TYPE_URL_FIELD_NUMBER = 1;
    public static final int VALUE_FIELD_NUMBER = 2;
    private int keyMaterialType_;
    private String typeUrl_ = "";
    private AbstractC1261i value_ = AbstractC1261i.f13790b;

    static {
        Y y6 = new Y();
        DEFAULT_INSTANCE = y6;
        AbstractC1274w.s(Y.class, y6);
    }

    public static W C() {
        return (W) DEFAULT_INSTANCE.g();
    }

    public static void v(Y y6, String str) {
        y6.getClass();
        str.getClass();
        y6.typeUrl_ = str;
    }

    public static void w(Y y6, C1260h c1260h) {
        y6.getClass();
        y6.value_ = c1260h;
    }

    public static void x(Y y6, X x6) {
        y6.getClass();
        if (x6 != X.UNRECOGNIZED) {
            y6.keyMaterialType_ = x6.f8624a;
        } else {
            x6.getClass();
            throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
        }
    }

    public static Y y() {
        return DEFAULT_INSTANCE;
    }

    public final String A() {
        return this.typeUrl_;
    }

    public final AbstractC1261i B() {
        return this.value_;
    }

    @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\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001Ȉ\u0002\n\u0003\f", new Object[]{"typeUrl_", "value_", "keyMaterialType_"});
            case 3:
                return new Y();
            case 4:
                return new W(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                com.google.crypto.tink.shaded.protobuf.X x6 = PARSER;
                if (x6 != null) {
                    return x6;
                }
                synchronized (Y.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 X z() {
        int i6 = this.keyMaterialType_;
        X x6 = i6 != 0 ? i6 != 1 ? i6 != 2 ? i6 != 3 ? i6 != 4 ? null : X.REMOTE : X.ASYMMETRIC_PUBLIC : X.ASYMMETRIC_PRIVATE : X.SYMMETRIC : X.UNKNOWN_KEYMATERIAL;
        return x6 == null ? X.UNRECOGNIZED : x6;
    }
}
