public Builder setAllUnitCount(
          int index, org.bwapi.proxy.messages.GameMessages.UnitTypeIntPair value) {
        if (allUnitCountBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAllUnitCountIsMutable();
          allUnitCount_.set(index, value);
          onChanged();
        } else {
          allUnitCountBuilder_.setMessage(index, value);
        }
        return this;
      }