public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getSelectedUnitsOrBuilder(
          int index) {
        if (selectedUnitsBuilder_ == null) {
          return selectedUnits_.get(index);  } else {
          return selectedUnitsBuilder_.getMessageOrBuilder(index);
        }
      }