central_control_message.pb.cc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: central_control_message.proto
  3. #include "central_control_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace message {
  20. class Central_controller_statu_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Central_controller_statu_msg>
  23. _instance;
  24. } _Central_controller_statu_msg_default_instance_;
  25. } // namespace message
  26. namespace protobuf_central_5fcontrol_5fmessage_2eproto {
  27. void InitDefaultsCentral_controller_statu_msgImpl() {
  28. GOOGLE_PROTOBUF_VERIFY_VERSION;
  29. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  30. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  31. #else
  32. ::google::protobuf::internal::InitProtobufDefaults();
  33. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  34. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  35. {
  36. void* ptr = &::message::_Central_controller_statu_msg_default_instance_;
  37. new (ptr) ::message::Central_controller_statu_msg();
  38. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  39. }
  40. ::message::Central_controller_statu_msg::InitAsDefaultInstance();
  41. }
  42. void InitDefaultsCentral_controller_statu_msg() {
  43. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  44. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCentral_controller_statu_msgImpl);
  45. }
  46. ::google::protobuf::Metadata file_level_metadata[1];
  47. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  48. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  49. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, _has_bits_),
  50. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, _internal_metadata_),
  51. ~0u, // no _extensions_
  52. ~0u, // no _oneof_case_
  53. ~0u, // no _weak_field_map_
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, base_info_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, entrance_statu_vector_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, export_statu_vector_),
  57. 0,
  58. ~0u,
  59. ~0u,
  60. };
  61. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  62. { 0, 8, sizeof(::message::Central_controller_statu_msg)},
  63. };
  64. static ::google::protobuf::Message const * const file_default_instances[] = {
  65. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Central_controller_statu_msg_default_instance_),
  66. };
  67. void protobuf_AssignDescriptors() {
  68. AddDescriptors();
  69. ::google::protobuf::MessageFactory* factory = NULL;
  70. AssignDescriptors(
  71. "central_control_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  72. file_level_metadata, file_level_enum_descriptors, NULL);
  73. }
  74. void protobuf_AssignDescriptorsOnce() {
  75. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  76. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  77. }
  78. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  79. void protobuf_RegisterTypes(const ::std::string&) {
  80. protobuf_AssignDescriptorsOnce();
  81. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  82. }
  83. void AddDescriptorsImpl() {
  84. InitDefaults();
  85. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  86. "\n\035central_control_message.proto\022\007message"
  87. "\032\022message_base.proto\"\263\001\n\034Central_control"
  88. "ler_statu_msg\022%\n\tbase_info\030\001 \002(\0132\022.messa"
  89. "ge.Base_info\0226\n\025entrance_statu_vector\030\002 "
  90. "\003(\0162\027.message.Entrance_statu\0224\n\023export_s"
  91. "tatu_vector\030\003 \003(\0162\027.message.Entrance_sta"
  92. "tu*8\n\016Entrance_statu\022\013\n\007eEnable\020\000\022\014\n\010eDi"
  93. "sable\020\001\022\013\n\007ePaused\020\002"
  94. };
  95. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  96. descriptor, 300);
  97. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  98. "central_control_message.proto", &protobuf_RegisterTypes);
  99. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  100. }
  101. void AddDescriptors() {
  102. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  103. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  104. }
  105. // Force AddDescriptors() to be called at dynamic initialization time.
  106. struct StaticDescriptorInitializer {
  107. StaticDescriptorInitializer() {
  108. AddDescriptors();
  109. }
  110. } static_descriptor_initializer;
  111. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  112. namespace message {
  113. const ::google::protobuf::EnumDescriptor* Entrance_statu_descriptor() {
  114. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  115. return protobuf_central_5fcontrol_5fmessage_2eproto::file_level_enum_descriptors[0];
  116. }
  117. bool Entrance_statu_IsValid(int value) {
  118. switch (value) {
  119. case 0:
  120. case 1:
  121. case 2:
  122. return true;
  123. default:
  124. return false;
  125. }
  126. }
  127. // ===================================================================
  128. void Central_controller_statu_msg::InitAsDefaultInstance() {
  129. ::message::_Central_controller_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  130. ::message::Base_info::internal_default_instance());
  131. }
  132. void Central_controller_statu_msg::clear_base_info() {
  133. if (base_info_ != NULL) base_info_->Clear();
  134. clear_has_base_info();
  135. }
  136. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  137. const int Central_controller_statu_msg::kBaseInfoFieldNumber;
  138. const int Central_controller_statu_msg::kEntranceStatuVectorFieldNumber;
  139. const int Central_controller_statu_msg::kExportStatuVectorFieldNumber;
  140. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  141. Central_controller_statu_msg::Central_controller_statu_msg()
  142. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  143. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  144. ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msg();
  145. }
  146. SharedCtor();
  147. // @@protoc_insertion_point(constructor:message.Central_controller_statu_msg)
  148. }
  149. Central_controller_statu_msg::Central_controller_statu_msg(const Central_controller_statu_msg& from)
  150. : ::google::protobuf::Message(),
  151. _internal_metadata_(NULL),
  152. _has_bits_(from._has_bits_),
  153. _cached_size_(0),
  154. entrance_statu_vector_(from.entrance_statu_vector_),
  155. export_statu_vector_(from.export_statu_vector_) {
  156. _internal_metadata_.MergeFrom(from._internal_metadata_);
  157. if (from.has_base_info()) {
  158. base_info_ = new ::message::Base_info(*from.base_info_);
  159. } else {
  160. base_info_ = NULL;
  161. }
  162. // @@protoc_insertion_point(copy_constructor:message.Central_controller_statu_msg)
  163. }
  164. void Central_controller_statu_msg::SharedCtor() {
  165. _cached_size_ = 0;
  166. base_info_ = NULL;
  167. }
  168. Central_controller_statu_msg::~Central_controller_statu_msg() {
  169. // @@protoc_insertion_point(destructor:message.Central_controller_statu_msg)
  170. SharedDtor();
  171. }
  172. void Central_controller_statu_msg::SharedDtor() {
  173. if (this != internal_default_instance()) delete base_info_;
  174. }
  175. void Central_controller_statu_msg::SetCachedSize(int size) const {
  176. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  177. _cached_size_ = size;
  178. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  179. }
  180. const ::google::protobuf::Descriptor* Central_controller_statu_msg::descriptor() {
  181. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  182. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  183. }
  184. const Central_controller_statu_msg& Central_controller_statu_msg::default_instance() {
  185. ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msg();
  186. return *internal_default_instance();
  187. }
  188. Central_controller_statu_msg* Central_controller_statu_msg::New(::google::protobuf::Arena* arena) const {
  189. Central_controller_statu_msg* n = new Central_controller_statu_msg;
  190. if (arena != NULL) {
  191. arena->Own(n);
  192. }
  193. return n;
  194. }
  195. void Central_controller_statu_msg::Clear() {
  196. // @@protoc_insertion_point(message_clear_start:message.Central_controller_statu_msg)
  197. ::google::protobuf::uint32 cached_has_bits = 0;
  198. // Prevent compiler warnings about cached_has_bits being unused
  199. (void) cached_has_bits;
  200. entrance_statu_vector_.Clear();
  201. export_statu_vector_.Clear();
  202. cached_has_bits = _has_bits_[0];
  203. if (cached_has_bits & 0x00000001u) {
  204. GOOGLE_DCHECK(base_info_ != NULL);
  205. base_info_->Clear();
  206. }
  207. _has_bits_.Clear();
  208. _internal_metadata_.Clear();
  209. }
  210. bool Central_controller_statu_msg::MergePartialFromCodedStream(
  211. ::google::protobuf::io::CodedInputStream* input) {
  212. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  213. ::google::protobuf::uint32 tag;
  214. // @@protoc_insertion_point(parse_start:message.Central_controller_statu_msg)
  215. for (;;) {
  216. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  217. tag = p.first;
  218. if (!p.second) goto handle_unusual;
  219. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  220. // required .message.Base_info base_info = 1;
  221. case 1: {
  222. if (static_cast< ::google::protobuf::uint8>(tag) ==
  223. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  224. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  225. input, mutable_base_info()));
  226. } else {
  227. goto handle_unusual;
  228. }
  229. break;
  230. }
  231. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  232. case 2: {
  233. if (static_cast< ::google::protobuf::uint8>(tag) ==
  234. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  235. int value;
  236. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  237. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  238. input, &value)));
  239. if (::message::Entrance_statu_IsValid(value)) {
  240. add_entrance_statu_vector(static_cast< ::message::Entrance_statu >(value));
  241. } else {
  242. mutable_unknown_fields()->AddVarint(
  243. 2, static_cast< ::google::protobuf::uint64>(value));
  244. }
  245. } else if (
  246. static_cast< ::google::protobuf::uint8>(tag) ==
  247. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  248. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  249. input,
  250. 2,
  251. ::message::Entrance_statu_IsValid,
  252. mutable_unknown_fields(),
  253. this->mutable_entrance_statu_vector())));
  254. } else {
  255. goto handle_unusual;
  256. }
  257. break;
  258. }
  259. // repeated .message.Entrance_statu export_statu_vector = 3;
  260. case 3: {
  261. if (static_cast< ::google::protobuf::uint8>(tag) ==
  262. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  263. int value;
  264. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  265. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  266. input, &value)));
  267. if (::message::Entrance_statu_IsValid(value)) {
  268. add_export_statu_vector(static_cast< ::message::Entrance_statu >(value));
  269. } else {
  270. mutable_unknown_fields()->AddVarint(
  271. 3, static_cast< ::google::protobuf::uint64>(value));
  272. }
  273. } else if (
  274. static_cast< ::google::protobuf::uint8>(tag) ==
  275. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  276. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  277. input,
  278. 3,
  279. ::message::Entrance_statu_IsValid,
  280. mutable_unknown_fields(),
  281. this->mutable_export_statu_vector())));
  282. } else {
  283. goto handle_unusual;
  284. }
  285. break;
  286. }
  287. default: {
  288. handle_unusual:
  289. if (tag == 0) {
  290. goto success;
  291. }
  292. DO_(::google::protobuf::internal::WireFormat::SkipField(
  293. input, tag, _internal_metadata_.mutable_unknown_fields()));
  294. break;
  295. }
  296. }
  297. }
  298. success:
  299. // @@protoc_insertion_point(parse_success:message.Central_controller_statu_msg)
  300. return true;
  301. failure:
  302. // @@protoc_insertion_point(parse_failure:message.Central_controller_statu_msg)
  303. return false;
  304. #undef DO_
  305. }
  306. void Central_controller_statu_msg::SerializeWithCachedSizes(
  307. ::google::protobuf::io::CodedOutputStream* output) const {
  308. // @@protoc_insertion_point(serialize_start:message.Central_controller_statu_msg)
  309. ::google::protobuf::uint32 cached_has_bits = 0;
  310. (void) cached_has_bits;
  311. cached_has_bits = _has_bits_[0];
  312. // required .message.Base_info base_info = 1;
  313. if (cached_has_bits & 0x00000001u) {
  314. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  315. 1, *this->base_info_, output);
  316. }
  317. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  318. for (int i = 0, n = this->entrance_statu_vector_size(); i < n; i++) {
  319. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  320. 2, this->entrance_statu_vector(i), output);
  321. }
  322. // repeated .message.Entrance_statu export_statu_vector = 3;
  323. for (int i = 0, n = this->export_statu_vector_size(); i < n; i++) {
  324. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  325. 3, this->export_statu_vector(i), output);
  326. }
  327. if (_internal_metadata_.have_unknown_fields()) {
  328. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  329. _internal_metadata_.unknown_fields(), output);
  330. }
  331. // @@protoc_insertion_point(serialize_end:message.Central_controller_statu_msg)
  332. }
  333. ::google::protobuf::uint8* Central_controller_statu_msg::InternalSerializeWithCachedSizesToArray(
  334. bool deterministic, ::google::protobuf::uint8* target) const {
  335. (void)deterministic; // Unused
  336. // @@protoc_insertion_point(serialize_to_array_start:message.Central_controller_statu_msg)
  337. ::google::protobuf::uint32 cached_has_bits = 0;
  338. (void) cached_has_bits;
  339. cached_has_bits = _has_bits_[0];
  340. // required .message.Base_info base_info = 1;
  341. if (cached_has_bits & 0x00000001u) {
  342. target = ::google::protobuf::internal::WireFormatLite::
  343. InternalWriteMessageToArray(
  344. 1, *this->base_info_, deterministic, target);
  345. }
  346. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  347. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  348. 2, this->entrance_statu_vector_, target);
  349. // repeated .message.Entrance_statu export_statu_vector = 3;
  350. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  351. 3, this->export_statu_vector_, target);
  352. if (_internal_metadata_.have_unknown_fields()) {
  353. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  354. _internal_metadata_.unknown_fields(), target);
  355. }
  356. // @@protoc_insertion_point(serialize_to_array_end:message.Central_controller_statu_msg)
  357. return target;
  358. }
  359. size_t Central_controller_statu_msg::ByteSizeLong() const {
  360. // @@protoc_insertion_point(message_byte_size_start:message.Central_controller_statu_msg)
  361. size_t total_size = 0;
  362. if (_internal_metadata_.have_unknown_fields()) {
  363. total_size +=
  364. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  365. _internal_metadata_.unknown_fields());
  366. }
  367. // required .message.Base_info base_info = 1;
  368. if (has_base_info()) {
  369. total_size += 1 +
  370. ::google::protobuf::internal::WireFormatLite::MessageSize(
  371. *this->base_info_);
  372. }
  373. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  374. {
  375. size_t data_size = 0;
  376. unsigned int count = static_cast<unsigned int>(this->entrance_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
  377. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  378. this->entrance_statu_vector(static_cast<int>(i)));
  379. }
  380. total_size += (1UL * count) + data_size;
  381. }
  382. // repeated .message.Entrance_statu export_statu_vector = 3;
  383. {
  384. size_t data_size = 0;
  385. unsigned int count = static_cast<unsigned int>(this->export_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
  386. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  387. this->export_statu_vector(static_cast<int>(i)));
  388. }
  389. total_size += (1UL * count) + data_size;
  390. }
  391. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  392. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  393. _cached_size_ = cached_size;
  394. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  395. return total_size;
  396. }
  397. void Central_controller_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
  398. // @@protoc_insertion_point(generalized_merge_from_start:message.Central_controller_statu_msg)
  399. GOOGLE_DCHECK_NE(&from, this);
  400. const Central_controller_statu_msg* source =
  401. ::google::protobuf::internal::DynamicCastToGenerated<const Central_controller_statu_msg>(
  402. &from);
  403. if (source == NULL) {
  404. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Central_controller_statu_msg)
  405. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  406. } else {
  407. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Central_controller_statu_msg)
  408. MergeFrom(*source);
  409. }
  410. }
  411. void Central_controller_statu_msg::MergeFrom(const Central_controller_statu_msg& from) {
  412. // @@protoc_insertion_point(class_specific_merge_from_start:message.Central_controller_statu_msg)
  413. GOOGLE_DCHECK_NE(&from, this);
  414. _internal_metadata_.MergeFrom(from._internal_metadata_);
  415. ::google::protobuf::uint32 cached_has_bits = 0;
  416. (void) cached_has_bits;
  417. entrance_statu_vector_.MergeFrom(from.entrance_statu_vector_);
  418. export_statu_vector_.MergeFrom(from.export_statu_vector_);
  419. if (from.has_base_info()) {
  420. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  421. }
  422. }
  423. void Central_controller_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
  424. // @@protoc_insertion_point(generalized_copy_from_start:message.Central_controller_statu_msg)
  425. if (&from == this) return;
  426. Clear();
  427. MergeFrom(from);
  428. }
  429. void Central_controller_statu_msg::CopyFrom(const Central_controller_statu_msg& from) {
  430. // @@protoc_insertion_point(class_specific_copy_from_start:message.Central_controller_statu_msg)
  431. if (&from == this) return;
  432. Clear();
  433. MergeFrom(from);
  434. }
  435. bool Central_controller_statu_msg::IsInitialized() const {
  436. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  437. if (has_base_info()) {
  438. if (!this->base_info_->IsInitialized()) return false;
  439. }
  440. return true;
  441. }
  442. void Central_controller_statu_msg::Swap(Central_controller_statu_msg* other) {
  443. if (other == this) return;
  444. InternalSwap(other);
  445. }
  446. void Central_controller_statu_msg::InternalSwap(Central_controller_statu_msg* other) {
  447. using std::swap;
  448. entrance_statu_vector_.InternalSwap(&other->entrance_statu_vector_);
  449. export_statu_vector_.InternalSwap(&other->export_statu_vector_);
  450. swap(base_info_, other->base_info_);
  451. swap(_has_bits_[0], other->_has_bits_[0]);
  452. _internal_metadata_.Swap(&other->_internal_metadata_);
  453. swap(_cached_size_, other->_cached_size_);
  454. }
  455. ::google::protobuf::Metadata Central_controller_statu_msg::GetMetadata() const {
  456. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  457. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  458. }
  459. // @@protoc_insertion_point(namespace_scope)
  460. } // namespace message
  461. // @@protoc_insertion_point(global_scope)