public java.util.List<org.bwapi.proxy.messages.GameMessages.UpgradeTypeData> getUpgradesList() {
        if (upgradesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(upgrades_);
        } else {
          return upgradesBuilder_.getMessageList();
        }
      }