public org.bwapi.proxy.messages.GameMessages.UpgradeType getUpgradeType() {
        if (upgradeTypeBuilder_ == null) {
          return upgradeType_;
        } else {
          return upgradeTypeBuilder_.getMessage();
        }
      }