NameResolver.usePlaintext() or useTransportSecurity() directly rather than negotiationType(NegotiationType).usePlaintext() or useTransportSecurity() instead.OkHttpChannelBuilder instances.SocketFactory used to create sockets.SSLSocketFactory and enable TLS negotiation.