what-the-bank/sources/com/google/android/gms/auth/api/accounttransfer/zzt.java

146 lines
5.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.auth.api.accounttransfer;
import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.server.response.FastJsonResponse;
import com.google.android.gms.internal.auth.zzaz;
import com.huawei.hms.support.feature.result.CommonConstant;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import o.wnv;
/* loaded from: classes.dex */
public class zzt extends zzaz {
public static final Parcelable.Creator<zzt> CREATOR = new zzu();
private static final HashMap<String, FastJsonResponse.Field<?, ?>> zzaz;
private final Set<Integer> zzba;
private String zzbn;
private int zzbo;
private byte[] zzbp;
private PendingIntent zzbq;
private DeviceMetaData zzbr;
private final int zzv;
/* JADX INFO: Access modifiers changed from: package-private */
public zzt(Set<Integer> set, int i, String str, int i2, byte[] bArr, PendingIntent pendingIntent, DeviceMetaData deviceMetaData) {
this.zzba = set;
this.zzv = i;
this.zzbn = str;
this.zzbo = i2;
this.zzbp = bArr;
this.zzbq = pendingIntent;
this.zzbr = deviceMetaData;
}
public zzt() {
this.zzba = new wnv(3);
this.zzv = 1;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
Set<Integer> set = this.zzba;
if (set.contains(1)) {
SafeParcelWriter.writeInt(parcel, 1, this.zzv);
}
if (set.contains(2)) {
SafeParcelWriter.writeString(parcel, 2, this.zzbn, true);
}
if (set.contains(3)) {
SafeParcelWriter.writeInt(parcel, 3, this.zzbo);
}
if (set.contains(4)) {
SafeParcelWriter.writeByteArray(parcel, 4, this.zzbp, true);
}
if (set.contains(5)) {
SafeParcelWriter.writeParcelable(parcel, 5, this.zzbq, i, true);
}
if (set.contains(6)) {
SafeParcelWriter.writeParcelable(parcel, 6, this.zzbr, i, true);
}
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public boolean isFieldSet(FastJsonResponse.Field field) {
return this.zzba.contains(Integer.valueOf(field.getSafeParcelableFieldId()));
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public Object getFieldValue(FastJsonResponse.Field field) {
int safeParcelableFieldId = field.getSafeParcelableFieldId();
if (safeParcelableFieldId == 1) {
return Integer.valueOf(this.zzv);
}
if (safeParcelableFieldId == 2) {
return this.zzbn;
}
if (safeParcelableFieldId == 3) {
return Integer.valueOf(this.zzbo);
}
if (safeParcelableFieldId == 4) {
return this.zzbp;
}
int safeParcelableFieldId2 = field.getSafeParcelableFieldId();
StringBuilder sb = new StringBuilder(37);
sb.append("Unknown SafeParcelable id=");
sb.append(safeParcelableFieldId2);
throw new IllegalStateException(sb.toString());
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public void setStringInternal(FastJsonResponse.Field<?, ?> field, String str, String str2) {
int safeParcelableFieldId = field.getSafeParcelableFieldId();
if (safeParcelableFieldId != 2) {
throw new IllegalArgumentException(String.format("Field with id=%d is not known to be a string.", Integer.valueOf(safeParcelableFieldId)));
}
this.zzbn = str2;
this.zzba.add(Integer.valueOf(safeParcelableFieldId));
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public void setIntegerInternal(FastJsonResponse.Field<?, ?> field, String str, int i) {
int safeParcelableFieldId = field.getSafeParcelableFieldId();
if (safeParcelableFieldId != 3) {
StringBuilder sb = new StringBuilder(52);
sb.append("Field with id=");
sb.append(safeParcelableFieldId);
sb.append(" is not known to be an int.");
throw new IllegalArgumentException(sb.toString());
}
this.zzbo = i;
this.zzba.add(Integer.valueOf(safeParcelableFieldId));
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public void setDecodedBytesInternal(FastJsonResponse.Field<?, ?> field, String str, byte[] bArr) {
int safeParcelableFieldId = field.getSafeParcelableFieldId();
if (safeParcelableFieldId != 4) {
StringBuilder sb = new StringBuilder(59);
sb.append("Field with id=");
sb.append(safeParcelableFieldId);
sb.append(" is not known to be an byte array.");
throw new IllegalArgumentException(sb.toString());
}
this.zzbp = bArr;
this.zzba.add(Integer.valueOf(safeParcelableFieldId));
}
static {
HashMap<String, FastJsonResponse.Field<?, ?>> hashMap = new HashMap<>();
zzaz = hashMap;
hashMap.put("accountType", FastJsonResponse.Field.forString("accountType", 2));
hashMap.put(CommonConstant.KEY_STATUS, FastJsonResponse.Field.forInteger(CommonConstant.KEY_STATUS, 3));
hashMap.put("transferBytes", FastJsonResponse.Field.forBase64("transferBytes", 4));
}
@Override // com.google.android.gms.common.server.response.FastJsonResponse
public /* synthetic */ Map getFieldMappings() {
return zzaz;
}
}