- 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
543 lines
20 KiB
Java
543 lines
20 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.List;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class NetworkRequestMetric extends GeneratedMessageLite implements MessageLiteOrBuilder {
|
|
public static final int CLIENT_START_TIME_US_FIELD_NUMBER = 7;
|
|
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 12;
|
|
private static final NetworkRequestMetric DEFAULT_INSTANCE;
|
|
public static final int HTTP_METHOD_FIELD_NUMBER = 2;
|
|
public static final int HTTP_RESPONSE_CODE_FIELD_NUMBER = 5;
|
|
public static final int NETWORK_CLIENT_ERROR_REASON_FIELD_NUMBER = 11;
|
|
private static volatile Parser<NetworkRequestMetric> PARSER = null;
|
|
public static final int PERF_SESSIONS_FIELD_NUMBER = 13;
|
|
public static final int REQUEST_PAYLOAD_BYTES_FIELD_NUMBER = 3;
|
|
public static final int RESPONSE_CONTENT_TYPE_FIELD_NUMBER = 6;
|
|
public static final int RESPONSE_PAYLOAD_BYTES_FIELD_NUMBER = 4;
|
|
public static final int TIME_TO_REQUEST_COMPLETED_US_FIELD_NUMBER = 8;
|
|
public static final int TIME_TO_RESPONSE_COMPLETED_US_FIELD_NUMBER = 10;
|
|
public static final int TIME_TO_RESPONSE_INITIATED_US_FIELD_NUMBER = 9;
|
|
public static final int URL_FIELD_NUMBER = 1;
|
|
private int bitField0_;
|
|
private long clientStartTimeUs_;
|
|
private int httpMethod_;
|
|
private int httpResponseCode_;
|
|
private int networkClientErrorReason_;
|
|
private long requestPayloadBytes_;
|
|
private long responsePayloadBytes_;
|
|
private long timeToRequestCompletedUs_;
|
|
private long timeToResponseCompletedUs_;
|
|
private long timeToResponseInitiatedUs_;
|
|
private MapFieldLite<String, String> customAttributes_ = MapFieldLite.emptyMapField();
|
|
private String url_ = "";
|
|
private String responseContentType_ = "";
|
|
private Internal.ProtobufList<PerfSession> perfSessions_ = GeneratedMessageLite.emptyProtobufList();
|
|
|
|
public static NetworkRequestMetric getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
public long getClientStartTimeUs() {
|
|
return this.clientStartTimeUs_;
|
|
}
|
|
|
|
public int getHttpResponseCode() {
|
|
return this.httpResponseCode_;
|
|
}
|
|
|
|
public List getPerfSessionsList() {
|
|
return this.perfSessions_;
|
|
}
|
|
|
|
public long getRequestPayloadBytes() {
|
|
return this.requestPayloadBytes_;
|
|
}
|
|
|
|
public String getResponseContentType() {
|
|
return this.responseContentType_;
|
|
}
|
|
|
|
public long getResponsePayloadBytes() {
|
|
return this.responsePayloadBytes_;
|
|
}
|
|
|
|
public long getTimeToRequestCompletedUs() {
|
|
return this.timeToRequestCompletedUs_;
|
|
}
|
|
|
|
public long getTimeToResponseCompletedUs() {
|
|
return this.timeToResponseCompletedUs_;
|
|
}
|
|
|
|
public long getTimeToResponseInitiatedUs() {
|
|
return this.timeToResponseInitiatedUs_;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return this.url_;
|
|
}
|
|
|
|
public boolean hasClientStartTimeUs() {
|
|
return (this.bitField0_ & 128) != 0;
|
|
}
|
|
|
|
public boolean hasHttpMethod() {
|
|
return (this.bitField0_ & 2) != 0;
|
|
}
|
|
|
|
public boolean hasHttpResponseCode() {
|
|
return (this.bitField0_ & 32) != 0;
|
|
}
|
|
|
|
public boolean hasRequestPayloadBytes() {
|
|
return (this.bitField0_ & 4) != 0;
|
|
}
|
|
|
|
public boolean hasResponsePayloadBytes() {
|
|
return (this.bitField0_ & 8) != 0;
|
|
}
|
|
|
|
public boolean hasTimeToRequestCompletedUs() {
|
|
return (this.bitField0_ & 256) != 0;
|
|
}
|
|
|
|
public boolean hasTimeToResponseCompletedUs() {
|
|
return (this.bitField0_ & 1024) != 0;
|
|
}
|
|
|
|
public boolean hasTimeToResponseInitiatedUs() {
|
|
return (this.bitField0_ & 512) != 0;
|
|
}
|
|
|
|
public final void setClientStartTimeUs(long j) {
|
|
this.bitField0_ |= 128;
|
|
this.clientStartTimeUs_ = j;
|
|
}
|
|
|
|
public final void setHttpResponseCode(int i) {
|
|
this.bitField0_ |= 32;
|
|
this.httpResponseCode_ = i;
|
|
}
|
|
|
|
public final void setRequestPayloadBytes(long j) {
|
|
this.bitField0_ |= 4;
|
|
this.requestPayloadBytes_ = j;
|
|
}
|
|
|
|
public final void setResponsePayloadBytes(long j) {
|
|
this.bitField0_ |= 8;
|
|
this.responsePayloadBytes_ = j;
|
|
}
|
|
|
|
public final void setTimeToRequestCompletedUs(long j) {
|
|
this.bitField0_ |= 256;
|
|
this.timeToRequestCompletedUs_ = j;
|
|
}
|
|
|
|
public final void setTimeToResponseCompletedUs(long j) {
|
|
this.bitField0_ |= 1024;
|
|
this.timeToResponseCompletedUs_ = j;
|
|
}
|
|
|
|
public final void setTimeToResponseInitiatedUs(long j) {
|
|
this.bitField0_ |= 512;
|
|
this.timeToResponseInitiatedUs_ = j;
|
|
}
|
|
|
|
public enum HttpMethod implements Internal.EnumLite {
|
|
HTTP_METHOD_UNKNOWN(0),
|
|
GET(1),
|
|
PUT(2),
|
|
POST(3),
|
|
DELETE(4),
|
|
HEAD(5),
|
|
PATCH(6),
|
|
OPTIONS(7),
|
|
TRACE(8),
|
|
CONNECT(9);
|
|
|
|
public static final int CONNECT_VALUE = 9;
|
|
public static final int DELETE_VALUE = 4;
|
|
public static final int GET_VALUE = 1;
|
|
public static final int HEAD_VALUE = 5;
|
|
public static final int HTTP_METHOD_UNKNOWN_VALUE = 0;
|
|
public static final int OPTIONS_VALUE = 7;
|
|
public static final int PATCH_VALUE = 6;
|
|
public static final int POST_VALUE = 3;
|
|
public static final int PUT_VALUE = 2;
|
|
public static final int TRACE_VALUE = 8;
|
|
private static final Internal.EnumLiteMap<HttpMethod> internalValueMap = new Internal.EnumLiteMap() { // from class: com.google.firebase.perf.v1.NetworkRequestMetric.HttpMethod.1
|
|
@Override // com.google.protobuf.Internal.EnumLiteMap
|
|
public HttpMethod findValueByNumber(int i) {
|
|
return HttpMethod.forNumber(i);
|
|
}
|
|
};
|
|
private final int value;
|
|
|
|
public static HttpMethod forNumber(int i) {
|
|
switch (i) {
|
|
case 0:
|
|
return HTTP_METHOD_UNKNOWN;
|
|
case 1:
|
|
return GET;
|
|
case 2:
|
|
return PUT;
|
|
case 3:
|
|
return POST;
|
|
case 4:
|
|
return DELETE;
|
|
case 5:
|
|
return HEAD;
|
|
case 6:
|
|
return PATCH;
|
|
case 7:
|
|
return OPTIONS;
|
|
case 8:
|
|
return TRACE;
|
|
case 9:
|
|
return CONNECT;
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static Internal.EnumLiteMap<HttpMethod> internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
|
|
@Override // com.google.protobuf.Internal.EnumLite
|
|
public final int getNumber() {
|
|
return this.value;
|
|
}
|
|
|
|
@Deprecated
|
|
public static HttpMethod valueOf(int i) {
|
|
return forNumber(i);
|
|
}
|
|
|
|
public static Internal.EnumVerifier internalGetVerifier() {
|
|
return HttpMethodVerifier.INSTANCE;
|
|
}
|
|
|
|
public static final class HttpMethodVerifier implements Internal.EnumVerifier {
|
|
public static final Internal.EnumVerifier INSTANCE = new HttpMethodVerifier();
|
|
|
|
@Override // com.google.protobuf.Internal.EnumVerifier
|
|
public boolean isInRange(int i) {
|
|
return HttpMethod.forNumber(i) != null;
|
|
}
|
|
}
|
|
|
|
HttpMethod(int i) {
|
|
this.value = i;
|
|
}
|
|
}
|
|
|
|
public enum NetworkClientErrorReason implements Internal.EnumLite {
|
|
NETWORK_CLIENT_ERROR_REASON_UNKNOWN(0),
|
|
GENERIC_CLIENT_ERROR(1);
|
|
|
|
public static final int GENERIC_CLIENT_ERROR_VALUE = 1;
|
|
public static final int NETWORK_CLIENT_ERROR_REASON_UNKNOWN_VALUE = 0;
|
|
private static final Internal.EnumLiteMap<NetworkClientErrorReason> internalValueMap = new Internal.EnumLiteMap() { // from class: com.google.firebase.perf.v1.NetworkRequestMetric.NetworkClientErrorReason.1
|
|
@Override // com.google.protobuf.Internal.EnumLiteMap
|
|
public NetworkClientErrorReason findValueByNumber(int i) {
|
|
return NetworkClientErrorReason.forNumber(i);
|
|
}
|
|
};
|
|
private final int value;
|
|
|
|
public static NetworkClientErrorReason forNumber(int i) {
|
|
if (i == 0) {
|
|
return NETWORK_CLIENT_ERROR_REASON_UNKNOWN;
|
|
}
|
|
if (i != 1) {
|
|
return null;
|
|
}
|
|
return GENERIC_CLIENT_ERROR;
|
|
}
|
|
|
|
public static Internal.EnumLiteMap<NetworkClientErrorReason> internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
|
|
@Override // com.google.protobuf.Internal.EnumLite
|
|
public final int getNumber() {
|
|
return this.value;
|
|
}
|
|
|
|
@Deprecated
|
|
public static NetworkClientErrorReason valueOf(int i) {
|
|
return forNumber(i);
|
|
}
|
|
|
|
public static Internal.EnumVerifier internalGetVerifier() {
|
|
return NetworkClientErrorReasonVerifier.INSTANCE;
|
|
}
|
|
|
|
public static final class NetworkClientErrorReasonVerifier implements Internal.EnumVerifier {
|
|
public static final Internal.EnumVerifier INSTANCE = new NetworkClientErrorReasonVerifier();
|
|
|
|
@Override // com.google.protobuf.Internal.EnumVerifier
|
|
public boolean isInRange(int i) {
|
|
return NetworkClientErrorReason.forNumber(i) != null;
|
|
}
|
|
}
|
|
|
|
NetworkClientErrorReason(int i) {
|
|
this.value = i;
|
|
}
|
|
}
|
|
|
|
public final void setUrl(String str) {
|
|
str.getClass();
|
|
this.bitField0_ |= 1;
|
|
this.url_ = str;
|
|
}
|
|
|
|
public HttpMethod getHttpMethod() {
|
|
HttpMethod forNumber = HttpMethod.forNumber(this.httpMethod_);
|
|
return forNumber == null ? HttpMethod.HTTP_METHOD_UNKNOWN : forNumber;
|
|
}
|
|
|
|
public final void setHttpMethod(HttpMethod httpMethod) {
|
|
this.httpMethod_ = httpMethod.getNumber();
|
|
this.bitField0_ |= 2;
|
|
}
|
|
|
|
public final void setNetworkClientErrorReason(NetworkClientErrorReason networkClientErrorReason) {
|
|
this.networkClientErrorReason_ = networkClientErrorReason.getNumber();
|
|
this.bitField0_ |= 16;
|
|
}
|
|
|
|
public final void setResponseContentType(String str) {
|
|
str.getClass();
|
|
this.bitField0_ |= 64;
|
|
this.responseContentType_ = str;
|
|
}
|
|
|
|
public final void clearResponseContentType() {
|
|
this.bitField0_ &= -65;
|
|
this.responseContentType_ = getDefaultInstance().getResponseContentType();
|
|
}
|
|
|
|
public static final class CustomAttributesDefaultEntryHolder {
|
|
public static final MapEntryLite defaultEntry;
|
|
|
|
static {
|
|
WireFormat.FieldType fieldType = WireFormat.FieldType.STRING;
|
|
defaultEntry = MapEntryLite.newDefaultInstance(fieldType, "", fieldType, "");
|
|
}
|
|
}
|
|
|
|
public final void ensurePerfSessionsIsMutable() {
|
|
Internal.ProtobufList<PerfSession> protobufList = this.perfSessions_;
|
|
if (protobufList.isModifiable()) {
|
|
return;
|
|
}
|
|
this.perfSessions_ = GeneratedMessageLite.mutableCopy(protobufList);
|
|
}
|
|
|
|
public final 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(NetworkRequestMetric.DEFAULT_INSTANCE);
|
|
}
|
|
|
|
public Builder setUrl(String str) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setUrl(str);
|
|
return this;
|
|
}
|
|
|
|
public Builder setHttpMethod(HttpMethod httpMethod) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setHttpMethod(httpMethod);
|
|
return this;
|
|
}
|
|
|
|
public Builder setRequestPayloadBytes(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setRequestPayloadBytes(j);
|
|
return this;
|
|
}
|
|
|
|
public Builder setResponsePayloadBytes(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setResponsePayloadBytes(j);
|
|
return this;
|
|
}
|
|
|
|
public Builder setNetworkClientErrorReason(NetworkClientErrorReason networkClientErrorReason) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setNetworkClientErrorReason(networkClientErrorReason);
|
|
return this;
|
|
}
|
|
|
|
public boolean hasHttpResponseCode() {
|
|
return ((NetworkRequestMetric) this.instance).hasHttpResponseCode();
|
|
}
|
|
|
|
public Builder setHttpResponseCode(int i) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setHttpResponseCode(i);
|
|
return this;
|
|
}
|
|
|
|
public Builder setResponseContentType(String str) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setResponseContentType(str);
|
|
return this;
|
|
}
|
|
|
|
public Builder clearResponseContentType() {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).clearResponseContentType();
|
|
return this;
|
|
}
|
|
|
|
public boolean hasClientStartTimeUs() {
|
|
return ((NetworkRequestMetric) this.instance).hasClientStartTimeUs();
|
|
}
|
|
|
|
public Builder setClientStartTimeUs(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setClientStartTimeUs(j);
|
|
return this;
|
|
}
|
|
|
|
public Builder setTimeToRequestCompletedUs(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setTimeToRequestCompletedUs(j);
|
|
return this;
|
|
}
|
|
|
|
public long getTimeToResponseInitiatedUs() {
|
|
return ((NetworkRequestMetric) this.instance).getTimeToResponseInitiatedUs();
|
|
}
|
|
|
|
public Builder setTimeToResponseInitiatedUs(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setTimeToResponseInitiatedUs(j);
|
|
return this;
|
|
}
|
|
|
|
public boolean hasTimeToResponseCompletedUs() {
|
|
return ((NetworkRequestMetric) this.instance).hasTimeToResponseCompletedUs();
|
|
}
|
|
|
|
public Builder setTimeToResponseCompletedUs(long j) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).setTimeToResponseCompletedUs(j);
|
|
return this;
|
|
}
|
|
|
|
public Builder addAllPerfSessions(Iterable iterable) {
|
|
copyOnWrite();
|
|
((NetworkRequestMetric) this.instance).addAllPerfSessions(iterable);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.google.firebase.perf.v1.NetworkRequestMetric$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 NetworkRequestMetric();
|
|
case 2:
|
|
return new Builder(anonymousClass1);
|
|
case 3:
|
|
return GeneratedMessageLite.newMessageInfo(DEFAULT_INSTANCE, "\u0001\r\u0000\u0001\u0001\r\r\u0001\u0001\u0000\u0001ဈ\u0000\u0002ဌ\u0001\u0003ဂ\u0002\u0004ဂ\u0003\u0005င\u0005\u0006ဈ\u0006\u0007ဂ\u0007\bဂ\b\tဂ\t\nဂ\n\u000bဌ\u0004\f2\r\u001b", new Object[]{"bitField0_", "url_", "httpMethod_", HttpMethod.internalGetVerifier(), "requestPayloadBytes_", "responsePayloadBytes_", "httpResponseCode_", "responseContentType_", "clientStartTimeUs_", "timeToRequestCompletedUs_", "timeToResponseInitiatedUs_", "timeToResponseCompletedUs_", "networkClientErrorReason_", NetworkClientErrorReason.internalGetVerifier(), "customAttributes_", CustomAttributesDefaultEntryHolder.defaultEntry, "perfSessions_", PerfSession.class});
|
|
case 4:
|
|
return DEFAULT_INSTANCE;
|
|
case 5:
|
|
Parser<NetworkRequestMetric> parser = PARSER;
|
|
if (parser == null) {
|
|
synchronized (NetworkRequestMetric.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 {
|
|
NetworkRequestMetric networkRequestMetric = new NetworkRequestMetric();
|
|
DEFAULT_INSTANCE = networkRequestMetric;
|
|
GeneratedMessageLite.registerDefaultInstance(NetworkRequestMetric.class, networkRequestMetric);
|
|
}
|
|
}
|