package e4;

import com.google.protobuf.AbstractC1298c;
import com.google.protobuf.AbstractC1300d;
import com.google.protobuf.InterfaceC1334u0;
import java.util.ArrayList;
import java.util.List;

/* JADX INFO: loaded from: classes3.dex */
public final class Y extends com.google.protobuf.L implements InterfaceC1334u0 {
    public static final int AGGREGATIONS_FIELD_NUMBER = 3;
    private static final Y DEFAULT_INSTANCE;
    private static volatile com.google.protobuf.B0 PARSER = null;
    public static final int STRUCTURED_QUERY_FIELD_NUMBER = 1;
    private Object queryType_;
    private int queryTypeCase_ = 0;
    private com.google.protobuf.Y aggregations_ = com.google.protobuf.L.emptyProtobufList();

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

    public static void f(Y y6, u0 u0Var) {
        y6.getClass();
        u0Var.getClass();
        y6.queryType_ = u0Var;
        y6.queryTypeCase_ = 1;
    }

    public static void g(Y y6, ArrayList arrayList) {
        com.google.protobuf.Y y7 = y6.aggregations_;
        if (!((AbstractC1300d) y7).f14257a) {
            y6.aggregations_ = com.google.protobuf.L.mutableCopy(y7);
        }
        AbstractC1298c.addAll((Iterable) arrayList, (List) y6.aggregations_);
    }

    public static X h() {
        return (X) DEFAULT_INSTANCE.createBuilder();
    }

    @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\u0002\u0001\u0000\u0001\u0003\u0002\u0000\u0001\u0000\u0001<\u0000\u0003\u001b", new Object[]{"queryType_", "queryTypeCase_", u0.class, "aggregations_", W.class});
            case 3:
                return new Y();
            case 4:
                return new X(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                com.google.protobuf.B0 b02 = PARSER;
                if (b02 != null) {
                    return b02;
                }
                synchronized (Y.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();
        }
    }
}
