package ra;

import com.google.crypto.tink.shaded.protobuf.ByteString;
import com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite$MethodToInvoke;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import java.io.InputStream;

/* JADX INFO: loaded from: classes2.dex */
public final class o0 extends com.google.crypto.tink.shaded.protobuf.x implements com.google.crypto.tink.shaded.protobuf.p0 {
    private static final o0 DEFAULT_INSTANCE;
    public static final int ENCRYPTED_KEYSET_FIELD_NUMBER = 2;
    public static final int KEYSET_INFO_FIELD_NUMBER = 3;
    private static volatile com.google.crypto.tink.shaded.protobuf.v0 PARSER;
    private int bitField0_;
    private ByteString encryptedKeyset_ = ByteString.f23846a;
    private h1 keysetInfo_;

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

    public static void D(o0 o0Var, ByteString byteString) {
        o0Var.getClass();
        o0Var.encryptedKeyset_ = byteString;
    }

    public static void E(o0 o0Var, h1 h1Var) {
        o0Var.getClass();
        o0Var.keysetInfo_ = h1Var;
        o0Var.bitField0_ |= 1;
    }

    public static n0 G() {
        return (n0) DEFAULT_INSTANCE.j();
    }

    public static o0 H(InputStream inputStream, com.google.crypto.tink.shaded.protobuf.q qVar) throws InvalidProtocolBufferException {
        com.google.crypto.tink.shaded.protobuf.l kVar;
        o0 o0Var = DEFAULT_INSTANCE;
        if (inputStream == null) {
            byte[] bArr = com.google.crypto.tink.shaded.protobuf.b0.f23883b;
            kVar = com.google.crypto.tink.shaded.protobuf.l.f(bArr, 0, bArr.length, false);
        } else {
            kVar = new com.google.crypto.tink.shaded.protobuf.k(inputStream);
        }
        com.google.crypto.tink.shaded.protobuf.x xVarY = com.google.crypto.tink.shaded.protobuf.x.y(o0Var, kVar, qVar);
        com.google.crypto.tink.shaded.protobuf.x.g(xVarY);
        return (o0) xVarY;
    }

    public final ByteString F() {
        return this.encryptedKeyset_;
    }

    @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\u0001\u0002\u0003\u0002\u0000\u0000\u0000\u0002\n\u0003ဉ\u0000", new Object[]{"bitField0_", "encryptedKeyset_", "keysetInfo_"});
        }
        if (iOrdinal == 3) {
            return new o0();
        }
        if (iOrdinal == 4) {
            return new n0(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 (o0.class) {
                try {
                    wVar = PARSER;
                    if (wVar == null) {
                        wVar = new com.google.crypto.tink.shaded.protobuf.w();
                        PARSER = wVar;
                    }
                } finally {
                }
            }
        }
        return wVar;
    }
}
