manual_operation_message.pb.cc 23 KB

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