Revision control

+ /* This file is autogenerated. DO NOT CHANGE. All changes will be lost */
+
+
+ #include "protoc2-group-fields.qpb.h"
+
+ #include <QtProtobuf/qprotobufregistration.h>
+
+ #include <cmath>
+
+ namespace GroupFieldMessage_QtProtobufNested {
+
+ class SkippedGroup_QtProtobufData : public QSharedData
+ {
+ public:
+ SkippedGroup_QtProtobufData()
+ : QSharedData()
+ {
+ }
+
+ SkippedGroup_QtProtobufData(const SkippedGroup_QtProtobufData &other)
+ : QSharedData(other),
+ m_groupMember(other.m_groupMember)
+ {
+ }
+
+ std::optional<bool> m_groupMember;
+ };
+
+ SkippedGroup::~SkippedGroup() = default;
+
+ static constexpr struct {
+ QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
+ const std::array<uint, 5> qt_protobuf_SkippedGroup_uint_data;
+ const char qt_protobuf_SkippedGroup_char_data[44];
+ } qt_protobuf_SkippedGroup_metadata {
+ // data
+ {
+ 0, /* = version */
+ 1, /* = num fields */
+ 2, /* = field number offset */
+ 3, /* = property index offset */
+ 4, /* = field flags offset */
+ 30, /* = message full name length */
+ },
+ // uint_data
+ {
+ // JSON name offsets:
+ 31, /* = groupMember */
+ 43, /* = end-of-string-marker */
+ // Field numbers:
+ 3, /* = groupMember */
+ // Property indices:
+ 0, /* = groupMember */
+ // Field flags:
+ uint(QtProtobufPrivate::FieldFlag::Optional | QtProtobufPrivate::FieldFlag::ExplicitPresence), /* = groupMember */
+ },
+ // char_data
+ /* metadata char_data: */
+ "GroupFieldMessage.SkippedGroup\0" /* = full message name */
+ /* field char_data: */
+ "groupMember\0"
+ };
+
+ const QtProtobufPrivate::QProtobufPropertyOrdering SkippedGroup::staticPropertyOrdering = {
+ &qt_protobuf_SkippedGroup_metadata.data
+ };
+
+ void SkippedGroup::registerTypes()
+ {
+ qRegisterMetaType<SkippedGroup>();
+ qRegisterMetaType<QList<SkippedGroup>>();
+ }
+
+ SkippedGroup::SkippedGroup()
+ : QProtobufMessage(&SkippedGroup::staticMetaObject, &SkippedGroup::staticPropertyOrdering),
+ dptr(new SkippedGroup_QtProtobufData)
+ {
+ }
+
+ SkippedGroup::SkippedGroup(const SkippedGroup &other)
+ = default;
+ SkippedGroup &SkippedGroup::operator =(const SkippedGroup &other)
+ {
+ SkippedGroup temp(other);
+ swap(temp);
+ return *this;
+ }
+ SkippedGroup::SkippedGroup(SkippedGroup &&other) noexcept
+ = default;
+ SkippedGroup::operator QVariant() const
+ {
+ return QVariant::fromValue(*this);
+ }
+ bool comparesEqual(const SkippedGroup &lhs, const SkippedGroup &rhs) noexcept
+ {
+ return operator ==(static_cast<const QProtobufMessage&>(lhs),
+ static_cast<const QProtobufMessage&>(rhs))
+ && lhs.dptr->m_groupMember == rhs.dptr->m_groupMember;
+ }
+
+ bool SkippedGroup::groupMember_p() const
+ {
+ return dptr->m_groupMember ?
+ dptr->m_groupMember.value() : bool();
+ }
+
+ bool SkippedGroup::hasGroupMember() const
+ {
+ return dptr->m_groupMember.has_value();
+ }
+ bool SkippedGroup::groupMember() const
+ {
+ Q_ASSERT(dptr->m_groupMember.has_value());
+ return dptr->m_groupMember.value();
+ }
+
+ void SkippedGroup::setGroupMember(bool groupMember)
+ {
+ if (!dptr->m_groupMember || dptr->m_groupMember.value() != groupMember) {
+ dptr.detach();
+ dptr->m_groupMember = groupMember;
+ }
+ }
+
+ void SkippedGroup::setGroupMember_p(bool groupMember)
+ {
+ if (!dptr->m_groupMember || dptr->m_groupMember != groupMember) {
+ dptr.detach();
+ dptr->m_groupMember = groupMember;
+ }
+ }
+
+ void SkippedGroup::clearGroupMember()
+ {
+ if (dptr->m_groupMember.has_value()) {
+ dptr.detach();
+ dptr->m_groupMember.reset();
+ }
+ }
+ } // namespace GroupFieldMessage_QtProtobufNested
+
+ class GroupFieldMessage_QtProtobufData : public QSharedData
+ {
+ public:
+ GroupFieldMessage_QtProtobufData()
+ : QSharedData()
+ {
+ }
+
+ GroupFieldMessage_QtProtobufData(const GroupFieldMessage_QtProtobufData &other)
+ : QSharedData(other),
+ m_beforeGroup(other.m_beforeGroup),
+ m_afterGroup(other.m_afterGroup)
+ {
+ }
+
+ std::optional<bool> m_beforeGroup;
+ std::optional<bool> m_afterGroup;
+ };
+
+ GroupFieldMessage::~GroupFieldMessage() = default;
+
+ static constexpr struct {
+ QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
+ const std::array<uint, 9> qt_protobuf_GroupFieldMessage_uint_data;
+ const char qt_protobuf_GroupFieldMessage_char_data[42];
+ } qt_protobuf_GroupFieldMessage_metadata {
+ // data
+ {
+ 0, /* = version */
+ 2, /* = num fields */
+ 3, /* = field number offset */
+ 5, /* = property index offset */
+ 7, /* = field flags offset */
+ 17, /* = message full name length */
+ },
+ // uint_data
+ {
+ // JSON name offsets:
+ 18, /* = beforeGroup */
+ 30, /* = afterGroup */
+ 41, /* = end-of-string-marker */
+ // Field numbers:
+ 1, /* = beforeGroup */
+ 4, /* = afterGroup */
+ // Property indices:
+ 0, /* = beforeGroup */
+ 2, /* = afterGroup */
+ // Field flags:
+ uint(QtProtobufPrivate::FieldFlag::Optional | QtProtobufPrivate::FieldFlag::ExplicitPresence), /* = beforeGroup */
+ uint(QtProtobufPrivate::FieldFlag::Optional | QtProtobufPrivate::FieldFlag::ExplicitPresence), /* = afterGroup */
+ },
+ // char_data
+ /* metadata char_data: */
+ "GroupFieldMessage\0" /* = full message name */
+ /* field char_data: */
+ "beforeGroup\0afterGroup\0"
+ };
+
+ const QtProtobufPrivate::QProtobufPropertyOrdering GroupFieldMessage::staticPropertyOrdering = {
+ &qt_protobuf_GroupFieldMessage_metadata.data
+ };
+
+ void GroupFieldMessage::registerTypes()
+ {
+ qRegisterMetaType<GroupFieldMessage>();
+ qRegisterMetaType<QList<GroupFieldMessage>>();
+ }
+
+ GroupFieldMessage::GroupFieldMessage()
+ : QProtobufMessage(&GroupFieldMessage::staticMetaObject, &GroupFieldMessage::staticPropertyOrdering),
+ dptr(new GroupFieldMessage_QtProtobufData)
+ {
+ }
+
+ GroupFieldMessage::GroupFieldMessage(const GroupFieldMessage &other)
+ = default;
+ GroupFieldMessage &GroupFieldMessage::operator =(const GroupFieldMessage &other)
+ {
+ GroupFieldMessage temp(other);
+ swap(temp);
+ return *this;
+ }
+ GroupFieldMessage::GroupFieldMessage(GroupFieldMessage &&other) noexcept
+ = default;
+ GroupFieldMessage::operator QVariant() const
+ {
+ return QVariant::fromValue(*this);
+ }
+ bool comparesEqual(const GroupFieldMessage &lhs, const GroupFieldMessage &rhs) noexcept
+ {
+ return operator ==(static_cast<const QProtobufMessage&>(lhs),
+ static_cast<const QProtobufMessage&>(rhs))
+ && lhs.dptr->m_beforeGroup == rhs.dptr->m_beforeGroup
+ && lhs.dptr->m_afterGroup == rhs.dptr->m_afterGroup;
+ }
+
+ bool GroupFieldMessage::beforeGroup_p() const
+ {
+ return dptr->m_beforeGroup ?
+ dptr->m_beforeGroup.value() : bool();
+ }
+
+ bool GroupFieldMessage::hasBeforeGroup() const
+ {
+ return dptr->m_beforeGroup.has_value();
+ }
+ bool GroupFieldMessage::beforeGroup() const
+ {
+ Q_ASSERT(dptr->m_beforeGroup.has_value());
+ return dptr->m_beforeGroup.value();
+ }
+
+ bool GroupFieldMessage::afterGroup_p() const
+ {
+ return dptr->m_afterGroup ?
+ dptr->m_afterGroup.value() : bool();
+ }
+
+ bool GroupFieldMessage::hasAfterGroup() const
+ {
+ return dptr->m_afterGroup.has_value();
+ }
+ bool GroupFieldMessage::afterGroup() const
+ {
+ Q_ASSERT(dptr->m_afterGroup.has_value());
+ return dptr->m_afterGroup.value();
+ }
+
+ void GroupFieldMessage::setBeforeGroup(bool beforeGroup)
+ {
+ if (!dptr->m_beforeGroup || dptr->m_beforeGroup.value() != beforeGroup) {
+ dptr.detach();
+ dptr->m_beforeGroup = beforeGroup;
+ }
+ }
+
+ void GroupFieldMessage::setBeforeGroup_p(bool beforeGroup)
+ {
+ if (!dptr->m_beforeGroup || dptr->m_beforeGroup != beforeGroup) {
+ dptr.detach();
+ dptr->m_beforeGroup = beforeGroup;
+ }
+ }
+
+ void GroupFieldMessage::clearBeforeGroup()
+ {
+ if (dptr->m_beforeGroup.has_value()) {
+ dptr.detach();
+ dptr->m_beforeGroup.reset();
+ }
+ }
+ void GroupFieldMessage::setAfterGroup(bool afterGroup)
+ {
+ if (!dptr->m_afterGroup || dptr->m_afterGroup.value() != afterGroup) {
+ dptr.detach();
+ dptr->m_afterGroup = afterGroup;
+ }
+ }
+
+ void GroupFieldMessage::setAfterGroup_p(bool afterGroup)
+ {
+ if (!dptr->m_afterGroup || dptr->m_afterGroup != afterGroup) {
+ dptr.detach();
+ dptr->m_afterGroup = afterGroup;
+ }
+ }
+
+ void GroupFieldMessage::clearAfterGroup()
+ {
+ if (dptr->m_afterGroup.has_value()) {
+ dptr.detach();
+ dptr->m_afterGroup.reset();
+ }
+ }
+
+ #include "moc_protoc2-group-fields.qpb.cpp"