209 lines
6.2 KiB
Java
209 lines
6.2 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.io.IOException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzft extends zzyc<zzft> {
|
|
private static volatile zzft[] h;
|
|
public zzfu[] c = zzfu.e();
|
|
public String d = null;
|
|
public Long e = null;
|
|
public Long f = null;
|
|
public Integer g = null;
|
|
|
|
public zzft() {
|
|
this.b = null;
|
|
this.a = -1;
|
|
}
|
|
|
|
public static zzft[] e() {
|
|
if (h == null) {
|
|
synchronized (zzyg.b) {
|
|
if (h == null) {
|
|
h = new zzft[0];
|
|
}
|
|
}
|
|
}
|
|
return h;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
|
|
public final void a(zzya zzyaVar) throws IOException {
|
|
zzfu[] zzfuVarArr = this.c;
|
|
if (zzfuVarArr != null && zzfuVarArr.length > 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
zzfu[] zzfuVarArr2 = this.c;
|
|
if (i >= zzfuVarArr2.length) {
|
|
break;
|
|
}
|
|
zzfu zzfuVar = zzfuVarArr2[i];
|
|
if (zzfuVar != null) {
|
|
zzyaVar.a(1, zzfuVar);
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
String str = this.d;
|
|
if (str != null) {
|
|
zzyaVar.a(2, str);
|
|
}
|
|
Long l = this.e;
|
|
if (l != null) {
|
|
zzyaVar.b(3, l.longValue());
|
|
}
|
|
Long l2 = this.f;
|
|
if (l2 != null) {
|
|
zzyaVar.b(4, l2.longValue());
|
|
}
|
|
Integer num = this.g;
|
|
if (num != null) {
|
|
zzyaVar.b(5, num.intValue());
|
|
}
|
|
super.a(zzyaVar);
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zzft)) {
|
|
return false;
|
|
}
|
|
zzft zzftVar = (zzft) obj;
|
|
if (!zzyg.a(this.c, zzftVar.c)) {
|
|
return false;
|
|
}
|
|
String str = this.d;
|
|
if (str == null) {
|
|
if (zzftVar.d != null) {
|
|
return false;
|
|
}
|
|
} else if (!str.equals(zzftVar.d)) {
|
|
return false;
|
|
}
|
|
Long l = this.e;
|
|
if (l == null) {
|
|
if (zzftVar.e != null) {
|
|
return false;
|
|
}
|
|
} else if (!l.equals(zzftVar.e)) {
|
|
return false;
|
|
}
|
|
Long l2 = this.f;
|
|
if (l2 == null) {
|
|
if (zzftVar.f != null) {
|
|
return false;
|
|
}
|
|
} else if (!l2.equals(zzftVar.f)) {
|
|
return false;
|
|
}
|
|
Integer num = this.g;
|
|
if (num == null) {
|
|
if (zzftVar.g != null) {
|
|
return false;
|
|
}
|
|
} else if (!num.equals(zzftVar.g)) {
|
|
return false;
|
|
}
|
|
zzye zzyeVar = this.b;
|
|
if (zzyeVar != null && !zzyeVar.a()) {
|
|
return this.b.equals(zzftVar.b);
|
|
}
|
|
zzye zzyeVar2 = zzftVar.b;
|
|
return zzyeVar2 == null || zzyeVar2.a();
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int hashCode = (((zzft.class.getName().hashCode() + 527) * 31) + zzyg.a(this.c)) * 31;
|
|
String str = this.d;
|
|
int i = 0;
|
|
int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
|
|
Long l = this.e;
|
|
int hashCode3 = (hashCode2 + (l == null ? 0 : l.hashCode())) * 31;
|
|
Long l2 = this.f;
|
|
int hashCode4 = (hashCode3 + (l2 == null ? 0 : l2.hashCode())) * 31;
|
|
Integer num = this.g;
|
|
int hashCode5 = (hashCode4 + (num == null ? 0 : num.hashCode())) * 31;
|
|
zzye zzyeVar = this.b;
|
|
if (zzyeVar != null && !zzyeVar.a()) {
|
|
i = this.b.hashCode();
|
|
}
|
|
return hashCode5 + i;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
|
|
protected final int a() {
|
|
int a = super.a();
|
|
zzfu[] zzfuVarArr = this.c;
|
|
if (zzfuVarArr != null && zzfuVarArr.length > 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
zzfu[] zzfuVarArr2 = this.c;
|
|
if (i >= zzfuVarArr2.length) {
|
|
break;
|
|
}
|
|
zzfu zzfuVar = zzfuVarArr2[i];
|
|
if (zzfuVar != null) {
|
|
a += zzya.b(1, zzfuVar);
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
String str = this.d;
|
|
if (str != null) {
|
|
a += zzya.b(2, str);
|
|
}
|
|
Long l = this.e;
|
|
if (l != null) {
|
|
a += zzya.c(3, l.longValue());
|
|
}
|
|
Long l2 = this.f;
|
|
if (l2 != null) {
|
|
a += zzya.c(4, l2.longValue());
|
|
}
|
|
Integer num = this.g;
|
|
return num != null ? a + zzya.c(5, num.intValue()) : a;
|
|
}
|
|
|
|
@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 == 10) {
|
|
int a = zzyl.a(zzxzVar, 10);
|
|
zzfu[] zzfuVarArr = this.c;
|
|
int length = zzfuVarArr == null ? 0 : zzfuVarArr.length;
|
|
zzfu[] zzfuVarArr2 = new zzfu[a + length];
|
|
if (length != 0) {
|
|
System.arraycopy(this.c, 0, zzfuVarArr2, 0, length);
|
|
}
|
|
while (length < zzfuVarArr2.length - 1) {
|
|
zzfuVarArr2[length] = new zzfu();
|
|
zzxzVar.a(zzfuVarArr2[length]);
|
|
zzxzVar.c();
|
|
length++;
|
|
}
|
|
zzfuVarArr2[length] = new zzfu();
|
|
zzxzVar.a(zzfuVarArr2[length]);
|
|
this.c = zzfuVarArr2;
|
|
} else if (c == 18) {
|
|
this.d = zzxzVar.b();
|
|
} else if (c == 24) {
|
|
this.e = Long.valueOf(zzxzVar.f());
|
|
} else if (c == 32) {
|
|
this.f = Long.valueOf(zzxzVar.f());
|
|
} else if (c != 40) {
|
|
if (!super.a(zzxzVar, c)) {
|
|
return this;
|
|
}
|
|
} else {
|
|
this.g = Integer.valueOf(zzxzVar.e());
|
|
}
|
|
}
|
|
}
|
|
}
|