public org.bwapi.proxy.messages.GameMessages.UnitId getLoadedUnits(int index) {
        if (loadedUnitsBuilder_ == null) {
          return loadedUnits_.get(index);
        } else {
          return loadedUnitsBuilder_.getMessage(index);
        }
      }