public org.bwapi.proxy.messages.GameMessages.UpgradeType getUpgrading(int index) {
        if (upgradingBuilder_ == null) {
          return upgrading_.get(index);
        } else {
          return upgradingBuilder_.getMessage(index);
        }
      }