network.pb.h 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: network.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_network_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_network_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3012000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_network_2eproto
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct TableStruct_network_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_network_2eproto;
  53. namespace Network_proto {
  54. class Network_information;
  55. class Network_informationDefaultTypeInternal;
  56. extern Network_informationDefaultTypeInternal _Network_information_default_instance_;
  57. class Network_parameter;
  58. class Network_parameterDefaultTypeInternal;
  59. extern Network_parameterDefaultTypeInternal _Network_parameter_default_instance_;
  60. class Network_parameter_all;
  61. class Network_parameter_allDefaultTypeInternal;
  62. extern Network_parameter_allDefaultTypeInternal _Network_parameter_all_default_instance_;
  63. } // namespace Network_proto
  64. PROTOBUF_NAMESPACE_OPEN
  65. template<> ::Network_proto::Network_information* Arena::CreateMaybeMessage<::Network_proto::Network_information>(Arena*);
  66. template<> ::Network_proto::Network_parameter* Arena::CreateMaybeMessage<::Network_proto::Network_parameter>(Arena*);
  67. template<> ::Network_proto::Network_parameter_all* Arena::CreateMaybeMessage<::Network_proto::Network_parameter_all>(Arena*);
  68. PROTOBUF_NAMESPACE_CLOSE
  69. namespace Network_proto {
  70. enum Network_mode : int {
  71. NETWORK_UNKNOWN = 0,
  72. TCP_CLIENT = 1,
  73. TCP_SERVER = 2,
  74. UDP = 3
  75. };
  76. bool Network_mode_IsValid(int value);
  77. constexpr Network_mode Network_mode_MIN = NETWORK_UNKNOWN;
  78. constexpr Network_mode Network_mode_MAX = UDP;
  79. constexpr int Network_mode_ARRAYSIZE = Network_mode_MAX + 1;
  80. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Network_mode_descriptor();
  81. template<typename T>
  82. inline const std::string& Network_mode_Name(T enum_t_value) {
  83. static_assert(::std::is_same<T, Network_mode>::value ||
  84. ::std::is_integral<T>::value,
  85. "Incorrect type passed to function Network_mode_Name.");
  86. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  87. Network_mode_descriptor(), enum_t_value);
  88. }
  89. inline bool Network_mode_Parse(
  90. const std::string& name, Network_mode* value) {
  91. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Network_mode>(
  92. Network_mode_descriptor(), name, value);
  93. }
  94. // ===================================================================
  95. class Network_information PROTOBUF_FINAL :
  96. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_information) */ {
  97. public:
  98. inline Network_information() : Network_information(nullptr) {};
  99. virtual ~Network_information();
  100. Network_information(const Network_information& from);
  101. Network_information(Network_information&& from) noexcept
  102. : Network_information() {
  103. *this = ::std::move(from);
  104. }
  105. inline Network_information& operator=(const Network_information& from) {
  106. CopyFrom(from);
  107. return *this;
  108. }
  109. inline Network_information& operator=(Network_information&& from) noexcept {
  110. if (GetArena() == from.GetArena()) {
  111. if (this != &from) InternalSwap(&from);
  112. } else {
  113. CopyFrom(from);
  114. }
  115. return *this;
  116. }
  117. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  118. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  119. }
  120. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  121. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  122. }
  123. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  124. return GetDescriptor();
  125. }
  126. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  127. return GetMetadataStatic().descriptor;
  128. }
  129. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  130. return GetMetadataStatic().reflection;
  131. }
  132. static const Network_information& default_instance();
  133. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  134. static inline const Network_information* internal_default_instance() {
  135. return reinterpret_cast<const Network_information*>(
  136. &_Network_information_default_instance_);
  137. }
  138. static constexpr int kIndexInFileMessages =
  139. 0;
  140. friend void swap(Network_information& a, Network_information& b) {
  141. a.Swap(&b);
  142. }
  143. inline void Swap(Network_information* other) {
  144. if (other == this) return;
  145. if (GetArena() == other->GetArena()) {
  146. InternalSwap(other);
  147. } else {
  148. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  149. }
  150. }
  151. void UnsafeArenaSwap(Network_information* other) {
  152. if (other == this) return;
  153. GOOGLE_DCHECK(GetArena() == other->GetArena());
  154. InternalSwap(other);
  155. }
  156. // implements Message ----------------------------------------------
  157. inline Network_information* New() const final {
  158. return CreateMaybeMessage<Network_information>(nullptr);
  159. }
  160. Network_information* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  161. return CreateMaybeMessage<Network_information>(arena);
  162. }
  163. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  164. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  165. void CopyFrom(const Network_information& from);
  166. void MergeFrom(const Network_information& from);
  167. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  168. bool IsInitialized() const final;
  169. size_t ByteSizeLong() const final;
  170. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  171. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  172. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  173. int GetCachedSize() const final { return _cached_size_.Get(); }
  174. private:
  175. inline void SharedCtor();
  176. inline void SharedDtor();
  177. void SetCachedSize(int size) const final;
  178. void InternalSwap(Network_information* other);
  179. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  180. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  181. return "Network_proto.Network_information";
  182. }
  183. protected:
  184. explicit Network_information(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  185. private:
  186. static void ArenaDtor(void* object);
  187. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  188. public:
  189. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  190. private:
  191. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  192. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_network_2eproto);
  193. return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
  194. }
  195. public:
  196. // nested types ----------------------------------------------------
  197. // accessors -------------------------------------------------------
  198. enum : int {
  199. kIpFieldNumber = 3,
  200. kNetworkModeFieldNumber = 1,
  201. kSocketIdFieldNumber = 2,
  202. kPortFieldNumber = 4,
  203. };
  204. // optional string ip = 3 [default = ""];
  205. bool has_ip() const;
  206. private:
  207. bool _internal_has_ip() const;
  208. public:
  209. void clear_ip();
  210. const std::string& ip() const;
  211. void set_ip(const std::string& value);
  212. void set_ip(std::string&& value);
  213. void set_ip(const char* value);
  214. void set_ip(const char* value, size_t size);
  215. std::string* mutable_ip();
  216. std::string* release_ip();
  217. void set_allocated_ip(std::string* ip);
  218. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  219. " string fields are deprecated and will be removed in a"
  220. " future release.")
  221. std::string* unsafe_arena_release_ip();
  222. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  223. " string fields are deprecated and will be removed in a"
  224. " future release.")
  225. void unsafe_arena_set_allocated_ip(
  226. std::string* ip);
  227. private:
  228. const std::string& _internal_ip() const;
  229. void _internal_set_ip(const std::string& value);
  230. std::string* _internal_mutable_ip();
  231. public:
  232. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  233. bool has_network_mode() const;
  234. private:
  235. bool _internal_has_network_mode() const;
  236. public:
  237. void clear_network_mode();
  238. ::Network_proto::Network_mode network_mode() const;
  239. void set_network_mode(::Network_proto::Network_mode value);
  240. private:
  241. ::Network_proto::Network_mode _internal_network_mode() const;
  242. void _internal_set_network_mode(::Network_proto::Network_mode value);
  243. public:
  244. // optional int32 socket_id = 2 [default = 0];
  245. bool has_socket_id() const;
  246. private:
  247. bool _internal_has_socket_id() const;
  248. public:
  249. void clear_socket_id();
  250. ::PROTOBUF_NAMESPACE_ID::int32 socket_id() const;
  251. void set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  252. private:
  253. ::PROTOBUF_NAMESPACE_ID::int32 _internal_socket_id() const;
  254. void _internal_set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  255. public:
  256. // optional int32 port = 4 [default = 0];
  257. bool has_port() const;
  258. private:
  259. bool _internal_has_port() const;
  260. public:
  261. void clear_port();
  262. ::PROTOBUF_NAMESPACE_ID::int32 port() const;
  263. void set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  264. private:
  265. ::PROTOBUF_NAMESPACE_ID::int32 _internal_port() const;
  266. void _internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  267. public:
  268. // @@protoc_insertion_point(class_scope:Network_proto.Network_information)
  269. private:
  270. class _Internal;
  271. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  272. typedef void InternalArenaConstructable_;
  273. typedef void DestructorSkippable_;
  274. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  275. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  276. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_;
  277. int network_mode_;
  278. ::PROTOBUF_NAMESPACE_ID::int32 socket_id_;
  279. ::PROTOBUF_NAMESPACE_ID::int32 port_;
  280. friend struct ::TableStruct_network_2eproto;
  281. };
  282. // -------------------------------------------------------------------
  283. class Network_parameter PROTOBUF_FINAL :
  284. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter) */ {
  285. public:
  286. inline Network_parameter() : Network_parameter(nullptr) {};
  287. virtual ~Network_parameter();
  288. Network_parameter(const Network_parameter& from);
  289. Network_parameter(Network_parameter&& from) noexcept
  290. : Network_parameter() {
  291. *this = ::std::move(from);
  292. }
  293. inline Network_parameter& operator=(const Network_parameter& from) {
  294. CopyFrom(from);
  295. return *this;
  296. }
  297. inline Network_parameter& operator=(Network_parameter&& from) noexcept {
  298. if (GetArena() == from.GetArena()) {
  299. if (this != &from) InternalSwap(&from);
  300. } else {
  301. CopyFrom(from);
  302. }
  303. return *this;
  304. }
  305. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  306. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  307. }
  308. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  309. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  310. }
  311. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  312. return GetDescriptor();
  313. }
  314. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  315. return GetMetadataStatic().descriptor;
  316. }
  317. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  318. return GetMetadataStatic().reflection;
  319. }
  320. static const Network_parameter& default_instance();
  321. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  322. static inline const Network_parameter* internal_default_instance() {
  323. return reinterpret_cast<const Network_parameter*>(
  324. &_Network_parameter_default_instance_);
  325. }
  326. static constexpr int kIndexInFileMessages =
  327. 1;
  328. friend void swap(Network_parameter& a, Network_parameter& b) {
  329. a.Swap(&b);
  330. }
  331. inline void Swap(Network_parameter* other) {
  332. if (other == this) return;
  333. if (GetArena() == other->GetArena()) {
  334. InternalSwap(other);
  335. } else {
  336. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  337. }
  338. }
  339. void UnsafeArenaSwap(Network_parameter* other) {
  340. if (other == this) return;
  341. GOOGLE_DCHECK(GetArena() == other->GetArena());
  342. InternalSwap(other);
  343. }
  344. // implements Message ----------------------------------------------
  345. inline Network_parameter* New() const final {
  346. return CreateMaybeMessage<Network_parameter>(nullptr);
  347. }
  348. Network_parameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  349. return CreateMaybeMessage<Network_parameter>(arena);
  350. }
  351. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  352. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  353. void CopyFrom(const Network_parameter& from);
  354. void MergeFrom(const Network_parameter& from);
  355. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  356. bool IsInitialized() const final;
  357. size_t ByteSizeLong() const final;
  358. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  359. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  360. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  361. int GetCachedSize() const final { return _cached_size_.Get(); }
  362. private:
  363. inline void SharedCtor();
  364. inline void SharedDtor();
  365. void SetCachedSize(int size) const final;
  366. void InternalSwap(Network_parameter* other);
  367. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  368. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  369. return "Network_proto.Network_parameter";
  370. }
  371. protected:
  372. explicit Network_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  373. private:
  374. static void ArenaDtor(void* object);
  375. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  376. public:
  377. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  378. private:
  379. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  380. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_network_2eproto);
  381. return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
  382. }
  383. public:
  384. // nested types ----------------------------------------------------
  385. // accessors -------------------------------------------------------
  386. enum : int {
  387. kNetworkInformationVectorFieldNumber = 1,
  388. };
  389. // repeated .Network_proto.Network_information network_information_vector = 1;
  390. int network_information_vector_size() const;
  391. private:
  392. int _internal_network_information_vector_size() const;
  393. public:
  394. void clear_network_information_vector();
  395. ::Network_proto::Network_information* mutable_network_information_vector(int index);
  396. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >*
  397. mutable_network_information_vector();
  398. private:
  399. const ::Network_proto::Network_information& _internal_network_information_vector(int index) const;
  400. ::Network_proto::Network_information* _internal_add_network_information_vector();
  401. public:
  402. const ::Network_proto::Network_information& network_information_vector(int index) const;
  403. ::Network_proto::Network_information* add_network_information_vector();
  404. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >&
  405. network_information_vector() const;
  406. // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter)
  407. private:
  408. class _Internal;
  409. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  410. typedef void InternalArenaConstructable_;
  411. typedef void DestructorSkippable_;
  412. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information > network_information_vector_;
  413. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  414. friend struct ::TableStruct_network_2eproto;
  415. };
  416. // -------------------------------------------------------------------
  417. class Network_parameter_all PROTOBUF_FINAL :
  418. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter_all) */ {
  419. public:
  420. inline Network_parameter_all() : Network_parameter_all(nullptr) {};
  421. virtual ~Network_parameter_all();
  422. Network_parameter_all(const Network_parameter_all& from);
  423. Network_parameter_all(Network_parameter_all&& from) noexcept
  424. : Network_parameter_all() {
  425. *this = ::std::move(from);
  426. }
  427. inline Network_parameter_all& operator=(const Network_parameter_all& from) {
  428. CopyFrom(from);
  429. return *this;
  430. }
  431. inline Network_parameter_all& operator=(Network_parameter_all&& from) noexcept {
  432. if (GetArena() == from.GetArena()) {
  433. if (this != &from) InternalSwap(&from);
  434. } else {
  435. CopyFrom(from);
  436. }
  437. return *this;
  438. }
  439. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  440. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  441. }
  442. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  443. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  444. }
  445. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  446. return GetDescriptor();
  447. }
  448. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  449. return GetMetadataStatic().descriptor;
  450. }
  451. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  452. return GetMetadataStatic().reflection;
  453. }
  454. static const Network_parameter_all& default_instance();
  455. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  456. static inline const Network_parameter_all* internal_default_instance() {
  457. return reinterpret_cast<const Network_parameter_all*>(
  458. &_Network_parameter_all_default_instance_);
  459. }
  460. static constexpr int kIndexInFileMessages =
  461. 2;
  462. friend void swap(Network_parameter_all& a, Network_parameter_all& b) {
  463. a.Swap(&b);
  464. }
  465. inline void Swap(Network_parameter_all* other) {
  466. if (other == this) return;
  467. if (GetArena() == other->GetArena()) {
  468. InternalSwap(other);
  469. } else {
  470. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  471. }
  472. }
  473. void UnsafeArenaSwap(Network_parameter_all* other) {
  474. if (other == this) return;
  475. GOOGLE_DCHECK(GetArena() == other->GetArena());
  476. InternalSwap(other);
  477. }
  478. // implements Message ----------------------------------------------
  479. inline Network_parameter_all* New() const final {
  480. return CreateMaybeMessage<Network_parameter_all>(nullptr);
  481. }
  482. Network_parameter_all* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  483. return CreateMaybeMessage<Network_parameter_all>(arena);
  484. }
  485. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  486. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  487. void CopyFrom(const Network_parameter_all& from);
  488. void MergeFrom(const Network_parameter_all& from);
  489. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  490. bool IsInitialized() const final;
  491. size_t ByteSizeLong() const final;
  492. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  493. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  494. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  495. int GetCachedSize() const final { return _cached_size_.Get(); }
  496. private:
  497. inline void SharedCtor();
  498. inline void SharedDtor();
  499. void SetCachedSize(int size) const final;
  500. void InternalSwap(Network_parameter_all* other);
  501. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  502. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  503. return "Network_proto.Network_parameter_all";
  504. }
  505. protected:
  506. explicit Network_parameter_all(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  507. private:
  508. static void ArenaDtor(void* object);
  509. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  510. public:
  511. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  512. private:
  513. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  514. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_network_2eproto);
  515. return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
  516. }
  517. public:
  518. // nested types ----------------------------------------------------
  519. // accessors -------------------------------------------------------
  520. enum : int {
  521. kNetworkParametersFieldNumber = 1,
  522. };
  523. // optional .Network_proto.Network_parameter network_parameters = 1;
  524. bool has_network_parameters() const;
  525. private:
  526. bool _internal_has_network_parameters() const;
  527. public:
  528. void clear_network_parameters();
  529. const ::Network_proto::Network_parameter& network_parameters() const;
  530. ::Network_proto::Network_parameter* release_network_parameters();
  531. ::Network_proto::Network_parameter* mutable_network_parameters();
  532. void set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters);
  533. private:
  534. const ::Network_proto::Network_parameter& _internal_network_parameters() const;
  535. ::Network_proto::Network_parameter* _internal_mutable_network_parameters();
  536. public:
  537. void unsafe_arena_set_allocated_network_parameters(
  538. ::Network_proto::Network_parameter* network_parameters);
  539. ::Network_proto::Network_parameter* unsafe_arena_release_network_parameters();
  540. // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter_all)
  541. private:
  542. class _Internal;
  543. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  544. typedef void InternalArenaConstructable_;
  545. typedef void DestructorSkippable_;
  546. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  547. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  548. ::Network_proto::Network_parameter* network_parameters_;
  549. friend struct ::TableStruct_network_2eproto;
  550. };
  551. // ===================================================================
  552. // ===================================================================
  553. #ifdef __GNUC__
  554. #pragma GCC diagnostic push
  555. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  556. #endif // __GNUC__
  557. // Network_information
  558. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  559. inline bool Network_information::_internal_has_network_mode() const {
  560. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  561. return value;
  562. }
  563. inline bool Network_information::has_network_mode() const {
  564. return _internal_has_network_mode();
  565. }
  566. inline void Network_information::clear_network_mode() {
  567. network_mode_ = 0;
  568. _has_bits_[0] &= ~0x00000002u;
  569. }
  570. inline ::Network_proto::Network_mode Network_information::_internal_network_mode() const {
  571. return static_cast< ::Network_proto::Network_mode >(network_mode_);
  572. }
  573. inline ::Network_proto::Network_mode Network_information::network_mode() const {
  574. // @@protoc_insertion_point(field_get:Network_proto.Network_information.network_mode)
  575. return _internal_network_mode();
  576. }
  577. inline void Network_information::_internal_set_network_mode(::Network_proto::Network_mode value) {
  578. assert(::Network_proto::Network_mode_IsValid(value));
  579. _has_bits_[0] |= 0x00000002u;
  580. network_mode_ = value;
  581. }
  582. inline void Network_information::set_network_mode(::Network_proto::Network_mode value) {
  583. _internal_set_network_mode(value);
  584. // @@protoc_insertion_point(field_set:Network_proto.Network_information.network_mode)
  585. }
  586. // optional int32 socket_id = 2 [default = 0];
  587. inline bool Network_information::_internal_has_socket_id() const {
  588. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  589. return value;
  590. }
  591. inline bool Network_information::has_socket_id() const {
  592. return _internal_has_socket_id();
  593. }
  594. inline void Network_information::clear_socket_id() {
  595. socket_id_ = 0;
  596. _has_bits_[0] &= ~0x00000004u;
  597. }
  598. inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::_internal_socket_id() const {
  599. return socket_id_;
  600. }
  601. inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::socket_id() const {
  602. // @@protoc_insertion_point(field_get:Network_proto.Network_information.socket_id)
  603. return _internal_socket_id();
  604. }
  605. inline void Network_information::_internal_set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  606. _has_bits_[0] |= 0x00000004u;
  607. socket_id_ = value;
  608. }
  609. inline void Network_information::set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  610. _internal_set_socket_id(value);
  611. // @@protoc_insertion_point(field_set:Network_proto.Network_information.socket_id)
  612. }
  613. // optional string ip = 3 [default = ""];
  614. inline bool Network_information::_internal_has_ip() const {
  615. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  616. return value;
  617. }
  618. inline bool Network_information::has_ip() const {
  619. return _internal_has_ip();
  620. }
  621. inline void Network_information::clear_ip() {
  622. ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  623. _has_bits_[0] &= ~0x00000001u;
  624. }
  625. inline const std::string& Network_information::ip() const {
  626. // @@protoc_insertion_point(field_get:Network_proto.Network_information.ip)
  627. return _internal_ip();
  628. }
  629. inline void Network_information::set_ip(const std::string& value) {
  630. _internal_set_ip(value);
  631. // @@protoc_insertion_point(field_set:Network_proto.Network_information.ip)
  632. }
  633. inline std::string* Network_information::mutable_ip() {
  634. // @@protoc_insertion_point(field_mutable:Network_proto.Network_information.ip)
  635. return _internal_mutable_ip();
  636. }
  637. inline const std::string& Network_information::_internal_ip() const {
  638. return ip_.Get();
  639. }
  640. inline void Network_information::_internal_set_ip(const std::string& value) {
  641. _has_bits_[0] |= 0x00000001u;
  642. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  643. }
  644. inline void Network_information::set_ip(std::string&& value) {
  645. _has_bits_[0] |= 0x00000001u;
  646. ip_.Set(
  647. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  648. // @@protoc_insertion_point(field_set_rvalue:Network_proto.Network_information.ip)
  649. }
  650. inline void Network_information::set_ip(const char* value) {
  651. GOOGLE_DCHECK(value != nullptr);
  652. _has_bits_[0] |= 0x00000001u;
  653. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  654. GetArena());
  655. // @@protoc_insertion_point(field_set_char:Network_proto.Network_information.ip)
  656. }
  657. inline void Network_information::set_ip(const char* value,
  658. size_t size) {
  659. _has_bits_[0] |= 0x00000001u;
  660. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  661. reinterpret_cast<const char*>(value), size), GetArena());
  662. // @@protoc_insertion_point(field_set_pointer:Network_proto.Network_information.ip)
  663. }
  664. inline std::string* Network_information::_internal_mutable_ip() {
  665. _has_bits_[0] |= 0x00000001u;
  666. return ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  667. }
  668. inline std::string* Network_information::release_ip() {
  669. // @@protoc_insertion_point(field_release:Network_proto.Network_information.ip)
  670. if (!_internal_has_ip()) {
  671. return nullptr;
  672. }
  673. _has_bits_[0] &= ~0x00000001u;
  674. return ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  675. }
  676. inline void Network_information::set_allocated_ip(std::string* ip) {
  677. if (ip != nullptr) {
  678. _has_bits_[0] |= 0x00000001u;
  679. } else {
  680. _has_bits_[0] &= ~0x00000001u;
  681. }
  682. ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip,
  683. GetArena());
  684. // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_information.ip)
  685. }
  686. inline std::string* Network_information::unsafe_arena_release_ip() {
  687. // @@protoc_insertion_point(field_unsafe_arena_release:Network_proto.Network_information.ip)
  688. GOOGLE_DCHECK(GetArena() != nullptr);
  689. _has_bits_[0] &= ~0x00000001u;
  690. return ip_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  691. GetArena());
  692. }
  693. inline void Network_information::unsafe_arena_set_allocated_ip(
  694. std::string* ip) {
  695. GOOGLE_DCHECK(GetArena() != nullptr);
  696. if (ip != nullptr) {
  697. _has_bits_[0] |= 0x00000001u;
  698. } else {
  699. _has_bits_[0] &= ~0x00000001u;
  700. }
  701. ip_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  702. ip, GetArena());
  703. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Network_proto.Network_information.ip)
  704. }
  705. // optional int32 port = 4 [default = 0];
  706. inline bool Network_information::_internal_has_port() const {
  707. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  708. return value;
  709. }
  710. inline bool Network_information::has_port() const {
  711. return _internal_has_port();
  712. }
  713. inline void Network_information::clear_port() {
  714. port_ = 0;
  715. _has_bits_[0] &= ~0x00000008u;
  716. }
  717. inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::_internal_port() const {
  718. return port_;
  719. }
  720. inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::port() const {
  721. // @@protoc_insertion_point(field_get:Network_proto.Network_information.port)
  722. return _internal_port();
  723. }
  724. inline void Network_information::_internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  725. _has_bits_[0] |= 0x00000008u;
  726. port_ = value;
  727. }
  728. inline void Network_information::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  729. _internal_set_port(value);
  730. // @@protoc_insertion_point(field_set:Network_proto.Network_information.port)
  731. }
  732. // -------------------------------------------------------------------
  733. // Network_parameter
  734. // repeated .Network_proto.Network_information network_information_vector = 1;
  735. inline int Network_parameter::_internal_network_information_vector_size() const {
  736. return network_information_vector_.size();
  737. }
  738. inline int Network_parameter::network_information_vector_size() const {
  739. return _internal_network_information_vector_size();
  740. }
  741. inline void Network_parameter::clear_network_information_vector() {
  742. network_information_vector_.Clear();
  743. }
  744. inline ::Network_proto::Network_information* Network_parameter::mutable_network_information_vector(int index) {
  745. // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter.network_information_vector)
  746. return network_information_vector_.Mutable(index);
  747. }
  748. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >*
  749. Network_parameter::mutable_network_information_vector() {
  750. // @@protoc_insertion_point(field_mutable_list:Network_proto.Network_parameter.network_information_vector)
  751. return &network_information_vector_;
  752. }
  753. inline const ::Network_proto::Network_information& Network_parameter::_internal_network_information_vector(int index) const {
  754. return network_information_vector_.Get(index);
  755. }
  756. inline const ::Network_proto::Network_information& Network_parameter::network_information_vector(int index) const {
  757. // @@protoc_insertion_point(field_get:Network_proto.Network_parameter.network_information_vector)
  758. return _internal_network_information_vector(index);
  759. }
  760. inline ::Network_proto::Network_information* Network_parameter::_internal_add_network_information_vector() {
  761. return network_information_vector_.Add();
  762. }
  763. inline ::Network_proto::Network_information* Network_parameter::add_network_information_vector() {
  764. // @@protoc_insertion_point(field_add:Network_proto.Network_parameter.network_information_vector)
  765. return _internal_add_network_information_vector();
  766. }
  767. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >&
  768. Network_parameter::network_information_vector() const {
  769. // @@protoc_insertion_point(field_list:Network_proto.Network_parameter.network_information_vector)
  770. return network_information_vector_;
  771. }
  772. // -------------------------------------------------------------------
  773. // Network_parameter_all
  774. // optional .Network_proto.Network_parameter network_parameters = 1;
  775. inline bool Network_parameter_all::_internal_has_network_parameters() const {
  776. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  777. PROTOBUF_ASSUME(!value || network_parameters_ != nullptr);
  778. return value;
  779. }
  780. inline bool Network_parameter_all::has_network_parameters() const {
  781. return _internal_has_network_parameters();
  782. }
  783. inline void Network_parameter_all::clear_network_parameters() {
  784. if (network_parameters_ != nullptr) network_parameters_->Clear();
  785. _has_bits_[0] &= ~0x00000001u;
  786. }
  787. inline const ::Network_proto::Network_parameter& Network_parameter_all::_internal_network_parameters() const {
  788. const ::Network_proto::Network_parameter* p = network_parameters_;
  789. return p != nullptr ? *p : *reinterpret_cast<const ::Network_proto::Network_parameter*>(
  790. &::Network_proto::_Network_parameter_default_instance_);
  791. }
  792. inline const ::Network_proto::Network_parameter& Network_parameter_all::network_parameters() const {
  793. // @@protoc_insertion_point(field_get:Network_proto.Network_parameter_all.network_parameters)
  794. return _internal_network_parameters();
  795. }
  796. inline void Network_parameter_all::unsafe_arena_set_allocated_network_parameters(
  797. ::Network_proto::Network_parameter* network_parameters) {
  798. if (GetArena() == nullptr) {
  799. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(network_parameters_);
  800. }
  801. network_parameters_ = network_parameters;
  802. if (network_parameters) {
  803. _has_bits_[0] |= 0x00000001u;
  804. } else {
  805. _has_bits_[0] &= ~0x00000001u;
  806. }
  807. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Network_proto.Network_parameter_all.network_parameters)
  808. }
  809. inline ::Network_proto::Network_parameter* Network_parameter_all::release_network_parameters() {
  810. auto temp = unsafe_arena_release_network_parameters();
  811. if (GetArena() != nullptr) {
  812. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  813. }
  814. return temp;
  815. }
  816. inline ::Network_proto::Network_parameter* Network_parameter_all::unsafe_arena_release_network_parameters() {
  817. // @@protoc_insertion_point(field_release:Network_proto.Network_parameter_all.network_parameters)
  818. _has_bits_[0] &= ~0x00000001u;
  819. ::Network_proto::Network_parameter* temp = network_parameters_;
  820. network_parameters_ = nullptr;
  821. return temp;
  822. }
  823. inline ::Network_proto::Network_parameter* Network_parameter_all::_internal_mutable_network_parameters() {
  824. _has_bits_[0] |= 0x00000001u;
  825. if (network_parameters_ == nullptr) {
  826. auto* p = CreateMaybeMessage<::Network_proto::Network_parameter>(GetArena());
  827. network_parameters_ = p;
  828. }
  829. return network_parameters_;
  830. }
  831. inline ::Network_proto::Network_parameter* Network_parameter_all::mutable_network_parameters() {
  832. // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter_all.network_parameters)
  833. return _internal_mutable_network_parameters();
  834. }
  835. inline void Network_parameter_all::set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters) {
  836. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  837. if (message_arena == nullptr) {
  838. delete network_parameters_;
  839. }
  840. if (network_parameters) {
  841. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  842. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(network_parameters);
  843. if (message_arena != submessage_arena) {
  844. network_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  845. message_arena, network_parameters, submessage_arena);
  846. }
  847. _has_bits_[0] |= 0x00000001u;
  848. } else {
  849. _has_bits_[0] &= ~0x00000001u;
  850. }
  851. network_parameters_ = network_parameters;
  852. // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_parameter_all.network_parameters)
  853. }
  854. #ifdef __GNUC__
  855. #pragma GCC diagnostic pop
  856. #endif // __GNUC__
  857. // -------------------------------------------------------------------
  858. // -------------------------------------------------------------------
  859. // @@protoc_insertion_point(namespace_scope)
  860. } // namespace Network_proto
  861. PROTOBUF_NAMESPACE_OPEN
  862. template <> struct is_proto_enum< ::Network_proto::Network_mode> : ::std::true_type {};
  863. template <>
  864. inline const EnumDescriptor* GetEnumDescriptor< ::Network_proto::Network_mode>() {
  865. return ::Network_proto::Network_mode_descriptor();
  866. }
  867. PROTOBUF_NAMESPACE_CLOSE
  868. // @@protoc_insertion_point(global_scope)
  869. #include <google/protobuf/port_undef.inc>
  870. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_network_2eproto