// Generated by the protocol buffer compiler. DO NOT EDIT! // source: bhome_msg.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_bhome_5fmsg_2eproto #define GOOGLE_PROTOBUF_INCLUDED_bhome_5fmsg_2eproto #include #include #include #if PROTOBUF_VERSION < 3017000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3017003 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "bhome_msg_api.pb.h" #include "error_msg.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_bhome_5fmsg_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_bhome_5fmsg_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; namespace bhome_msg { class BHMsgBody; struct BHMsgBodyDefaultTypeInternal; extern BHMsgBodyDefaultTypeInternal _BHMsgBody_default_instance_; class BHMsgHead; struct BHMsgHeadDefaultTypeInternal; extern BHMsgHeadDefaultTypeInternal _BHMsgHead_default_instance_; class MsgProcInit; struct MsgProcInitDefaultTypeInternal; extern MsgProcInitDefaultTypeInternal _MsgProcInit_default_instance_; class MsgProcInitReply; struct MsgProcInitReplyDefaultTypeInternal; extern MsgProcInitReplyDefaultTypeInternal _MsgProcInitReply_default_instance_; class MsgRegisterRPC; struct MsgRegisterRPCDefaultTypeInternal; extern MsgRegisterRPCDefaultTypeInternal _MsgRegisterRPC_default_instance_; class MsgReply; struct MsgReplyDefaultTypeInternal; extern MsgReplyDefaultTypeInternal _MsgReply_default_instance_; class MsgRequest; struct MsgRequestDefaultTypeInternal; extern MsgRequestDefaultTypeInternal _MsgRequest_default_instance_; class MsgSubscribe; struct MsgSubscribeDefaultTypeInternal; extern MsgSubscribeDefaultTypeInternal _MsgSubscribe_default_instance_; class MsgUnsubscribe; struct MsgUnsubscribeDefaultTypeInternal; extern MsgUnsubscribeDefaultTypeInternal _MsgUnsubscribe_default_instance_; } // namespace bhome_msg PROTOBUF_NAMESPACE_OPEN template<> ::bhome_msg::BHMsgBody* Arena::CreateMaybeMessage<::bhome_msg::BHMsgBody>(Arena*); template<> ::bhome_msg::BHMsgHead* Arena::CreateMaybeMessage<::bhome_msg::BHMsgHead>(Arena*); template<> ::bhome_msg::MsgProcInit* Arena::CreateMaybeMessage<::bhome_msg::MsgProcInit>(Arena*); template<> ::bhome_msg::MsgProcInitReply* Arena::CreateMaybeMessage<::bhome_msg::MsgProcInitReply>(Arena*); template<> ::bhome_msg::MsgRegisterRPC* Arena::CreateMaybeMessage<::bhome_msg::MsgRegisterRPC>(Arena*); template<> ::bhome_msg::MsgReply* Arena::CreateMaybeMessage<::bhome_msg::MsgReply>(Arena*); template<> ::bhome_msg::MsgRequest* Arena::CreateMaybeMessage<::bhome_msg::MsgRequest>(Arena*); template<> ::bhome_msg::MsgSubscribe* Arena::CreateMaybeMessage<::bhome_msg::MsgSubscribe>(Arena*); template<> ::bhome_msg::MsgUnsubscribe* Arena::CreateMaybeMessage<::bhome_msg::MsgUnsubscribe>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace bhome_msg { enum MsgType : int { kMsgTypeInvalid = 0, kMsgTypeRawData = 1, kMsgTypeCommonReply = 2, kMsgTypeProcInit = 8, kMsgTypeProcInitReply = 9, kMsgTypeRegister = 10, kMsgTypeHeartbeat = 12, kMsgTypeQueryTopic = 14, kMsgTypeQueryTopicReply = 15, kMsgTypeRequestTopic = 16, kMsgTypeRequestTopicReply = 17, kMsgTypeRegisterRPC = 18, kMsgTypePublish = 20, kMsgTypeSubscribe = 22, kMsgTypeUnsubscribe = 24, kMsgTypeUnregister = 26, kMsgTypeQueryProc = 28, kMsgTypeQueryProcReply = 29, MsgType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), MsgType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool MsgType_IsValid(int value); constexpr MsgType MsgType_MIN = kMsgTypeInvalid; constexpr MsgType MsgType_MAX = kMsgTypeQueryProcReply; constexpr int MsgType_ARRAYSIZE = MsgType_MAX + 1; const std::string& MsgType_Name(MsgType value); template inline const std::string& MsgType_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function MsgType_Name."); return MsgType_Name(static_cast(enum_t_value)); } bool MsgType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MsgType* value); // =================================================================== class BHMsgHead final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.BHMsgHead) */ { public: inline BHMsgHead() : BHMsgHead(nullptr) {} ~BHMsgHead() override; explicit constexpr BHMsgHead(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); BHMsgHead(const BHMsgHead& from); BHMsgHead(BHMsgHead&& from) noexcept : BHMsgHead() { *this = ::std::move(from); } inline BHMsgHead& operator=(const BHMsgHead& from) { CopyFrom(from); return *this; } inline BHMsgHead& operator=(BHMsgHead&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const BHMsgHead& default_instance() { return *internal_default_instance(); } static inline const BHMsgHead* internal_default_instance() { return reinterpret_cast( &_BHMsgHead_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(BHMsgHead& a, BHMsgHead& b) { a.Swap(&b); } inline void Swap(BHMsgHead* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(BHMsgHead* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline BHMsgHead* New() const final { return new BHMsgHead(); } BHMsgHead* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const BHMsgHead& from); void MergeFrom(const BHMsgHead& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(BHMsgHead* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.BHMsgHead"; } protected: explicit BHMsgHead(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRouteFieldNumber = 2, kMsgIdFieldNumber = 1, kProcIdFieldNumber = 6, kTopicFieldNumber = 7, kDestFieldNumber = 8, kTimestampFieldNumber = 3, kSsnIdFieldNumber = 5, kTypeFieldNumber = 4, }; // repeated .bhome_msg.BHAddress route = 2; int route_size() const; private: int _internal_route_size() const; public: void clear_route(); ::bhome_msg::BHAddress* mutable_route(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >* mutable_route(); private: const ::bhome_msg::BHAddress& _internal_route(int index) const; ::bhome_msg::BHAddress* _internal_add_route(); public: const ::bhome_msg::BHAddress& route(int index) const; ::bhome_msg::BHAddress* add_route(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >& route() const; // bytes msg_id = 1; void clear_msg_id(); const std::string& msg_id() const; template void set_msg_id(ArgT0&& arg0, ArgT... args); std::string* mutable_msg_id(); PROTOBUF_MUST_USE_RESULT std::string* release_msg_id(); void set_allocated_msg_id(std::string* msg_id); private: const std::string& _internal_msg_id() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_msg_id(const std::string& value); std::string* _internal_mutable_msg_id(); public: // bytes proc_id = 6; void clear_proc_id(); const std::string& proc_id() const; template void set_proc_id(ArgT0&& arg0, ArgT... args); std::string* mutable_proc_id(); PROTOBUF_MUST_USE_RESULT std::string* release_proc_id(); void set_allocated_proc_id(std::string* proc_id); private: const std::string& _internal_proc_id() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_proc_id(const std::string& value); std::string* _internal_mutable_proc_id(); public: // bytes topic = 7; void clear_topic(); const std::string& topic() const; template void set_topic(ArgT0&& arg0, ArgT... args); std::string* mutable_topic(); PROTOBUF_MUST_USE_RESULT std::string* release_topic(); void set_allocated_topic(std::string* topic); private: const std::string& _internal_topic() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_topic(const std::string& value); std::string* _internal_mutable_topic(); public: // .bhome_msg.BHAddress dest = 8; bool has_dest() const; private: bool _internal_has_dest() const; public: void clear_dest(); const ::bhome_msg::BHAddress& dest() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::BHAddress* release_dest(); ::bhome_msg::BHAddress* mutable_dest(); void set_allocated_dest(::bhome_msg::BHAddress* dest); private: const ::bhome_msg::BHAddress& _internal_dest() const; ::bhome_msg::BHAddress* _internal_mutable_dest(); public: void unsafe_arena_set_allocated_dest( ::bhome_msg::BHAddress* dest); ::bhome_msg::BHAddress* unsafe_arena_release_dest(); // int64 timestamp = 3; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); private: ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); public: // uint64 ssn_id = 5; void clear_ssn_id(); ::PROTOBUF_NAMESPACE_ID::uint64 ssn_id() const; void set_ssn_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_ssn_id() const; void _internal_set_ssn_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // int32 type = 4; void clear_type(); ::PROTOBUF_NAMESPACE_ID::int32 type() const; void set_type(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_type() const; void _internal_set_type(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:bhome_msg.BHMsgHead) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress > route_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proc_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr topic_; ::bhome_msg::BHAddress* dest_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; ::PROTOBUF_NAMESPACE_ID::uint64 ssn_id_; ::PROTOBUF_NAMESPACE_ID::int32 type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgSubscribe final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgSubscribe) */ { public: inline MsgSubscribe() : MsgSubscribe(nullptr) {} ~MsgSubscribe() override; explicit constexpr MsgSubscribe(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgSubscribe(const MsgSubscribe& from); MsgSubscribe(MsgSubscribe&& from) noexcept : MsgSubscribe() { *this = ::std::move(from); } inline MsgSubscribe& operator=(const MsgSubscribe& from) { CopyFrom(from); return *this; } inline MsgSubscribe& operator=(MsgSubscribe&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgSubscribe& default_instance() { return *internal_default_instance(); } static inline const MsgSubscribe* internal_default_instance() { return reinterpret_cast( &_MsgSubscribe_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(MsgSubscribe& a, MsgSubscribe& b) { a.Swap(&b); } inline void Swap(MsgSubscribe* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgSubscribe* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgSubscribe* New() const final { return new MsgSubscribe(); } MsgSubscribe* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgSubscribe& from); void MergeFrom(const MsgSubscribe& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgSubscribe* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgSubscribe"; } protected: explicit MsgSubscribe(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kTopicsFieldNumber = 1, }; // .bhome_msg.MsgTopicList topics = 1; bool has_topics() const; private: bool _internal_has_topics() const; public: void clear_topics(); const ::bhome_msg::MsgTopicList& topics() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgTopicList* release_topics(); ::bhome_msg::MsgTopicList* mutable_topics(); void set_allocated_topics(::bhome_msg::MsgTopicList* topics); private: const ::bhome_msg::MsgTopicList& _internal_topics() const; ::bhome_msg::MsgTopicList* _internal_mutable_topics(); public: void unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics); ::bhome_msg::MsgTopicList* unsafe_arena_release_topics(); // @@protoc_insertion_point(class_scope:bhome_msg.MsgSubscribe) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::bhome_msg::MsgTopicList* topics_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgUnsubscribe final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgUnsubscribe) */ { public: inline MsgUnsubscribe() : MsgUnsubscribe(nullptr) {} ~MsgUnsubscribe() override; explicit constexpr MsgUnsubscribe(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgUnsubscribe(const MsgUnsubscribe& from); MsgUnsubscribe(MsgUnsubscribe&& from) noexcept : MsgUnsubscribe() { *this = ::std::move(from); } inline MsgUnsubscribe& operator=(const MsgUnsubscribe& from) { CopyFrom(from); return *this; } inline MsgUnsubscribe& operator=(MsgUnsubscribe&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgUnsubscribe& default_instance() { return *internal_default_instance(); } static inline const MsgUnsubscribe* internal_default_instance() { return reinterpret_cast( &_MsgUnsubscribe_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(MsgUnsubscribe& a, MsgUnsubscribe& b) { a.Swap(&b); } inline void Swap(MsgUnsubscribe* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgUnsubscribe* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgUnsubscribe* New() const final { return new MsgUnsubscribe(); } MsgUnsubscribe* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgUnsubscribe& from); void MergeFrom(const MsgUnsubscribe& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgUnsubscribe* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgUnsubscribe"; } protected: explicit MsgUnsubscribe(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kTopicsFieldNumber = 1, }; // .bhome_msg.MsgTopicList topics = 1; bool has_topics() const; private: bool _internal_has_topics() const; public: void clear_topics(); const ::bhome_msg::MsgTopicList& topics() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgTopicList* release_topics(); ::bhome_msg::MsgTopicList* mutable_topics(); void set_allocated_topics(::bhome_msg::MsgTopicList* topics); private: const ::bhome_msg::MsgTopicList& _internal_topics() const; ::bhome_msg::MsgTopicList* _internal_mutable_topics(); public: void unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics); ::bhome_msg::MsgTopicList* unsafe_arena_release_topics(); // @@protoc_insertion_point(class_scope:bhome_msg.MsgUnsubscribe) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::bhome_msg::MsgTopicList* topics_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgRegisterRPC final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgRegisterRPC) */ { public: inline MsgRegisterRPC() : MsgRegisterRPC(nullptr) {} ~MsgRegisterRPC() override; explicit constexpr MsgRegisterRPC(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgRegisterRPC(const MsgRegisterRPC& from); MsgRegisterRPC(MsgRegisterRPC&& from) noexcept : MsgRegisterRPC() { *this = ::std::move(from); } inline MsgRegisterRPC& operator=(const MsgRegisterRPC& from) { CopyFrom(from); return *this; } inline MsgRegisterRPC& operator=(MsgRegisterRPC&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgRegisterRPC& default_instance() { return *internal_default_instance(); } static inline const MsgRegisterRPC* internal_default_instance() { return reinterpret_cast( &_MsgRegisterRPC_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(MsgRegisterRPC& a, MsgRegisterRPC& b) { a.Swap(&b); } inline void Swap(MsgRegisterRPC* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgRegisterRPC* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgRegisterRPC* New() const final { return new MsgRegisterRPC(); } MsgRegisterRPC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgRegisterRPC& from); void MergeFrom(const MsgRegisterRPC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgRegisterRPC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgRegisterRPC"; } protected: explicit MsgRegisterRPC(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kTopicsFieldNumber = 1, }; // .bhome_msg.MsgTopicList topics = 1; bool has_topics() const; private: bool _internal_has_topics() const; public: void clear_topics(); const ::bhome_msg::MsgTopicList& topics() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgTopicList* release_topics(); ::bhome_msg::MsgTopicList* mutable_topics(); void set_allocated_topics(::bhome_msg::MsgTopicList* topics); private: const ::bhome_msg::MsgTopicList& _internal_topics() const; ::bhome_msg::MsgTopicList* _internal_mutable_topics(); public: void unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics); ::bhome_msg::MsgTopicList* unsafe_arena_release_topics(); // @@protoc_insertion_point(class_scope:bhome_msg.MsgRegisterRPC) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::bhome_msg::MsgTopicList* topics_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgProcInit final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgProcInit) */ { public: inline MsgProcInit() : MsgProcInit(nullptr) {} ~MsgProcInit() override; explicit constexpr MsgProcInit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgProcInit(const MsgProcInit& from); MsgProcInit(MsgProcInit&& from) noexcept : MsgProcInit() { *this = ::std::move(from); } inline MsgProcInit& operator=(const MsgProcInit& from) { CopyFrom(from); return *this; } inline MsgProcInit& operator=(MsgProcInit&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgProcInit& default_instance() { return *internal_default_instance(); } static inline const MsgProcInit* internal_default_instance() { return reinterpret_cast( &_MsgProcInit_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(MsgProcInit& a, MsgProcInit& b) { a.Swap(&b); } inline void Swap(MsgProcInit* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgProcInit* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgProcInit* New() const final { return new MsgProcInit(); } MsgProcInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgProcInit& from); void MergeFrom(const MsgProcInit& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgProcInit* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgProcInit"; } protected: explicit MsgProcInit(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kExtraMqNumFieldNumber = 1, }; // int32 extra_mq_num = 1; void clear_extra_mq_num(); ::PROTOBUF_NAMESPACE_ID::int32 extra_mq_num() const; void set_extra_mq_num(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_extra_mq_num() const; void _internal_set_extra_mq_num(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:bhome_msg.MsgProcInit) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::int32 extra_mq_num_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgProcInitReply final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgProcInitReply) */ { public: inline MsgProcInitReply() : MsgProcInitReply(nullptr) {} ~MsgProcInitReply() override; explicit constexpr MsgProcInitReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgProcInitReply(const MsgProcInitReply& from); MsgProcInitReply(MsgProcInitReply&& from) noexcept : MsgProcInitReply() { *this = ::std::move(from); } inline MsgProcInitReply& operator=(const MsgProcInitReply& from) { CopyFrom(from); return *this; } inline MsgProcInitReply& operator=(MsgProcInitReply&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgProcInitReply& default_instance() { return *internal_default_instance(); } static inline const MsgProcInitReply* internal_default_instance() { return reinterpret_cast( &_MsgProcInitReply_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(MsgProcInitReply& a, MsgProcInitReply& b) { a.Swap(&b); } inline void Swap(MsgProcInitReply* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgProcInitReply* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgProcInitReply* New() const final { return new MsgProcInitReply(); } MsgProcInitReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgProcInitReply& from); void MergeFrom(const MsgProcInitReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgProcInitReply* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgProcInitReply"; } protected: explicit MsgProcInitReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kExtraMqsFieldNumber = 3, kErrmsgFieldNumber = 1, kProcIndexFieldNumber = 2, }; // repeated .bhome_msg.BHAddress extra_mqs = 3; int extra_mqs_size() const; private: int _internal_extra_mqs_size() const; public: void clear_extra_mqs(); ::bhome_msg::BHAddress* mutable_extra_mqs(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >* mutable_extra_mqs(); private: const ::bhome_msg::BHAddress& _internal_extra_mqs(int index) const; ::bhome_msg::BHAddress* _internal_add_extra_mqs(); public: const ::bhome_msg::BHAddress& extra_mqs(int index) const; ::bhome_msg::BHAddress* add_extra_mqs(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >& extra_mqs() const; // .bhome_msg.ErrorMsg errmsg = 1; bool has_errmsg() const; private: bool _internal_has_errmsg() const; public: void clear_errmsg(); const ::bhome_msg::ErrorMsg& errmsg() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::ErrorMsg* release_errmsg(); ::bhome_msg::ErrorMsg* mutable_errmsg(); void set_allocated_errmsg(::bhome_msg::ErrorMsg* errmsg); private: const ::bhome_msg::ErrorMsg& _internal_errmsg() const; ::bhome_msg::ErrorMsg* _internal_mutable_errmsg(); public: void unsafe_arena_set_allocated_errmsg( ::bhome_msg::ErrorMsg* errmsg); ::bhome_msg::ErrorMsg* unsafe_arena_release_errmsg(); // int32 proc_index = 2; void clear_proc_index(); ::PROTOBUF_NAMESPACE_ID::int32 proc_index() const; void set_proc_index(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_proc_index() const; void _internal_set_proc_index(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:bhome_msg.MsgProcInitReply) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress > extra_mqs_; ::bhome_msg::ErrorMsg* errmsg_; ::PROTOBUF_NAMESPACE_ID::int32 proc_index_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgRequest final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgRequest) */ { public: inline MsgRequest() : MsgRequest(nullptr) {} ~MsgRequest() override; explicit constexpr MsgRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgRequest(const MsgRequest& from); MsgRequest(MsgRequest&& from) noexcept : MsgRequest() { *this = ::std::move(from); } inline MsgRequest& operator=(const MsgRequest& from) { CopyFrom(from); return *this; } inline MsgRequest& operator=(MsgRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgRequest& default_instance() { return *internal_default_instance(); } enum RequestCase { kRegister = 1, kTopicRequest = 2, kTopicQuery = 3, REQUEST_NOT_SET = 0, }; static inline const MsgRequest* internal_default_instance() { return reinterpret_cast( &_MsgRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(MsgRequest& a, MsgRequest& b) { a.Swap(&b); } inline void Swap(MsgRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgRequest* New() const final { return new MsgRequest(); } MsgRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgRequest& from); void MergeFrom(const MsgRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgRequest"; } protected: explicit MsgRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRegisterFieldNumber = 1, kTopicRequestFieldNumber = 2, kTopicQueryFieldNumber = 3, }; // .bhome_msg.MsgRegister register = 1; bool has_register_() const; private: bool _internal_has_register_() const; public: void clear_register_(); const ::bhome_msg::MsgRegister& register_() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgRegister* release_register_(); ::bhome_msg::MsgRegister* mutable_register_(); void set_allocated_register_(::bhome_msg::MsgRegister* register_); private: const ::bhome_msg::MsgRegister& _internal_register_() const; ::bhome_msg::MsgRegister* _internal_mutable_register_(); public: void unsafe_arena_set_allocated_register_( ::bhome_msg::MsgRegister* register_); ::bhome_msg::MsgRegister* unsafe_arena_release_register_(); // .bhome_msg.MsgRequestTopic topic_request = 2; bool has_topic_request() const; private: bool _internal_has_topic_request() const; public: void clear_topic_request(); const ::bhome_msg::MsgRequestTopic& topic_request() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgRequestTopic* release_topic_request(); ::bhome_msg::MsgRequestTopic* mutable_topic_request(); void set_allocated_topic_request(::bhome_msg::MsgRequestTopic* topic_request); private: const ::bhome_msg::MsgRequestTopic& _internal_topic_request() const; ::bhome_msg::MsgRequestTopic* _internal_mutable_topic_request(); public: void unsafe_arena_set_allocated_topic_request( ::bhome_msg::MsgRequestTopic* topic_request); ::bhome_msg::MsgRequestTopic* unsafe_arena_release_topic_request(); // .bhome_msg.MsgQueryTopic topic_query = 3; bool has_topic_query() const; private: bool _internal_has_topic_query() const; public: void clear_topic_query(); const ::bhome_msg::MsgQueryTopic& topic_query() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgQueryTopic* release_topic_query(); ::bhome_msg::MsgQueryTopic* mutable_topic_query(); void set_allocated_topic_query(::bhome_msg::MsgQueryTopic* topic_query); private: const ::bhome_msg::MsgQueryTopic& _internal_topic_query() const; ::bhome_msg::MsgQueryTopic* _internal_mutable_topic_query(); public: void unsafe_arena_set_allocated_topic_query( ::bhome_msg::MsgQueryTopic* topic_query); ::bhome_msg::MsgQueryTopic* unsafe_arena_release_topic_query(); void clear_request(); RequestCase request_case() const; // @@protoc_insertion_point(class_scope:bhome_msg.MsgRequest) private: class _Internal; void set_has_register_(); void set_has_topic_request(); void set_has_topic_query(); inline bool has_request() const; inline void clear_has_request(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; union RequestUnion { constexpr RequestUnion() : _constinit_{} {} ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::bhome_msg::MsgRegister* register__; ::bhome_msg::MsgRequestTopic* topic_request_; ::bhome_msg::MsgQueryTopic* topic_query_; } request_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class MsgReply final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgReply) */ { public: inline MsgReply() : MsgReply(nullptr) {} ~MsgReply() override; explicit constexpr MsgReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MsgReply(const MsgReply& from); MsgReply(MsgReply&& from) noexcept : MsgReply() { *this = ::std::move(from); } inline MsgReply& operator=(const MsgReply& from) { CopyFrom(from); return *this; } inline MsgReply& operator=(MsgReply&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const MsgReply& default_instance() { return *internal_default_instance(); } static inline const MsgReply* internal_default_instance() { return reinterpret_cast( &_MsgReply_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(MsgReply& a, MsgReply& b) { a.Swap(&b); } inline void Swap(MsgReply* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MsgReply* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MsgReply* New() const final { return new MsgReply(); } MsgReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MsgReply& from); void MergeFrom(const MsgReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MsgReply* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.MsgReply"; } protected: explicit MsgReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kErrMsgFieldNumber = 1, }; // .bhome_msg.ErrorMsg err_msg = 1; bool has_err_msg() const; private: bool _internal_has_err_msg() const; public: void clear_err_msg(); const ::bhome_msg::ErrorMsg& err_msg() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::ErrorMsg* release_err_msg(); ::bhome_msg::ErrorMsg* mutable_err_msg(); void set_allocated_err_msg(::bhome_msg::ErrorMsg* err_msg); private: const ::bhome_msg::ErrorMsg& _internal_err_msg() const; ::bhome_msg::ErrorMsg* _internal_mutable_err_msg(); public: void unsafe_arena_set_allocated_err_msg( ::bhome_msg::ErrorMsg* err_msg); ::bhome_msg::ErrorMsg* unsafe_arena_release_err_msg(); // @@protoc_insertion_point(class_scope:bhome_msg.MsgReply) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::bhome_msg::ErrorMsg* err_msg_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // ------------------------------------------------------------------- class BHMsgBody final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.BHMsgBody) */ { public: inline BHMsgBody() : BHMsgBody(nullptr) {} ~BHMsgBody() override; explicit constexpr BHMsgBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); BHMsgBody(const BHMsgBody& from); BHMsgBody(BHMsgBody&& from) noexcept : BHMsgBody() { *this = ::std::move(from); } inline BHMsgBody& operator=(const BHMsgBody& from) { CopyFrom(from); return *this; } inline BHMsgBody& operator=(BHMsgBody&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const BHMsgBody& default_instance() { return *internal_default_instance(); } enum ReqrepCase { kRequest = 1, kReply = 2, REQREP_NOT_SET = 0, }; static inline const BHMsgBody* internal_default_instance() { return reinterpret_cast( &_BHMsgBody_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(BHMsgBody& a, BHMsgBody& b) { a.Swap(&b); } inline void Swap(BHMsgBody* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(BHMsgBody* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline BHMsgBody* New() const final { return new BHMsgBody(); } BHMsgBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const BHMsgBody& from); void MergeFrom(const BHMsgBody& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; void DiscardUnknownFields(); int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(BHMsgBody* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "bhome_msg.BHMsgBody"; } protected: explicit BHMsgBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRequestFieldNumber = 1, kReplyFieldNumber = 2, }; // .bhome_msg.MsgRequest request = 1; bool has_request() const; private: bool _internal_has_request() const; public: void clear_request(); const ::bhome_msg::MsgRequest& request() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgRequest* release_request(); ::bhome_msg::MsgRequest* mutable_request(); void set_allocated_request(::bhome_msg::MsgRequest* request); private: const ::bhome_msg::MsgRequest& _internal_request() const; ::bhome_msg::MsgRequest* _internal_mutable_request(); public: void unsafe_arena_set_allocated_request( ::bhome_msg::MsgRequest* request); ::bhome_msg::MsgRequest* unsafe_arena_release_request(); // .bhome_msg.MsgReply reply = 2; bool has_reply() const; private: bool _internal_has_reply() const; public: void clear_reply(); const ::bhome_msg::MsgReply& reply() const; PROTOBUF_MUST_USE_RESULT ::bhome_msg::MsgReply* release_reply(); ::bhome_msg::MsgReply* mutable_reply(); void set_allocated_reply(::bhome_msg::MsgReply* reply); private: const ::bhome_msg::MsgReply& _internal_reply() const; ::bhome_msg::MsgReply* _internal_mutable_reply(); public: void unsafe_arena_set_allocated_reply( ::bhome_msg::MsgReply* reply); ::bhome_msg::MsgReply* unsafe_arena_release_reply(); void clear_reqrep(); ReqrepCase reqrep_case() const; // @@protoc_insertion_point(class_scope:bhome_msg.BHMsgBody) private: class _Internal; void set_has_request(); void set_has_reply(); inline bool has_reqrep() const; inline void clear_has_reqrep(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; union ReqrepUnion { constexpr ReqrepUnion() : _constinit_{} {} ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::bhome_msg::MsgRequest* request_; ::bhome_msg::MsgReply* reply_; } reqrep_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; friend struct ::TableStruct_bhome_5fmsg_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // BHMsgHead // bytes msg_id = 1; inline void BHMsgHead::clear_msg_id() { msg_id_.ClearToEmpty(); } inline const std::string& BHMsgHead::msg_id() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.msg_id) return _internal_msg_id(); } template inline PROTOBUF_ALWAYS_INLINE void BHMsgHead::set_msg_id(ArgT0&& arg0, ArgT... args) { msg_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.msg_id) } inline std::string* BHMsgHead::mutable_msg_id() { std::string* _s = _internal_mutable_msg_id(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.msg_id) return _s; } inline const std::string& BHMsgHead::_internal_msg_id() const { return msg_id_.Get(); } inline void BHMsgHead::_internal_set_msg_id(const std::string& value) { msg_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* BHMsgHead::_internal_mutable_msg_id() { return msg_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* BHMsgHead::release_msg_id() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.msg_id) return msg_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void BHMsgHead::set_allocated_msg_id(std::string* msg_id) { if (msg_id != nullptr) { } else { } msg_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_id, GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:bhome_msg.BHMsgHead.msg_id) } // repeated .bhome_msg.BHAddress route = 2; inline int BHMsgHead::_internal_route_size() const { return route_.size(); } inline int BHMsgHead::route_size() const { return _internal_route_size(); } inline ::bhome_msg::BHAddress* BHMsgHead::mutable_route(int index) { // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.route) return route_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >* BHMsgHead::mutable_route() { // @@protoc_insertion_point(field_mutable_list:bhome_msg.BHMsgHead.route) return &route_; } inline const ::bhome_msg::BHAddress& BHMsgHead::_internal_route(int index) const { return route_.Get(index); } inline const ::bhome_msg::BHAddress& BHMsgHead::route(int index) const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.route) return _internal_route(index); } inline ::bhome_msg::BHAddress* BHMsgHead::_internal_add_route() { return route_.Add(); } inline ::bhome_msg::BHAddress* BHMsgHead::add_route() { ::bhome_msg::BHAddress* _add = _internal_add_route(); // @@protoc_insertion_point(field_add:bhome_msg.BHMsgHead.route) return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >& BHMsgHead::route() const { // @@protoc_insertion_point(field_list:bhome_msg.BHMsgHead.route) return route_; } // int64 timestamp = 3; inline void BHMsgHead::clear_timestamp() { timestamp_ = int64_t{0}; } inline ::PROTOBUF_NAMESPACE_ID::int64 BHMsgHead::_internal_timestamp() const { return timestamp_; } inline ::PROTOBUF_NAMESPACE_ID::int64 BHMsgHead::timestamp() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.timestamp) return _internal_timestamp(); } inline void BHMsgHead::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; } inline void BHMsgHead::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { _internal_set_timestamp(value); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.timestamp) } // int32 type = 4; inline void BHMsgHead::clear_type() { type_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 BHMsgHead::_internal_type() const { return type_; } inline ::PROTOBUF_NAMESPACE_ID::int32 BHMsgHead::type() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.type) return _internal_type(); } inline void BHMsgHead::_internal_set_type(::PROTOBUF_NAMESPACE_ID::int32 value) { type_ = value; } inline void BHMsgHead::set_type(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.type) } // uint64 ssn_id = 5; inline void BHMsgHead::clear_ssn_id() { ssn_id_ = uint64_t{0u}; } inline ::PROTOBUF_NAMESPACE_ID::uint64 BHMsgHead::_internal_ssn_id() const { return ssn_id_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 BHMsgHead::ssn_id() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.ssn_id) return _internal_ssn_id(); } inline void BHMsgHead::_internal_set_ssn_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { ssn_id_ = value; } inline void BHMsgHead::set_ssn_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_ssn_id(value); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.ssn_id) } // bytes proc_id = 6; inline void BHMsgHead::clear_proc_id() { proc_id_.ClearToEmpty(); } inline const std::string& BHMsgHead::proc_id() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.proc_id) return _internal_proc_id(); } template inline PROTOBUF_ALWAYS_INLINE void BHMsgHead::set_proc_id(ArgT0&& arg0, ArgT... args) { proc_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.proc_id) } inline std::string* BHMsgHead::mutable_proc_id() { std::string* _s = _internal_mutable_proc_id(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.proc_id) return _s; } inline const std::string& BHMsgHead::_internal_proc_id() const { return proc_id_.Get(); } inline void BHMsgHead::_internal_set_proc_id(const std::string& value) { proc_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* BHMsgHead::_internal_mutable_proc_id() { return proc_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* BHMsgHead::release_proc_id() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.proc_id) return proc_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void BHMsgHead::set_allocated_proc_id(std::string* proc_id) { if (proc_id != nullptr) { } else { } proc_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proc_id, GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:bhome_msg.BHMsgHead.proc_id) } // bytes topic = 7; inline void BHMsgHead::clear_topic() { topic_.ClearToEmpty(); } inline const std::string& BHMsgHead::topic() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.topic) return _internal_topic(); } template inline PROTOBUF_ALWAYS_INLINE void BHMsgHead::set_topic(ArgT0&& arg0, ArgT... args) { topic_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.topic) } inline std::string* BHMsgHead::mutable_topic() { std::string* _s = _internal_mutable_topic(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.topic) return _s; } inline const std::string& BHMsgHead::_internal_topic() const { return topic_.Get(); } inline void BHMsgHead::_internal_set_topic(const std::string& value) { topic_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* BHMsgHead::_internal_mutable_topic() { return topic_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* BHMsgHead::release_topic() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.topic) return topic_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void BHMsgHead::set_allocated_topic(std::string* topic) { if (topic != nullptr) { } else { } topic_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic, GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:bhome_msg.BHMsgHead.topic) } // .bhome_msg.BHAddress dest = 8; inline bool BHMsgHead::_internal_has_dest() const { return this != internal_default_instance() && dest_ != nullptr; } inline bool BHMsgHead::has_dest() const { return _internal_has_dest(); } inline const ::bhome_msg::BHAddress& BHMsgHead::_internal_dest() const { const ::bhome_msg::BHAddress* p = dest_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_BHAddress_default_instance_); } inline const ::bhome_msg::BHAddress& BHMsgHead::dest() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.dest) return _internal_dest(); } inline void BHMsgHead::unsafe_arena_set_allocated_dest( ::bhome_msg::BHAddress* dest) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dest_); } dest_ = dest; if (dest) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.BHMsgHead.dest) } inline ::bhome_msg::BHAddress* BHMsgHead::release_dest() { ::bhome_msg::BHAddress* temp = dest_; dest_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::BHAddress* BHMsgHead::unsafe_arena_release_dest() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.dest) ::bhome_msg::BHAddress* temp = dest_; dest_ = nullptr; return temp; } inline ::bhome_msg::BHAddress* BHMsgHead::_internal_mutable_dest() { if (dest_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::BHAddress>(GetArenaForAllocation()); dest_ = p; } return dest_; } inline ::bhome_msg::BHAddress* BHMsgHead::mutable_dest() { ::bhome_msg::BHAddress* _msg = _internal_mutable_dest(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.dest) return _msg; } inline void BHMsgHead::set_allocated_dest(::bhome_msg::BHAddress* dest) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(dest_); } if (dest) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dest)); if (message_arena != submessage_arena) { dest = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, dest, submessage_arena); } } else { } dest_ = dest; // @@protoc_insertion_point(field_set_allocated:bhome_msg.BHMsgHead.dest) } // ------------------------------------------------------------------- // MsgSubscribe // .bhome_msg.MsgTopicList topics = 1; inline bool MsgSubscribe::_internal_has_topics() const { return this != internal_default_instance() && topics_ != nullptr; } inline bool MsgSubscribe::has_topics() const { return _internal_has_topics(); } inline const ::bhome_msg::MsgTopicList& MsgSubscribe::_internal_topics() const { const ::bhome_msg::MsgTopicList* p = topics_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_MsgTopicList_default_instance_); } inline const ::bhome_msg::MsgTopicList& MsgSubscribe::topics() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgSubscribe.topics) return _internal_topics(); } inline void MsgSubscribe::unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } topics_ = topics; if (topics) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgSubscribe.topics) } inline ::bhome_msg::MsgTopicList* MsgSubscribe::release_topics() { ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::MsgTopicList* MsgSubscribe::unsafe_arena_release_topics() { // @@protoc_insertion_point(field_release:bhome_msg.MsgSubscribe.topics) ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; return temp; } inline ::bhome_msg::MsgTopicList* MsgSubscribe::_internal_mutable_topics() { if (topics_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::MsgTopicList>(GetArenaForAllocation()); topics_ = p; } return topics_; } inline ::bhome_msg::MsgTopicList* MsgSubscribe::mutable_topics() { ::bhome_msg::MsgTopicList* _msg = _internal_mutable_topics(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgSubscribe.topics) return _msg; } inline void MsgSubscribe::set_allocated_topics(::bhome_msg::MsgTopicList* topics) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } if (topics) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics)); if (message_arena != submessage_arena) { topics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, topics, submessage_arena); } } else { } topics_ = topics; // @@protoc_insertion_point(field_set_allocated:bhome_msg.MsgSubscribe.topics) } // ------------------------------------------------------------------- // MsgUnsubscribe // .bhome_msg.MsgTopicList topics = 1; inline bool MsgUnsubscribe::_internal_has_topics() const { return this != internal_default_instance() && topics_ != nullptr; } inline bool MsgUnsubscribe::has_topics() const { return _internal_has_topics(); } inline const ::bhome_msg::MsgTopicList& MsgUnsubscribe::_internal_topics() const { const ::bhome_msg::MsgTopicList* p = topics_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_MsgTopicList_default_instance_); } inline const ::bhome_msg::MsgTopicList& MsgUnsubscribe::topics() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgUnsubscribe.topics) return _internal_topics(); } inline void MsgUnsubscribe::unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } topics_ = topics; if (topics) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgUnsubscribe.topics) } inline ::bhome_msg::MsgTopicList* MsgUnsubscribe::release_topics() { ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::MsgTopicList* MsgUnsubscribe::unsafe_arena_release_topics() { // @@protoc_insertion_point(field_release:bhome_msg.MsgUnsubscribe.topics) ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; return temp; } inline ::bhome_msg::MsgTopicList* MsgUnsubscribe::_internal_mutable_topics() { if (topics_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::MsgTopicList>(GetArenaForAllocation()); topics_ = p; } return topics_; } inline ::bhome_msg::MsgTopicList* MsgUnsubscribe::mutable_topics() { ::bhome_msg::MsgTopicList* _msg = _internal_mutable_topics(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgUnsubscribe.topics) return _msg; } inline void MsgUnsubscribe::set_allocated_topics(::bhome_msg::MsgTopicList* topics) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } if (topics) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics)); if (message_arena != submessage_arena) { topics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, topics, submessage_arena); } } else { } topics_ = topics; // @@protoc_insertion_point(field_set_allocated:bhome_msg.MsgUnsubscribe.topics) } // ------------------------------------------------------------------- // MsgRegisterRPC // .bhome_msg.MsgTopicList topics = 1; inline bool MsgRegisterRPC::_internal_has_topics() const { return this != internal_default_instance() && topics_ != nullptr; } inline bool MsgRegisterRPC::has_topics() const { return _internal_has_topics(); } inline const ::bhome_msg::MsgTopicList& MsgRegisterRPC::_internal_topics() const { const ::bhome_msg::MsgTopicList* p = topics_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_MsgTopicList_default_instance_); } inline const ::bhome_msg::MsgTopicList& MsgRegisterRPC::topics() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgRegisterRPC.topics) return _internal_topics(); } inline void MsgRegisterRPC::unsafe_arena_set_allocated_topics( ::bhome_msg::MsgTopicList* topics) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } topics_ = topics; if (topics) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgRegisterRPC.topics) } inline ::bhome_msg::MsgTopicList* MsgRegisterRPC::release_topics() { ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::MsgTopicList* MsgRegisterRPC::unsafe_arena_release_topics() { // @@protoc_insertion_point(field_release:bhome_msg.MsgRegisterRPC.topics) ::bhome_msg::MsgTopicList* temp = topics_; topics_ = nullptr; return temp; } inline ::bhome_msg::MsgTopicList* MsgRegisterRPC::_internal_mutable_topics() { if (topics_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::MsgTopicList>(GetArenaForAllocation()); topics_ = p; } return topics_; } inline ::bhome_msg::MsgTopicList* MsgRegisterRPC::mutable_topics() { ::bhome_msg::MsgTopicList* _msg = _internal_mutable_topics(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgRegisterRPC.topics) return _msg; } inline void MsgRegisterRPC::set_allocated_topics(::bhome_msg::MsgTopicList* topics) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_); } if (topics) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics)); if (message_arena != submessage_arena) { topics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, topics, submessage_arena); } } else { } topics_ = topics; // @@protoc_insertion_point(field_set_allocated:bhome_msg.MsgRegisterRPC.topics) } // ------------------------------------------------------------------- // MsgProcInit // int32 extra_mq_num = 1; inline void MsgProcInit::clear_extra_mq_num() { extra_mq_num_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 MsgProcInit::_internal_extra_mq_num() const { return extra_mq_num_; } inline ::PROTOBUF_NAMESPACE_ID::int32 MsgProcInit::extra_mq_num() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgProcInit.extra_mq_num) return _internal_extra_mq_num(); } inline void MsgProcInit::_internal_set_extra_mq_num(::PROTOBUF_NAMESPACE_ID::int32 value) { extra_mq_num_ = value; } inline void MsgProcInit::set_extra_mq_num(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_extra_mq_num(value); // @@protoc_insertion_point(field_set:bhome_msg.MsgProcInit.extra_mq_num) } // ------------------------------------------------------------------- // MsgProcInitReply // .bhome_msg.ErrorMsg errmsg = 1; inline bool MsgProcInitReply::_internal_has_errmsg() const { return this != internal_default_instance() && errmsg_ != nullptr; } inline bool MsgProcInitReply::has_errmsg() const { return _internal_has_errmsg(); } inline const ::bhome_msg::ErrorMsg& MsgProcInitReply::_internal_errmsg() const { const ::bhome_msg::ErrorMsg* p = errmsg_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_ErrorMsg_default_instance_); } inline const ::bhome_msg::ErrorMsg& MsgProcInitReply::errmsg() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgProcInitReply.errmsg) return _internal_errmsg(); } inline void MsgProcInitReply::unsafe_arena_set_allocated_errmsg( ::bhome_msg::ErrorMsg* errmsg) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(errmsg_); } errmsg_ = errmsg; if (errmsg) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgProcInitReply.errmsg) } inline ::bhome_msg::ErrorMsg* MsgProcInitReply::release_errmsg() { ::bhome_msg::ErrorMsg* temp = errmsg_; errmsg_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::ErrorMsg* MsgProcInitReply::unsafe_arena_release_errmsg() { // @@protoc_insertion_point(field_release:bhome_msg.MsgProcInitReply.errmsg) ::bhome_msg::ErrorMsg* temp = errmsg_; errmsg_ = nullptr; return temp; } inline ::bhome_msg::ErrorMsg* MsgProcInitReply::_internal_mutable_errmsg() { if (errmsg_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::ErrorMsg>(GetArenaForAllocation()); errmsg_ = p; } return errmsg_; } inline ::bhome_msg::ErrorMsg* MsgProcInitReply::mutable_errmsg() { ::bhome_msg::ErrorMsg* _msg = _internal_mutable_errmsg(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgProcInitReply.errmsg) return _msg; } inline void MsgProcInitReply::set_allocated_errmsg(::bhome_msg::ErrorMsg* errmsg) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(errmsg_); } if (errmsg) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(errmsg)); if (message_arena != submessage_arena) { errmsg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, errmsg, submessage_arena); } } else { } errmsg_ = errmsg; // @@protoc_insertion_point(field_set_allocated:bhome_msg.MsgProcInitReply.errmsg) } // int32 proc_index = 2; inline void MsgProcInitReply::clear_proc_index() { proc_index_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 MsgProcInitReply::_internal_proc_index() const { return proc_index_; } inline ::PROTOBUF_NAMESPACE_ID::int32 MsgProcInitReply::proc_index() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgProcInitReply.proc_index) return _internal_proc_index(); } inline void MsgProcInitReply::_internal_set_proc_index(::PROTOBUF_NAMESPACE_ID::int32 value) { proc_index_ = value; } inline void MsgProcInitReply::set_proc_index(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_proc_index(value); // @@protoc_insertion_point(field_set:bhome_msg.MsgProcInitReply.proc_index) } // repeated .bhome_msg.BHAddress extra_mqs = 3; inline int MsgProcInitReply::_internal_extra_mqs_size() const { return extra_mqs_.size(); } inline int MsgProcInitReply::extra_mqs_size() const { return _internal_extra_mqs_size(); } inline ::bhome_msg::BHAddress* MsgProcInitReply::mutable_extra_mqs(int index) { // @@protoc_insertion_point(field_mutable:bhome_msg.MsgProcInitReply.extra_mqs) return extra_mqs_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >* MsgProcInitReply::mutable_extra_mqs() { // @@protoc_insertion_point(field_mutable_list:bhome_msg.MsgProcInitReply.extra_mqs) return &extra_mqs_; } inline const ::bhome_msg::BHAddress& MsgProcInitReply::_internal_extra_mqs(int index) const { return extra_mqs_.Get(index); } inline const ::bhome_msg::BHAddress& MsgProcInitReply::extra_mqs(int index) const { // @@protoc_insertion_point(field_get:bhome_msg.MsgProcInitReply.extra_mqs) return _internal_extra_mqs(index); } inline ::bhome_msg::BHAddress* MsgProcInitReply::_internal_add_extra_mqs() { return extra_mqs_.Add(); } inline ::bhome_msg::BHAddress* MsgProcInitReply::add_extra_mqs() { ::bhome_msg::BHAddress* _add = _internal_add_extra_mqs(); // @@protoc_insertion_point(field_add:bhome_msg.MsgProcInitReply.extra_mqs) return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::bhome_msg::BHAddress >& MsgProcInitReply::extra_mqs() const { // @@protoc_insertion_point(field_list:bhome_msg.MsgProcInitReply.extra_mqs) return extra_mqs_; } // ------------------------------------------------------------------- // MsgRequest // .bhome_msg.MsgRegister register = 1; inline bool MsgRequest::_internal_has_register_() const { return request_case() == kRegister; } inline bool MsgRequest::has_register_() const { return _internal_has_register_(); } inline void MsgRequest::set_has_register_() { _oneof_case_[0] = kRegister; } inline ::bhome_msg::MsgRegister* MsgRequest::release_register_() { // @@protoc_insertion_point(field_release:bhome_msg.MsgRequest.register) if (_internal_has_register_()) { clear_has_request(); ::bhome_msg::MsgRegister* temp = request_.register__; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } request_.register__ = nullptr; return temp; } else { return nullptr; } } inline const ::bhome_msg::MsgRegister& MsgRequest::_internal_register_() const { return _internal_has_register_() ? *request_.register__ : reinterpret_cast< ::bhome_msg::MsgRegister&>(::bhome_msg::_MsgRegister_default_instance_); } inline const ::bhome_msg::MsgRegister& MsgRequest::register_() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgRequest.register) return _internal_register_(); } inline ::bhome_msg::MsgRegister* MsgRequest::unsafe_arena_release_register_() { // @@protoc_insertion_point(field_unsafe_arena_release:bhome_msg.MsgRequest.register) if (_internal_has_register_()) { clear_has_request(); ::bhome_msg::MsgRegister* temp = request_.register__; request_.register__ = nullptr; return temp; } else { return nullptr; } } inline void MsgRequest::unsafe_arena_set_allocated_register_(::bhome_msg::MsgRegister* register_) { clear_request(); if (register_) { set_has_register_(); request_.register__ = register_; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgRequest.register) } inline ::bhome_msg::MsgRegister* MsgRequest::_internal_mutable_register_() { if (!_internal_has_register_()) { clear_request(); set_has_register_(); request_.register__ = CreateMaybeMessage< ::bhome_msg::MsgRegister >(GetArenaForAllocation()); } return request_.register__; } inline ::bhome_msg::MsgRegister* MsgRequest::mutable_register_() { ::bhome_msg::MsgRegister* _msg = _internal_mutable_register_(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.register) return _msg; } // .bhome_msg.MsgRequestTopic topic_request = 2; inline bool MsgRequest::_internal_has_topic_request() const { return request_case() == kTopicRequest; } inline bool MsgRequest::has_topic_request() const { return _internal_has_topic_request(); } inline void MsgRequest::set_has_topic_request() { _oneof_case_[0] = kTopicRequest; } inline ::bhome_msg::MsgRequestTopic* MsgRequest::release_topic_request() { // @@protoc_insertion_point(field_release:bhome_msg.MsgRequest.topic_request) if (_internal_has_topic_request()) { clear_has_request(); ::bhome_msg::MsgRequestTopic* temp = request_.topic_request_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } request_.topic_request_ = nullptr; return temp; } else { return nullptr; } } inline const ::bhome_msg::MsgRequestTopic& MsgRequest::_internal_topic_request() const { return _internal_has_topic_request() ? *request_.topic_request_ : reinterpret_cast< ::bhome_msg::MsgRequestTopic&>(::bhome_msg::_MsgRequestTopic_default_instance_); } inline const ::bhome_msg::MsgRequestTopic& MsgRequest::topic_request() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgRequest.topic_request) return _internal_topic_request(); } inline ::bhome_msg::MsgRequestTopic* MsgRequest::unsafe_arena_release_topic_request() { // @@protoc_insertion_point(field_unsafe_arena_release:bhome_msg.MsgRequest.topic_request) if (_internal_has_topic_request()) { clear_has_request(); ::bhome_msg::MsgRequestTopic* temp = request_.topic_request_; request_.topic_request_ = nullptr; return temp; } else { return nullptr; } } inline void MsgRequest::unsafe_arena_set_allocated_topic_request(::bhome_msg::MsgRequestTopic* topic_request) { clear_request(); if (topic_request) { set_has_topic_request(); request_.topic_request_ = topic_request; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgRequest.topic_request) } inline ::bhome_msg::MsgRequestTopic* MsgRequest::_internal_mutable_topic_request() { if (!_internal_has_topic_request()) { clear_request(); set_has_topic_request(); request_.topic_request_ = CreateMaybeMessage< ::bhome_msg::MsgRequestTopic >(GetArenaForAllocation()); } return request_.topic_request_; } inline ::bhome_msg::MsgRequestTopic* MsgRequest::mutable_topic_request() { ::bhome_msg::MsgRequestTopic* _msg = _internal_mutable_topic_request(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.topic_request) return _msg; } // .bhome_msg.MsgQueryTopic topic_query = 3; inline bool MsgRequest::_internal_has_topic_query() const { return request_case() == kTopicQuery; } inline bool MsgRequest::has_topic_query() const { return _internal_has_topic_query(); } inline void MsgRequest::set_has_topic_query() { _oneof_case_[0] = kTopicQuery; } inline ::bhome_msg::MsgQueryTopic* MsgRequest::release_topic_query() { // @@protoc_insertion_point(field_release:bhome_msg.MsgRequest.topic_query) if (_internal_has_topic_query()) { clear_has_request(); ::bhome_msg::MsgQueryTopic* temp = request_.topic_query_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } request_.topic_query_ = nullptr; return temp; } else { return nullptr; } } inline const ::bhome_msg::MsgQueryTopic& MsgRequest::_internal_topic_query() const { return _internal_has_topic_query() ? *request_.topic_query_ : reinterpret_cast< ::bhome_msg::MsgQueryTopic&>(::bhome_msg::_MsgQueryTopic_default_instance_); } inline const ::bhome_msg::MsgQueryTopic& MsgRequest::topic_query() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgRequest.topic_query) return _internal_topic_query(); } inline ::bhome_msg::MsgQueryTopic* MsgRequest::unsafe_arena_release_topic_query() { // @@protoc_insertion_point(field_unsafe_arena_release:bhome_msg.MsgRequest.topic_query) if (_internal_has_topic_query()) { clear_has_request(); ::bhome_msg::MsgQueryTopic* temp = request_.topic_query_; request_.topic_query_ = nullptr; return temp; } else { return nullptr; } } inline void MsgRequest::unsafe_arena_set_allocated_topic_query(::bhome_msg::MsgQueryTopic* topic_query) { clear_request(); if (topic_query) { set_has_topic_query(); request_.topic_query_ = topic_query; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgRequest.topic_query) } inline ::bhome_msg::MsgQueryTopic* MsgRequest::_internal_mutable_topic_query() { if (!_internal_has_topic_query()) { clear_request(); set_has_topic_query(); request_.topic_query_ = CreateMaybeMessage< ::bhome_msg::MsgQueryTopic >(GetArenaForAllocation()); } return request_.topic_query_; } inline ::bhome_msg::MsgQueryTopic* MsgRequest::mutable_topic_query() { ::bhome_msg::MsgQueryTopic* _msg = _internal_mutable_topic_query(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.topic_query) return _msg; } inline bool MsgRequest::has_request() const { return request_case() != REQUEST_NOT_SET; } inline void MsgRequest::clear_has_request() { _oneof_case_[0] = REQUEST_NOT_SET; } inline MsgRequest::RequestCase MsgRequest::request_case() const { return MsgRequest::RequestCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // MsgReply // .bhome_msg.ErrorMsg err_msg = 1; inline bool MsgReply::_internal_has_err_msg() const { return this != internal_default_instance() && err_msg_ != nullptr; } inline bool MsgReply::has_err_msg() const { return _internal_has_err_msg(); } inline const ::bhome_msg::ErrorMsg& MsgReply::_internal_err_msg() const { const ::bhome_msg::ErrorMsg* p = err_msg_; return p != nullptr ? *p : reinterpret_cast( ::bhome_msg::_ErrorMsg_default_instance_); } inline const ::bhome_msg::ErrorMsg& MsgReply::err_msg() const { // @@protoc_insertion_point(field_get:bhome_msg.MsgReply.err_msg) return _internal_err_msg(); } inline void MsgReply::unsafe_arena_set_allocated_err_msg( ::bhome_msg::ErrorMsg* err_msg) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(err_msg_); } err_msg_ = err_msg; if (err_msg) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.MsgReply.err_msg) } inline ::bhome_msg::ErrorMsg* MsgReply::release_err_msg() { ::bhome_msg::ErrorMsg* temp = err_msg_; err_msg_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::bhome_msg::ErrorMsg* MsgReply::unsafe_arena_release_err_msg() { // @@protoc_insertion_point(field_release:bhome_msg.MsgReply.err_msg) ::bhome_msg::ErrorMsg* temp = err_msg_; err_msg_ = nullptr; return temp; } inline ::bhome_msg::ErrorMsg* MsgReply::_internal_mutable_err_msg() { if (err_msg_ == nullptr) { auto* p = CreateMaybeMessage<::bhome_msg::ErrorMsg>(GetArenaForAllocation()); err_msg_ = p; } return err_msg_; } inline ::bhome_msg::ErrorMsg* MsgReply::mutable_err_msg() { ::bhome_msg::ErrorMsg* _msg = _internal_mutable_err_msg(); // @@protoc_insertion_point(field_mutable:bhome_msg.MsgReply.err_msg) return _msg; } inline void MsgReply::set_allocated_err_msg(::bhome_msg::ErrorMsg* err_msg) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(err_msg_); } if (err_msg) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(err_msg)); if (message_arena != submessage_arena) { err_msg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, err_msg, submessage_arena); } } else { } err_msg_ = err_msg; // @@protoc_insertion_point(field_set_allocated:bhome_msg.MsgReply.err_msg) } // ------------------------------------------------------------------- // BHMsgBody // .bhome_msg.MsgRequest request = 1; inline bool BHMsgBody::_internal_has_request() const { return reqrep_case() == kRequest; } inline bool BHMsgBody::has_request() const { return _internal_has_request(); } inline void BHMsgBody::set_has_request() { _oneof_case_[0] = kRequest; } inline void BHMsgBody::clear_request() { if (_internal_has_request()) { if (GetArenaForAllocation() == nullptr) { delete reqrep_.request_; } clear_has_reqrep(); } } inline ::bhome_msg::MsgRequest* BHMsgBody::release_request() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgBody.request) if (_internal_has_request()) { clear_has_reqrep(); ::bhome_msg::MsgRequest* temp = reqrep_.request_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } reqrep_.request_ = nullptr; return temp; } else { return nullptr; } } inline const ::bhome_msg::MsgRequest& BHMsgBody::_internal_request() const { return _internal_has_request() ? *reqrep_.request_ : reinterpret_cast< ::bhome_msg::MsgRequest&>(::bhome_msg::_MsgRequest_default_instance_); } inline const ::bhome_msg::MsgRequest& BHMsgBody::request() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgBody.request) return _internal_request(); } inline ::bhome_msg::MsgRequest* BHMsgBody::unsafe_arena_release_request() { // @@protoc_insertion_point(field_unsafe_arena_release:bhome_msg.BHMsgBody.request) if (_internal_has_request()) { clear_has_reqrep(); ::bhome_msg::MsgRequest* temp = reqrep_.request_; reqrep_.request_ = nullptr; return temp; } else { return nullptr; } } inline void BHMsgBody::unsafe_arena_set_allocated_request(::bhome_msg::MsgRequest* request) { clear_reqrep(); if (request) { set_has_request(); reqrep_.request_ = request; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.BHMsgBody.request) } inline ::bhome_msg::MsgRequest* BHMsgBody::_internal_mutable_request() { if (!_internal_has_request()) { clear_reqrep(); set_has_request(); reqrep_.request_ = CreateMaybeMessage< ::bhome_msg::MsgRequest >(GetArenaForAllocation()); } return reqrep_.request_; } inline ::bhome_msg::MsgRequest* BHMsgBody::mutable_request() { ::bhome_msg::MsgRequest* _msg = _internal_mutable_request(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgBody.request) return _msg; } // .bhome_msg.MsgReply reply = 2; inline bool BHMsgBody::_internal_has_reply() const { return reqrep_case() == kReply; } inline bool BHMsgBody::has_reply() const { return _internal_has_reply(); } inline void BHMsgBody::set_has_reply() { _oneof_case_[0] = kReply; } inline void BHMsgBody::clear_reply() { if (_internal_has_reply()) { if (GetArenaForAllocation() == nullptr) { delete reqrep_.reply_; } clear_has_reqrep(); } } inline ::bhome_msg::MsgReply* BHMsgBody::release_reply() { // @@protoc_insertion_point(field_release:bhome_msg.BHMsgBody.reply) if (_internal_has_reply()) { clear_has_reqrep(); ::bhome_msg::MsgReply* temp = reqrep_.reply_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } reqrep_.reply_ = nullptr; return temp; } else { return nullptr; } } inline const ::bhome_msg::MsgReply& BHMsgBody::_internal_reply() const { return _internal_has_reply() ? *reqrep_.reply_ : reinterpret_cast< ::bhome_msg::MsgReply&>(::bhome_msg::_MsgReply_default_instance_); } inline const ::bhome_msg::MsgReply& BHMsgBody::reply() const { // @@protoc_insertion_point(field_get:bhome_msg.BHMsgBody.reply) return _internal_reply(); } inline ::bhome_msg::MsgReply* BHMsgBody::unsafe_arena_release_reply() { // @@protoc_insertion_point(field_unsafe_arena_release:bhome_msg.BHMsgBody.reply) if (_internal_has_reply()) { clear_has_reqrep(); ::bhome_msg::MsgReply* temp = reqrep_.reply_; reqrep_.reply_ = nullptr; return temp; } else { return nullptr; } } inline void BHMsgBody::unsafe_arena_set_allocated_reply(::bhome_msg::MsgReply* reply) { clear_reqrep(); if (reply) { set_has_reply(); reqrep_.reply_ = reply; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:bhome_msg.BHMsgBody.reply) } inline ::bhome_msg::MsgReply* BHMsgBody::_internal_mutable_reply() { if (!_internal_has_reply()) { clear_reqrep(); set_has_reply(); reqrep_.reply_ = CreateMaybeMessage< ::bhome_msg::MsgReply >(GetArenaForAllocation()); } return reqrep_.reply_; } inline ::bhome_msg::MsgReply* BHMsgBody::mutable_reply() { ::bhome_msg::MsgReply* _msg = _internal_mutable_reply(); // @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgBody.reply) return _msg; } inline bool BHMsgBody::has_reqrep() const { return reqrep_case() != REQREP_NOT_SET; } inline void BHMsgBody::clear_has_reqrep() { _oneof_case_[0] = REQREP_NOT_SET; } inline BHMsgBody::ReqrepCase BHMsgBody::reqrep_case() const { return BHMsgBody::ReqrepCase(_oneof_case_[0]); } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace bhome_msg PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::bhome_msg::MsgType> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bhome_5fmsg_2eproto