public Builder clear() {
        super.clear();
        type_ = org.bwapi.proxy.messages.Commands.CommandType.none;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (selfBuilder_ == null) {
          self_ = org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance();
        } else {
          selfBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (posBuilder_ == null) {
          pos_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          posBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (tilePosBuilder_ == null) {
          tilePos_ = org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance();
        } else {
          tilePosBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        if (targetBuilder_ == null) {
          target_ = org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance();
        } else {
          targetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        if (unitTypeBuilder_ == null) {
          unitType_ = org.bwapi.proxy.messages.GameMessages.UnitType.getDefaultInstance();
        } else {
          unitTypeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        if (techTypeBuilder_ == null) {
          techType_ = org.bwapi.proxy.messages.GameMessages.TechType.getDefaultInstance();
        } else {
          techTypeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        if (upgradeTypeBuilder_ == null) {
          upgradeType_ = org.bwapi.proxy.messages.GameMessages.UpgradeType.getDefaultInstance();
        } else {
          upgradeTypeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        slot_ = 0;
        bitField0_ = (bitField0_ & ~0x00000100);
        return this;
      }