package com.google.firebase.auth; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; /* loaded from: classes2.dex */ public class g extends f { public static final Parcelable.Creator CREATOR = new i1(); /* renamed from: a, reason: collision with root package name */ private final String f5323a; /* renamed from: b, reason: collision with root package name */ private String f5324b; /* renamed from: c, reason: collision with root package name */ private final String f5325c; /* renamed from: d, reason: collision with root package name */ private String f5326d; /* renamed from: e, reason: collision with root package name */ private boolean f5327e; g(String str, String str2, String str3, String str4, boolean z10) { this.f5323a = Preconditions.checkNotEmpty(str); if (TextUtils.isEmpty(str2) && TextUtils.isEmpty(str3)) { throw new IllegalArgumentException("Cannot create an EmailAuthCredential without a password or emailLink."); } this.f5324b = str2; this.f5325c = str3; this.f5326d = str4; this.f5327e = z10; } @Override // com.google.firebase.auth.f public String P() { return "password"; } @Override // com.google.firebase.auth.f public final f R() { return new g(this.f5323a, this.f5324b, this.f5325c, this.f5326d, this.f5327e); } public String S() { return !TextUtils.isEmpty(this.f5324b) ? "password" : "emailLink"; } public final g Y(t tVar) { this.f5326d = tVar.zzf(); this.f5327e = true; return this; } public final String a0() { return this.f5323a; } public final boolean d0() { return this.f5327e; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i10) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeString(parcel, 1, this.f5323a, false); SafeParcelWriter.writeString(parcel, 2, this.f5324b, false); SafeParcelWriter.writeString(parcel, 3, this.f5325c, false); SafeParcelWriter.writeString(parcel, 4, this.f5326d, false); SafeParcelWriter.writeBoolean(parcel, 5, this.f5327e); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } public final String zzc() { return this.f5326d; } public final String zze() { return this.f5324b; } public final String zzf() { return this.f5325c; } public final boolean zzg() { return !TextUtils.isEmpty(this.f5325c); } }