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