public Builder mergeType(org.bwapi.proxy.messages.GameMessages.UpgradeType value) {
        if (typeBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              type_ != org.bwapi.proxy.messages.GameMessages.UpgradeType.getDefaultInstance()) {
            type_ =
              org.bwapi.proxy.messages.GameMessages.UpgradeType.newBuilder(type_).mergeFrom(value).buildPartial();
          } else {
            type_ = value;
          }
          onChanged();
        } else {
          typeBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }