package com.google.android.gms.auth.api.identity; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.auth.api.identity.BeginSignInRequest; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; /* loaded from: classes.dex */ public final class zzc implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ BeginSignInRequest[] newArray(int i) { return new BeginSignInRequest[i]; } @Override // android.os.Parcelable.Creator public final /* synthetic */ BeginSignInRequest createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); BeginSignInRequest.PasswordRequestOptions passwordRequestOptions = null; BeginSignInRequest.GoogleIdTokenRequestOptions googleIdTokenRequestOptions = null; String str = null; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); int fieldId = SafeParcelReader.getFieldId(readHeader); if (fieldId == 1) { passwordRequestOptions = (BeginSignInRequest.PasswordRequestOptions) SafeParcelReader.createParcelable(parcel, readHeader, BeginSignInRequest.PasswordRequestOptions.CREATOR); } else if (fieldId == 2) { googleIdTokenRequestOptions = (BeginSignInRequest.GoogleIdTokenRequestOptions) SafeParcelReader.createParcelable(parcel, readHeader, BeginSignInRequest.GoogleIdTokenRequestOptions.CREATOR); } else if (fieldId == 3) { str = SafeParcelReader.createString(parcel, readHeader); } else { SafeParcelReader.skipUnknownField(parcel, readHeader); } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new BeginSignInRequest(passwordRequestOptions, googleIdTokenRequestOptions, str); } }