package F2;

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

/* JADX INFO: loaded from: classes.dex */
public final class V extends AbstractC0492v {
    private static final V DEFAULT_INSTANCE;
    public static final int HASH_FIELD_NUMBER = 1;
    private static volatile com.google.crypto.tink.shaded.protobuf.W PARSER = null;
    public static final int TAG_SIZE_FIELD_NUMBER = 2;
    private int hash_;
    private int tagSize_;

    static {
        V v5 = new V();
        DEFAULT_INSTANCE = v5;
        AbstractC0492v.t(V.class, v5);
    }

    public static U B() {
        return (U) DEFAULT_INSTANCE.h();
    }

    public static void w(V v5, O o5) {
        v5.getClass();
        v5.hash_ = o5.a();
    }

    public static void x(V v5, int i) {
        v5.tagSize_ = i;
    }

    public static V y() {
        return DEFAULT_INSTANCE;
    }

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

    @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\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u000b", new Object[]{"hash_", "tagSize_"});
            case 3:
                return new V();
            case 4:
                return new U(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                com.google.crypto.tink.shaded.protobuf.W w5 = PARSER;
                if (w5 != null) {
                    return w5;
                }
                synchronized (V.class) {
                    try {
                        c0491u = PARSER;
                        if (c0491u == null) {
                            c0491u = new C0491u();
                            PARSER = c0491u;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return c0491u;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final O z() {
        int i = this.hash_;
        O o5 = i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? null : O.SHA224 : O.SHA512 : O.SHA256 : O.SHA384 : O.SHA1 : O.UNKNOWN_HASH;
        return o5 == null ? O.UNRECOGNIZED : o5;
    }
}
