CHG: removed the sourcetype out of the basic message
This commit is contained in:
@@ -181,15 +181,12 @@ class Message final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kSenderUUIDFieldNumber = 4,
|
||||
kPayloadFieldNumber = 7,
|
||||
kSenderUUIDFieldNumber = 3,
|
||||
kPayloadFieldNumber = 5,
|
||||
kTopicFieldNumber = 1,
|
||||
kMsgTypeFieldNumber = 2,
|
||||
kSourceTypeFieldNumber = 3,
|
||||
kSourceIDFieldNumber = 5,
|
||||
kParentIDFieldNumber = 6,
|
||||
};
|
||||
// string senderUUID = 4;
|
||||
// string senderUUID = 3;
|
||||
void clear_senderuuid();
|
||||
const std::string& senderuuid() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
@@ -203,7 +200,7 @@ class Message final :
|
||||
std::string* _internal_mutable_senderuuid();
|
||||
public:
|
||||
|
||||
// .google.protobuf.Any payload = 7;
|
||||
// .google.protobuf.Any payload = 5;
|
||||
bool has_payload() const;
|
||||
private:
|
||||
bool _internal_has_payload() const;
|
||||
@@ -239,41 +236,6 @@ class Message final :
|
||||
void _internal_set_msgtype(uint32_t value);
|
||||
public:
|
||||
|
||||
// uint32 sourceType = 3;
|
||||
void clear_sourcetype();
|
||||
uint32_t sourcetype() const;
|
||||
void set_sourcetype(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_sourcetype() const;
|
||||
void _internal_set_sourcetype(uint32_t value);
|
||||
public:
|
||||
|
||||
// optional uint32 sourceID = 5;
|
||||
bool has_sourceid() const;
|
||||
private:
|
||||
bool _internal_has_sourceid() const;
|
||||
public:
|
||||
void clear_sourceid();
|
||||
uint32_t sourceid() const;
|
||||
void set_sourceid(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_sourceid() const;
|
||||
void _internal_set_sourceid(uint32_t value);
|
||||
public:
|
||||
|
||||
// optional uint32 parentID = 6;
|
||||
bool has_parentid() const;
|
||||
private:
|
||||
bool _internal_has_parentid() const;
|
||||
public:
|
||||
void clear_parentid();
|
||||
uint32_t parentid() const;
|
||||
void set_parentid(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_parentid() const;
|
||||
void _internal_set_parentid(uint32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:messages.header.Message)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -282,15 +244,11 @@ class Message final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr senderuuid_;
|
||||
::PROTOBUF_NAMESPACE_ID::Any* payload_;
|
||||
uint32_t topic_;
|
||||
uint32_t msgtype_;
|
||||
uint32_t sourcetype_;
|
||||
uint32_t sourceid_;
|
||||
uint32_t parentid_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_message_2eproto;
|
||||
@@ -346,27 +304,7 @@ inline void Message::set_msgtype(uint32_t value) {
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.msgType)
|
||||
}
|
||||
|
||||
// uint32 sourceType = 3;
|
||||
inline void Message::clear_sourcetype() {
|
||||
_impl_.sourcetype_ = 0u;
|
||||
}
|
||||
inline uint32_t Message::_internal_sourcetype() const {
|
||||
return _impl_.sourcetype_;
|
||||
}
|
||||
inline uint32_t Message::sourcetype() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.sourceType)
|
||||
return _internal_sourcetype();
|
||||
}
|
||||
inline void Message::_internal_set_sourcetype(uint32_t value) {
|
||||
|
||||
_impl_.sourcetype_ = value;
|
||||
}
|
||||
inline void Message::set_sourcetype(uint32_t value) {
|
||||
_internal_set_sourcetype(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.sourceType)
|
||||
}
|
||||
|
||||
// string senderUUID = 4;
|
||||
// string senderUUID = 3;
|
||||
inline void Message::clear_senderuuid() {
|
||||
_impl_.senderuuid_.ClearToEmpty();
|
||||
}
|
||||
@@ -416,63 +354,7 @@ inline void Message::set_allocated_senderuuid(std::string* senderuuid) {
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.header.Message.senderUUID)
|
||||
}
|
||||
|
||||
// optional uint32 sourceID = 5;
|
||||
inline bool Message::_internal_has_sourceid() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool Message::has_sourceid() const {
|
||||
return _internal_has_sourceid();
|
||||
}
|
||||
inline void Message::clear_sourceid() {
|
||||
_impl_.sourceid_ = 0u;
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline uint32_t Message::_internal_sourceid() const {
|
||||
return _impl_.sourceid_;
|
||||
}
|
||||
inline uint32_t Message::sourceid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.sourceID)
|
||||
return _internal_sourceid();
|
||||
}
|
||||
inline void Message::_internal_set_sourceid(uint32_t value) {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
_impl_.sourceid_ = value;
|
||||
}
|
||||
inline void Message::set_sourceid(uint32_t value) {
|
||||
_internal_set_sourceid(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.sourceID)
|
||||
}
|
||||
|
||||
// optional uint32 parentID = 6;
|
||||
inline bool Message::_internal_has_parentid() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool Message::has_parentid() const {
|
||||
return _internal_has_parentid();
|
||||
}
|
||||
inline void Message::clear_parentid() {
|
||||
_impl_.parentid_ = 0u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline uint32_t Message::_internal_parentid() const {
|
||||
return _impl_.parentid_;
|
||||
}
|
||||
inline uint32_t Message::parentid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.parentID)
|
||||
return _internal_parentid();
|
||||
}
|
||||
inline void Message::_internal_set_parentid(uint32_t value) {
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
_impl_.parentid_ = value;
|
||||
}
|
||||
inline void Message::set_parentid(uint32_t value) {
|
||||
_internal_set_parentid(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.parentID)
|
||||
}
|
||||
|
||||
// .google.protobuf.Any payload = 7;
|
||||
// .google.protobuf.Any payload = 5;
|
||||
inline bool Message::_internal_has_payload() const {
|
||||
return this != internal_default_instance() && _impl_.payload_ != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user