ADD: added new basic messages and added the parentID as an part of the identifier
This commit is contained in:
@@ -181,13 +181,14 @@ class Message final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kPayloadFieldNumber = 5,
|
||||
kPayloadFieldNumber = 6,
|
||||
kTopicFieldNumber = 1,
|
||||
kMsgTypeFieldNumber = 2,
|
||||
kSourceTypeFieldNumber = 3,
|
||||
kSourceIDFieldNumber = 4,
|
||||
kParentIDFieldNumber = 5,
|
||||
};
|
||||
// repeated .google.protobuf.Any payload = 5;
|
||||
// repeated .google.protobuf.Any payload = 6;
|
||||
int payload_size() const;
|
||||
private:
|
||||
int _internal_payload_size() const;
|
||||
@@ -214,31 +215,40 @@ class Message final :
|
||||
void _internal_set_topic(uint32_t value);
|
||||
public:
|
||||
|
||||
// int32 msgType = 2;
|
||||
// uint32 msgType = 2;
|
||||
void clear_msgtype();
|
||||
int32_t msgtype() const;
|
||||
void set_msgtype(int32_t value);
|
||||
uint32_t msgtype() const;
|
||||
void set_msgtype(uint32_t value);
|
||||
private:
|
||||
int32_t _internal_msgtype() const;
|
||||
void _internal_set_msgtype(int32_t value);
|
||||
uint32_t _internal_msgtype() const;
|
||||
void _internal_set_msgtype(uint32_t value);
|
||||
public:
|
||||
|
||||
// int32 sourceType = 3;
|
||||
// uint32 sourceType = 3;
|
||||
void clear_sourcetype();
|
||||
int32_t sourcetype() const;
|
||||
void set_sourcetype(int32_t value);
|
||||
uint32_t sourcetype() const;
|
||||
void set_sourcetype(uint32_t value);
|
||||
private:
|
||||
int32_t _internal_sourcetype() const;
|
||||
void _internal_set_sourcetype(int32_t value);
|
||||
uint32_t _internal_sourcetype() const;
|
||||
void _internal_set_sourcetype(uint32_t value);
|
||||
public:
|
||||
|
||||
// int32 sourceID = 4;
|
||||
// uint32 sourceID = 4;
|
||||
void clear_sourceid();
|
||||
int32_t sourceid() const;
|
||||
void set_sourceid(int32_t value);
|
||||
uint32_t sourceid() const;
|
||||
void set_sourceid(uint32_t value);
|
||||
private:
|
||||
int32_t _internal_sourceid() const;
|
||||
void _internal_set_sourceid(int32_t value);
|
||||
uint32_t _internal_sourceid() const;
|
||||
void _internal_set_sourceid(uint32_t value);
|
||||
public:
|
||||
|
||||
// uint32 parentID = 5;
|
||||
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)
|
||||
@@ -251,9 +261,10 @@ class Message final :
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > payload_;
|
||||
uint32_t topic_;
|
||||
int32_t msgtype_;
|
||||
int32_t sourcetype_;
|
||||
int32_t sourceid_;
|
||||
uint32_t msgtype_;
|
||||
uint32_t sourcetype_;
|
||||
uint32_t sourceid_;
|
||||
uint32_t parentid_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -290,67 +301,87 @@ inline void Message::set_topic(uint32_t value) {
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.topic)
|
||||
}
|
||||
|
||||
// int32 msgType = 2;
|
||||
// uint32 msgType = 2;
|
||||
inline void Message::clear_msgtype() {
|
||||
_impl_.msgtype_ = 0;
|
||||
_impl_.msgtype_ = 0u;
|
||||
}
|
||||
inline int32_t Message::_internal_msgtype() const {
|
||||
inline uint32_t Message::_internal_msgtype() const {
|
||||
return _impl_.msgtype_;
|
||||
}
|
||||
inline int32_t Message::msgtype() const {
|
||||
inline uint32_t Message::msgtype() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.msgType)
|
||||
return _internal_msgtype();
|
||||
}
|
||||
inline void Message::_internal_set_msgtype(int32_t value) {
|
||||
inline void Message::_internal_set_msgtype(uint32_t value) {
|
||||
|
||||
_impl_.msgtype_ = value;
|
||||
}
|
||||
inline void Message::set_msgtype(int32_t value) {
|
||||
inline void Message::set_msgtype(uint32_t value) {
|
||||
_internal_set_msgtype(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.msgType)
|
||||
}
|
||||
|
||||
// int32 sourceType = 3;
|
||||
// uint32 sourceType = 3;
|
||||
inline void Message::clear_sourcetype() {
|
||||
_impl_.sourcetype_ = 0;
|
||||
_impl_.sourcetype_ = 0u;
|
||||
}
|
||||
inline int32_t Message::_internal_sourcetype() const {
|
||||
inline uint32_t Message::_internal_sourcetype() const {
|
||||
return _impl_.sourcetype_;
|
||||
}
|
||||
inline int32_t Message::sourcetype() const {
|
||||
inline uint32_t Message::sourcetype() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.sourceType)
|
||||
return _internal_sourcetype();
|
||||
}
|
||||
inline void Message::_internal_set_sourcetype(int32_t value) {
|
||||
inline void Message::_internal_set_sourcetype(uint32_t value) {
|
||||
|
||||
_impl_.sourcetype_ = value;
|
||||
}
|
||||
inline void Message::set_sourcetype(int32_t value) {
|
||||
inline void Message::set_sourcetype(uint32_t value) {
|
||||
_internal_set_sourcetype(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.sourceType)
|
||||
}
|
||||
|
||||
// int32 sourceID = 4;
|
||||
// uint32 sourceID = 4;
|
||||
inline void Message::clear_sourceid() {
|
||||
_impl_.sourceid_ = 0;
|
||||
_impl_.sourceid_ = 0u;
|
||||
}
|
||||
inline int32_t Message::_internal_sourceid() const {
|
||||
inline uint32_t Message::_internal_sourceid() const {
|
||||
return _impl_.sourceid_;
|
||||
}
|
||||
inline int32_t Message::sourceid() const {
|
||||
inline uint32_t Message::sourceid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.header.Message.sourceID)
|
||||
return _internal_sourceid();
|
||||
}
|
||||
inline void Message::_internal_set_sourceid(int32_t value) {
|
||||
inline void Message::_internal_set_sourceid(uint32_t value) {
|
||||
|
||||
_impl_.sourceid_ = value;
|
||||
}
|
||||
inline void Message::set_sourceid(int32_t value) {
|
||||
inline void Message::set_sourceid(uint32_t value) {
|
||||
_internal_set_sourceid(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.sourceID)
|
||||
}
|
||||
|
||||
// repeated .google.protobuf.Any payload = 5;
|
||||
// uint32 parentID = 5;
|
||||
inline void Message::clear_parentid() {
|
||||
_impl_.parentid_ = 0u;
|
||||
}
|
||||
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_.parentid_ = value;
|
||||
}
|
||||
inline void Message::set_parentid(uint32_t value) {
|
||||
_internal_set_parentid(value);
|
||||
// @@protoc_insertion_point(field_set:messages.header.Message.parentID)
|
||||
}
|
||||
|
||||
// repeated .google.protobuf.Any payload = 6;
|
||||
inline int Message::_internal_payload_size() const {
|
||||
return _impl_.payload_.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user