public org.bwapi.proxy.messages.GameMessages.UnitId getSelectedUnits(int index) {
        if (selectedUnitsBuilder_ == null) {
          return selectedUnits_.get(index);
        } else {
          return selectedUnitsBuilder_.getMessage(index);
        }
      }