package ra;

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

/* JADX INFO: loaded from: classes2.dex */
public final class u0 extends com.google.crypto.tink.shaded.protobuf.x implements com.google.crypto.tink.shaded.protobuf.p0 {
    private static final u0 DEFAULT_INSTANCE;
    public static final int HASH_FIELD_NUMBER = 1;
    private static volatile com.google.crypto.tink.shaded.protobuf.v0 PARSER = null;
    public static final int TAG_SIZE_FIELD_NUMBER = 2;
    private int hash_;
    private int tagSize_;

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

    public static void D(u0 u0Var, HashType hashType) {
        u0Var.getClass();
        u0Var.hash_ = hashType.b();
    }

    public static void E(u0 u0Var, int i10) {
        u0Var.tagSize_ = i10;
    }

    public static u0 F() {
        return DEFAULT_INSTANCE;
    }

    public static t0 I() {
        return (t0) DEFAULT_INSTANCE.j();
    }

    public final HashType G() {
        HashType hashTypeA = HashType.a(this.hash_);
        return hashTypeA == null ? HashType.UNRECOGNIZED : hashTypeA;
    }

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

    @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\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u000b", new Object[]{"hash_", "tagSize_"});
        }
        if (iOrdinal == 3) {
            return new u0();
        }
        if (iOrdinal == 4) {
            return new t0(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 (u0.class) {
                try {
                    wVar = PARSER;
                    if (wVar == null) {
                        wVar = new com.google.crypto.tink.shaded.protobuf.w();
                        PARSER = wVar;
                    }
                } finally {
                }
            }
        }
        return wVar;
    }
}
