ports in the proto is a list of `java.lang.Integer`, the ports var is a list of `scala.Int`