30 lines
1.0 KiB
Java
30 lines
1.0 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Set;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class nlv implements FsM {
|
||
|
private final InterfaceC0561Jkq a;
|
||
|
private final Set<C1332aAy> b;
|
||
|
private final AbstractC3038apv d;
|
||
|
|
||
|
public nlv(Set<C1332aAy> set, AbstractC3038apv abstractC3038apv, InterfaceC0561Jkq interfaceC0561Jkq) {
|
||
|
this.b = set;
|
||
|
this.d = abstractC3038apv;
|
||
|
this.a = interfaceC0561Jkq;
|
||
|
}
|
||
|
|
||
|
@Override // o.FsM
|
||
|
public final <T> KRW<T> getTransport(String str, Class<T> cls, C1332aAy c1332aAy, kcd<T, byte[]> kcdVar) {
|
||
|
if (!this.b.contains(c1332aAy)) {
|
||
|
throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", c1332aAy, this.b));
|
||
|
}
|
||
|
return new ZSz(this.d, str, c1332aAy, kcdVar, this.a);
|
||
|
}
|
||
|
|
||
|
@Override // o.FsM
|
||
|
public final <T> KRW<T> getTransport(String str, Class<T> cls, kcd<T, byte[]> kcdVar) {
|
||
|
return getTransport(str, cls, new C1332aAy("proto"), kcdVar);
|
||
|
}
|
||
|
}
|