package T3;

import com.google.crypto.tink.shaded.protobuf.AbstractC0736b;
import com.google.crypto.tink.shaded.protobuf.AbstractC0755v;
import com.google.crypto.tink.shaded.protobuf.C0754u;
import com.google.crypto.tink.shaded.protobuf.InterfaceC0758y;
import u.AbstractC1563h;

/* JADX INFO: loaded from: classes.dex */
public final class k0 extends AbstractC0755v {
    private static final k0 DEFAULT_INSTANCE;
    public static final int KEY_INFO_FIELD_NUMBER = 2;
    private static volatile com.google.crypto.tink.shaded.protobuf.W PARSER = null;
    public static final int PRIMARY_KEY_ID_FIELD_NUMBER = 1;
    private InterfaceC0758y keyInfo_ = com.google.crypto.tink.shaded.protobuf.Z.f10471t;
    private int primaryKeyId_;

    static {
        k0 k0Var = new k0();
        DEFAULT_INSTANCE = k0Var;
        AbstractC0755v.t(k0.class, k0Var);
    }

    public static void w(k0 k0Var, int i) {
        k0Var.primaryKeyId_ = i;
    }

    public static void x(k0 k0Var, j0 j0Var) {
        k0Var.getClass();
        InterfaceC0758y interfaceC0758y = k0Var.keyInfo_;
        if (!((AbstractC0736b) interfaceC0758y).f10478q) {
            int size = interfaceC0758y.size();
            k0Var.keyInfo_ = interfaceC0758y.q(size == 0 ? 10 : size * 2);
        }
        k0Var.keyInfo_.add(j0Var);
    }

    public static h0 z() {
        return (h0) DEFAULT_INSTANCE.h();
    }

    @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\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u000b\u0002\u001b", new Object[]{"primaryKeyId_", "keyInfo_", j0.class});
            case 3:
                return new k0();
            case 4:
                return new h0(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 (k0.class) {
                    try {
                        c0754u = PARSER;
                        if (c0754u == null) {
                            c0754u = new C0754u();
                            PARSER = c0754u;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return c0754u;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final j0 y() {
        return (j0) this.keyInfo_.get(0);
    }
}
