public int getCreatedUnitsCount() {
        if (createdUnitsBuilder_ == null) {
          return createdUnits_.size();
        } else {
          return createdUnitsBuilder_.getCount();
        }
      }