public Builder removeUpgrades(int index) {
        if (upgradesBuilder_ == null) {
          ensureUpgradesIsMutable();
          upgrades_.remove(index);
          onChanged();
        } else {
          upgradesBuilder_.remove(index);
        }
        return this;
      }