public Builder mergeUpgradeType(org.bwapi.proxy.messages.GameMessages.UpgradeType value) {
        if (upgradeTypeBuilder_ == null) {
          if (((bitField0_ & 0x00000100) == 0x00000100) &&
              upgradeType_ != org.bwapi.proxy.messages.GameMessages.UpgradeType.getDefaultInstance()) {
            upgradeType_ =
              org.bwapi.proxy.messages.GameMessages.UpgradeType.newBuilder(upgradeType_).mergeFrom(value).buildPartial();
          } else {
            upgradeType_ = value;
          }
          onChanged();
        } else {
          upgradeTypeBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000100;
        return this;
      }