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