process_message.pb.cc 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: process_message.proto
  3. #include "process_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 Entrance_statu_msg_StoreMsgMapEntry_DoNotUseDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse>
  23. _instance;
  24. } _Entrance_statu_msg_StoreMsgMapEntry_DoNotUse_default_instance_;
  25. class Entrance_statu_msg_PickupMsgMapEntry_DoNotUseDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse>
  28. _instance;
  29. } _Entrance_statu_msg_PickupMsgMapEntry_DoNotUse_default_instance_;
  30. class Entrance_statu_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Entrance_statu_msg>
  33. _instance;
  34. } _Entrance_statu_msg_default_instance_;
  35. } // namespace message
  36. namespace protobuf_process_5fmessage_2eproto {
  37. void InitDefaultsEntrance_statu_msg_StoreMsgMapEntry_DoNotUseImpl() {
  38. GOOGLE_PROTOBUF_VERIFY_VERSION;
  39. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  40. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  41. #else
  42. ::google::protobuf::internal::InitProtobufDefaults();
  43. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  44. {
  45. void* ptr = &::message::_Entrance_statu_msg_StoreMsgMapEntry_DoNotUse_default_instance_;
  46. new (ptr) ::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse();
  47. }
  48. ::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::InitAsDefaultInstance();
  49. }
  50. void InitDefaultsEntrance_statu_msg_StoreMsgMapEntry_DoNotUse() {
  51. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  52. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEntrance_statu_msg_StoreMsgMapEntry_DoNotUseImpl);
  53. }
  54. void InitDefaultsEntrance_statu_msg_PickupMsgMapEntry_DoNotUseImpl() {
  55. GOOGLE_PROTOBUF_VERIFY_VERSION;
  56. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  57. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  58. #else
  59. ::google::protobuf::internal::InitProtobufDefaults();
  60. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  61. {
  62. void* ptr = &::message::_Entrance_statu_msg_PickupMsgMapEntry_DoNotUse_default_instance_;
  63. new (ptr) ::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse();
  64. }
  65. ::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::InitAsDefaultInstance();
  66. }
  67. void InitDefaultsEntrance_statu_msg_PickupMsgMapEntry_DoNotUse() {
  68. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  69. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEntrance_statu_msg_PickupMsgMapEntry_DoNotUseImpl);
  70. }
  71. void InitDefaultsEntrance_statu_msgImpl() {
  72. GOOGLE_PROTOBUF_VERIFY_VERSION;
  73. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  74. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  75. #else
  76. ::google::protobuf::internal::InitProtobufDefaults();
  77. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  78. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  79. protobuf_process_5fmessage_2eproto::InitDefaultsEntrance_statu_msg_StoreMsgMapEntry_DoNotUse();
  80. protobuf_process_5fmessage_2eproto::InitDefaultsEntrance_statu_msg_PickupMsgMapEntry_DoNotUse();
  81. {
  82. void* ptr = &::message::_Entrance_statu_msg_default_instance_;
  83. new (ptr) ::message::Entrance_statu_msg();
  84. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  85. }
  86. ::message::Entrance_statu_msg::InitAsDefaultInstance();
  87. }
  88. void InitDefaultsEntrance_statu_msg() {
  89. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  90. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEntrance_statu_msgImpl);
  91. }
  92. ::google::protobuf::Metadata file_level_metadata[3];
  93. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  94. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse, _has_bits_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse, _internal_metadata_),
  97. ~0u, // no _extensions_
  98. ~0u, // no _oneof_case_
  99. ~0u, // no _weak_field_map_
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse, key_),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse, value_),
  102. 0,
  103. 1,
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse, _has_bits_),
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse, _internal_metadata_),
  106. ~0u, // no _extensions_
  107. ~0u, // no _oneof_case_
  108. ~0u, // no _weak_field_map_
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse, key_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse, value_),
  111. 0,
  112. 1,
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg, _has_bits_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg, _internal_metadata_),
  115. ~0u, // no _extensions_
  116. ~0u, // no _oneof_case_
  117. ~0u, // no _weak_field_map_
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg, base_info_),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg, store_msg_map_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu_msg, pickup_msg_map_),
  121. 0,
  122. ~0u,
  123. ~0u,
  124. };
  125. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  126. { 0, 7, sizeof(::message::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse)},
  127. { 9, 16, sizeof(::message::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse)},
  128. { 18, 26, sizeof(::message::Entrance_statu_msg)},
  129. };
  130. static ::google::protobuf::Message const * const file_default_instances[] = {
  131. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Entrance_statu_msg_StoreMsgMapEntry_DoNotUse_default_instance_),
  132. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Entrance_statu_msg_PickupMsgMapEntry_DoNotUse_default_instance_),
  133. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Entrance_statu_msg_default_instance_),
  134. };
  135. void protobuf_AssignDescriptors() {
  136. AddDescriptors();
  137. ::google::protobuf::MessageFactory* factory = NULL;
  138. AssignDescriptors(
  139. "process_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  140. file_level_metadata, file_level_enum_descriptors, NULL);
  141. }
  142. void protobuf_AssignDescriptorsOnce() {
  143. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  144. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  145. }
  146. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  147. void protobuf_RegisterTypes(const ::std::string&) {
  148. protobuf_AssignDescriptorsOnce();
  149. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  150. }
  151. void AddDescriptorsImpl() {
  152. InitDefaults();
  153. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  154. "\n\025process_message.proto\022\007message\032\022messag"
  155. "e_base.proto\"\342\002\n\022Entrance_statu_msg\022%\n\tb"
  156. "ase_info\030\001 \002(\0132\022.message.Base_info\022C\n\rst"
  157. "ore_msg_map\030\002 \003(\0132,.message.Entrance_sta"
  158. "tu_msg.StoreMsgMapEntry\022E\n\016pickup_msg_ma"
  159. "p\030\003 \003(\0132-.message.Entrance_statu_msg.Pic"
  160. "kupMsgMapEntry\032K\n\020StoreMsgMapEntry\022\013\n\003ke"
  161. "y\030\001 \001(\005\022&\n\005value\030\002 \001(\0162\027.message.Entranc"
  162. "e_statu:\0028\001\032L\n\021PickupMsgMapEntry\022\013\n\003key\030"
  163. "\001 \001(\005\022&\n\005value\030\002 \001(\0162\027.message.Entrance_"
  164. "statu:\0028\001**\n\016Entrance_statu\022\014\n\010eWorking\020"
  165. "\000\022\n\n\006eReady\020\001"
  166. };
  167. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  168. descriptor, 453);
  169. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  170. "process_message.proto", &protobuf_RegisterTypes);
  171. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  172. }
  173. void AddDescriptors() {
  174. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  175. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  176. }
  177. // Force AddDescriptors() to be called at dynamic initialization time.
  178. struct StaticDescriptorInitializer {
  179. StaticDescriptorInitializer() {
  180. AddDescriptors();
  181. }
  182. } static_descriptor_initializer;
  183. } // namespace protobuf_process_5fmessage_2eproto
  184. namespace message {
  185. const ::google::protobuf::EnumDescriptor* Entrance_statu_descriptor() {
  186. protobuf_process_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  187. return protobuf_process_5fmessage_2eproto::file_level_enum_descriptors[0];
  188. }
  189. bool Entrance_statu_IsValid(int value) {
  190. switch (value) {
  191. case 0:
  192. case 1:
  193. return true;
  194. default:
  195. return false;
  196. }
  197. }
  198. // ===================================================================
  199. Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse() {}
  200. Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::Entrance_statu_msg_StoreMsgMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  201. void Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::MergeFrom(const Entrance_statu_msg_StoreMsgMapEntry_DoNotUse& other) {
  202. MergeFromInternal(other);
  203. }
  204. ::google::protobuf::Metadata Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::GetMetadata() const {
  205. ::protobuf_process_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  206. return ::protobuf_process_5fmessage_2eproto::file_level_metadata[0];
  207. }
  208. void Entrance_statu_msg_StoreMsgMapEntry_DoNotUse::MergeFrom(
  209. const ::google::protobuf::Message& other) {
  210. ::google::protobuf::Message::MergeFrom(other);
  211. }
  212. // ===================================================================
  213. Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse() {}
  214. Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::Entrance_statu_msg_PickupMsgMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  215. void Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::MergeFrom(const Entrance_statu_msg_PickupMsgMapEntry_DoNotUse& other) {
  216. MergeFromInternal(other);
  217. }
  218. ::google::protobuf::Metadata Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::GetMetadata() const {
  219. ::protobuf_process_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  220. return ::protobuf_process_5fmessage_2eproto::file_level_metadata[1];
  221. }
  222. void Entrance_statu_msg_PickupMsgMapEntry_DoNotUse::MergeFrom(
  223. const ::google::protobuf::Message& other) {
  224. ::google::protobuf::Message::MergeFrom(other);
  225. }
  226. // ===================================================================
  227. void Entrance_statu_msg::InitAsDefaultInstance() {
  228. ::message::_Entrance_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  229. ::message::Base_info::internal_default_instance());
  230. }
  231. void Entrance_statu_msg::clear_base_info() {
  232. if (base_info_ != NULL) base_info_->Clear();
  233. clear_has_base_info();
  234. }
  235. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  236. const int Entrance_statu_msg::kBaseInfoFieldNumber;
  237. const int Entrance_statu_msg::kStoreMsgMapFieldNumber;
  238. const int Entrance_statu_msg::kPickupMsgMapFieldNumber;
  239. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  240. Entrance_statu_msg::Entrance_statu_msg()
  241. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  242. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  243. ::protobuf_process_5fmessage_2eproto::InitDefaultsEntrance_statu_msg();
  244. }
  245. SharedCtor();
  246. // @@protoc_insertion_point(constructor:message.Entrance_statu_msg)
  247. }
  248. Entrance_statu_msg::Entrance_statu_msg(const Entrance_statu_msg& from)
  249. : ::google::protobuf::Message(),
  250. _internal_metadata_(NULL),
  251. _has_bits_(from._has_bits_),
  252. _cached_size_(0) {
  253. _internal_metadata_.MergeFrom(from._internal_metadata_);
  254. store_msg_map_.MergeFrom(from.store_msg_map_);
  255. pickup_msg_map_.MergeFrom(from.pickup_msg_map_);
  256. if (from.has_base_info()) {
  257. base_info_ = new ::message::Base_info(*from.base_info_);
  258. } else {
  259. base_info_ = NULL;
  260. }
  261. // @@protoc_insertion_point(copy_constructor:message.Entrance_statu_msg)
  262. }
  263. void Entrance_statu_msg::SharedCtor() {
  264. _cached_size_ = 0;
  265. base_info_ = NULL;
  266. }
  267. Entrance_statu_msg::~Entrance_statu_msg() {
  268. // @@protoc_insertion_point(destructor:message.Entrance_statu_msg)
  269. SharedDtor();
  270. }
  271. void Entrance_statu_msg::SharedDtor() {
  272. if (this != internal_default_instance()) delete base_info_;
  273. }
  274. void Entrance_statu_msg::SetCachedSize(int size) const {
  275. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  276. _cached_size_ = size;
  277. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  278. }
  279. const ::google::protobuf::Descriptor* Entrance_statu_msg::descriptor() {
  280. ::protobuf_process_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  281. return ::protobuf_process_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  282. }
  283. const Entrance_statu_msg& Entrance_statu_msg::default_instance() {
  284. ::protobuf_process_5fmessage_2eproto::InitDefaultsEntrance_statu_msg();
  285. return *internal_default_instance();
  286. }
  287. Entrance_statu_msg* Entrance_statu_msg::New(::google::protobuf::Arena* arena) const {
  288. Entrance_statu_msg* n = new Entrance_statu_msg;
  289. if (arena != NULL) {
  290. arena->Own(n);
  291. }
  292. return n;
  293. }
  294. void Entrance_statu_msg::Clear() {
  295. // @@protoc_insertion_point(message_clear_start:message.Entrance_statu_msg)
  296. ::google::protobuf::uint32 cached_has_bits = 0;
  297. // Prevent compiler warnings about cached_has_bits being unused
  298. (void) cached_has_bits;
  299. store_msg_map_.Clear();
  300. pickup_msg_map_.Clear();
  301. cached_has_bits = _has_bits_[0];
  302. if (cached_has_bits & 0x00000001u) {
  303. GOOGLE_DCHECK(base_info_ != NULL);
  304. base_info_->Clear();
  305. }
  306. _has_bits_.Clear();
  307. _internal_metadata_.Clear();
  308. }
  309. bool Entrance_statu_msg::MergePartialFromCodedStream(
  310. ::google::protobuf::io::CodedInputStream* input) {
  311. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  312. ::google::protobuf::uint32 tag;
  313. // @@protoc_insertion_point(parse_start:message.Entrance_statu_msg)
  314. for (;;) {
  315. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  316. tag = p.first;
  317. if (!p.second) goto handle_unusual;
  318. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  319. // required .message.Base_info base_info = 1;
  320. case 1: {
  321. if (static_cast< ::google::protobuf::uint8>(tag) ==
  322. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  323. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  324. input, mutable_base_info()));
  325. } else {
  326. goto handle_unusual;
  327. }
  328. break;
  329. }
  330. // map<int32, .message.Entrance_statu> store_msg_map = 2;
  331. case 2: {
  332. if (static_cast< ::google::protobuf::uint8>(tag) ==
  333. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  334. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry(store_msg_map_.NewEntry());
  335. {
  336. ::std::string data;
  337. DO_(::google::protobuf::internal::WireFormatLite::ReadString(input, &data));
  338. DO_(entry->ParseFromString(data));
  339. if (::message::Entrance_statu_IsValid(*entry->mutable_value())) {
  340. (*mutable_store_msg_map())[entry->key()] =
  341. static_cast< ::message::Entrance_statu >(*entry->mutable_value());
  342. } else {
  343. mutable_unknown_fields()->AddLengthDelimited(2, data);
  344. }
  345. }
  346. } else {
  347. goto handle_unusual;
  348. }
  349. break;
  350. }
  351. // map<int32, .message.Entrance_statu> pickup_msg_map = 3;
  352. case 3: {
  353. if (static_cast< ::google::protobuf::uint8>(tag) ==
  354. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  355. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry(pickup_msg_map_.NewEntry());
  356. {
  357. ::std::string data;
  358. DO_(::google::protobuf::internal::WireFormatLite::ReadString(input, &data));
  359. DO_(entry->ParseFromString(data));
  360. if (::message::Entrance_statu_IsValid(*entry->mutable_value())) {
  361. (*mutable_pickup_msg_map())[entry->key()] =
  362. static_cast< ::message::Entrance_statu >(*entry->mutable_value());
  363. } else {
  364. mutable_unknown_fields()->AddLengthDelimited(3, data);
  365. }
  366. }
  367. } else {
  368. goto handle_unusual;
  369. }
  370. break;
  371. }
  372. default: {
  373. handle_unusual:
  374. if (tag == 0) {
  375. goto success;
  376. }
  377. DO_(::google::protobuf::internal::WireFormat::SkipField(
  378. input, tag, _internal_metadata_.mutable_unknown_fields()));
  379. break;
  380. }
  381. }
  382. }
  383. success:
  384. // @@protoc_insertion_point(parse_success:message.Entrance_statu_msg)
  385. return true;
  386. failure:
  387. // @@protoc_insertion_point(parse_failure:message.Entrance_statu_msg)
  388. return false;
  389. #undef DO_
  390. }
  391. void Entrance_statu_msg::SerializeWithCachedSizes(
  392. ::google::protobuf::io::CodedOutputStream* output) const {
  393. // @@protoc_insertion_point(serialize_start:message.Entrance_statu_msg)
  394. ::google::protobuf::uint32 cached_has_bits = 0;
  395. (void) cached_has_bits;
  396. cached_has_bits = _has_bits_[0];
  397. // required .message.Base_info base_info = 1;
  398. if (cached_has_bits & 0x00000001u) {
  399. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  400. 1, *this->base_info_, output);
  401. }
  402. // map<int32, .message.Entrance_statu> store_msg_map = 2;
  403. if (!this->store_msg_map().empty()) {
  404. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_pointer
  405. ConstPtr;
  406. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  407. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  408. if (output->IsSerializationDeterministic() &&
  409. this->store_msg_map().size() > 1) {
  410. ::google::protobuf::scoped_array<SortItem> items(
  411. new SortItem[this->store_msg_map().size()]);
  412. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::size_type size_type;
  413. size_type n = 0;
  414. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  415. it = this->store_msg_map().begin();
  416. it != this->store_msg_map().end(); ++it, ++n) {
  417. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  418. }
  419. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  420. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry;
  421. for (size_type i = 0; i < n; i++) {
  422. entry.reset(store_msg_map_.NewEnumEntryWrapper(
  423. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  424. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  425. 2, *entry, output);
  426. }
  427. } else {
  428. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry;
  429. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  430. it = this->store_msg_map().begin();
  431. it != this->store_msg_map().end(); ++it) {
  432. entry.reset(store_msg_map_.NewEnumEntryWrapper(
  433. it->first, it->second));
  434. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  435. 2, *entry, output);
  436. }
  437. }
  438. }
  439. // map<int32, .message.Entrance_statu> pickup_msg_map = 3;
  440. if (!this->pickup_msg_map().empty()) {
  441. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_pointer
  442. ConstPtr;
  443. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  444. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  445. if (output->IsSerializationDeterministic() &&
  446. this->pickup_msg_map().size() > 1) {
  447. ::google::protobuf::scoped_array<SortItem> items(
  448. new SortItem[this->pickup_msg_map().size()]);
  449. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::size_type size_type;
  450. size_type n = 0;
  451. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  452. it = this->pickup_msg_map().begin();
  453. it != this->pickup_msg_map().end(); ++it, ++n) {
  454. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  455. }
  456. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  457. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry;
  458. for (size_type i = 0; i < n; i++) {
  459. entry.reset(pickup_msg_map_.NewEnumEntryWrapper(
  460. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  461. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  462. 3, *entry, output);
  463. }
  464. } else {
  465. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry;
  466. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  467. it = this->pickup_msg_map().begin();
  468. it != this->pickup_msg_map().end(); ++it) {
  469. entry.reset(pickup_msg_map_.NewEnumEntryWrapper(
  470. it->first, it->second));
  471. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  472. 3, *entry, output);
  473. }
  474. }
  475. }
  476. if (_internal_metadata_.have_unknown_fields()) {
  477. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  478. _internal_metadata_.unknown_fields(), output);
  479. }
  480. // @@protoc_insertion_point(serialize_end:message.Entrance_statu_msg)
  481. }
  482. ::google::protobuf::uint8* Entrance_statu_msg::InternalSerializeWithCachedSizesToArray(
  483. bool deterministic, ::google::protobuf::uint8* target) const {
  484. (void)deterministic; // Unused
  485. // @@protoc_insertion_point(serialize_to_array_start:message.Entrance_statu_msg)
  486. ::google::protobuf::uint32 cached_has_bits = 0;
  487. (void) cached_has_bits;
  488. cached_has_bits = _has_bits_[0];
  489. // required .message.Base_info base_info = 1;
  490. if (cached_has_bits & 0x00000001u) {
  491. target = ::google::protobuf::internal::WireFormatLite::
  492. InternalWriteMessageToArray(
  493. 1, *this->base_info_, deterministic, target);
  494. }
  495. // map<int32, .message.Entrance_statu> store_msg_map = 2;
  496. if (!this->store_msg_map().empty()) {
  497. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_pointer
  498. ConstPtr;
  499. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  500. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  501. if (deterministic &&
  502. this->store_msg_map().size() > 1) {
  503. ::google::protobuf::scoped_array<SortItem> items(
  504. new SortItem[this->store_msg_map().size()]);
  505. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::size_type size_type;
  506. size_type n = 0;
  507. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  508. it = this->store_msg_map().begin();
  509. it != this->store_msg_map().end(); ++it, ++n) {
  510. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  511. }
  512. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  513. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry;
  514. for (size_type i = 0; i < n; i++) {
  515. entry.reset(store_msg_map_.NewEnumEntryWrapper(
  516. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  517. target = ::google::protobuf::internal::WireFormatLite::
  518. InternalWriteMessageNoVirtualToArray(
  519. 2, *entry, deterministic, target);
  520. ;
  521. }
  522. } else {
  523. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry;
  524. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  525. it = this->store_msg_map().begin();
  526. it != this->store_msg_map().end(); ++it) {
  527. entry.reset(store_msg_map_.NewEnumEntryWrapper(
  528. it->first, it->second));
  529. target = ::google::protobuf::internal::WireFormatLite::
  530. InternalWriteMessageNoVirtualToArray(
  531. 2, *entry, deterministic, target);
  532. ;
  533. }
  534. }
  535. }
  536. // map<int32, .message.Entrance_statu> pickup_msg_map = 3;
  537. if (!this->pickup_msg_map().empty()) {
  538. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_pointer
  539. ConstPtr;
  540. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  541. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  542. if (deterministic &&
  543. this->pickup_msg_map().size() > 1) {
  544. ::google::protobuf::scoped_array<SortItem> items(
  545. new SortItem[this->pickup_msg_map().size()]);
  546. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::size_type size_type;
  547. size_type n = 0;
  548. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  549. it = this->pickup_msg_map().begin();
  550. it != this->pickup_msg_map().end(); ++it, ++n) {
  551. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  552. }
  553. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  554. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry;
  555. for (size_type i = 0; i < n; i++) {
  556. entry.reset(pickup_msg_map_.NewEnumEntryWrapper(
  557. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  558. target = ::google::protobuf::internal::WireFormatLite::
  559. InternalWriteMessageNoVirtualToArray(
  560. 3, *entry, deterministic, target);
  561. ;
  562. }
  563. } else {
  564. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry;
  565. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  566. it = this->pickup_msg_map().begin();
  567. it != this->pickup_msg_map().end(); ++it) {
  568. entry.reset(pickup_msg_map_.NewEnumEntryWrapper(
  569. it->first, it->second));
  570. target = ::google::protobuf::internal::WireFormatLite::
  571. InternalWriteMessageNoVirtualToArray(
  572. 3, *entry, deterministic, target);
  573. ;
  574. }
  575. }
  576. }
  577. if (_internal_metadata_.have_unknown_fields()) {
  578. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  579. _internal_metadata_.unknown_fields(), target);
  580. }
  581. // @@protoc_insertion_point(serialize_to_array_end:message.Entrance_statu_msg)
  582. return target;
  583. }
  584. size_t Entrance_statu_msg::ByteSizeLong() const {
  585. // @@protoc_insertion_point(message_byte_size_start:message.Entrance_statu_msg)
  586. size_t total_size = 0;
  587. if (_internal_metadata_.have_unknown_fields()) {
  588. total_size +=
  589. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  590. _internal_metadata_.unknown_fields());
  591. }
  592. // required .message.Base_info base_info = 1;
  593. if (has_base_info()) {
  594. total_size += 1 +
  595. ::google::protobuf::internal::WireFormatLite::MessageSize(
  596. *this->base_info_);
  597. }
  598. // map<int32, .message.Entrance_statu> store_msg_map = 2;
  599. total_size += 1 *
  600. ::google::protobuf::internal::FromIntSize(this->store_msg_map_size());
  601. {
  602. ::google::protobuf::scoped_ptr<Entrance_statu_msg_StoreMsgMapEntry_DoNotUse> entry;
  603. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  604. it = this->store_msg_map().begin();
  605. it != this->store_msg_map().end(); ++it) {
  606. entry.reset(store_msg_map_.NewEnumEntryWrapper(it->first, it->second));
  607. total_size += ::google::protobuf::internal::WireFormatLite::
  608. MessageSizeNoVirtual(*entry);
  609. }
  610. }
  611. // map<int32, .message.Entrance_statu> pickup_msg_map = 3;
  612. total_size += 1 *
  613. ::google::protobuf::internal::FromIntSize(this->pickup_msg_map_size());
  614. {
  615. ::google::protobuf::scoped_ptr<Entrance_statu_msg_PickupMsgMapEntry_DoNotUse> entry;
  616. for (::google::protobuf::Map< ::google::protobuf::int32, ::message::Entrance_statu >::const_iterator
  617. it = this->pickup_msg_map().begin();
  618. it != this->pickup_msg_map().end(); ++it) {
  619. entry.reset(pickup_msg_map_.NewEnumEntryWrapper(it->first, it->second));
  620. total_size += ::google::protobuf::internal::WireFormatLite::
  621. MessageSizeNoVirtual(*entry);
  622. }
  623. }
  624. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  625. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  626. _cached_size_ = cached_size;
  627. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  628. return total_size;
  629. }
  630. void Entrance_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
  631. // @@protoc_insertion_point(generalized_merge_from_start:message.Entrance_statu_msg)
  632. GOOGLE_DCHECK_NE(&from, this);
  633. const Entrance_statu_msg* source =
  634. ::google::protobuf::internal::DynamicCastToGenerated<const Entrance_statu_msg>(
  635. &from);
  636. if (source == NULL) {
  637. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Entrance_statu_msg)
  638. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  639. } else {
  640. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Entrance_statu_msg)
  641. MergeFrom(*source);
  642. }
  643. }
  644. void Entrance_statu_msg::MergeFrom(const Entrance_statu_msg& from) {
  645. // @@protoc_insertion_point(class_specific_merge_from_start:message.Entrance_statu_msg)
  646. GOOGLE_DCHECK_NE(&from, this);
  647. _internal_metadata_.MergeFrom(from._internal_metadata_);
  648. ::google::protobuf::uint32 cached_has_bits = 0;
  649. (void) cached_has_bits;
  650. store_msg_map_.MergeFrom(from.store_msg_map_);
  651. pickup_msg_map_.MergeFrom(from.pickup_msg_map_);
  652. if (from.has_base_info()) {
  653. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  654. }
  655. }
  656. void Entrance_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
  657. // @@protoc_insertion_point(generalized_copy_from_start:message.Entrance_statu_msg)
  658. if (&from == this) return;
  659. Clear();
  660. MergeFrom(from);
  661. }
  662. void Entrance_statu_msg::CopyFrom(const Entrance_statu_msg& from) {
  663. // @@protoc_insertion_point(class_specific_copy_from_start:message.Entrance_statu_msg)
  664. if (&from == this) return;
  665. Clear();
  666. MergeFrom(from);
  667. }
  668. bool Entrance_statu_msg::IsInitialized() const {
  669. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  670. if (has_base_info()) {
  671. if (!this->base_info_->IsInitialized()) return false;
  672. }
  673. return true;
  674. }
  675. void Entrance_statu_msg::Swap(Entrance_statu_msg* other) {
  676. if (other == this) return;
  677. InternalSwap(other);
  678. }
  679. void Entrance_statu_msg::InternalSwap(Entrance_statu_msg* other) {
  680. using std::swap;
  681. store_msg_map_.Swap(&other->store_msg_map_);
  682. pickup_msg_map_.Swap(&other->pickup_msg_map_);
  683. swap(base_info_, other->base_info_);
  684. swap(_has_bits_[0], other->_has_bits_[0]);
  685. _internal_metadata_.Swap(&other->_internal_metadata_);
  686. swap(_cached_size_, other->_cached_size_);
  687. }
  688. ::google::protobuf::Metadata Entrance_statu_msg::GetMetadata() const {
  689. protobuf_process_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  690. return ::protobuf_process_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  691. }
  692. // @@protoc_insertion_point(namespace_scope)
  693. } // namespace message
  694. // @@protoc_insertion_point(global_scope)