public Builder setMorphedUnits(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (morphedUnitsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMorphedUnitsIsMutable();
          morphedUnits_.set(index, value);
          onChanged();
        } else {
          morphedUnitsBuilder_.setMessage(index, value);
        }
        return this;
      }