public org.bwapi.proxy.messages.GameMessages.UnitTypeOrBuilder getWhatUpgradesOrBuilder() {
        if (whatUpgradesBuilder_ != null) {
          return whatUpgradesBuilder_.getMessageOrBuilder();
        } else {
          return whatUpgrades_;
        }
      }