package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class e5 implements z9 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f10634a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final boolean f10635b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f10636c;

    @Nullable
    public final String zzb;

    @Nullable
    public final String zzc;

    @Nullable
    public final String zzd;

    public e5(int i10, @Nullable String str, @Nullable String str2, @Nullable String str3, boolean z10, int i11) {
        boolean z11 = true;
        if (i11 != -1 && i11 <= 0) {
            z11 = false;
        }
        ih1.x(z11);
        this.f10634a = i10;
        this.zzb = str;
        this.zzc = str2;
        this.zzd = str3;
        this.f10635b = z10;
        this.f10636c = i11;
    }

    @Override // com.google.android.gms.internal.ads.z9
    public final void a(g8 g8Var) {
        String str = this.zzc;
        if (str != null) {
            g8Var.zzu(str);
        }
        String str2 = this.zzb;
        if (str2 != null) {
            g8Var.zzt(str2);
        }
    }

    public final boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && e5.class == obj.getClass()) {
            e5 e5Var = (e5) obj;
            if (this.f10634a == e5Var.f10634a && Objects.equals(this.zzb, e5Var.zzb) && Objects.equals(this.zzc, e5Var.zzc) && Objects.equals(this.zzd, e5Var.zzd) && this.f10635b == e5Var.f10635b && this.f10636c == e5Var.f10636c) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        String str = this.zzb;
        int iHashCode = str != null ? str.hashCode() : 0;
        String str2 = this.zzc;
        int iHashCode2 = str2 != null ? str2.hashCode() : 0;
        int i10 = ((this.f10634a + 527) * 31) + iHashCode;
        String str3 = this.zzd;
        return (((((((i10 * 31) + iHashCode2) * 31) + (str3 != null ? str3.hashCode() : 0)) * 31) + (this.f10635b ? 1 : 0)) * 31) + this.f10636c;
    }

    public final String toString() {
        String str = this.zzc;
        int length = String.valueOf(str).length();
        String str2 = this.zzb;
        int length2 = String.valueOf(str2).length();
        int i10 = this.f10634a;
        int length3 = String.valueOf(i10).length();
        int i11 = this.f10636c;
        StringBuilder sb = new StringBuilder(length + 28 + length2 + 11 + length3 + 19 + String.valueOf(i11).length());
        u.a.h(sb, "IcyHeaders: name=\"", str, "\", genre=\"", str2);
        return com.google.android.gms.measurement.internal.u1.m(sb, "\", bitrate=", i10, ", metadataInterval=", i11);
    }
}
