public void setMessageIdInfo(int messageId) {
        this.messageId = messageId;
        if (msgType == MsgType.MSG_ACK_SERVICE
                || msgType == MsgType.MSG_MULTI_BODY) {
            this.attrMap.put(AttributeConstants.MESSAGE_ID, String.valueOf(this.messageId));
            String preAttrStr = mapJoiner.join(this.attrMap);
            this.attrData = preAttrStr.getBytes(StandardCharsets.UTF_8);
            this.attrDataLength = this.attrData.length;
        }
    }
Encode Object class

Used to encapsulate the reported event information to be sent
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/tcp/codec/EncodeObject.java