@Override
    protected void encode(ChannelHandlerContext ctx, MessageLite message, List<Object> out) {
        out.add(getDirectByteBuffer(message));
    }
@author James Chen The class accepts TurmsNotifcation on the server side, and accepts
        TurmsRequest on the client side
turms-server-common/src/main/java/im/turms/server/common/access/client/codec/ProtobufFrameEncoder.java