From d1b488002e8d41c91438720d1da9253859265671 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sat, 2 Mar 2013 13:50:07 +0000 Subject: [PATCH] - Fixed generating of protobuf files in retroshare-nogui.pro for shadow build and Windows compile. - Added dummy files for generated protobuf files. Without these files qmake doesn't add it to the makefile. - Added svnignore:* to gencc directory. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6180 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-nogui/src/retroshare-nogui.pro | 10 +- .../src/rpc/proto/gencc/chat.pb.cc | 0 .../src/rpc/proto/gencc/core.pb.cc | 0 .../src/rpc/proto/gencc/files.pb.cc | 0 .../src/rpc/proto/gencc/peers.pb.cc | 0 .../src/rpc/proto/gencc/search.pb.cc | 0 .../src/rpc/proto/gencc/search.pb.h | 1370 ------------- .../src/rpc/proto/gencc/system.pb.cc | 1787 ----------------- .../src/rpc/proto/gencc/system.pb.h | 1070 ---------- 9 files changed, 6 insertions(+), 4231 deletions(-) create mode 100644 retroshare-nogui/src/rpc/proto/gencc/chat.pb.cc create mode 100644 retroshare-nogui/src/rpc/proto/gencc/core.pb.cc create mode 100644 retroshare-nogui/src/rpc/proto/gencc/files.pb.cc create mode 100644 retroshare-nogui/src/rpc/proto/gencc/peers.pb.cc create mode 100644 retroshare-nogui/src/rpc/proto/gencc/search.pb.cc delete mode 100644 retroshare-nogui/src/rpc/proto/gencc/search.pb.h delete mode 100644 retroshare-nogui/src/rpc/proto/gencc/system.pb.h diff --git a/retroshare-nogui/src/retroshare-nogui.pro b/retroshare-nogui/src/retroshare-nogui.pro index 82d9c3a00..5cc6c72aa 100644 --- a/retroshare-nogui/src/retroshare-nogui.pro +++ b/retroshare-nogui/src/retroshare-nogui.pro @@ -83,6 +83,8 @@ win32 { LIBS += -luuid -lole32 -liphlpapi -lcrypt32-cygwin -lgdi32 LIBS += -lole32 -lwinmm + PROTOCPATH=$$PWD/../../../lib/bin/ + RC_FILE = resources/retroshare_win.rc DEFINES *= WINDOWS_SYS @@ -228,10 +230,10 @@ sshserver { protorpc { # Proto Services PROTOS = core.proto peers.proto system.proto chat.proto search.proto files.proto - DESTPATH = rpc/proto/gencc - PROTOPATH = ../../rsctrl/src/definition - CMD = - for(pf, PROTOS):CMD += protoc --cpp_out=$${DESTPATH} --proto_path=./$${PROTOPATH} $${PROTOPATH}/$${pf}; + DESTPATH = $$PWD/rpc/proto/gencc + PROTOPATH = $$PWD/../../rsctrl/src/definition + CMD = echo Building protobuf files + for(pf, PROTOS):CMD += && $${PROTOCPATH}protoc --cpp_out=$${DESTPATH} --proto_path=$${PROTOPATH} $${PROTOPATH}/$${pf} protobuf_gen.commands = $${CMD} QMAKE_EXTRA_TARGETS += protobuf_gen PRE_TARGETDEPS += protobuf_gen diff --git a/retroshare-nogui/src/rpc/proto/gencc/chat.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/chat.pb.cc new file mode 100644 index 000000000..e69de29bb diff --git a/retroshare-nogui/src/rpc/proto/gencc/core.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/core.pb.cc new file mode 100644 index 000000000..e69de29bb diff --git a/retroshare-nogui/src/rpc/proto/gencc/files.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/files.pb.cc new file mode 100644 index 000000000..e69de29bb diff --git a/retroshare-nogui/src/rpc/proto/gencc/peers.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/peers.pb.cc new file mode 100644 index 000000000..e69de29bb diff --git a/retroshare-nogui/src/rpc/proto/gencc/search.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/search.pb.cc new file mode 100644 index 000000000..e69de29bb diff --git a/retroshare-nogui/src/rpc/proto/gencc/search.pb.h b/retroshare-nogui/src/rpc/proto/gencc/search.pb.h deleted file mode 100644 index d006025cb..000000000 --- a/retroshare-nogui/src/rpc/proto/gencc/search.pb.h +++ /dev/null @@ -1,1370 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: search.proto - -#ifndef PROTOBUF_search_2eproto__INCLUDED -#define PROTOBUF_search_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2004000 -#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 2004001 < GOOGLE_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 "core.pb.h" -// @@protoc_insertion_point(includes) - -namespace rsctrl { -namespace search { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_search_2eproto(); -void protobuf_AssignDesc_search_2eproto(); -void protobuf_ShutdownFile_search_2eproto(); - -class SearchHit; -class SearchSet; -class RequestBasicSearch; -class RequestAdvSearch; -class ResponseSearchIds; -class RequestCloseSearch; -class RequestListSearches; -class RequestSearchResults; -class ResponseSearchResults; - -enum SearchHit_LocFlag { - SearchHit_LocFlag_LOCAL = 1, - SearchHit_LocFlag_FRIEND = 2, - SearchHit_LocFlag_NETWORK = 4 -}; -bool SearchHit_LocFlag_IsValid(int value); -const SearchHit_LocFlag SearchHit_LocFlag_LocFlag_MIN = SearchHit_LocFlag_LOCAL; -const SearchHit_LocFlag SearchHit_LocFlag_LocFlag_MAX = SearchHit_LocFlag_NETWORK; -const int SearchHit_LocFlag_LocFlag_ARRAYSIZE = SearchHit_LocFlag_LocFlag_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SearchHit_LocFlag_descriptor(); -inline const ::std::string& SearchHit_LocFlag_Name(SearchHit_LocFlag value) { - return ::google::protobuf::internal::NameOfEnum( - SearchHit_LocFlag_descriptor(), value); -} -inline bool SearchHit_LocFlag_Parse( - const ::std::string& name, SearchHit_LocFlag* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SearchHit_LocFlag_descriptor(), name, value); -} -enum RequestMsgIds { - MsgId_RequestBasicSearch = 1, - MsgId_RequestCloseSearch = 3, - MsgId_RequestListSearches = 4, - MsgId_RequestSearchResults = 5 -}; -bool RequestMsgIds_IsValid(int value); -const RequestMsgIds RequestMsgIds_MIN = MsgId_RequestBasicSearch; -const RequestMsgIds RequestMsgIds_MAX = MsgId_RequestSearchResults; -const int RequestMsgIds_ARRAYSIZE = RequestMsgIds_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RequestMsgIds_descriptor(); -inline const ::std::string& RequestMsgIds_Name(RequestMsgIds value) { - return ::google::protobuf::internal::NameOfEnum( - RequestMsgIds_descriptor(), value); -} -inline bool RequestMsgIds_Parse( - const ::std::string& name, RequestMsgIds* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RequestMsgIds_descriptor(), name, value); -} -enum ResponseMsgIds { - MsgId_ResponseSearchIds = 1, - MsgId_ResponseSearchResults = 5 -}; -bool ResponseMsgIds_IsValid(int value); -const ResponseMsgIds ResponseMsgIds_MIN = MsgId_ResponseSearchIds; -const ResponseMsgIds ResponseMsgIds_MAX = MsgId_ResponseSearchResults; -const int ResponseMsgIds_ARRAYSIZE = ResponseMsgIds_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ResponseMsgIds_descriptor(); -inline const ::std::string& ResponseMsgIds_Name(ResponseMsgIds value) { - return ::google::protobuf::internal::NameOfEnum( - ResponseMsgIds_descriptor(), value); -} -inline bool ResponseMsgIds_Parse( - const ::std::string& name, ResponseMsgIds* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResponseMsgIds_descriptor(), name, value); -} -// =================================================================== - -class SearchHit : public ::google::protobuf::Message { - public: - SearchHit(); - virtual ~SearchHit(); - - SearchHit(const SearchHit& from); - - inline SearchHit& operator=(const SearchHit& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchHit& default_instance(); - - void Swap(SearchHit* other); - - // implements Message ---------------------------------------------- - - SearchHit* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchHit& from); - void MergeFrom(const SearchHit& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef SearchHit_LocFlag LocFlag; - static const LocFlag LOCAL = SearchHit_LocFlag_LOCAL; - static const LocFlag FRIEND = SearchHit_LocFlag_FRIEND; - static const LocFlag NETWORK = SearchHit_LocFlag_NETWORK; - static inline bool LocFlag_IsValid(int value) { - return SearchHit_LocFlag_IsValid(value); - } - static const LocFlag LocFlag_MIN = - SearchHit_LocFlag_LocFlag_MIN; - static const LocFlag LocFlag_MAX = - SearchHit_LocFlag_LocFlag_MAX; - static const int LocFlag_ARRAYSIZE = - SearchHit_LocFlag_LocFlag_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - LocFlag_descriptor() { - return SearchHit_LocFlag_descriptor(); - } - static inline const ::std::string& LocFlag_Name(LocFlag value) { - return SearchHit_LocFlag_Name(value); - } - static inline bool LocFlag_Parse(const ::std::string& name, - LocFlag* value) { - return SearchHit_LocFlag_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.File file = 1; - inline bool has_file() const; - inline void clear_file(); - static const int kFileFieldNumber = 1; - inline const ::rsctrl::core::File& file() const; - inline ::rsctrl::core::File* mutable_file(); - inline ::rsctrl::core::File* release_file(); - - // required uint32 loc = 2; - inline bool has_loc() const; - inline void clear_loc(); - static const int kLocFieldNumber = 2; - inline ::google::protobuf::uint32 loc() const; - inline void set_loc(::google::protobuf::uint32 value); - - // required uint32 no_hits = 3; - inline bool has_no_hits() const; - inline void clear_no_hits(); - static const int kNoHitsFieldNumber = 3; - inline ::google::protobuf::uint32 no_hits() const; - inline void set_no_hits(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:rsctrl.search.SearchHit) - private: - inline void set_has_file(); - inline void clear_has_file(); - inline void set_has_loc(); - inline void clear_has_loc(); - inline void set_has_no_hits(); - inline void clear_has_no_hits(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::File* file_; - ::google::protobuf::uint32 loc_; - ::google::protobuf::uint32 no_hits_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static SearchHit* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchSet : public ::google::protobuf::Message { - public: - SearchSet(); - virtual ~SearchSet(); - - SearchSet(const SearchSet& from); - - inline SearchSet& operator=(const SearchSet& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchSet& default_instance(); - - void Swap(SearchSet* other); - - // implements Message ---------------------------------------------- - - SearchSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchSet& from); - void MergeFrom(const SearchSet& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required uint32 search_id = 1; - inline bool has_search_id() const; - inline void clear_search_id(); - static const int kSearchIdFieldNumber = 1; - inline ::google::protobuf::uint32 search_id() const; - inline void set_search_id(::google::protobuf::uint32 value); - - // repeated .rsctrl.search.SearchHit hits = 2; - inline int hits_size() const; - inline void clear_hits(); - static const int kHitsFieldNumber = 2; - inline const ::rsctrl::search::SearchHit& hits(int index) const; - inline ::rsctrl::search::SearchHit* mutable_hits(int index); - inline ::rsctrl::search::SearchHit* add_hits(); - inline const ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchHit >& - hits() const; - inline ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchHit >* - mutable_hits(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.SearchSet) - private: - inline void set_has_search_id(); - inline void clear_has_search_id(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchHit > hits_; - ::google::protobuf::uint32 search_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static SearchSet* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestBasicSearch : public ::google::protobuf::Message { - public: - RequestBasicSearch(); - virtual ~RequestBasicSearch(); - - RequestBasicSearch(const RequestBasicSearch& from); - - inline RequestBasicSearch& operator=(const RequestBasicSearch& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestBasicSearch& default_instance(); - - void Swap(RequestBasicSearch* other); - - // implements Message ---------------------------------------------- - - RequestBasicSearch* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestBasicSearch& from); - void MergeFrom(const RequestBasicSearch& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string terms = 1; - inline int terms_size() const; - inline void clear_terms(); - static const int kTermsFieldNumber = 1; - inline const ::std::string& terms(int index) const; - inline ::std::string* mutable_terms(int index); - inline void set_terms(int index, const ::std::string& value); - inline void set_terms(int index, const char* value); - inline void set_terms(int index, const char* value, size_t size); - inline ::std::string* add_terms(); - inline void add_terms(const ::std::string& value); - inline void add_terms(const char* value); - inline void add_terms(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& terms() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_terms(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.RequestBasicSearch) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::std::string> terms_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static RequestBasicSearch* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestAdvSearch : public ::google::protobuf::Message { - public: - RequestAdvSearch(); - virtual ~RequestAdvSearch(); - - RequestAdvSearch(const RequestAdvSearch& from); - - inline RequestAdvSearch& operator=(const RequestAdvSearch& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestAdvSearch& default_instance(); - - void Swap(RequestAdvSearch* other); - - // implements Message ---------------------------------------------- - - RequestAdvSearch* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestAdvSearch& from); - void MergeFrom(const RequestAdvSearch& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string terms = 1; - inline int terms_size() const; - inline void clear_terms(); - static const int kTermsFieldNumber = 1; - inline const ::std::string& terms(int index) const; - inline ::std::string* mutable_terms(int index); - inline void set_terms(int index, const ::std::string& value); - inline void set_terms(int index, const char* value); - inline void set_terms(int index, const char* value, size_t size); - inline ::std::string* add_terms(); - inline void add_terms(const ::std::string& value); - inline void add_terms(const char* value); - inline void add_terms(const char* value, size_t size); - inline const ::google::protobuf::RepeatedPtrField< ::std::string>& terms() const; - inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_terms(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.RequestAdvSearch) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::std::string> terms_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static RequestAdvSearch* default_instance_; -}; -// ------------------------------------------------------------------- - -class ResponseSearchIds : public ::google::protobuf::Message { - public: - ResponseSearchIds(); - virtual ~ResponseSearchIds(); - - ResponseSearchIds(const ResponseSearchIds& from); - - inline ResponseSearchIds& operator=(const ResponseSearchIds& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ResponseSearchIds& default_instance(); - - void Swap(ResponseSearchIds* other); - - // implements Message ---------------------------------------------- - - ResponseSearchIds* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResponseSearchIds& from); - void MergeFrom(const ResponseSearchIds& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.Status status = 1; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 1; - inline const ::rsctrl::core::Status& status() const; - inline ::rsctrl::core::Status* mutable_status(); - inline ::rsctrl::core::Status* release_status(); - - // repeated uint32 search_id = 2; - inline int search_id_size() const; - inline void clear_search_id(); - static const int kSearchIdFieldNumber = 2; - inline ::google::protobuf::uint32 search_id(int index) const; - inline void set_search_id(int index, ::google::protobuf::uint32 value); - inline void add_search_id(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - search_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_search_id(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.ResponseSearchIds) - private: - inline void set_has_status(); - inline void clear_has_status(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::Status* status_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > search_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static ResponseSearchIds* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestCloseSearch : public ::google::protobuf::Message { - public: - RequestCloseSearch(); - virtual ~RequestCloseSearch(); - - RequestCloseSearch(const RequestCloseSearch& from); - - inline RequestCloseSearch& operator=(const RequestCloseSearch& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestCloseSearch& default_instance(); - - void Swap(RequestCloseSearch* other); - - // implements Message ---------------------------------------------- - - RequestCloseSearch* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestCloseSearch& from); - void MergeFrom(const RequestCloseSearch& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required uint32 search_id = 1; - inline bool has_search_id() const; - inline void clear_search_id(); - static const int kSearchIdFieldNumber = 1; - inline ::google::protobuf::uint32 search_id() const; - inline void set_search_id(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:rsctrl.search.RequestCloseSearch) - private: - inline void set_has_search_id(); - inline void clear_has_search_id(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 search_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static RequestCloseSearch* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestListSearches : public ::google::protobuf::Message { - public: - RequestListSearches(); - virtual ~RequestListSearches(); - - RequestListSearches(const RequestListSearches& from); - - inline RequestListSearches& operator=(const RequestListSearches& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestListSearches& default_instance(); - - void Swap(RequestListSearches* other); - - // implements Message ---------------------------------------------- - - RequestListSearches* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestListSearches& from); - void MergeFrom(const RequestListSearches& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:rsctrl.search.RequestListSearches) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static RequestListSearches* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestSearchResults : public ::google::protobuf::Message { - public: - RequestSearchResults(); - virtual ~RequestSearchResults(); - - RequestSearchResults(const RequestSearchResults& from); - - inline RequestSearchResults& operator=(const RequestSearchResults& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestSearchResults& default_instance(); - - void Swap(RequestSearchResults* other); - - // implements Message ---------------------------------------------- - - RequestSearchResults* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestSearchResults& from); - void MergeFrom(const RequestSearchResults& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated uint32 search_ids = 2; - inline int search_ids_size() const; - inline void clear_search_ids(); - static const int kSearchIdsFieldNumber = 2; - inline ::google::protobuf::uint32 search_ids(int index) const; - inline void set_search_ids(int index, ::google::protobuf::uint32 value); - inline void add_search_ids(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - search_ids() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_search_ids(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.RequestSearchResults) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > search_ids_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static RequestSearchResults* default_instance_; -}; -// ------------------------------------------------------------------- - -class ResponseSearchResults : public ::google::protobuf::Message { - public: - ResponseSearchResults(); - virtual ~ResponseSearchResults(); - - ResponseSearchResults(const ResponseSearchResults& from); - - inline ResponseSearchResults& operator=(const ResponseSearchResults& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ResponseSearchResults& default_instance(); - - void Swap(ResponseSearchResults* other); - - // implements Message ---------------------------------------------- - - ResponseSearchResults* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResponseSearchResults& from); - void MergeFrom(const ResponseSearchResults& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.Status status = 1; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 1; - inline const ::rsctrl::core::Status& status() const; - inline ::rsctrl::core::Status* mutable_status(); - inline ::rsctrl::core::Status* release_status(); - - // repeated .rsctrl.search.SearchSet searches = 2; - inline int searches_size() const; - inline void clear_searches(); - static const int kSearchesFieldNumber = 2; - inline const ::rsctrl::search::SearchSet& searches(int index) const; - inline ::rsctrl::search::SearchSet* mutable_searches(int index); - inline ::rsctrl::search::SearchSet* add_searches(); - inline const ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchSet >& - searches() const; - inline ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchSet >* - mutable_searches(); - - // @@protoc_insertion_point(class_scope:rsctrl.search.ResponseSearchResults) - private: - inline void set_has_status(); - inline void clear_has_status(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::Status* status_; - ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchSet > searches_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_search_2eproto(); - friend void protobuf_AssignDesc_search_2eproto(); - friend void protobuf_ShutdownFile_search_2eproto(); - - void InitAsDefaultInstance(); - static ResponseSearchResults* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// SearchHit - -// required .rsctrl.core.File file = 1; -inline bool SearchHit::has_file() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SearchHit::set_has_file() { - _has_bits_[0] |= 0x00000001u; -} -inline void SearchHit::clear_has_file() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SearchHit::clear_file() { - if (file_ != NULL) file_->::rsctrl::core::File::Clear(); - clear_has_file(); -} -inline const ::rsctrl::core::File& SearchHit::file() const { - return file_ != NULL ? *file_ : *default_instance_->file_; -} -inline ::rsctrl::core::File* SearchHit::mutable_file() { - set_has_file(); - if (file_ == NULL) file_ = new ::rsctrl::core::File; - return file_; -} -inline ::rsctrl::core::File* SearchHit::release_file() { - clear_has_file(); - ::rsctrl::core::File* temp = file_; - file_ = NULL; - return temp; -} - -// required uint32 loc = 2; -inline bool SearchHit::has_loc() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SearchHit::set_has_loc() { - _has_bits_[0] |= 0x00000002u; -} -inline void SearchHit::clear_has_loc() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SearchHit::clear_loc() { - loc_ = 0u; - clear_has_loc(); -} -inline ::google::protobuf::uint32 SearchHit::loc() const { - return loc_; -} -inline void SearchHit::set_loc(::google::protobuf::uint32 value) { - set_has_loc(); - loc_ = value; -} - -// required uint32 no_hits = 3; -inline bool SearchHit::has_no_hits() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SearchHit::set_has_no_hits() { - _has_bits_[0] |= 0x00000004u; -} -inline void SearchHit::clear_has_no_hits() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SearchHit::clear_no_hits() { - no_hits_ = 0u; - clear_has_no_hits(); -} -inline ::google::protobuf::uint32 SearchHit::no_hits() const { - return no_hits_; -} -inline void SearchHit::set_no_hits(::google::protobuf::uint32 value) { - set_has_no_hits(); - no_hits_ = value; -} - -// ------------------------------------------------------------------- - -// SearchSet - -// required uint32 search_id = 1; -inline bool SearchSet::has_search_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SearchSet::set_has_search_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void SearchSet::clear_has_search_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SearchSet::clear_search_id() { - search_id_ = 0u; - clear_has_search_id(); -} -inline ::google::protobuf::uint32 SearchSet::search_id() const { - return search_id_; -} -inline void SearchSet::set_search_id(::google::protobuf::uint32 value) { - set_has_search_id(); - search_id_ = value; -} - -// repeated .rsctrl.search.SearchHit hits = 2; -inline int SearchSet::hits_size() const { - return hits_.size(); -} -inline void SearchSet::clear_hits() { - hits_.Clear(); -} -inline const ::rsctrl::search::SearchHit& SearchSet::hits(int index) const { - return hits_.Get(index); -} -inline ::rsctrl::search::SearchHit* SearchSet::mutable_hits(int index) { - return hits_.Mutable(index); -} -inline ::rsctrl::search::SearchHit* SearchSet::add_hits() { - return hits_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchHit >& -SearchSet::hits() const { - return hits_; -} -inline ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchHit >* -SearchSet::mutable_hits() { - return &hits_; -} - -// ------------------------------------------------------------------- - -// RequestBasicSearch - -// repeated string terms = 1; -inline int RequestBasicSearch::terms_size() const { - return terms_.size(); -} -inline void RequestBasicSearch::clear_terms() { - terms_.Clear(); -} -inline const ::std::string& RequestBasicSearch::terms(int index) const { - return terms_.Get(index); -} -inline ::std::string* RequestBasicSearch::mutable_terms(int index) { - return terms_.Mutable(index); -} -inline void RequestBasicSearch::set_terms(int index, const ::std::string& value) { - terms_.Mutable(index)->assign(value); -} -inline void RequestBasicSearch::set_terms(int index, const char* value) { - terms_.Mutable(index)->assign(value); -} -inline void RequestBasicSearch::set_terms(int index, const char* value, size_t size) { - terms_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* RequestBasicSearch::add_terms() { - return terms_.Add(); -} -inline void RequestBasicSearch::add_terms(const ::std::string& value) { - terms_.Add()->assign(value); -} -inline void RequestBasicSearch::add_terms(const char* value) { - terms_.Add()->assign(value); -} -inline void RequestBasicSearch::add_terms(const char* value, size_t size) { - terms_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -RequestBasicSearch::terms() const { - return terms_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -RequestBasicSearch::mutable_terms() { - return &terms_; -} - -// ------------------------------------------------------------------- - -// RequestAdvSearch - -// repeated string terms = 1; -inline int RequestAdvSearch::terms_size() const { - return terms_.size(); -} -inline void RequestAdvSearch::clear_terms() { - terms_.Clear(); -} -inline const ::std::string& RequestAdvSearch::terms(int index) const { - return terms_.Get(index); -} -inline ::std::string* RequestAdvSearch::mutable_terms(int index) { - return terms_.Mutable(index); -} -inline void RequestAdvSearch::set_terms(int index, const ::std::string& value) { - terms_.Mutable(index)->assign(value); -} -inline void RequestAdvSearch::set_terms(int index, const char* value) { - terms_.Mutable(index)->assign(value); -} -inline void RequestAdvSearch::set_terms(int index, const char* value, size_t size) { - terms_.Mutable(index)->assign( - reinterpret_cast(value), size); -} -inline ::std::string* RequestAdvSearch::add_terms() { - return terms_.Add(); -} -inline void RequestAdvSearch::add_terms(const ::std::string& value) { - terms_.Add()->assign(value); -} -inline void RequestAdvSearch::add_terms(const char* value) { - terms_.Add()->assign(value); -} -inline void RequestAdvSearch::add_terms(const char* value, size_t size) { - terms_.Add()->assign(reinterpret_cast(value), size); -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -RequestAdvSearch::terms() const { - return terms_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -RequestAdvSearch::mutable_terms() { - return &terms_; -} - -// ------------------------------------------------------------------- - -// ResponseSearchIds - -// required .rsctrl.core.Status status = 1; -inline bool ResponseSearchIds::has_status() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ResponseSearchIds::set_has_status() { - _has_bits_[0] |= 0x00000001u; -} -inline void ResponseSearchIds::clear_has_status() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ResponseSearchIds::clear_status() { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - clear_has_status(); -} -inline const ::rsctrl::core::Status& ResponseSearchIds::status() const { - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::rsctrl::core::Status* ResponseSearchIds::mutable_status() { - set_has_status(); - if (status_ == NULL) status_ = new ::rsctrl::core::Status; - return status_; -} -inline ::rsctrl::core::Status* ResponseSearchIds::release_status() { - clear_has_status(); - ::rsctrl::core::Status* temp = status_; - status_ = NULL; - return temp; -} - -// repeated uint32 search_id = 2; -inline int ResponseSearchIds::search_id_size() const { - return search_id_.size(); -} -inline void ResponseSearchIds::clear_search_id() { - search_id_.Clear(); -} -inline ::google::protobuf::uint32 ResponseSearchIds::search_id(int index) const { - return search_id_.Get(index); -} -inline void ResponseSearchIds::set_search_id(int index, ::google::protobuf::uint32 value) { - search_id_.Set(index, value); -} -inline void ResponseSearchIds::add_search_id(::google::protobuf::uint32 value) { - search_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -ResponseSearchIds::search_id() const { - return search_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -ResponseSearchIds::mutable_search_id() { - return &search_id_; -} - -// ------------------------------------------------------------------- - -// RequestCloseSearch - -// required uint32 search_id = 1; -inline bool RequestCloseSearch::has_search_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RequestCloseSearch::set_has_search_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void RequestCloseSearch::clear_has_search_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void RequestCloseSearch::clear_search_id() { - search_id_ = 0u; - clear_has_search_id(); -} -inline ::google::protobuf::uint32 RequestCloseSearch::search_id() const { - return search_id_; -} -inline void RequestCloseSearch::set_search_id(::google::protobuf::uint32 value) { - set_has_search_id(); - search_id_ = value; -} - -// ------------------------------------------------------------------- - -// RequestListSearches - -// ------------------------------------------------------------------- - -// RequestSearchResults - -// repeated uint32 search_ids = 2; -inline int RequestSearchResults::search_ids_size() const { - return search_ids_.size(); -} -inline void RequestSearchResults::clear_search_ids() { - search_ids_.Clear(); -} -inline ::google::protobuf::uint32 RequestSearchResults::search_ids(int index) const { - return search_ids_.Get(index); -} -inline void RequestSearchResults::set_search_ids(int index, ::google::protobuf::uint32 value) { - search_ids_.Set(index, value); -} -inline void RequestSearchResults::add_search_ids(::google::protobuf::uint32 value) { - search_ids_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -RequestSearchResults::search_ids() const { - return search_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -RequestSearchResults::mutable_search_ids() { - return &search_ids_; -} - -// ------------------------------------------------------------------- - -// ResponseSearchResults - -// required .rsctrl.core.Status status = 1; -inline bool ResponseSearchResults::has_status() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ResponseSearchResults::set_has_status() { - _has_bits_[0] |= 0x00000001u; -} -inline void ResponseSearchResults::clear_has_status() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ResponseSearchResults::clear_status() { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - clear_has_status(); -} -inline const ::rsctrl::core::Status& ResponseSearchResults::status() const { - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::rsctrl::core::Status* ResponseSearchResults::mutable_status() { - set_has_status(); - if (status_ == NULL) status_ = new ::rsctrl::core::Status; - return status_; -} -inline ::rsctrl::core::Status* ResponseSearchResults::release_status() { - clear_has_status(); - ::rsctrl::core::Status* temp = status_; - status_ = NULL; - return temp; -} - -// repeated .rsctrl.search.SearchSet searches = 2; -inline int ResponseSearchResults::searches_size() const { - return searches_.size(); -} -inline void ResponseSearchResults::clear_searches() { - searches_.Clear(); -} -inline const ::rsctrl::search::SearchSet& ResponseSearchResults::searches(int index) const { - return searches_.Get(index); -} -inline ::rsctrl::search::SearchSet* ResponseSearchResults::mutable_searches(int index) { - return searches_.Mutable(index); -} -inline ::rsctrl::search::SearchSet* ResponseSearchResults::add_searches() { - return searches_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchSet >& -ResponseSearchResults::searches() const { - return searches_; -} -inline ::google::protobuf::RepeatedPtrField< ::rsctrl::search::SearchSet >* -ResponseSearchResults::mutable_searches() { - return &searches_; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace search -} // namespace rsctrl - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::rsctrl::search::SearchHit_LocFlag>() { - return ::rsctrl::search::SearchHit_LocFlag_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< rsctrl::search::RequestMsgIds>() { - return rsctrl::search::RequestMsgIds_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< rsctrl::search::ResponseMsgIds>() { - return rsctrl::search::ResponseMsgIds_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_search_2eproto__INCLUDED diff --git a/retroshare-nogui/src/rpc/proto/gencc/system.pb.cc b/retroshare-nogui/src/rpc/proto/gencc/system.pb.cc index 3252bcee6..e69de29bb 100644 --- a/retroshare-nogui/src/rpc/proto/gencc/system.pb.cc +++ b/retroshare-nogui/src/rpc/proto/gencc/system.pb.cc @@ -1,1787 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "system.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace rsctrl { -namespace system { - -namespace { - -const ::google::protobuf::Descriptor* RequestSystemStatus_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RequestSystemStatus_reflection_ = NULL; -const ::google::protobuf::Descriptor* ResponseSystemStatus_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ResponseSystemStatus_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ResponseSystemStatus_NetCode_descriptor_ = NULL; -const ::google::protobuf::Descriptor* RequestSystemQuit_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RequestSystemQuit_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* RequestSystemQuit_QuitCode_descriptor_ = NULL; -const ::google::protobuf::Descriptor* ResponseSystemQuit_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ResponseSystemQuit_reflection_ = NULL; -const ::google::protobuf::Descriptor* RequestSystemExternalAccess_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RequestSystemExternalAccess_reflection_ = NULL; -const ::google::protobuf::Descriptor* ResponseSystemExternalAccess_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ResponseSystemExternalAccess_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* RequestMsgIds_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* ResponseMsgIds_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_system_2eproto() { - protobuf_AddDesc_system_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "system.proto"); - GOOGLE_CHECK(file != NULL); - RequestSystemStatus_descriptor_ = file->message_type(0); - static const int RequestSystemStatus_offsets_[1] = { - }; - RequestSystemStatus_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - RequestSystemStatus_descriptor_, - RequestSystemStatus::default_instance_, - RequestSystemStatus_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemStatus, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemStatus, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(RequestSystemStatus)); - ResponseSystemStatus_descriptor_ = file->message_type(1); - static const int ResponseSystemStatus_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, no_peers_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, no_connected_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, net_status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, bw_total_), - }; - ResponseSystemStatus_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ResponseSystemStatus_descriptor_, - ResponseSystemStatus::default_instance_, - ResponseSystemStatus_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemStatus, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ResponseSystemStatus)); - ResponseSystemStatus_NetCode_descriptor_ = ResponseSystemStatus_descriptor_->enum_type(0); - RequestSystemQuit_descriptor_ = file->message_type(2); - static const int RequestSystemQuit_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemQuit, quit_code_), - }; - RequestSystemQuit_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - RequestSystemQuit_descriptor_, - RequestSystemQuit::default_instance_, - RequestSystemQuit_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemQuit, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemQuit, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(RequestSystemQuit)); - RequestSystemQuit_QuitCode_descriptor_ = RequestSystemQuit_descriptor_->enum_type(0); - ResponseSystemQuit_descriptor_ = file->message_type(3); - static const int ResponseSystemQuit_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemQuit, status_), - }; - ResponseSystemQuit_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ResponseSystemQuit_descriptor_, - ResponseSystemQuit::default_instance_, - ResponseSystemQuit_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemQuit, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemQuit, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ResponseSystemQuit)); - RequestSystemExternalAccess_descriptor_ = file->message_type(4); - static const int RequestSystemExternalAccess_offsets_[1] = { - }; - RequestSystemExternalAccess_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - RequestSystemExternalAccess_descriptor_, - RequestSystemExternalAccess::default_instance_, - RequestSystemExternalAccess_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemExternalAccess, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestSystemExternalAccess, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(RequestSystemExternalAccess)); - ResponseSystemExternalAccess_descriptor_ = file->message_type(5); - static const int ResponseSystemExternalAccess_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemExternalAccess, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemExternalAccess, ext_port_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemExternalAccess, dht_key_), - }; - ResponseSystemExternalAccess_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ResponseSystemExternalAccess_descriptor_, - ResponseSystemExternalAccess::default_instance_, - ResponseSystemExternalAccess_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemExternalAccess, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseSystemExternalAccess, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ResponseSystemExternalAccess)); - RequestMsgIds_descriptor_ = file->enum_type(0); - ResponseMsgIds_descriptor_ = file->enum_type(1); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_system_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RequestSystemStatus_descriptor_, &RequestSystemStatus::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ResponseSystemStatus_descriptor_, &ResponseSystemStatus::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RequestSystemQuit_descriptor_, &RequestSystemQuit::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ResponseSystemQuit_descriptor_, &ResponseSystemQuit::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RequestSystemExternalAccess_descriptor_, &RequestSystemExternalAccess::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ResponseSystemExternalAccess_descriptor_, &ResponseSystemExternalAccess::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_system_2eproto() { - delete RequestSystemStatus::default_instance_; - delete RequestSystemStatus_reflection_; - delete ResponseSystemStatus::default_instance_; - delete ResponseSystemStatus_reflection_; - delete RequestSystemQuit::default_instance_; - delete RequestSystemQuit_reflection_; - delete ResponseSystemQuit::default_instance_; - delete ResponseSystemQuit_reflection_; - delete RequestSystemExternalAccess::default_instance_; - delete RequestSystemExternalAccess_reflection_; - delete ResponseSystemExternalAccess::default_instance_; - delete ResponseSystemExternalAccess_reflection_; -} - -void protobuf_AddDesc_system_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::rsctrl::core::protobuf_AddDesc_core_2eproto(); - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014system.proto\022\rrsctrl.system\032\ncore.prot" - "o\"\025\n\023RequestSystemStatus\"\366\002\n\024ResponseSys" - "temStatus\022#\n\006status\030\001 \002(\0132\023.rsctrl.core." - "Status\022\020\n\010no_peers\030\002 \002(\r\022\024\n\014no_connected" - "\030\003 \002(\r\022\?\n\nnet_status\030\004 \002(\0162+.rsctrl.syst" - "em.ResponseSystemStatus.NetCode\022(\n\010bw_to" - "tal\030\005 \002(\0132\026.rsctrl.core.Bandwidth\"\245\001\n\007Ne" - "tCode\022\017\n\013BAD_UNKNOWN\020\000\022\017\n\013BAD_OFFLINE\020\001\022" - "\016\n\nBAD_NATSYM\020\002\022\021\n\rBAD_NODHT_NAT\020\003\022\023\n\017WA" - "RNING_RESTART\020\004\022\022\n\016WARNING_NATTED\020\005\022\021\n\rW" - "ARNING_NODHT\020\006\022\010\n\004GOOD\020\007\022\017\n\013ADV_FORWARD\020" - "\010\"\201\001\n\021RequestSystemQuit\022<\n\tquit_code\030\001 \002" - "(\0162).rsctrl.system.RequestSystemQuit.Qui" - "tCode\".\n\010QuitCode\022\021\n\rCLOSE_CHANNEL\020\001\022\017\n\013" - "SHUTDOWN_RS\020\002\"9\n\022ResponseSystemQuit\022#\n\006s" - "tatus\030\001 \002(\0132\023.rsctrl.core.Status\"\035\n\033Requ" - "estSystemExternalAccess\"f\n\034ResponseSyste" - "mExternalAccess\022#\n\006status\030\001 \002(\0132\023.rsctrl" - ".core.Status\022\020\n\010ext_port\030\002 \002(\r\022\017\n\007dht_ke" - "y\030\003 \002(\t*r\n\rRequestMsgIds\022\035\n\031MsgId_Reques" - "tSystemStatus\020\001\022\033\n\027MsgId_RequestSystemQu" - "it\020\002\022%\n!MsgId_RequestSystemExternalAcces" - "s\020\003*v\n\016ResponseMsgIds\022\036\n\032MsgId_ResponseS" - "ystemStatus\020\001\022\034\n\030MsgId_ResponseSystemQui" - "t\020\002\022&\n\"MsgId_ResponseSystemExternalAcces" - "s\020\003", 1003); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "system.proto", &protobuf_RegisterTypes); - RequestSystemStatus::default_instance_ = new RequestSystemStatus(); - ResponseSystemStatus::default_instance_ = new ResponseSystemStatus(); - RequestSystemQuit::default_instance_ = new RequestSystemQuit(); - ResponseSystemQuit::default_instance_ = new ResponseSystemQuit(); - RequestSystemExternalAccess::default_instance_ = new RequestSystemExternalAccess(); - ResponseSystemExternalAccess::default_instance_ = new ResponseSystemExternalAccess(); - RequestSystemStatus::default_instance_->InitAsDefaultInstance(); - ResponseSystemStatus::default_instance_->InitAsDefaultInstance(); - RequestSystemQuit::default_instance_->InitAsDefaultInstance(); - ResponseSystemQuit::default_instance_->InitAsDefaultInstance(); - RequestSystemExternalAccess::default_instance_->InitAsDefaultInstance(); - ResponseSystemExternalAccess::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_system_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_system_2eproto { - StaticDescriptorInitializer_system_2eproto() { - protobuf_AddDesc_system_2eproto(); - } -} static_descriptor_initializer_system_2eproto_; - -const ::google::protobuf::EnumDescriptor* RequestMsgIds_descriptor() { - protobuf_AssignDescriptorsOnce(); - return RequestMsgIds_descriptor_; -} -bool RequestMsgIds_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* ResponseMsgIds_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ResponseMsgIds_descriptor_; -} -bool ResponseMsgIds_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -#ifndef _MSC_VER -#endif // !_MSC_VER - -RequestSystemStatus::RequestSystemStatus() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void RequestSystemStatus::InitAsDefaultInstance() { -} - -RequestSystemStatus::RequestSystemStatus(const RequestSystemStatus& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void RequestSystemStatus::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RequestSystemStatus::~RequestSystemStatus() { - SharedDtor(); -} - -void RequestSystemStatus::SharedDtor() { - if (this != default_instance_) { - } -} - -void RequestSystemStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RequestSystemStatus::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RequestSystemStatus_descriptor_; -} - -const RequestSystemStatus& RequestSystemStatus::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -RequestSystemStatus* RequestSystemStatus::default_instance_ = NULL; - -RequestSystemStatus* RequestSystemStatus::New() const { - return new RequestSystemStatus; -} - -void RequestSystemStatus::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RequestSystemStatus::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - } - return true; -#undef DO_ -} - -void RequestSystemStatus::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* RequestSystemStatus::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int RequestSystemStatus::ByteSize() const { - int total_size = 0; - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RequestSystemStatus::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RequestSystemStatus* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RequestSystemStatus::MergeFrom(const RequestSystemStatus& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RequestSystemStatus::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RequestSystemStatus::CopyFrom(const RequestSystemStatus& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RequestSystemStatus::IsInitialized() const { - - return true; -} - -void RequestSystemStatus::Swap(RequestSystemStatus* other) { - if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata RequestSystemStatus::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RequestSystemStatus_descriptor_; - metadata.reflection = RequestSystemStatus_reflection_; - return metadata; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* ResponseSystemStatus_NetCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ResponseSystemStatus_NetCode_descriptor_; -} -bool ResponseSystemStatus_NetCode_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ResponseSystemStatus_NetCode ResponseSystemStatus::BAD_UNKNOWN; -const ResponseSystemStatus_NetCode ResponseSystemStatus::BAD_OFFLINE; -const ResponseSystemStatus_NetCode ResponseSystemStatus::BAD_NATSYM; -const ResponseSystemStatus_NetCode ResponseSystemStatus::BAD_NODHT_NAT; -const ResponseSystemStatus_NetCode ResponseSystemStatus::WARNING_RESTART; -const ResponseSystemStatus_NetCode ResponseSystemStatus::WARNING_NATTED; -const ResponseSystemStatus_NetCode ResponseSystemStatus::WARNING_NODHT; -const ResponseSystemStatus_NetCode ResponseSystemStatus::GOOD; -const ResponseSystemStatus_NetCode ResponseSystemStatus::ADV_FORWARD; -const ResponseSystemStatus_NetCode ResponseSystemStatus::NetCode_MIN; -const ResponseSystemStatus_NetCode ResponseSystemStatus::NetCode_MAX; -const int ResponseSystemStatus::NetCode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ResponseSystemStatus::kStatusFieldNumber; -const int ResponseSystemStatus::kNoPeersFieldNumber; -const int ResponseSystemStatus::kNoConnectedFieldNumber; -const int ResponseSystemStatus::kNetStatusFieldNumber; -const int ResponseSystemStatus::kBwTotalFieldNumber; -#endif // !_MSC_VER - -ResponseSystemStatus::ResponseSystemStatus() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ResponseSystemStatus::InitAsDefaultInstance() { - status_ = const_cast< ::rsctrl::core::Status*>(&::rsctrl::core::Status::default_instance()); - bw_total_ = const_cast< ::rsctrl::core::Bandwidth*>(&::rsctrl::core::Bandwidth::default_instance()); -} - -ResponseSystemStatus::ResponseSystemStatus(const ResponseSystemStatus& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ResponseSystemStatus::SharedCtor() { - _cached_size_ = 0; - status_ = NULL; - no_peers_ = 0u; - no_connected_ = 0u; - net_status_ = 0; - bw_total_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ResponseSystemStatus::~ResponseSystemStatus() { - SharedDtor(); -} - -void ResponseSystemStatus::SharedDtor() { - if (this != default_instance_) { - delete status_; - delete bw_total_; - } -} - -void ResponseSystemStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ResponseSystemStatus::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ResponseSystemStatus_descriptor_; -} - -const ResponseSystemStatus& ResponseSystemStatus::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -ResponseSystemStatus* ResponseSystemStatus::default_instance_ = NULL; - -ResponseSystemStatus* ResponseSystemStatus::New() const { - return new ResponseSystemStatus; -} - -void ResponseSystemStatus::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_status()) { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - } - no_peers_ = 0u; - no_connected_ = 0u; - net_status_ = 0; - if (has_bw_total()) { - if (bw_total_ != NULL) bw_total_->::rsctrl::core::Bandwidth::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ResponseSystemStatus::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .rsctrl.core.Status status = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_no_peers; - break; - } - - // required uint32 no_peers = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_no_peers: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &no_peers_))); - set_has_no_peers(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_no_connected; - break; - } - - // required uint32 no_connected = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_no_connected: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &no_connected_))); - set_has_no_connected(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_net_status; - break; - } - - // required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_net_status: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::rsctrl::system::ResponseSystemStatus_NetCode_IsValid(value)) { - set_net_status(static_cast< ::rsctrl::system::ResponseSystemStatus_NetCode >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_bw_total; - break; - } - - // required .rsctrl.core.Bandwidth bw_total = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bw_total: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bw_total())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ResponseSystemStatus::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->status(), output); - } - - // required uint32 no_peers = 2; - if (has_no_peers()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->no_peers(), output); - } - - // required uint32 no_connected = 3; - if (has_no_connected()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->no_connected(), output); - } - - // required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; - if (has_net_status()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->net_status(), output); - } - - // required .rsctrl.core.Bandwidth bw_total = 5; - if (has_bw_total()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->bw_total(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ResponseSystemStatus::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->status(), target); - } - - // required uint32 no_peers = 2; - if (has_no_peers()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->no_peers(), target); - } - - // required uint32 no_connected = 3; - if (has_no_connected()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->no_connected(), target); - } - - // required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; - if (has_net_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->net_status(), target); - } - - // required .rsctrl.core.Bandwidth bw_total = 5; - if (has_bw_total()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->bw_total(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ResponseSystemStatus::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->status()); - } - - // required uint32 no_peers = 2; - if (has_no_peers()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->no_peers()); - } - - // required uint32 no_connected = 3; - if (has_no_connected()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->no_connected()); - } - - // required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; - if (has_net_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->net_status()); - } - - // required .rsctrl.core.Bandwidth bw_total = 5; - if (has_bw_total()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bw_total()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ResponseSystemStatus::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ResponseSystemStatus* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ResponseSystemStatus::MergeFrom(const ResponseSystemStatus& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_status()) { - mutable_status()->::rsctrl::core::Status::MergeFrom(from.status()); - } - if (from.has_no_peers()) { - set_no_peers(from.no_peers()); - } - if (from.has_no_connected()) { - set_no_connected(from.no_connected()); - } - if (from.has_net_status()) { - set_net_status(from.net_status()); - } - if (from.has_bw_total()) { - mutable_bw_total()->::rsctrl::core::Bandwidth::MergeFrom(from.bw_total()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ResponseSystemStatus::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResponseSystemStatus::CopyFrom(const ResponseSystemStatus& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResponseSystemStatus::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - - if (has_status()) { - if (!this->status().IsInitialized()) return false; - } - if (has_bw_total()) { - if (!this->bw_total().IsInitialized()) return false; - } - return true; -} - -void ResponseSystemStatus::Swap(ResponseSystemStatus* other) { - if (other != this) { - std::swap(status_, other->status_); - std::swap(no_peers_, other->no_peers_); - std::swap(no_connected_, other->no_connected_); - std::swap(net_status_, other->net_status_); - std::swap(bw_total_, other->bw_total_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata ResponseSystemStatus::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ResponseSystemStatus_descriptor_; - metadata.reflection = ResponseSystemStatus_reflection_; - return metadata; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* RequestSystemQuit_QuitCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return RequestSystemQuit_QuitCode_descriptor_; -} -bool RequestSystemQuit_QuitCode_IsValid(int value) { - switch(value) { - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const RequestSystemQuit_QuitCode RequestSystemQuit::CLOSE_CHANNEL; -const RequestSystemQuit_QuitCode RequestSystemQuit::SHUTDOWN_RS; -const RequestSystemQuit_QuitCode RequestSystemQuit::QuitCode_MIN; -const RequestSystemQuit_QuitCode RequestSystemQuit::QuitCode_MAX; -const int RequestSystemQuit::QuitCode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int RequestSystemQuit::kQuitCodeFieldNumber; -#endif // !_MSC_VER - -RequestSystemQuit::RequestSystemQuit() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void RequestSystemQuit::InitAsDefaultInstance() { -} - -RequestSystemQuit::RequestSystemQuit(const RequestSystemQuit& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void RequestSystemQuit::SharedCtor() { - _cached_size_ = 0; - quit_code_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RequestSystemQuit::~RequestSystemQuit() { - SharedDtor(); -} - -void RequestSystemQuit::SharedDtor() { - if (this != default_instance_) { - } -} - -void RequestSystemQuit::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RequestSystemQuit::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RequestSystemQuit_descriptor_; -} - -const RequestSystemQuit& RequestSystemQuit::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -RequestSystemQuit* RequestSystemQuit::default_instance_ = NULL; - -RequestSystemQuit* RequestSystemQuit::New() const { - return new RequestSystemQuit; -} - -void RequestSystemQuit::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - quit_code_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RequestSystemQuit::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::rsctrl::system::RequestSystemQuit_QuitCode_IsValid(value)) { - set_quit_code(static_cast< ::rsctrl::system::RequestSystemQuit_QuitCode >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void RequestSystemQuit::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; - if (has_quit_code()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->quit_code(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* RequestSystemQuit::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; - if (has_quit_code()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->quit_code(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int RequestSystemQuit::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; - if (has_quit_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->quit_code()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RequestSystemQuit::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RequestSystemQuit* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RequestSystemQuit::MergeFrom(const RequestSystemQuit& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_quit_code()) { - set_quit_code(from.quit_code()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RequestSystemQuit::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RequestSystemQuit::CopyFrom(const RequestSystemQuit& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RequestSystemQuit::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void RequestSystemQuit::Swap(RequestSystemQuit* other) { - if (other != this) { - std::swap(quit_code_, other->quit_code_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata RequestSystemQuit::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RequestSystemQuit_descriptor_; - metadata.reflection = RequestSystemQuit_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ResponseSystemQuit::kStatusFieldNumber; -#endif // !_MSC_VER - -ResponseSystemQuit::ResponseSystemQuit() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ResponseSystemQuit::InitAsDefaultInstance() { - status_ = const_cast< ::rsctrl::core::Status*>(&::rsctrl::core::Status::default_instance()); -} - -ResponseSystemQuit::ResponseSystemQuit(const ResponseSystemQuit& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ResponseSystemQuit::SharedCtor() { - _cached_size_ = 0; - status_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ResponseSystemQuit::~ResponseSystemQuit() { - SharedDtor(); -} - -void ResponseSystemQuit::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void ResponseSystemQuit::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ResponseSystemQuit::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ResponseSystemQuit_descriptor_; -} - -const ResponseSystemQuit& ResponseSystemQuit::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -ResponseSystemQuit* ResponseSystemQuit::default_instance_ = NULL; - -ResponseSystemQuit* ResponseSystemQuit::New() const { - return new ResponseSystemQuit; -} - -void ResponseSystemQuit::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_status()) { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ResponseSystemQuit::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .rsctrl.core.Status status = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ResponseSystemQuit::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->status(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ResponseSystemQuit::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->status(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ResponseSystemQuit::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->status()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ResponseSystemQuit::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ResponseSystemQuit* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ResponseSystemQuit::MergeFrom(const ResponseSystemQuit& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_status()) { - mutable_status()->::rsctrl::core::Status::MergeFrom(from.status()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ResponseSystemQuit::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResponseSystemQuit::CopyFrom(const ResponseSystemQuit& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResponseSystemQuit::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_status()) { - if (!this->status().IsInitialized()) return false; - } - return true; -} - -void ResponseSystemQuit::Swap(ResponseSystemQuit* other) { - if (other != this) { - std::swap(status_, other->status_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata ResponseSystemQuit::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ResponseSystemQuit_descriptor_; - metadata.reflection = ResponseSystemQuit_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER -#endif // !_MSC_VER - -RequestSystemExternalAccess::RequestSystemExternalAccess() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void RequestSystemExternalAccess::InitAsDefaultInstance() { -} - -RequestSystemExternalAccess::RequestSystemExternalAccess(const RequestSystemExternalAccess& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void RequestSystemExternalAccess::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RequestSystemExternalAccess::~RequestSystemExternalAccess() { - SharedDtor(); -} - -void RequestSystemExternalAccess::SharedDtor() { - if (this != default_instance_) { - } -} - -void RequestSystemExternalAccess::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RequestSystemExternalAccess::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RequestSystemExternalAccess_descriptor_; -} - -const RequestSystemExternalAccess& RequestSystemExternalAccess::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -RequestSystemExternalAccess* RequestSystemExternalAccess::default_instance_ = NULL; - -RequestSystemExternalAccess* RequestSystemExternalAccess::New() const { - return new RequestSystemExternalAccess; -} - -void RequestSystemExternalAccess::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RequestSystemExternalAccess::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - } - return true; -#undef DO_ -} - -void RequestSystemExternalAccess::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* RequestSystemExternalAccess::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int RequestSystemExternalAccess::ByteSize() const { - int total_size = 0; - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RequestSystemExternalAccess::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RequestSystemExternalAccess* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RequestSystemExternalAccess::MergeFrom(const RequestSystemExternalAccess& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RequestSystemExternalAccess::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RequestSystemExternalAccess::CopyFrom(const RequestSystemExternalAccess& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RequestSystemExternalAccess::IsInitialized() const { - - return true; -} - -void RequestSystemExternalAccess::Swap(RequestSystemExternalAccess* other) { - if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata RequestSystemExternalAccess::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RequestSystemExternalAccess_descriptor_; - metadata.reflection = RequestSystemExternalAccess_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ResponseSystemExternalAccess::kStatusFieldNumber; -const int ResponseSystemExternalAccess::kExtPortFieldNumber; -const int ResponseSystemExternalAccess::kDhtKeyFieldNumber; -#endif // !_MSC_VER - -ResponseSystemExternalAccess::ResponseSystemExternalAccess() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void ResponseSystemExternalAccess::InitAsDefaultInstance() { - status_ = const_cast< ::rsctrl::core::Status*>(&::rsctrl::core::Status::default_instance()); -} - -ResponseSystemExternalAccess::ResponseSystemExternalAccess(const ResponseSystemExternalAccess& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void ResponseSystemExternalAccess::SharedCtor() { - _cached_size_ = 0; - status_ = NULL; - ext_port_ = 0u; - dht_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ResponseSystemExternalAccess::~ResponseSystemExternalAccess() { - SharedDtor(); -} - -void ResponseSystemExternalAccess::SharedDtor() { - if (dht_key_ != &::google::protobuf::internal::kEmptyString) { - delete dht_key_; - } - if (this != default_instance_) { - delete status_; - } -} - -void ResponseSystemExternalAccess::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ResponseSystemExternalAccess::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ResponseSystemExternalAccess_descriptor_; -} - -const ResponseSystemExternalAccess& ResponseSystemExternalAccess::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_system_2eproto(); return *default_instance_; -} - -ResponseSystemExternalAccess* ResponseSystemExternalAccess::default_instance_ = NULL; - -ResponseSystemExternalAccess* ResponseSystemExternalAccess::New() const { - return new ResponseSystemExternalAccess; -} - -void ResponseSystemExternalAccess::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_status()) { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - } - ext_port_ = 0u; - if (has_dht_key()) { - if (dht_key_ != &::google::protobuf::internal::kEmptyString) { - dht_key_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ResponseSystemExternalAccess::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .rsctrl.core.Status status = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_ext_port; - break; - } - - // required uint32 ext_port = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_ext_port: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &ext_port_))); - set_has_ext_port(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_dht_key; - break; - } - - // required string dht_key = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dht_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_dht_key())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->dht_key().data(), this->dht_key().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void ResponseSystemExternalAccess::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->status(), output); - } - - // required uint32 ext_port = 2; - if (has_ext_port()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->ext_port(), output); - } - - // required string dht_key = 3; - if (has_dht_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->dht_key().data(), this->dht_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->dht_key(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ResponseSystemExternalAccess::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->status(), target); - } - - // required uint32 ext_port = 2; - if (has_ext_port()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->ext_port(), target); - } - - // required string dht_key = 3; - if (has_dht_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->dht_key().data(), this->dht_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->dht_key(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int ResponseSystemExternalAccess::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .rsctrl.core.Status status = 1; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->status()); - } - - // required uint32 ext_port = 2; - if (has_ext_port()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->ext_port()); - } - - // required string dht_key = 3; - if (has_dht_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dht_key()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ResponseSystemExternalAccess::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ResponseSystemExternalAccess* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ResponseSystemExternalAccess::MergeFrom(const ResponseSystemExternalAccess& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_status()) { - mutable_status()->::rsctrl::core::Status::MergeFrom(from.status()); - } - if (from.has_ext_port()) { - set_ext_port(from.ext_port()); - } - if (from.has_dht_key()) { - set_dht_key(from.dht_key()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ResponseSystemExternalAccess::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResponseSystemExternalAccess::CopyFrom(const ResponseSystemExternalAccess& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResponseSystemExternalAccess::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - if (has_status()) { - if (!this->status().IsInitialized()) return false; - } - return true; -} - -void ResponseSystemExternalAccess::Swap(ResponseSystemExternalAccess* other) { - if (other != this) { - std::swap(status_, other->status_); - std::swap(ext_port_, other->ext_port_); - std::swap(dht_key_, other->dht_key_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata ResponseSystemExternalAccess::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ResponseSystemExternalAccess_descriptor_; - metadata.reflection = ResponseSystemExternalAccess_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace system -} // namespace rsctrl - -// @@protoc_insertion_point(global_scope) diff --git a/retroshare-nogui/src/rpc/proto/gencc/system.pb.h b/retroshare-nogui/src/rpc/proto/gencc/system.pb.h deleted file mode 100644 index 8858b9319..000000000 --- a/retroshare-nogui/src/rpc/proto/gencc/system.pb.h +++ /dev/null @@ -1,1070 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: system.proto - -#ifndef PROTOBUF_system_2eproto__INCLUDED -#define PROTOBUF_system_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2004000 -#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 2004001 < GOOGLE_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 "core.pb.h" -// @@protoc_insertion_point(includes) - -namespace rsctrl { -namespace system { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_system_2eproto(); -void protobuf_AssignDesc_system_2eproto(); -void protobuf_ShutdownFile_system_2eproto(); - -class RequestSystemStatus; -class ResponseSystemStatus; -class RequestSystemQuit; -class ResponseSystemQuit; -class RequestSystemExternalAccess; -class ResponseSystemExternalAccess; - -enum ResponseSystemStatus_NetCode { - ResponseSystemStatus_NetCode_BAD_UNKNOWN = 0, - ResponseSystemStatus_NetCode_BAD_OFFLINE = 1, - ResponseSystemStatus_NetCode_BAD_NATSYM = 2, - ResponseSystemStatus_NetCode_BAD_NODHT_NAT = 3, - ResponseSystemStatus_NetCode_WARNING_RESTART = 4, - ResponseSystemStatus_NetCode_WARNING_NATTED = 5, - ResponseSystemStatus_NetCode_WARNING_NODHT = 6, - ResponseSystemStatus_NetCode_GOOD = 7, - ResponseSystemStatus_NetCode_ADV_FORWARD = 8 -}; -bool ResponseSystemStatus_NetCode_IsValid(int value); -const ResponseSystemStatus_NetCode ResponseSystemStatus_NetCode_NetCode_MIN = ResponseSystemStatus_NetCode_BAD_UNKNOWN; -const ResponseSystemStatus_NetCode ResponseSystemStatus_NetCode_NetCode_MAX = ResponseSystemStatus_NetCode_ADV_FORWARD; -const int ResponseSystemStatus_NetCode_NetCode_ARRAYSIZE = ResponseSystemStatus_NetCode_NetCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ResponseSystemStatus_NetCode_descriptor(); -inline const ::std::string& ResponseSystemStatus_NetCode_Name(ResponseSystemStatus_NetCode value) { - return ::google::protobuf::internal::NameOfEnum( - ResponseSystemStatus_NetCode_descriptor(), value); -} -inline bool ResponseSystemStatus_NetCode_Parse( - const ::std::string& name, ResponseSystemStatus_NetCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResponseSystemStatus_NetCode_descriptor(), name, value); -} -enum RequestSystemQuit_QuitCode { - RequestSystemQuit_QuitCode_CLOSE_CHANNEL = 1, - RequestSystemQuit_QuitCode_SHUTDOWN_RS = 2 -}; -bool RequestSystemQuit_QuitCode_IsValid(int value); -const RequestSystemQuit_QuitCode RequestSystemQuit_QuitCode_QuitCode_MIN = RequestSystemQuit_QuitCode_CLOSE_CHANNEL; -const RequestSystemQuit_QuitCode RequestSystemQuit_QuitCode_QuitCode_MAX = RequestSystemQuit_QuitCode_SHUTDOWN_RS; -const int RequestSystemQuit_QuitCode_QuitCode_ARRAYSIZE = RequestSystemQuit_QuitCode_QuitCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RequestSystemQuit_QuitCode_descriptor(); -inline const ::std::string& RequestSystemQuit_QuitCode_Name(RequestSystemQuit_QuitCode value) { - return ::google::protobuf::internal::NameOfEnum( - RequestSystemQuit_QuitCode_descriptor(), value); -} -inline bool RequestSystemQuit_QuitCode_Parse( - const ::std::string& name, RequestSystemQuit_QuitCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RequestSystemQuit_QuitCode_descriptor(), name, value); -} -enum RequestMsgIds { - MsgId_RequestSystemStatus = 1, - MsgId_RequestSystemQuit = 2, - MsgId_RequestSystemExternalAccess = 3 -}; -bool RequestMsgIds_IsValid(int value); -const RequestMsgIds RequestMsgIds_MIN = MsgId_RequestSystemStatus; -const RequestMsgIds RequestMsgIds_MAX = MsgId_RequestSystemExternalAccess; -const int RequestMsgIds_ARRAYSIZE = RequestMsgIds_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RequestMsgIds_descriptor(); -inline const ::std::string& RequestMsgIds_Name(RequestMsgIds value) { - return ::google::protobuf::internal::NameOfEnum( - RequestMsgIds_descriptor(), value); -} -inline bool RequestMsgIds_Parse( - const ::std::string& name, RequestMsgIds* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RequestMsgIds_descriptor(), name, value); -} -enum ResponseMsgIds { - MsgId_ResponseSystemStatus = 1, - MsgId_ResponseSystemQuit = 2, - MsgId_ResponseSystemExternalAccess = 3 -}; -bool ResponseMsgIds_IsValid(int value); -const ResponseMsgIds ResponseMsgIds_MIN = MsgId_ResponseSystemStatus; -const ResponseMsgIds ResponseMsgIds_MAX = MsgId_ResponseSystemExternalAccess; -const int ResponseMsgIds_ARRAYSIZE = ResponseMsgIds_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ResponseMsgIds_descriptor(); -inline const ::std::string& ResponseMsgIds_Name(ResponseMsgIds value) { - return ::google::protobuf::internal::NameOfEnum( - ResponseMsgIds_descriptor(), value); -} -inline bool ResponseMsgIds_Parse( - const ::std::string& name, ResponseMsgIds* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResponseMsgIds_descriptor(), name, value); -} -// =================================================================== - -class RequestSystemStatus : public ::google::protobuf::Message { - public: - RequestSystemStatus(); - virtual ~RequestSystemStatus(); - - RequestSystemStatus(const RequestSystemStatus& from); - - inline RequestSystemStatus& operator=(const RequestSystemStatus& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestSystemStatus& default_instance(); - - void Swap(RequestSystemStatus* other); - - // implements Message ---------------------------------------------- - - RequestSystemStatus* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestSystemStatus& from); - void MergeFrom(const RequestSystemStatus& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:rsctrl.system.RequestSystemStatus) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static RequestSystemStatus* default_instance_; -}; -// ------------------------------------------------------------------- - -class ResponseSystemStatus : public ::google::protobuf::Message { - public: - ResponseSystemStatus(); - virtual ~ResponseSystemStatus(); - - ResponseSystemStatus(const ResponseSystemStatus& from); - - inline ResponseSystemStatus& operator=(const ResponseSystemStatus& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ResponseSystemStatus& default_instance(); - - void Swap(ResponseSystemStatus* other); - - // implements Message ---------------------------------------------- - - ResponseSystemStatus* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResponseSystemStatus& from); - void MergeFrom(const ResponseSystemStatus& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef ResponseSystemStatus_NetCode NetCode; - static const NetCode BAD_UNKNOWN = ResponseSystemStatus_NetCode_BAD_UNKNOWN; - static const NetCode BAD_OFFLINE = ResponseSystemStatus_NetCode_BAD_OFFLINE; - static const NetCode BAD_NATSYM = ResponseSystemStatus_NetCode_BAD_NATSYM; - static const NetCode BAD_NODHT_NAT = ResponseSystemStatus_NetCode_BAD_NODHT_NAT; - static const NetCode WARNING_RESTART = ResponseSystemStatus_NetCode_WARNING_RESTART; - static const NetCode WARNING_NATTED = ResponseSystemStatus_NetCode_WARNING_NATTED; - static const NetCode WARNING_NODHT = ResponseSystemStatus_NetCode_WARNING_NODHT; - static const NetCode GOOD = ResponseSystemStatus_NetCode_GOOD; - static const NetCode ADV_FORWARD = ResponseSystemStatus_NetCode_ADV_FORWARD; - static inline bool NetCode_IsValid(int value) { - return ResponseSystemStatus_NetCode_IsValid(value); - } - static const NetCode NetCode_MIN = - ResponseSystemStatus_NetCode_NetCode_MIN; - static const NetCode NetCode_MAX = - ResponseSystemStatus_NetCode_NetCode_MAX; - static const int NetCode_ARRAYSIZE = - ResponseSystemStatus_NetCode_NetCode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - NetCode_descriptor() { - return ResponseSystemStatus_NetCode_descriptor(); - } - static inline const ::std::string& NetCode_Name(NetCode value) { - return ResponseSystemStatus_NetCode_Name(value); - } - static inline bool NetCode_Parse(const ::std::string& name, - NetCode* value) { - return ResponseSystemStatus_NetCode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.Status status = 1; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 1; - inline const ::rsctrl::core::Status& status() const; - inline ::rsctrl::core::Status* mutable_status(); - inline ::rsctrl::core::Status* release_status(); - - // required uint32 no_peers = 2; - inline bool has_no_peers() const; - inline void clear_no_peers(); - static const int kNoPeersFieldNumber = 2; - inline ::google::protobuf::uint32 no_peers() const; - inline void set_no_peers(::google::protobuf::uint32 value); - - // required uint32 no_connected = 3; - inline bool has_no_connected() const; - inline void clear_no_connected(); - static const int kNoConnectedFieldNumber = 3; - inline ::google::protobuf::uint32 no_connected() const; - inline void set_no_connected(::google::protobuf::uint32 value); - - // required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; - inline bool has_net_status() const; - inline void clear_net_status(); - static const int kNetStatusFieldNumber = 4; - inline ::rsctrl::system::ResponseSystemStatus_NetCode net_status() const; - inline void set_net_status(::rsctrl::system::ResponseSystemStatus_NetCode value); - - // required .rsctrl.core.Bandwidth bw_total = 5; - inline bool has_bw_total() const; - inline void clear_bw_total(); - static const int kBwTotalFieldNumber = 5; - inline const ::rsctrl::core::Bandwidth& bw_total() const; - inline ::rsctrl::core::Bandwidth* mutable_bw_total(); - inline ::rsctrl::core::Bandwidth* release_bw_total(); - - // @@protoc_insertion_point(class_scope:rsctrl.system.ResponseSystemStatus) - private: - inline void set_has_status(); - inline void clear_has_status(); - inline void set_has_no_peers(); - inline void clear_has_no_peers(); - inline void set_has_no_connected(); - inline void clear_has_no_connected(); - inline void set_has_net_status(); - inline void clear_has_net_status(); - inline void set_has_bw_total(); - inline void clear_has_bw_total(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::Status* status_; - ::google::protobuf::uint32 no_peers_; - ::google::protobuf::uint32 no_connected_; - ::rsctrl::core::Bandwidth* bw_total_; - int net_status_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static ResponseSystemStatus* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestSystemQuit : public ::google::protobuf::Message { - public: - RequestSystemQuit(); - virtual ~RequestSystemQuit(); - - RequestSystemQuit(const RequestSystemQuit& from); - - inline RequestSystemQuit& operator=(const RequestSystemQuit& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestSystemQuit& default_instance(); - - void Swap(RequestSystemQuit* other); - - // implements Message ---------------------------------------------- - - RequestSystemQuit* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestSystemQuit& from); - void MergeFrom(const RequestSystemQuit& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - typedef RequestSystemQuit_QuitCode QuitCode; - static const QuitCode CLOSE_CHANNEL = RequestSystemQuit_QuitCode_CLOSE_CHANNEL; - static const QuitCode SHUTDOWN_RS = RequestSystemQuit_QuitCode_SHUTDOWN_RS; - static inline bool QuitCode_IsValid(int value) { - return RequestSystemQuit_QuitCode_IsValid(value); - } - static const QuitCode QuitCode_MIN = - RequestSystemQuit_QuitCode_QuitCode_MIN; - static const QuitCode QuitCode_MAX = - RequestSystemQuit_QuitCode_QuitCode_MAX; - static const int QuitCode_ARRAYSIZE = - RequestSystemQuit_QuitCode_QuitCode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - QuitCode_descriptor() { - return RequestSystemQuit_QuitCode_descriptor(); - } - static inline const ::std::string& QuitCode_Name(QuitCode value) { - return RequestSystemQuit_QuitCode_Name(value); - } - static inline bool QuitCode_Parse(const ::std::string& name, - QuitCode* value) { - return RequestSystemQuit_QuitCode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; - inline bool has_quit_code() const; - inline void clear_quit_code(); - static const int kQuitCodeFieldNumber = 1; - inline ::rsctrl::system::RequestSystemQuit_QuitCode quit_code() const; - inline void set_quit_code(::rsctrl::system::RequestSystemQuit_QuitCode value); - - // @@protoc_insertion_point(class_scope:rsctrl.system.RequestSystemQuit) - private: - inline void set_has_quit_code(); - inline void clear_has_quit_code(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - int quit_code_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static RequestSystemQuit* default_instance_; -}; -// ------------------------------------------------------------------- - -class ResponseSystemQuit : public ::google::protobuf::Message { - public: - ResponseSystemQuit(); - virtual ~ResponseSystemQuit(); - - ResponseSystemQuit(const ResponseSystemQuit& from); - - inline ResponseSystemQuit& operator=(const ResponseSystemQuit& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ResponseSystemQuit& default_instance(); - - void Swap(ResponseSystemQuit* other); - - // implements Message ---------------------------------------------- - - ResponseSystemQuit* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResponseSystemQuit& from); - void MergeFrom(const ResponseSystemQuit& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.Status status = 1; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 1; - inline const ::rsctrl::core::Status& status() const; - inline ::rsctrl::core::Status* mutable_status(); - inline ::rsctrl::core::Status* release_status(); - - // @@protoc_insertion_point(class_scope:rsctrl.system.ResponseSystemQuit) - private: - inline void set_has_status(); - inline void clear_has_status(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::Status* status_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static ResponseSystemQuit* default_instance_; -}; -// ------------------------------------------------------------------- - -class RequestSystemExternalAccess : public ::google::protobuf::Message { - public: - RequestSystemExternalAccess(); - virtual ~RequestSystemExternalAccess(); - - RequestSystemExternalAccess(const RequestSystemExternalAccess& from); - - inline RequestSystemExternalAccess& operator=(const RequestSystemExternalAccess& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RequestSystemExternalAccess& default_instance(); - - void Swap(RequestSystemExternalAccess* other); - - // implements Message ---------------------------------------------- - - RequestSystemExternalAccess* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RequestSystemExternalAccess& from); - void MergeFrom(const RequestSystemExternalAccess& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:rsctrl.system.RequestSystemExternalAccess) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static RequestSystemExternalAccess* default_instance_; -}; -// ------------------------------------------------------------------- - -class ResponseSystemExternalAccess : public ::google::protobuf::Message { - public: - ResponseSystemExternalAccess(); - virtual ~ResponseSystemExternalAccess(); - - ResponseSystemExternalAccess(const ResponseSystemExternalAccess& from); - - inline ResponseSystemExternalAccess& operator=(const ResponseSystemExternalAccess& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ResponseSystemExternalAccess& default_instance(); - - void Swap(ResponseSystemExternalAccess* other); - - // implements Message ---------------------------------------------- - - ResponseSystemExternalAccess* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResponseSystemExternalAccess& from); - void MergeFrom(const ResponseSystemExternalAccess& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .rsctrl.core.Status status = 1; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 1; - inline const ::rsctrl::core::Status& status() const; - inline ::rsctrl::core::Status* mutable_status(); - inline ::rsctrl::core::Status* release_status(); - - // required uint32 ext_port = 2; - inline bool has_ext_port() const; - inline void clear_ext_port(); - static const int kExtPortFieldNumber = 2; - inline ::google::protobuf::uint32 ext_port() const; - inline void set_ext_port(::google::protobuf::uint32 value); - - // required string dht_key = 3; - inline bool has_dht_key() const; - inline void clear_dht_key(); - static const int kDhtKeyFieldNumber = 3; - inline const ::std::string& dht_key() const; - inline void set_dht_key(const ::std::string& value); - inline void set_dht_key(const char* value); - inline void set_dht_key(const char* value, size_t size); - inline ::std::string* mutable_dht_key(); - inline ::std::string* release_dht_key(); - - // @@protoc_insertion_point(class_scope:rsctrl.system.ResponseSystemExternalAccess) - private: - inline void set_has_status(); - inline void clear_has_status(); - inline void set_has_ext_port(); - inline void clear_has_ext_port(); - inline void set_has_dht_key(); - inline void clear_has_dht_key(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::rsctrl::core::Status* status_; - ::std::string* dht_key_; - ::google::protobuf::uint32 ext_port_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_system_2eproto(); - friend void protobuf_AssignDesc_system_2eproto(); - friend void protobuf_ShutdownFile_system_2eproto(); - - void InitAsDefaultInstance(); - static ResponseSystemExternalAccess* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// RequestSystemStatus - -// ------------------------------------------------------------------- - -// ResponseSystemStatus - -// required .rsctrl.core.Status status = 1; -inline bool ResponseSystemStatus::has_status() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ResponseSystemStatus::set_has_status() { - _has_bits_[0] |= 0x00000001u; -} -inline void ResponseSystemStatus::clear_has_status() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ResponseSystemStatus::clear_status() { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - clear_has_status(); -} -inline const ::rsctrl::core::Status& ResponseSystemStatus::status() const { - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::rsctrl::core::Status* ResponseSystemStatus::mutable_status() { - set_has_status(); - if (status_ == NULL) status_ = new ::rsctrl::core::Status; - return status_; -} -inline ::rsctrl::core::Status* ResponseSystemStatus::release_status() { - clear_has_status(); - ::rsctrl::core::Status* temp = status_; - status_ = NULL; - return temp; -} - -// required uint32 no_peers = 2; -inline bool ResponseSystemStatus::has_no_peers() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ResponseSystemStatus::set_has_no_peers() { - _has_bits_[0] |= 0x00000002u; -} -inline void ResponseSystemStatus::clear_has_no_peers() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ResponseSystemStatus::clear_no_peers() { - no_peers_ = 0u; - clear_has_no_peers(); -} -inline ::google::protobuf::uint32 ResponseSystemStatus::no_peers() const { - return no_peers_; -} -inline void ResponseSystemStatus::set_no_peers(::google::protobuf::uint32 value) { - set_has_no_peers(); - no_peers_ = value; -} - -// required uint32 no_connected = 3; -inline bool ResponseSystemStatus::has_no_connected() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ResponseSystemStatus::set_has_no_connected() { - _has_bits_[0] |= 0x00000004u; -} -inline void ResponseSystemStatus::clear_has_no_connected() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ResponseSystemStatus::clear_no_connected() { - no_connected_ = 0u; - clear_has_no_connected(); -} -inline ::google::protobuf::uint32 ResponseSystemStatus::no_connected() const { - return no_connected_; -} -inline void ResponseSystemStatus::set_no_connected(::google::protobuf::uint32 value) { - set_has_no_connected(); - no_connected_ = value; -} - -// required .rsctrl.system.ResponseSystemStatus.NetCode net_status = 4; -inline bool ResponseSystemStatus::has_net_status() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ResponseSystemStatus::set_has_net_status() { - _has_bits_[0] |= 0x00000008u; -} -inline void ResponseSystemStatus::clear_has_net_status() { - _has_bits_[0] &= ~0x00000008u; -} -inline void ResponseSystemStatus::clear_net_status() { - net_status_ = 0; - clear_has_net_status(); -} -inline ::rsctrl::system::ResponseSystemStatus_NetCode ResponseSystemStatus::net_status() const { - return static_cast< ::rsctrl::system::ResponseSystemStatus_NetCode >(net_status_); -} -inline void ResponseSystemStatus::set_net_status(::rsctrl::system::ResponseSystemStatus_NetCode value) { - GOOGLE_DCHECK(::rsctrl::system::ResponseSystemStatus_NetCode_IsValid(value)); - set_has_net_status(); - net_status_ = value; -} - -// required .rsctrl.core.Bandwidth bw_total = 5; -inline bool ResponseSystemStatus::has_bw_total() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ResponseSystemStatus::set_has_bw_total() { - _has_bits_[0] |= 0x00000010u; -} -inline void ResponseSystemStatus::clear_has_bw_total() { - _has_bits_[0] &= ~0x00000010u; -} -inline void ResponseSystemStatus::clear_bw_total() { - if (bw_total_ != NULL) bw_total_->::rsctrl::core::Bandwidth::Clear(); - clear_has_bw_total(); -} -inline const ::rsctrl::core::Bandwidth& ResponseSystemStatus::bw_total() const { - return bw_total_ != NULL ? *bw_total_ : *default_instance_->bw_total_; -} -inline ::rsctrl::core::Bandwidth* ResponseSystemStatus::mutable_bw_total() { - set_has_bw_total(); - if (bw_total_ == NULL) bw_total_ = new ::rsctrl::core::Bandwidth; - return bw_total_; -} -inline ::rsctrl::core::Bandwidth* ResponseSystemStatus::release_bw_total() { - clear_has_bw_total(); - ::rsctrl::core::Bandwidth* temp = bw_total_; - bw_total_ = NULL; - return temp; -} - -// ------------------------------------------------------------------- - -// RequestSystemQuit - -// required .rsctrl.system.RequestSystemQuit.QuitCode quit_code = 1; -inline bool RequestSystemQuit::has_quit_code() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RequestSystemQuit::set_has_quit_code() { - _has_bits_[0] |= 0x00000001u; -} -inline void RequestSystemQuit::clear_has_quit_code() { - _has_bits_[0] &= ~0x00000001u; -} -inline void RequestSystemQuit::clear_quit_code() { - quit_code_ = 1; - clear_has_quit_code(); -} -inline ::rsctrl::system::RequestSystemQuit_QuitCode RequestSystemQuit::quit_code() const { - return static_cast< ::rsctrl::system::RequestSystemQuit_QuitCode >(quit_code_); -} -inline void RequestSystemQuit::set_quit_code(::rsctrl::system::RequestSystemQuit_QuitCode value) { - GOOGLE_DCHECK(::rsctrl::system::RequestSystemQuit_QuitCode_IsValid(value)); - set_has_quit_code(); - quit_code_ = value; -} - -// ------------------------------------------------------------------- - -// ResponseSystemQuit - -// required .rsctrl.core.Status status = 1; -inline bool ResponseSystemQuit::has_status() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ResponseSystemQuit::set_has_status() { - _has_bits_[0] |= 0x00000001u; -} -inline void ResponseSystemQuit::clear_has_status() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ResponseSystemQuit::clear_status() { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - clear_has_status(); -} -inline const ::rsctrl::core::Status& ResponseSystemQuit::status() const { - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::rsctrl::core::Status* ResponseSystemQuit::mutable_status() { - set_has_status(); - if (status_ == NULL) status_ = new ::rsctrl::core::Status; - return status_; -} -inline ::rsctrl::core::Status* ResponseSystemQuit::release_status() { - clear_has_status(); - ::rsctrl::core::Status* temp = status_; - status_ = NULL; - return temp; -} - -// ------------------------------------------------------------------- - -// RequestSystemExternalAccess - -// ------------------------------------------------------------------- - -// ResponseSystemExternalAccess - -// required .rsctrl.core.Status status = 1; -inline bool ResponseSystemExternalAccess::has_status() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ResponseSystemExternalAccess::set_has_status() { - _has_bits_[0] |= 0x00000001u; -} -inline void ResponseSystemExternalAccess::clear_has_status() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ResponseSystemExternalAccess::clear_status() { - if (status_ != NULL) status_->::rsctrl::core::Status::Clear(); - clear_has_status(); -} -inline const ::rsctrl::core::Status& ResponseSystemExternalAccess::status() const { - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::rsctrl::core::Status* ResponseSystemExternalAccess::mutable_status() { - set_has_status(); - if (status_ == NULL) status_ = new ::rsctrl::core::Status; - return status_; -} -inline ::rsctrl::core::Status* ResponseSystemExternalAccess::release_status() { - clear_has_status(); - ::rsctrl::core::Status* temp = status_; - status_ = NULL; - return temp; -} - -// required uint32 ext_port = 2; -inline bool ResponseSystemExternalAccess::has_ext_port() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ResponseSystemExternalAccess::set_has_ext_port() { - _has_bits_[0] |= 0x00000002u; -} -inline void ResponseSystemExternalAccess::clear_has_ext_port() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ResponseSystemExternalAccess::clear_ext_port() { - ext_port_ = 0u; - clear_has_ext_port(); -} -inline ::google::protobuf::uint32 ResponseSystemExternalAccess::ext_port() const { - return ext_port_; -} -inline void ResponseSystemExternalAccess::set_ext_port(::google::protobuf::uint32 value) { - set_has_ext_port(); - ext_port_ = value; -} - -// required string dht_key = 3; -inline bool ResponseSystemExternalAccess::has_dht_key() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ResponseSystemExternalAccess::set_has_dht_key() { - _has_bits_[0] |= 0x00000004u; -} -inline void ResponseSystemExternalAccess::clear_has_dht_key() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ResponseSystemExternalAccess::clear_dht_key() { - if (dht_key_ != &::google::protobuf::internal::kEmptyString) { - dht_key_->clear(); - } - clear_has_dht_key(); -} -inline const ::std::string& ResponseSystemExternalAccess::dht_key() const { - return *dht_key_; -} -inline void ResponseSystemExternalAccess::set_dht_key(const ::std::string& value) { - set_has_dht_key(); - if (dht_key_ == &::google::protobuf::internal::kEmptyString) { - dht_key_ = new ::std::string; - } - dht_key_->assign(value); -} -inline void ResponseSystemExternalAccess::set_dht_key(const char* value) { - set_has_dht_key(); - if (dht_key_ == &::google::protobuf::internal::kEmptyString) { - dht_key_ = new ::std::string; - } - dht_key_->assign(value); -} -inline void ResponseSystemExternalAccess::set_dht_key(const char* value, size_t size) { - set_has_dht_key(); - if (dht_key_ == &::google::protobuf::internal::kEmptyString) { - dht_key_ = new ::std::string; - } - dht_key_->assign(reinterpret_cast(value), size); -} -inline ::std::string* ResponseSystemExternalAccess::mutable_dht_key() { - set_has_dht_key(); - if (dht_key_ == &::google::protobuf::internal::kEmptyString) { - dht_key_ = new ::std::string; - } - return dht_key_; -} -inline ::std::string* ResponseSystemExternalAccess::release_dht_key() { - clear_has_dht_key(); - if (dht_key_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = dht_key_; - dht_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace system -} // namespace rsctrl - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::rsctrl::system::ResponseSystemStatus_NetCode>() { - return ::rsctrl::system::ResponseSystemStatus_NetCode_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::rsctrl::system::RequestSystemQuit_QuitCode>() { - return ::rsctrl::system::RequestSystemQuit_QuitCode_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< rsctrl::system::RequestMsgIds>() { - return rsctrl::system::RequestMsgIds_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< rsctrl::system::ResponseMsgIds>() { - return rsctrl::system::ResponseMsgIds_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_system_2eproto__INCLUDED