// 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 <limits>
|
#include <string>
|
|
#include <google/protobuf/port_def.inc>
|
#if PROTOBUF_VERSION < 3011000
|
#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 3011002 < 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 <google/protobuf/port_undef.inc>
|
#include <google/protobuf/io/coded_stream.h>
|
#include <google/protobuf/arena.h>
|
#include <google/protobuf/arenastring.h>
|
#include <google/protobuf/generated_message_table_driven.h>
|
#include <google/protobuf/generated_message_util.h>
|
#include <google/protobuf/inlined_string_field.h>
|
#include <google/protobuf/metadata_lite.h>
|
#include <google/protobuf/message_lite.h>
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
#include <google/protobuf/generated_enum_util.h>
|
#include "bhome_msg_api.pb.h"
|
#include "error_msg.pb.h"
|
// @@protoc_insertion_point(includes)
|
#include <google/protobuf/port_def.inc>
|
#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::AuxillaryParseTableField 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;
|
class BHMsgBodyDefaultTypeInternal;
|
extern BHMsgBodyDefaultTypeInternal _BHMsgBody_default_instance_;
|
class BHMsgHead;
|
class BHMsgHeadDefaultTypeInternal;
|
extern BHMsgHeadDefaultTypeInternal _BHMsgHead_default_instance_;
|
class MsgProcInit;
|
class MsgProcInitDefaultTypeInternal;
|
extern MsgProcInitDefaultTypeInternal _MsgProcInit_default_instance_;
|
class MsgProcInitReply;
|
class MsgProcInitReplyDefaultTypeInternal;
|
extern MsgProcInitReplyDefaultTypeInternal _MsgProcInitReply_default_instance_;
|
class MsgRegisterRPC;
|
class MsgRegisterRPCDefaultTypeInternal;
|
extern MsgRegisterRPCDefaultTypeInternal _MsgRegisterRPC_default_instance_;
|
class MsgReply;
|
class MsgReplyDefaultTypeInternal;
|
extern MsgReplyDefaultTypeInternal _MsgReply_default_instance_;
|
class MsgRequest;
|
class MsgRequestDefaultTypeInternal;
|
extern MsgRequestDefaultTypeInternal _MsgRequest_default_instance_;
|
class MsgSubscribe;
|
class MsgSubscribeDefaultTypeInternal;
|
extern MsgSubscribeDefaultTypeInternal _MsgSubscribe_default_instance_;
|
class MsgUnsubscribe;
|
class 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<typename T>
|
inline const std::string& MsgType_Name(T enum_t_value) {
|
static_assert(::std::is_same<T, MsgType>::value ||
|
::std::is_integral<T>::value,
|
"Incorrect type passed to function MsgType_Name.");
|
return MsgType_Name(static_cast<MsgType>(enum_t_value));
|
}
|
bool MsgType_Parse(
|
const std::string& name, MsgType* value);
|
// ===================================================================
|
|
class BHMsgHead :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.BHMsgHead) */ {
|
public:
|
BHMsgHead();
|
virtual ~BHMsgHead();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const BHMsgHead& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const BHMsgHead* internal_default_instance() {
|
return reinterpret_cast<const BHMsgHead*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline BHMsgHead* New() const final {
|
return CreateMaybeMessage<BHMsgHead>(nullptr);
|
}
|
|
BHMsgHead* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<BHMsgHead>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
void set_msg_id(const std::string& value);
|
void set_msg_id(std::string&& value);
|
void set_msg_id(const char* value);
|
void set_msg_id(const void* value, size_t size);
|
std::string* mutable_msg_id();
|
std::string* release_msg_id();
|
void set_allocated_msg_id(std::string* msg_id);
|
private:
|
const std::string& _internal_msg_id() const;
|
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;
|
void set_proc_id(const std::string& value);
|
void set_proc_id(std::string&& value);
|
void set_proc_id(const char* value);
|
void set_proc_id(const void* value, size_t size);
|
std::string* mutable_proc_id();
|
std::string* release_proc_id();
|
void set_allocated_proc_id(std::string* proc_id);
|
private:
|
const std::string& _internal_proc_id() const;
|
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;
|
void set_topic(const std::string& value);
|
void set_topic(std::string&& value);
|
void set_topic(const char* value);
|
void set_topic(const void* value, size_t size);
|
std::string* mutable_topic();
|
std::string* release_topic();
|
void set_allocated_topic(std::string* topic);
|
private:
|
const std::string& _internal_topic() const;
|
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;
|
::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:
|
|
// 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;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::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 :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgSubscribe) */ {
|
public:
|
MsgSubscribe();
|
virtual ~MsgSubscribe();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgSubscribe& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgSubscribe* internal_default_instance() {
|
return reinterpret_cast<const MsgSubscribe*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgSubscribe* New() const final {
|
return CreateMaybeMessage<MsgSubscribe>(nullptr);
|
}
|
|
MsgSubscribe* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgSubscribe>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
public:
|
|
std::string GetTypeName() const final;
|
|
// nested types ----------------------------------------------------
|
|
// accessors -------------------------------------------------------
|
|
enum : int {
|
kTopicsFieldNumber = 1,
|
kNetworkFieldNumber = 2,
|
};
|
// .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;
|
::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:
|
|
// bool network = 2;
|
void clear_network();
|
bool network() const;
|
void set_network(bool value);
|
private:
|
bool _internal_network() const;
|
void _internal_set_network(bool value);
|
public:
|
|
// @@protoc_insertion_point(class_scope:bhome_msg.MsgSubscribe)
|
private:
|
class _Internal;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::bhome_msg::MsgTopicList* topics_;
|
bool network_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
friend struct ::TableStruct_bhome_5fmsg_2eproto;
|
};
|
// -------------------------------------------------------------------
|
|
class MsgUnsubscribe :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgUnsubscribe) */ {
|
public:
|
MsgUnsubscribe();
|
virtual ~MsgUnsubscribe();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgUnsubscribe& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgUnsubscribe* internal_default_instance() {
|
return reinterpret_cast<const MsgUnsubscribe*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgUnsubscribe* New() const final {
|
return CreateMaybeMessage<MsgUnsubscribe>(nullptr);
|
}
|
|
MsgUnsubscribe* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgUnsubscribe>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
public:
|
|
std::string GetTypeName() const final;
|
|
// nested types ----------------------------------------------------
|
|
// accessors -------------------------------------------------------
|
|
enum : int {
|
kTopicsFieldNumber = 1,
|
kNetworkFieldNumber = 2,
|
};
|
// .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;
|
::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:
|
|
// bool network = 2;
|
void clear_network();
|
bool network() const;
|
void set_network(bool value);
|
private:
|
bool _internal_network() const;
|
void _internal_set_network(bool value);
|
public:
|
|
// @@protoc_insertion_point(class_scope:bhome_msg.MsgUnsubscribe)
|
private:
|
class _Internal;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::bhome_msg::MsgTopicList* topics_;
|
bool network_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
friend struct ::TableStruct_bhome_5fmsg_2eproto;
|
};
|
// -------------------------------------------------------------------
|
|
class MsgRegisterRPC :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgRegisterRPC) */ {
|
public:
|
MsgRegisterRPC();
|
virtual ~MsgRegisterRPC();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgRegisterRPC& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgRegisterRPC* internal_default_instance() {
|
return reinterpret_cast<const MsgRegisterRPC*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgRegisterRPC* New() const final {
|
return CreateMaybeMessage<MsgRegisterRPC>(nullptr);
|
}
|
|
MsgRegisterRPC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgRegisterRPC>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
::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:
|
|
// @@protoc_insertion_point(class_scope:bhome_msg.MsgRegisterRPC)
|
private:
|
class _Internal;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::bhome_msg::MsgTopicList* topics_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
friend struct ::TableStruct_bhome_5fmsg_2eproto;
|
};
|
// -------------------------------------------------------------------
|
|
class MsgProcInit :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgProcInit) */ {
|
public:
|
MsgProcInit();
|
virtual ~MsgProcInit();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgProcInit& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgProcInit* internal_default_instance() {
|
return reinterpret_cast<const MsgProcInit*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgProcInit* New() const final {
|
return CreateMaybeMessage<MsgProcInit>(nullptr);
|
}
|
|
MsgProcInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgProcInit>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::PROTOBUF_NAMESPACE_ID::int32 extra_mq_num_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
friend struct ::TableStruct_bhome_5fmsg_2eproto;
|
};
|
// -------------------------------------------------------------------
|
|
class MsgProcInitReply :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgProcInitReply) */ {
|
public:
|
MsgProcInitReply();
|
virtual ~MsgProcInitReply();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgProcInitReply& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgProcInitReply* internal_default_instance() {
|
return reinterpret_cast<const MsgProcInitReply*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgProcInitReply* New() const final {
|
return CreateMaybeMessage<MsgProcInitReply>(nullptr);
|
}
|
|
MsgProcInitReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgProcInitReply>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
::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:
|
|
// 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;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::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 :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgRequest) */ {
|
public:
|
MsgRequest();
|
virtual ~MsgRequest();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgRequest& default_instance();
|
|
enum RequestCase {
|
kRegister = 1,
|
kTopicRequest = 2,
|
kTopicQuery = 3,
|
REQUEST_NOT_SET = 0,
|
};
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgRequest* internal_default_instance() {
|
return reinterpret_cast<const MsgRequest*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgRequest* New() const final {
|
return CreateMaybeMessage<MsgRequest>(nullptr);
|
}
|
|
MsgRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgRequest>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
::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:
|
|
// .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;
|
::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:
|
|
// .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;
|
::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 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();
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
union RequestUnion {
|
RequestUnion() {}
|
::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 :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.MsgReply) */ {
|
public:
|
MsgReply();
|
virtual ~MsgReply();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const MsgReply& default_instance();
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const MsgReply* internal_default_instance() {
|
return reinterpret_cast<const MsgReply*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline MsgReply* New() const final {
|
return CreateMaybeMessage<MsgReply>(nullptr);
|
}
|
|
MsgReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<MsgReply>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
::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:
|
|
// @@protoc_insertion_point(class_scope:bhome_msg.MsgReply)
|
private:
|
class _Internal;
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
::bhome_msg::ErrorMsg* err_msg_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
friend struct ::TableStruct_bhome_5fmsg_2eproto;
|
};
|
// -------------------------------------------------------------------
|
|
class BHMsgBody :
|
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:bhome_msg.BHMsgBody) */ {
|
public:
|
BHMsgBody();
|
virtual ~BHMsgBody();
|
|
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
if (this != &from) InternalSwap(&from);
|
} else {
|
CopyFrom(from);
|
}
|
return *this;
|
}
|
|
static const BHMsgBody& default_instance();
|
|
enum ReqrepCase {
|
kRequest = 1,
|
kReply = 2,
|
REQREP_NOT_SET = 0,
|
};
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
static inline const BHMsgBody* internal_default_instance() {
|
return reinterpret_cast<const BHMsgBody*>(
|
&_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;
|
InternalSwap(other);
|
}
|
|
// implements Message ----------------------------------------------
|
|
inline BHMsgBody* New() const final {
|
return CreateMaybeMessage<BHMsgBody>(nullptr);
|
}
|
|
BHMsgBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
return CreateMaybeMessage<BHMsgBody>(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:
|
inline void SharedCtor();
|
inline 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";
|
}
|
private:
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
return nullptr;
|
}
|
inline void* MaybeArenaPtr() const {
|
return nullptr;
|
}
|
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;
|
::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:
|
|
// .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;
|
::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 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();
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
|
union ReqrepUnion {
|
ReqrepUnion() {}
|
::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_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline const std::string& BHMsgHead::msg_id() const {
|
// @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.msg_id)
|
return _internal_msg_id();
|
}
|
inline void BHMsgHead::set_msg_id(const std::string& value) {
|
_internal_set_msg_id(value);
|
// @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.msg_id)
|
}
|
inline std::string* BHMsgHead::mutable_msg_id() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.msg_id)
|
return _internal_mutable_msg_id();
|
}
|
inline const std::string& BHMsgHead::_internal_msg_id() const {
|
return msg_id_.GetNoArena();
|
}
|
inline void BHMsgHead::_internal_set_msg_id(const std::string& value) {
|
|
msg_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
}
|
inline void BHMsgHead::set_msg_id(std::string&& value) {
|
|
msg_id_.SetNoArena(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
// @@protoc_insertion_point(field_set_rvalue:bhome_msg.BHMsgHead.msg_id)
|
}
|
inline void BHMsgHead::set_msg_id(const char* value) {
|
GOOGLE_DCHECK(value != nullptr);
|
|
msg_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
// @@protoc_insertion_point(field_set_char:bhome_msg.BHMsgHead.msg_id)
|
}
|
inline void BHMsgHead::set_msg_id(const void* value, size_t size) {
|
|
msg_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
::std::string(reinterpret_cast<const char*>(value), size));
|
// @@protoc_insertion_point(field_set_pointer:bhome_msg.BHMsgHead.msg_id)
|
}
|
inline std::string* BHMsgHead::_internal_mutable_msg_id() {
|
|
return msg_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline std::string* BHMsgHead::release_msg_id() {
|
// @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.msg_id)
|
|
return msg_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline void BHMsgHead::set_allocated_msg_id(std::string* msg_id) {
|
if (msg_id != nullptr) {
|
|
} else {
|
|
}
|
msg_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_id);
|
// @@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() {
|
// @@protoc_insertion_point(field_add:bhome_msg.BHMsgHead.route)
|
return _internal_add_route();
|
}
|
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_ = PROTOBUF_LONGLONG(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_ = PROTOBUF_ULONGLONG(0);
|
}
|
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_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline const std::string& BHMsgHead::proc_id() const {
|
// @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.proc_id)
|
return _internal_proc_id();
|
}
|
inline void BHMsgHead::set_proc_id(const std::string& value) {
|
_internal_set_proc_id(value);
|
// @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.proc_id)
|
}
|
inline std::string* BHMsgHead::mutable_proc_id() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.proc_id)
|
return _internal_mutable_proc_id();
|
}
|
inline const std::string& BHMsgHead::_internal_proc_id() const {
|
return proc_id_.GetNoArena();
|
}
|
inline void BHMsgHead::_internal_set_proc_id(const std::string& value) {
|
|
proc_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
}
|
inline void BHMsgHead::set_proc_id(std::string&& value) {
|
|
proc_id_.SetNoArena(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
// @@protoc_insertion_point(field_set_rvalue:bhome_msg.BHMsgHead.proc_id)
|
}
|
inline void BHMsgHead::set_proc_id(const char* value) {
|
GOOGLE_DCHECK(value != nullptr);
|
|
proc_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
// @@protoc_insertion_point(field_set_char:bhome_msg.BHMsgHead.proc_id)
|
}
|
inline void BHMsgHead::set_proc_id(const void* value, size_t size) {
|
|
proc_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
::std::string(reinterpret_cast<const char*>(value), size));
|
// @@protoc_insertion_point(field_set_pointer:bhome_msg.BHMsgHead.proc_id)
|
}
|
inline std::string* BHMsgHead::_internal_mutable_proc_id() {
|
|
return proc_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline std::string* BHMsgHead::release_proc_id() {
|
// @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.proc_id)
|
|
return proc_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline void BHMsgHead::set_allocated_proc_id(std::string* proc_id) {
|
if (proc_id != nullptr) {
|
|
} else {
|
|
}
|
proc_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proc_id);
|
// @@protoc_insertion_point(field_set_allocated:bhome_msg.BHMsgHead.proc_id)
|
}
|
|
// bytes topic = 7;
|
inline void BHMsgHead::clear_topic() {
|
topic_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline const std::string& BHMsgHead::topic() const {
|
// @@protoc_insertion_point(field_get:bhome_msg.BHMsgHead.topic)
|
return _internal_topic();
|
}
|
inline void BHMsgHead::set_topic(const std::string& value) {
|
_internal_set_topic(value);
|
// @@protoc_insertion_point(field_set:bhome_msg.BHMsgHead.topic)
|
}
|
inline std::string* BHMsgHead::mutable_topic() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.topic)
|
return _internal_mutable_topic();
|
}
|
inline const std::string& BHMsgHead::_internal_topic() const {
|
return topic_.GetNoArena();
|
}
|
inline void BHMsgHead::_internal_set_topic(const std::string& value) {
|
|
topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
}
|
inline void BHMsgHead::set_topic(std::string&& value) {
|
|
topic_.SetNoArena(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
// @@protoc_insertion_point(field_set_rvalue:bhome_msg.BHMsgHead.topic)
|
}
|
inline void BHMsgHead::set_topic(const char* value) {
|
GOOGLE_DCHECK(value != nullptr);
|
|
topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
// @@protoc_insertion_point(field_set_char:bhome_msg.BHMsgHead.topic)
|
}
|
inline void BHMsgHead::set_topic(const void* value, size_t size) {
|
|
topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
::std::string(reinterpret_cast<const char*>(value), size));
|
// @@protoc_insertion_point(field_set_pointer:bhome_msg.BHMsgHead.topic)
|
}
|
inline std::string* BHMsgHead::_internal_mutable_topic() {
|
|
return topic_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline std::string* BHMsgHead::release_topic() {
|
// @@protoc_insertion_point(field_release:bhome_msg.BHMsgHead.topic)
|
|
return topic_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
inline void BHMsgHead::set_allocated_topic(std::string* topic) {
|
if (topic != nullptr) {
|
|
} else {
|
|
}
|
topic_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic);
|
// @@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<const ::bhome_msg::BHAddress*>(
|
&::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 ::bhome_msg::BHAddress* BHMsgHead::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>(GetArenaNoVirtual());
|
dest_ = p;
|
}
|
return dest_;
|
}
|
inline ::bhome_msg::BHAddress* BHMsgHead::mutable_dest() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgHead.dest)
|
return _internal_mutable_dest();
|
}
|
inline void BHMsgHead::set_allocated_dest(::bhome_msg::BHAddress* dest) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(dest_);
|
}
|
if (dest) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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<const ::bhome_msg::MsgTopicList*>(
|
&::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 ::bhome_msg::MsgTopicList* MsgSubscribe::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>(GetArenaNoVirtual());
|
topics_ = p;
|
}
|
return topics_;
|
}
|
inline ::bhome_msg::MsgTopicList* MsgSubscribe::mutable_topics() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgSubscribe.topics)
|
return _internal_mutable_topics();
|
}
|
inline void MsgSubscribe::set_allocated_topics(::bhome_msg::MsgTopicList* topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_);
|
}
|
if (topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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)
|
}
|
|
// bool network = 2;
|
inline void MsgSubscribe::clear_network() {
|
network_ = false;
|
}
|
inline bool MsgSubscribe::_internal_network() const {
|
return network_;
|
}
|
inline bool MsgSubscribe::network() const {
|
// @@protoc_insertion_point(field_get:bhome_msg.MsgSubscribe.network)
|
return _internal_network();
|
}
|
inline void MsgSubscribe::_internal_set_network(bool value) {
|
|
network_ = value;
|
}
|
inline void MsgSubscribe::set_network(bool value) {
|
_internal_set_network(value);
|
// @@protoc_insertion_point(field_set:bhome_msg.MsgSubscribe.network)
|
}
|
|
// -------------------------------------------------------------------
|
|
// 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<const ::bhome_msg::MsgTopicList*>(
|
&::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 ::bhome_msg::MsgTopicList* MsgUnsubscribe::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>(GetArenaNoVirtual());
|
topics_ = p;
|
}
|
return topics_;
|
}
|
inline ::bhome_msg::MsgTopicList* MsgUnsubscribe::mutable_topics() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgUnsubscribe.topics)
|
return _internal_mutable_topics();
|
}
|
inline void MsgUnsubscribe::set_allocated_topics(::bhome_msg::MsgTopicList* topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_);
|
}
|
if (topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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)
|
}
|
|
// bool network = 2;
|
inline void MsgUnsubscribe::clear_network() {
|
network_ = false;
|
}
|
inline bool MsgUnsubscribe::_internal_network() const {
|
return network_;
|
}
|
inline bool MsgUnsubscribe::network() const {
|
// @@protoc_insertion_point(field_get:bhome_msg.MsgUnsubscribe.network)
|
return _internal_network();
|
}
|
inline void MsgUnsubscribe::_internal_set_network(bool value) {
|
|
network_ = value;
|
}
|
inline void MsgUnsubscribe::set_network(bool value) {
|
_internal_set_network(value);
|
// @@protoc_insertion_point(field_set:bhome_msg.MsgUnsubscribe.network)
|
}
|
|
// -------------------------------------------------------------------
|
|
// 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<const ::bhome_msg::MsgTopicList*>(
|
&::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 ::bhome_msg::MsgTopicList* MsgRegisterRPC::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>(GetArenaNoVirtual());
|
topics_ = p;
|
}
|
return topics_;
|
}
|
inline ::bhome_msg::MsgTopicList* MsgRegisterRPC::mutable_topics() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgRegisterRPC.topics)
|
return _internal_mutable_topics();
|
}
|
inline void MsgRegisterRPC::set_allocated_topics(::bhome_msg::MsgTopicList* topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(topics_);
|
}
|
if (topics) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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<const ::bhome_msg::ErrorMsg*>(
|
&::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 ::bhome_msg::ErrorMsg* MsgProcInitReply::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>(GetArenaNoVirtual());
|
errmsg_ = p;
|
}
|
return errmsg_;
|
}
|
inline ::bhome_msg::ErrorMsg* MsgProcInitReply::mutable_errmsg() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgProcInitReply.errmsg)
|
return _internal_mutable_errmsg();
|
}
|
inline void MsgProcInitReply::set_allocated_errmsg(::bhome_msg::ErrorMsg* errmsg) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(errmsg_);
|
}
|
if (errmsg) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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() {
|
// @@protoc_insertion_point(field_add:bhome_msg.MsgProcInitReply.extra_mqs)
|
return _internal_add_extra_mqs();
|
}
|
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__;
|
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::_internal_mutable_register_() {
|
if (!_internal_has_register_()) {
|
clear_request();
|
set_has_register_();
|
request_.register__ = CreateMaybeMessage< ::bhome_msg::MsgRegister >(
|
GetArenaNoVirtual());
|
}
|
return request_.register__;
|
}
|
inline ::bhome_msg::MsgRegister* MsgRequest::mutable_register_() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.register)
|
return _internal_mutable_register_();
|
}
|
|
// .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_;
|
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::_internal_mutable_topic_request() {
|
if (!_internal_has_topic_request()) {
|
clear_request();
|
set_has_topic_request();
|
request_.topic_request_ = CreateMaybeMessage< ::bhome_msg::MsgRequestTopic >(
|
GetArenaNoVirtual());
|
}
|
return request_.topic_request_;
|
}
|
inline ::bhome_msg::MsgRequestTopic* MsgRequest::mutable_topic_request() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.topic_request)
|
return _internal_mutable_topic_request();
|
}
|
|
// .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_;
|
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::_internal_mutable_topic_query() {
|
if (!_internal_has_topic_query()) {
|
clear_request();
|
set_has_topic_query();
|
request_.topic_query_ = CreateMaybeMessage< ::bhome_msg::MsgQueryTopic >(
|
GetArenaNoVirtual());
|
}
|
return request_.topic_query_;
|
}
|
inline ::bhome_msg::MsgQueryTopic* MsgRequest::mutable_topic_query() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgRequest.topic_query)
|
return _internal_mutable_topic_query();
|
}
|
|
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<const ::bhome_msg::ErrorMsg*>(
|
&::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 ::bhome_msg::ErrorMsg* MsgReply::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>(GetArenaNoVirtual());
|
err_msg_ = p;
|
}
|
return err_msg_;
|
}
|
inline ::bhome_msg::ErrorMsg* MsgReply::mutable_err_msg() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.MsgReply.err_msg)
|
return _internal_mutable_err_msg();
|
}
|
inline void MsgReply::set_allocated_err_msg(::bhome_msg::ErrorMsg* err_msg) {
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
if (message_arena == nullptr) {
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(err_msg_);
|
}
|
if (err_msg) {
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
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()) {
|
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_;
|
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::_internal_mutable_request() {
|
if (!_internal_has_request()) {
|
clear_reqrep();
|
set_has_request();
|
reqrep_.request_ = CreateMaybeMessage< ::bhome_msg::MsgRequest >(
|
GetArenaNoVirtual());
|
}
|
return reqrep_.request_;
|
}
|
inline ::bhome_msg::MsgRequest* BHMsgBody::mutable_request() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgBody.request)
|
return _internal_mutable_request();
|
}
|
|
// .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()) {
|
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_;
|
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::_internal_mutable_reply() {
|
if (!_internal_has_reply()) {
|
clear_reqrep();
|
set_has_reply();
|
reqrep_.reply_ = CreateMaybeMessage< ::bhome_msg::MsgReply >(
|
GetArenaNoVirtual());
|
}
|
return reqrep_.reply_;
|
}
|
inline ::bhome_msg::MsgReply* BHMsgBody::mutable_reply() {
|
// @@protoc_insertion_point(field_mutable:bhome_msg.BHMsgBody.reply)
|
return _internal_mutable_reply();
|
}
|
|
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 <google/protobuf/port_undef.inc>
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bhome_5fmsg_2eproto
|