public Builder addUpgrades(
          org.bwapi.proxy.messages.GameMessages.UpgradeType.Builder builderForValue) {
        if (upgradesBuilder_ == null) {
          ensureUpgradesIsMutable();
          upgrades_.add(builderForValue.build());
          onChanged();
        } else {
          upgradesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }