class NettyServerBuilder extends AbstractServerImplBuilder<NettyServerBuilder> {

  public NettyServerBuilder sslContext(SslContext sslContext) {
    if (sslContext != null) {
      checkArgument(sslContext.isServer(),
          "Client SSL context can not be used for server");
      GrpcSslContexts.ensureAlpnAndH2Enabled(sslContext.applicationProtocolNegotiator());
    }
    this.sslContext = sslContext;
    return this;
  }

  @CheckReturnValue private  NettyServerBuilder(int port);
  @CheckReturnValue private  NettyServerBuilder(SocketAddress address);

}