package F2;

import com.google.crypto.tink.shaded.protobuf.AbstractC0479h;
import com.google.crypto.tink.shaded.protobuf.AbstractC0492v;
import com.google.crypto.tink.shaded.protobuf.C0478g;
import com.google.crypto.tink.shaded.protobuf.C0491u;

/* JADX INFO: loaded from: classes.dex */
public final class Y extends AbstractC0492v {
    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.W 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 AbstractC0479h value_ = AbstractC0479h.f5758l;

    static {
        Y y5 = new Y();
        DEFAULT_INSTANCE = y5;
        AbstractC0492v.t(Y.class, y5);
    }

    public static W D() {
        return (W) DEFAULT_INSTANCE.h();
    }

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

    public static void x(Y y5, C0478g c0478g) {
        y5.getClass();
        y5.value_ = c0478g;
    }

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

    public static Y z() {
        return DEFAULT_INSTANCE;
    }

    public final X A() {
        int i = this.keyMaterialType_;
        X x5 = i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? null : X.REMOTE : X.ASYMMETRIC_PUBLIC : X.ASYMMETRIC_PRIVATE : X.SYMMETRIC : X.UNKNOWN_KEYMATERIAL;
        return x5 == null ? X.UNRECOGNIZED : x5;
    }

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

    public final AbstractC0479h C() {
        return this.value_;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.AbstractC0492v
    public final Object i(int i) {
        com.google.crypto.tink.shaded.protobuf.W c0491u;
        switch (u.e.c(i)) {
            case 0:
                return (byte) 1;
            case 1:
                return null;
            case 2:
                return new com.google.crypto.tink.shaded.protobuf.a0(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.W w5 = PARSER;
                if (w5 != null) {
                    return w5;
                }
                synchronized (Y.class) {
                    try {
                        c0491u = PARSER;
                        if (c0491u == null) {
                            c0491u = new C0491u();
                            PARSER = c0491u;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return c0491u;
            default:
                throw new UnsupportedOperationException();
        }
    }
}
