network.pb.cc 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: network.proto
  3. #include "network.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_network_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_network_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Network_information;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_network_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter;
  21. } // namespace protobuf_network_2eproto
  22. namespace Network_proto {
  23. class Network_informationDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<Network_information>
  26. _instance;
  27. } _Network_information_default_instance_;
  28. class Network_parameterDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<Network_parameter>
  31. _instance;
  32. } _Network_parameter_default_instance_;
  33. class Network_parameter_allDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<Network_parameter_all>
  36. _instance;
  37. } _Network_parameter_all_default_instance_;
  38. } // namespace Network_proto
  39. namespace protobuf_network_2eproto {
  40. static void InitDefaultsNetwork_information() {
  41. GOOGLE_PROTOBUF_VERIFY_VERSION;
  42. {
  43. void* ptr = &::Network_proto::_Network_information_default_instance_;
  44. new (ptr) ::Network_proto::Network_information();
  45. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  46. }
  47. ::Network_proto::Network_information::InitAsDefaultInstance();
  48. }
  49. ::google::protobuf::internal::SCCInfo<0> scc_info_Network_information =
  50. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNetwork_information}, {}};
  51. static void InitDefaultsNetwork_parameter() {
  52. GOOGLE_PROTOBUF_VERIFY_VERSION;
  53. {
  54. void* ptr = &::Network_proto::_Network_parameter_default_instance_;
  55. new (ptr) ::Network_proto::Network_parameter();
  56. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  57. }
  58. ::Network_proto::Network_parameter::InitAsDefaultInstance();
  59. }
  60. ::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter =
  61. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNetwork_parameter}, {
  62. &protobuf_network_2eproto::scc_info_Network_information.base,}};
  63. static void InitDefaultsNetwork_parameter_all() {
  64. GOOGLE_PROTOBUF_VERIFY_VERSION;
  65. {
  66. void* ptr = &::Network_proto::_Network_parameter_all_default_instance_;
  67. new (ptr) ::Network_proto::Network_parameter_all();
  68. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  69. }
  70. ::Network_proto::Network_parameter_all::InitAsDefaultInstance();
  71. }
  72. ::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter_all =
  73. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNetwork_parameter_all}, {
  74. &protobuf_network_2eproto::scc_info_Network_parameter.base,}};
  75. void InitDefaults() {
  76. ::google::protobuf::internal::InitSCC(&scc_info_Network_information.base);
  77. ::google::protobuf::internal::InitSCC(&scc_info_Network_parameter.base);
  78. ::google::protobuf::internal::InitSCC(&scc_info_Network_parameter_all.base);
  79. }
  80. ::google::protobuf::Metadata file_level_metadata[3];
  81. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  82. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, _has_bits_),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, _internal_metadata_),
  85. ~0u, // no _extensions_
  86. ~0u, // no _oneof_case_
  87. ~0u, // no _weak_field_map_
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, network_mode_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, socket_id_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, ip_),
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, port_),
  92. 1,
  93. 2,
  94. 0,
  95. 3,
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, _has_bits_),
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, _internal_metadata_),
  98. ~0u, // no _extensions_
  99. ~0u, // no _oneof_case_
  100. ~0u, // no _weak_field_map_
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, network_information_vector_),
  102. ~0u,
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, _has_bits_),
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, _internal_metadata_),
  105. ~0u, // no _extensions_
  106. ~0u, // no _oneof_case_
  107. ~0u, // no _weak_field_map_
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, network_parameters_),
  109. 0,
  110. };
  111. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  112. { 0, 9, sizeof(::Network_proto::Network_information)},
  113. { 13, 19, sizeof(::Network_proto::Network_parameter)},
  114. { 20, 26, sizeof(::Network_proto::Network_parameter_all)},
  115. };
  116. static ::google::protobuf::Message const * const file_default_instances[] = {
  117. reinterpret_cast<const ::google::protobuf::Message*>(&::Network_proto::_Network_information_default_instance_),
  118. reinterpret_cast<const ::google::protobuf::Message*>(&::Network_proto::_Network_parameter_default_instance_),
  119. reinterpret_cast<const ::google::protobuf::Message*>(&::Network_proto::_Network_parameter_all_default_instance_),
  120. };
  121. void protobuf_AssignDescriptors() {
  122. AddDescriptors();
  123. AssignDescriptors(
  124. "network.proto", schemas, file_default_instances, TableStruct::offsets,
  125. file_level_metadata, file_level_enum_descriptors, NULL);
  126. }
  127. void protobuf_AssignDescriptorsOnce() {
  128. static ::google::protobuf::internal::once_flag once;
  129. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  130. }
  131. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  132. void protobuf_RegisterTypes(const ::std::string&) {
  133. protobuf_AssignDescriptorsOnce();
  134. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  135. }
  136. void AddDescriptorsImpl() {
  137. InitDefaults();
  138. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  139. "\n\rnetwork.proto\022\rNetwork_proto\"\216\001\n\023Netwo"
  140. "rk_information\022B\n\014network_mode\030\001 \001(\0162\033.N"
  141. "etwork_proto.Network_mode:\017NETWORK_UNKNO"
  142. "WN\022\024\n\tsocket_id\030\002 \001(\005:\0010\022\014\n\002ip\030\003 \001(\t:\000\022\017"
  143. "\n\004port\030\004 \001(\005:\0010\"[\n\021Network_parameter\022F\n\032"
  144. "network_information_vector\030\001 \003(\0132\".Netwo"
  145. "rk_proto.Network_information\"U\n\025Network_"
  146. "parameter_all\022<\n\022network_parameters\030\001 \001("
  147. "\0132 .Network_proto.Network_parameter*L\n\014N"
  148. "etwork_mode\022\023\n\017NETWORK_UNKNOWN\020\000\022\016\n\nTCP_"
  149. "CLIENT\020\001\022\016\n\nTCP_SERVER\020\002\022\007\n\003UDP\020\003"
  150. };
  151. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  152. descriptor, 433);
  153. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  154. "network.proto", &protobuf_RegisterTypes);
  155. }
  156. void AddDescriptors() {
  157. static ::google::protobuf::internal::once_flag once;
  158. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  159. }
  160. // Force AddDescriptors() to be called at dynamic initialization time.
  161. struct StaticDescriptorInitializer {
  162. StaticDescriptorInitializer() {
  163. AddDescriptors();
  164. }
  165. } static_descriptor_initializer;
  166. } // namespace protobuf_network_2eproto
  167. namespace Network_proto {
  168. const ::google::protobuf::EnumDescriptor* Network_mode_descriptor() {
  169. protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  170. return protobuf_network_2eproto::file_level_enum_descriptors[0];
  171. }
  172. bool Network_mode_IsValid(int value) {
  173. switch (value) {
  174. case 0:
  175. case 1:
  176. case 2:
  177. case 3:
  178. return true;
  179. default:
  180. return false;
  181. }
  182. }
  183. // ===================================================================
  184. void Network_information::InitAsDefaultInstance() {
  185. }
  186. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  187. const int Network_information::kNetworkModeFieldNumber;
  188. const int Network_information::kSocketIdFieldNumber;
  189. const int Network_information::kIpFieldNumber;
  190. const int Network_information::kPortFieldNumber;
  191. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  192. Network_information::Network_information()
  193. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  194. ::google::protobuf::internal::InitSCC(
  195. &protobuf_network_2eproto::scc_info_Network_information.base);
  196. SharedCtor();
  197. // @@protoc_insertion_point(constructor:Network_proto.Network_information)
  198. }
  199. Network_information::Network_information(const Network_information& from)
  200. : ::google::protobuf::Message(),
  201. _internal_metadata_(NULL),
  202. _has_bits_(from._has_bits_) {
  203. _internal_metadata_.MergeFrom(from._internal_metadata_);
  204. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  205. if (from.has_ip()) {
  206. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  207. }
  208. ::memcpy(&network_mode_, &from.network_mode_,
  209. static_cast<size_t>(reinterpret_cast<char*>(&port_) -
  210. reinterpret_cast<char*>(&network_mode_)) + sizeof(port_));
  211. // @@protoc_insertion_point(copy_constructor:Network_proto.Network_information)
  212. }
  213. void Network_information::SharedCtor() {
  214. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  215. ::memset(&network_mode_, 0, static_cast<size_t>(
  216. reinterpret_cast<char*>(&port_) -
  217. reinterpret_cast<char*>(&network_mode_)) + sizeof(port_));
  218. }
  219. Network_information::~Network_information() {
  220. // @@protoc_insertion_point(destructor:Network_proto.Network_information)
  221. SharedDtor();
  222. }
  223. void Network_information::SharedDtor() {
  224. ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  225. }
  226. void Network_information::SetCachedSize(int size) const {
  227. _cached_size_.Set(size);
  228. }
  229. const ::google::protobuf::Descriptor* Network_information::descriptor() {
  230. ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  231. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  232. }
  233. const Network_information& Network_information::default_instance() {
  234. ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_information.base);
  235. return *internal_default_instance();
  236. }
  237. void Network_information::Clear() {
  238. // @@protoc_insertion_point(message_clear_start:Network_proto.Network_information)
  239. ::google::protobuf::uint32 cached_has_bits = 0;
  240. // Prevent compiler warnings about cached_has_bits being unused
  241. (void) cached_has_bits;
  242. cached_has_bits = _has_bits_[0];
  243. if (cached_has_bits & 0x00000001u) {
  244. ip_.ClearNonDefaultToEmptyNoArena();
  245. }
  246. if (cached_has_bits & 14u) {
  247. ::memset(&network_mode_, 0, static_cast<size_t>(
  248. reinterpret_cast<char*>(&port_) -
  249. reinterpret_cast<char*>(&network_mode_)) + sizeof(port_));
  250. }
  251. _has_bits_.Clear();
  252. _internal_metadata_.Clear();
  253. }
  254. bool Network_information::MergePartialFromCodedStream(
  255. ::google::protobuf::io::CodedInputStream* input) {
  256. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  257. ::google::protobuf::uint32 tag;
  258. // @@protoc_insertion_point(parse_start:Network_proto.Network_information)
  259. for (;;) {
  260. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  261. tag = p.first;
  262. if (!p.second) goto handle_unusual;
  263. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  264. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  265. case 1: {
  266. if (static_cast< ::google::protobuf::uint8>(tag) ==
  267. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  268. int value;
  269. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  270. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  271. input, &value)));
  272. if (::Network_proto::Network_mode_IsValid(value)) {
  273. set_network_mode(static_cast< ::Network_proto::Network_mode >(value));
  274. } else {
  275. mutable_unknown_fields()->AddVarint(
  276. 1, static_cast< ::google::protobuf::uint64>(value));
  277. }
  278. } else {
  279. goto handle_unusual;
  280. }
  281. break;
  282. }
  283. // optional int32 socket_id = 2 [default = 0];
  284. case 2: {
  285. if (static_cast< ::google::protobuf::uint8>(tag) ==
  286. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  287. set_has_socket_id();
  288. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  289. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  290. input, &socket_id_)));
  291. } else {
  292. goto handle_unusual;
  293. }
  294. break;
  295. }
  296. // optional string ip = 3 [default = ""];
  297. case 3: {
  298. if (static_cast< ::google::protobuf::uint8>(tag) ==
  299. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  300. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  301. input, this->mutable_ip()));
  302. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  303. this->ip().data(), static_cast<int>(this->ip().length()),
  304. ::google::protobuf::internal::WireFormat::PARSE,
  305. "Network_proto.Network_information.ip");
  306. } else {
  307. goto handle_unusual;
  308. }
  309. break;
  310. }
  311. // optional int32 port = 4 [default = 0];
  312. case 4: {
  313. if (static_cast< ::google::protobuf::uint8>(tag) ==
  314. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  315. set_has_port();
  316. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  317. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  318. input, &port_)));
  319. } else {
  320. goto handle_unusual;
  321. }
  322. break;
  323. }
  324. default: {
  325. handle_unusual:
  326. if (tag == 0) {
  327. goto success;
  328. }
  329. DO_(::google::protobuf::internal::WireFormat::SkipField(
  330. input, tag, _internal_metadata_.mutable_unknown_fields()));
  331. break;
  332. }
  333. }
  334. }
  335. success:
  336. // @@protoc_insertion_point(parse_success:Network_proto.Network_information)
  337. return true;
  338. failure:
  339. // @@protoc_insertion_point(parse_failure:Network_proto.Network_information)
  340. return false;
  341. #undef DO_
  342. }
  343. void Network_information::SerializeWithCachedSizes(
  344. ::google::protobuf::io::CodedOutputStream* output) const {
  345. // @@protoc_insertion_point(serialize_start:Network_proto.Network_information)
  346. ::google::protobuf::uint32 cached_has_bits = 0;
  347. (void) cached_has_bits;
  348. cached_has_bits = _has_bits_[0];
  349. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  350. if (cached_has_bits & 0x00000002u) {
  351. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  352. 1, this->network_mode(), output);
  353. }
  354. // optional int32 socket_id = 2 [default = 0];
  355. if (cached_has_bits & 0x00000004u) {
  356. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->socket_id(), output);
  357. }
  358. // optional string ip = 3 [default = ""];
  359. if (cached_has_bits & 0x00000001u) {
  360. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  361. this->ip().data(), static_cast<int>(this->ip().length()),
  362. ::google::protobuf::internal::WireFormat::SERIALIZE,
  363. "Network_proto.Network_information.ip");
  364. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  365. 3, this->ip(), output);
  366. }
  367. // optional int32 port = 4 [default = 0];
  368. if (cached_has_bits & 0x00000008u) {
  369. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->port(), output);
  370. }
  371. if (_internal_metadata_.have_unknown_fields()) {
  372. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  373. _internal_metadata_.unknown_fields(), output);
  374. }
  375. // @@protoc_insertion_point(serialize_end:Network_proto.Network_information)
  376. }
  377. ::google::protobuf::uint8* Network_information::InternalSerializeWithCachedSizesToArray(
  378. bool deterministic, ::google::protobuf::uint8* target) const {
  379. (void)deterministic; // Unused
  380. // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_information)
  381. ::google::protobuf::uint32 cached_has_bits = 0;
  382. (void) cached_has_bits;
  383. cached_has_bits = _has_bits_[0];
  384. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  385. if (cached_has_bits & 0x00000002u) {
  386. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  387. 1, this->network_mode(), target);
  388. }
  389. // optional int32 socket_id = 2 [default = 0];
  390. if (cached_has_bits & 0x00000004u) {
  391. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->socket_id(), target);
  392. }
  393. // optional string ip = 3 [default = ""];
  394. if (cached_has_bits & 0x00000001u) {
  395. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  396. this->ip().data(), static_cast<int>(this->ip().length()),
  397. ::google::protobuf::internal::WireFormat::SERIALIZE,
  398. "Network_proto.Network_information.ip");
  399. target =
  400. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  401. 3, this->ip(), target);
  402. }
  403. // optional int32 port = 4 [default = 0];
  404. if (cached_has_bits & 0x00000008u) {
  405. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->port(), target);
  406. }
  407. if (_internal_metadata_.have_unknown_fields()) {
  408. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  409. _internal_metadata_.unknown_fields(), target);
  410. }
  411. // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_information)
  412. return target;
  413. }
  414. size_t Network_information::ByteSizeLong() const {
  415. // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_information)
  416. size_t total_size = 0;
  417. if (_internal_metadata_.have_unknown_fields()) {
  418. total_size +=
  419. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  420. _internal_metadata_.unknown_fields());
  421. }
  422. if (_has_bits_[0 / 32] & 15u) {
  423. // optional string ip = 3 [default = ""];
  424. if (has_ip()) {
  425. total_size += 1 +
  426. ::google::protobuf::internal::WireFormatLite::StringSize(
  427. this->ip());
  428. }
  429. // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
  430. if (has_network_mode()) {
  431. total_size += 1 +
  432. ::google::protobuf::internal::WireFormatLite::EnumSize(this->network_mode());
  433. }
  434. // optional int32 socket_id = 2 [default = 0];
  435. if (has_socket_id()) {
  436. total_size += 1 +
  437. ::google::protobuf::internal::WireFormatLite::Int32Size(
  438. this->socket_id());
  439. }
  440. // optional int32 port = 4 [default = 0];
  441. if (has_port()) {
  442. total_size += 1 +
  443. ::google::protobuf::internal::WireFormatLite::Int32Size(
  444. this->port());
  445. }
  446. }
  447. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  448. SetCachedSize(cached_size);
  449. return total_size;
  450. }
  451. void Network_information::MergeFrom(const ::google::protobuf::Message& from) {
  452. // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_information)
  453. GOOGLE_DCHECK_NE(&from, this);
  454. const Network_information* source =
  455. ::google::protobuf::internal::DynamicCastToGenerated<const Network_information>(
  456. &from);
  457. if (source == NULL) {
  458. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_information)
  459. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  460. } else {
  461. // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_information)
  462. MergeFrom(*source);
  463. }
  464. }
  465. void Network_information::MergeFrom(const Network_information& from) {
  466. // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_information)
  467. GOOGLE_DCHECK_NE(&from, this);
  468. _internal_metadata_.MergeFrom(from._internal_metadata_);
  469. ::google::protobuf::uint32 cached_has_bits = 0;
  470. (void) cached_has_bits;
  471. cached_has_bits = from._has_bits_[0];
  472. if (cached_has_bits & 15u) {
  473. if (cached_has_bits & 0x00000001u) {
  474. set_has_ip();
  475. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  476. }
  477. if (cached_has_bits & 0x00000002u) {
  478. network_mode_ = from.network_mode_;
  479. }
  480. if (cached_has_bits & 0x00000004u) {
  481. socket_id_ = from.socket_id_;
  482. }
  483. if (cached_has_bits & 0x00000008u) {
  484. port_ = from.port_;
  485. }
  486. _has_bits_[0] |= cached_has_bits;
  487. }
  488. }
  489. void Network_information::CopyFrom(const ::google::protobuf::Message& from) {
  490. // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_information)
  491. if (&from == this) return;
  492. Clear();
  493. MergeFrom(from);
  494. }
  495. void Network_information::CopyFrom(const Network_information& from) {
  496. // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_information)
  497. if (&from == this) return;
  498. Clear();
  499. MergeFrom(from);
  500. }
  501. bool Network_information::IsInitialized() const {
  502. return true;
  503. }
  504. void Network_information::Swap(Network_information* other) {
  505. if (other == this) return;
  506. InternalSwap(other);
  507. }
  508. void Network_information::InternalSwap(Network_information* other) {
  509. using std::swap;
  510. ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  511. GetArenaNoVirtual());
  512. swap(network_mode_, other->network_mode_);
  513. swap(socket_id_, other->socket_id_);
  514. swap(port_, other->port_);
  515. swap(_has_bits_[0], other->_has_bits_[0]);
  516. _internal_metadata_.Swap(&other->_internal_metadata_);
  517. }
  518. ::google::protobuf::Metadata Network_information::GetMetadata() const {
  519. protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  520. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages];
  521. }
  522. // ===================================================================
  523. void Network_parameter::InitAsDefaultInstance() {
  524. }
  525. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  526. const int Network_parameter::kNetworkInformationVectorFieldNumber;
  527. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  528. Network_parameter::Network_parameter()
  529. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  530. ::google::protobuf::internal::InitSCC(
  531. &protobuf_network_2eproto::scc_info_Network_parameter.base);
  532. SharedCtor();
  533. // @@protoc_insertion_point(constructor:Network_proto.Network_parameter)
  534. }
  535. Network_parameter::Network_parameter(const Network_parameter& from)
  536. : ::google::protobuf::Message(),
  537. _internal_metadata_(NULL),
  538. _has_bits_(from._has_bits_),
  539. network_information_vector_(from.network_information_vector_) {
  540. _internal_metadata_.MergeFrom(from._internal_metadata_);
  541. // @@protoc_insertion_point(copy_constructor:Network_proto.Network_parameter)
  542. }
  543. void Network_parameter::SharedCtor() {
  544. }
  545. Network_parameter::~Network_parameter() {
  546. // @@protoc_insertion_point(destructor:Network_proto.Network_parameter)
  547. SharedDtor();
  548. }
  549. void Network_parameter::SharedDtor() {
  550. }
  551. void Network_parameter::SetCachedSize(int size) const {
  552. _cached_size_.Set(size);
  553. }
  554. const ::google::protobuf::Descriptor* Network_parameter::descriptor() {
  555. ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  556. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  557. }
  558. const Network_parameter& Network_parameter::default_instance() {
  559. ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_parameter.base);
  560. return *internal_default_instance();
  561. }
  562. void Network_parameter::Clear() {
  563. // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter)
  564. ::google::protobuf::uint32 cached_has_bits = 0;
  565. // Prevent compiler warnings about cached_has_bits being unused
  566. (void) cached_has_bits;
  567. network_information_vector_.Clear();
  568. _has_bits_.Clear();
  569. _internal_metadata_.Clear();
  570. }
  571. bool Network_parameter::MergePartialFromCodedStream(
  572. ::google::protobuf::io::CodedInputStream* input) {
  573. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  574. ::google::protobuf::uint32 tag;
  575. // @@protoc_insertion_point(parse_start:Network_proto.Network_parameter)
  576. for (;;) {
  577. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  578. tag = p.first;
  579. if (!p.second) goto handle_unusual;
  580. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  581. // repeated .Network_proto.Network_information network_information_vector = 1;
  582. case 1: {
  583. if (static_cast< ::google::protobuf::uint8>(tag) ==
  584. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  585. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  586. input, add_network_information_vector()));
  587. } else {
  588. goto handle_unusual;
  589. }
  590. break;
  591. }
  592. default: {
  593. handle_unusual:
  594. if (tag == 0) {
  595. goto success;
  596. }
  597. DO_(::google::protobuf::internal::WireFormat::SkipField(
  598. input, tag, _internal_metadata_.mutable_unknown_fields()));
  599. break;
  600. }
  601. }
  602. }
  603. success:
  604. // @@protoc_insertion_point(parse_success:Network_proto.Network_parameter)
  605. return true;
  606. failure:
  607. // @@protoc_insertion_point(parse_failure:Network_proto.Network_parameter)
  608. return false;
  609. #undef DO_
  610. }
  611. void Network_parameter::SerializeWithCachedSizes(
  612. ::google::protobuf::io::CodedOutputStream* output) const {
  613. // @@protoc_insertion_point(serialize_start:Network_proto.Network_parameter)
  614. ::google::protobuf::uint32 cached_has_bits = 0;
  615. (void) cached_has_bits;
  616. // repeated .Network_proto.Network_information network_information_vector = 1;
  617. for (unsigned int i = 0,
  618. n = static_cast<unsigned int>(this->network_information_vector_size()); i < n; i++) {
  619. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  620. 1,
  621. this->network_information_vector(static_cast<int>(i)),
  622. output);
  623. }
  624. if (_internal_metadata_.have_unknown_fields()) {
  625. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  626. _internal_metadata_.unknown_fields(), output);
  627. }
  628. // @@protoc_insertion_point(serialize_end:Network_proto.Network_parameter)
  629. }
  630. ::google::protobuf::uint8* Network_parameter::InternalSerializeWithCachedSizesToArray(
  631. bool deterministic, ::google::protobuf::uint8* target) const {
  632. (void)deterministic; // Unused
  633. // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_parameter)
  634. ::google::protobuf::uint32 cached_has_bits = 0;
  635. (void) cached_has_bits;
  636. // repeated .Network_proto.Network_information network_information_vector = 1;
  637. for (unsigned int i = 0,
  638. n = static_cast<unsigned int>(this->network_information_vector_size()); i < n; i++) {
  639. target = ::google::protobuf::internal::WireFormatLite::
  640. InternalWriteMessageToArray(
  641. 1, this->network_information_vector(static_cast<int>(i)), deterministic, target);
  642. }
  643. if (_internal_metadata_.have_unknown_fields()) {
  644. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  645. _internal_metadata_.unknown_fields(), target);
  646. }
  647. // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_parameter)
  648. return target;
  649. }
  650. size_t Network_parameter::ByteSizeLong() const {
  651. // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_parameter)
  652. size_t total_size = 0;
  653. if (_internal_metadata_.have_unknown_fields()) {
  654. total_size +=
  655. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  656. _internal_metadata_.unknown_fields());
  657. }
  658. // repeated .Network_proto.Network_information network_information_vector = 1;
  659. {
  660. unsigned int count = static_cast<unsigned int>(this->network_information_vector_size());
  661. total_size += 1UL * count;
  662. for (unsigned int i = 0; i < count; i++) {
  663. total_size +=
  664. ::google::protobuf::internal::WireFormatLite::MessageSize(
  665. this->network_information_vector(static_cast<int>(i)));
  666. }
  667. }
  668. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  669. SetCachedSize(cached_size);
  670. return total_size;
  671. }
  672. void Network_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  673. // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_parameter)
  674. GOOGLE_DCHECK_NE(&from, this);
  675. const Network_parameter* source =
  676. ::google::protobuf::internal::DynamicCastToGenerated<const Network_parameter>(
  677. &from);
  678. if (source == NULL) {
  679. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_parameter)
  680. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  681. } else {
  682. // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_parameter)
  683. MergeFrom(*source);
  684. }
  685. }
  686. void Network_parameter::MergeFrom(const Network_parameter& from) {
  687. // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_parameter)
  688. GOOGLE_DCHECK_NE(&from, this);
  689. _internal_metadata_.MergeFrom(from._internal_metadata_);
  690. ::google::protobuf::uint32 cached_has_bits = 0;
  691. (void) cached_has_bits;
  692. network_information_vector_.MergeFrom(from.network_information_vector_);
  693. }
  694. void Network_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  695. // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_parameter)
  696. if (&from == this) return;
  697. Clear();
  698. MergeFrom(from);
  699. }
  700. void Network_parameter::CopyFrom(const Network_parameter& from) {
  701. // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_parameter)
  702. if (&from == this) return;
  703. Clear();
  704. MergeFrom(from);
  705. }
  706. bool Network_parameter::IsInitialized() const {
  707. return true;
  708. }
  709. void Network_parameter::Swap(Network_parameter* other) {
  710. if (other == this) return;
  711. InternalSwap(other);
  712. }
  713. void Network_parameter::InternalSwap(Network_parameter* other) {
  714. using std::swap;
  715. CastToBase(&network_information_vector_)->InternalSwap(CastToBase(&other->network_information_vector_));
  716. swap(_has_bits_[0], other->_has_bits_[0]);
  717. _internal_metadata_.Swap(&other->_internal_metadata_);
  718. }
  719. ::google::protobuf::Metadata Network_parameter::GetMetadata() const {
  720. protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  721. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages];
  722. }
  723. // ===================================================================
  724. void Network_parameter_all::InitAsDefaultInstance() {
  725. ::Network_proto::_Network_parameter_all_default_instance_._instance.get_mutable()->network_parameters_ = const_cast< ::Network_proto::Network_parameter*>(
  726. ::Network_proto::Network_parameter::internal_default_instance());
  727. }
  728. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  729. const int Network_parameter_all::kNetworkParametersFieldNumber;
  730. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  731. Network_parameter_all::Network_parameter_all()
  732. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  733. ::google::protobuf::internal::InitSCC(
  734. &protobuf_network_2eproto::scc_info_Network_parameter_all.base);
  735. SharedCtor();
  736. // @@protoc_insertion_point(constructor:Network_proto.Network_parameter_all)
  737. }
  738. Network_parameter_all::Network_parameter_all(const Network_parameter_all& from)
  739. : ::google::protobuf::Message(),
  740. _internal_metadata_(NULL),
  741. _has_bits_(from._has_bits_) {
  742. _internal_metadata_.MergeFrom(from._internal_metadata_);
  743. if (from.has_network_parameters()) {
  744. network_parameters_ = new ::Network_proto::Network_parameter(*from.network_parameters_);
  745. } else {
  746. network_parameters_ = NULL;
  747. }
  748. // @@protoc_insertion_point(copy_constructor:Network_proto.Network_parameter_all)
  749. }
  750. void Network_parameter_all::SharedCtor() {
  751. network_parameters_ = NULL;
  752. }
  753. Network_parameter_all::~Network_parameter_all() {
  754. // @@protoc_insertion_point(destructor:Network_proto.Network_parameter_all)
  755. SharedDtor();
  756. }
  757. void Network_parameter_all::SharedDtor() {
  758. if (this != internal_default_instance()) delete network_parameters_;
  759. }
  760. void Network_parameter_all::SetCachedSize(int size) const {
  761. _cached_size_.Set(size);
  762. }
  763. const ::google::protobuf::Descriptor* Network_parameter_all::descriptor() {
  764. ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  765. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  766. }
  767. const Network_parameter_all& Network_parameter_all::default_instance() {
  768. ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_parameter_all.base);
  769. return *internal_default_instance();
  770. }
  771. void Network_parameter_all::Clear() {
  772. // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter_all)
  773. ::google::protobuf::uint32 cached_has_bits = 0;
  774. // Prevent compiler warnings about cached_has_bits being unused
  775. (void) cached_has_bits;
  776. cached_has_bits = _has_bits_[0];
  777. if (cached_has_bits & 0x00000001u) {
  778. GOOGLE_DCHECK(network_parameters_ != NULL);
  779. network_parameters_->Clear();
  780. }
  781. _has_bits_.Clear();
  782. _internal_metadata_.Clear();
  783. }
  784. bool Network_parameter_all::MergePartialFromCodedStream(
  785. ::google::protobuf::io::CodedInputStream* input) {
  786. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  787. ::google::protobuf::uint32 tag;
  788. // @@protoc_insertion_point(parse_start:Network_proto.Network_parameter_all)
  789. for (;;) {
  790. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  791. tag = p.first;
  792. if (!p.second) goto handle_unusual;
  793. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  794. // optional .Network_proto.Network_parameter network_parameters = 1;
  795. case 1: {
  796. if (static_cast< ::google::protobuf::uint8>(tag) ==
  797. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  798. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  799. input, mutable_network_parameters()));
  800. } else {
  801. goto handle_unusual;
  802. }
  803. break;
  804. }
  805. default: {
  806. handle_unusual:
  807. if (tag == 0) {
  808. goto success;
  809. }
  810. DO_(::google::protobuf::internal::WireFormat::SkipField(
  811. input, tag, _internal_metadata_.mutable_unknown_fields()));
  812. break;
  813. }
  814. }
  815. }
  816. success:
  817. // @@protoc_insertion_point(parse_success:Network_proto.Network_parameter_all)
  818. return true;
  819. failure:
  820. // @@protoc_insertion_point(parse_failure:Network_proto.Network_parameter_all)
  821. return false;
  822. #undef DO_
  823. }
  824. void Network_parameter_all::SerializeWithCachedSizes(
  825. ::google::protobuf::io::CodedOutputStream* output) const {
  826. // @@protoc_insertion_point(serialize_start:Network_proto.Network_parameter_all)
  827. ::google::protobuf::uint32 cached_has_bits = 0;
  828. (void) cached_has_bits;
  829. cached_has_bits = _has_bits_[0];
  830. // optional .Network_proto.Network_parameter network_parameters = 1;
  831. if (cached_has_bits & 0x00000001u) {
  832. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  833. 1, this->_internal_network_parameters(), output);
  834. }
  835. if (_internal_metadata_.have_unknown_fields()) {
  836. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  837. _internal_metadata_.unknown_fields(), output);
  838. }
  839. // @@protoc_insertion_point(serialize_end:Network_proto.Network_parameter_all)
  840. }
  841. ::google::protobuf::uint8* Network_parameter_all::InternalSerializeWithCachedSizesToArray(
  842. bool deterministic, ::google::protobuf::uint8* target) const {
  843. (void)deterministic; // Unused
  844. // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_parameter_all)
  845. ::google::protobuf::uint32 cached_has_bits = 0;
  846. (void) cached_has_bits;
  847. cached_has_bits = _has_bits_[0];
  848. // optional .Network_proto.Network_parameter network_parameters = 1;
  849. if (cached_has_bits & 0x00000001u) {
  850. target = ::google::protobuf::internal::WireFormatLite::
  851. InternalWriteMessageToArray(
  852. 1, this->_internal_network_parameters(), deterministic, target);
  853. }
  854. if (_internal_metadata_.have_unknown_fields()) {
  855. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  856. _internal_metadata_.unknown_fields(), target);
  857. }
  858. // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_parameter_all)
  859. return target;
  860. }
  861. size_t Network_parameter_all::ByteSizeLong() const {
  862. // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_parameter_all)
  863. size_t total_size = 0;
  864. if (_internal_metadata_.have_unknown_fields()) {
  865. total_size +=
  866. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  867. _internal_metadata_.unknown_fields());
  868. }
  869. // optional .Network_proto.Network_parameter network_parameters = 1;
  870. if (has_network_parameters()) {
  871. total_size += 1 +
  872. ::google::protobuf::internal::WireFormatLite::MessageSize(
  873. *network_parameters_);
  874. }
  875. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  876. SetCachedSize(cached_size);
  877. return total_size;
  878. }
  879. void Network_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
  880. // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_parameter_all)
  881. GOOGLE_DCHECK_NE(&from, this);
  882. const Network_parameter_all* source =
  883. ::google::protobuf::internal::DynamicCastToGenerated<const Network_parameter_all>(
  884. &from);
  885. if (source == NULL) {
  886. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_parameter_all)
  887. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  888. } else {
  889. // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_parameter_all)
  890. MergeFrom(*source);
  891. }
  892. }
  893. void Network_parameter_all::MergeFrom(const Network_parameter_all& from) {
  894. // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_parameter_all)
  895. GOOGLE_DCHECK_NE(&from, this);
  896. _internal_metadata_.MergeFrom(from._internal_metadata_);
  897. ::google::protobuf::uint32 cached_has_bits = 0;
  898. (void) cached_has_bits;
  899. if (from.has_network_parameters()) {
  900. mutable_network_parameters()->::Network_proto::Network_parameter::MergeFrom(from.network_parameters());
  901. }
  902. }
  903. void Network_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
  904. // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_parameter_all)
  905. if (&from == this) return;
  906. Clear();
  907. MergeFrom(from);
  908. }
  909. void Network_parameter_all::CopyFrom(const Network_parameter_all& from) {
  910. // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_parameter_all)
  911. if (&from == this) return;
  912. Clear();
  913. MergeFrom(from);
  914. }
  915. bool Network_parameter_all::IsInitialized() const {
  916. return true;
  917. }
  918. void Network_parameter_all::Swap(Network_parameter_all* other) {
  919. if (other == this) return;
  920. InternalSwap(other);
  921. }
  922. void Network_parameter_all::InternalSwap(Network_parameter_all* other) {
  923. using std::swap;
  924. swap(network_parameters_, other->network_parameters_);
  925. swap(_has_bits_[0], other->_has_bits_[0]);
  926. _internal_metadata_.Swap(&other->_internal_metadata_);
  927. }
  928. ::google::protobuf::Metadata Network_parameter_all::GetMetadata() const {
  929. protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
  930. return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages];
  931. }
  932. // @@protoc_insertion_point(namespace_scope)
  933. } // namespace Network_proto
  934. namespace google {
  935. namespace protobuf {
  936. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_information* Arena::CreateMaybeMessage< ::Network_proto::Network_information >(Arena* arena) {
  937. return Arena::CreateInternal< ::Network_proto::Network_information >(arena);
  938. }
  939. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_parameter* Arena::CreateMaybeMessage< ::Network_proto::Network_parameter >(Arena* arena) {
  940. return Arena::CreateInternal< ::Network_proto::Network_parameter >(arena);
  941. }
  942. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_parameter_all* Arena::CreateMaybeMessage< ::Network_proto::Network_parameter_all >(Arena* arena) {
  943. return Arena::CreateInternal< ::Network_proto::Network_parameter_all >(arena);
  944. }
  945. } // namespace protobuf
  946. } // namespace google
  947. // @@protoc_insertion_point(global_scope)