public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasName()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSublabel()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRace()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasWhatBuildsType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasWhatBuildsNumber()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRequiredTech()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasArmorUpgrade()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaxHitPoints()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaxShields()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaxEnergy()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasArmor()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMineralPrice()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGasPrice()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBuildTime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSupplyRequired()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSupplyProvided()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSpaceRequired()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSpaceProvided()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBuildScore()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDestroyScore()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSize()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTileWidth()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTileHeight()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDimensionLeft()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDimensionUp()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDimensionRight()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDimensionDown()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSeekRange()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSightRange()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGroundWeapon()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaxGroundHits()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAirWeapon()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaxAirHits()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTopSpeed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAcceleration()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasHaltDistance()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTurnRadius()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCanProduce()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCanAttack()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCanMove()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsFlyer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRegeneratesHP()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsSpellcaster()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasHasPermanentCloak()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsInvincible()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsOrganic()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsMechanical()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsRobotic()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsDetector()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsResourceContainer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsResourceDepot()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsRefinery()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsWorker()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRequiresPsi()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRequiresCreep()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsTwoUnitsInOneEgg()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsBurrowable()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsCloakable()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsBuilding()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsAddon()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsFlyingBuilding()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsNeutral()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getWhatBuildsType().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getRequiredUnitsCount(); i++) {
        if (!getRequiredUnits(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getRequiredTech().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getAbilitiesCount(); i++) {
        if (!getAbilities(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getUpgradesCount(); i++) {
        if (!getUpgrades(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getArmorUpgrade().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getGroundWeapon().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getAirWeapon().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }