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

      if (!hasTheID()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPlayer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInitialType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasHitPoints()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInitialHitPoints()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasShields()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasEnergy()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasResources()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasResourceGroup()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInitialResources()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasKillCount()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGroundWeaponCooldown()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAirWeaponCooldown()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSpellCooldown()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDefenseMatrixPoints()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDefenseMatrixTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasEnsnareTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIrradiateTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasLockdownTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaelstromTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPlagueTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRemoveTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStasisTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStimTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInitialPosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTilePosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInitialTilePosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAngle()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasVelocityX()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasVelocityY()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTargetPosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasOrder()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasOrderTimer()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSecondaryOrder()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRemainingBuildTime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRemainingTrainTime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasInterceptorCount()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasScarabCount()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSpiderMineCount()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTech()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUpgrade()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRemainingResearchTime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRemainingUpgradeTime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRallyPosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasExists()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasHasNuke()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAccelerating()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBeingConstructed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBeingHealed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBlind()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBraking()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBurrowed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCarryingGas()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCarryingMinerals()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCloaked()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCompleted()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasConstructing()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDefenseMatrixed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasEnsnared()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasFollowing()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGatheringGas()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGatheringMinerals()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasHallucination()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIdle()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIrradiated()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasLifted()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasLoaded()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasLockedDown()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMaelstrommed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMorphing()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMoving()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasParasited()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPatrolling()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPlagued()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRepairing()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasResearching()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSelected()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSieged()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStartingAttack()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStasised()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStimmed()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTraining()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUnderStorm()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUnderAttack()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUnderDarkSwarm()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUnpowered()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasUpgrading()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasVisible()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBeingGathered()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasDetected()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAttacking()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAttackFrame()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStuck()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTheID().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getType().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getInitialType().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getPosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getInitialPosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTilePosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getInitialTilePosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasTarget()) {
        if (!getTarget().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getTargetPosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasOrderTarget()) {
        if (!getOrderTarget().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasBuildUnit()) {
        if (!getBuildUnit().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getTrainingQueueCount(); i++) {
        if (!getTrainingQueue(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasTransport()) {
        if (!getTransport().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getLoadedUnitsCount(); i++) {
        if (!getLoadedUnits(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getRallyPosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasRallyUnit()) {
        if (!getRallyUnit().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasAddon()) {
        if (!getAddon().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasCarrier()) {
        if (!getCarrier().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getInterceptorsCount(); i++) {
        if (!getInterceptors(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasNydusExit()) {
        if (!getNydusExit().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getLarvaeCount(); i++) {
        if (!getLarvae(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasHatchery()) {
        if (!getHatchery().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasBuildType()) {
        if (!getBuildType().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }