network.pb.h 28 KB

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