Files
rr3-apk/decompiled-community/sources/com/google/firebase/perf/v1/TraceMetric.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

341 lines
12 KiB
Java

package com.google.firebase.perf.v1;
import com.google.protobuf.AbstractMessageLite;
import com.google.protobuf.GeneratedMessageLite;
import com.google.protobuf.Internal;
import com.google.protobuf.MapEntryLite;
import com.google.protobuf.MapFieldLite;
import com.google.protobuf.MessageLiteOrBuilder;
import com.google.protobuf.Parser;
import com.google.protobuf.WireFormat;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public final class TraceMetric extends GeneratedMessageLite implements MessageLiteOrBuilder {
public static final int CLIENT_START_TIME_US_FIELD_NUMBER = 4;
public static final int COUNTERS_FIELD_NUMBER = 6;
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 8;
private static final TraceMetric DEFAULT_INSTANCE;
public static final int DURATION_US_FIELD_NUMBER = 5;
public static final int IS_AUTO_FIELD_NUMBER = 2;
public static final int NAME_FIELD_NUMBER = 1;
private static volatile Parser<TraceMetric> PARSER = null;
public static final int PERF_SESSIONS_FIELD_NUMBER = 9;
public static final int SUBTRACES_FIELD_NUMBER = 7;
private int bitField0_;
private long clientStartTimeUs_;
private long durationUs_;
private boolean isAuto_;
private MapFieldLite<String, Long> counters_ = MapFieldLite.emptyMapField();
private MapFieldLite<String, String> customAttributes_ = MapFieldLite.emptyMapField();
private String name_ = "";
private Internal.ProtobufList<TraceMetric> subtraces_ = GeneratedMessageLite.emptyProtobufList();
private Internal.ProtobufList<PerfSession> perfSessions_ = GeneratedMessageLite.emptyProtobufList();
public static final class CountersDefaultEntryHolder {
public static final MapEntryLite defaultEntry = MapEntryLite.newDefaultInstance(WireFormat.FieldType.STRING, "", WireFormat.FieldType.INT64, 0L);
}
public static TraceMetric getDefaultInstance() {
return DEFAULT_INSTANCE;
}
/* JADX INFO: Access modifiers changed from: private */
public void setClientStartTimeUs(long j) {
this.bitField0_ |= 4;
this.clientStartTimeUs_ = j;
}
public long getDurationUs() {
return this.durationUs_;
}
public String getName() {
return this.name_;
}
public List getPerfSessionsList() {
return this.perfSessions_;
}
public List getSubtracesList() {
return this.subtraces_;
}
public boolean hasClientStartTimeUs() {
return (this.bitField0_ & 4) != 0;
}
public final MapFieldLite internalGetCounters() {
return this.counters_;
}
public final MapFieldLite internalGetCustomAttributes() {
return this.customAttributes_;
}
public final void setDurationUs(long j) {
this.bitField0_ |= 8;
this.durationUs_ = j;
}
public final void setName(String str) {
str.getClass();
this.bitField0_ |= 1;
this.name_ = str;
}
public final MapFieldLite internalGetMutableCounters() {
if (!this.counters_.isMutable()) {
this.counters_ = this.counters_.mutableCopy();
}
return this.counters_;
}
public int getCountersCount() {
return internalGetCounters().size();
}
public Map getCountersMap() {
return Collections.unmodifiableMap(internalGetCounters());
}
public final Map getMutableCountersMap() {
return internalGetMutableCounters();
}
public final void ensureSubtracesIsMutable() {
Internal.ProtobufList<TraceMetric> protobufList = this.subtraces_;
if (protobufList.isModifiable()) {
return;
}
this.subtraces_ = GeneratedMessageLite.mutableCopy(protobufList);
}
public final void addSubtraces(TraceMetric traceMetric) {
traceMetric.getClass();
ensureSubtracesIsMutable();
this.subtraces_.add(traceMetric);
}
public final void addAllSubtraces(Iterable iterable) {
ensureSubtracesIsMutable();
AbstractMessageLite.addAll(iterable, (List) this.subtraces_);
}
public static final class CustomAttributesDefaultEntryHolder {
public static final MapEntryLite defaultEntry;
static {
WireFormat.FieldType fieldType = WireFormat.FieldType.STRING;
defaultEntry = MapEntryLite.newDefaultInstance(fieldType, "", fieldType, "");
}
}
private MapFieldLite internalGetMutableCustomAttributes() {
if (!this.customAttributes_.isMutable()) {
this.customAttributes_ = this.customAttributes_.mutableCopy();
}
return this.customAttributes_;
}
public boolean containsCustomAttributes(String str) {
str.getClass();
return internalGetCustomAttributes().containsKey(str);
}
public Map getCustomAttributesMap() {
return Collections.unmodifiableMap(internalGetCustomAttributes());
}
/* JADX INFO: Access modifiers changed from: private */
public Map getMutableCustomAttributesMap() {
return internalGetMutableCustomAttributes();
}
private void ensurePerfSessionsIsMutable() {
Internal.ProtobufList<PerfSession> protobufList = this.perfSessions_;
if (protobufList.isModifiable()) {
return;
}
this.perfSessions_ = GeneratedMessageLite.mutableCopy(protobufList);
}
public final void addPerfSessions(PerfSession perfSession) {
perfSession.getClass();
ensurePerfSessionsIsMutable();
this.perfSessions_.add(perfSession);
}
/* JADX INFO: Access modifiers changed from: private */
public void addAllPerfSessions(Iterable iterable) {
ensurePerfSessionsIsMutable();
AbstractMessageLite.addAll(iterable, (List) this.perfSessions_);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static final class Builder extends GeneratedMessageLite.Builder implements MessageLiteOrBuilder {
public /* synthetic */ Builder(AnonymousClass1 anonymousClass1) {
this();
}
public Builder() {
super(TraceMetric.DEFAULT_INSTANCE);
}
public Builder setName(String str) {
copyOnWrite();
((TraceMetric) this.instance).setName(str);
return this;
}
public Builder setClientStartTimeUs(long j) {
copyOnWrite();
((TraceMetric) this.instance).setClientStartTimeUs(j);
return this;
}
public Builder setDurationUs(long j) {
copyOnWrite();
((TraceMetric) this.instance).setDurationUs(j);
return this;
}
public Builder putCounters(String str, long j) {
str.getClass();
copyOnWrite();
((TraceMetric) this.instance).getMutableCountersMap().put(str, Long.valueOf(j));
return this;
}
public Builder putAllCounters(Map map) {
copyOnWrite();
((TraceMetric) this.instance).getMutableCountersMap().putAll(map);
return this;
}
public Builder addSubtraces(TraceMetric traceMetric) {
copyOnWrite();
((TraceMetric) this.instance).addSubtraces(traceMetric);
return this;
}
public Builder addAllSubtraces(Iterable iterable) {
copyOnWrite();
((TraceMetric) this.instance).addAllSubtraces(iterable);
return this;
}
public Builder putCustomAttributes(String str, String str2) {
str.getClass();
str2.getClass();
copyOnWrite();
((TraceMetric) this.instance).getMutableCustomAttributesMap().put(str, str2);
return this;
}
public Builder putAllCustomAttributes(Map map) {
copyOnWrite();
((TraceMetric) this.instance).getMutableCustomAttributesMap().putAll(map);
return this;
}
public Builder addPerfSessions(PerfSession perfSession) {
copyOnWrite();
((TraceMetric) this.instance).addPerfSessions(perfSession);
return this;
}
public Builder addAllPerfSessions(Iterable iterable) {
copyOnWrite();
((TraceMetric) this.instance).addAllPerfSessions(iterable);
return this;
}
}
/* renamed from: com.google.firebase.perf.v1.TraceMetric$1, reason: invalid class name */
public static /* synthetic */ class AnonymousClass1 {
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) {
AnonymousClass1 anonymousClass1 = null;
switch (AnonymousClass1.$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[methodToInvoke.ordinal()]) {
case 1:
return new TraceMetric();
case 2:
return new Builder(anonymousClass1);
case 3:
return GeneratedMessageLite.newMessageInfo(DEFAULT_INSTANCE, "\u0001\b\u0000\u0001\u0001\t\b\u0002\u0002\u0000\u0001ဈ\u0000\u0002ဇ\u0001\u0004ဂ\u0002\u0005ဂ\u0003\u00062\u0007\u001b\b2\t\u001b", new Object[]{"bitField0_", "name_", "isAuto_", "clientStartTimeUs_", "durationUs_", "counters_", CountersDefaultEntryHolder.defaultEntry, "subtraces_", TraceMetric.class, "customAttributes_", CustomAttributesDefaultEntryHolder.defaultEntry, "perfSessions_", PerfSession.class});
case 4:
return DEFAULT_INSTANCE;
case 5:
Parser<TraceMetric> parser = PARSER;
if (parser == null) {
synchronized (TraceMetric.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();
}
}
static {
TraceMetric traceMetric = new TraceMetric();
DEFAULT_INSTANCE = traceMetric;
GeneratedMessageLite.registerDefaultInstance(TraceMetric.class, traceMetric);
}
}