package com.google.firebase.perf.v1; import com.google.protobuf.GeneratedMessageLite; import com.google.protobuf.Internal; import com.google.protobuf.MessageLiteOrBuilder; import com.google.protobuf.Parser; /* loaded from: classes3.dex */ public final class PerfSession extends GeneratedMessageLite implements MessageLiteOrBuilder { private static final PerfSession DEFAULT_INSTANCE; private static volatile Parser PARSER = null; public static final int SESSION_ID_FIELD_NUMBER = 1; public static final int SESSION_VERBOSITY_FIELD_NUMBER = 2; private static final Internal.ListAdapter.Converter sessionVerbosity_converter_ = new Internal.ListAdapter.Converter() { // from class: com.google.firebase.perf.v1.PerfSession.1 @Override // com.google.protobuf.Internal.ListAdapter.Converter public SessionVerbosity convert(Integer num) { SessionVerbosity forNumber = SessionVerbosity.forNumber(num.intValue()); return forNumber == null ? SessionVerbosity.SESSION_VERBOSITY_NONE : forNumber; } }; private int bitField0_; private String sessionId_ = ""; private Internal.IntList sessionVerbosity_ = GeneratedMessageLite.emptyIntList(); /* JADX INFO: Access modifiers changed from: private */ public void setSessionId(String str) { str.getClass(); this.bitField0_ |= 1; this.sessionId_ = str; } static { PerfSession perfSession = new PerfSession(); DEFAULT_INSTANCE = perfSession; GeneratedMessageLite.registerDefaultInstance(PerfSession.class, perfSession); } public int getSessionVerbosityCount() { return this.sessionVerbosity_.size(); } public SessionVerbosity getSessionVerbosity(int i) { SessionVerbosity forNumber = SessionVerbosity.forNumber(this.sessionVerbosity_.getInt(i)); return forNumber == null ? SessionVerbosity.SESSION_VERBOSITY_NONE : forNumber; } public final void ensureSessionVerbosityIsMutable() { Internal.IntList intList = this.sessionVerbosity_; if (intList.isModifiable()) { return; } this.sessionVerbosity_ = GeneratedMessageLite.mutableCopy(intList); } public final void addSessionVerbosity(SessionVerbosity sessionVerbosity) { sessionVerbosity.getClass(); ensureSessionVerbosityIsMutable(); this.sessionVerbosity_.addInt(sessionVerbosity.getNumber()); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static final class Builder extends GeneratedMessageLite.Builder implements MessageLiteOrBuilder { public Builder() { super(PerfSession.DEFAULT_INSTANCE); } public Builder setSessionId(String str) { copyOnWrite(); ((PerfSession) this.instance).setSessionId(str); return this; } public Builder addSessionVerbosity(SessionVerbosity sessionVerbosity) { copyOnWrite(); ((PerfSession) this.instance).addSessionVerbosity(sessionVerbosity); return this; } } /* renamed from: com.google.firebase.perf.v1.PerfSession$2, reason: invalid class name */ public static /* synthetic */ class AnonymousClass2 { public static final /* synthetic */ int[] $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke; static { int[] iArr = new int[GeneratedMessageLite.MethodToInvoke.values().length]; $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke = iArr; try { iArr[GeneratedMessageLite.MethodToInvoke.NEW_MUTABLE_INSTANCE.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.NEW_BUILDER.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.BUILD_MESSAGE_INFO.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.GET_DEFAULT_INSTANCE.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.GET_PARSER.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.GET_MEMOIZED_IS_INITIALIZED.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[GeneratedMessageLite.MethodToInvoke.SET_MEMOIZED_IS_INITIALIZED.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } } } @Override // com.google.protobuf.GeneratedMessageLite public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke methodToInvoke, Object obj, Object obj2) { switch (AnonymousClass2.$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[methodToInvoke.ordinal()]) { case 1: return new PerfSession(); case 2: return new Builder(); case 3: return GeneratedMessageLite.newMessageInfo(DEFAULT_INSTANCE, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001ဈ\u0000\u0002\u001e", new Object[]{"bitField0_", "sessionId_", "sessionVerbosity_", SessionVerbosity.internalGetVerifier()}); case 4: return DEFAULT_INSTANCE; case 5: Parser parser = PARSER; if (parser == null) { synchronized (PerfSession.class) { try { parser = PARSER; if (parser == null) { parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE); PARSER = parser; } } finally { } } } return parser; case 6: return (byte) 1; case 7: return null; default: throw new UnsupportedOperationException(); } } }