what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzel.java

134 lines
3.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/* loaded from: classes2.dex */
public class zzel {
private static final Logger logger = Logger.getLogger(zzel.class.getName());
private final zzfi zzsl;
private final zzeq zzsm;
private final String zzsn;
private final String zzso;
private final String zzsp;
private final String zzsq;
private final zzhu zzsr;
private final boolean zzss;
private final boolean zzst;
/* JADX INFO: Access modifiers changed from: protected */
public zzel(zza zzaVar) {
zzfi zza2;
this.zzsm = zzaVar.zzsm;
this.zzsn = zzi(zzaVar.zzsn);
this.zzso = zzj(zzaVar.zzso);
this.zzsp = zzaVar.zzsp;
if (zzla.zzbb(zzaVar.zzsq)) {
logger.logp(Level.WARNING, "o.hJA", "<init>", "Application name is not set. Call Builder#setApplicationName.");
}
this.zzsq = zzaVar.zzsq;
if (zzaVar.zzsv == null) {
zza2 = zzaVar.zzsu.zza(null);
} else {
zza2 = zzaVar.zzsu.zza(zzaVar.zzsv);
}
this.zzsl = zza2;
this.zzsr = zzaVar.zzsr;
this.zzss = false;
this.zzst = false;
}
/* loaded from: classes2.dex */
public static class zza {
zzeq zzsm;
String zzsn;
String zzso;
String zzsp;
String zzsq;
final zzhu zzsr;
final zzfo zzsu;
zzfj zzsv;
/* JADX INFO: Access modifiers changed from: protected */
public zza(zzfo zzfoVar, String str, String str2, zzhu zzhuVar, zzfj zzfjVar) {
this.zzsu = (zzfo) zzks.checkNotNull(zzfoVar);
this.zzsr = zzhuVar;
zzk(str);
zzl(str2);
this.zzsv = zzfjVar;
}
public zza zzk(String str) {
this.zzsn = zzel.zzi(str);
return this;
}
public zza zzl(String str) {
this.zzso = zzel.zzj(str);
return this;
}
public zza zzn(String str) {
this.zzsq = str;
return this;
}
public zza zzm(String str) {
this.zzsp = str;
return this;
}
public zza zza(zzeq zzeqVar) {
this.zzsm = zzeqVar;
return this;
}
}
public final String zzej() {
String valueOf = String.valueOf(this.zzsn);
String valueOf2 = String.valueOf(this.zzso);
return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf);
}
/* JADX INFO: Access modifiers changed from: protected */
public void zza(zzem<?> zzemVar) throws IOException {
zzeq zzeqVar = this.zzsm;
if (zzeqVar != null) {
zzeqVar.zza(zzemVar);
}
}
static String zzi(String str) {
zzks.checkNotNull(str, "root URL cannot be null.");
return !str.endsWith("/") ? String.valueOf(str).concat("/") : str;
}
static String zzj(String str) {
zzks.checkNotNull(str, "service path cannot be null");
if (str.length() == 1) {
zzks.checkArgument("/".equals(str), "service path must equal \"/\" if it is of length 1.");
return "";
}
if (str.length() <= 0) {
return str;
}
if (!str.endsWith("/")) {
str = String.valueOf(str).concat("/");
}
return str.startsWith("/") ? str.substring(1) : str;
}
public zzhu zzem() {
return this.zzsr;
}
public final zzfi zzel() {
return this.zzsl;
}
public final String zzek() {
return this.zzsq;
}
}