// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: bhome_msg_dev.proto
|
|
#include "bhome_msg_dev.pb.h"
|
|
#include <algorithm>
|
|
#include <google/protobuf/io/coded_stream.h>
|
#include <google/protobuf/extension_set.h>
|
#include <google/protobuf/wire_format_lite.h>
|
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
|
// @@protoc_insertion_point(includes)
|
#include <google/protobuf/port_def.inc>
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
namespace bhome_msg {
|
constexpr MsgProcTopicsAll::MsgProcTopicsAll(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: proc_(nullptr)
|
, topic_list_(nullptr)
|
, local_sublist_(nullptr)
|
, net_sublist_(nullptr)
|
, port_(0)
|
, online_(false){}
|
struct MsgProcTopicsAllDefaultTypeInternal {
|
constexpr MsgProcTopicsAllDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~MsgProcTopicsAllDefaultTypeInternal() {}
|
union {
|
MsgProcTopicsAll _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MsgProcTopicsAllDefaultTypeInternal _MsgProcTopicsAll_default_instance_;
|
constexpr MsgDevRegisterInfo::MsgDevRegisterInfo(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: procinfos_()
|
, devid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, proxyport_(0){}
|
struct MsgDevRegisterInfoDefaultTypeInternal {
|
constexpr MsgDevRegisterInfoDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~MsgDevRegisterInfoDefaultTypeInternal() {}
|
union {
|
MsgDevRegisterInfo _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MsgDevRegisterInfoDefaultTypeInternal _MsgDevRegisterInfo_default_instance_;
|
constexpr Arr_MsgDevRegisterInfo::Arr_MsgDevRegisterInfo(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: arr_(){}
|
struct Arr_MsgDevRegisterInfoDefaultTypeInternal {
|
constexpr Arr_MsgDevRegisterInfoDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~Arr_MsgDevRegisterInfoDefaultTypeInternal() {}
|
union {
|
Arr_MsgDevRegisterInfo _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Arr_MsgDevRegisterInfoDefaultTypeInternal _Arr_MsgDevRegisterInfo_default_instance_;
|
constexpr TopicProcAddr::TopicProcAddr(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: devid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, procid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, port_(0){}
|
struct TopicProcAddrDefaultTypeInternal {
|
constexpr TopicProcAddrDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~TopicProcAddrDefaultTypeInternal() {}
|
union {
|
TopicProcAddr _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TopicProcAddrDefaultTypeInternal _TopicProcAddr_default_instance_;
|
constexpr TopicQueryNodeAddr::TopicQueryNodeAddr(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: addrs_(){}
|
struct TopicQueryNodeAddrDefaultTypeInternal {
|
constexpr TopicQueryNodeAddrDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~TopicQueryNodeAddrDefaultTypeInternal() {}
|
union {
|
TopicQueryNodeAddr _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TopicQueryNodeAddrDefaultTypeInternal _TopicQueryNodeAddr_default_instance_;
|
} // namespace bhome_msg
|
namespace bhome_msg {
|
|
// ===================================================================
|
|
class MsgProcTopicsAll::_Internal {
|
public:
|
static const ::bhome_msg::ProcInfo& proc(const MsgProcTopicsAll* msg);
|
static const ::bhome_msg::MsgTopicList& topic_list(const MsgProcTopicsAll* msg);
|
static const ::bhome_msg::MsgTopicList& local_sublist(const MsgProcTopicsAll* msg);
|
static const ::bhome_msg::MsgTopicList& net_sublist(const MsgProcTopicsAll* msg);
|
};
|
|
const ::bhome_msg::ProcInfo&
|
MsgProcTopicsAll::_Internal::proc(const MsgProcTopicsAll* msg) {
|
return *msg->proc_;
|
}
|
const ::bhome_msg::MsgTopicList&
|
MsgProcTopicsAll::_Internal::topic_list(const MsgProcTopicsAll* msg) {
|
return *msg->topic_list_;
|
}
|
const ::bhome_msg::MsgTopicList&
|
MsgProcTopicsAll::_Internal::local_sublist(const MsgProcTopicsAll* msg) {
|
return *msg->local_sublist_;
|
}
|
const ::bhome_msg::MsgTopicList&
|
MsgProcTopicsAll::_Internal::net_sublist(const MsgProcTopicsAll* msg) {
|
return *msg->net_sublist_;
|
}
|
void MsgProcTopicsAll::clear_proc() {
|
if (GetArenaForAllocation() == nullptr && proc_ != nullptr) {
|
delete proc_;
|
}
|
proc_ = nullptr;
|
}
|
void MsgProcTopicsAll::clear_topic_list() {
|
if (GetArenaForAllocation() == nullptr && topic_list_ != nullptr) {
|
delete topic_list_;
|
}
|
topic_list_ = nullptr;
|
}
|
void MsgProcTopicsAll::clear_local_sublist() {
|
if (GetArenaForAllocation() == nullptr && local_sublist_ != nullptr) {
|
delete local_sublist_;
|
}
|
local_sublist_ = nullptr;
|
}
|
void MsgProcTopicsAll::clear_net_sublist() {
|
if (GetArenaForAllocation() == nullptr && net_sublist_ != nullptr) {
|
delete net_sublist_;
|
}
|
net_sublist_ = nullptr;
|
}
|
MsgProcTopicsAll::MsgProcTopicsAll(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:bhome_msg.MsgProcTopicsAll)
|
}
|
MsgProcTopicsAll::MsgProcTopicsAll(const MsgProcTopicsAll& from)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite() {
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
if (from._internal_has_proc()) {
|
proc_ = new ::bhome_msg::ProcInfo(*from.proc_);
|
} else {
|
proc_ = nullptr;
|
}
|
if (from._internal_has_topic_list()) {
|
topic_list_ = new ::bhome_msg::MsgTopicList(*from.topic_list_);
|
} else {
|
topic_list_ = nullptr;
|
}
|
if (from._internal_has_local_sublist()) {
|
local_sublist_ = new ::bhome_msg::MsgTopicList(*from.local_sublist_);
|
} else {
|
local_sublist_ = nullptr;
|
}
|
if (from._internal_has_net_sublist()) {
|
net_sublist_ = new ::bhome_msg::MsgTopicList(*from.net_sublist_);
|
} else {
|
net_sublist_ = nullptr;
|
}
|
::memcpy(&port_, &from.port_,
|
static_cast<size_t>(reinterpret_cast<char*>(&online_) -
|
reinterpret_cast<char*>(&port_)) + sizeof(online_));
|
// @@protoc_insertion_point(copy_constructor:bhome_msg.MsgProcTopicsAll)
|
}
|
|
inline void MsgProcTopicsAll::SharedCtor() {
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&proc_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&online_) -
|
reinterpret_cast<char*>(&proc_)) + sizeof(online_));
|
}
|
|
MsgProcTopicsAll::~MsgProcTopicsAll() {
|
// @@protoc_insertion_point(destructor:bhome_msg.MsgProcTopicsAll)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<std::string>();
|
}
|
|
inline void MsgProcTopicsAll::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
if (this != internal_default_instance()) delete proc_;
|
if (this != internal_default_instance()) delete topic_list_;
|
if (this != internal_default_instance()) delete local_sublist_;
|
if (this != internal_default_instance()) delete net_sublist_;
|
}
|
|
void MsgProcTopicsAll::ArenaDtor(void* object) {
|
MsgProcTopicsAll* _this = reinterpret_cast< MsgProcTopicsAll* >(object);
|
(void)_this;
|
}
|
void MsgProcTopicsAll::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void MsgProcTopicsAll::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void MsgProcTopicsAll::Clear() {
|
// @@protoc_insertion_point(message_clear_start:bhome_msg.MsgProcTopicsAll)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
if (GetArenaForAllocation() == nullptr && proc_ != nullptr) {
|
delete proc_;
|
}
|
proc_ = nullptr;
|
if (GetArenaForAllocation() == nullptr && topic_list_ != nullptr) {
|
delete topic_list_;
|
}
|
topic_list_ = nullptr;
|
if (GetArenaForAllocation() == nullptr && local_sublist_ != nullptr) {
|
delete local_sublist_;
|
}
|
local_sublist_ = nullptr;
|
if (GetArenaForAllocation() == nullptr && net_sublist_ != nullptr) {
|
delete net_sublist_;
|
}
|
net_sublist_ = nullptr;
|
::memset(&port_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&online_) -
|
reinterpret_cast<char*>(&port_)) + sizeof(online_));
|
_internal_metadata_.Clear<std::string>();
|
}
|
|
const char* MsgProcTopicsAll::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// .bhome_msg.ProcInfo proc = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
ptr = ctx->ParseMessage(_internal_mutable_proc(), ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 port = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bool online = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
online_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// .bhome_msg.MsgTopicList topic_list = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
ptr = ctx->ParseMessage(_internal_mutable_topic_list(), ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// .bhome_msg.MsgTopicList local_sublist = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
ptr = ctx->ParseMessage(_internal_mutable_local_sublist(), ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// .bhome_msg.MsgTopicList net_sublist = 6;
|
case 6:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
ptr = ctx->ParseMessage(_internal_mutable_net_sublist(), ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* MsgProcTopicsAll::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:bhome_msg.MsgProcTopicsAll)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// .bhome_msg.ProcInfo proc = 1;
|
if (this->_internal_has_proc()) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(
|
1, _Internal::proc(this), target, stream);
|
}
|
|
// int32 port = 2;
|
if (this->_internal_port() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target);
|
}
|
|
// bool online = 3;
|
if (this->_internal_online() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_online(), target);
|
}
|
|
// .bhome_msg.MsgTopicList topic_list = 4;
|
if (this->_internal_has_topic_list()) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(
|
4, _Internal::topic_list(this), target, stream);
|
}
|
|
// .bhome_msg.MsgTopicList local_sublist = 5;
|
if (this->_internal_has_local_sublist()) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(
|
5, _Internal::local_sublist(this), target, stream);
|
}
|
|
// .bhome_msg.MsgTopicList net_sublist = 6;
|
if (this->_internal_has_net_sublist()) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(
|
6, _Internal::net_sublist(this), target, stream);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
|
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:bhome_msg.MsgProcTopicsAll)
|
return target;
|
}
|
|
size_t MsgProcTopicsAll::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:bhome_msg.MsgProcTopicsAll)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// .bhome_msg.ProcInfo proc = 1;
|
if (this->_internal_has_proc()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
*proc_);
|
}
|
|
// .bhome_msg.MsgTopicList topic_list = 4;
|
if (this->_internal_has_topic_list()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
*topic_list_);
|
}
|
|
// .bhome_msg.MsgTopicList local_sublist = 5;
|
if (this->_internal_has_local_sublist()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
*local_sublist_);
|
}
|
|
// .bhome_msg.MsgTopicList net_sublist = 6;
|
if (this->_internal_has_net_sublist()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
*net_sublist_);
|
}
|
|
// int32 port = 2;
|
if (this->_internal_port() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_port());
|
}
|
|
// bool online = 3;
|
if (this->_internal_online() != 0) {
|
total_size += 1 + 1;
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
void MsgProcTopicsAll::CheckTypeAndMergeFrom(
|
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MsgProcTopicsAll*>(
|
&from));
|
}
|
|
void MsgProcTopicsAll::MergeFrom(const MsgProcTopicsAll& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:bhome_msg.MsgProcTopicsAll)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (from._internal_has_proc()) {
|
_internal_mutable_proc()->::bhome_msg::ProcInfo::MergeFrom(from._internal_proc());
|
}
|
if (from._internal_has_topic_list()) {
|
_internal_mutable_topic_list()->::bhome_msg::MsgTopicList::MergeFrom(from._internal_topic_list());
|
}
|
if (from._internal_has_local_sublist()) {
|
_internal_mutable_local_sublist()->::bhome_msg::MsgTopicList::MergeFrom(from._internal_local_sublist());
|
}
|
if (from._internal_has_net_sublist()) {
|
_internal_mutable_net_sublist()->::bhome_msg::MsgTopicList::MergeFrom(from._internal_net_sublist());
|
}
|
if (from._internal_port() != 0) {
|
_internal_set_port(from._internal_port());
|
}
|
if (from._internal_online() != 0) {
|
_internal_set_online(from._internal_online());
|
}
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
}
|
|
void MsgProcTopicsAll::CopyFrom(const MsgProcTopicsAll& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:bhome_msg.MsgProcTopicsAll)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool MsgProcTopicsAll::IsInitialized() const {
|
return true;
|
}
|
|
void MsgProcTopicsAll::InternalSwap(MsgProcTopicsAll* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(MsgProcTopicsAll, online_)
|
+ sizeof(MsgProcTopicsAll::online_)
|
- PROTOBUF_FIELD_OFFSET(MsgProcTopicsAll, proc_)>(
|
reinterpret_cast<char*>(&proc_),
|
reinterpret_cast<char*>(&other->proc_));
|
}
|
|
std::string MsgProcTopicsAll::GetTypeName() const {
|
return "bhome_msg.MsgProcTopicsAll";
|
}
|
|
|
// ===================================================================
|
|
class MsgDevRegisterInfo::_Internal {
|
public:
|
};
|
|
MsgDevRegisterInfo::MsgDevRegisterInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned),
|
procinfos_(arena) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:bhome_msg.MsgDevRegisterInfo)
|
}
|
MsgDevRegisterInfo::MsgDevRegisterInfo(const MsgDevRegisterInfo& from)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
procinfos_(from.procinfos_) {
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
devid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_devid().empty()) {
|
devid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devid(),
|
GetArenaForAllocation());
|
}
|
ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_ip().empty()) {
|
ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip(),
|
GetArenaForAllocation());
|
}
|
proxyport_ = from.proxyport_;
|
// @@protoc_insertion_point(copy_constructor:bhome_msg.MsgDevRegisterInfo)
|
}
|
|
inline void MsgDevRegisterInfo::SharedCtor() {
|
devid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
proxyport_ = 0;
|
}
|
|
MsgDevRegisterInfo::~MsgDevRegisterInfo() {
|
// @@protoc_insertion_point(destructor:bhome_msg.MsgDevRegisterInfo)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<std::string>();
|
}
|
|
inline void MsgDevRegisterInfo::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
devid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void MsgDevRegisterInfo::ArenaDtor(void* object) {
|
MsgDevRegisterInfo* _this = reinterpret_cast< MsgDevRegisterInfo* >(object);
|
(void)_this;
|
}
|
void MsgDevRegisterInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void MsgDevRegisterInfo::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void MsgDevRegisterInfo::Clear() {
|
// @@protoc_insertion_point(message_clear_start:bhome_msg.MsgDevRegisterInfo)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
procinfos_.Clear();
|
devid_.ClearToEmpty();
|
ip_.ClearToEmpty();
|
proxyport_ = 0;
|
_internal_metadata_.Clear<std::string>();
|
}
|
|
const char* MsgDevRegisterInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// bytes devId = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_devid();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bytes ip = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 proxyPort = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
proxyport_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// repeated .bhome_msg.MsgProcTopicsAll procInfos = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
ptr -= 1;
|
do {
|
ptr += 1;
|
ptr = ctx->ParseMessage(_internal_add_procinfos(), ptr);
|
CHK_(ptr);
|
if (!ctx->DataAvailable(ptr)) break;
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* MsgDevRegisterInfo::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:bhome_msg.MsgDevRegisterInfo)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// bytes devId = 1;
|
if (!this->_internal_devid().empty()) {
|
target = stream->WriteBytesMaybeAliased(
|
1, this->_internal_devid(), target);
|
}
|
|
// bytes ip = 2;
|
if (!this->_internal_ip().empty()) {
|
target = stream->WriteBytesMaybeAliased(
|
2, this->_internal_ip(), target);
|
}
|
|
// int32 proxyPort = 3;
|
if (this->_internal_proxyport() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_proxyport(), target);
|
}
|
|
// repeated .bhome_msg.MsgProcTopicsAll procInfos = 4;
|
for (unsigned int i = 0,
|
n = static_cast<unsigned int>(this->_internal_procinfos_size()); i < n; i++) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(4, this->_internal_procinfos(i), target, stream);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
|
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:bhome_msg.MsgDevRegisterInfo)
|
return target;
|
}
|
|
size_t MsgDevRegisterInfo::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:bhome_msg.MsgDevRegisterInfo)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// repeated .bhome_msg.MsgProcTopicsAll procInfos = 4;
|
total_size += 1UL * this->_internal_procinfos_size();
|
for (const auto& msg : this->procinfos_) {
|
total_size +=
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
}
|
|
// bytes devId = 1;
|
if (!this->_internal_devid().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
this->_internal_devid());
|
}
|
|
// bytes ip = 2;
|
if (!this->_internal_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
this->_internal_ip());
|
}
|
|
// int32 proxyPort = 3;
|
if (this->_internal_proxyport() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_proxyport());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
void MsgDevRegisterInfo::CheckTypeAndMergeFrom(
|
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MsgDevRegisterInfo*>(
|
&from));
|
}
|
|
void MsgDevRegisterInfo::MergeFrom(const MsgDevRegisterInfo& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:bhome_msg.MsgDevRegisterInfo)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
procinfos_.MergeFrom(from.procinfos_);
|
if (!from._internal_devid().empty()) {
|
_internal_set_devid(from._internal_devid());
|
}
|
if (!from._internal_ip().empty()) {
|
_internal_set_ip(from._internal_ip());
|
}
|
if (from._internal_proxyport() != 0) {
|
_internal_set_proxyport(from._internal_proxyport());
|
}
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
}
|
|
void MsgDevRegisterInfo::CopyFrom(const MsgDevRegisterInfo& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:bhome_msg.MsgDevRegisterInfo)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool MsgDevRegisterInfo::IsInitialized() const {
|
return true;
|
}
|
|
void MsgDevRegisterInfo::InternalSwap(MsgDevRegisterInfo* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
procinfos_.InternalSwap(&other->procinfos_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&devid_, GetArenaForAllocation(),
|
&other->devid_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&ip_, GetArenaForAllocation(),
|
&other->ip_, other->GetArenaForAllocation()
|
);
|
swap(proxyport_, other->proxyport_);
|
}
|
|
std::string MsgDevRegisterInfo::GetTypeName() const {
|
return "bhome_msg.MsgDevRegisterInfo";
|
}
|
|
|
// ===================================================================
|
|
class Arr_MsgDevRegisterInfo::_Internal {
|
public:
|
};
|
|
Arr_MsgDevRegisterInfo::Arr_MsgDevRegisterInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned),
|
arr_(arena) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:bhome_msg.Arr_MsgDevRegisterInfo)
|
}
|
Arr_MsgDevRegisterInfo::Arr_MsgDevRegisterInfo(const Arr_MsgDevRegisterInfo& from)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
arr_(from.arr_) {
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
// @@protoc_insertion_point(copy_constructor:bhome_msg.Arr_MsgDevRegisterInfo)
|
}
|
|
inline void Arr_MsgDevRegisterInfo::SharedCtor() {
|
}
|
|
Arr_MsgDevRegisterInfo::~Arr_MsgDevRegisterInfo() {
|
// @@protoc_insertion_point(destructor:bhome_msg.Arr_MsgDevRegisterInfo)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<std::string>();
|
}
|
|
inline void Arr_MsgDevRegisterInfo::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
}
|
|
void Arr_MsgDevRegisterInfo::ArenaDtor(void* object) {
|
Arr_MsgDevRegisterInfo* _this = reinterpret_cast< Arr_MsgDevRegisterInfo* >(object);
|
(void)_this;
|
}
|
void Arr_MsgDevRegisterInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void Arr_MsgDevRegisterInfo::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void Arr_MsgDevRegisterInfo::Clear() {
|
// @@protoc_insertion_point(message_clear_start:bhome_msg.Arr_MsgDevRegisterInfo)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
arr_.Clear();
|
_internal_metadata_.Clear<std::string>();
|
}
|
|
const char* Arr_MsgDevRegisterInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// repeated .bhome_msg.MsgDevRegisterInfo arr = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
ptr -= 1;
|
do {
|
ptr += 1;
|
ptr = ctx->ParseMessage(_internal_add_arr(), ptr);
|
CHK_(ptr);
|
if (!ctx->DataAvailable(ptr)) break;
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Arr_MsgDevRegisterInfo::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:bhome_msg.Arr_MsgDevRegisterInfo)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// repeated .bhome_msg.MsgDevRegisterInfo arr = 1;
|
for (unsigned int i = 0,
|
n = static_cast<unsigned int>(this->_internal_arr_size()); i < n; i++) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(1, this->_internal_arr(i), target, stream);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
|
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:bhome_msg.Arr_MsgDevRegisterInfo)
|
return target;
|
}
|
|
size_t Arr_MsgDevRegisterInfo::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:bhome_msg.Arr_MsgDevRegisterInfo)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// repeated .bhome_msg.MsgDevRegisterInfo arr = 1;
|
total_size += 1UL * this->_internal_arr_size();
|
for (const auto& msg : this->arr_) {
|
total_size +=
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
void Arr_MsgDevRegisterInfo::CheckTypeAndMergeFrom(
|
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const Arr_MsgDevRegisterInfo*>(
|
&from));
|
}
|
|
void Arr_MsgDevRegisterInfo::MergeFrom(const Arr_MsgDevRegisterInfo& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:bhome_msg.Arr_MsgDevRegisterInfo)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
arr_.MergeFrom(from.arr_);
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
}
|
|
void Arr_MsgDevRegisterInfo::CopyFrom(const Arr_MsgDevRegisterInfo& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:bhome_msg.Arr_MsgDevRegisterInfo)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool Arr_MsgDevRegisterInfo::IsInitialized() const {
|
return true;
|
}
|
|
void Arr_MsgDevRegisterInfo::InternalSwap(Arr_MsgDevRegisterInfo* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
arr_.InternalSwap(&other->arr_);
|
}
|
|
std::string Arr_MsgDevRegisterInfo::GetTypeName() const {
|
return "bhome_msg.Arr_MsgDevRegisterInfo";
|
}
|
|
|
// ===================================================================
|
|
class TopicProcAddr::_Internal {
|
public:
|
};
|
|
TopicProcAddr::TopicProcAddr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:bhome_msg.TopicProcAddr)
|
}
|
TopicProcAddr::TopicProcAddr(const TopicProcAddr& from)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite() {
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
devid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_devid().empty()) {
|
devid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devid(),
|
GetArenaForAllocation());
|
}
|
ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_ip().empty()) {
|
ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip(),
|
GetArenaForAllocation());
|
}
|
procid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_procid().empty()) {
|
procid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_procid(),
|
GetArenaForAllocation());
|
}
|
port_ = from.port_;
|
// @@protoc_insertion_point(copy_constructor:bhome_msg.TopicProcAddr)
|
}
|
|
inline void TopicProcAddr::SharedCtor() {
|
devid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
procid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
port_ = 0;
|
}
|
|
TopicProcAddr::~TopicProcAddr() {
|
// @@protoc_insertion_point(destructor:bhome_msg.TopicProcAddr)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<std::string>();
|
}
|
|
inline void TopicProcAddr::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
devid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
procid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void TopicProcAddr::ArenaDtor(void* object) {
|
TopicProcAddr* _this = reinterpret_cast< TopicProcAddr* >(object);
|
(void)_this;
|
}
|
void TopicProcAddr::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void TopicProcAddr::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void TopicProcAddr::Clear() {
|
// @@protoc_insertion_point(message_clear_start:bhome_msg.TopicProcAddr)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
devid_.ClearToEmpty();
|
ip_.ClearToEmpty();
|
procid_.ClearToEmpty();
|
port_ = 0;
|
_internal_metadata_.Clear<std::string>();
|
}
|
|
const char* TopicProcAddr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// bytes devId = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_devid();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bytes ip = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bytes procId = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
auto str = _internal_mutable_procid();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 port = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* TopicProcAddr::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:bhome_msg.TopicProcAddr)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// bytes devId = 1;
|
if (!this->_internal_devid().empty()) {
|
target = stream->WriteBytesMaybeAliased(
|
1, this->_internal_devid(), target);
|
}
|
|
// bytes ip = 2;
|
if (!this->_internal_ip().empty()) {
|
target = stream->WriteBytesMaybeAliased(
|
2, this->_internal_ip(), target);
|
}
|
|
// bytes procId = 3;
|
if (!this->_internal_procid().empty()) {
|
target = stream->WriteBytesMaybeAliased(
|
3, this->_internal_procid(), target);
|
}
|
|
// int32 port = 4;
|
if (this->_internal_port() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_port(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
|
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:bhome_msg.TopicProcAddr)
|
return target;
|
}
|
|
size_t TopicProcAddr::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:bhome_msg.TopicProcAddr)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// bytes devId = 1;
|
if (!this->_internal_devid().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
this->_internal_devid());
|
}
|
|
// bytes ip = 2;
|
if (!this->_internal_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
this->_internal_ip());
|
}
|
|
// bytes procId = 3;
|
if (!this->_internal_procid().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
this->_internal_procid());
|
}
|
|
// int32 port = 4;
|
if (this->_internal_port() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_port());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
void TopicProcAddr::CheckTypeAndMergeFrom(
|
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TopicProcAddr*>(
|
&from));
|
}
|
|
void TopicProcAddr::MergeFrom(const TopicProcAddr& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:bhome_msg.TopicProcAddr)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_devid().empty()) {
|
_internal_set_devid(from._internal_devid());
|
}
|
if (!from._internal_ip().empty()) {
|
_internal_set_ip(from._internal_ip());
|
}
|
if (!from._internal_procid().empty()) {
|
_internal_set_procid(from._internal_procid());
|
}
|
if (from._internal_port() != 0) {
|
_internal_set_port(from._internal_port());
|
}
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
}
|
|
void TopicProcAddr::CopyFrom(const TopicProcAddr& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:bhome_msg.TopicProcAddr)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool TopicProcAddr::IsInitialized() const {
|
return true;
|
}
|
|
void TopicProcAddr::InternalSwap(TopicProcAddr* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&devid_, GetArenaForAllocation(),
|
&other->devid_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&ip_, GetArenaForAllocation(),
|
&other->ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&procid_, GetArenaForAllocation(),
|
&other->procid_, other->GetArenaForAllocation()
|
);
|
swap(port_, other->port_);
|
}
|
|
std::string TopicProcAddr::GetTypeName() const {
|
return "bhome_msg.TopicProcAddr";
|
}
|
|
|
// ===================================================================
|
|
class TopicQueryNodeAddr::_Internal {
|
public:
|
};
|
|
TopicQueryNodeAddr::TopicQueryNodeAddr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned),
|
addrs_(arena) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:bhome_msg.TopicQueryNodeAddr)
|
}
|
TopicQueryNodeAddr::TopicQueryNodeAddr(const TopicQueryNodeAddr& from)
|
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
addrs_(from.addrs_) {
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
// @@protoc_insertion_point(copy_constructor:bhome_msg.TopicQueryNodeAddr)
|
}
|
|
inline void TopicQueryNodeAddr::SharedCtor() {
|
}
|
|
TopicQueryNodeAddr::~TopicQueryNodeAddr() {
|
// @@protoc_insertion_point(destructor:bhome_msg.TopicQueryNodeAddr)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<std::string>();
|
}
|
|
inline void TopicQueryNodeAddr::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
}
|
|
void TopicQueryNodeAddr::ArenaDtor(void* object) {
|
TopicQueryNodeAddr* _this = reinterpret_cast< TopicQueryNodeAddr* >(object);
|
(void)_this;
|
}
|
void TopicQueryNodeAddr::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void TopicQueryNodeAddr::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void TopicQueryNodeAddr::Clear() {
|
// @@protoc_insertion_point(message_clear_start:bhome_msg.TopicQueryNodeAddr)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
addrs_.Clear();
|
_internal_metadata_.Clear<std::string>();
|
}
|
|
const char* TopicQueryNodeAddr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// repeated .bhome_msg.TopicProcAddr addrs = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
ptr -= 1;
|
do {
|
ptr += 1;
|
ptr = ctx->ParseMessage(_internal_add_addrs(), ptr);
|
CHK_(ptr);
|
if (!ctx->DataAvailable(ptr)) break;
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* TopicQueryNodeAddr::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:bhome_msg.TopicQueryNodeAddr)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// repeated .bhome_msg.TopicProcAddr addrs = 1;
|
for (unsigned int i = 0,
|
n = static_cast<unsigned int>(this->_internal_addrs_size()); i < n; i++) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(1, this->_internal_addrs(i), target, stream);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
|
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:bhome_msg.TopicQueryNodeAddr)
|
return target;
|
}
|
|
size_t TopicQueryNodeAddr::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:bhome_msg.TopicQueryNodeAddr)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// repeated .bhome_msg.TopicProcAddr addrs = 1;
|
total_size += 1UL * this->_internal_addrs_size();
|
for (const auto& msg : this->addrs_) {
|
total_size +=
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
void TopicQueryNodeAddr::CheckTypeAndMergeFrom(
|
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TopicQueryNodeAddr*>(
|
&from));
|
}
|
|
void TopicQueryNodeAddr::MergeFrom(const TopicQueryNodeAddr& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:bhome_msg.TopicQueryNodeAddr)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
addrs_.MergeFrom(from.addrs_);
|
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
}
|
|
void TopicQueryNodeAddr::CopyFrom(const TopicQueryNodeAddr& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:bhome_msg.TopicQueryNodeAddr)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool TopicQueryNodeAddr::IsInitialized() const {
|
return true;
|
}
|
|
void TopicQueryNodeAddr::InternalSwap(TopicQueryNodeAddr* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
addrs_.InternalSwap(&other->addrs_);
|
}
|
|
std::string TopicQueryNodeAddr::GetTypeName() const {
|
return "bhome_msg.TopicQueryNodeAddr";
|
}
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
} // namespace bhome_msg
|
PROTOBUF_NAMESPACE_OPEN
|
template<> PROTOBUF_NOINLINE ::bhome_msg::MsgProcTopicsAll* Arena::CreateMaybeMessage< ::bhome_msg::MsgProcTopicsAll >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::bhome_msg::MsgProcTopicsAll >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::bhome_msg::MsgDevRegisterInfo* Arena::CreateMaybeMessage< ::bhome_msg::MsgDevRegisterInfo >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::bhome_msg::MsgDevRegisterInfo >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::bhome_msg::Arr_MsgDevRegisterInfo* Arena::CreateMaybeMessage< ::bhome_msg::Arr_MsgDevRegisterInfo >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::bhome_msg::Arr_MsgDevRegisterInfo >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::bhome_msg::TopicProcAddr* Arena::CreateMaybeMessage< ::bhome_msg::TopicProcAddr >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::bhome_msg::TopicProcAddr >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::bhome_msg::TopicQueryNodeAddr* Arena::CreateMaybeMessage< ::bhome_msg::TopicQueryNodeAddr >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::bhome_msg::TopicQueryNodeAddr >(arena);
|
}
|
PROTOBUF_NAMESPACE_CLOSE
|
|
// @@protoc_insertion_point(global_scope)
|
#include <google/protobuf/port_undef.inc>
|