public Builder setUpgrading(
          int index, org.bwapi.proxy.messages.GameMessages.UpgradeType.Builder builderForValue) {
        if (upgradingBuilder_ == null) {
          ensureUpgradingIsMutable();
          upgrading_.set(index, builderForValue.build());
          onChanged();
        } else {
          upgradingBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }