/* This file is autogenerated. DO NOT CHANGE. All changes will be lost */

#include "basicmessages.qpb.h"
#include <QtProtobuf/qprotobufserializer.h>
#include <cmath>

namespace qtprotobufnamespace::tests {

class EmptyMessage_QtProtobufData : public QSharedData
{
public:
    EmptyMessage_QtProtobufData()
        : QSharedData()
    {
    }

    EmptyMessage_QtProtobufData(const EmptyMessage_QtProtobufData &other)
        : QSharedData(other)
    {
    }

};

EmptyMessage::~EmptyMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 1> qt_protobuf_EmptyMessage_uint_data;
    const char qt_protobuf_EmptyMessage_char_data[40];
} qt_protobuf_EmptyMessage_metadata {
    // data
    {
        0, /* = version */
        0, /* = num fields */
        1, /* = field number offset */
        1, /* = property index offset */
        1, /* = field flags offset */
        38, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        39, /* = end-of-string-marker */
        // Field numbers:
        // Property indices:
        // Field flags:
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.EmptyMessage\0" /* = full message name */
    /* field char_data: */
    ""
};

const QtProtobufPrivate::QProtobufPropertyOrdering EmptyMessage::propertyOrdering = {
    &qt_protobuf_EmptyMessage_metadata.data
};

void EmptyMessage::registerTypes()
{
    qRegisterMetaType<EmptyMessage>();
    qRegisterMetaType<EmptyMessageRepeated>();
}

EmptyMessage::EmptyMessage()
    : QProtobufMessage(&EmptyMessage::staticMetaObject),
      dptr(new EmptyMessage_QtProtobufData)
{
}

EmptyMessage::EmptyMessage(const EmptyMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
EmptyMessage &EmptyMessage::operator =(const EmptyMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
EmptyMessage::EmptyMessage(EmptyMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
EmptyMessage &EmptyMessage::operator =(EmptyMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool EmptyMessage::operator ==(const EmptyMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other);
}

bool EmptyMessage::operator !=(const EmptyMessage &other) const
{
    return !this->operator ==(other);
}


class SimpleBoolMessage_QtProtobufData : public QSharedData
{
public:
    SimpleBoolMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldBool(false)
    {
    }

    SimpleBoolMessage_QtProtobufData(const SimpleBoolMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldBool(other.m_testFieldBool)
    {
    }

    bool m_testFieldBool;
};

SimpleBoolMessage::~SimpleBoolMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleBoolMessage_uint_data;
    const char qt_protobuf_SimpleBoolMessage_char_data[59];
} qt_protobuf_SimpleBoolMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        43, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        44, /* = testFieldBool */
        58, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldBool */
        // Property indices:
        0, /* = testFieldBool */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldBool */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleBoolMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldBool\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleBoolMessage::propertyOrdering = {
    &qt_protobuf_SimpleBoolMessage_metadata.data
};

void SimpleBoolMessage::registerTypes()
{
    qRegisterMetaType<SimpleBoolMessage>();
    qRegisterMetaType<SimpleBoolMessageRepeated>();
}

SimpleBoolMessage::SimpleBoolMessage()
    : QProtobufMessage(&SimpleBoolMessage::staticMetaObject),
      dptr(new SimpleBoolMessage_QtProtobufData)
{
}

SimpleBoolMessage::SimpleBoolMessage(const SimpleBoolMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleBoolMessage &SimpleBoolMessage::operator =(const SimpleBoolMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleBoolMessage::SimpleBoolMessage(SimpleBoolMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleBoolMessage &SimpleBoolMessage::operator =(SimpleBoolMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleBoolMessage::operator ==(const SimpleBoolMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldBool == other.dptr->m_testFieldBool;
}

bool SimpleBoolMessage::operator !=(const SimpleBoolMessage &other) const
{
    return !this->operator ==(other);
}

bool SimpleBoolMessage::testFieldBool() const
{
    return dptr->m_testFieldBool;
}

void SimpleBoolMessage::setTestFieldBool(const bool &testFieldBool)
{
    if (dptr->m_testFieldBool != testFieldBool) {
        dptr.detach();
        dptr->m_testFieldBool = testFieldBool;
    }
}


class SimpleIntMessage_QtProtobufData : public QSharedData
{
public:
    SimpleIntMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleIntMessage_QtProtobufData(const SimpleIntMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::int32 m_testFieldInt;
};

SimpleIntMessage::~SimpleIntMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleIntMessage_uint_data;
    const char qt_protobuf_SimpleIntMessage_char_data[57];
} qt_protobuf_SimpleIntMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        42, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        43, /* = testFieldInt */
        56, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleIntMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleIntMessage::propertyOrdering = {
    &qt_protobuf_SimpleIntMessage_metadata.data
};

void SimpleIntMessage::registerTypes()
{
    qRegisterMetaType<SimpleIntMessage>();
    qRegisterMetaType<SimpleIntMessageRepeated>();
}

SimpleIntMessage::SimpleIntMessage()
    : QProtobufMessage(&SimpleIntMessage::staticMetaObject),
      dptr(new SimpleIntMessage_QtProtobufData)
{
}

SimpleIntMessage::SimpleIntMessage(const SimpleIntMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleIntMessage &SimpleIntMessage::operator =(const SimpleIntMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleIntMessage::SimpleIntMessage(SimpleIntMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleIntMessage &SimpleIntMessage::operator =(SimpleIntMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleIntMessage::operator ==(const SimpleIntMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleIntMessage::operator !=(const SimpleIntMessage &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::int32 SimpleIntMessage::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleIntMessage::setTestFieldInt(const QtProtobuf::int32 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleSIntMessage_QtProtobufData : public QSharedData
{
public:
    SimpleSIntMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleSIntMessage_QtProtobufData(const SimpleSIntMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::sint32 m_testFieldInt;
};

SimpleSIntMessage::~SimpleSIntMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleSIntMessage_uint_data;
    const char qt_protobuf_SimpleSIntMessage_char_data[58];
} qt_protobuf_SimpleSIntMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        43, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        44, /* = testFieldInt */
        57, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleSIntMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleSIntMessage::propertyOrdering = {
    &qt_protobuf_SimpleSIntMessage_metadata.data
};

void SimpleSIntMessage::registerTypes()
{
    qRegisterMetaType<SimpleSIntMessage>();
    qRegisterMetaType<SimpleSIntMessageRepeated>();
}

SimpleSIntMessage::SimpleSIntMessage()
    : QProtobufMessage(&SimpleSIntMessage::staticMetaObject),
      dptr(new SimpleSIntMessage_QtProtobufData)
{
}

SimpleSIntMessage::SimpleSIntMessage(const SimpleSIntMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleSIntMessage &SimpleSIntMessage::operator =(const SimpleSIntMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleSIntMessage::SimpleSIntMessage(SimpleSIntMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleSIntMessage &SimpleSIntMessage::operator =(SimpleSIntMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleSIntMessage::operator ==(const SimpleSIntMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleSIntMessage::operator !=(const SimpleSIntMessage &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::sint32 SimpleSIntMessage::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleSIntMessage::setTestFieldInt(const QtProtobuf::sint32 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleUIntMessage_QtProtobufData : public QSharedData
{
public:
    SimpleUIntMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleUIntMessage_QtProtobufData(const SimpleUIntMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::uint32 m_testFieldInt;
};

SimpleUIntMessage::~SimpleUIntMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleUIntMessage_uint_data;
    const char qt_protobuf_SimpleUIntMessage_char_data[58];
} qt_protobuf_SimpleUIntMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        43, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        44, /* = testFieldInt */
        57, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleUIntMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleUIntMessage::propertyOrdering = {
    &qt_protobuf_SimpleUIntMessage_metadata.data
};

void SimpleUIntMessage::registerTypes()
{
    qRegisterMetaType<SimpleUIntMessage>();
    qRegisterMetaType<SimpleUIntMessageRepeated>();
}

SimpleUIntMessage::SimpleUIntMessage()
    : QProtobufMessage(&SimpleUIntMessage::staticMetaObject),
      dptr(new SimpleUIntMessage_QtProtobufData)
{
}

SimpleUIntMessage::SimpleUIntMessage(const SimpleUIntMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleUIntMessage &SimpleUIntMessage::operator =(const SimpleUIntMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleUIntMessage::SimpleUIntMessage(SimpleUIntMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleUIntMessage &SimpleUIntMessage::operator =(SimpleUIntMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleUIntMessage::operator ==(const SimpleUIntMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleUIntMessage::operator !=(const SimpleUIntMessage &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::uint32 SimpleUIntMessage::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleUIntMessage::setTestFieldInt(const QtProtobuf::uint32 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleInt64Message_QtProtobufData : public QSharedData
{
public:
    SimpleInt64Message_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleInt64Message_QtProtobufData(const SimpleInt64Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::int64 m_testFieldInt;
};

SimpleInt64Message::~SimpleInt64Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleInt64Message_uint_data;
    const char qt_protobuf_SimpleInt64Message_char_data[59];
} qt_protobuf_SimpleInt64Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        44, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        45, /* = testFieldInt */
        58, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleInt64Message\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleInt64Message::propertyOrdering = {
    &qt_protobuf_SimpleInt64Message_metadata.data
};

void SimpleInt64Message::registerTypes()
{
    qRegisterMetaType<SimpleInt64Message>();
    qRegisterMetaType<SimpleInt64MessageRepeated>();
}

SimpleInt64Message::SimpleInt64Message()
    : QProtobufMessage(&SimpleInt64Message::staticMetaObject),
      dptr(new SimpleInt64Message_QtProtobufData)
{
}

SimpleInt64Message::SimpleInt64Message(const SimpleInt64Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleInt64Message &SimpleInt64Message::operator =(const SimpleInt64Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleInt64Message::SimpleInt64Message(SimpleInt64Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleInt64Message &SimpleInt64Message::operator =(SimpleInt64Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleInt64Message::operator ==(const SimpleInt64Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleInt64Message::operator !=(const SimpleInt64Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::int64 SimpleInt64Message::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleInt64Message::setTestFieldInt(const QtProtobuf::int64 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleSInt64Message_QtProtobufData : public QSharedData
{
public:
    SimpleSInt64Message_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleSInt64Message_QtProtobufData(const SimpleSInt64Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::sint64 m_testFieldInt;
};

SimpleSInt64Message::~SimpleSInt64Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleSInt64Message_uint_data;
    const char qt_protobuf_SimpleSInt64Message_char_data[60];
} qt_protobuf_SimpleSInt64Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        45, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        46, /* = testFieldInt */
        59, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleSInt64Message\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleSInt64Message::propertyOrdering = {
    &qt_protobuf_SimpleSInt64Message_metadata.data
};

void SimpleSInt64Message::registerTypes()
{
    qRegisterMetaType<SimpleSInt64Message>();
    qRegisterMetaType<SimpleSInt64MessageRepeated>();
}

SimpleSInt64Message::SimpleSInt64Message()
    : QProtobufMessage(&SimpleSInt64Message::staticMetaObject),
      dptr(new SimpleSInt64Message_QtProtobufData)
{
}

SimpleSInt64Message::SimpleSInt64Message(const SimpleSInt64Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleSInt64Message &SimpleSInt64Message::operator =(const SimpleSInt64Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleSInt64Message::SimpleSInt64Message(SimpleSInt64Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleSInt64Message &SimpleSInt64Message::operator =(SimpleSInt64Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleSInt64Message::operator ==(const SimpleSInt64Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleSInt64Message::operator !=(const SimpleSInt64Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::sint64 SimpleSInt64Message::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleSInt64Message::setTestFieldInt(const QtProtobuf::sint64 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleUInt64Message_QtProtobufData : public QSharedData
{
public:
    SimpleUInt64Message_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0)
    {
    }

    SimpleUInt64Message_QtProtobufData(const SimpleUInt64Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt)
    {
    }

    QtProtobuf::uint64 m_testFieldInt;
};

SimpleUInt64Message::~SimpleUInt64Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleUInt64Message_uint_data;
    const char qt_protobuf_SimpleUInt64Message_char_data[60];
} qt_protobuf_SimpleUInt64Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        45, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        46, /* = testFieldInt */
        59, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        // Property indices:
        0, /* = testFieldInt */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleUInt64Message\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleUInt64Message::propertyOrdering = {
    &qt_protobuf_SimpleUInt64Message_metadata.data
};

void SimpleUInt64Message::registerTypes()
{
    qRegisterMetaType<SimpleUInt64Message>();
    qRegisterMetaType<SimpleUInt64MessageRepeated>();
}

SimpleUInt64Message::SimpleUInt64Message()
    : QProtobufMessage(&SimpleUInt64Message::staticMetaObject),
      dptr(new SimpleUInt64Message_QtProtobufData)
{
}

SimpleUInt64Message::SimpleUInt64Message(const SimpleUInt64Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleUInt64Message &SimpleUInt64Message::operator =(const SimpleUInt64Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleUInt64Message::SimpleUInt64Message(SimpleUInt64Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleUInt64Message &SimpleUInt64Message::operator =(SimpleUInt64Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleUInt64Message::operator ==(const SimpleUInt64Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt;
}

bool SimpleUInt64Message::operator !=(const SimpleUInt64Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::uint64 SimpleUInt64Message::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

void SimpleUInt64Message::setTestFieldInt(const QtProtobuf::uint64 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}


class SimpleStringMessage_QtProtobufData : public QSharedData
{
public:
    SimpleStringMessage_QtProtobufData()
        : QSharedData()
    {
    }

    SimpleStringMessage_QtProtobufData(const SimpleStringMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldString(other.m_testFieldString)
    {
    }

    QString m_testFieldString;
};

SimpleStringMessage::~SimpleStringMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleStringMessage_uint_data;
    const char qt_protobuf_SimpleStringMessage_char_data[63];
} qt_protobuf_SimpleStringMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        45, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        46, /* = testFieldString */
        62, /* = end-of-string-marker */
        // Field numbers:
        6, /* = testFieldString */
        // Property indices:
        0, /* = testFieldString */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldString */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleStringMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldString\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleStringMessage::propertyOrdering = {
    &qt_protobuf_SimpleStringMessage_metadata.data
};

void SimpleStringMessage::registerTypes()
{
    qRegisterMetaType<SimpleStringMessage>();
    qRegisterMetaType<SimpleStringMessageRepeated>();
}

SimpleStringMessage::SimpleStringMessage()
    : QProtobufMessage(&SimpleStringMessage::staticMetaObject),
      dptr(new SimpleStringMessage_QtProtobufData)
{
}

SimpleStringMessage::SimpleStringMessage(const SimpleStringMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleStringMessage &SimpleStringMessage::operator =(const SimpleStringMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleStringMessage::SimpleStringMessage(SimpleStringMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleStringMessage &SimpleStringMessage::operator =(SimpleStringMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleStringMessage::operator ==(const SimpleStringMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldString == other.dptr->m_testFieldString;
}

bool SimpleStringMessage::operator !=(const SimpleStringMessage &other) const
{
    return !this->operator ==(other);
}

QString SimpleStringMessage::testFieldString() const
{
    return dptr->m_testFieldString;
}

void SimpleStringMessage::setTestFieldString(const QString &testFieldString)
{
    if (dptr->m_testFieldString != testFieldString) {
        dptr.detach();
        dptr->m_testFieldString = testFieldString;
    }
}


class SimpleFloatMessage_QtProtobufData : public QSharedData
{
public:
    SimpleFloatMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldFloat(0.0)
    {
    }

    SimpleFloatMessage_QtProtobufData(const SimpleFloatMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldFloat(other.m_testFieldFloat)
    {
    }

    float m_testFieldFloat;
};

SimpleFloatMessage::~SimpleFloatMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleFloatMessage_uint_data;
    const char qt_protobuf_SimpleFloatMessage_char_data[61];
} qt_protobuf_SimpleFloatMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        44, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        45, /* = testFieldFloat */
        60, /* = end-of-string-marker */
        // Field numbers:
        7, /* = testFieldFloat */
        // Property indices:
        0, /* = testFieldFloat */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldFloat */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleFloatMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldFloat\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleFloatMessage::propertyOrdering = {
    &qt_protobuf_SimpleFloatMessage_metadata.data
};

void SimpleFloatMessage::registerTypes()
{
    qRegisterMetaType<SimpleFloatMessage>();
    qRegisterMetaType<SimpleFloatMessageRepeated>();
}

SimpleFloatMessage::SimpleFloatMessage()
    : QProtobufMessage(&SimpleFloatMessage::staticMetaObject),
      dptr(new SimpleFloatMessage_QtProtobufData)
{
}

SimpleFloatMessage::SimpleFloatMessage(const SimpleFloatMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleFloatMessage &SimpleFloatMessage::operator =(const SimpleFloatMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleFloatMessage::SimpleFloatMessage(SimpleFloatMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleFloatMessage &SimpleFloatMessage::operator =(SimpleFloatMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleFloatMessage::operator ==(const SimpleFloatMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldFloat == other.dptr->m_testFieldFloat;
}

bool SimpleFloatMessage::operator !=(const SimpleFloatMessage &other) const
{
    return !this->operator ==(other);
}

float SimpleFloatMessage::testFieldFloat() const
{
    return dptr->m_testFieldFloat;
}

void SimpleFloatMessage::setTestFieldFloat(const float &testFieldFloat)
{
    if (dptr->m_testFieldFloat != testFieldFloat ||
        std::signbit(dptr->m_testFieldFloat) != std::signbit(testFieldFloat)) {
        dptr.detach();
        dptr->m_testFieldFloat = testFieldFloat;
    }
}


class SimpleDoubleMessage_QtProtobufData : public QSharedData
{
public:
    SimpleDoubleMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldDouble(0.0)
    {
    }

    SimpleDoubleMessage_QtProtobufData(const SimpleDoubleMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldDouble(other.m_testFieldDouble)
    {
    }

    double m_testFieldDouble;
};

SimpleDoubleMessage::~SimpleDoubleMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleDoubleMessage_uint_data;
    const char qt_protobuf_SimpleDoubleMessage_char_data[63];
} qt_protobuf_SimpleDoubleMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        45, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        46, /* = testFieldDouble */
        62, /* = end-of-string-marker */
        // Field numbers:
        8, /* = testFieldDouble */
        // Property indices:
        0, /* = testFieldDouble */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldDouble */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleDoubleMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldDouble\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleDoubleMessage::propertyOrdering = {
    &qt_protobuf_SimpleDoubleMessage_metadata.data
};

void SimpleDoubleMessage::registerTypes()
{
    qRegisterMetaType<SimpleDoubleMessage>();
    qRegisterMetaType<SimpleDoubleMessageRepeated>();
}

SimpleDoubleMessage::SimpleDoubleMessage()
    : QProtobufMessage(&SimpleDoubleMessage::staticMetaObject),
      dptr(new SimpleDoubleMessage_QtProtobufData)
{
}

SimpleDoubleMessage::SimpleDoubleMessage(const SimpleDoubleMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleDoubleMessage &SimpleDoubleMessage::operator =(const SimpleDoubleMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleDoubleMessage::SimpleDoubleMessage(SimpleDoubleMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleDoubleMessage &SimpleDoubleMessage::operator =(SimpleDoubleMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleDoubleMessage::operator ==(const SimpleDoubleMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldDouble == other.dptr->m_testFieldDouble;
}

bool SimpleDoubleMessage::operator !=(const SimpleDoubleMessage &other) const
{
    return !this->operator ==(other);
}

double SimpleDoubleMessage::testFieldDouble() const
{
    return dptr->m_testFieldDouble;
}

void SimpleDoubleMessage::setTestFieldDouble(const double &testFieldDouble)
{
    if (dptr->m_testFieldDouble != testFieldDouble ||
        std::signbit(dptr->m_testFieldDouble) != std::signbit(testFieldDouble)) {
        dptr.detach();
        dptr->m_testFieldDouble = testFieldDouble;
    }
}


class SimpleBytesMessage_QtProtobufData : public QSharedData
{
public:
    SimpleBytesMessage_QtProtobufData()
        : QSharedData()
    {
    }

    SimpleBytesMessage_QtProtobufData(const SimpleBytesMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldBytes(other.m_testFieldBytes)
    {
    }

    QByteArray m_testFieldBytes;
};

SimpleBytesMessage::~SimpleBytesMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleBytesMessage_uint_data;
    const char qt_protobuf_SimpleBytesMessage_char_data[61];
} qt_protobuf_SimpleBytesMessage_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        44, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        45, /* = testFieldBytes */
        60, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldBytes */
        // Property indices:
        0, /* = testFieldBytes */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldBytes */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleBytesMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldBytes\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleBytesMessage::propertyOrdering = {
    &qt_protobuf_SimpleBytesMessage_metadata.data
};

void SimpleBytesMessage::registerTypes()
{
    qRegisterMetaType<SimpleBytesMessage>();
    qRegisterMetaType<SimpleBytesMessageRepeated>();
}

SimpleBytesMessage::SimpleBytesMessage()
    : QProtobufMessage(&SimpleBytesMessage::staticMetaObject),
      dptr(new SimpleBytesMessage_QtProtobufData)
{
}

SimpleBytesMessage::SimpleBytesMessage(const SimpleBytesMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleBytesMessage &SimpleBytesMessage::operator =(const SimpleBytesMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleBytesMessage::SimpleBytesMessage(SimpleBytesMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleBytesMessage &SimpleBytesMessage::operator =(SimpleBytesMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleBytesMessage::operator ==(const SimpleBytesMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldBytes == other.dptr->m_testFieldBytes;
}

bool SimpleBytesMessage::operator !=(const SimpleBytesMessage &other) const
{
    return !this->operator ==(other);
}

QByteArray SimpleBytesMessage::testFieldBytes() const
{
    return dptr->m_testFieldBytes;
}

void SimpleBytesMessage::setTestFieldBytes(const QByteArray &testFieldBytes)
{
    if (dptr->m_testFieldBytes != testFieldBytes) {
        dptr.detach();
        dptr->m_testFieldBytes = testFieldBytes;
    }
}


class SimpleFixedInt32Message_QtProtobufData : public QSharedData
{
public:
    SimpleFixedInt32Message_QtProtobufData()
        : QSharedData(),
          m_testFieldFixedInt32(0)
    {
    }

    SimpleFixedInt32Message_QtProtobufData(const SimpleFixedInt32Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldFixedInt32(other.m_testFieldFixedInt32)
    {
    }

    QtProtobuf::fixed32 m_testFieldFixedInt32;
};

SimpleFixedInt32Message::~SimpleFixedInt32Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleFixedInt32Message_uint_data;
    const char qt_protobuf_SimpleFixedInt32Message_char_data[71];
} qt_protobuf_SimpleFixedInt32Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        49, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        50, /* = testFieldFixedInt32 */
        70, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldFixedInt32 */
        // Property indices:
        0, /* = testFieldFixedInt32 */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldFixedInt32 */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleFixedInt32Message\0" /* = full message name */
    /* field char_data: */
    "testFieldFixedInt32\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleFixedInt32Message::propertyOrdering = {
    &qt_protobuf_SimpleFixedInt32Message_metadata.data
};

void SimpleFixedInt32Message::registerTypes()
{
    qRegisterMetaType<SimpleFixedInt32Message>();
    qRegisterMetaType<SimpleFixedInt32MessageRepeated>();
}

SimpleFixedInt32Message::SimpleFixedInt32Message()
    : QProtobufMessage(&SimpleFixedInt32Message::staticMetaObject),
      dptr(new SimpleFixedInt32Message_QtProtobufData)
{
}

SimpleFixedInt32Message::SimpleFixedInt32Message(const SimpleFixedInt32Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleFixedInt32Message &SimpleFixedInt32Message::operator =(const SimpleFixedInt32Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleFixedInt32Message::SimpleFixedInt32Message(SimpleFixedInt32Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleFixedInt32Message &SimpleFixedInt32Message::operator =(SimpleFixedInt32Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleFixedInt32Message::operator ==(const SimpleFixedInt32Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldFixedInt32 == other.dptr->m_testFieldFixedInt32;
}

bool SimpleFixedInt32Message::operator !=(const SimpleFixedInt32Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::fixed32 SimpleFixedInt32Message::testFieldFixedInt32() const
{
    return dptr->m_testFieldFixedInt32;
}

void SimpleFixedInt32Message::setTestFieldFixedInt32(const QtProtobuf::fixed32 &testFieldFixedInt32)
{
    if (dptr->m_testFieldFixedInt32 != testFieldFixedInt32) {
        dptr.detach();
        dptr->m_testFieldFixedInt32 = testFieldFixedInt32;
    }
}


class SimpleFixedInt64Message_QtProtobufData : public QSharedData
{
public:
    SimpleFixedInt64Message_QtProtobufData()
        : QSharedData(),
          m_testFieldFixedInt64(0)
    {
    }

    SimpleFixedInt64Message_QtProtobufData(const SimpleFixedInt64Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldFixedInt64(other.m_testFieldFixedInt64)
    {
    }

    QtProtobuf::fixed64 m_testFieldFixedInt64;
};

SimpleFixedInt64Message::~SimpleFixedInt64Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleFixedInt64Message_uint_data;
    const char qt_protobuf_SimpleFixedInt64Message_char_data[71];
} qt_protobuf_SimpleFixedInt64Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        49, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        50, /* = testFieldFixedInt64 */
        70, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldFixedInt64 */
        // Property indices:
        0, /* = testFieldFixedInt64 */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldFixedInt64 */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleFixedInt64Message\0" /* = full message name */
    /* field char_data: */
    "testFieldFixedInt64\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleFixedInt64Message::propertyOrdering = {
    &qt_protobuf_SimpleFixedInt64Message_metadata.data
};

void SimpleFixedInt64Message::registerTypes()
{
    qRegisterMetaType<SimpleFixedInt64Message>();
    qRegisterMetaType<SimpleFixedInt64MessageRepeated>();
}

SimpleFixedInt64Message::SimpleFixedInt64Message()
    : QProtobufMessage(&SimpleFixedInt64Message::staticMetaObject),
      dptr(new SimpleFixedInt64Message_QtProtobufData)
{
}

SimpleFixedInt64Message::SimpleFixedInt64Message(const SimpleFixedInt64Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleFixedInt64Message &SimpleFixedInt64Message::operator =(const SimpleFixedInt64Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleFixedInt64Message::SimpleFixedInt64Message(SimpleFixedInt64Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleFixedInt64Message &SimpleFixedInt64Message::operator =(SimpleFixedInt64Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleFixedInt64Message::operator ==(const SimpleFixedInt64Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldFixedInt64 == other.dptr->m_testFieldFixedInt64;
}

bool SimpleFixedInt64Message::operator !=(const SimpleFixedInt64Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::fixed64 SimpleFixedInt64Message::testFieldFixedInt64() const
{
    return dptr->m_testFieldFixedInt64;
}

void SimpleFixedInt64Message::setTestFieldFixedInt64(const QtProtobuf::fixed64 &testFieldFixedInt64)
{
    if (dptr->m_testFieldFixedInt64 != testFieldFixedInt64) {
        dptr.detach();
        dptr->m_testFieldFixedInt64 = testFieldFixedInt64;
    }
}


class SimpleSFixedInt32Message_QtProtobufData : public QSharedData
{
public:
    SimpleSFixedInt32Message_QtProtobufData()
        : QSharedData()
    {
    }

    SimpleSFixedInt32Message_QtProtobufData(const SimpleSFixedInt32Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldFixedInt32(other.m_testFieldFixedInt32)
    {
    }

    QtProtobuf::sfixed32 m_testFieldFixedInt32;
};

SimpleSFixedInt32Message::~SimpleSFixedInt32Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleSFixedInt32Message_uint_data;
    const char qt_protobuf_SimpleSFixedInt32Message_char_data[72];
} qt_protobuf_SimpleSFixedInt32Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        50, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        51, /* = testFieldFixedInt32 */
        71, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldFixedInt32 */
        // Property indices:
        0, /* = testFieldFixedInt32 */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldFixedInt32 */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleSFixedInt32Message\0" /* = full message name */
    /* field char_data: */
    "testFieldFixedInt32\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleSFixedInt32Message::propertyOrdering = {
    &qt_protobuf_SimpleSFixedInt32Message_metadata.data
};

void SimpleSFixedInt32Message::registerTypes()
{
    qRegisterMetaType<SimpleSFixedInt32Message>();
    qRegisterMetaType<SimpleSFixedInt32MessageRepeated>();
}

SimpleSFixedInt32Message::SimpleSFixedInt32Message()
    : QProtobufMessage(&SimpleSFixedInt32Message::staticMetaObject),
      dptr(new SimpleSFixedInt32Message_QtProtobufData)
{
}

SimpleSFixedInt32Message::SimpleSFixedInt32Message(const SimpleSFixedInt32Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleSFixedInt32Message &SimpleSFixedInt32Message::operator =(const SimpleSFixedInt32Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleSFixedInt32Message::SimpleSFixedInt32Message(SimpleSFixedInt32Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleSFixedInt32Message &SimpleSFixedInt32Message::operator =(SimpleSFixedInt32Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleSFixedInt32Message::operator ==(const SimpleSFixedInt32Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldFixedInt32 == other.dptr->m_testFieldFixedInt32;
}

bool SimpleSFixedInt32Message::operator !=(const SimpleSFixedInt32Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::sfixed32 SimpleSFixedInt32Message::testFieldFixedInt32() const
{
    return dptr->m_testFieldFixedInt32;
}

void SimpleSFixedInt32Message::setTestFieldFixedInt32(const QtProtobuf::sfixed32 &testFieldFixedInt32)
{
    if (dptr->m_testFieldFixedInt32 != testFieldFixedInt32) {
        dptr.detach();
        dptr->m_testFieldFixedInt32 = testFieldFixedInt32;
    }
}


class SimpleSFixedInt64Message_QtProtobufData : public QSharedData
{
public:
    SimpleSFixedInt64Message_QtProtobufData()
        : QSharedData()
    {
    }

    SimpleSFixedInt64Message_QtProtobufData(const SimpleSFixedInt64Message_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldFixedInt64(other.m_testFieldFixedInt64)
    {
    }

    QtProtobuf::sfixed64 m_testFieldFixedInt64;
};

SimpleSFixedInt64Message::~SimpleSFixedInt64Message() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 5> qt_protobuf_SimpleSFixedInt64Message_uint_data;
    const char qt_protobuf_SimpleSFixedInt64Message_char_data[72];
} qt_protobuf_SimpleSFixedInt64Message_metadata {
    // data
    {
        0, /* = version */
        1, /* = num fields */
        2, /* = field number offset */
        3, /* = property index offset */
        4, /* = field flags offset */
        50, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        51, /* = testFieldFixedInt64 */
        71, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldFixedInt64 */
        // Property indices:
        0, /* = testFieldFixedInt64 */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldFixedInt64 */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.SimpleSFixedInt64Message\0" /* = full message name */
    /* field char_data: */
    "testFieldFixedInt64\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering SimpleSFixedInt64Message::propertyOrdering = {
    &qt_protobuf_SimpleSFixedInt64Message_metadata.data
};

void SimpleSFixedInt64Message::registerTypes()
{
    qRegisterMetaType<SimpleSFixedInt64Message>();
    qRegisterMetaType<SimpleSFixedInt64MessageRepeated>();
}

SimpleSFixedInt64Message::SimpleSFixedInt64Message()
    : QProtobufMessage(&SimpleSFixedInt64Message::staticMetaObject),
      dptr(new SimpleSFixedInt64Message_QtProtobufData)
{
}

SimpleSFixedInt64Message::SimpleSFixedInt64Message(const SimpleSFixedInt64Message &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
SimpleSFixedInt64Message &SimpleSFixedInt64Message::operator =(const SimpleSFixedInt64Message &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
SimpleSFixedInt64Message::SimpleSFixedInt64Message(SimpleSFixedInt64Message &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
SimpleSFixedInt64Message &SimpleSFixedInt64Message::operator =(SimpleSFixedInt64Message &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool SimpleSFixedInt64Message::operator ==(const SimpleSFixedInt64Message &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldFixedInt64 == other.dptr->m_testFieldFixedInt64;
}

bool SimpleSFixedInt64Message::operator !=(const SimpleSFixedInt64Message &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::sfixed64 SimpleSFixedInt64Message::testFieldFixedInt64() const
{
    return dptr->m_testFieldFixedInt64;
}

void SimpleSFixedInt64Message::setTestFieldFixedInt64(const QtProtobuf::sfixed64 &testFieldFixedInt64)
{
    if (dptr->m_testFieldFixedInt64 != testFieldFixedInt64) {
        dptr.detach();
        dptr->m_testFieldFixedInt64 = testFieldFixedInt64;
    }
}


class ComplexMessage_QtProtobufData : public QSharedData
{
public:
    ComplexMessage_QtProtobufData()
        : QSharedData(),
          m_testFieldInt(0),
          m_testComplexField(nullptr)
    {
    }

    ComplexMessage_QtProtobufData(const ComplexMessage_QtProtobufData &other)
        : QSharedData(other),
          m_testFieldInt(other.m_testFieldInt),
          m_testComplexField(other.m_testComplexField
                                               ? new SimpleStringMessage(*other.m_testComplexField)
                                               : nullptr)
    {
    }

    QtProtobuf::int32 m_testFieldInt;
    QtProtobufPrivate::QProtobufLazyMessagePointer<SimpleStringMessage> m_testComplexField;
};

ComplexMessage::~ComplexMessage() = default;

static constexpr struct {
    QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
    const std::array<uint, 9> qt_protobuf_ComplexMessage_uint_data;
    const char qt_protobuf_ComplexMessage_char_data[72];
} qt_protobuf_ComplexMessage_metadata {
    // data
    {
        0, /* = version */
        2, /* = num fields */
        3, /* = field number offset */
        5, /* = property index offset */
        7, /* = field flags offset */
        40, /* = message full name length */
    },
    // uint_data
    {
        // JSON name offsets:
        41, /* = testFieldInt */
        54, /* = testComplexField */
        71, /* = end-of-string-marker */
        // Field numbers:
        1, /* = testFieldInt */
        2, /* = testComplexField */
        // Property indices:
        0, /* = testFieldInt */
        1, /* = testComplexField */
        // Field flags:
        QtProtobufPrivate::NoFlags, /* = testFieldInt */
        QtProtobufPrivate::NoFlags, /* = testComplexField */
    },
    // char_data
    /* metadata char_data: */
    "qtprotobufnamespace.tests.ComplexMessage\0" /* = full message name */
    /* field char_data: */
    "testFieldInt\0testComplexField\0"
};

const QtProtobufPrivate::QProtobufPropertyOrdering ComplexMessage::propertyOrdering = {
    &qt_protobuf_ComplexMessage_metadata.data
};

void ComplexMessage::registerTypes()
{
    qRegisterMetaType<ComplexMessage>();
    qRegisterMetaType<ComplexMessageRepeated>();
}

ComplexMessage::ComplexMessage()
    : QProtobufMessage(&ComplexMessage::staticMetaObject),
      dptr(new ComplexMessage_QtProtobufData)
{
}

ComplexMessage::ComplexMessage(const ComplexMessage &other)
    : QProtobufMessage(other),
      dptr(other.dptr)
{
}
ComplexMessage &ComplexMessage::operator =(const ComplexMessage &other)
{
    QProtobufMessage::operator=(other);
    dptr = other.dptr;
    return *this;
}
ComplexMessage::ComplexMessage(ComplexMessage &&other) noexcept
    : QProtobufMessage(std::move(other)),
      dptr(std::move(other.dptr))
{
}
ComplexMessage &ComplexMessage::operator =(ComplexMessage &&other) noexcept
{
    QProtobufMessage::operator=(std::move(other));
    dptr.swap(other.dptr);
    return *this;
}
bool ComplexMessage::operator ==(const ComplexMessage &other) const
{
    return QProtobufMessage::isEqual(*this, other)
        && dptr->m_testFieldInt == other.dptr->m_testFieldInt
        && (dptr->m_testComplexField == other.dptr->m_testComplexField
            || *dptr->m_testComplexField == *other.dptr->m_testComplexField);
}

bool ComplexMessage::operator !=(const ComplexMessage &other) const
{
    return !this->operator ==(other);
}

QtProtobuf::int32 ComplexMessage::testFieldInt() const
{
    return dptr->m_testFieldInt;
}

SimpleStringMessage *ComplexMessage::testComplexField_p() const
{
    return dptr->m_testComplexField ? dptr->m_testComplexField.get() : nullptr;
}

bool ComplexMessage::hasTestComplexField() const
{
    return dptr->m_testComplexField.operator bool();
}

SimpleStringMessage &ComplexMessage::testComplexField() const
{
    return *dptr->m_testComplexField;
}

void ComplexMessage::clearTestComplexField()
{
    if (dptr->m_testComplexField) {
        dptr.detach();
        dptr->m_testComplexField.reset();
    }
}

void ComplexMessage::setTestFieldInt(const QtProtobuf::int32 &testFieldInt)
{
    if (dptr->m_testFieldInt != testFieldInt) {
        dptr.detach();
        dptr->m_testFieldInt = testFieldInt;
    }
}

void ComplexMessage::setTestComplexField_p(SimpleStringMessage *testComplexField)
{
    if (dptr->m_testComplexField.get() != testComplexField) {
        dptr.detach();
        dptr->m_testComplexField.reset(testComplexField);
    }
}

void ComplexMessage::setTestComplexField(const SimpleStringMessage &testComplexField)
{
    if (*dptr->m_testComplexField != testComplexField) {
        dptr.detach();
        *dptr->m_testComplexField = testComplexField;
    }
}

} // namespace qtprotobufnamespace::tests

#include "moc_basicmessages.qpb.cpp"
