public org.bwapi.proxy.messages.GameMessages.TechTypeData buildPartial() {
        org.bwapi.proxy.messages.GameMessages.TechTypeData result = new org.bwapi.proxy.messages.GameMessages.TechTypeData(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.id_ = id_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.race_ = race_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.mineralPrice_ = mineralPrice_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.gasPrice_ = gasPrice_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.researchTime_ = researchTime_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.energyUsed_ = energyUsed_;
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        if (whatResearchesBuilder_ == null) {
          result.whatResearches_ = whatResearches_;
        } else {
          result.whatResearches_ = whatResearchesBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
          to_bitField0_ |= 0x00000100;
        }
        if (weaponBuilder_ == null) {
          result.weapon_ = weapon_;
        } else {
          result.weapon_ = weaponBuilder_.build();
        }
        if (whatUsesBuilder_ == null) {
          if (((bitField0_ & 0x00000200) == 0x00000200)) {
            whatUses_ = java.util.Collections.unmodifiableList(whatUses_);
            bitField0_ = (bitField0_ & ~0x00000200);
          }
          result.whatUses_ = whatUses_;
        } else {
          result.whatUses_ = whatUsesBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }