what-the-bank/sources/com/google/android/gms/auth/AccountChangeEventsRequest....

75 lines
2.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.auth;
import android.accounts.Account;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes.dex */
public class AccountChangeEventsRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<AccountChangeEventsRequest> CREATOR = new zzb();
private final int zze;
@Deprecated
private String zzg;
private int zzi;
private Account zzk;
/* JADX INFO: Access modifiers changed from: package-private */
public AccountChangeEventsRequest(int i, int i2, String str, Account account) {
this.zze = i;
this.zzi = i2;
this.zzg = str;
if (account != null || TextUtils.isEmpty(str)) {
this.zzk = account;
} else {
this.zzk = new Account(str, "com.google");
}
}
public AccountChangeEventsRequest() {
this.zze = 1;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.zze);
SafeParcelWriter.writeInt(parcel, 2, this.zzi);
SafeParcelWriter.writeString(parcel, 3, this.zzg, false);
SafeParcelWriter.writeParcelable(parcel, 4, this.zzk, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public AccountChangeEventsRequest setEventIndex(int i) {
this.zzi = i;
return this;
}
@Deprecated
public AccountChangeEventsRequest setAccountName(String str) {
this.zzg = str;
return this;
}
public AccountChangeEventsRequest setAccount(Account account) {
this.zzk = account;
return this;
}
public int getEventIndex() {
return this.zzi;
}
@Deprecated
public String getAccountName() {
return this.zzg;
}
public Account getAccount() {
return this.zzk;
}
}