public org.bwapi.proxy.messages.GameMessages.UnitId getCreatedUnits(int index) {
        if (createdUnitsBuilder_ == null) {
          return createdUnits_.get(index);
        } else {
          return createdUnitsBuilder_.getMessage(index);
        }
      }