public Builder addDestroyedUnits(org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (destroyedUnitsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDestroyedUnitsIsMutable();
          destroyedUnits_.add(value);
          onChanged();
        } else {
          destroyedUnitsBuilder_.addMessage(value);
        }
        return this;
      }