public int getRequiredUnitsCount() {
        if (requiredUnitsBuilder_ == null) {
          return requiredUnits_.size();
        } else {
          return requiredUnitsBuilder_.getCount();
        }
      }