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

import androidx.annotation.Nullable;
import com.google.android.gms.ads.AdFormat;
import java.util.Locale;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class gf1 {

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

    @Nullable
    private final AdFormat zzb;

    @Nullable
    private final String zzc;

    public /* synthetic */ gf1(ff1 ff1Var) {
        this.f11731a = ff1Var.f11199a;
        this.zzb = ff1Var.b();
        this.zzc = ff1Var.c();
    }

    public final String a() {
        AdFormat adFormat = this.zzb;
        return adFormat == null ? "unknown" : adFormat.name().toLowerCase(Locale.ENGLISH);
    }

    public final boolean equals(@Nullable Object obj) {
        AdFormat adFormat;
        AdFormat adFormat2;
        if (obj instanceof gf1) {
            gf1 gf1Var = (gf1) obj;
            if (this.f11731a.equals(gf1Var.f11731a) && (adFormat = this.zzb) != null && (adFormat2 = gf1Var.zzb) != null && adFormat.equals(adFormat2)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Objects.hash(this.f11731a, this.zzb);
    }

    @Nullable
    public final String zzc() {
        return this.zzc;
    }
}
