package e4;

import com.google.protobuf.AbstractC1320n;
import com.google.protobuf.InterfaceC1334u0;
import com.google.protobuf.R0;

/* JADX INFO: loaded from: classes3.dex */
public final class H0 extends com.google.protobuf.L implements InterfaceC1334u0 {
    public static final int ARRAY_VALUE_FIELD_NUMBER = 9;
    public static final int BOOLEAN_VALUE_FIELD_NUMBER = 1;
    public static final int BYTES_VALUE_FIELD_NUMBER = 18;
    private static final H0 DEFAULT_INSTANCE;
    public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
    public static final int GEO_POINT_VALUE_FIELD_NUMBER = 8;
    public static final int INTEGER_VALUE_FIELD_NUMBER = 2;
    public static final int MAP_VALUE_FIELD_NUMBER = 6;
    public static final int NULL_VALUE_FIELD_NUMBER = 11;
    private static volatile com.google.protobuf.B0 PARSER = null;
    public static final int REFERENCE_VALUE_FIELD_NUMBER = 5;
    public static final int STRING_VALUE_FIELD_NUMBER = 17;
    public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 10;
    private int valueTypeCase_ = 0;
    private Object valueType_;

    static {
        H0 h0 = new H0();
        DEFAULT_INSTANCE = h0;
        com.google.protobuf.L.registerDefaultInstance(H0.class, h0);
    }

    public static G0 C() {
        return (G0) DEFAULT_INSTANCE.createBuilder();
    }

    public static void f(H0 h0, R0 r02) {
        h0.getClass();
        r02.getClass();
        h0.valueType_ = r02;
        h0.valueTypeCase_ = 10;
    }

    public static void g(H0 h0, String str) {
        h0.getClass();
        str.getClass();
        h0.valueTypeCase_ = 17;
        h0.valueType_ = str;
    }

    public static void h(H0 h0, AbstractC1320n abstractC1320n) {
        h0.getClass();
        abstractC1320n.getClass();
        h0.valueTypeCase_ = 18;
        h0.valueType_ = abstractC1320n;
    }

    public static void i(H0 h0, String str) {
        h0.getClass();
        str.getClass();
        h0.valueTypeCase_ = 5;
        h0.valueType_ = str;
    }

    public static void j(H0 h0, i4.b bVar) {
        h0.getClass();
        bVar.getClass();
        h0.valueType_ = bVar;
        h0.valueTypeCase_ = 8;
    }

    public static void k(C1975d c1975d, H0 h0) {
        h0.getClass();
        c1975d.getClass();
        h0.valueType_ = c1975d;
        h0.valueTypeCase_ = 9;
    }

    public static void l(H0 h0, J j4) {
        h0.getClass();
        j4.getClass();
        h0.valueType_ = j4;
        h0.valueTypeCase_ = 6;
    }

    public static void m(H0 h0) {
        com.google.protobuf.A0 a02 = com.google.protobuf.A0.NULL_VALUE;
        h0.getClass();
        h0.valueType_ = Integer.valueOf(a02.getNumber());
        h0.valueTypeCase_ = 11;
    }

    public static void n(H0 h0, boolean z6) {
        h0.valueTypeCase_ = 1;
        h0.valueType_ = Boolean.valueOf(z6);
    }

    public static void o(H0 h0, long j4) {
        h0.valueTypeCase_ = 2;
        h0.valueType_ = Long.valueOf(j4);
    }

    public static void p(H0 h0, double d6) {
        h0.valueTypeCase_ = 3;
        h0.valueType_ = Double.valueOf(d6);
    }

    public static H0 t() {
        return DEFAULT_INSTANCE;
    }

    public final R0 A() {
        return this.valueTypeCase_ == 10 ? (R0) this.valueType_ : R0.h();
    }

    public final int B() {
        int i6 = this.valueTypeCase_;
        if (i6 == 0) {
            return 12;
        }
        if (i6 == 1) {
            return 2;
        }
        if (i6 == 2) {
            return 3;
        }
        if (i6 == 3) {
            return 4;
        }
        if (i6 == 5) {
            return 8;
        }
        if (i6 == 6) {
            return 11;
        }
        if (i6 == 17) {
            return 6;
        }
        if (i6 == 18) {
            return 7;
        }
        switch (i6) {
            case 8:
                return 9;
            case 9:
                return 10;
            case 10:
                return 5;
            case 11:
                return 1;
            default:
                return 0;
        }
    }

    @Override // com.google.protobuf.L
    public final Object dynamicMethod(com.google.protobuf.K k6, Object obj, Object obj2) {
        com.google.protobuf.B0 h5;
        switch (k6.ordinal()) {
            case 0:
                return (byte) 1;
            case 1:
                return null;
            case 2:
                return com.google.protobuf.L.newMessageInfo(DEFAULT_INSTANCE, "\u0000\u000b\u0001\u0000\u0001\u0012\u000b\u0000\u0000\u0000\u0001:\u0000\u00025\u0000\u00033\u0000\u0005Ȼ\u0000\u0006<\u0000\b<\u0000\t<\u0000\n<\u0000\u000b?\u0000\u0011Ȼ\u0000\u0012=\u0000", new Object[]{"valueType_", "valueTypeCase_", J.class, i4.b.class, C1975d.class, R0.class});
            case 3:
                return new H0();
            case 4:
                return new G0(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                com.google.protobuf.B0 b02 = PARSER;
                if (b02 != null) {
                    return b02;
                }
                synchronized (H0.class) {
                    try {
                        h5 = PARSER;
                        if (h5 == null) {
                            h5 = new com.google.protobuf.H(DEFAULT_INSTANCE);
                            PARSER = h5;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return h5;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final C1975d q() {
        return this.valueTypeCase_ == 9 ? (C1975d) this.valueType_ : C1975d.i();
    }

    public final boolean r() {
        if (this.valueTypeCase_ == 1) {
            return ((Boolean) this.valueType_).booleanValue();
        }
        return false;
    }

    public final AbstractC1320n s() {
        return this.valueTypeCase_ == 18 ? (AbstractC1320n) this.valueType_ : AbstractC1320n.f14310b;
    }

    public final double u() {
        if (this.valueTypeCase_ == 3) {
            return ((Double) this.valueType_).doubleValue();
        }
        return 0.0d;
    }

    public final i4.b v() {
        return this.valueTypeCase_ == 8 ? (i4.b) this.valueType_ : i4.b.h();
    }

    public final long w() {
        if (this.valueTypeCase_ == 2) {
            return ((Long) this.valueType_).longValue();
        }
        return 0L;
    }

    public final J x() {
        return this.valueTypeCase_ == 6 ? (J) this.valueType_ : J.g();
    }

    public final String y() {
        return this.valueTypeCase_ == 5 ? (String) this.valueType_ : "";
    }

    public final String z() {
        return this.valueTypeCase_ == 17 ? (String) this.valueType_ : "";
    }
}
