public org.bwapi.proxy.messages.GameMessages.UpgradeLevel getUpgradeLevels(int index) {
        if (upgradeLevelsBuilder_ == null) {
          return upgradeLevels_.get(index);
        } else {
          return upgradeLevelsBuilder_.getMessage(index);
        }
      }