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

133 lines
4.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.auth.api;
import android.os.Bundle;
import com.google.android.gms.auth.api.credentials.CredentialsApi;
import com.google.android.gms.auth.api.proxy.ProxyApi;
import com.google.android.gms.auth.api.signin.GoogleSignInApi;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.auth.api.signin.internal.zze;
import com.google.android.gms.auth.api.signin.internal.zzh;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.internal.p000authapi.zzj;
import com.google.android.gms.internal.p000authapi.zzq;
/* loaded from: classes.dex */
public final class Auth {
public static final Api<AuthCredentialsOptions> CREDENTIALS_API;
public static final CredentialsApi CredentialsApi;
public static final Api<GoogleSignInOptions> GOOGLE_SIGN_IN_API;
public static final GoogleSignInApi GoogleSignInApi;
@Deprecated
public static final Api<AuthProxyOptions> PROXY_API;
@Deprecated
public static final ProxyApi ProxyApi;
public static final Api.ClientKey<zzq> zzg;
public static final Api.ClientKey<zzh> zzh;
private static final Api.AbstractClientBuilder<zzq, AuthCredentialsOptions> zzi;
private static final Api.AbstractClientBuilder<zzh, GoogleSignInOptions> zzj;
private Auth() {
}
@Deprecated
/* loaded from: classes.dex */
public static class AuthCredentialsOptions implements Api.ApiOptions.Optional {
public static final AuthCredentialsOptions zzk = new Builder().zzd();
private final String zzl;
private final boolean zzm;
private final String zzn;
public AuthCredentialsOptions(Builder builder) {
this.zzl = builder.zzl;
this.zzm = builder.zzu.booleanValue();
this.zzn = builder.zzn;
}
@Deprecated
/* loaded from: classes.dex */
public static class Builder {
protected String zzl;
public String zzn;
public Boolean zzu;
public Builder() {
this.zzu = Boolean.FALSE;
}
public Builder(AuthCredentialsOptions authCredentialsOptions) {
this.zzu = Boolean.FALSE;
this.zzl = authCredentialsOptions.zzl;
this.zzu = Boolean.valueOf(authCredentialsOptions.zzm);
this.zzn = authCredentialsOptions.zzn;
}
public Builder forceEnableSaveDialog() {
this.zzu = Boolean.TRUE;
return this;
}
public AuthCredentialsOptions zzd() {
return new AuthCredentialsOptions(this);
}
public Builder zzc(String str) {
this.zzn = str;
return this;
}
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof AuthCredentialsOptions)) {
return false;
}
AuthCredentialsOptions authCredentialsOptions = (AuthCredentialsOptions) obj;
return Objects.equal(this.zzl, authCredentialsOptions.zzl) && this.zzm == authCredentialsOptions.zzm && Objects.equal(this.zzn, authCredentialsOptions.zzn);
}
public int hashCode() {
String str = this.zzl;
boolean z = this.zzm;
return Objects.hashCode(str, Boolean.valueOf(z), this.zzn);
}
public final Bundle toBundle() {
Bundle bundle = new Bundle();
bundle.putString("consumer_package", this.zzl);
bundle.putBoolean("force_save_dialog", this.zzm);
bundle.putString("log_session_id", this.zzn);
return bundle;
}
public final String zzc() {
return this.zzl;
}
public final String getLogSessionId() {
return this.zzn;
}
}
static {
Api.ClientKey<zzq> clientKey = new Api.ClientKey<>();
zzg = clientKey;
Api.ClientKey<zzh> clientKey2 = new Api.ClientKey<>();
zzh = clientKey2;
zzc zzcVar = new zzc();
zzi = zzcVar;
zzd zzdVar = new zzd();
zzj = zzdVar;
PROXY_API = AuthProxy.API;
CREDENTIALS_API = new Api<>("Auth.CREDENTIALS_API", zzcVar, clientKey);
GOOGLE_SIGN_IN_API = new Api<>("Auth.GOOGLE_SIGN_IN_API", zzdVar, clientKey2);
ProxyApi = AuthProxy.ProxyApi;
CredentialsApi = new zzj();
GoogleSignInApi = new zze();
}
}