package ua;

import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.v;
import com.google.android.gms.common.internal.w;
import com.google.android.gms.common.internal.z;
import java.util.Arrays;

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

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

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

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

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

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

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

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

    private i(@NonNull String str, @NonNull String str2, @Nullable String str3, @Nullable String str4, @Nullable String str5, @Nullable String str6, @Nullable String str7) {
        w.h(!i8.h.isEmptyOrWhitespace(str), "ApplicationId must be set.");
        this.f33416b = str;
        this.f33415a = str2;
        this.f33417c = str3;
        this.f33418d = str4;
        this.f33419e = str5;
        this.f33420f = str6;
        this.f33421g = str7;
    }

    @Nullable
    public static i fromResource(@NonNull Context context) {
        z zVar = new z(context);
        String string = zVar.getString("google_app_id");
        if (TextUtils.isEmpty(string)) {
            return null;
        }
        return new i(string, zVar.getString("google_api_key"), zVar.getString("firebase_database_url"), zVar.getString("ga_trackingId"), zVar.getString("gcm_defaultSenderId"), zVar.getString("google_storage_bucket"), zVar.getString("project_id"));
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof i)) {
            return false;
        }
        i iVar = (i) obj;
        return v.equal(this.f33416b, iVar.f33416b) && v.equal(this.f33415a, iVar.f33415a) && v.equal(this.f33417c, iVar.f33417c) && v.equal(this.f33418d, iVar.f33418d) && v.equal(this.f33419e, iVar.f33419e) && v.equal(this.f33420f, iVar.f33420f) && v.equal(this.f33421g, iVar.f33421g);
    }

    @Nullable
    public String getDatabaseUrl() {
        return this.f33417c;
    }

    @Nullable
    @KeepForSdk
    public String getGaTrackingId() {
        return this.f33418d;
    }

    @Nullable
    public String getGcmSenderId() {
        return this.f33419e;
    }

    @Nullable
    public String getProjectId() {
        return this.f33421g;
    }

    @Nullable
    public String getStorageBucket() {
        return this.f33420f;
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{this.f33416b, this.f33415a, this.f33417c, this.f33418d, this.f33419e, this.f33420f, this.f33421g});
    }

    public final String toString() {
        return v.a(this).add("applicationId", this.f33416b).add("apiKey", this.f33415a).add("databaseUrl", this.f33417c).add("gcmSenderId", this.f33419e).add("storageBucket", this.f33420f).add("projectId", this.f33421g).toString();
    }
}
