what-the-bank/sources/com/google/android/gms/auth/api/identity/zzc.java

38 lines
2.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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<BeginSignInRequest> {
@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);
}
}