network.pb.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: network.proto
  3. #ifndef PROTOBUF_network_2eproto__INCLUDED
  4. #define PROTOBUF_network_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. namespace protobuf_network_2eproto {
  30. // Internal implementation detail -- do not use these members.
  31. struct TableStruct {
  32. static const ::google::protobuf::internal::ParseTableField entries[];
  33. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  34. static const ::google::protobuf::internal::ParseTable schema[3];
  35. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  36. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  37. static const ::google::protobuf::uint32 offsets[];
  38. };
  39. void AddDescriptors();
  40. void InitDefaultsNetwork_informationImpl();
  41. void InitDefaultsNetwork_information();
  42. void InitDefaultsNetwork_parameterImpl();
  43. void InitDefaultsNetwork_parameter();
  44. void InitDefaultsNetwork_parameter_allImpl();
  45. void InitDefaultsNetwork_parameter_all();
  46. inline void InitDefaults() {
  47. InitDefaultsNetwork_information();
  48. InitDefaultsNetwork_parameter();
  49. InitDefaultsNetwork_parameter_all();
  50. }
  51. } // namespace protobuf_network_2eproto
  52. namespace Network_proto {
  53. class Network_information;
  54. class Network_informationDefaultTypeInternal;
  55. extern Network_informationDefaultTypeInternal _Network_information_default_instance_;
  56. class Network_parameter;
  57. class Network_parameterDefaultTypeInternal;
  58. extern Network_parameterDefaultTypeInternal _Network_parameter_default_instance_;
  59. class Network_parameter_all;
  60. class Network_parameter_allDefaultTypeInternal;
  61. extern Network_parameter_allDefaultTypeInternal _Network_parameter_all_default_instance_;
  62. } // namespace Network_proto
  63. namespace Network_proto {
  64. enum Network_mode {
  65. NETWORK_UNKNOWN = 0,
  66. TCP_CLIENT = 1,
  67. TCP_SERVER = 2,
  68. UDP = 3
  69. };
  70. bool Network_mode_IsValid(int value);
  71. const Network_mode Network_mode_MIN = NETWORK_UNKNOWN;
  72. const Network_mode Network_mode_MAX = UDP;
  73. const int Network_mode_ARRAYSIZE = Network_mode_MAX + 1;
  74. const ::google::protobuf::EnumDescriptor* Network_mode_descriptor();
  75. inline const ::std::string& Network_mode_Name(Network_mode value) {
  76. return ::google::protobuf::internal::NameOfEnum(
  77. Network_mode_descriptor(), value);
  78. }
  79. inline bool Network_mode_Parse(
  80. const ::std::string& name, Network_mode* value) {
  81. return ::google::protobuf::internal::ParseNamedEnum<Network_mode>(
  82. Network_mode_descriptor(), name, value);
  83. }
  84. // ===================================================================
  85. class Network_information : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_information) */ {
  86. public:
  87. Network_information();
  88. virtual ~Network_information();
  89. Network_information(const Network_information& from);
  90. inline Network_information& operator=(const Network_information& from) {
  91. CopyFrom(from);
  92. return *this;
  93. }
  94. #if LANG_CXX11
  95. Network_information(Network_information&& from) noexcept
  96. : Network_information() {
  97. *this = ::std::move(from);
  98. }
  99. inline Network_information& operator=(Network_information&& from) noexcept {
  100. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  101. if (this != &from) InternalSwap(&from);
  102. } else {
  103. CopyFrom(from);
  104. }
  105. return *this;
  106. }
  107. #endif
  108. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  109. return _internal_metadata_.unknown_fields();
  110. }
  111. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  112. return _internal_metadata_.mutable_unknown_fields();
  113. }
  114. static const ::google::protobuf::Descriptor* descriptor();
  115. static const Network_information& default_instance();
  116. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  117. static inline const Network_information* internal_default_instance() {
  118. return reinterpret_cast<const Network_information*>(
  119. &_Network_information_default_instance_);
  120. }
  121. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  122. 0;
  123. void Swap(Network_information* other);
  124. friend void swap(Network_information& a, Network_information& b) {
  125. a.Swap(&b);
  126. }
  127. // implements Message ----------------------------------------------
  128. inline Network_information* New() const PROTOBUF_FINAL { return New(NULL); }
  129. Network_information* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  130. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  131. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  132. void CopyFrom(const Network_information& from);
  133. void MergeFrom(const Network_information& from);
  134. void Clear() PROTOBUF_FINAL;
  135. bool IsInitialized() const PROTOBUF_FINAL;
  136. size_t ByteSizeLong() const PROTOBUF_FINAL;
  137. bool MergePartialFromCodedStream(
  138. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  139. void SerializeWithCachedSizes(
  140. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  141. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  142. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  143. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  144. private:
  145. void SharedCtor();
  146. void SharedDtor();
  147. void SetCachedSize(int size) const PROTOBUF_FINAL;
  148. void InternalSwap(Network_information* other);
  149. private:
  150. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  151. return NULL;
  152. }
  153. inline void* MaybeArenaPtr() const {
  154. return NULL;
  155. }
  156. public:
  157. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  158. // nested types ----------------------------------------------------
  159. // accessors -------------------------------------------------------
  160. // optional string ip = 3 [default = ""];
  161. bool has_ip() const;
  162. void clear_ip();
  163. static const int kIpFieldNumber = 3;
  164. const ::std::string& ip() const;
  165. void set_ip(const ::std::string& value);
  166. #if LANG_CXX11
  167. void set_ip(::std::string&& value);
  168. #endif
  169. void set_ip(const char* value);
  170. void set_ip(const char* value, size_t size);
  171. ::std::string* mutable_ip();
  172. ::std::string* release_ip();
  173. void set_allocated_ip(::std::string* ip);
  174. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  175. bool has_network_mode() const;
  176. void clear_network_mode();
  177. static const int kNetworkModeFieldNumber = 1;
  178. ::Network_proto::Network_mode network_mode() const;
  179. void set_network_mode(::Network_proto::Network_mode value);
  180. // optional int32 socket_id = 2 [default = 0];
  181. bool has_socket_id() const;
  182. void clear_socket_id();
  183. static const int kSocketIdFieldNumber = 2;
  184. ::google::protobuf::int32 socket_id() const;
  185. void set_socket_id(::google::protobuf::int32 value);
  186. // optional int32 port = 4 [default = 0];
  187. bool has_port() const;
  188. void clear_port();
  189. static const int kPortFieldNumber = 4;
  190. ::google::protobuf::int32 port() const;
  191. void set_port(::google::protobuf::int32 value);
  192. // @@protoc_insertion_point(class_scope:Network_proto.Network_information)
  193. private:
  194. void set_has_network_mode();
  195. void clear_has_network_mode();
  196. void set_has_socket_id();
  197. void clear_has_socket_id();
  198. void set_has_ip();
  199. void clear_has_ip();
  200. void set_has_port();
  201. void clear_has_port();
  202. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  203. ::google::protobuf::internal::HasBits<1> _has_bits_;
  204. mutable int _cached_size_;
  205. ::google::protobuf::internal::ArenaStringPtr ip_;
  206. int network_mode_;
  207. ::google::protobuf::int32 socket_id_;
  208. ::google::protobuf::int32 port_;
  209. friend struct ::protobuf_network_2eproto::TableStruct;
  210. friend void ::protobuf_network_2eproto::InitDefaultsNetwork_informationImpl();
  211. };
  212. // -------------------------------------------------------------------
  213. class Network_parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter) */ {
  214. public:
  215. Network_parameter();
  216. virtual ~Network_parameter();
  217. Network_parameter(const Network_parameter& from);
  218. inline Network_parameter& operator=(const Network_parameter& from) {
  219. CopyFrom(from);
  220. return *this;
  221. }
  222. #if LANG_CXX11
  223. Network_parameter(Network_parameter&& from) noexcept
  224. : Network_parameter() {
  225. *this = ::std::move(from);
  226. }
  227. inline Network_parameter& operator=(Network_parameter&& from) noexcept {
  228. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  229. if (this != &from) InternalSwap(&from);
  230. } else {
  231. CopyFrom(from);
  232. }
  233. return *this;
  234. }
  235. #endif
  236. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  237. return _internal_metadata_.unknown_fields();
  238. }
  239. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  240. return _internal_metadata_.mutable_unknown_fields();
  241. }
  242. static const ::google::protobuf::Descriptor* descriptor();
  243. static const Network_parameter& default_instance();
  244. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  245. static inline const Network_parameter* internal_default_instance() {
  246. return reinterpret_cast<const Network_parameter*>(
  247. &_Network_parameter_default_instance_);
  248. }
  249. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  250. 1;
  251. void Swap(Network_parameter* other);
  252. friend void swap(Network_parameter& a, Network_parameter& b) {
  253. a.Swap(&b);
  254. }
  255. // implements Message ----------------------------------------------
  256. inline Network_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
  257. Network_parameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  258. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  259. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  260. void CopyFrom(const Network_parameter& from);
  261. void MergeFrom(const Network_parameter& from);
  262. void Clear() PROTOBUF_FINAL;
  263. bool IsInitialized() const PROTOBUF_FINAL;
  264. size_t ByteSizeLong() const PROTOBUF_FINAL;
  265. bool MergePartialFromCodedStream(
  266. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  267. void SerializeWithCachedSizes(
  268. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  269. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  270. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  271. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  272. private:
  273. void SharedCtor();
  274. void SharedDtor();
  275. void SetCachedSize(int size) const PROTOBUF_FINAL;
  276. void InternalSwap(Network_parameter* other);
  277. private:
  278. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  279. return NULL;
  280. }
  281. inline void* MaybeArenaPtr() const {
  282. return NULL;
  283. }
  284. public:
  285. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  286. // nested types ----------------------------------------------------
  287. // accessors -------------------------------------------------------
  288. // repeated .Network_proto.Network_information network_information_vector = 1;
  289. int network_information_vector_size() const;
  290. void clear_network_information_vector();
  291. static const int kNetworkInformationVectorFieldNumber = 1;
  292. const ::Network_proto::Network_information& network_information_vector(int index) const;
  293. ::Network_proto::Network_information* mutable_network_information_vector(int index);
  294. ::Network_proto::Network_information* add_network_information_vector();
  295. ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >*
  296. mutable_network_information_vector();
  297. const ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >&
  298. network_information_vector() const;
  299. // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter)
  300. private:
  301. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  302. ::google::protobuf::internal::HasBits<1> _has_bits_;
  303. mutable int _cached_size_;
  304. ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information > network_information_vector_;
  305. friend struct ::protobuf_network_2eproto::TableStruct;
  306. friend void ::protobuf_network_2eproto::InitDefaultsNetwork_parameterImpl();
  307. };
  308. // -------------------------------------------------------------------
  309. class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter_all) */ {
  310. public:
  311. Network_parameter_all();
  312. virtual ~Network_parameter_all();
  313. Network_parameter_all(const Network_parameter_all& from);
  314. inline Network_parameter_all& operator=(const Network_parameter_all& from) {
  315. CopyFrom(from);
  316. return *this;
  317. }
  318. #if LANG_CXX11
  319. Network_parameter_all(Network_parameter_all&& from) noexcept
  320. : Network_parameter_all() {
  321. *this = ::std::move(from);
  322. }
  323. inline Network_parameter_all& operator=(Network_parameter_all&& from) noexcept {
  324. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  325. if (this != &from) InternalSwap(&from);
  326. } else {
  327. CopyFrom(from);
  328. }
  329. return *this;
  330. }
  331. #endif
  332. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  333. return _internal_metadata_.unknown_fields();
  334. }
  335. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  336. return _internal_metadata_.mutable_unknown_fields();
  337. }
  338. static const ::google::protobuf::Descriptor* descriptor();
  339. static const Network_parameter_all& default_instance();
  340. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  341. static inline const Network_parameter_all* internal_default_instance() {
  342. return reinterpret_cast<const Network_parameter_all*>(
  343. &_Network_parameter_all_default_instance_);
  344. }
  345. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  346. 2;
  347. void Swap(Network_parameter_all* other);
  348. friend void swap(Network_parameter_all& a, Network_parameter_all& b) {
  349. a.Swap(&b);
  350. }
  351. // implements Message ----------------------------------------------
  352. inline Network_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
  353. Network_parameter_all* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  354. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  355. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  356. void CopyFrom(const Network_parameter_all& from);
  357. void MergeFrom(const Network_parameter_all& from);
  358. void Clear() PROTOBUF_FINAL;
  359. bool IsInitialized() const PROTOBUF_FINAL;
  360. size_t ByteSizeLong() const PROTOBUF_FINAL;
  361. bool MergePartialFromCodedStream(
  362. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  363. void SerializeWithCachedSizes(
  364. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  365. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  366. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  367. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  368. private:
  369. void SharedCtor();
  370. void SharedDtor();
  371. void SetCachedSize(int size) const PROTOBUF_FINAL;
  372. void InternalSwap(Network_parameter_all* other);
  373. private:
  374. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  375. return NULL;
  376. }
  377. inline void* MaybeArenaPtr() const {
  378. return NULL;
  379. }
  380. public:
  381. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  382. // nested types ----------------------------------------------------
  383. // accessors -------------------------------------------------------
  384. // optional .Network_proto.Network_parameter network_parameters = 1;
  385. bool has_network_parameters() const;
  386. void clear_network_parameters();
  387. static const int kNetworkParametersFieldNumber = 1;
  388. const ::Network_proto::Network_parameter& network_parameters() const;
  389. ::Network_proto::Network_parameter* release_network_parameters();
  390. ::Network_proto::Network_parameter* mutable_network_parameters();
  391. void set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters);
  392. // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter_all)
  393. private:
  394. void set_has_network_parameters();
  395. void clear_has_network_parameters();
  396. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  397. ::google::protobuf::internal::HasBits<1> _has_bits_;
  398. mutable int _cached_size_;
  399. ::Network_proto::Network_parameter* network_parameters_;
  400. friend struct ::protobuf_network_2eproto::TableStruct;
  401. friend void ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_allImpl();
  402. };
  403. // ===================================================================
  404. // ===================================================================
  405. #ifdef __GNUC__
  406. #pragma GCC diagnostic push
  407. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  408. #endif // __GNUC__
  409. // Network_information
  410. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  411. inline bool Network_information::has_network_mode() const {
  412. return (_has_bits_[0] & 0x00000002u) != 0;
  413. }
  414. inline void Network_information::set_has_network_mode() {
  415. _has_bits_[0] |= 0x00000002u;
  416. }
  417. inline void Network_information::clear_has_network_mode() {
  418. _has_bits_[0] &= ~0x00000002u;
  419. }
  420. inline void Network_information::clear_network_mode() {
  421. network_mode_ = 0;
  422. clear_has_network_mode();
  423. }
  424. inline ::Network_proto::Network_mode Network_information::network_mode() const {
  425. // @@protoc_insertion_point(field_get:Network_proto.Network_information.network_mode)
  426. return static_cast< ::Network_proto::Network_mode >(network_mode_);
  427. }
  428. inline void Network_information::set_network_mode(::Network_proto::Network_mode value) {
  429. assert(::Network_proto::Network_mode_IsValid(value));
  430. set_has_network_mode();
  431. network_mode_ = value;
  432. // @@protoc_insertion_point(field_set:Network_proto.Network_information.network_mode)
  433. }
  434. // optional int32 socket_id = 2 [default = 0];
  435. inline bool Network_information::has_socket_id() const {
  436. return (_has_bits_[0] & 0x00000004u) != 0;
  437. }
  438. inline void Network_information::set_has_socket_id() {
  439. _has_bits_[0] |= 0x00000004u;
  440. }
  441. inline void Network_information::clear_has_socket_id() {
  442. _has_bits_[0] &= ~0x00000004u;
  443. }
  444. inline void Network_information::clear_socket_id() {
  445. socket_id_ = 0;
  446. clear_has_socket_id();
  447. }
  448. inline ::google::protobuf::int32 Network_information::socket_id() const {
  449. // @@protoc_insertion_point(field_get:Network_proto.Network_information.socket_id)
  450. return socket_id_;
  451. }
  452. inline void Network_information::set_socket_id(::google::protobuf::int32 value) {
  453. set_has_socket_id();
  454. socket_id_ = value;
  455. // @@protoc_insertion_point(field_set:Network_proto.Network_information.socket_id)
  456. }
  457. // optional string ip = 3 [default = ""];
  458. inline bool Network_information::has_ip() const {
  459. return (_has_bits_[0] & 0x00000001u) != 0;
  460. }
  461. inline void Network_information::set_has_ip() {
  462. _has_bits_[0] |= 0x00000001u;
  463. }
  464. inline void Network_information::clear_has_ip() {
  465. _has_bits_[0] &= ~0x00000001u;
  466. }
  467. inline void Network_information::clear_ip() {
  468. ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  469. clear_has_ip();
  470. }
  471. inline const ::std::string& Network_information::ip() const {
  472. // @@protoc_insertion_point(field_get:Network_proto.Network_information.ip)
  473. return ip_.GetNoArena();
  474. }
  475. inline void Network_information::set_ip(const ::std::string& value) {
  476. set_has_ip();
  477. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  478. // @@protoc_insertion_point(field_set:Network_proto.Network_information.ip)
  479. }
  480. #if LANG_CXX11
  481. inline void Network_information::set_ip(::std::string&& value) {
  482. set_has_ip();
  483. ip_.SetNoArena(
  484. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  485. // @@protoc_insertion_point(field_set_rvalue:Network_proto.Network_information.ip)
  486. }
  487. #endif
  488. inline void Network_information::set_ip(const char* value) {
  489. GOOGLE_DCHECK(value != NULL);
  490. set_has_ip();
  491. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  492. // @@protoc_insertion_point(field_set_char:Network_proto.Network_information.ip)
  493. }
  494. inline void Network_information::set_ip(const char* value, size_t size) {
  495. set_has_ip();
  496. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  497. ::std::string(reinterpret_cast<const char*>(value), size));
  498. // @@protoc_insertion_point(field_set_pointer:Network_proto.Network_information.ip)
  499. }
  500. inline ::std::string* Network_information::mutable_ip() {
  501. set_has_ip();
  502. // @@protoc_insertion_point(field_mutable:Network_proto.Network_information.ip)
  503. return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  504. }
  505. inline ::std::string* Network_information::release_ip() {
  506. // @@protoc_insertion_point(field_release:Network_proto.Network_information.ip)
  507. clear_has_ip();
  508. return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  509. }
  510. inline void Network_information::set_allocated_ip(::std::string* ip) {
  511. if (ip != NULL) {
  512. set_has_ip();
  513. } else {
  514. clear_has_ip();
  515. }
  516. ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip);
  517. // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_information.ip)
  518. }
  519. // optional int32 port = 4 [default = 0];
  520. inline bool Network_information::has_port() const {
  521. return (_has_bits_[0] & 0x00000008u) != 0;
  522. }
  523. inline void Network_information::set_has_port() {
  524. _has_bits_[0] |= 0x00000008u;
  525. }
  526. inline void Network_information::clear_has_port() {
  527. _has_bits_[0] &= ~0x00000008u;
  528. }
  529. inline void Network_information::clear_port() {
  530. port_ = 0;
  531. clear_has_port();
  532. }
  533. inline ::google::protobuf::int32 Network_information::port() const {
  534. // @@protoc_insertion_point(field_get:Network_proto.Network_information.port)
  535. return port_;
  536. }
  537. inline void Network_information::set_port(::google::protobuf::int32 value) {
  538. set_has_port();
  539. port_ = value;
  540. // @@protoc_insertion_point(field_set:Network_proto.Network_information.port)
  541. }
  542. // -------------------------------------------------------------------
  543. // Network_parameter
  544. // repeated .Network_proto.Network_information network_information_vector = 1;
  545. inline int Network_parameter::network_information_vector_size() const {
  546. return network_information_vector_.size();
  547. }
  548. inline void Network_parameter::clear_network_information_vector() {
  549. network_information_vector_.Clear();
  550. }
  551. inline const ::Network_proto::Network_information& Network_parameter::network_information_vector(int index) const {
  552. // @@protoc_insertion_point(field_get:Network_proto.Network_parameter.network_information_vector)
  553. return network_information_vector_.Get(index);
  554. }
  555. inline ::Network_proto::Network_information* Network_parameter::mutable_network_information_vector(int index) {
  556. // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter.network_information_vector)
  557. return network_information_vector_.Mutable(index);
  558. }
  559. inline ::Network_proto::Network_information* Network_parameter::add_network_information_vector() {
  560. // @@protoc_insertion_point(field_add:Network_proto.Network_parameter.network_information_vector)
  561. return network_information_vector_.Add();
  562. }
  563. inline ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >*
  564. Network_parameter::mutable_network_information_vector() {
  565. // @@protoc_insertion_point(field_mutable_list:Network_proto.Network_parameter.network_information_vector)
  566. return &network_information_vector_;
  567. }
  568. inline const ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >&
  569. Network_parameter::network_information_vector() const {
  570. // @@protoc_insertion_point(field_list:Network_proto.Network_parameter.network_information_vector)
  571. return network_information_vector_;
  572. }
  573. // -------------------------------------------------------------------
  574. // Network_parameter_all
  575. // optional .Network_proto.Network_parameter network_parameters = 1;
  576. inline bool Network_parameter_all::has_network_parameters() const {
  577. return (_has_bits_[0] & 0x00000001u) != 0;
  578. }
  579. inline void Network_parameter_all::set_has_network_parameters() {
  580. _has_bits_[0] |= 0x00000001u;
  581. }
  582. inline void Network_parameter_all::clear_has_network_parameters() {
  583. _has_bits_[0] &= ~0x00000001u;
  584. }
  585. inline void Network_parameter_all::clear_network_parameters() {
  586. if (network_parameters_ != NULL) network_parameters_->Clear();
  587. clear_has_network_parameters();
  588. }
  589. inline const ::Network_proto::Network_parameter& Network_parameter_all::network_parameters() const {
  590. const ::Network_proto::Network_parameter* p = network_parameters_;
  591. // @@protoc_insertion_point(field_get:Network_proto.Network_parameter_all.network_parameters)
  592. return p != NULL ? *p : *reinterpret_cast<const ::Network_proto::Network_parameter*>(
  593. &::Network_proto::_Network_parameter_default_instance_);
  594. }
  595. inline ::Network_proto::Network_parameter* Network_parameter_all::release_network_parameters() {
  596. // @@protoc_insertion_point(field_release:Network_proto.Network_parameter_all.network_parameters)
  597. clear_has_network_parameters();
  598. ::Network_proto::Network_parameter* temp = network_parameters_;
  599. network_parameters_ = NULL;
  600. return temp;
  601. }
  602. inline ::Network_proto::Network_parameter* Network_parameter_all::mutable_network_parameters() {
  603. set_has_network_parameters();
  604. if (network_parameters_ == NULL) {
  605. network_parameters_ = new ::Network_proto::Network_parameter;
  606. }
  607. // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter_all.network_parameters)
  608. return network_parameters_;
  609. }
  610. inline void Network_parameter_all::set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters) {
  611. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  612. if (message_arena == NULL) {
  613. delete network_parameters_;
  614. }
  615. if (network_parameters) {
  616. ::google::protobuf::Arena* submessage_arena = NULL;
  617. if (message_arena != submessage_arena) {
  618. network_parameters = ::google::protobuf::internal::GetOwnedMessage(
  619. message_arena, network_parameters, submessage_arena);
  620. }
  621. set_has_network_parameters();
  622. } else {
  623. clear_has_network_parameters();
  624. }
  625. network_parameters_ = network_parameters;
  626. // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_parameter_all.network_parameters)
  627. }
  628. #ifdef __GNUC__
  629. #pragma GCC diagnostic pop
  630. #endif // __GNUC__
  631. // -------------------------------------------------------------------
  632. // -------------------------------------------------------------------
  633. // @@protoc_insertion_point(namespace_scope)
  634. } // namespace Network_proto
  635. namespace google {
  636. namespace protobuf {
  637. template <> struct is_proto_enum< ::Network_proto::Network_mode> : ::google::protobuf::internal::true_type {};
  638. template <>
  639. inline const EnumDescriptor* GetEnumDescriptor< ::Network_proto::Network_mode>() {
  640. return ::Network_proto::Network_mode_descriptor();
  641. }
  642. } // namespace protobuf
  643. } // namespace google
  644. // @@protoc_insertion_point(global_scope)
  645. #endif // PROTOBUF_network_2eproto__INCLUDED