central_control_message.pb.cc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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, paused_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, entrance_statu_vector_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, export_statu_vector_),
  58. 0,
  59. 1,
  60. ~0u,
  61. ~0u,
  62. };
  63. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  64. { 0, 9, sizeof(::message::Central_controller_statu_msg)},
  65. };
  66. static ::google::protobuf::Message const * const file_default_instances[] = {
  67. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Central_controller_statu_msg_default_instance_),
  68. };
  69. void protobuf_AssignDescriptors() {
  70. AddDescriptors();
  71. ::google::protobuf::MessageFactory* factory = NULL;
  72. AssignDescriptors(
  73. "central_control_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  74. file_level_metadata, file_level_enum_descriptors, NULL);
  75. }
  76. void protobuf_AssignDescriptorsOnce() {
  77. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  78. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  79. }
  80. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  81. void protobuf_RegisterTypes(const ::std::string&) {
  82. protobuf_AssignDescriptorsOnce();
  83. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  84. }
  85. void AddDescriptorsImpl() {
  86. InitDefaults();
  87. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  88. "\n\035central_control_message.proto\022\007message"
  89. "\032\022message_base.proto\"\303\001\n\034Central_control"
  90. "ler_statu_msg\022%\n\tbase_info\030\001 \002(\0132\022.messa"
  91. "ge.Base_info\022\016\n\006paused\030\002 \002(\010\0226\n\025entrance"
  92. "_statu_vector\030\003 \003(\0162\027.message.Entrance_s"
  93. "tatu\0224\n\023export_statu_vector\030\004 \003(\0162\027.mess"
  94. "age.Entrance_statu*+\n\016Entrance_statu\022\013\n\007"
  95. "eEnable\020\000\022\014\n\010eDisable\020\001"
  96. };
  97. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  98. descriptor, 303);
  99. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  100. "central_control_message.proto", &protobuf_RegisterTypes);
  101. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  102. }
  103. void AddDescriptors() {
  104. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  105. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  106. }
  107. // Force AddDescriptors() to be called at dynamic initialization time.
  108. struct StaticDescriptorInitializer {
  109. StaticDescriptorInitializer() {
  110. AddDescriptors();
  111. }
  112. } static_descriptor_initializer;
  113. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  114. namespace message {
  115. const ::google::protobuf::EnumDescriptor* Entrance_statu_descriptor() {
  116. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  117. return protobuf_central_5fcontrol_5fmessage_2eproto::file_level_enum_descriptors[0];
  118. }
  119. bool Entrance_statu_IsValid(int value) {
  120. switch (value) {
  121. case 0:
  122. case 1:
  123. return true;
  124. default:
  125. return false;
  126. }
  127. }
  128. // ===================================================================
  129. void Central_controller_statu_msg::InitAsDefaultInstance() {
  130. ::message::_Central_controller_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  131. ::message::Base_info::internal_default_instance());
  132. }
  133. void Central_controller_statu_msg::clear_base_info() {
  134. if (base_info_ != NULL) base_info_->Clear();
  135. clear_has_base_info();
  136. }
  137. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  138. const int Central_controller_statu_msg::kBaseInfoFieldNumber;
  139. const int Central_controller_statu_msg::kPausedFieldNumber;
  140. const int Central_controller_statu_msg::kEntranceStatuVectorFieldNumber;
  141. const int Central_controller_statu_msg::kExportStatuVectorFieldNumber;
  142. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  143. Central_controller_statu_msg::Central_controller_statu_msg()
  144. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  145. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  146. ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msg();
  147. }
  148. SharedCtor();
  149. // @@protoc_insertion_point(constructor:message.Central_controller_statu_msg)
  150. }
  151. Central_controller_statu_msg::Central_controller_statu_msg(const Central_controller_statu_msg& from)
  152. : ::google::protobuf::Message(),
  153. _internal_metadata_(NULL),
  154. _has_bits_(from._has_bits_),
  155. _cached_size_(0),
  156. entrance_statu_vector_(from.entrance_statu_vector_),
  157. export_statu_vector_(from.export_statu_vector_) {
  158. _internal_metadata_.MergeFrom(from._internal_metadata_);
  159. if (from.has_base_info()) {
  160. base_info_ = new ::message::Base_info(*from.base_info_);
  161. } else {
  162. base_info_ = NULL;
  163. }
  164. paused_ = from.paused_;
  165. // @@protoc_insertion_point(copy_constructor:message.Central_controller_statu_msg)
  166. }
  167. void Central_controller_statu_msg::SharedCtor() {
  168. _cached_size_ = 0;
  169. ::memset(&base_info_, 0, static_cast<size_t>(
  170. reinterpret_cast<char*>(&paused_) -
  171. reinterpret_cast<char*>(&base_info_)) + sizeof(paused_));
  172. }
  173. Central_controller_statu_msg::~Central_controller_statu_msg() {
  174. // @@protoc_insertion_point(destructor:message.Central_controller_statu_msg)
  175. SharedDtor();
  176. }
  177. void Central_controller_statu_msg::SharedDtor() {
  178. if (this != internal_default_instance()) delete base_info_;
  179. }
  180. void Central_controller_statu_msg::SetCachedSize(int size) const {
  181. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  182. _cached_size_ = size;
  183. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  184. }
  185. const ::google::protobuf::Descriptor* Central_controller_statu_msg::descriptor() {
  186. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  187. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  188. }
  189. const Central_controller_statu_msg& Central_controller_statu_msg::default_instance() {
  190. ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msg();
  191. return *internal_default_instance();
  192. }
  193. Central_controller_statu_msg* Central_controller_statu_msg::New(::google::protobuf::Arena* arena) const {
  194. Central_controller_statu_msg* n = new Central_controller_statu_msg;
  195. if (arena != NULL) {
  196. arena->Own(n);
  197. }
  198. return n;
  199. }
  200. void Central_controller_statu_msg::Clear() {
  201. // @@protoc_insertion_point(message_clear_start:message.Central_controller_statu_msg)
  202. ::google::protobuf::uint32 cached_has_bits = 0;
  203. // Prevent compiler warnings about cached_has_bits being unused
  204. (void) cached_has_bits;
  205. entrance_statu_vector_.Clear();
  206. export_statu_vector_.Clear();
  207. cached_has_bits = _has_bits_[0];
  208. if (cached_has_bits & 0x00000001u) {
  209. GOOGLE_DCHECK(base_info_ != NULL);
  210. base_info_->Clear();
  211. }
  212. paused_ = false;
  213. _has_bits_.Clear();
  214. _internal_metadata_.Clear();
  215. }
  216. bool Central_controller_statu_msg::MergePartialFromCodedStream(
  217. ::google::protobuf::io::CodedInputStream* input) {
  218. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  219. ::google::protobuf::uint32 tag;
  220. // @@protoc_insertion_point(parse_start:message.Central_controller_statu_msg)
  221. for (;;) {
  222. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  223. tag = p.first;
  224. if (!p.second) goto handle_unusual;
  225. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  226. // required .message.Base_info base_info = 1;
  227. case 1: {
  228. if (static_cast< ::google::protobuf::uint8>(tag) ==
  229. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  230. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  231. input, mutable_base_info()));
  232. } else {
  233. goto handle_unusual;
  234. }
  235. break;
  236. }
  237. // required bool paused = 2;
  238. case 2: {
  239. if (static_cast< ::google::protobuf::uint8>(tag) ==
  240. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  241. set_has_paused();
  242. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  243. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  244. input, &paused_)));
  245. } else {
  246. goto handle_unusual;
  247. }
  248. break;
  249. }
  250. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  251. case 3: {
  252. if (static_cast< ::google::protobuf::uint8>(tag) ==
  253. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  254. int value;
  255. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  256. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  257. input, &value)));
  258. if (::message::Entrance_statu_IsValid(value)) {
  259. add_entrance_statu_vector(static_cast< ::message::Entrance_statu >(value));
  260. } else {
  261. mutable_unknown_fields()->AddVarint(
  262. 3, static_cast< ::google::protobuf::uint64>(value));
  263. }
  264. } else if (
  265. static_cast< ::google::protobuf::uint8>(tag) ==
  266. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  267. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  268. input,
  269. 3,
  270. ::message::Entrance_statu_IsValid,
  271. mutable_unknown_fields(),
  272. this->mutable_entrance_statu_vector())));
  273. } else {
  274. goto handle_unusual;
  275. }
  276. break;
  277. }
  278. // repeated .message.Entrance_statu export_statu_vector = 4;
  279. case 4: {
  280. if (static_cast< ::google::protobuf::uint8>(tag) ==
  281. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  282. int value;
  283. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  284. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  285. input, &value)));
  286. if (::message::Entrance_statu_IsValid(value)) {
  287. add_export_statu_vector(static_cast< ::message::Entrance_statu >(value));
  288. } else {
  289. mutable_unknown_fields()->AddVarint(
  290. 4, static_cast< ::google::protobuf::uint64>(value));
  291. }
  292. } else if (
  293. static_cast< ::google::protobuf::uint8>(tag) ==
  294. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  295. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  296. input,
  297. 4,
  298. ::message::Entrance_statu_IsValid,
  299. mutable_unknown_fields(),
  300. this->mutable_export_statu_vector())));
  301. } else {
  302. goto handle_unusual;
  303. }
  304. break;
  305. }
  306. default: {
  307. handle_unusual:
  308. if (tag == 0) {
  309. goto success;
  310. }
  311. DO_(::google::protobuf::internal::WireFormat::SkipField(
  312. input, tag, _internal_metadata_.mutable_unknown_fields()));
  313. break;
  314. }
  315. }
  316. }
  317. success:
  318. // @@protoc_insertion_point(parse_success:message.Central_controller_statu_msg)
  319. return true;
  320. failure:
  321. // @@protoc_insertion_point(parse_failure:message.Central_controller_statu_msg)
  322. return false;
  323. #undef DO_
  324. }
  325. void Central_controller_statu_msg::SerializeWithCachedSizes(
  326. ::google::protobuf::io::CodedOutputStream* output) const {
  327. // @@protoc_insertion_point(serialize_start:message.Central_controller_statu_msg)
  328. ::google::protobuf::uint32 cached_has_bits = 0;
  329. (void) cached_has_bits;
  330. cached_has_bits = _has_bits_[0];
  331. // required .message.Base_info base_info = 1;
  332. if (cached_has_bits & 0x00000001u) {
  333. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  334. 1, *this->base_info_, output);
  335. }
  336. // required bool paused = 2;
  337. if (cached_has_bits & 0x00000002u) {
  338. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->paused(), output);
  339. }
  340. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  341. for (int i = 0, n = this->entrance_statu_vector_size(); i < n; i++) {
  342. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  343. 3, this->entrance_statu_vector(i), output);
  344. }
  345. // repeated .message.Entrance_statu export_statu_vector = 4;
  346. for (int i = 0, n = this->export_statu_vector_size(); i < n; i++) {
  347. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  348. 4, this->export_statu_vector(i), output);
  349. }
  350. if (_internal_metadata_.have_unknown_fields()) {
  351. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  352. _internal_metadata_.unknown_fields(), output);
  353. }
  354. // @@protoc_insertion_point(serialize_end:message.Central_controller_statu_msg)
  355. }
  356. ::google::protobuf::uint8* Central_controller_statu_msg::InternalSerializeWithCachedSizesToArray(
  357. bool deterministic, ::google::protobuf::uint8* target) const {
  358. (void)deterministic; // Unused
  359. // @@protoc_insertion_point(serialize_to_array_start:message.Central_controller_statu_msg)
  360. ::google::protobuf::uint32 cached_has_bits = 0;
  361. (void) cached_has_bits;
  362. cached_has_bits = _has_bits_[0];
  363. // required .message.Base_info base_info = 1;
  364. if (cached_has_bits & 0x00000001u) {
  365. target = ::google::protobuf::internal::WireFormatLite::
  366. InternalWriteMessageToArray(
  367. 1, *this->base_info_, deterministic, target);
  368. }
  369. // required bool paused = 2;
  370. if (cached_has_bits & 0x00000002u) {
  371. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->paused(), target);
  372. }
  373. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  374. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  375. 3, this->entrance_statu_vector_, target);
  376. // repeated .message.Entrance_statu export_statu_vector = 4;
  377. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  378. 4, this->export_statu_vector_, target);
  379. if (_internal_metadata_.have_unknown_fields()) {
  380. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  381. _internal_metadata_.unknown_fields(), target);
  382. }
  383. // @@protoc_insertion_point(serialize_to_array_end:message.Central_controller_statu_msg)
  384. return target;
  385. }
  386. size_t Central_controller_statu_msg::RequiredFieldsByteSizeFallback() const {
  387. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Central_controller_statu_msg)
  388. size_t total_size = 0;
  389. if (has_base_info()) {
  390. // required .message.Base_info base_info = 1;
  391. total_size += 1 +
  392. ::google::protobuf::internal::WireFormatLite::MessageSize(
  393. *this->base_info_);
  394. }
  395. if (has_paused()) {
  396. // required bool paused = 2;
  397. total_size += 1 + 1;
  398. }
  399. return total_size;
  400. }
  401. size_t Central_controller_statu_msg::ByteSizeLong() const {
  402. // @@protoc_insertion_point(message_byte_size_start:message.Central_controller_statu_msg)
  403. size_t total_size = 0;
  404. if (_internal_metadata_.have_unknown_fields()) {
  405. total_size +=
  406. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  407. _internal_metadata_.unknown_fields());
  408. }
  409. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  410. // required .message.Base_info base_info = 1;
  411. total_size += 1 +
  412. ::google::protobuf::internal::WireFormatLite::MessageSize(
  413. *this->base_info_);
  414. // required bool paused = 2;
  415. total_size += 1 + 1;
  416. } else {
  417. total_size += RequiredFieldsByteSizeFallback();
  418. }
  419. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  420. {
  421. size_t data_size = 0;
  422. unsigned int count = static_cast<unsigned int>(this->entrance_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
  423. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  424. this->entrance_statu_vector(static_cast<int>(i)));
  425. }
  426. total_size += (1UL * count) + data_size;
  427. }
  428. // repeated .message.Entrance_statu export_statu_vector = 4;
  429. {
  430. size_t data_size = 0;
  431. unsigned int count = static_cast<unsigned int>(this->export_statu_vector_size());for (unsigned int i = 0; i < count; i++) {
  432. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  433. this->export_statu_vector(static_cast<int>(i)));
  434. }
  435. total_size += (1UL * count) + data_size;
  436. }
  437. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  438. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  439. _cached_size_ = cached_size;
  440. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  441. return total_size;
  442. }
  443. void Central_controller_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
  444. // @@protoc_insertion_point(generalized_merge_from_start:message.Central_controller_statu_msg)
  445. GOOGLE_DCHECK_NE(&from, this);
  446. const Central_controller_statu_msg* source =
  447. ::google::protobuf::internal::DynamicCastToGenerated<const Central_controller_statu_msg>(
  448. &from);
  449. if (source == NULL) {
  450. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Central_controller_statu_msg)
  451. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  452. } else {
  453. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Central_controller_statu_msg)
  454. MergeFrom(*source);
  455. }
  456. }
  457. void Central_controller_statu_msg::MergeFrom(const Central_controller_statu_msg& from) {
  458. // @@protoc_insertion_point(class_specific_merge_from_start:message.Central_controller_statu_msg)
  459. GOOGLE_DCHECK_NE(&from, this);
  460. _internal_metadata_.MergeFrom(from._internal_metadata_);
  461. ::google::protobuf::uint32 cached_has_bits = 0;
  462. (void) cached_has_bits;
  463. entrance_statu_vector_.MergeFrom(from.entrance_statu_vector_);
  464. export_statu_vector_.MergeFrom(from.export_statu_vector_);
  465. cached_has_bits = from._has_bits_[0];
  466. if (cached_has_bits & 3u) {
  467. if (cached_has_bits & 0x00000001u) {
  468. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  469. }
  470. if (cached_has_bits & 0x00000002u) {
  471. paused_ = from.paused_;
  472. }
  473. _has_bits_[0] |= cached_has_bits;
  474. }
  475. }
  476. void Central_controller_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
  477. // @@protoc_insertion_point(generalized_copy_from_start:message.Central_controller_statu_msg)
  478. if (&from == this) return;
  479. Clear();
  480. MergeFrom(from);
  481. }
  482. void Central_controller_statu_msg::CopyFrom(const Central_controller_statu_msg& from) {
  483. // @@protoc_insertion_point(class_specific_copy_from_start:message.Central_controller_statu_msg)
  484. if (&from == this) return;
  485. Clear();
  486. MergeFrom(from);
  487. }
  488. bool Central_controller_statu_msg::IsInitialized() const {
  489. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  490. if (has_base_info()) {
  491. if (!this->base_info_->IsInitialized()) return false;
  492. }
  493. return true;
  494. }
  495. void Central_controller_statu_msg::Swap(Central_controller_statu_msg* other) {
  496. if (other == this) return;
  497. InternalSwap(other);
  498. }
  499. void Central_controller_statu_msg::InternalSwap(Central_controller_statu_msg* other) {
  500. using std::swap;
  501. entrance_statu_vector_.InternalSwap(&other->entrance_statu_vector_);
  502. export_statu_vector_.InternalSwap(&other->export_statu_vector_);
  503. swap(base_info_, other->base_info_);
  504. swap(paused_, other->paused_);
  505. swap(_has_bits_[0], other->_has_bits_[0]);
  506. _internal_metadata_.Swap(&other->_internal_metadata_);
  507. swap(_cached_size_, other->_cached_size_);
  508. }
  509. ::google::protobuf::Metadata Central_controller_statu_msg::GetMetadata() const {
  510. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  511. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  512. }
  513. // @@protoc_insertion_point(namespace_scope)
  514. } // namespace message
  515. // @@protoc_insertion_point(global_scope)