jimu-decompiled/sources/com/google/android/gms/internal/measurement/zzfz.java
2025-05-13 19:24:51 +02:00

205 lines
5.8 KiB
Java

package com.google.android.gms.internal.measurement;
import java.io.IOException;
/* loaded from: classes.dex */
public final class zzfz extends zzyc<zzfz> {
private static volatile zzfz[] i;
public Long c = null;
public String d = null;
public String e = null;
public Long f = null;
private Float g = null;
public Double h = null;
public zzfz() {
this.b = null;
this.a = -1;
}
public static zzfz[] e() {
if (i == null) {
synchronized (zzyg.b) {
if (i == null) {
i = new zzfz[0];
}
}
}
return i;
}
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
public final void a(zzya zzyaVar) throws IOException {
Long l = this.c;
if (l != null) {
zzyaVar.b(1, l.longValue());
}
String str = this.d;
if (str != null) {
zzyaVar.a(2, str);
}
String str2 = this.e;
if (str2 != null) {
zzyaVar.a(3, str2);
}
Long l2 = this.f;
if (l2 != null) {
zzyaVar.b(4, l2.longValue());
}
Float f = this.g;
if (f != null) {
zzyaVar.a(5, f.floatValue());
}
Double d = this.h;
if (d != null) {
zzyaVar.a(6, d.doubleValue());
}
super.a(zzyaVar);
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof zzfz)) {
return false;
}
zzfz zzfzVar = (zzfz) obj;
Long l = this.c;
if (l == null) {
if (zzfzVar.c != null) {
return false;
}
} else if (!l.equals(zzfzVar.c)) {
return false;
}
String str = this.d;
if (str == null) {
if (zzfzVar.d != null) {
return false;
}
} else if (!str.equals(zzfzVar.d)) {
return false;
}
String str2 = this.e;
if (str2 == null) {
if (zzfzVar.e != null) {
return false;
}
} else if (!str2.equals(zzfzVar.e)) {
return false;
}
Long l2 = this.f;
if (l2 == null) {
if (zzfzVar.f != null) {
return false;
}
} else if (!l2.equals(zzfzVar.f)) {
return false;
}
Float f = this.g;
if (f == null) {
if (zzfzVar.g != null) {
return false;
}
} else if (!f.equals(zzfzVar.g)) {
return false;
}
Double d = this.h;
if (d == null) {
if (zzfzVar.h != null) {
return false;
}
} else if (!d.equals(zzfzVar.h)) {
return false;
}
zzye zzyeVar = this.b;
if (zzyeVar != null && !zzyeVar.a()) {
return this.b.equals(zzfzVar.b);
}
zzye zzyeVar2 = zzfzVar.b;
return zzyeVar2 == null || zzyeVar2.a();
}
public final int hashCode() {
int hashCode = (zzfz.class.getName().hashCode() + 527) * 31;
Long l = this.c;
int i2 = 0;
int hashCode2 = (hashCode + (l == null ? 0 : l.hashCode())) * 31;
String str = this.d;
int hashCode3 = (hashCode2 + (str == null ? 0 : str.hashCode())) * 31;
String str2 = this.e;
int hashCode4 = (hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31;
Long l2 = this.f;
int hashCode5 = (hashCode4 + (l2 == null ? 0 : l2.hashCode())) * 31;
Float f = this.g;
int hashCode6 = (hashCode5 + (f == null ? 0 : f.hashCode())) * 31;
Double d = this.h;
int hashCode7 = (hashCode6 + (d == null ? 0 : d.hashCode())) * 31;
zzye zzyeVar = this.b;
if (zzyeVar != null && !zzyeVar.a()) {
i2 = this.b.hashCode();
}
return hashCode7 + i2;
}
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
protected final int a() {
int a = super.a();
Long l = this.c;
if (l != null) {
a += zzya.c(1, l.longValue());
}
String str = this.d;
if (str != null) {
a += zzya.b(2, str);
}
String str2 = this.e;
if (str2 != null) {
a += zzya.b(3, str2);
}
Long l2 = this.f;
if (l2 != null) {
a += zzya.c(4, l2.longValue());
}
Float f = this.g;
if (f != null) {
f.floatValue();
a += zzya.b(5) + 4;
}
Double d = this.h;
if (d == null) {
return a;
}
d.doubleValue();
return a + zzya.b(6) + 8;
}
@Override // com.google.android.gms.internal.measurement.zzyi
public final /* synthetic */ zzyi a(zzxz zzxzVar) throws IOException {
while (true) {
int c = zzxzVar.c();
if (c == 0) {
return this;
}
if (c == 8) {
this.c = Long.valueOf(zzxzVar.f());
} else if (c == 18) {
this.d = zzxzVar.b();
} else if (c == 26) {
this.e = zzxzVar.b();
} else if (c == 32) {
this.f = Long.valueOf(zzxzVar.f());
} else if (c == 45) {
this.g = Float.valueOf(Float.intBitsToFloat(zzxzVar.g()));
} else if (c != 49) {
if (!super.a(zzxzVar, c)) {
return this;
}
} else {
this.h = Double.valueOf(Double.longBitsToDouble(zzxzVar.h()));
}
}
}
}