public org.bwapi.proxy.messages.GameMessages.UpgradeTypeOrBuilder getUpgradingOrBuilder(
          int index) {
        if (upgradingBuilder_ == null) {
          return upgrading_.get(index);  } else {
          return upgradingBuilder_.getMessageOrBuilder(index);
        }
      }