package o; import java.util.Set; /* loaded from: classes.dex */ public final class nlv implements FsM { private final InterfaceC0561Jkq a; private final Set b; private final AbstractC3038apv d; public nlv(Set set, AbstractC3038apv abstractC3038apv, InterfaceC0561Jkq interfaceC0561Jkq) { this.b = set; this.d = abstractC3038apv; this.a = interfaceC0561Jkq; } @Override // o.FsM public final KRW getTransport(String str, Class cls, C1332aAy c1332aAy, kcd 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 KRW getTransport(String str, Class cls, kcd kcdVar) { return getTransport(str, cls, new C1332aAy("proto"), kcdVar); } }