what-the-bank/sources/com/google/android/libraries/places/internal/zzgd.java

49 lines
1.6 KiB
Java

package com.google.android.libraries.places.internal;
import android.content.Context;
import java.io.IOException;
import o.AbstractC3038apv;
import o.EnumC10854eQq;
import o.KRW;
import o.SnM;
import o.ZQu;
import o.kYm;
import o.kcd;
import o.nlv;
/* loaded from: classes2.dex */
public final class zzgd {
private final KRW zza;
public zzgd(Context context) {
SnM.b(context.getApplicationContext());
kYm kym = SnM.c;
if (kym == null) {
throw new IllegalStateException("Not initialized!");
}
this.zza = new nlv(SnM.c(null), AbstractC3038apv.e().c("cct").d(), kym.b()).getTransport("LE", zzmn.class, new kcd() { // from class: com.google.android.libraries.places.internal.zzgc
@Override // o.kcd
public final Object apply(Object obj) {
zzmn zzmnVar = (zzmn) obj;
try {
byte[] bArr = new byte[zzmnVar.zzv()];
zzael zzC = zzael.zzC(bArr);
zzmnVar.zzK(zzC);
zzC.zzD();
return bArr;
} catch (IOException e) {
String name = zzmnVar.getClass().getName();
StringBuilder sb = new StringBuilder("Serializing ");
sb.append(name);
sb.append(" to a byte array threw an IOException (should never happen).");
throw new RuntimeException(sb.toString(), e);
}
}
});
}
public final void zza(zzmn zzmnVar) {
this.zza.send(new ZQu(zzmnVar, EnumC10854eQq.DEFAULT));
}
}