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