public org.bwapi.proxy.messages.GameMessages.UpgradeLevelOrBuilder getUpgradeLevelsOrBuilder(
          int index) {
        if (upgradeLevelsBuilder_ == null) {
          return upgradeLevels_.get(index);  } else {
          return upgradeLevelsBuilder_.getMessageOrBuilder(index);
        }
      }