public org.bwapi.proxy.messages.GameMessages.UnitTypeIntPair getRequiredUnits(int index) {
        if (requiredUnitsBuilder_ == null) {
          return requiredUnits_.get(index);
        } else {
          return requiredUnitsBuilder_.getMessage(index);
        }
      }