public Builder setUpgradeLevels(
          int index, org.bwapi.proxy.messages.GameMessages.UpgradeLevel value) {
        if (upgradeLevelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureUpgradeLevelsIsMutable();
          upgradeLevels_.set(index, value);
          onChanged();
        } else {
          upgradeLevelsBuilder_.setMessage(index, value);
        }
        return this;
      }