public org.bwapi.proxy.messages.GameMessages.UpgradeTypeOrBuilder getUpgradeTypeOrBuilder() {
        if (upgradeTypeBuilder_ != null) {
          return upgradeTypeBuilder_.getMessageOrBuilder();
        } else {
          return upgradeType_;
        }
      }