package ra;

import com.google.crypto.tink.proto.KeyData$KeyMaterialType;
import com.google.crypto.tink.shaded.protobuf.ByteString;
import com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite$MethodToInvoke;

/* JADX INFO: loaded from: classes2.dex */
public final class w0 extends com.google.crypto.tink.shaded.protobuf.x implements com.google.crypto.tink.shaded.protobuf.p0 {
    private static final w0 DEFAULT_INSTANCE;
    public static final int KEY_MATERIAL_TYPE_FIELD_NUMBER = 3;
    private static volatile com.google.crypto.tink.shaded.protobuf.v0 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 ByteString value_ = ByteString.f23846a;

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

    public static void D(w0 w0Var, String str) {
        w0Var.getClass();
        str.getClass();
        w0Var.typeUrl_ = str;
    }

    public static void E(w0 w0Var, ByteString byteString) {
        w0Var.getClass();
        byteString.getClass();
        w0Var.value_ = byteString;
    }

    public static void F(w0 w0Var, KeyData$KeyMaterialType keyData$KeyMaterialType) {
        w0Var.getClass();
        w0Var.keyMaterialType_ = keyData$KeyMaterialType.b();
    }

    public static w0 G() {
        return DEFAULT_INSTANCE;
    }

    public static v0 K() {
        return (v0) DEFAULT_INSTANCE.j();
    }

    public final KeyData$KeyMaterialType H() {
        KeyData$KeyMaterialType keyData$KeyMaterialTypeA = KeyData$KeyMaterialType.a(this.keyMaterialType_);
        return keyData$KeyMaterialTypeA == null ? KeyData$KeyMaterialType.UNRECOGNIZED : keyData$KeyMaterialTypeA;
    }

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

    public final ByteString J() {
        return this.value_;
    }

    @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\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001Ȉ\u0002\n\u0003\f", new Object[]{"typeUrl_", "value_", "keyMaterialType_"});
        }
        if (iOrdinal == 3) {
            return new w0();
        }
        if (iOrdinal == 4) {
            return new v0(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 (w0.class) {
                try {
                    wVar = PARSER;
                    if (wVar == null) {
                        wVar = new com.google.crypto.tink.shaded.protobuf.w();
                        PARSER = wVar;
                    }
                } finally {
                }
            }
        }
        return wVar;
    }
}
