package w3; import android.content.Context; import android.text.TextUtils; import com.google.android.gms.common.internal.Objects; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.internal.StringResourceValueReader; import com.google.android.gms.common.util.Strings; /* loaded from: classes2.dex */ public final class n { /* renamed from: a, reason: collision with root package name */ private final String f15143a; /* renamed from: b, reason: collision with root package name */ private final String f15144b; /* renamed from: c, reason: collision with root package name */ private final String f15145c; /* renamed from: d, reason: collision with root package name */ private final String f15146d; /* renamed from: e, reason: collision with root package name */ private final String f15147e; /* renamed from: f, reason: collision with root package name */ private final String f15148f; /* renamed from: g, reason: collision with root package name */ private final String f15149g; private n(String str, String str2, String str3, String str4, String str5, String str6, String str7) { Preconditions.checkState(!Strings.isEmptyOrWhitespace(str), "ApplicationId must be set."); this.f15144b = str; this.f15143a = str2; this.f15145c = str3; this.f15146d = str4; this.f15147e = str5; this.f15148f = str6; this.f15149g = str7; } public static n a(Context context) { StringResourceValueReader stringResourceValueReader = new StringResourceValueReader(context); String string = stringResourceValueReader.getString("google_app_id"); if (TextUtils.isEmpty(string)) { return null; } return new n(string, stringResourceValueReader.getString("google_api_key"), stringResourceValueReader.getString("firebase_database_url"), stringResourceValueReader.getString("ga_trackingId"), stringResourceValueReader.getString("gcm_defaultSenderId"), stringResourceValueReader.getString("google_storage_bucket"), stringResourceValueReader.getString("project_id")); } public String b() { return this.f15143a; } public String c() { return this.f15144b; } public String d() { return this.f15147e; } public String e() { return this.f15149g; } public boolean equals(Object obj) { if (!(obj instanceof n)) { return false; } n nVar = (n) obj; return Objects.equal(this.f15144b, nVar.f15144b) && Objects.equal(this.f15143a, nVar.f15143a) && Objects.equal(this.f15145c, nVar.f15145c) && Objects.equal(this.f15146d, nVar.f15146d) && Objects.equal(this.f15147e, nVar.f15147e) && Objects.equal(this.f15148f, nVar.f15148f) && Objects.equal(this.f15149g, nVar.f15149g); } public int hashCode() { return Objects.hashCode(this.f15144b, this.f15143a, this.f15145c, this.f15146d, this.f15147e, this.f15148f, this.f15149g); } public String toString() { return Objects.toStringHelper(this).add("applicationId", this.f15144b).add("apiKey", this.f15143a).add("databaseUrl", this.f15145c).add("gcmSenderId", this.f15147e).add("storageBucket", this.f15148f).add("projectId", this.f15149g).toString(); } }