package o; import java.util.Collections; import java.util.List; import o.KUw; import o.MTP; /* loaded from: classes2.dex */ public final class uOO extends KUw implements gwr { private static final uOO DEFAULT_INSTANCE; private static volatile XgX PARSER = null; public static final int VALUES_FIELD_NUMBER = 1; public MTP.RVV values_ = emptyProtobufList(); private uOO() { } public static IeS a() { return DEFAULT_INSTANCE.createBuilder(); } /* loaded from: classes2.dex */ public static final class IeS extends KUw.LWm implements gwr { /* synthetic */ IeS(byte b) { this(); } private IeS() { super(uOO.DEFAULT_INSTANCE); } @Override // o.gwr public final List b() { return Collections.unmodifiableList(((uOO) this.instance).values_); } public final IeS a(sbb sbbVar) { copyOnWrite(); uOO.c((uOO) this.instance, sbbVar); return this; } public final IeS b(Iterable iterable) { copyOnWrite(); uOO.a((uOO) this.instance, iterable); return this; } public final IeS d(int i) { copyOnWrite(); uOO.b((uOO) this.instance, i); return this; } } /* renamed from: o.uOO$3, reason: invalid class name */ /* loaded from: classes2.dex */ static /* synthetic */ class AnonymousClass3 { static final int[] d; static { int[] iArr = new int[KUw.ojQ.values().length]; d = iArr; try { iArr[KUw.ojQ.NEW_MUTABLE_INSTANCE.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { d[KUw.ojQ.NEW_BUILDER.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { d[KUw.ojQ.BUILD_MESSAGE_INFO.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { d[KUw.ojQ.GET_DEFAULT_INSTANCE.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { d[KUw.ojQ.GET_PARSER.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { d[KUw.ojQ.GET_MEMOIZED_IS_INITIALIZED.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { d[KUw.ojQ.SET_MEMOIZED_IS_INITIALIZED.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } } } @Override // o.KUw public final Object dynamicMethod(KUw.ojQ ojq, Object obj, Object obj2) { XgX xgX; switch (AnonymousClass3.d[ojq.ordinal()]) { case 1: return new uOO(); case 2: return new IeS((byte) 0); case 3: return newMessageInfo(DEFAULT_INSTANCE, "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b", new Object[]{"values_", sbb.class}); case 4: return DEFAULT_INSTANCE; case 5: XgX xgX2 = PARSER; if (xgX2 != null) { return xgX2; } synchronized (uOO.class) { xgX = PARSER; if (xgX == null) { xgX = new KUw.HBt(DEFAULT_INSTANCE); PARSER = xgX; } } return xgX; case 6: return (byte) 1; case 7: return null; default: throw new UnsupportedOperationException(); } } static { uOO uoo = new uOO(); DEFAULT_INSTANCE = uoo; KUw.registerDefaultInstance(uOO.class, uoo); } static /* synthetic */ void c(uOO uoo, sbb sbbVar) { MTP.RVV rvv = uoo.values_; if (!rvv.e()) { uoo.values_ = KUw.mutableCopy(rvv); } uoo.values_.add(sbbVar); } static /* synthetic */ void a(uOO uoo, Iterable iterable) { MTP.RVV rvv = uoo.values_; if (!rvv.e()) { uoo.values_ = KUw.mutableCopy(rvv); } AbstractC5573bvc.addAll(iterable, uoo.values_); } static /* synthetic */ void b(uOO uoo, int i) { MTP.RVV rvv = uoo.values_; if (!rvv.e()) { uoo.values_ = KUw.mutableCopy(rvv); } uoo.values_.remove(i); } @Override // o.gwr public final List b() { return this.values_; } public static uOO e() { return DEFAULT_INSTANCE; } }