@Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    if (!(other instanceof Port)) {
      return false;
    }
    Port otherPort = (Port) other;
    return portNumber == otherPort.portNumber && protocol.equals(otherPort.protocol);
  }
Gets the protocol.

@return the protocol
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/Port.java