notify_message.pb.cc 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: notify_message.proto
  3. #include "notify_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 Notify_request_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Notify_request_msg>
  23. _instance;
  24. } _Notify_request_msg_default_instance_;
  25. class Notify_response_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Notify_response_msg>
  28. _instance;
  29. } _Notify_response_msg_default_instance_;
  30. class Notify_status_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Notify_status_msg>
  33. _instance;
  34. } _Notify_status_msg_default_instance_;
  35. } // namespace message
  36. namespace protobuf_notify_5fmessage_2eproto {
  37. void InitDefaultsNotify_request_msgImpl() {
  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. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  45. protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
  46. protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
  47. {
  48. void* ptr = &::message::_Notify_request_msg_default_instance_;
  49. new (ptr) ::message::Notify_request_msg();
  50. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  51. }
  52. ::message::Notify_request_msg::InitAsDefaultInstance();
  53. }
  54. void InitDefaultsNotify_request_msg() {
  55. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  56. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_request_msgImpl);
  57. }
  58. void InitDefaultsNotify_response_msgImpl() {
  59. GOOGLE_PROTOBUF_VERIFY_VERSION;
  60. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  61. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  62. #else
  63. ::google::protobuf::internal::InitProtobufDefaults();
  64. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  65. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  66. protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
  67. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  68. {
  69. void* ptr = &::message::_Notify_response_msg_default_instance_;
  70. new (ptr) ::message::Notify_response_msg();
  71. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  72. }
  73. ::message::Notify_response_msg::InitAsDefaultInstance();
  74. }
  75. void InitDefaultsNotify_response_msg() {
  76. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  77. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_response_msgImpl);
  78. }
  79. void InitDefaultsNotify_status_msgImpl() {
  80. GOOGLE_PROTOBUF_VERIFY_VERSION;
  81. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  82. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  83. #else
  84. ::google::protobuf::internal::InitProtobufDefaults();
  85. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  86. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  87. protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
  88. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  89. protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
  90. {
  91. void* ptr = &::message::_Notify_status_msg_default_instance_;
  92. new (ptr) ::message::Notify_status_msg();
  93. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  94. }
  95. ::message::Notify_status_msg::InitAsDefaultInstance();
  96. }
  97. void InitDefaultsNotify_status_msg() {
  98. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  99. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_status_msgImpl);
  100. }
  101. ::google::protobuf::Metadata file_level_metadata[3];
  102. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, _has_bits_),
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, _internal_metadata_),
  105. ~0u, // no _extensions_
  106. ~0u, // no _oneof_case_
  107. ~0u, // no _weak_field_map_
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, base_info_),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, command_key_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, id_struct_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, car_info_),
  112. 1,
  113. 0,
  114. 2,
  115. 3,
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, _has_bits_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, _internal_metadata_),
  118. ~0u, // no _extensions_
  119. ~0u, // no _oneof_case_
  120. ~0u, // no _weak_field_map_
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, base_info_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, command_key_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, id_struct_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, code_),
  125. 1,
  126. 0,
  127. 2,
  128. 3,
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, _has_bits_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, _internal_metadata_),
  131. ~0u, // no _extensions_
  132. ~0u, // no _oneof_case_
  133. ~0u, // no _weak_field_map_
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, base_info_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, id_struct_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, error_manager_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, singlechipdata_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, singlechip_validity_),
  139. 0,
  140. 1,
  141. 2,
  142. 3,
  143. 4,
  144. };
  145. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  146. { 0, 9, sizeof(::message::Notify_request_msg)},
  147. { 13, 22, sizeof(::message::Notify_response_msg)},
  148. { 26, 36, sizeof(::message::Notify_status_msg)},
  149. };
  150. static ::google::protobuf::Message const * const file_default_instances[] = {
  151. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Notify_request_msg_default_instance_),
  152. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Notify_response_msg_default_instance_),
  153. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Notify_status_msg_default_instance_),
  154. };
  155. void protobuf_AssignDescriptors() {
  156. AddDescriptors();
  157. ::google::protobuf::MessageFactory* factory = NULL;
  158. AssignDescriptors(
  159. "notify_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  160. file_level_metadata, NULL, NULL);
  161. }
  162. void protobuf_AssignDescriptorsOnce() {
  163. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  164. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  165. }
  166. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  167. void protobuf_RegisterTypes(const ::std::string&) {
  168. protobuf_AssignDescriptorsOnce();
  169. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  170. }
  171. void AddDescriptorsImpl() {
  172. InitDefaults();
  173. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  174. "\n\024notify_message.proto\022\007message\032\022message"
  175. "_base.proto\032\024singlechip_msg.proto\"\234\001\n\022No"
  176. "tify_request_msg\022%\n\tbase_info\030\001 \002(\0132\022.me"
  177. "ssage.Base_info\022\023\n\013command_key\030\002 \002(\t\022%\n\t"
  178. "id_struct\030\003 \002(\0132\022.message.Id_struct\022#\n\010c"
  179. "ar_info\030\004 \002(\0132\021.message.Car_info\"\236\001\n\023Not"
  180. "ify_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.me"
  181. "ssage.Base_info\022\023\n\013command_key\030\002 \002(\t\022%\n\t"
  182. "id_struct\030\003 \002(\0132\022.message.Id_struct\022$\n\004c"
  183. "ode\030\004 \002(\0132\026.message.Error_manager\"\337\001\n\021No"
  184. "tify_status_msg\022%\n\tbase_info\030\001 \002(\0132\022.mes"
  185. "sage.Base_info\022%\n\tid_struct\030\002 \002(\0132\022.mess"
  186. "age.Id_struct\022-\n\rerror_manager\030\003 \002(\0132\026.m"
  187. "essage.Error_manager\0220\n\016singlechipData\030\004"
  188. " \001(\0132\030.message.Singlechip_data\022\033\n\023single"
  189. "chip_validity\030\005 \001(\010"
  190. };
  191. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  192. descriptor, 619);
  193. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  194. "notify_message.proto", &protobuf_RegisterTypes);
  195. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  196. ::protobuf_singlechip_5fmsg_2eproto::AddDescriptors();
  197. }
  198. void AddDescriptors() {
  199. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  200. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  201. }
  202. // Force AddDescriptors() to be called at dynamic initialization time.
  203. struct StaticDescriptorInitializer {
  204. StaticDescriptorInitializer() {
  205. AddDescriptors();
  206. }
  207. } static_descriptor_initializer;
  208. } // namespace protobuf_notify_5fmessage_2eproto
  209. namespace message {
  210. // ===================================================================
  211. void Notify_request_msg::InitAsDefaultInstance() {
  212. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  213. ::message::Base_info::internal_default_instance());
  214. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  215. ::message::Id_struct::internal_default_instance());
  216. ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  217. ::message::Car_info::internal_default_instance());
  218. }
  219. void Notify_request_msg::clear_base_info() {
  220. if (base_info_ != NULL) base_info_->Clear();
  221. clear_has_base_info();
  222. }
  223. void Notify_request_msg::clear_id_struct() {
  224. if (id_struct_ != NULL) id_struct_->Clear();
  225. clear_has_id_struct();
  226. }
  227. void Notify_request_msg::clear_car_info() {
  228. if (car_info_ != NULL) car_info_->Clear();
  229. clear_has_car_info();
  230. }
  231. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  232. const int Notify_request_msg::kBaseInfoFieldNumber;
  233. const int Notify_request_msg::kCommandKeyFieldNumber;
  234. const int Notify_request_msg::kIdStructFieldNumber;
  235. const int Notify_request_msg::kCarInfoFieldNumber;
  236. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  237. Notify_request_msg::Notify_request_msg()
  238. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  239. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  240. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_request_msg();
  241. }
  242. SharedCtor();
  243. // @@protoc_insertion_point(constructor:message.Notify_request_msg)
  244. }
  245. Notify_request_msg::Notify_request_msg(const Notify_request_msg& from)
  246. : ::google::protobuf::Message(),
  247. _internal_metadata_(NULL),
  248. _has_bits_(from._has_bits_),
  249. _cached_size_(0) {
  250. _internal_metadata_.MergeFrom(from._internal_metadata_);
  251. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  252. if (from.has_command_key()) {
  253. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  254. }
  255. if (from.has_base_info()) {
  256. base_info_ = new ::message::Base_info(*from.base_info_);
  257. } else {
  258. base_info_ = NULL;
  259. }
  260. if (from.has_id_struct()) {
  261. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  262. } else {
  263. id_struct_ = NULL;
  264. }
  265. if (from.has_car_info()) {
  266. car_info_ = new ::message::Car_info(*from.car_info_);
  267. } else {
  268. car_info_ = NULL;
  269. }
  270. // @@protoc_insertion_point(copy_constructor:message.Notify_request_msg)
  271. }
  272. void Notify_request_msg::SharedCtor() {
  273. _cached_size_ = 0;
  274. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  275. ::memset(&base_info_, 0, static_cast<size_t>(
  276. reinterpret_cast<char*>(&car_info_) -
  277. reinterpret_cast<char*>(&base_info_)) + sizeof(car_info_));
  278. }
  279. Notify_request_msg::~Notify_request_msg() {
  280. // @@protoc_insertion_point(destructor:message.Notify_request_msg)
  281. SharedDtor();
  282. }
  283. void Notify_request_msg::SharedDtor() {
  284. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  285. if (this != internal_default_instance()) delete base_info_;
  286. if (this != internal_default_instance()) delete id_struct_;
  287. if (this != internal_default_instance()) delete car_info_;
  288. }
  289. void Notify_request_msg::SetCachedSize(int size) const {
  290. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  291. _cached_size_ = size;
  292. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  293. }
  294. const ::google::protobuf::Descriptor* Notify_request_msg::descriptor() {
  295. ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  296. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  297. }
  298. const Notify_request_msg& Notify_request_msg::default_instance() {
  299. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_request_msg();
  300. return *internal_default_instance();
  301. }
  302. Notify_request_msg* Notify_request_msg::New(::google::protobuf::Arena* arena) const {
  303. Notify_request_msg* n = new Notify_request_msg;
  304. if (arena != NULL) {
  305. arena->Own(n);
  306. }
  307. return n;
  308. }
  309. void Notify_request_msg::Clear() {
  310. // @@protoc_insertion_point(message_clear_start:message.Notify_request_msg)
  311. ::google::protobuf::uint32 cached_has_bits = 0;
  312. // Prevent compiler warnings about cached_has_bits being unused
  313. (void) cached_has_bits;
  314. cached_has_bits = _has_bits_[0];
  315. if (cached_has_bits & 15u) {
  316. if (cached_has_bits & 0x00000001u) {
  317. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  318. (*command_key_.UnsafeRawStringPointer())->clear();
  319. }
  320. if (cached_has_bits & 0x00000002u) {
  321. GOOGLE_DCHECK(base_info_ != NULL);
  322. base_info_->Clear();
  323. }
  324. if (cached_has_bits & 0x00000004u) {
  325. GOOGLE_DCHECK(id_struct_ != NULL);
  326. id_struct_->Clear();
  327. }
  328. if (cached_has_bits & 0x00000008u) {
  329. GOOGLE_DCHECK(car_info_ != NULL);
  330. car_info_->Clear();
  331. }
  332. }
  333. _has_bits_.Clear();
  334. _internal_metadata_.Clear();
  335. }
  336. bool Notify_request_msg::MergePartialFromCodedStream(
  337. ::google::protobuf::io::CodedInputStream* input) {
  338. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  339. ::google::protobuf::uint32 tag;
  340. // @@protoc_insertion_point(parse_start:message.Notify_request_msg)
  341. for (;;) {
  342. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  343. tag = p.first;
  344. if (!p.second) goto handle_unusual;
  345. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  346. // required .message.Base_info base_info = 1;
  347. case 1: {
  348. if (static_cast< ::google::protobuf::uint8>(tag) ==
  349. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  350. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  351. input, mutable_base_info()));
  352. } else {
  353. goto handle_unusual;
  354. }
  355. break;
  356. }
  357. // required string command_key = 2;
  358. case 2: {
  359. if (static_cast< ::google::protobuf::uint8>(tag) ==
  360. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  361. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  362. input, this->mutable_command_key()));
  363. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  364. this->command_key().data(), static_cast<int>(this->command_key().length()),
  365. ::google::protobuf::internal::WireFormat::PARSE,
  366. "message.Notify_request_msg.command_key");
  367. } else {
  368. goto handle_unusual;
  369. }
  370. break;
  371. }
  372. // required .message.Id_struct id_struct = 3;
  373. case 3: {
  374. if (static_cast< ::google::protobuf::uint8>(tag) ==
  375. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  376. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  377. input, mutable_id_struct()));
  378. } else {
  379. goto handle_unusual;
  380. }
  381. break;
  382. }
  383. // required .message.Car_info car_info = 4;
  384. case 4: {
  385. if (static_cast< ::google::protobuf::uint8>(tag) ==
  386. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  387. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  388. input, mutable_car_info()));
  389. } else {
  390. goto handle_unusual;
  391. }
  392. break;
  393. }
  394. default: {
  395. handle_unusual:
  396. if (tag == 0) {
  397. goto success;
  398. }
  399. DO_(::google::protobuf::internal::WireFormat::SkipField(
  400. input, tag, _internal_metadata_.mutable_unknown_fields()));
  401. break;
  402. }
  403. }
  404. }
  405. success:
  406. // @@protoc_insertion_point(parse_success:message.Notify_request_msg)
  407. return true;
  408. failure:
  409. // @@protoc_insertion_point(parse_failure:message.Notify_request_msg)
  410. return false;
  411. #undef DO_
  412. }
  413. void Notify_request_msg::SerializeWithCachedSizes(
  414. ::google::protobuf::io::CodedOutputStream* output) const {
  415. // @@protoc_insertion_point(serialize_start:message.Notify_request_msg)
  416. ::google::protobuf::uint32 cached_has_bits = 0;
  417. (void) cached_has_bits;
  418. cached_has_bits = _has_bits_[0];
  419. // required .message.Base_info base_info = 1;
  420. if (cached_has_bits & 0x00000002u) {
  421. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  422. 1, *this->base_info_, output);
  423. }
  424. // required string command_key = 2;
  425. if (cached_has_bits & 0x00000001u) {
  426. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  427. this->command_key().data(), static_cast<int>(this->command_key().length()),
  428. ::google::protobuf::internal::WireFormat::SERIALIZE,
  429. "message.Notify_request_msg.command_key");
  430. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  431. 2, this->command_key(), output);
  432. }
  433. // required .message.Id_struct id_struct = 3;
  434. if (cached_has_bits & 0x00000004u) {
  435. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  436. 3, *this->id_struct_, output);
  437. }
  438. // required .message.Car_info car_info = 4;
  439. if (cached_has_bits & 0x00000008u) {
  440. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  441. 4, *this->car_info_, output);
  442. }
  443. if (_internal_metadata_.have_unknown_fields()) {
  444. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  445. _internal_metadata_.unknown_fields(), output);
  446. }
  447. // @@protoc_insertion_point(serialize_end:message.Notify_request_msg)
  448. }
  449. ::google::protobuf::uint8* Notify_request_msg::InternalSerializeWithCachedSizesToArray(
  450. bool deterministic, ::google::protobuf::uint8* target) const {
  451. (void)deterministic; // Unused
  452. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_request_msg)
  453. ::google::protobuf::uint32 cached_has_bits = 0;
  454. (void) cached_has_bits;
  455. cached_has_bits = _has_bits_[0];
  456. // required .message.Base_info base_info = 1;
  457. if (cached_has_bits & 0x00000002u) {
  458. target = ::google::protobuf::internal::WireFormatLite::
  459. InternalWriteMessageToArray(
  460. 1, *this->base_info_, deterministic, target);
  461. }
  462. // required string command_key = 2;
  463. if (cached_has_bits & 0x00000001u) {
  464. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  465. this->command_key().data(), static_cast<int>(this->command_key().length()),
  466. ::google::protobuf::internal::WireFormat::SERIALIZE,
  467. "message.Notify_request_msg.command_key");
  468. target =
  469. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  470. 2, this->command_key(), target);
  471. }
  472. // required .message.Id_struct id_struct = 3;
  473. if (cached_has_bits & 0x00000004u) {
  474. target = ::google::protobuf::internal::WireFormatLite::
  475. InternalWriteMessageToArray(
  476. 3, *this->id_struct_, deterministic, target);
  477. }
  478. // required .message.Car_info car_info = 4;
  479. if (cached_has_bits & 0x00000008u) {
  480. target = ::google::protobuf::internal::WireFormatLite::
  481. InternalWriteMessageToArray(
  482. 4, *this->car_info_, deterministic, target);
  483. }
  484. if (_internal_metadata_.have_unknown_fields()) {
  485. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  486. _internal_metadata_.unknown_fields(), target);
  487. }
  488. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_request_msg)
  489. return target;
  490. }
  491. size_t Notify_request_msg::RequiredFieldsByteSizeFallback() const {
  492. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_request_msg)
  493. size_t total_size = 0;
  494. if (has_command_key()) {
  495. // required string command_key = 2;
  496. total_size += 1 +
  497. ::google::protobuf::internal::WireFormatLite::StringSize(
  498. this->command_key());
  499. }
  500. if (has_base_info()) {
  501. // required .message.Base_info base_info = 1;
  502. total_size += 1 +
  503. ::google::protobuf::internal::WireFormatLite::MessageSize(
  504. *this->base_info_);
  505. }
  506. if (has_id_struct()) {
  507. // required .message.Id_struct id_struct = 3;
  508. total_size += 1 +
  509. ::google::protobuf::internal::WireFormatLite::MessageSize(
  510. *this->id_struct_);
  511. }
  512. if (has_car_info()) {
  513. // required .message.Car_info car_info = 4;
  514. total_size += 1 +
  515. ::google::protobuf::internal::WireFormatLite::MessageSize(
  516. *this->car_info_);
  517. }
  518. return total_size;
  519. }
  520. size_t Notify_request_msg::ByteSizeLong() const {
  521. // @@protoc_insertion_point(message_byte_size_start:message.Notify_request_msg)
  522. size_t total_size = 0;
  523. if (_internal_metadata_.have_unknown_fields()) {
  524. total_size +=
  525. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  526. _internal_metadata_.unknown_fields());
  527. }
  528. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  529. // required string command_key = 2;
  530. total_size += 1 +
  531. ::google::protobuf::internal::WireFormatLite::StringSize(
  532. this->command_key());
  533. // required .message.Base_info base_info = 1;
  534. total_size += 1 +
  535. ::google::protobuf::internal::WireFormatLite::MessageSize(
  536. *this->base_info_);
  537. // required .message.Id_struct id_struct = 3;
  538. total_size += 1 +
  539. ::google::protobuf::internal::WireFormatLite::MessageSize(
  540. *this->id_struct_);
  541. // required .message.Car_info car_info = 4;
  542. total_size += 1 +
  543. ::google::protobuf::internal::WireFormatLite::MessageSize(
  544. *this->car_info_);
  545. } else {
  546. total_size += RequiredFieldsByteSizeFallback();
  547. }
  548. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  549. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  550. _cached_size_ = cached_size;
  551. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  552. return total_size;
  553. }
  554. void Notify_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  555. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_request_msg)
  556. GOOGLE_DCHECK_NE(&from, this);
  557. const Notify_request_msg* source =
  558. ::google::protobuf::internal::DynamicCastToGenerated<const Notify_request_msg>(
  559. &from);
  560. if (source == NULL) {
  561. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_request_msg)
  562. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  563. } else {
  564. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_request_msg)
  565. MergeFrom(*source);
  566. }
  567. }
  568. void Notify_request_msg::MergeFrom(const Notify_request_msg& from) {
  569. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_request_msg)
  570. GOOGLE_DCHECK_NE(&from, this);
  571. _internal_metadata_.MergeFrom(from._internal_metadata_);
  572. ::google::protobuf::uint32 cached_has_bits = 0;
  573. (void) cached_has_bits;
  574. cached_has_bits = from._has_bits_[0];
  575. if (cached_has_bits & 15u) {
  576. if (cached_has_bits & 0x00000001u) {
  577. set_has_command_key();
  578. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  579. }
  580. if (cached_has_bits & 0x00000002u) {
  581. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  582. }
  583. if (cached_has_bits & 0x00000004u) {
  584. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  585. }
  586. if (cached_has_bits & 0x00000008u) {
  587. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  588. }
  589. }
  590. }
  591. void Notify_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  592. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_request_msg)
  593. if (&from == this) return;
  594. Clear();
  595. MergeFrom(from);
  596. }
  597. void Notify_request_msg::CopyFrom(const Notify_request_msg& from) {
  598. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_request_msg)
  599. if (&from == this) return;
  600. Clear();
  601. MergeFrom(from);
  602. }
  603. bool Notify_request_msg::IsInitialized() const {
  604. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  605. if (has_base_info()) {
  606. if (!this->base_info_->IsInitialized()) return false;
  607. }
  608. return true;
  609. }
  610. void Notify_request_msg::Swap(Notify_request_msg* other) {
  611. if (other == this) return;
  612. InternalSwap(other);
  613. }
  614. void Notify_request_msg::InternalSwap(Notify_request_msg* other) {
  615. using std::swap;
  616. command_key_.Swap(&other->command_key_);
  617. swap(base_info_, other->base_info_);
  618. swap(id_struct_, other->id_struct_);
  619. swap(car_info_, other->car_info_);
  620. swap(_has_bits_[0], other->_has_bits_[0]);
  621. _internal_metadata_.Swap(&other->_internal_metadata_);
  622. swap(_cached_size_, other->_cached_size_);
  623. }
  624. ::google::protobuf::Metadata Notify_request_msg::GetMetadata() const {
  625. protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  626. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  627. }
  628. // ===================================================================
  629. void Notify_response_msg::InitAsDefaultInstance() {
  630. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  631. ::message::Base_info::internal_default_instance());
  632. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  633. ::message::Id_struct::internal_default_instance());
  634. ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  635. ::message::Error_manager::internal_default_instance());
  636. }
  637. void Notify_response_msg::clear_base_info() {
  638. if (base_info_ != NULL) base_info_->Clear();
  639. clear_has_base_info();
  640. }
  641. void Notify_response_msg::clear_id_struct() {
  642. if (id_struct_ != NULL) id_struct_->Clear();
  643. clear_has_id_struct();
  644. }
  645. void Notify_response_msg::clear_code() {
  646. if (code_ != NULL) code_->Clear();
  647. clear_has_code();
  648. }
  649. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  650. const int Notify_response_msg::kBaseInfoFieldNumber;
  651. const int Notify_response_msg::kCommandKeyFieldNumber;
  652. const int Notify_response_msg::kIdStructFieldNumber;
  653. const int Notify_response_msg::kCodeFieldNumber;
  654. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  655. Notify_response_msg::Notify_response_msg()
  656. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  657. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  658. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_response_msg();
  659. }
  660. SharedCtor();
  661. // @@protoc_insertion_point(constructor:message.Notify_response_msg)
  662. }
  663. Notify_response_msg::Notify_response_msg(const Notify_response_msg& from)
  664. : ::google::protobuf::Message(),
  665. _internal_metadata_(NULL),
  666. _has_bits_(from._has_bits_),
  667. _cached_size_(0) {
  668. _internal_metadata_.MergeFrom(from._internal_metadata_);
  669. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  670. if (from.has_command_key()) {
  671. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  672. }
  673. if (from.has_base_info()) {
  674. base_info_ = new ::message::Base_info(*from.base_info_);
  675. } else {
  676. base_info_ = NULL;
  677. }
  678. if (from.has_id_struct()) {
  679. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  680. } else {
  681. id_struct_ = NULL;
  682. }
  683. if (from.has_code()) {
  684. code_ = new ::message::Error_manager(*from.code_);
  685. } else {
  686. code_ = NULL;
  687. }
  688. // @@protoc_insertion_point(copy_constructor:message.Notify_response_msg)
  689. }
  690. void Notify_response_msg::SharedCtor() {
  691. _cached_size_ = 0;
  692. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  693. ::memset(&base_info_, 0, static_cast<size_t>(
  694. reinterpret_cast<char*>(&code_) -
  695. reinterpret_cast<char*>(&base_info_)) + sizeof(code_));
  696. }
  697. Notify_response_msg::~Notify_response_msg() {
  698. // @@protoc_insertion_point(destructor:message.Notify_response_msg)
  699. SharedDtor();
  700. }
  701. void Notify_response_msg::SharedDtor() {
  702. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  703. if (this != internal_default_instance()) delete base_info_;
  704. if (this != internal_default_instance()) delete id_struct_;
  705. if (this != internal_default_instance()) delete code_;
  706. }
  707. void Notify_response_msg::SetCachedSize(int size) const {
  708. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  709. _cached_size_ = size;
  710. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  711. }
  712. const ::google::protobuf::Descriptor* Notify_response_msg::descriptor() {
  713. ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  714. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  715. }
  716. const Notify_response_msg& Notify_response_msg::default_instance() {
  717. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_response_msg();
  718. return *internal_default_instance();
  719. }
  720. Notify_response_msg* Notify_response_msg::New(::google::protobuf::Arena* arena) const {
  721. Notify_response_msg* n = new Notify_response_msg;
  722. if (arena != NULL) {
  723. arena->Own(n);
  724. }
  725. return n;
  726. }
  727. void Notify_response_msg::Clear() {
  728. // @@protoc_insertion_point(message_clear_start:message.Notify_response_msg)
  729. ::google::protobuf::uint32 cached_has_bits = 0;
  730. // Prevent compiler warnings about cached_has_bits being unused
  731. (void) cached_has_bits;
  732. cached_has_bits = _has_bits_[0];
  733. if (cached_has_bits & 15u) {
  734. if (cached_has_bits & 0x00000001u) {
  735. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  736. (*command_key_.UnsafeRawStringPointer())->clear();
  737. }
  738. if (cached_has_bits & 0x00000002u) {
  739. GOOGLE_DCHECK(base_info_ != NULL);
  740. base_info_->Clear();
  741. }
  742. if (cached_has_bits & 0x00000004u) {
  743. GOOGLE_DCHECK(id_struct_ != NULL);
  744. id_struct_->Clear();
  745. }
  746. if (cached_has_bits & 0x00000008u) {
  747. GOOGLE_DCHECK(code_ != NULL);
  748. code_->Clear();
  749. }
  750. }
  751. _has_bits_.Clear();
  752. _internal_metadata_.Clear();
  753. }
  754. bool Notify_response_msg::MergePartialFromCodedStream(
  755. ::google::protobuf::io::CodedInputStream* input) {
  756. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  757. ::google::protobuf::uint32 tag;
  758. // @@protoc_insertion_point(parse_start:message.Notify_response_msg)
  759. for (;;) {
  760. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  761. tag = p.first;
  762. if (!p.second) goto handle_unusual;
  763. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  764. // required .message.Base_info base_info = 1;
  765. case 1: {
  766. if (static_cast< ::google::protobuf::uint8>(tag) ==
  767. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  768. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  769. input, mutable_base_info()));
  770. } else {
  771. goto handle_unusual;
  772. }
  773. break;
  774. }
  775. // required string command_key = 2;
  776. case 2: {
  777. if (static_cast< ::google::protobuf::uint8>(tag) ==
  778. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  779. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  780. input, this->mutable_command_key()));
  781. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  782. this->command_key().data(), static_cast<int>(this->command_key().length()),
  783. ::google::protobuf::internal::WireFormat::PARSE,
  784. "message.Notify_response_msg.command_key");
  785. } else {
  786. goto handle_unusual;
  787. }
  788. break;
  789. }
  790. // required .message.Id_struct id_struct = 3;
  791. case 3: {
  792. if (static_cast< ::google::protobuf::uint8>(tag) ==
  793. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  794. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  795. input, mutable_id_struct()));
  796. } else {
  797. goto handle_unusual;
  798. }
  799. break;
  800. }
  801. // required .message.Error_manager code = 4;
  802. case 4: {
  803. if (static_cast< ::google::protobuf::uint8>(tag) ==
  804. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  805. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  806. input, mutable_code()));
  807. } else {
  808. goto handle_unusual;
  809. }
  810. break;
  811. }
  812. default: {
  813. handle_unusual:
  814. if (tag == 0) {
  815. goto success;
  816. }
  817. DO_(::google::protobuf::internal::WireFormat::SkipField(
  818. input, tag, _internal_metadata_.mutable_unknown_fields()));
  819. break;
  820. }
  821. }
  822. }
  823. success:
  824. // @@protoc_insertion_point(parse_success:message.Notify_response_msg)
  825. return true;
  826. failure:
  827. // @@protoc_insertion_point(parse_failure:message.Notify_response_msg)
  828. return false;
  829. #undef DO_
  830. }
  831. void Notify_response_msg::SerializeWithCachedSizes(
  832. ::google::protobuf::io::CodedOutputStream* output) const {
  833. // @@protoc_insertion_point(serialize_start:message.Notify_response_msg)
  834. ::google::protobuf::uint32 cached_has_bits = 0;
  835. (void) cached_has_bits;
  836. cached_has_bits = _has_bits_[0];
  837. // required .message.Base_info base_info = 1;
  838. if (cached_has_bits & 0x00000002u) {
  839. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  840. 1, *this->base_info_, output);
  841. }
  842. // required string command_key = 2;
  843. if (cached_has_bits & 0x00000001u) {
  844. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  845. this->command_key().data(), static_cast<int>(this->command_key().length()),
  846. ::google::protobuf::internal::WireFormat::SERIALIZE,
  847. "message.Notify_response_msg.command_key");
  848. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  849. 2, this->command_key(), output);
  850. }
  851. // required .message.Id_struct id_struct = 3;
  852. if (cached_has_bits & 0x00000004u) {
  853. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  854. 3, *this->id_struct_, output);
  855. }
  856. // required .message.Error_manager code = 4;
  857. if (cached_has_bits & 0x00000008u) {
  858. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  859. 4, *this->code_, output);
  860. }
  861. if (_internal_metadata_.have_unknown_fields()) {
  862. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  863. _internal_metadata_.unknown_fields(), output);
  864. }
  865. // @@protoc_insertion_point(serialize_end:message.Notify_response_msg)
  866. }
  867. ::google::protobuf::uint8* Notify_response_msg::InternalSerializeWithCachedSizesToArray(
  868. bool deterministic, ::google::protobuf::uint8* target) const {
  869. (void)deterministic; // Unused
  870. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_response_msg)
  871. ::google::protobuf::uint32 cached_has_bits = 0;
  872. (void) cached_has_bits;
  873. cached_has_bits = _has_bits_[0];
  874. // required .message.Base_info base_info = 1;
  875. if (cached_has_bits & 0x00000002u) {
  876. target = ::google::protobuf::internal::WireFormatLite::
  877. InternalWriteMessageToArray(
  878. 1, *this->base_info_, deterministic, target);
  879. }
  880. // required string command_key = 2;
  881. if (cached_has_bits & 0x00000001u) {
  882. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  883. this->command_key().data(), static_cast<int>(this->command_key().length()),
  884. ::google::protobuf::internal::WireFormat::SERIALIZE,
  885. "message.Notify_response_msg.command_key");
  886. target =
  887. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  888. 2, this->command_key(), target);
  889. }
  890. // required .message.Id_struct id_struct = 3;
  891. if (cached_has_bits & 0x00000004u) {
  892. target = ::google::protobuf::internal::WireFormatLite::
  893. InternalWriteMessageToArray(
  894. 3, *this->id_struct_, deterministic, target);
  895. }
  896. // required .message.Error_manager code = 4;
  897. if (cached_has_bits & 0x00000008u) {
  898. target = ::google::protobuf::internal::WireFormatLite::
  899. InternalWriteMessageToArray(
  900. 4, *this->code_, deterministic, target);
  901. }
  902. if (_internal_metadata_.have_unknown_fields()) {
  903. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  904. _internal_metadata_.unknown_fields(), target);
  905. }
  906. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_response_msg)
  907. return target;
  908. }
  909. size_t Notify_response_msg::RequiredFieldsByteSizeFallback() const {
  910. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_response_msg)
  911. size_t total_size = 0;
  912. if (has_command_key()) {
  913. // required string command_key = 2;
  914. total_size += 1 +
  915. ::google::protobuf::internal::WireFormatLite::StringSize(
  916. this->command_key());
  917. }
  918. if (has_base_info()) {
  919. // required .message.Base_info base_info = 1;
  920. total_size += 1 +
  921. ::google::protobuf::internal::WireFormatLite::MessageSize(
  922. *this->base_info_);
  923. }
  924. if (has_id_struct()) {
  925. // required .message.Id_struct id_struct = 3;
  926. total_size += 1 +
  927. ::google::protobuf::internal::WireFormatLite::MessageSize(
  928. *this->id_struct_);
  929. }
  930. if (has_code()) {
  931. // required .message.Error_manager code = 4;
  932. total_size += 1 +
  933. ::google::protobuf::internal::WireFormatLite::MessageSize(
  934. *this->code_);
  935. }
  936. return total_size;
  937. }
  938. size_t Notify_response_msg::ByteSizeLong() const {
  939. // @@protoc_insertion_point(message_byte_size_start:message.Notify_response_msg)
  940. size_t total_size = 0;
  941. if (_internal_metadata_.have_unknown_fields()) {
  942. total_size +=
  943. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  944. _internal_metadata_.unknown_fields());
  945. }
  946. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  947. // required string command_key = 2;
  948. total_size += 1 +
  949. ::google::protobuf::internal::WireFormatLite::StringSize(
  950. this->command_key());
  951. // required .message.Base_info base_info = 1;
  952. total_size += 1 +
  953. ::google::protobuf::internal::WireFormatLite::MessageSize(
  954. *this->base_info_);
  955. // required .message.Id_struct id_struct = 3;
  956. total_size += 1 +
  957. ::google::protobuf::internal::WireFormatLite::MessageSize(
  958. *this->id_struct_);
  959. // required .message.Error_manager code = 4;
  960. total_size += 1 +
  961. ::google::protobuf::internal::WireFormatLite::MessageSize(
  962. *this->code_);
  963. } else {
  964. total_size += RequiredFieldsByteSizeFallback();
  965. }
  966. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  967. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  968. _cached_size_ = cached_size;
  969. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  970. return total_size;
  971. }
  972. void Notify_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  973. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_response_msg)
  974. GOOGLE_DCHECK_NE(&from, this);
  975. const Notify_response_msg* source =
  976. ::google::protobuf::internal::DynamicCastToGenerated<const Notify_response_msg>(
  977. &from);
  978. if (source == NULL) {
  979. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_response_msg)
  980. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  981. } else {
  982. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_response_msg)
  983. MergeFrom(*source);
  984. }
  985. }
  986. void Notify_response_msg::MergeFrom(const Notify_response_msg& from) {
  987. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_response_msg)
  988. GOOGLE_DCHECK_NE(&from, this);
  989. _internal_metadata_.MergeFrom(from._internal_metadata_);
  990. ::google::protobuf::uint32 cached_has_bits = 0;
  991. (void) cached_has_bits;
  992. cached_has_bits = from._has_bits_[0];
  993. if (cached_has_bits & 15u) {
  994. if (cached_has_bits & 0x00000001u) {
  995. set_has_command_key();
  996. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  997. }
  998. if (cached_has_bits & 0x00000002u) {
  999. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1000. }
  1001. if (cached_has_bits & 0x00000004u) {
  1002. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1003. }
  1004. if (cached_has_bits & 0x00000008u) {
  1005. mutable_code()->::message::Error_manager::MergeFrom(from.code());
  1006. }
  1007. }
  1008. }
  1009. void Notify_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1010. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_response_msg)
  1011. if (&from == this) return;
  1012. Clear();
  1013. MergeFrom(from);
  1014. }
  1015. void Notify_response_msg::CopyFrom(const Notify_response_msg& from) {
  1016. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_response_msg)
  1017. if (&from == this) return;
  1018. Clear();
  1019. MergeFrom(from);
  1020. }
  1021. bool Notify_response_msg::IsInitialized() const {
  1022. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1023. if (has_base_info()) {
  1024. if (!this->base_info_->IsInitialized()) return false;
  1025. }
  1026. if (has_code()) {
  1027. if (!this->code_->IsInitialized()) return false;
  1028. }
  1029. return true;
  1030. }
  1031. void Notify_response_msg::Swap(Notify_response_msg* other) {
  1032. if (other == this) return;
  1033. InternalSwap(other);
  1034. }
  1035. void Notify_response_msg::InternalSwap(Notify_response_msg* other) {
  1036. using std::swap;
  1037. command_key_.Swap(&other->command_key_);
  1038. swap(base_info_, other->base_info_);
  1039. swap(id_struct_, other->id_struct_);
  1040. swap(code_, other->code_);
  1041. swap(_has_bits_[0], other->_has_bits_[0]);
  1042. _internal_metadata_.Swap(&other->_internal_metadata_);
  1043. swap(_cached_size_, other->_cached_size_);
  1044. }
  1045. ::google::protobuf::Metadata Notify_response_msg::GetMetadata() const {
  1046. protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1047. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1048. }
  1049. // ===================================================================
  1050. void Notify_status_msg::InitAsDefaultInstance() {
  1051. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1052. ::message::Base_info::internal_default_instance());
  1053. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  1054. ::message::Id_struct::internal_default_instance());
  1055. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1056. ::message::Error_manager::internal_default_instance());
  1057. ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->singlechipdata_ = const_cast< ::message::Singlechip_data*>(
  1058. ::message::Singlechip_data::internal_default_instance());
  1059. }
  1060. void Notify_status_msg::clear_base_info() {
  1061. if (base_info_ != NULL) base_info_->Clear();
  1062. clear_has_base_info();
  1063. }
  1064. void Notify_status_msg::clear_id_struct() {
  1065. if (id_struct_ != NULL) id_struct_->Clear();
  1066. clear_has_id_struct();
  1067. }
  1068. void Notify_status_msg::clear_error_manager() {
  1069. if (error_manager_ != NULL) error_manager_->Clear();
  1070. clear_has_error_manager();
  1071. }
  1072. void Notify_status_msg::clear_singlechipdata() {
  1073. if (singlechipdata_ != NULL) singlechipdata_->Clear();
  1074. clear_has_singlechipdata();
  1075. }
  1076. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1077. const int Notify_status_msg::kBaseInfoFieldNumber;
  1078. const int Notify_status_msg::kIdStructFieldNumber;
  1079. const int Notify_status_msg::kErrorManagerFieldNumber;
  1080. const int Notify_status_msg::kSinglechipDataFieldNumber;
  1081. const int Notify_status_msg::kSinglechipValidityFieldNumber;
  1082. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1083. Notify_status_msg::Notify_status_msg()
  1084. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1085. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1086. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_status_msg();
  1087. }
  1088. SharedCtor();
  1089. // @@protoc_insertion_point(constructor:message.Notify_status_msg)
  1090. }
  1091. Notify_status_msg::Notify_status_msg(const Notify_status_msg& from)
  1092. : ::google::protobuf::Message(),
  1093. _internal_metadata_(NULL),
  1094. _has_bits_(from._has_bits_),
  1095. _cached_size_(0) {
  1096. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1097. if (from.has_base_info()) {
  1098. base_info_ = new ::message::Base_info(*from.base_info_);
  1099. } else {
  1100. base_info_ = NULL;
  1101. }
  1102. if (from.has_id_struct()) {
  1103. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  1104. } else {
  1105. id_struct_ = NULL;
  1106. }
  1107. if (from.has_error_manager()) {
  1108. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1109. } else {
  1110. error_manager_ = NULL;
  1111. }
  1112. if (from.has_singlechipdata()) {
  1113. singlechipdata_ = new ::message::Singlechip_data(*from.singlechipdata_);
  1114. } else {
  1115. singlechipdata_ = NULL;
  1116. }
  1117. singlechip_validity_ = from.singlechip_validity_;
  1118. // @@protoc_insertion_point(copy_constructor:message.Notify_status_msg)
  1119. }
  1120. void Notify_status_msg::SharedCtor() {
  1121. _cached_size_ = 0;
  1122. ::memset(&base_info_, 0, static_cast<size_t>(
  1123. reinterpret_cast<char*>(&singlechip_validity_) -
  1124. reinterpret_cast<char*>(&base_info_)) + sizeof(singlechip_validity_));
  1125. }
  1126. Notify_status_msg::~Notify_status_msg() {
  1127. // @@protoc_insertion_point(destructor:message.Notify_status_msg)
  1128. SharedDtor();
  1129. }
  1130. void Notify_status_msg::SharedDtor() {
  1131. if (this != internal_default_instance()) delete base_info_;
  1132. if (this != internal_default_instance()) delete id_struct_;
  1133. if (this != internal_default_instance()) delete error_manager_;
  1134. if (this != internal_default_instance()) delete singlechipdata_;
  1135. }
  1136. void Notify_status_msg::SetCachedSize(int size) const {
  1137. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1138. _cached_size_ = size;
  1139. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1140. }
  1141. const ::google::protobuf::Descriptor* Notify_status_msg::descriptor() {
  1142. ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1143. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1144. }
  1145. const Notify_status_msg& Notify_status_msg::default_instance() {
  1146. ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_status_msg();
  1147. return *internal_default_instance();
  1148. }
  1149. Notify_status_msg* Notify_status_msg::New(::google::protobuf::Arena* arena) const {
  1150. Notify_status_msg* n = new Notify_status_msg;
  1151. if (arena != NULL) {
  1152. arena->Own(n);
  1153. }
  1154. return n;
  1155. }
  1156. void Notify_status_msg::Clear() {
  1157. // @@protoc_insertion_point(message_clear_start:message.Notify_status_msg)
  1158. ::google::protobuf::uint32 cached_has_bits = 0;
  1159. // Prevent compiler warnings about cached_has_bits being unused
  1160. (void) cached_has_bits;
  1161. cached_has_bits = _has_bits_[0];
  1162. if (cached_has_bits & 15u) {
  1163. if (cached_has_bits & 0x00000001u) {
  1164. GOOGLE_DCHECK(base_info_ != NULL);
  1165. base_info_->Clear();
  1166. }
  1167. if (cached_has_bits & 0x00000002u) {
  1168. GOOGLE_DCHECK(id_struct_ != NULL);
  1169. id_struct_->Clear();
  1170. }
  1171. if (cached_has_bits & 0x00000004u) {
  1172. GOOGLE_DCHECK(error_manager_ != NULL);
  1173. error_manager_->Clear();
  1174. }
  1175. if (cached_has_bits & 0x00000008u) {
  1176. GOOGLE_DCHECK(singlechipdata_ != NULL);
  1177. singlechipdata_->Clear();
  1178. }
  1179. }
  1180. singlechip_validity_ = false;
  1181. _has_bits_.Clear();
  1182. _internal_metadata_.Clear();
  1183. }
  1184. bool Notify_status_msg::MergePartialFromCodedStream(
  1185. ::google::protobuf::io::CodedInputStream* input) {
  1186. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1187. ::google::protobuf::uint32 tag;
  1188. // @@protoc_insertion_point(parse_start:message.Notify_status_msg)
  1189. for (;;) {
  1190. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1191. tag = p.first;
  1192. if (!p.second) goto handle_unusual;
  1193. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1194. // required .message.Base_info base_info = 1;
  1195. case 1: {
  1196. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1197. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1198. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1199. input, mutable_base_info()));
  1200. } else {
  1201. goto handle_unusual;
  1202. }
  1203. break;
  1204. }
  1205. // required .message.Id_struct id_struct = 2;
  1206. case 2: {
  1207. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1208. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1209. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1210. input, mutable_id_struct()));
  1211. } else {
  1212. goto handle_unusual;
  1213. }
  1214. break;
  1215. }
  1216. // required .message.Error_manager error_manager = 3;
  1217. case 3: {
  1218. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1219. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1220. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1221. input, mutable_error_manager()));
  1222. } else {
  1223. goto handle_unusual;
  1224. }
  1225. break;
  1226. }
  1227. // optional .message.Singlechip_data singlechipData = 4;
  1228. case 4: {
  1229. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1230. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1231. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1232. input, mutable_singlechipdata()));
  1233. } else {
  1234. goto handle_unusual;
  1235. }
  1236. break;
  1237. }
  1238. // optional bool singlechip_validity = 5;
  1239. case 5: {
  1240. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1241. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1242. set_has_singlechip_validity();
  1243. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1244. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1245. input, &singlechip_validity_)));
  1246. } else {
  1247. goto handle_unusual;
  1248. }
  1249. break;
  1250. }
  1251. default: {
  1252. handle_unusual:
  1253. if (tag == 0) {
  1254. goto success;
  1255. }
  1256. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1257. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1258. break;
  1259. }
  1260. }
  1261. }
  1262. success:
  1263. // @@protoc_insertion_point(parse_success:message.Notify_status_msg)
  1264. return true;
  1265. failure:
  1266. // @@protoc_insertion_point(parse_failure:message.Notify_status_msg)
  1267. return false;
  1268. #undef DO_
  1269. }
  1270. void Notify_status_msg::SerializeWithCachedSizes(
  1271. ::google::protobuf::io::CodedOutputStream* output) const {
  1272. // @@protoc_insertion_point(serialize_start:message.Notify_status_msg)
  1273. ::google::protobuf::uint32 cached_has_bits = 0;
  1274. (void) cached_has_bits;
  1275. cached_has_bits = _has_bits_[0];
  1276. // required .message.Base_info base_info = 1;
  1277. if (cached_has_bits & 0x00000001u) {
  1278. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1279. 1, *this->base_info_, output);
  1280. }
  1281. // required .message.Id_struct id_struct = 2;
  1282. if (cached_has_bits & 0x00000002u) {
  1283. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1284. 2, *this->id_struct_, output);
  1285. }
  1286. // required .message.Error_manager error_manager = 3;
  1287. if (cached_has_bits & 0x00000004u) {
  1288. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1289. 3, *this->error_manager_, output);
  1290. }
  1291. // optional .message.Singlechip_data singlechipData = 4;
  1292. if (cached_has_bits & 0x00000008u) {
  1293. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1294. 4, *this->singlechipdata_, output);
  1295. }
  1296. // optional bool singlechip_validity = 5;
  1297. if (cached_has_bits & 0x00000010u) {
  1298. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->singlechip_validity(), output);
  1299. }
  1300. if (_internal_metadata_.have_unknown_fields()) {
  1301. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1302. _internal_metadata_.unknown_fields(), output);
  1303. }
  1304. // @@protoc_insertion_point(serialize_end:message.Notify_status_msg)
  1305. }
  1306. ::google::protobuf::uint8* Notify_status_msg::InternalSerializeWithCachedSizesToArray(
  1307. bool deterministic, ::google::protobuf::uint8* target) const {
  1308. (void)deterministic; // Unused
  1309. // @@protoc_insertion_point(serialize_to_array_start:message.Notify_status_msg)
  1310. ::google::protobuf::uint32 cached_has_bits = 0;
  1311. (void) cached_has_bits;
  1312. cached_has_bits = _has_bits_[0];
  1313. // required .message.Base_info base_info = 1;
  1314. if (cached_has_bits & 0x00000001u) {
  1315. target = ::google::protobuf::internal::WireFormatLite::
  1316. InternalWriteMessageToArray(
  1317. 1, *this->base_info_, deterministic, target);
  1318. }
  1319. // required .message.Id_struct id_struct = 2;
  1320. if (cached_has_bits & 0x00000002u) {
  1321. target = ::google::protobuf::internal::WireFormatLite::
  1322. InternalWriteMessageToArray(
  1323. 2, *this->id_struct_, deterministic, target);
  1324. }
  1325. // required .message.Error_manager error_manager = 3;
  1326. if (cached_has_bits & 0x00000004u) {
  1327. target = ::google::protobuf::internal::WireFormatLite::
  1328. InternalWriteMessageToArray(
  1329. 3, *this->error_manager_, deterministic, target);
  1330. }
  1331. // optional .message.Singlechip_data singlechipData = 4;
  1332. if (cached_has_bits & 0x00000008u) {
  1333. target = ::google::protobuf::internal::WireFormatLite::
  1334. InternalWriteMessageToArray(
  1335. 4, *this->singlechipdata_, deterministic, target);
  1336. }
  1337. // optional bool singlechip_validity = 5;
  1338. if (cached_has_bits & 0x00000010u) {
  1339. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->singlechip_validity(), target);
  1340. }
  1341. if (_internal_metadata_.have_unknown_fields()) {
  1342. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1343. _internal_metadata_.unknown_fields(), target);
  1344. }
  1345. // @@protoc_insertion_point(serialize_to_array_end:message.Notify_status_msg)
  1346. return target;
  1347. }
  1348. size_t Notify_status_msg::RequiredFieldsByteSizeFallback() const {
  1349. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_status_msg)
  1350. size_t total_size = 0;
  1351. if (has_base_info()) {
  1352. // required .message.Base_info base_info = 1;
  1353. total_size += 1 +
  1354. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1355. *this->base_info_);
  1356. }
  1357. if (has_id_struct()) {
  1358. // required .message.Id_struct id_struct = 2;
  1359. total_size += 1 +
  1360. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1361. *this->id_struct_);
  1362. }
  1363. if (has_error_manager()) {
  1364. // required .message.Error_manager error_manager = 3;
  1365. total_size += 1 +
  1366. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1367. *this->error_manager_);
  1368. }
  1369. return total_size;
  1370. }
  1371. size_t Notify_status_msg::ByteSizeLong() const {
  1372. // @@protoc_insertion_point(message_byte_size_start:message.Notify_status_msg)
  1373. size_t total_size = 0;
  1374. if (_internal_metadata_.have_unknown_fields()) {
  1375. total_size +=
  1376. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1377. _internal_metadata_.unknown_fields());
  1378. }
  1379. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1380. // required .message.Base_info base_info = 1;
  1381. total_size += 1 +
  1382. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1383. *this->base_info_);
  1384. // required .message.Id_struct id_struct = 2;
  1385. total_size += 1 +
  1386. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1387. *this->id_struct_);
  1388. // required .message.Error_manager error_manager = 3;
  1389. total_size += 1 +
  1390. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1391. *this->error_manager_);
  1392. } else {
  1393. total_size += RequiredFieldsByteSizeFallback();
  1394. }
  1395. if (_has_bits_[0 / 32] & 24u) {
  1396. // optional .message.Singlechip_data singlechipData = 4;
  1397. if (has_singlechipdata()) {
  1398. total_size += 1 +
  1399. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1400. *this->singlechipdata_);
  1401. }
  1402. // optional bool singlechip_validity = 5;
  1403. if (has_singlechip_validity()) {
  1404. total_size += 1 + 1;
  1405. }
  1406. }
  1407. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1408. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1409. _cached_size_ = cached_size;
  1410. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1411. return total_size;
  1412. }
  1413. void Notify_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1414. // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_status_msg)
  1415. GOOGLE_DCHECK_NE(&from, this);
  1416. const Notify_status_msg* source =
  1417. ::google::protobuf::internal::DynamicCastToGenerated<const Notify_status_msg>(
  1418. &from);
  1419. if (source == NULL) {
  1420. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_status_msg)
  1421. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1422. } else {
  1423. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_status_msg)
  1424. MergeFrom(*source);
  1425. }
  1426. }
  1427. void Notify_status_msg::MergeFrom(const Notify_status_msg& from) {
  1428. // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_status_msg)
  1429. GOOGLE_DCHECK_NE(&from, this);
  1430. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1431. ::google::protobuf::uint32 cached_has_bits = 0;
  1432. (void) cached_has_bits;
  1433. cached_has_bits = from._has_bits_[0];
  1434. if (cached_has_bits & 31u) {
  1435. if (cached_has_bits & 0x00000001u) {
  1436. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1437. }
  1438. if (cached_has_bits & 0x00000002u) {
  1439. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1440. }
  1441. if (cached_has_bits & 0x00000004u) {
  1442. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1443. }
  1444. if (cached_has_bits & 0x00000008u) {
  1445. mutable_singlechipdata()->::message::Singlechip_data::MergeFrom(from.singlechipdata());
  1446. }
  1447. if (cached_has_bits & 0x00000010u) {
  1448. singlechip_validity_ = from.singlechip_validity_;
  1449. }
  1450. _has_bits_[0] |= cached_has_bits;
  1451. }
  1452. }
  1453. void Notify_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1454. // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_status_msg)
  1455. if (&from == this) return;
  1456. Clear();
  1457. MergeFrom(from);
  1458. }
  1459. void Notify_status_msg::CopyFrom(const Notify_status_msg& from) {
  1460. // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_status_msg)
  1461. if (&from == this) return;
  1462. Clear();
  1463. MergeFrom(from);
  1464. }
  1465. bool Notify_status_msg::IsInitialized() const {
  1466. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1467. if (has_base_info()) {
  1468. if (!this->base_info_->IsInitialized()) return false;
  1469. }
  1470. if (has_error_manager()) {
  1471. if (!this->error_manager_->IsInitialized()) return false;
  1472. }
  1473. return true;
  1474. }
  1475. void Notify_status_msg::Swap(Notify_status_msg* other) {
  1476. if (other == this) return;
  1477. InternalSwap(other);
  1478. }
  1479. void Notify_status_msg::InternalSwap(Notify_status_msg* other) {
  1480. using std::swap;
  1481. swap(base_info_, other->base_info_);
  1482. swap(id_struct_, other->id_struct_);
  1483. swap(error_manager_, other->error_manager_);
  1484. swap(singlechipdata_, other->singlechipdata_);
  1485. swap(singlechip_validity_, other->singlechip_validity_);
  1486. swap(_has_bits_[0], other->_has_bits_[0]);
  1487. _internal_metadata_.Swap(&other->_internal_metadata_);
  1488. swap(_cached_size_, other->_cached_size_);
  1489. }
  1490. ::google::protobuf::Metadata Notify_status_msg::GetMetadata() const {
  1491. protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1492. return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1493. }
  1494. // @@protoc_insertion_point(namespace_scope)
  1495. } // namespace message
  1496. // @@protoc_insertion_point(global_scope)