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

37 lines
987 B
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.io.OutputStream;
/* loaded from: classes2.dex */
public final class zzgb extends zzev {
private final Object data;
private final zzge zzwf;
private String zzwg;
public zzgb(zzge zzgeVar, Object obj) {
super("application/json; charset=UTF-8");
this.zzwf = (zzge) zzks.checkNotNull(zzgeVar);
this.data = zzks.checkNotNull(obj);
}
@Override // com.google.android.gms.internal.firebase_ml.zzhy
public final void writeTo(OutputStream outputStream) throws IOException {
zzgf zza = this.zzwf.zza(outputStream, zzeu());
if (this.zzwg != null) {
zza.zzga();
zza.zzan(this.zzwg);
}
zza.zzd(this.data);
if (this.zzwg != null) {
zza.zzgb();
}
zza.flush();
}
public final zzgb zzal(String str) {
this.zzwg = str;
return this;
}
}