manual_operation_message.pb.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: manual_operation_message.proto
  3. #ifndef PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include "message_base.pb.h"
  29. // @@protoc_insertion_point(includes)
  30. namespace protobuf_manual_5foperation_5fmessage_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[1];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. void InitDefaultsManual_operation_msgImpl();
  42. void InitDefaultsManual_operation_msg();
  43. inline void InitDefaults() {
  44. InitDefaultsManual_operation_msg();
  45. }
  46. } // namespace protobuf_manual_5foperation_5fmessage_2eproto
  47. namespace message {
  48. class Manual_operation_msg;
  49. class Manual_operation_msgDefaultTypeInternal;
  50. extern Manual_operation_msgDefaultTypeInternal _Manual_operation_msg_default_instance_;
  51. } // namespace message
  52. namespace message {
  53. enum Step_type {
  54. eAlloc_step = 0,
  55. eMeasure_step = 1,
  56. eCompare_step = 2,
  57. eDispatch_step = 3,
  58. eConfirm_step = 4,
  59. eComplete = 5,
  60. eBackConfirm_step = 6,
  61. eBackDispatch_step = 7,
  62. eBack_compare_step = 8,
  63. eBackMeasure_step = 9,
  64. eBackAlloc_step = 10,
  65. eBackComplete = 11
  66. };
  67. bool Step_type_IsValid(int value);
  68. const Step_type Step_type_MIN = eAlloc_step;
  69. const Step_type Step_type_MAX = eBackComplete;
  70. const int Step_type_ARRAYSIZE = Step_type_MAX + 1;
  71. const ::google::protobuf::EnumDescriptor* Step_type_descriptor();
  72. inline const ::std::string& Step_type_Name(Step_type value) {
  73. return ::google::protobuf::internal::NameOfEnum(
  74. Step_type_descriptor(), value);
  75. }
  76. inline bool Step_type_Parse(
  77. const ::std::string& name, Step_type* value) {
  78. return ::google::protobuf::internal::ParseNamedEnum<Step_type>(
  79. Step_type_descriptor(), name, value);
  80. }
  81. enum Operation_type {
  82. eManual_cancel = 1
  83. };
  84. bool Operation_type_IsValid(int value);
  85. const Operation_type Operation_type_MIN = eManual_cancel;
  86. const Operation_type Operation_type_MAX = eManual_cancel;
  87. const int Operation_type_ARRAYSIZE = Operation_type_MAX + 1;
  88. const ::google::protobuf::EnumDescriptor* Operation_type_descriptor();
  89. inline const ::std::string& Operation_type_Name(Operation_type value) {
  90. return ::google::protobuf::internal::NameOfEnum(
  91. Operation_type_descriptor(), value);
  92. }
  93. inline bool Operation_type_Parse(
  94. const ::std::string& name, Operation_type* value) {
  95. return ::google::protobuf::internal::ParseNamedEnum<Operation_type>(
  96. Operation_type_descriptor(), name, value);
  97. }
  98. // ===================================================================
  99. class Manual_operation_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Manual_operation_msg) */ {
  100. public:
  101. Manual_operation_msg();
  102. virtual ~Manual_operation_msg();
  103. Manual_operation_msg(const Manual_operation_msg& from);
  104. inline Manual_operation_msg& operator=(const Manual_operation_msg& from) {
  105. CopyFrom(from);
  106. return *this;
  107. }
  108. #if LANG_CXX11
  109. Manual_operation_msg(Manual_operation_msg&& from) noexcept
  110. : Manual_operation_msg() {
  111. *this = ::std::move(from);
  112. }
  113. inline Manual_operation_msg& operator=(Manual_operation_msg&& from) noexcept {
  114. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  115. if (this != &from) InternalSwap(&from);
  116. } else {
  117. CopyFrom(from);
  118. }
  119. return *this;
  120. }
  121. #endif
  122. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  123. return _internal_metadata_.unknown_fields();
  124. }
  125. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  126. return _internal_metadata_.mutable_unknown_fields();
  127. }
  128. static const ::google::protobuf::Descriptor* descriptor();
  129. static const Manual_operation_msg& default_instance();
  130. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  131. static inline const Manual_operation_msg* internal_default_instance() {
  132. return reinterpret_cast<const Manual_operation_msg*>(
  133. &_Manual_operation_msg_default_instance_);
  134. }
  135. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  136. 0;
  137. void Swap(Manual_operation_msg* other);
  138. friend void swap(Manual_operation_msg& a, Manual_operation_msg& b) {
  139. a.Swap(&b);
  140. }
  141. // implements Message ----------------------------------------------
  142. inline Manual_operation_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  143. Manual_operation_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  144. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  145. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  146. void CopyFrom(const Manual_operation_msg& from);
  147. void MergeFrom(const Manual_operation_msg& from);
  148. void Clear() PROTOBUF_FINAL;
  149. bool IsInitialized() const PROTOBUF_FINAL;
  150. size_t ByteSizeLong() const PROTOBUF_FINAL;
  151. bool MergePartialFromCodedStream(
  152. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  153. void SerializeWithCachedSizes(
  154. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  155. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  156. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  157. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  158. private:
  159. void SharedCtor();
  160. void SharedDtor();
  161. void SetCachedSize(int size) const PROTOBUF_FINAL;
  162. void InternalSwap(Manual_operation_msg* other);
  163. private:
  164. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  165. return NULL;
  166. }
  167. inline void* MaybeArenaPtr() const {
  168. return NULL;
  169. }
  170. public:
  171. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  172. // nested types ----------------------------------------------------
  173. // accessors -------------------------------------------------------
  174. // required string license = 2;
  175. bool has_license() const;
  176. void clear_license();
  177. static const int kLicenseFieldNumber = 2;
  178. const ::std::string& license() const;
  179. void set_license(const ::std::string& value);
  180. #if LANG_CXX11
  181. void set_license(::std::string&& value);
  182. #endif
  183. void set_license(const char* value);
  184. void set_license(const char* value, size_t size);
  185. ::std::string* mutable_license();
  186. ::std::string* release_license();
  187. void set_allocated_license(::std::string* license);
  188. // required .message.Base_info base_info = 1;
  189. bool has_base_info() const;
  190. void clear_base_info();
  191. static const int kBaseInfoFieldNumber = 1;
  192. const ::message::Base_info& base_info() const;
  193. ::message::Base_info* release_base_info();
  194. ::message::Base_info* mutable_base_info();
  195. void set_allocated_base_info(::message::Base_info* base_info);
  196. // required .message.Step_type step_type = 3;
  197. bool has_step_type() const;
  198. void clear_step_type();
  199. static const int kStepTypeFieldNumber = 3;
  200. ::message::Step_type step_type() const;
  201. void set_step_type(::message::Step_type value);
  202. // required .message.Operation_type operate_type = 4;
  203. bool has_operate_type() const;
  204. void clear_operate_type();
  205. static const int kOperateTypeFieldNumber = 4;
  206. ::message::Operation_type operate_type() const;
  207. void set_operate_type(::message::Operation_type value);
  208. // @@protoc_insertion_point(class_scope:message.Manual_operation_msg)
  209. private:
  210. void set_has_base_info();
  211. void clear_has_base_info();
  212. void set_has_license();
  213. void clear_has_license();
  214. void set_has_step_type();
  215. void clear_has_step_type();
  216. void set_has_operate_type();
  217. void clear_has_operate_type();
  218. // helper for ByteSizeLong()
  219. size_t RequiredFieldsByteSizeFallback() const;
  220. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  221. ::google::protobuf::internal::HasBits<1> _has_bits_;
  222. mutable int _cached_size_;
  223. ::google::protobuf::internal::ArenaStringPtr license_;
  224. ::message::Base_info* base_info_;
  225. int step_type_;
  226. int operate_type_;
  227. friend struct ::protobuf_manual_5foperation_5fmessage_2eproto::TableStruct;
  228. friend void ::protobuf_manual_5foperation_5fmessage_2eproto::InitDefaultsManual_operation_msgImpl();
  229. };
  230. // ===================================================================
  231. // ===================================================================
  232. #ifdef __GNUC__
  233. #pragma GCC diagnostic push
  234. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  235. #endif // __GNUC__
  236. // Manual_operation_msg
  237. // required .message.Base_info base_info = 1;
  238. inline bool Manual_operation_msg::has_base_info() const {
  239. return (_has_bits_[0] & 0x00000002u) != 0;
  240. }
  241. inline void Manual_operation_msg::set_has_base_info() {
  242. _has_bits_[0] |= 0x00000002u;
  243. }
  244. inline void Manual_operation_msg::clear_has_base_info() {
  245. _has_bits_[0] &= ~0x00000002u;
  246. }
  247. inline const ::message::Base_info& Manual_operation_msg::base_info() const {
  248. const ::message::Base_info* p = base_info_;
  249. // @@protoc_insertion_point(field_get:message.Manual_operation_msg.base_info)
  250. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  251. &::message::_Base_info_default_instance_);
  252. }
  253. inline ::message::Base_info* Manual_operation_msg::release_base_info() {
  254. // @@protoc_insertion_point(field_release:message.Manual_operation_msg.base_info)
  255. clear_has_base_info();
  256. ::message::Base_info* temp = base_info_;
  257. base_info_ = NULL;
  258. return temp;
  259. }
  260. inline ::message::Base_info* Manual_operation_msg::mutable_base_info() {
  261. set_has_base_info();
  262. if (base_info_ == NULL) {
  263. base_info_ = new ::message::Base_info;
  264. }
  265. // @@protoc_insertion_point(field_mutable:message.Manual_operation_msg.base_info)
  266. return base_info_;
  267. }
  268. inline void Manual_operation_msg::set_allocated_base_info(::message::Base_info* base_info) {
  269. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  270. if (message_arena == NULL) {
  271. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  272. }
  273. if (base_info) {
  274. ::google::protobuf::Arena* submessage_arena = NULL;
  275. if (message_arena != submessage_arena) {
  276. base_info = ::google::protobuf::internal::GetOwnedMessage(
  277. message_arena, base_info, submessage_arena);
  278. }
  279. set_has_base_info();
  280. } else {
  281. clear_has_base_info();
  282. }
  283. base_info_ = base_info;
  284. // @@protoc_insertion_point(field_set_allocated:message.Manual_operation_msg.base_info)
  285. }
  286. // required string license = 2;
  287. inline bool Manual_operation_msg::has_license() const {
  288. return (_has_bits_[0] & 0x00000001u) != 0;
  289. }
  290. inline void Manual_operation_msg::set_has_license() {
  291. _has_bits_[0] |= 0x00000001u;
  292. }
  293. inline void Manual_operation_msg::clear_has_license() {
  294. _has_bits_[0] &= ~0x00000001u;
  295. }
  296. inline void Manual_operation_msg::clear_license() {
  297. license_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  298. clear_has_license();
  299. }
  300. inline const ::std::string& Manual_operation_msg::license() const {
  301. // @@protoc_insertion_point(field_get:message.Manual_operation_msg.license)
  302. return license_.GetNoArena();
  303. }
  304. inline void Manual_operation_msg::set_license(const ::std::string& value) {
  305. set_has_license();
  306. license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  307. // @@protoc_insertion_point(field_set:message.Manual_operation_msg.license)
  308. }
  309. #if LANG_CXX11
  310. inline void Manual_operation_msg::set_license(::std::string&& value) {
  311. set_has_license();
  312. license_.SetNoArena(
  313. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  314. // @@protoc_insertion_point(field_set_rvalue:message.Manual_operation_msg.license)
  315. }
  316. #endif
  317. inline void Manual_operation_msg::set_license(const char* value) {
  318. GOOGLE_DCHECK(value != NULL);
  319. set_has_license();
  320. license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  321. // @@protoc_insertion_point(field_set_char:message.Manual_operation_msg.license)
  322. }
  323. inline void Manual_operation_msg::set_license(const char* value, size_t size) {
  324. set_has_license();
  325. license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  326. ::std::string(reinterpret_cast<const char*>(value), size));
  327. // @@protoc_insertion_point(field_set_pointer:message.Manual_operation_msg.license)
  328. }
  329. inline ::std::string* Manual_operation_msg::mutable_license() {
  330. set_has_license();
  331. // @@protoc_insertion_point(field_mutable:message.Manual_operation_msg.license)
  332. return license_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  333. }
  334. inline ::std::string* Manual_operation_msg::release_license() {
  335. // @@protoc_insertion_point(field_release:message.Manual_operation_msg.license)
  336. clear_has_license();
  337. return license_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  338. }
  339. inline void Manual_operation_msg::set_allocated_license(::std::string* license) {
  340. if (license != NULL) {
  341. set_has_license();
  342. } else {
  343. clear_has_license();
  344. }
  345. license_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), license);
  346. // @@protoc_insertion_point(field_set_allocated:message.Manual_operation_msg.license)
  347. }
  348. // required .message.Step_type step_type = 3;
  349. inline bool Manual_operation_msg::has_step_type() const {
  350. return (_has_bits_[0] & 0x00000004u) != 0;
  351. }
  352. inline void Manual_operation_msg::set_has_step_type() {
  353. _has_bits_[0] |= 0x00000004u;
  354. }
  355. inline void Manual_operation_msg::clear_has_step_type() {
  356. _has_bits_[0] &= ~0x00000004u;
  357. }
  358. inline void Manual_operation_msg::clear_step_type() {
  359. step_type_ = 0;
  360. clear_has_step_type();
  361. }
  362. inline ::message::Step_type Manual_operation_msg::step_type() const {
  363. // @@protoc_insertion_point(field_get:message.Manual_operation_msg.step_type)
  364. return static_cast< ::message::Step_type >(step_type_);
  365. }
  366. inline void Manual_operation_msg::set_step_type(::message::Step_type value) {
  367. assert(::message::Step_type_IsValid(value));
  368. set_has_step_type();
  369. step_type_ = value;
  370. // @@protoc_insertion_point(field_set:message.Manual_operation_msg.step_type)
  371. }
  372. // required .message.Operation_type operate_type = 4;
  373. inline bool Manual_operation_msg::has_operate_type() const {
  374. return (_has_bits_[0] & 0x00000008u) != 0;
  375. }
  376. inline void Manual_operation_msg::set_has_operate_type() {
  377. _has_bits_[0] |= 0x00000008u;
  378. }
  379. inline void Manual_operation_msg::clear_has_operate_type() {
  380. _has_bits_[0] &= ~0x00000008u;
  381. }
  382. inline void Manual_operation_msg::clear_operate_type() {
  383. operate_type_ = 1;
  384. clear_has_operate_type();
  385. }
  386. inline ::message::Operation_type Manual_operation_msg::operate_type() const {
  387. // @@protoc_insertion_point(field_get:message.Manual_operation_msg.operate_type)
  388. return static_cast< ::message::Operation_type >(operate_type_);
  389. }
  390. inline void Manual_operation_msg::set_operate_type(::message::Operation_type value) {
  391. assert(::message::Operation_type_IsValid(value));
  392. set_has_operate_type();
  393. operate_type_ = value;
  394. // @@protoc_insertion_point(field_set:message.Manual_operation_msg.operate_type)
  395. }
  396. #ifdef __GNUC__
  397. #pragma GCC diagnostic pop
  398. #endif // __GNUC__
  399. // @@protoc_insertion_point(namespace_scope)
  400. } // namespace message
  401. namespace google {
  402. namespace protobuf {
  403. template <> struct is_proto_enum< ::message::Step_type> : ::google::protobuf::internal::true_type {};
  404. template <>
  405. inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_type>() {
  406. return ::message::Step_type_descriptor();
  407. }
  408. template <> struct is_proto_enum< ::message::Operation_type> : ::google::protobuf::internal::true_type {};
  409. template <>
  410. inline const EnumDescriptor* GetEnumDescriptor< ::message::Operation_type>() {
  411. return ::message::Operation_type_descriptor();
  412. }
  413. } // namespace protobuf
  414. } // namespace google
  415. // @@protoc_insertion_point(global_scope)
  416. #endif // PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED