package com.google.android.gms.internal.clearcut; import java.io.IOException; import java.util.Arrays; /* loaded from: classes2.dex */ public final class zzgz extends zzfu implements Cloneable { private byte[] zzbjb = zzgb.zzse; private String zzbjc = ""; private byte[][] zzbjd = zzgb.zzsd; private boolean zzbje = false; @Override // com.google.android.gms.internal.clearcut.zzfu, com.google.android.gms.internal.clearcut.zzfz /* renamed from: zzep */ public final /* synthetic */ zzfz clone() throws CloneNotSupportedException { return (zzgz) clone(); } @Override // com.google.android.gms.internal.clearcut.zzfu /* renamed from: zzeo */ public final /* synthetic */ zzgz clone() throws CloneNotSupportedException { return (zzgz) clone(); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.google.android.gms.internal.clearcut.zzfu, com.google.android.gms.internal.clearcut.zzfz public final int zzen() { int zzen = super.zzen(); if (!Arrays.equals(this.zzbjb, zzgb.zzse)) { zzen += zzfs.zzb(1, this.zzbjb); } byte[][] bArr = this.zzbjd; if (bArr != null && bArr.length > 0) { int i = 0; int i2 = 0; int i3 = 0; while (true) { byte[][] bArr2 = this.zzbjd; if (i >= bArr2.length) { break; } byte[] bArr3 = bArr2[i]; if (bArr3 != null) { i3++; i2 += zzfs.zzh(bArr3); } i++; } zzen = zzen + i2 + i3; } String str = this.zzbjc; return (str == null || str.equals("")) ? zzen : zzen + zzfs.zzb(4, this.zzbjc); } @Override // com.google.android.gms.internal.clearcut.zzfu, com.google.android.gms.internal.clearcut.zzfz public final void zza(zzfs zzfsVar) throws IOException { if (!Arrays.equals(this.zzbjb, zzgb.zzse)) { zzfsVar.zza(1, this.zzbjb); } byte[][] bArr = this.zzbjd; if (bArr != null && bArr.length > 0) { int i = 0; while (true) { byte[][] bArr2 = this.zzbjd; if (i >= bArr2.length) { break; } byte[] bArr3 = bArr2[i]; if (bArr3 != null) { zzfsVar.zza(2, bArr3); } i++; } } String str = this.zzbjc; if (str != null && !str.equals("")) { zzfsVar.zza(4, this.zzbjc); } super.zza(zzfsVar); } public final int hashCode() { int hashCode = getClass().getName().hashCode(); int hashCode2 = Arrays.hashCode(this.zzbjb); String str = this.zzbjc; int i = 0; int hashCode3 = str == null ? 0 : str.hashCode(); int zza = zzfy.zza(this.zzbjd); if (this.zzrj != null && !this.zzrj.isEmpty()) { i = this.zzrj.hashCode(); } return ((((((((((hashCode + 527) * 31) + hashCode2) * 31) + hashCode3) * 31) + zza) * 31) + 1237) * 31) + i; } public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof zzgz)) { return false; } zzgz zzgzVar = (zzgz) obj; if (!Arrays.equals(this.zzbjb, zzgzVar.zzbjb)) { return false; } String str = this.zzbjc; if (str == null) { if (zzgzVar.zzbjc != null) { return false; } } else if (!str.equals(zzgzVar.zzbjc)) { return false; } if (zzfy.zza(this.zzbjd, zzgzVar.zzbjd)) { return (this.zzrj == null || this.zzrj.isEmpty()) ? zzgzVar.zzrj == null || zzgzVar.zzrj.isEmpty() : this.zzrj.equals(zzgzVar.zzrj); } return false; } /* JADX INFO: Access modifiers changed from: private */ @Override // com.google.android.gms.internal.clearcut.zzfu, com.google.android.gms.internal.clearcut.zzfz /* renamed from: zzgc, reason: merged with bridge method [inline-methods] */ public final zzgz clone() { try { zzgz zzgzVar = (zzgz) super.clone(); byte[][] bArr = this.zzbjd; if (bArr != null && bArr.length > 0) { zzgzVar.zzbjd = (byte[][]) bArr.clone(); } return zzgzVar; } catch (CloneNotSupportedException e) { throw new AssertionError(e); } } public zzgz() { this.zzrj = null; this.zzrs = -1; } }