package T3;

import com.google.crypto.tink.shaded.protobuf.AbstractC0742h;
import com.google.crypto.tink.shaded.protobuf.AbstractC0755v;
import com.google.crypto.tink.shaded.protobuf.C0741g;
import com.google.crypto.tink.shaded.protobuf.C0754u;
import u.AbstractC1563h;

/* JADX INFO: loaded from: classes.dex */
public final class Y extends AbstractC0755v {
    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 AbstractC0742h value_ = AbstractC0742h.f10496r;

    static {
        Y y8 = new Y();
        DEFAULT_INSTANCE = y8;
        AbstractC0755v.t(Y.class, y8);
    }

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

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

    public static void x(Y y8, C0741g c0741g) {
        y8.getClass();
        y8.value_ = c0741g;
    }

    public static void y(Y y8, X x8) {
        y8.getClass();
        if (x8 != X.f6576w) {
            y8.keyMaterialType_ = x8.f6578q;
        } else {
            x8.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 x8 = i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? null : X.f6575v : X.f6574u : X.f6573t : X.f6572s : X.f6571r;
        return x8 == null ? X.f6576w : x8;
    }

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

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

    @Override // com.google.crypto.tink.shaded.protobuf.AbstractC0755v
    public final Object i(int i) {
        com.google.crypto.tink.shaded.protobuf.W c0754u;
        switch (AbstractC1563h.c(i)) {
            case n4.u0.f15495q /* 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 Z.g.STRING_SET_FIELD_NUMBER /* 6 */:
                com.google.crypto.tink.shaded.protobuf.W w4 = PARSER;
                if (w4 != null) {
                    return w4;
                }
                synchronized (Y.class) {
                    try {
                        c0754u = PARSER;
                        if (c0754u == null) {
                            c0754u = new C0754u();
                            PARSER = c0754u;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return c0754u;
            default:
                throw new UnsupportedOperationException();
        }
    }
}
