UnNormalized_module_message.pb.cc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: UnNormalized_module_message.proto
  3. #include "UnNormalized_module_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 UnNormalized_module_statu_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<UnNormalized_module_statu_msg>
  23. _instance;
  24. } _UnNormalized_module_statu_msg_default_instance_;
  25. } // namespace message
  26. namespace protobuf_UnNormalized_5fmodule_5fmessage_2eproto {
  27. void InitDefaultsUnNormalized_module_statu_msgImpl() {
  28. GOOGLE_PROTOBUF_VERIFY_VERSION;
  29. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  30. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  31. #else
  32. ::google::protobuf::internal::InitProtobufDefaults();
  33. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  34. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  35. protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
  36. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  37. {
  38. void* ptr = &::message::_UnNormalized_module_statu_msg_default_instance_;
  39. new (ptr) ::message::UnNormalized_module_statu_msg();
  40. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  41. }
  42. ::message::UnNormalized_module_statu_msg::InitAsDefaultInstance();
  43. }
  44. void InitDefaultsUnNormalized_module_statu_msg() {
  45. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  46. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUnNormalized_module_statu_msgImpl);
  47. }
  48. ::google::protobuf::Metadata file_level_metadata[1];
  49. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  50. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, _has_bits_),
  51. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, _internal_metadata_),
  52. ~0u, // no _extensions_
  53. ~0u, // no _oneof_case_
  54. ~0u, // no _weak_field_map_
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, base_info_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, id_struct_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, statu_code_),
  58. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::UnNormalized_module_statu_msg, car_license_),
  59. 1,
  60. 2,
  61. 3,
  62. 0,
  63. };
  64. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  65. { 0, 9, sizeof(::message::UnNormalized_module_statu_msg)},
  66. };
  67. static ::google::protobuf::Message const * const file_default_instances[] = {
  68. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_UnNormalized_module_statu_msg_default_instance_),
  69. };
  70. void protobuf_AssignDescriptors() {
  71. AddDescriptors();
  72. ::google::protobuf::MessageFactory* factory = NULL;
  73. AssignDescriptors(
  74. "UnNormalized_module_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  75. file_level_metadata, NULL, NULL);
  76. }
  77. void protobuf_AssignDescriptorsOnce() {
  78. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  79. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  80. }
  81. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  82. void protobuf_RegisterTypes(const ::std::string&) {
  83. protobuf_AssignDescriptorsOnce();
  84. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  85. }
  86. void AddDescriptorsImpl() {
  87. InitDefaults();
  88. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  89. "\n!UnNormalized_module_message.proto\022\007mes"
  90. "sage\032\022message_base.proto\"\256\001\n\035UnNormalize"
  91. "d_module_statu_msg\022%\n\tbase_info\030\001 \002(\0132\022."
  92. "message.Base_info\022%\n\tid_struct\030\002 \002(\0132\022.m"
  93. "essage.Id_struct\022*\n\nstatu_code\030\003 \002(\0132\026.m"
  94. "essage.Error_manager\022\023\n\013car_license\030\004 \001("
  95. "\t"
  96. };
  97. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  98. descriptor, 241);
  99. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  100. "UnNormalized_module_message.proto", &protobuf_RegisterTypes);
  101. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  102. }
  103. void AddDescriptors() {
  104. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  105. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  106. }
  107. // Force AddDescriptors() to be called at dynamic initialization time.
  108. struct StaticDescriptorInitializer {
  109. StaticDescriptorInitializer() {
  110. AddDescriptors();
  111. }
  112. } static_descriptor_initializer;
  113. } // namespace protobuf_UnNormalized_5fmodule_5fmessage_2eproto
  114. namespace message {
  115. // ===================================================================
  116. void UnNormalized_module_statu_msg::InitAsDefaultInstance() {
  117. ::message::_UnNormalized_module_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  118. ::message::Base_info::internal_default_instance());
  119. ::message::_UnNormalized_module_statu_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  120. ::message::Id_struct::internal_default_instance());
  121. ::message::_UnNormalized_module_statu_msg_default_instance_._instance.get_mutable()->statu_code_ = const_cast< ::message::Error_manager*>(
  122. ::message::Error_manager::internal_default_instance());
  123. }
  124. void UnNormalized_module_statu_msg::clear_base_info() {
  125. if (base_info_ != NULL) base_info_->Clear();
  126. clear_has_base_info();
  127. }
  128. void UnNormalized_module_statu_msg::clear_id_struct() {
  129. if (id_struct_ != NULL) id_struct_->Clear();
  130. clear_has_id_struct();
  131. }
  132. void UnNormalized_module_statu_msg::clear_statu_code() {
  133. if (statu_code_ != NULL) statu_code_->Clear();
  134. clear_has_statu_code();
  135. }
  136. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  137. const int UnNormalized_module_statu_msg::kBaseInfoFieldNumber;
  138. const int UnNormalized_module_statu_msg::kIdStructFieldNumber;
  139. const int UnNormalized_module_statu_msg::kStatuCodeFieldNumber;
  140. const int UnNormalized_module_statu_msg::kCarLicenseFieldNumber;
  141. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  142. UnNormalized_module_statu_msg::UnNormalized_module_statu_msg()
  143. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  144. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  145. ::protobuf_UnNormalized_5fmodule_5fmessage_2eproto::InitDefaultsUnNormalized_module_statu_msg();
  146. }
  147. SharedCtor();
  148. // @@protoc_insertion_point(constructor:message.UnNormalized_module_statu_msg)
  149. }
  150. UnNormalized_module_statu_msg::UnNormalized_module_statu_msg(const UnNormalized_module_statu_msg& from)
  151. : ::google::protobuf::Message(),
  152. _internal_metadata_(NULL),
  153. _has_bits_(from._has_bits_),
  154. _cached_size_(0) {
  155. _internal_metadata_.MergeFrom(from._internal_metadata_);
  156. car_license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  157. if (from.has_car_license()) {
  158. car_license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_license_);
  159. }
  160. if (from.has_base_info()) {
  161. base_info_ = new ::message::Base_info(*from.base_info_);
  162. } else {
  163. base_info_ = NULL;
  164. }
  165. if (from.has_id_struct()) {
  166. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  167. } else {
  168. id_struct_ = NULL;
  169. }
  170. if (from.has_statu_code()) {
  171. statu_code_ = new ::message::Error_manager(*from.statu_code_);
  172. } else {
  173. statu_code_ = NULL;
  174. }
  175. // @@protoc_insertion_point(copy_constructor:message.UnNormalized_module_statu_msg)
  176. }
  177. void UnNormalized_module_statu_msg::SharedCtor() {
  178. _cached_size_ = 0;
  179. car_license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  180. ::memset(&base_info_, 0, static_cast<size_t>(
  181. reinterpret_cast<char*>(&statu_code_) -
  182. reinterpret_cast<char*>(&base_info_)) + sizeof(statu_code_));
  183. }
  184. UnNormalized_module_statu_msg::~UnNormalized_module_statu_msg() {
  185. // @@protoc_insertion_point(destructor:message.UnNormalized_module_statu_msg)
  186. SharedDtor();
  187. }
  188. void UnNormalized_module_statu_msg::SharedDtor() {
  189. car_license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  190. if (this != internal_default_instance()) delete base_info_;
  191. if (this != internal_default_instance()) delete id_struct_;
  192. if (this != internal_default_instance()) delete statu_code_;
  193. }
  194. void UnNormalized_module_statu_msg::SetCachedSize(int size) const {
  195. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  196. _cached_size_ = size;
  197. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  198. }
  199. const ::google::protobuf::Descriptor* UnNormalized_module_statu_msg::descriptor() {
  200. ::protobuf_UnNormalized_5fmodule_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  201. return ::protobuf_UnNormalized_5fmodule_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  202. }
  203. const UnNormalized_module_statu_msg& UnNormalized_module_statu_msg::default_instance() {
  204. ::protobuf_UnNormalized_5fmodule_5fmessage_2eproto::InitDefaultsUnNormalized_module_statu_msg();
  205. return *internal_default_instance();
  206. }
  207. UnNormalized_module_statu_msg* UnNormalized_module_statu_msg::New(::google::protobuf::Arena* arena) const {
  208. UnNormalized_module_statu_msg* n = new UnNormalized_module_statu_msg;
  209. if (arena != NULL) {
  210. arena->Own(n);
  211. }
  212. return n;
  213. }
  214. void UnNormalized_module_statu_msg::Clear() {
  215. // @@protoc_insertion_point(message_clear_start:message.UnNormalized_module_statu_msg)
  216. ::google::protobuf::uint32 cached_has_bits = 0;
  217. // Prevent compiler warnings about cached_has_bits being unused
  218. (void) cached_has_bits;
  219. cached_has_bits = _has_bits_[0];
  220. if (cached_has_bits & 15u) {
  221. if (cached_has_bits & 0x00000001u) {
  222. GOOGLE_DCHECK(!car_license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  223. (*car_license_.UnsafeRawStringPointer())->clear();
  224. }
  225. if (cached_has_bits & 0x00000002u) {
  226. GOOGLE_DCHECK(base_info_ != NULL);
  227. base_info_->Clear();
  228. }
  229. if (cached_has_bits & 0x00000004u) {
  230. GOOGLE_DCHECK(id_struct_ != NULL);
  231. id_struct_->Clear();
  232. }
  233. if (cached_has_bits & 0x00000008u) {
  234. GOOGLE_DCHECK(statu_code_ != NULL);
  235. statu_code_->Clear();
  236. }
  237. }
  238. _has_bits_.Clear();
  239. _internal_metadata_.Clear();
  240. }
  241. bool UnNormalized_module_statu_msg::MergePartialFromCodedStream(
  242. ::google::protobuf::io::CodedInputStream* input) {
  243. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  244. ::google::protobuf::uint32 tag;
  245. // @@protoc_insertion_point(parse_start:message.UnNormalized_module_statu_msg)
  246. for (;;) {
  247. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  248. tag = p.first;
  249. if (!p.second) goto handle_unusual;
  250. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  251. // required .message.Base_info base_info = 1;
  252. case 1: {
  253. if (static_cast< ::google::protobuf::uint8>(tag) ==
  254. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  255. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  256. input, mutable_base_info()));
  257. } else {
  258. goto handle_unusual;
  259. }
  260. break;
  261. }
  262. // required .message.Id_struct id_struct = 2;
  263. case 2: {
  264. if (static_cast< ::google::protobuf::uint8>(tag) ==
  265. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  266. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  267. input, mutable_id_struct()));
  268. } else {
  269. goto handle_unusual;
  270. }
  271. break;
  272. }
  273. // required .message.Error_manager statu_code = 3;
  274. case 3: {
  275. if (static_cast< ::google::protobuf::uint8>(tag) ==
  276. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  277. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  278. input, mutable_statu_code()));
  279. } else {
  280. goto handle_unusual;
  281. }
  282. break;
  283. }
  284. // optional string car_license = 4;
  285. case 4: {
  286. if (static_cast< ::google::protobuf::uint8>(tag) ==
  287. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  288. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  289. input, this->mutable_car_license()));
  290. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  291. this->car_license().data(), static_cast<int>(this->car_license().length()),
  292. ::google::protobuf::internal::WireFormat::PARSE,
  293. "message.UnNormalized_module_statu_msg.car_license");
  294. } else {
  295. goto handle_unusual;
  296. }
  297. break;
  298. }
  299. default: {
  300. handle_unusual:
  301. if (tag == 0) {
  302. goto success;
  303. }
  304. DO_(::google::protobuf::internal::WireFormat::SkipField(
  305. input, tag, _internal_metadata_.mutable_unknown_fields()));
  306. break;
  307. }
  308. }
  309. }
  310. success:
  311. // @@protoc_insertion_point(parse_success:message.UnNormalized_module_statu_msg)
  312. return true;
  313. failure:
  314. // @@protoc_insertion_point(parse_failure:message.UnNormalized_module_statu_msg)
  315. return false;
  316. #undef DO_
  317. }
  318. void UnNormalized_module_statu_msg::SerializeWithCachedSizes(
  319. ::google::protobuf::io::CodedOutputStream* output) const {
  320. // @@protoc_insertion_point(serialize_start:message.UnNormalized_module_statu_msg)
  321. ::google::protobuf::uint32 cached_has_bits = 0;
  322. (void) cached_has_bits;
  323. cached_has_bits = _has_bits_[0];
  324. // required .message.Base_info base_info = 1;
  325. if (cached_has_bits & 0x00000002u) {
  326. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  327. 1, *this->base_info_, output);
  328. }
  329. // required .message.Id_struct id_struct = 2;
  330. if (cached_has_bits & 0x00000004u) {
  331. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  332. 2, *this->id_struct_, output);
  333. }
  334. // required .message.Error_manager statu_code = 3;
  335. if (cached_has_bits & 0x00000008u) {
  336. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  337. 3, *this->statu_code_, output);
  338. }
  339. // optional string car_license = 4;
  340. if (cached_has_bits & 0x00000001u) {
  341. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  342. this->car_license().data(), static_cast<int>(this->car_license().length()),
  343. ::google::protobuf::internal::WireFormat::SERIALIZE,
  344. "message.UnNormalized_module_statu_msg.car_license");
  345. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  346. 4, this->car_license(), output);
  347. }
  348. if (_internal_metadata_.have_unknown_fields()) {
  349. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  350. _internal_metadata_.unknown_fields(), output);
  351. }
  352. // @@protoc_insertion_point(serialize_end:message.UnNormalized_module_statu_msg)
  353. }
  354. ::google::protobuf::uint8* UnNormalized_module_statu_msg::InternalSerializeWithCachedSizesToArray(
  355. bool deterministic, ::google::protobuf::uint8* target) const {
  356. (void)deterministic; // Unused
  357. // @@protoc_insertion_point(serialize_to_array_start:message.UnNormalized_module_statu_msg)
  358. ::google::protobuf::uint32 cached_has_bits = 0;
  359. (void) cached_has_bits;
  360. cached_has_bits = _has_bits_[0];
  361. // required .message.Base_info base_info = 1;
  362. if (cached_has_bits & 0x00000002u) {
  363. target = ::google::protobuf::internal::WireFormatLite::
  364. InternalWriteMessageToArray(
  365. 1, *this->base_info_, deterministic, target);
  366. }
  367. // required .message.Id_struct id_struct = 2;
  368. if (cached_has_bits & 0x00000004u) {
  369. target = ::google::protobuf::internal::WireFormatLite::
  370. InternalWriteMessageToArray(
  371. 2, *this->id_struct_, deterministic, target);
  372. }
  373. // required .message.Error_manager statu_code = 3;
  374. if (cached_has_bits & 0x00000008u) {
  375. target = ::google::protobuf::internal::WireFormatLite::
  376. InternalWriteMessageToArray(
  377. 3, *this->statu_code_, deterministic, target);
  378. }
  379. // optional string car_license = 4;
  380. if (cached_has_bits & 0x00000001u) {
  381. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  382. this->car_license().data(), static_cast<int>(this->car_license().length()),
  383. ::google::protobuf::internal::WireFormat::SERIALIZE,
  384. "message.UnNormalized_module_statu_msg.car_license");
  385. target =
  386. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  387. 4, this->car_license(), target);
  388. }
  389. if (_internal_metadata_.have_unknown_fields()) {
  390. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  391. _internal_metadata_.unknown_fields(), target);
  392. }
  393. // @@protoc_insertion_point(serialize_to_array_end:message.UnNormalized_module_statu_msg)
  394. return target;
  395. }
  396. size_t UnNormalized_module_statu_msg::RequiredFieldsByteSizeFallback() const {
  397. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.UnNormalized_module_statu_msg)
  398. size_t total_size = 0;
  399. if (has_base_info()) {
  400. // required .message.Base_info base_info = 1;
  401. total_size += 1 +
  402. ::google::protobuf::internal::WireFormatLite::MessageSize(
  403. *this->base_info_);
  404. }
  405. if (has_id_struct()) {
  406. // required .message.Id_struct id_struct = 2;
  407. total_size += 1 +
  408. ::google::protobuf::internal::WireFormatLite::MessageSize(
  409. *this->id_struct_);
  410. }
  411. if (has_statu_code()) {
  412. // required .message.Error_manager statu_code = 3;
  413. total_size += 1 +
  414. ::google::protobuf::internal::WireFormatLite::MessageSize(
  415. *this->statu_code_);
  416. }
  417. return total_size;
  418. }
  419. size_t UnNormalized_module_statu_msg::ByteSizeLong() const {
  420. // @@protoc_insertion_point(message_byte_size_start:message.UnNormalized_module_statu_msg)
  421. size_t total_size = 0;
  422. if (_internal_metadata_.have_unknown_fields()) {
  423. total_size +=
  424. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  425. _internal_metadata_.unknown_fields());
  426. }
  427. if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
  428. // required .message.Base_info base_info = 1;
  429. total_size += 1 +
  430. ::google::protobuf::internal::WireFormatLite::MessageSize(
  431. *this->base_info_);
  432. // required .message.Id_struct id_struct = 2;
  433. total_size += 1 +
  434. ::google::protobuf::internal::WireFormatLite::MessageSize(
  435. *this->id_struct_);
  436. // required .message.Error_manager statu_code = 3;
  437. total_size += 1 +
  438. ::google::protobuf::internal::WireFormatLite::MessageSize(
  439. *this->statu_code_);
  440. } else {
  441. total_size += RequiredFieldsByteSizeFallback();
  442. }
  443. // optional string car_license = 4;
  444. if (has_car_license()) {
  445. total_size += 1 +
  446. ::google::protobuf::internal::WireFormatLite::StringSize(
  447. this->car_license());
  448. }
  449. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  450. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  451. _cached_size_ = cached_size;
  452. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  453. return total_size;
  454. }
  455. void UnNormalized_module_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
  456. // @@protoc_insertion_point(generalized_merge_from_start:message.UnNormalized_module_statu_msg)
  457. GOOGLE_DCHECK_NE(&from, this);
  458. const UnNormalized_module_statu_msg* source =
  459. ::google::protobuf::internal::DynamicCastToGenerated<const UnNormalized_module_statu_msg>(
  460. &from);
  461. if (source == NULL) {
  462. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.UnNormalized_module_statu_msg)
  463. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  464. } else {
  465. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.UnNormalized_module_statu_msg)
  466. MergeFrom(*source);
  467. }
  468. }
  469. void UnNormalized_module_statu_msg::MergeFrom(const UnNormalized_module_statu_msg& from) {
  470. // @@protoc_insertion_point(class_specific_merge_from_start:message.UnNormalized_module_statu_msg)
  471. GOOGLE_DCHECK_NE(&from, this);
  472. _internal_metadata_.MergeFrom(from._internal_metadata_);
  473. ::google::protobuf::uint32 cached_has_bits = 0;
  474. (void) cached_has_bits;
  475. cached_has_bits = from._has_bits_[0];
  476. if (cached_has_bits & 15u) {
  477. if (cached_has_bits & 0x00000001u) {
  478. set_has_car_license();
  479. car_license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_license_);
  480. }
  481. if (cached_has_bits & 0x00000002u) {
  482. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  483. }
  484. if (cached_has_bits & 0x00000004u) {
  485. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  486. }
  487. if (cached_has_bits & 0x00000008u) {
  488. mutable_statu_code()->::message::Error_manager::MergeFrom(from.statu_code());
  489. }
  490. }
  491. }
  492. void UnNormalized_module_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
  493. // @@protoc_insertion_point(generalized_copy_from_start:message.UnNormalized_module_statu_msg)
  494. if (&from == this) return;
  495. Clear();
  496. MergeFrom(from);
  497. }
  498. void UnNormalized_module_statu_msg::CopyFrom(const UnNormalized_module_statu_msg& from) {
  499. // @@protoc_insertion_point(class_specific_copy_from_start:message.UnNormalized_module_statu_msg)
  500. if (&from == this) return;
  501. Clear();
  502. MergeFrom(from);
  503. }
  504. bool UnNormalized_module_statu_msg::IsInitialized() const {
  505. if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
  506. if (has_base_info()) {
  507. if (!this->base_info_->IsInitialized()) return false;
  508. }
  509. if (has_statu_code()) {
  510. if (!this->statu_code_->IsInitialized()) return false;
  511. }
  512. return true;
  513. }
  514. void UnNormalized_module_statu_msg::Swap(UnNormalized_module_statu_msg* other) {
  515. if (other == this) return;
  516. InternalSwap(other);
  517. }
  518. void UnNormalized_module_statu_msg::InternalSwap(UnNormalized_module_statu_msg* other) {
  519. using std::swap;
  520. car_license_.Swap(&other->car_license_);
  521. swap(base_info_, other->base_info_);
  522. swap(id_struct_, other->id_struct_);
  523. swap(statu_code_, other->statu_code_);
  524. swap(_has_bits_[0], other->_has_bits_[0]);
  525. _internal_metadata_.Swap(&other->_internal_metadata_);
  526. swap(_cached_size_, other->_cached_size_);
  527. }
  528. ::google::protobuf::Metadata UnNormalized_module_statu_msg::GetMetadata() const {
  529. protobuf_UnNormalized_5fmodule_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  530. return ::protobuf_UnNormalized_5fmodule_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  531. }
  532. // @@protoc_insertion_point(namespace_scope)
  533. } // namespace message
  534. // @@protoc_insertion_point(global_scope)