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 f0 extends f implements Cloneable { public static final Parcelable.Creator CREATOR = new y0(); /* renamed from: a, reason: collision with root package name */ private final String f5318a; /* renamed from: b, reason: collision with root package name */ private final String f5319b; /* renamed from: c, reason: collision with root package name */ private final String f5320c; /* renamed from: d, reason: collision with root package name */ private boolean f5321d; /* renamed from: e, reason: collision with root package name */ private final String f5322e; f0(String str, String str2, String str3, boolean z10, String str4) { boolean z11 = true; if ((TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) && (TextUtils.isEmpty(str3) || TextUtils.isEmpty(str4))) { z11 = false; } Preconditions.checkArgument(z11, "Cannot create PhoneAuthCredential without either sessionInfo + smsCode or temporary proof + phoneNumber."); this.f5318a = str; this.f5319b = str2; this.f5320c = str3; this.f5321d = z10; this.f5322e = str4; } public static f0 a0(String str, String str2) { return new f0(str, str2, null, true, null); } public static f0 d0(String str, String str2) { return new f0(null, null, str, true, str2); } @Override // com.google.firebase.auth.f public String P() { return "phone"; } @Override // com.google.firebase.auth.f public final f R() { return clone(); } public String S() { return this.f5319b; } /* renamed from: Y, reason: merged with bridge method [inline-methods] */ public final f0 clone() { return new f0(this.f5318a, S(), this.f5320c, this.f5321d, this.f5322e); } public final f0 f0(boolean z10) { this.f5321d = false; return this; } public final boolean j0() { return this.f5321d; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i10) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeString(parcel, 1, this.f5318a, false); SafeParcelWriter.writeString(parcel, 2, S(), false); SafeParcelWriter.writeString(parcel, 4, this.f5320c, false); SafeParcelWriter.writeBoolean(parcel, 5, this.f5321d); SafeParcelWriter.writeString(parcel, 6, this.f5322e, false); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } public final String zzf() { return this.f5320c; } public final String zzg() { return this.f5318a; } public final String zzh() { return this.f5322e; } }