package com.google.android.gms.internal.measurement; import java.io.IOException; /* loaded from: classes.dex */ public final class zzfr extends zzyc { private static volatile zzfr[] g; public Integer c = null; public zzfx d = null; public zzfx e = null; public Boolean f = null; public zzfr() { this.b = null; this.a = -1; } public static zzfr[] e() { if (g == null) { synchronized (zzyg.b) { if (g == null) { g = new zzfr[0]; } } } return g; } @Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi public final void a(zzya zzyaVar) throws IOException { Integer num = this.c; if (num != null) { zzyaVar.b(1, num.intValue()); } zzfx zzfxVar = this.d; if (zzfxVar != null) { zzyaVar.a(2, zzfxVar); } zzfx zzfxVar2 = this.e; if (zzfxVar2 != null) { zzyaVar.a(3, zzfxVar2); } Boolean bool = this.f; if (bool != null) { zzyaVar.a(4, bool.booleanValue()); } super.a(zzyaVar); } public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof zzfr)) { return false; } zzfr zzfrVar = (zzfr) obj; Integer num = this.c; if (num == null) { if (zzfrVar.c != null) { return false; } } else if (!num.equals(zzfrVar.c)) { return false; } zzfx zzfxVar = this.d; if (zzfxVar == null) { if (zzfrVar.d != null) { return false; } } else if (!zzfxVar.equals(zzfrVar.d)) { return false; } zzfx zzfxVar2 = this.e; if (zzfxVar2 == null) { if (zzfrVar.e != null) { return false; } } else if (!zzfxVar2.equals(zzfrVar.e)) { return false; } Boolean bool = this.f; if (bool == null) { if (zzfrVar.f != null) { return false; } } else if (!bool.equals(zzfrVar.f)) { return false; } zzye zzyeVar = this.b; if (zzyeVar != null && !zzyeVar.a()) { return this.b.equals(zzfrVar.b); } zzye zzyeVar2 = zzfrVar.b; return zzyeVar2 == null || zzyeVar2.a(); } public final int hashCode() { int hashCode = (zzfr.class.getName().hashCode() + 527) * 31; Integer num = this.c; int i = 0; int hashCode2 = hashCode + (num == null ? 0 : num.hashCode()); zzfx zzfxVar = this.d; int hashCode3 = (hashCode2 * 31) + (zzfxVar == null ? 0 : zzfxVar.hashCode()); zzfx zzfxVar2 = this.e; int hashCode4 = ((hashCode3 * 31) + (zzfxVar2 == null ? 0 : zzfxVar2.hashCode())) * 31; Boolean bool = this.f; int hashCode5 = (hashCode4 + (bool == null ? 0 : bool.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(); Integer num = this.c; if (num != null) { a += zzya.c(1, num.intValue()); } zzfx zzfxVar = this.d; if (zzfxVar != null) { a += zzya.b(2, zzfxVar); } zzfx zzfxVar2 = this.e; if (zzfxVar2 != null) { a += zzya.b(3, zzfxVar2); } Boolean bool = this.f; if (bool == null) { return a; } bool.booleanValue(); return a + zzya.b(4) + 1; } @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 = Integer.valueOf(zzxzVar.e()); } else if (c == 18) { if (this.d == null) { this.d = new zzfx(); } zzxzVar.a(this.d); } else if (c == 26) { if (this.e == null) { this.e = new zzfx(); } zzxzVar.a(this.e); } else if (c != 32) { if (!super.a(zzxzVar, c)) { return this; } } else { this.f = Boolean.valueOf(zzxzVar.d()); } } } }