public Builder removeSelectedUnits(int index) {
        if (selectedUnitsBuilder_ == null) {
          ensureSelectedUnitsIsMutable();
          selectedUnits_.remove(index);
          onChanged();
        } else {
          selectedUnitsBuilder_.remove(index);
        }
        return this;
      }