public org.bwapi.proxy.messages.GameMessages.UnitTypeIntPairOrBuilder getRequiredUnitsOrBuilder(
          int index) {
        if (requiredUnitsBuilder_ == null) {
          return requiredUnits_.get(index);  } else {
          return requiredUnitsBuilder_.getMessageOrBuilder(index);
        }
      }