dispatch_control.pb.h 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_control.proto
  3. #ifndef PROTOBUF_dispatch_5fcontrol_2eproto__INCLUDED
  4. #define PROTOBUF_dispatch_5fcontrol_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_dispatch_5fcontrol_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[4];
  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 InitDefaultsDispatch_plan_request_msgImpl();
  42. void InitDefaultsDispatch_plan_request_msg();
  43. void InitDefaultsDispatch_plan_response_msgImpl();
  44. void InitDefaultsDispatch_plan_response_msg();
  45. void InitDefaultsDispatch_control_request_msgImpl();
  46. void InitDefaultsDispatch_control_request_msg();
  47. void InitDefaultsDispatch_control_response_msgImpl();
  48. void InitDefaultsDispatch_control_response_msg();
  49. inline void InitDefaults() {
  50. InitDefaultsDispatch_plan_request_msg();
  51. InitDefaultsDispatch_plan_response_msg();
  52. InitDefaultsDispatch_control_request_msg();
  53. InitDefaultsDispatch_control_response_msg();
  54. }
  55. } // namespace protobuf_dispatch_5fcontrol_2eproto
  56. namespace message {
  57. class Dispatch_control_request_msg;
  58. class Dispatch_control_request_msgDefaultTypeInternal;
  59. extern Dispatch_control_request_msgDefaultTypeInternal _Dispatch_control_request_msg_default_instance_;
  60. class Dispatch_control_response_msg;
  61. class Dispatch_control_response_msgDefaultTypeInternal;
  62. extern Dispatch_control_response_msgDefaultTypeInternal _Dispatch_control_response_msg_default_instance_;
  63. class Dispatch_plan_request_msg;
  64. class Dispatch_plan_request_msgDefaultTypeInternal;
  65. extern Dispatch_plan_request_msgDefaultTypeInternal _Dispatch_plan_request_msg_default_instance_;
  66. class Dispatch_plan_response_msg;
  67. class Dispatch_plan_response_msgDefaultTypeInternal;
  68. extern Dispatch_plan_response_msgDefaultTypeInternal _Dispatch_plan_response_msg_default_instance_;
  69. } // namespace message
  70. namespace message {
  71. enum Dispatch_task_type {
  72. DISPATCH_PLAN_STORE = 101,
  73. DISPATCH_PLAN_PICKUP = 102,
  74. ROBOT_CATCH_CAR_FROM_INLET = 1,
  75. ROBOT_PUT_CAR_TO_CARRIER = 2,
  76. ROBOT_CATCH_CAR_FROM_CARRIER = 3,
  77. ROBOT_PUT_CAR_TO_OUTLET = 4,
  78. ROBOT_MOVE = 5,
  79. CARRIER_RECEIVE_CAR_FROM_ROBOT = 11,
  80. CARRIER_STORE_CAR_TO_PARKINGSPACE = 12,
  81. CARRIER_STORE_CAR_TO_PARKINGSPACE_EX = 122,
  82. CARRIER_PICKUP_CAR_FROM_PARKINGSPACE = 13,
  83. CARRIER_DELIVER_CAR_TO_ROBOT = 14,
  84. CARRIER_MOVE = 15,
  85. PASSAGEWAY_OPEN_OUTSIDE_DOOR = 21,
  86. PASSAGEWAY_CLOSE_OUTSIDE_DOOR = 22,
  87. PASSAGEWAY_OPEN_INSIDE_DOOR = 23,
  88. PASSAGEWAY_CLOSE_INSIDE_DOOR = 24,
  89. PASSAGEWAY_ROTATE_TURNTABLE_TO_CARRIER = 25,
  90. PASSAGEWAY_ROTATE_TURNTABLE_TO_OUTLET = 26,
  91. DISPATCH_FINISH = 30,
  92. DISPATCH_CANCEL = 31,
  93. DISPATCH_PAUSE = 40,
  94. DISPATCH_RESERVED = 50
  95. };
  96. bool Dispatch_task_type_IsValid(int value);
  97. const Dispatch_task_type Dispatch_task_type_MIN = ROBOT_CATCH_CAR_FROM_INLET;
  98. const Dispatch_task_type Dispatch_task_type_MAX = CARRIER_STORE_CAR_TO_PARKINGSPACE_EX;
  99. const int Dispatch_task_type_ARRAYSIZE = Dispatch_task_type_MAX + 1;
  100. const ::google::protobuf::EnumDescriptor* Dispatch_task_type_descriptor();
  101. inline const ::std::string& Dispatch_task_type_Name(Dispatch_task_type value) {
  102. return ::google::protobuf::internal::NameOfEnum(
  103. Dispatch_task_type_descriptor(), value);
  104. }
  105. inline bool Dispatch_task_type_Parse(
  106. const ::std::string& name, Dispatch_task_type* value) {
  107. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_task_type>(
  108. Dispatch_task_type_descriptor(), name, value);
  109. }
  110. enum Dispatch_device_type {
  111. ROBOT_1 = 101,
  112. ROBOT_2 = 102,
  113. CARRIER_1 = 200,
  114. CARRIER_2 = 207,
  115. CARRIER_3 = 203,
  116. PASSAGEWAY_0 = 300,
  117. PASSAGEWAY_1 = 301,
  118. PASSAGEWAY_2 = 302,
  119. PASSAGEWAY_3 = 303,
  120. PASSAGEWAY_4 = 304,
  121. PASSAGEWAY_5 = 305,
  122. PASSAGEWAY_6 = 306,
  123. PASSAGEWAY_7 = 307
  124. };
  125. bool Dispatch_device_type_IsValid(int value);
  126. const Dispatch_device_type Dispatch_device_type_MIN = ROBOT_1;
  127. const Dispatch_device_type Dispatch_device_type_MAX = PASSAGEWAY_7;
  128. const int Dispatch_device_type_ARRAYSIZE = Dispatch_device_type_MAX + 1;
  129. const ::google::protobuf::EnumDescriptor* Dispatch_device_type_descriptor();
  130. inline const ::std::string& Dispatch_device_type_Name(Dispatch_device_type value) {
  131. return ::google::protobuf::internal::NameOfEnum(
  132. Dispatch_device_type_descriptor(), value);
  133. }
  134. inline bool Dispatch_device_type_Parse(
  135. const ::std::string& name, Dispatch_device_type* value) {
  136. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_device_type>(
  137. Dispatch_device_type_descriptor(), name, value);
  138. }
  139. enum Dispatch_device_target_status {
  140. E_TARGET_STATUS_UNKNOW = 0,
  141. E_TARGET_STATUS_IDLE = 1,
  142. E_TARGET_STATUS_BUSY = 2,
  143. E_TARGET_STATUS_READY = 3,
  144. E_TARGET_STATUS_WAIT = 4
  145. };
  146. bool Dispatch_device_target_status_IsValid(int value);
  147. const Dispatch_device_target_status Dispatch_device_target_status_MIN = E_TARGET_STATUS_UNKNOW;
  148. const Dispatch_device_target_status Dispatch_device_target_status_MAX = E_TARGET_STATUS_WAIT;
  149. const int Dispatch_device_target_status_ARRAYSIZE = Dispatch_device_target_status_MAX + 1;
  150. const ::google::protobuf::EnumDescriptor* Dispatch_device_target_status_descriptor();
  151. inline const ::std::string& Dispatch_device_target_status_Name(Dispatch_device_target_status value) {
  152. return ::google::protobuf::internal::NameOfEnum(
  153. Dispatch_device_target_status_descriptor(), value);
  154. }
  155. inline bool Dispatch_device_target_status_Parse(
  156. const ::std::string& name, Dispatch_device_target_status* value) {
  157. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_device_target_status>(
  158. Dispatch_device_target_status_descriptor(), name, value);
  159. }
  160. enum Dispatch_device_task_status {
  161. E_TASK_CREATED = 0,
  162. E_TASK_ISSUE = 1,
  163. E_TASK_SIGNED = 2,
  164. E_TASK_WORKING = 3,
  165. E_TASK_OVER = 4,
  166. E_TASK_STOP = 5,
  167. E_TASK_ERROR = 11,
  168. E_TASK_CANCEL = 21,
  169. E_TASK_DEAD = 22,
  170. E_TASK_WITHDRAW = 31,
  171. E_TASK_FREE = 32
  172. };
  173. bool Dispatch_device_task_status_IsValid(int value);
  174. const Dispatch_device_task_status Dispatch_device_task_status_MIN = E_TASK_CREATED;
  175. const Dispatch_device_task_status Dispatch_device_task_status_MAX = E_TASK_FREE;
  176. const int Dispatch_device_task_status_ARRAYSIZE = Dispatch_device_task_status_MAX + 1;
  177. const ::google::protobuf::EnumDescriptor* Dispatch_device_task_status_descriptor();
  178. inline const ::std::string& Dispatch_device_task_status_Name(Dispatch_device_task_status value) {
  179. return ::google::protobuf::internal::NameOfEnum(
  180. Dispatch_device_task_status_descriptor(), value);
  181. }
  182. inline bool Dispatch_device_task_status_Parse(
  183. const ::std::string& name, Dispatch_device_task_status* value) {
  184. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_device_task_status>(
  185. Dispatch_device_task_status_descriptor(), name, value);
  186. }
  187. // ===================================================================
  188. class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_plan_request_msg) */ {
  189. public:
  190. Dispatch_plan_request_msg();
  191. virtual ~Dispatch_plan_request_msg();
  192. Dispatch_plan_request_msg(const Dispatch_plan_request_msg& from);
  193. inline Dispatch_plan_request_msg& operator=(const Dispatch_plan_request_msg& from) {
  194. CopyFrom(from);
  195. return *this;
  196. }
  197. #if LANG_CXX11
  198. Dispatch_plan_request_msg(Dispatch_plan_request_msg&& from) noexcept
  199. : Dispatch_plan_request_msg() {
  200. *this = ::std::move(from);
  201. }
  202. inline Dispatch_plan_request_msg& operator=(Dispatch_plan_request_msg&& from) noexcept {
  203. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  204. if (this != &from) InternalSwap(&from);
  205. } else {
  206. CopyFrom(from);
  207. }
  208. return *this;
  209. }
  210. #endif
  211. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  212. return _internal_metadata_.unknown_fields();
  213. }
  214. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  215. return _internal_metadata_.mutable_unknown_fields();
  216. }
  217. static const ::google::protobuf::Descriptor* descriptor();
  218. static const Dispatch_plan_request_msg& default_instance();
  219. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  220. static inline const Dispatch_plan_request_msg* internal_default_instance() {
  221. return reinterpret_cast<const Dispatch_plan_request_msg*>(
  222. &_Dispatch_plan_request_msg_default_instance_);
  223. }
  224. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  225. 0;
  226. void Swap(Dispatch_plan_request_msg* other);
  227. friend void swap(Dispatch_plan_request_msg& a, Dispatch_plan_request_msg& b) {
  228. a.Swap(&b);
  229. }
  230. // implements Message ----------------------------------------------
  231. inline Dispatch_plan_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  232. Dispatch_plan_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  233. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  234. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  235. void CopyFrom(const Dispatch_plan_request_msg& from);
  236. void MergeFrom(const Dispatch_plan_request_msg& from);
  237. void Clear() PROTOBUF_FINAL;
  238. bool IsInitialized() const PROTOBUF_FINAL;
  239. size_t ByteSizeLong() const PROTOBUF_FINAL;
  240. bool MergePartialFromCodedStream(
  241. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  242. void SerializeWithCachedSizes(
  243. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  244. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  245. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  246. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  247. private:
  248. void SharedCtor();
  249. void SharedDtor();
  250. void SetCachedSize(int size) const PROTOBUF_FINAL;
  251. void InternalSwap(Dispatch_plan_request_msg* other);
  252. private:
  253. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  254. return NULL;
  255. }
  256. inline void* MaybeArenaPtr() const {
  257. return NULL;
  258. }
  259. public:
  260. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  261. // nested types ----------------------------------------------------
  262. // accessors -------------------------------------------------------
  263. // required string command_key = 2;
  264. bool has_command_key() const;
  265. void clear_command_key();
  266. static const int kCommandKeyFieldNumber = 2;
  267. const ::std::string& command_key() const;
  268. void set_command_key(const ::std::string& value);
  269. #if LANG_CXX11
  270. void set_command_key(::std::string&& value);
  271. #endif
  272. void set_command_key(const char* value);
  273. void set_command_key(const char* value, size_t size);
  274. ::std::string* mutable_command_key();
  275. ::std::string* release_command_key();
  276. void set_allocated_command_key(::std::string* command_key);
  277. // required .message.Base_info base_info = 1;
  278. bool has_base_info() const;
  279. void clear_base_info();
  280. static const int kBaseInfoFieldNumber = 1;
  281. const ::message::Base_info& base_info() const;
  282. ::message::Base_info* release_base_info();
  283. ::message::Base_info* mutable_base_info();
  284. void set_allocated_base_info(::message::Base_info* base_info);
  285. // optional .message.Error_manager error_manager = 6;
  286. bool has_error_manager() const;
  287. void clear_error_manager();
  288. static const int kErrorManagerFieldNumber = 6;
  289. const ::message::Error_manager& error_manager() const;
  290. ::message::Error_manager* release_error_manager();
  291. ::message::Error_manager* mutable_error_manager();
  292. void set_allocated_error_manager(::message::Error_manager* error_manager);
  293. // optional int32 dispatch_source = 4;
  294. bool has_dispatch_source() const;
  295. void clear_dispatch_source();
  296. static const int kDispatchSourceFieldNumber = 4;
  297. ::google::protobuf::int32 dispatch_source() const;
  298. void set_dispatch_source(::google::protobuf::int32 value);
  299. // optional int32 dispatch_destination = 5;
  300. bool has_dispatch_destination() const;
  301. void clear_dispatch_destination();
  302. static const int kDispatchDestinationFieldNumber = 5;
  303. ::google::protobuf::int32 dispatch_destination() const;
  304. void set_dispatch_destination(::google::protobuf::int32 value);
  305. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  306. bool has_dispatch_task_type() const;
  307. void clear_dispatch_task_type();
  308. static const int kDispatchTaskTypeFieldNumber = 3;
  309. ::message::Dispatch_task_type dispatch_task_type() const;
  310. void set_dispatch_task_type(::message::Dispatch_task_type value);
  311. // @@protoc_insertion_point(class_scope:message.Dispatch_plan_request_msg)
  312. private:
  313. void set_has_base_info();
  314. void clear_has_base_info();
  315. void set_has_command_key();
  316. void clear_has_command_key();
  317. void set_has_dispatch_task_type();
  318. void clear_has_dispatch_task_type();
  319. void set_has_dispatch_source();
  320. void clear_has_dispatch_source();
  321. void set_has_dispatch_destination();
  322. void clear_has_dispatch_destination();
  323. void set_has_error_manager();
  324. void clear_has_error_manager();
  325. // helper for ByteSizeLong()
  326. size_t RequiredFieldsByteSizeFallback() const;
  327. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  328. ::google::protobuf::internal::HasBits<1> _has_bits_;
  329. mutable int _cached_size_;
  330. ::google::protobuf::internal::ArenaStringPtr command_key_;
  331. ::message::Base_info* base_info_;
  332. ::message::Error_manager* error_manager_;
  333. ::google::protobuf::int32 dispatch_source_;
  334. ::google::protobuf::int32 dispatch_destination_;
  335. int dispatch_task_type_;
  336. friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
  337. friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msgImpl();
  338. };
  339. // -------------------------------------------------------------------
  340. class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_plan_response_msg) */ {
  341. public:
  342. Dispatch_plan_response_msg();
  343. virtual ~Dispatch_plan_response_msg();
  344. Dispatch_plan_response_msg(const Dispatch_plan_response_msg& from);
  345. inline Dispatch_plan_response_msg& operator=(const Dispatch_plan_response_msg& from) {
  346. CopyFrom(from);
  347. return *this;
  348. }
  349. #if LANG_CXX11
  350. Dispatch_plan_response_msg(Dispatch_plan_response_msg&& from) noexcept
  351. : Dispatch_plan_response_msg() {
  352. *this = ::std::move(from);
  353. }
  354. inline Dispatch_plan_response_msg& operator=(Dispatch_plan_response_msg&& from) noexcept {
  355. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  356. if (this != &from) InternalSwap(&from);
  357. } else {
  358. CopyFrom(from);
  359. }
  360. return *this;
  361. }
  362. #endif
  363. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  364. return _internal_metadata_.unknown_fields();
  365. }
  366. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  367. return _internal_metadata_.mutable_unknown_fields();
  368. }
  369. static const ::google::protobuf::Descriptor* descriptor();
  370. static const Dispatch_plan_response_msg& default_instance();
  371. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  372. static inline const Dispatch_plan_response_msg* internal_default_instance() {
  373. return reinterpret_cast<const Dispatch_plan_response_msg*>(
  374. &_Dispatch_plan_response_msg_default_instance_);
  375. }
  376. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  377. 1;
  378. void Swap(Dispatch_plan_response_msg* other);
  379. friend void swap(Dispatch_plan_response_msg& a, Dispatch_plan_response_msg& b) {
  380. a.Swap(&b);
  381. }
  382. // implements Message ----------------------------------------------
  383. inline Dispatch_plan_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  384. Dispatch_plan_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  385. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  386. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  387. void CopyFrom(const Dispatch_plan_response_msg& from);
  388. void MergeFrom(const Dispatch_plan_response_msg& from);
  389. void Clear() PROTOBUF_FINAL;
  390. bool IsInitialized() const PROTOBUF_FINAL;
  391. size_t ByteSizeLong() const PROTOBUF_FINAL;
  392. bool MergePartialFromCodedStream(
  393. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  394. void SerializeWithCachedSizes(
  395. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  396. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  397. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  398. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  399. private:
  400. void SharedCtor();
  401. void SharedDtor();
  402. void SetCachedSize(int size) const PROTOBUF_FINAL;
  403. void InternalSwap(Dispatch_plan_response_msg* other);
  404. private:
  405. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  406. return NULL;
  407. }
  408. inline void* MaybeArenaPtr() const {
  409. return NULL;
  410. }
  411. public:
  412. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  413. // nested types ----------------------------------------------------
  414. // accessors -------------------------------------------------------
  415. // required string command_key = 2;
  416. bool has_command_key() const;
  417. void clear_command_key();
  418. static const int kCommandKeyFieldNumber = 2;
  419. const ::std::string& command_key() const;
  420. void set_command_key(const ::std::string& value);
  421. #if LANG_CXX11
  422. void set_command_key(::std::string&& value);
  423. #endif
  424. void set_command_key(const char* value);
  425. void set_command_key(const char* value, size_t size);
  426. ::std::string* mutable_command_key();
  427. ::std::string* release_command_key();
  428. void set_allocated_command_key(::std::string* command_key);
  429. // required .message.Base_info base_info = 1;
  430. bool has_base_info() const;
  431. void clear_base_info();
  432. static const int kBaseInfoFieldNumber = 1;
  433. const ::message::Base_info& base_info() const;
  434. ::message::Base_info* release_base_info();
  435. ::message::Base_info* mutable_base_info();
  436. void set_allocated_base_info(::message::Base_info* base_info);
  437. // optional .message.Error_manager error_manager = 6;
  438. bool has_error_manager() const;
  439. void clear_error_manager();
  440. static const int kErrorManagerFieldNumber = 6;
  441. const ::message::Error_manager& error_manager() const;
  442. ::message::Error_manager* release_error_manager();
  443. ::message::Error_manager* mutable_error_manager();
  444. void set_allocated_error_manager(::message::Error_manager* error_manager);
  445. // optional int32 dispatch_source = 4;
  446. bool has_dispatch_source() const;
  447. void clear_dispatch_source();
  448. static const int kDispatchSourceFieldNumber = 4;
  449. ::google::protobuf::int32 dispatch_source() const;
  450. void set_dispatch_source(::google::protobuf::int32 value);
  451. // optional int32 dispatch_destination = 5;
  452. bool has_dispatch_destination() const;
  453. void clear_dispatch_destination();
  454. static const int kDispatchDestinationFieldNumber = 5;
  455. ::google::protobuf::int32 dispatch_destination() const;
  456. void set_dispatch_destination(::google::protobuf::int32 value);
  457. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  458. bool has_dispatch_task_type() const;
  459. void clear_dispatch_task_type();
  460. static const int kDispatchTaskTypeFieldNumber = 3;
  461. ::message::Dispatch_task_type dispatch_task_type() const;
  462. void set_dispatch_task_type(::message::Dispatch_task_type value);
  463. // @@protoc_insertion_point(class_scope:message.Dispatch_plan_response_msg)
  464. private:
  465. void set_has_base_info();
  466. void clear_has_base_info();
  467. void set_has_command_key();
  468. void clear_has_command_key();
  469. void set_has_dispatch_task_type();
  470. void clear_has_dispatch_task_type();
  471. void set_has_dispatch_source();
  472. void clear_has_dispatch_source();
  473. void set_has_dispatch_destination();
  474. void clear_has_dispatch_destination();
  475. void set_has_error_manager();
  476. void clear_has_error_manager();
  477. // helper for ByteSizeLong()
  478. size_t RequiredFieldsByteSizeFallback() const;
  479. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  480. ::google::protobuf::internal::HasBits<1> _has_bits_;
  481. mutable int _cached_size_;
  482. ::google::protobuf::internal::ArenaStringPtr command_key_;
  483. ::message::Base_info* base_info_;
  484. ::message::Error_manager* error_manager_;
  485. ::google::protobuf::int32 dispatch_source_;
  486. ::google::protobuf::int32 dispatch_destination_;
  487. int dispatch_task_type_;
  488. friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
  489. friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msgImpl();
  490. };
  491. // -------------------------------------------------------------------
  492. class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_control_request_msg) */ {
  493. public:
  494. Dispatch_control_request_msg();
  495. virtual ~Dispatch_control_request_msg();
  496. Dispatch_control_request_msg(const Dispatch_control_request_msg& from);
  497. inline Dispatch_control_request_msg& operator=(const Dispatch_control_request_msg& from) {
  498. CopyFrom(from);
  499. return *this;
  500. }
  501. #if LANG_CXX11
  502. Dispatch_control_request_msg(Dispatch_control_request_msg&& from) noexcept
  503. : Dispatch_control_request_msg() {
  504. *this = ::std::move(from);
  505. }
  506. inline Dispatch_control_request_msg& operator=(Dispatch_control_request_msg&& from) noexcept {
  507. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  508. if (this != &from) InternalSwap(&from);
  509. } else {
  510. CopyFrom(from);
  511. }
  512. return *this;
  513. }
  514. #endif
  515. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  516. return _internal_metadata_.unknown_fields();
  517. }
  518. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  519. return _internal_metadata_.mutable_unknown_fields();
  520. }
  521. static const ::google::protobuf::Descriptor* descriptor();
  522. static const Dispatch_control_request_msg& default_instance();
  523. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  524. static inline const Dispatch_control_request_msg* internal_default_instance() {
  525. return reinterpret_cast<const Dispatch_control_request_msg*>(
  526. &_Dispatch_control_request_msg_default_instance_);
  527. }
  528. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  529. 2;
  530. void Swap(Dispatch_control_request_msg* other);
  531. friend void swap(Dispatch_control_request_msg& a, Dispatch_control_request_msg& b) {
  532. a.Swap(&b);
  533. }
  534. // implements Message ----------------------------------------------
  535. inline Dispatch_control_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  536. Dispatch_control_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  537. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  538. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  539. void CopyFrom(const Dispatch_control_request_msg& from);
  540. void MergeFrom(const Dispatch_control_request_msg& from);
  541. void Clear() PROTOBUF_FINAL;
  542. bool IsInitialized() const PROTOBUF_FINAL;
  543. size_t ByteSizeLong() const PROTOBUF_FINAL;
  544. bool MergePartialFromCodedStream(
  545. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  546. void SerializeWithCachedSizes(
  547. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  548. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  549. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  550. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  551. private:
  552. void SharedCtor();
  553. void SharedDtor();
  554. void SetCachedSize(int size) const PROTOBUF_FINAL;
  555. void InternalSwap(Dispatch_control_request_msg* other);
  556. private:
  557. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  558. return NULL;
  559. }
  560. inline void* MaybeArenaPtr() const {
  561. return NULL;
  562. }
  563. public:
  564. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  565. // nested types ----------------------------------------------------
  566. // accessors -------------------------------------------------------
  567. // required string command_key = 2;
  568. bool has_command_key() const;
  569. void clear_command_key();
  570. static const int kCommandKeyFieldNumber = 2;
  571. const ::std::string& command_key() const;
  572. void set_command_key(const ::std::string& value);
  573. #if LANG_CXX11
  574. void set_command_key(::std::string&& value);
  575. #endif
  576. void set_command_key(const char* value);
  577. void set_command_key(const char* value, size_t size);
  578. ::std::string* mutable_command_key();
  579. ::std::string* release_command_key();
  580. void set_allocated_command_key(::std::string* command_key);
  581. // required .message.Base_info base_info = 1;
  582. bool has_base_info() const;
  583. void clear_base_info();
  584. static const int kBaseInfoFieldNumber = 1;
  585. const ::message::Base_info& base_info() const;
  586. ::message::Base_info* release_base_info();
  587. ::message::Base_info* mutable_base_info();
  588. void set_allocated_base_info(::message::Base_info* base_info);
  589. // optional .message.Error_manager error_manager = 7;
  590. bool has_error_manager() const;
  591. void clear_error_manager();
  592. static const int kErrorManagerFieldNumber = 7;
  593. const ::message::Error_manager& error_manager() const;
  594. ::message::Error_manager* release_error_manager();
  595. ::message::Error_manager* mutable_error_manager();
  596. void set_allocated_error_manager(::message::Error_manager* error_manager);
  597. // optional int32 dispatch_source = 5;
  598. bool has_dispatch_source() const;
  599. void clear_dispatch_source();
  600. static const int kDispatchSourceFieldNumber = 5;
  601. ::google::protobuf::int32 dispatch_source() const;
  602. void set_dispatch_source(::google::protobuf::int32 value);
  603. // optional int32 dispatch_destination = 6;
  604. bool has_dispatch_destination() const;
  605. void clear_dispatch_destination();
  606. static const int kDispatchDestinationFieldNumber = 6;
  607. ::google::protobuf::int32 dispatch_destination() const;
  608. void set_dispatch_destination(::google::protobuf::int32 value);
  609. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  610. bool has_dispatch_device_target_status() const;
  611. void clear_dispatch_device_target_status();
  612. static const int kDispatchDeviceTargetStatusFieldNumber = 8;
  613. ::message::Dispatch_device_target_status dispatch_device_target_status() const;
  614. void set_dispatch_device_target_status(::message::Dispatch_device_target_status value);
  615. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  616. bool has_dispatch_device_task_status() const;
  617. void clear_dispatch_device_task_status();
  618. static const int kDispatchDeviceTaskStatusFieldNumber = 9;
  619. ::message::Dispatch_device_task_status dispatch_device_task_status() const;
  620. void set_dispatch_device_task_status(::message::Dispatch_device_task_status value);
  621. // required .message.Dispatch_task_type dispatch_task_type = 3;
  622. bool has_dispatch_task_type() const;
  623. void clear_dispatch_task_type();
  624. static const int kDispatchTaskTypeFieldNumber = 3;
  625. ::message::Dispatch_task_type dispatch_task_type() const;
  626. void set_dispatch_task_type(::message::Dispatch_task_type value);
  627. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  628. bool has_dispatch_device_type() const;
  629. void clear_dispatch_device_type();
  630. static const int kDispatchDeviceTypeFieldNumber = 4;
  631. ::message::Dispatch_device_type dispatch_device_type() const;
  632. void set_dispatch_device_type(::message::Dispatch_device_type value);
  633. // @@protoc_insertion_point(class_scope:message.Dispatch_control_request_msg)
  634. private:
  635. void set_has_base_info();
  636. void clear_has_base_info();
  637. void set_has_command_key();
  638. void clear_has_command_key();
  639. void set_has_dispatch_task_type();
  640. void clear_has_dispatch_task_type();
  641. void set_has_dispatch_device_type();
  642. void clear_has_dispatch_device_type();
  643. void set_has_dispatch_source();
  644. void clear_has_dispatch_source();
  645. void set_has_dispatch_destination();
  646. void clear_has_dispatch_destination();
  647. void set_has_error_manager();
  648. void clear_has_error_manager();
  649. void set_has_dispatch_device_target_status();
  650. void clear_has_dispatch_device_target_status();
  651. void set_has_dispatch_device_task_status();
  652. void clear_has_dispatch_device_task_status();
  653. // helper for ByteSizeLong()
  654. size_t RequiredFieldsByteSizeFallback() const;
  655. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  656. ::google::protobuf::internal::HasBits<1> _has_bits_;
  657. mutable int _cached_size_;
  658. ::google::protobuf::internal::ArenaStringPtr command_key_;
  659. ::message::Base_info* base_info_;
  660. ::message::Error_manager* error_manager_;
  661. ::google::protobuf::int32 dispatch_source_;
  662. ::google::protobuf::int32 dispatch_destination_;
  663. int dispatch_device_target_status_;
  664. int dispatch_device_task_status_;
  665. int dispatch_task_type_;
  666. int dispatch_device_type_;
  667. friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
  668. friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msgImpl();
  669. };
  670. // -------------------------------------------------------------------
  671. class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_control_response_msg) */ {
  672. public:
  673. Dispatch_control_response_msg();
  674. virtual ~Dispatch_control_response_msg();
  675. Dispatch_control_response_msg(const Dispatch_control_response_msg& from);
  676. inline Dispatch_control_response_msg& operator=(const Dispatch_control_response_msg& from) {
  677. CopyFrom(from);
  678. return *this;
  679. }
  680. #if LANG_CXX11
  681. Dispatch_control_response_msg(Dispatch_control_response_msg&& from) noexcept
  682. : Dispatch_control_response_msg() {
  683. *this = ::std::move(from);
  684. }
  685. inline Dispatch_control_response_msg& operator=(Dispatch_control_response_msg&& from) noexcept {
  686. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  687. if (this != &from) InternalSwap(&from);
  688. } else {
  689. CopyFrom(from);
  690. }
  691. return *this;
  692. }
  693. #endif
  694. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  695. return _internal_metadata_.unknown_fields();
  696. }
  697. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  698. return _internal_metadata_.mutable_unknown_fields();
  699. }
  700. static const ::google::protobuf::Descriptor* descriptor();
  701. static const Dispatch_control_response_msg& default_instance();
  702. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  703. static inline const Dispatch_control_response_msg* internal_default_instance() {
  704. return reinterpret_cast<const Dispatch_control_response_msg*>(
  705. &_Dispatch_control_response_msg_default_instance_);
  706. }
  707. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  708. 3;
  709. void Swap(Dispatch_control_response_msg* other);
  710. friend void swap(Dispatch_control_response_msg& a, Dispatch_control_response_msg& b) {
  711. a.Swap(&b);
  712. }
  713. // implements Message ----------------------------------------------
  714. inline Dispatch_control_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  715. Dispatch_control_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  716. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  717. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  718. void CopyFrom(const Dispatch_control_response_msg& from);
  719. void MergeFrom(const Dispatch_control_response_msg& from);
  720. void Clear() PROTOBUF_FINAL;
  721. bool IsInitialized() const PROTOBUF_FINAL;
  722. size_t ByteSizeLong() const PROTOBUF_FINAL;
  723. bool MergePartialFromCodedStream(
  724. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  725. void SerializeWithCachedSizes(
  726. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  727. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  728. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  729. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  730. private:
  731. void SharedCtor();
  732. void SharedDtor();
  733. void SetCachedSize(int size) const PROTOBUF_FINAL;
  734. void InternalSwap(Dispatch_control_response_msg* other);
  735. private:
  736. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  737. return NULL;
  738. }
  739. inline void* MaybeArenaPtr() const {
  740. return NULL;
  741. }
  742. public:
  743. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  744. // nested types ----------------------------------------------------
  745. // accessors -------------------------------------------------------
  746. // required string command_key = 2;
  747. bool has_command_key() const;
  748. void clear_command_key();
  749. static const int kCommandKeyFieldNumber = 2;
  750. const ::std::string& command_key() const;
  751. void set_command_key(const ::std::string& value);
  752. #if LANG_CXX11
  753. void set_command_key(::std::string&& value);
  754. #endif
  755. void set_command_key(const char* value);
  756. void set_command_key(const char* value, size_t size);
  757. ::std::string* mutable_command_key();
  758. ::std::string* release_command_key();
  759. void set_allocated_command_key(::std::string* command_key);
  760. // required .message.Base_info base_info = 1;
  761. bool has_base_info() const;
  762. void clear_base_info();
  763. static const int kBaseInfoFieldNumber = 1;
  764. const ::message::Base_info& base_info() const;
  765. ::message::Base_info* release_base_info();
  766. ::message::Base_info* mutable_base_info();
  767. void set_allocated_base_info(::message::Base_info* base_info);
  768. // optional .message.Error_manager error_manager = 7;
  769. bool has_error_manager() const;
  770. void clear_error_manager();
  771. static const int kErrorManagerFieldNumber = 7;
  772. const ::message::Error_manager& error_manager() const;
  773. ::message::Error_manager* release_error_manager();
  774. ::message::Error_manager* mutable_error_manager();
  775. void set_allocated_error_manager(::message::Error_manager* error_manager);
  776. // optional int32 dispatch_source = 5;
  777. bool has_dispatch_source() const;
  778. void clear_dispatch_source();
  779. static const int kDispatchSourceFieldNumber = 5;
  780. ::google::protobuf::int32 dispatch_source() const;
  781. void set_dispatch_source(::google::protobuf::int32 value);
  782. // optional int32 dispatch_destination = 6;
  783. bool has_dispatch_destination() const;
  784. void clear_dispatch_destination();
  785. static const int kDispatchDestinationFieldNumber = 6;
  786. ::google::protobuf::int32 dispatch_destination() const;
  787. void set_dispatch_destination(::google::protobuf::int32 value);
  788. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  789. bool has_dispatch_device_target_status() const;
  790. void clear_dispatch_device_target_status();
  791. static const int kDispatchDeviceTargetStatusFieldNumber = 8;
  792. ::message::Dispatch_device_target_status dispatch_device_target_status() const;
  793. void set_dispatch_device_target_status(::message::Dispatch_device_target_status value);
  794. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  795. bool has_dispatch_device_task_status() const;
  796. void clear_dispatch_device_task_status();
  797. static const int kDispatchDeviceTaskStatusFieldNumber = 9;
  798. ::message::Dispatch_device_task_status dispatch_device_task_status() const;
  799. void set_dispatch_device_task_status(::message::Dispatch_device_task_status value);
  800. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  801. bool has_dispatch_task_type() const;
  802. void clear_dispatch_task_type();
  803. static const int kDispatchTaskTypeFieldNumber = 3;
  804. ::message::Dispatch_task_type dispatch_task_type() const;
  805. void set_dispatch_task_type(::message::Dispatch_task_type value);
  806. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  807. bool has_dispatch_device_type() const;
  808. void clear_dispatch_device_type();
  809. static const int kDispatchDeviceTypeFieldNumber = 4;
  810. ::message::Dispatch_device_type dispatch_device_type() const;
  811. void set_dispatch_device_type(::message::Dispatch_device_type value);
  812. // @@protoc_insertion_point(class_scope:message.Dispatch_control_response_msg)
  813. private:
  814. void set_has_base_info();
  815. void clear_has_base_info();
  816. void set_has_command_key();
  817. void clear_has_command_key();
  818. void set_has_dispatch_task_type();
  819. void clear_has_dispatch_task_type();
  820. void set_has_dispatch_device_type();
  821. void clear_has_dispatch_device_type();
  822. void set_has_dispatch_source();
  823. void clear_has_dispatch_source();
  824. void set_has_dispatch_destination();
  825. void clear_has_dispatch_destination();
  826. void set_has_error_manager();
  827. void clear_has_error_manager();
  828. void set_has_dispatch_device_target_status();
  829. void clear_has_dispatch_device_target_status();
  830. void set_has_dispatch_device_task_status();
  831. void clear_has_dispatch_device_task_status();
  832. // helper for ByteSizeLong()
  833. size_t RequiredFieldsByteSizeFallback() const;
  834. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  835. ::google::protobuf::internal::HasBits<1> _has_bits_;
  836. mutable int _cached_size_;
  837. ::google::protobuf::internal::ArenaStringPtr command_key_;
  838. ::message::Base_info* base_info_;
  839. ::message::Error_manager* error_manager_;
  840. ::google::protobuf::int32 dispatch_source_;
  841. ::google::protobuf::int32 dispatch_destination_;
  842. int dispatch_device_target_status_;
  843. int dispatch_device_task_status_;
  844. int dispatch_task_type_;
  845. int dispatch_device_type_;
  846. friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
  847. friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msgImpl();
  848. };
  849. // ===================================================================
  850. // ===================================================================
  851. #ifdef __GNUC__
  852. #pragma GCC diagnostic push
  853. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  854. #endif // __GNUC__
  855. // Dispatch_plan_request_msg
  856. // required .message.Base_info base_info = 1;
  857. inline bool Dispatch_plan_request_msg::has_base_info() const {
  858. return (_has_bits_[0] & 0x00000002u) != 0;
  859. }
  860. inline void Dispatch_plan_request_msg::set_has_base_info() {
  861. _has_bits_[0] |= 0x00000002u;
  862. }
  863. inline void Dispatch_plan_request_msg::clear_has_base_info() {
  864. _has_bits_[0] &= ~0x00000002u;
  865. }
  866. inline const ::message::Base_info& Dispatch_plan_request_msg::base_info() const {
  867. const ::message::Base_info* p = base_info_;
  868. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.base_info)
  869. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  870. &::message::_Base_info_default_instance_);
  871. }
  872. inline ::message::Base_info* Dispatch_plan_request_msg::release_base_info() {
  873. // @@protoc_insertion_point(field_release:message.Dispatch_plan_request_msg.base_info)
  874. clear_has_base_info();
  875. ::message::Base_info* temp = base_info_;
  876. base_info_ = NULL;
  877. return temp;
  878. }
  879. inline ::message::Base_info* Dispatch_plan_request_msg::mutable_base_info() {
  880. set_has_base_info();
  881. if (base_info_ == NULL) {
  882. base_info_ = new ::message::Base_info;
  883. }
  884. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_request_msg.base_info)
  885. return base_info_;
  886. }
  887. inline void Dispatch_plan_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  888. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  889. if (message_arena == NULL) {
  890. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  891. }
  892. if (base_info) {
  893. ::google::protobuf::Arena* submessage_arena = NULL;
  894. if (message_arena != submessage_arena) {
  895. base_info = ::google::protobuf::internal::GetOwnedMessage(
  896. message_arena, base_info, submessage_arena);
  897. }
  898. set_has_base_info();
  899. } else {
  900. clear_has_base_info();
  901. }
  902. base_info_ = base_info;
  903. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_request_msg.base_info)
  904. }
  905. // required string command_key = 2;
  906. inline bool Dispatch_plan_request_msg::has_command_key() const {
  907. return (_has_bits_[0] & 0x00000001u) != 0;
  908. }
  909. inline void Dispatch_plan_request_msg::set_has_command_key() {
  910. _has_bits_[0] |= 0x00000001u;
  911. }
  912. inline void Dispatch_plan_request_msg::clear_has_command_key() {
  913. _has_bits_[0] &= ~0x00000001u;
  914. }
  915. inline void Dispatch_plan_request_msg::clear_command_key() {
  916. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  917. clear_has_command_key();
  918. }
  919. inline const ::std::string& Dispatch_plan_request_msg::command_key() const {
  920. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.command_key)
  921. return command_key_.GetNoArena();
  922. }
  923. inline void Dispatch_plan_request_msg::set_command_key(const ::std::string& value) {
  924. set_has_command_key();
  925. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  926. // @@protoc_insertion_point(field_set:message.Dispatch_plan_request_msg.command_key)
  927. }
  928. #if LANG_CXX11
  929. inline void Dispatch_plan_request_msg::set_command_key(::std::string&& value) {
  930. set_has_command_key();
  931. command_key_.SetNoArena(
  932. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  933. // @@protoc_insertion_point(field_set_rvalue:message.Dispatch_plan_request_msg.command_key)
  934. }
  935. #endif
  936. inline void Dispatch_plan_request_msg::set_command_key(const char* value) {
  937. GOOGLE_DCHECK(value != NULL);
  938. set_has_command_key();
  939. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  940. // @@protoc_insertion_point(field_set_char:message.Dispatch_plan_request_msg.command_key)
  941. }
  942. inline void Dispatch_plan_request_msg::set_command_key(const char* value, size_t size) {
  943. set_has_command_key();
  944. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  945. ::std::string(reinterpret_cast<const char*>(value), size));
  946. // @@protoc_insertion_point(field_set_pointer:message.Dispatch_plan_request_msg.command_key)
  947. }
  948. inline ::std::string* Dispatch_plan_request_msg::mutable_command_key() {
  949. set_has_command_key();
  950. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_request_msg.command_key)
  951. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  952. }
  953. inline ::std::string* Dispatch_plan_request_msg::release_command_key() {
  954. // @@protoc_insertion_point(field_release:message.Dispatch_plan_request_msg.command_key)
  955. clear_has_command_key();
  956. return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  957. }
  958. inline void Dispatch_plan_request_msg::set_allocated_command_key(::std::string* command_key) {
  959. if (command_key != NULL) {
  960. set_has_command_key();
  961. } else {
  962. clear_has_command_key();
  963. }
  964. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  965. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_request_msg.command_key)
  966. }
  967. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  968. inline bool Dispatch_plan_request_msg::has_dispatch_task_type() const {
  969. return (_has_bits_[0] & 0x00000020u) != 0;
  970. }
  971. inline void Dispatch_plan_request_msg::set_has_dispatch_task_type() {
  972. _has_bits_[0] |= 0x00000020u;
  973. }
  974. inline void Dispatch_plan_request_msg::clear_has_dispatch_task_type() {
  975. _has_bits_[0] &= ~0x00000020u;
  976. }
  977. inline void Dispatch_plan_request_msg::clear_dispatch_task_type() {
  978. dispatch_task_type_ = 101;
  979. clear_has_dispatch_task_type();
  980. }
  981. inline ::message::Dispatch_task_type Dispatch_plan_request_msg::dispatch_task_type() const {
  982. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.dispatch_task_type)
  983. return static_cast< ::message::Dispatch_task_type >(dispatch_task_type_);
  984. }
  985. inline void Dispatch_plan_request_msg::set_dispatch_task_type(::message::Dispatch_task_type value) {
  986. assert(::message::Dispatch_task_type_IsValid(value));
  987. set_has_dispatch_task_type();
  988. dispatch_task_type_ = value;
  989. // @@protoc_insertion_point(field_set:message.Dispatch_plan_request_msg.dispatch_task_type)
  990. }
  991. // optional int32 dispatch_source = 4;
  992. inline bool Dispatch_plan_request_msg::has_dispatch_source() const {
  993. return (_has_bits_[0] & 0x00000008u) != 0;
  994. }
  995. inline void Dispatch_plan_request_msg::set_has_dispatch_source() {
  996. _has_bits_[0] |= 0x00000008u;
  997. }
  998. inline void Dispatch_plan_request_msg::clear_has_dispatch_source() {
  999. _has_bits_[0] &= ~0x00000008u;
  1000. }
  1001. inline void Dispatch_plan_request_msg::clear_dispatch_source() {
  1002. dispatch_source_ = 0;
  1003. clear_has_dispatch_source();
  1004. }
  1005. inline ::google::protobuf::int32 Dispatch_plan_request_msg::dispatch_source() const {
  1006. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.dispatch_source)
  1007. return dispatch_source_;
  1008. }
  1009. inline void Dispatch_plan_request_msg::set_dispatch_source(::google::protobuf::int32 value) {
  1010. set_has_dispatch_source();
  1011. dispatch_source_ = value;
  1012. // @@protoc_insertion_point(field_set:message.Dispatch_plan_request_msg.dispatch_source)
  1013. }
  1014. // optional int32 dispatch_destination = 5;
  1015. inline bool Dispatch_plan_request_msg::has_dispatch_destination() const {
  1016. return (_has_bits_[0] & 0x00000010u) != 0;
  1017. }
  1018. inline void Dispatch_plan_request_msg::set_has_dispatch_destination() {
  1019. _has_bits_[0] |= 0x00000010u;
  1020. }
  1021. inline void Dispatch_plan_request_msg::clear_has_dispatch_destination() {
  1022. _has_bits_[0] &= ~0x00000010u;
  1023. }
  1024. inline void Dispatch_plan_request_msg::clear_dispatch_destination() {
  1025. dispatch_destination_ = 0;
  1026. clear_has_dispatch_destination();
  1027. }
  1028. inline ::google::protobuf::int32 Dispatch_plan_request_msg::dispatch_destination() const {
  1029. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.dispatch_destination)
  1030. return dispatch_destination_;
  1031. }
  1032. inline void Dispatch_plan_request_msg::set_dispatch_destination(::google::protobuf::int32 value) {
  1033. set_has_dispatch_destination();
  1034. dispatch_destination_ = value;
  1035. // @@protoc_insertion_point(field_set:message.Dispatch_plan_request_msg.dispatch_destination)
  1036. }
  1037. // optional .message.Error_manager error_manager = 6;
  1038. inline bool Dispatch_plan_request_msg::has_error_manager() const {
  1039. return (_has_bits_[0] & 0x00000004u) != 0;
  1040. }
  1041. inline void Dispatch_plan_request_msg::set_has_error_manager() {
  1042. _has_bits_[0] |= 0x00000004u;
  1043. }
  1044. inline void Dispatch_plan_request_msg::clear_has_error_manager() {
  1045. _has_bits_[0] &= ~0x00000004u;
  1046. }
  1047. inline const ::message::Error_manager& Dispatch_plan_request_msg::error_manager() const {
  1048. const ::message::Error_manager* p = error_manager_;
  1049. // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.error_manager)
  1050. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1051. &::message::_Error_manager_default_instance_);
  1052. }
  1053. inline ::message::Error_manager* Dispatch_plan_request_msg::release_error_manager() {
  1054. // @@protoc_insertion_point(field_release:message.Dispatch_plan_request_msg.error_manager)
  1055. clear_has_error_manager();
  1056. ::message::Error_manager* temp = error_manager_;
  1057. error_manager_ = NULL;
  1058. return temp;
  1059. }
  1060. inline ::message::Error_manager* Dispatch_plan_request_msg::mutable_error_manager() {
  1061. set_has_error_manager();
  1062. if (error_manager_ == NULL) {
  1063. error_manager_ = new ::message::Error_manager;
  1064. }
  1065. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_request_msg.error_manager)
  1066. return error_manager_;
  1067. }
  1068. inline void Dispatch_plan_request_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1069. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1070. if (message_arena == NULL) {
  1071. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1072. }
  1073. if (error_manager) {
  1074. ::google::protobuf::Arena* submessage_arena = NULL;
  1075. if (message_arena != submessage_arena) {
  1076. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1077. message_arena, error_manager, submessage_arena);
  1078. }
  1079. set_has_error_manager();
  1080. } else {
  1081. clear_has_error_manager();
  1082. }
  1083. error_manager_ = error_manager;
  1084. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_request_msg.error_manager)
  1085. }
  1086. // -------------------------------------------------------------------
  1087. // Dispatch_plan_response_msg
  1088. // required .message.Base_info base_info = 1;
  1089. inline bool Dispatch_plan_response_msg::has_base_info() const {
  1090. return (_has_bits_[0] & 0x00000002u) != 0;
  1091. }
  1092. inline void Dispatch_plan_response_msg::set_has_base_info() {
  1093. _has_bits_[0] |= 0x00000002u;
  1094. }
  1095. inline void Dispatch_plan_response_msg::clear_has_base_info() {
  1096. _has_bits_[0] &= ~0x00000002u;
  1097. }
  1098. inline const ::message::Base_info& Dispatch_plan_response_msg::base_info() const {
  1099. const ::message::Base_info* p = base_info_;
  1100. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.base_info)
  1101. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1102. &::message::_Base_info_default_instance_);
  1103. }
  1104. inline ::message::Base_info* Dispatch_plan_response_msg::release_base_info() {
  1105. // @@protoc_insertion_point(field_release:message.Dispatch_plan_response_msg.base_info)
  1106. clear_has_base_info();
  1107. ::message::Base_info* temp = base_info_;
  1108. base_info_ = NULL;
  1109. return temp;
  1110. }
  1111. inline ::message::Base_info* Dispatch_plan_response_msg::mutable_base_info() {
  1112. set_has_base_info();
  1113. if (base_info_ == NULL) {
  1114. base_info_ = new ::message::Base_info;
  1115. }
  1116. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_response_msg.base_info)
  1117. return base_info_;
  1118. }
  1119. inline void Dispatch_plan_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1120. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1121. if (message_arena == NULL) {
  1122. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  1123. }
  1124. if (base_info) {
  1125. ::google::protobuf::Arena* submessage_arena = NULL;
  1126. if (message_arena != submessage_arena) {
  1127. base_info = ::google::protobuf::internal::GetOwnedMessage(
  1128. message_arena, base_info, submessage_arena);
  1129. }
  1130. set_has_base_info();
  1131. } else {
  1132. clear_has_base_info();
  1133. }
  1134. base_info_ = base_info;
  1135. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_response_msg.base_info)
  1136. }
  1137. // required string command_key = 2;
  1138. inline bool Dispatch_plan_response_msg::has_command_key() const {
  1139. return (_has_bits_[0] & 0x00000001u) != 0;
  1140. }
  1141. inline void Dispatch_plan_response_msg::set_has_command_key() {
  1142. _has_bits_[0] |= 0x00000001u;
  1143. }
  1144. inline void Dispatch_plan_response_msg::clear_has_command_key() {
  1145. _has_bits_[0] &= ~0x00000001u;
  1146. }
  1147. inline void Dispatch_plan_response_msg::clear_command_key() {
  1148. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1149. clear_has_command_key();
  1150. }
  1151. inline const ::std::string& Dispatch_plan_response_msg::command_key() const {
  1152. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.command_key)
  1153. return command_key_.GetNoArena();
  1154. }
  1155. inline void Dispatch_plan_response_msg::set_command_key(const ::std::string& value) {
  1156. set_has_command_key();
  1157. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1158. // @@protoc_insertion_point(field_set:message.Dispatch_plan_response_msg.command_key)
  1159. }
  1160. #if LANG_CXX11
  1161. inline void Dispatch_plan_response_msg::set_command_key(::std::string&& value) {
  1162. set_has_command_key();
  1163. command_key_.SetNoArena(
  1164. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1165. // @@protoc_insertion_point(field_set_rvalue:message.Dispatch_plan_response_msg.command_key)
  1166. }
  1167. #endif
  1168. inline void Dispatch_plan_response_msg::set_command_key(const char* value) {
  1169. GOOGLE_DCHECK(value != NULL);
  1170. set_has_command_key();
  1171. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1172. // @@protoc_insertion_point(field_set_char:message.Dispatch_plan_response_msg.command_key)
  1173. }
  1174. inline void Dispatch_plan_response_msg::set_command_key(const char* value, size_t size) {
  1175. set_has_command_key();
  1176. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1177. ::std::string(reinterpret_cast<const char*>(value), size));
  1178. // @@protoc_insertion_point(field_set_pointer:message.Dispatch_plan_response_msg.command_key)
  1179. }
  1180. inline ::std::string* Dispatch_plan_response_msg::mutable_command_key() {
  1181. set_has_command_key();
  1182. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_response_msg.command_key)
  1183. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1184. }
  1185. inline ::std::string* Dispatch_plan_response_msg::release_command_key() {
  1186. // @@protoc_insertion_point(field_release:message.Dispatch_plan_response_msg.command_key)
  1187. clear_has_command_key();
  1188. return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1189. }
  1190. inline void Dispatch_plan_response_msg::set_allocated_command_key(::std::string* command_key) {
  1191. if (command_key != NULL) {
  1192. set_has_command_key();
  1193. } else {
  1194. clear_has_command_key();
  1195. }
  1196. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  1197. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_response_msg.command_key)
  1198. }
  1199. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1200. inline bool Dispatch_plan_response_msg::has_dispatch_task_type() const {
  1201. return (_has_bits_[0] & 0x00000020u) != 0;
  1202. }
  1203. inline void Dispatch_plan_response_msg::set_has_dispatch_task_type() {
  1204. _has_bits_[0] |= 0x00000020u;
  1205. }
  1206. inline void Dispatch_plan_response_msg::clear_has_dispatch_task_type() {
  1207. _has_bits_[0] &= ~0x00000020u;
  1208. }
  1209. inline void Dispatch_plan_response_msg::clear_dispatch_task_type() {
  1210. dispatch_task_type_ = 101;
  1211. clear_has_dispatch_task_type();
  1212. }
  1213. inline ::message::Dispatch_task_type Dispatch_plan_response_msg::dispatch_task_type() const {
  1214. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.dispatch_task_type)
  1215. return static_cast< ::message::Dispatch_task_type >(dispatch_task_type_);
  1216. }
  1217. inline void Dispatch_plan_response_msg::set_dispatch_task_type(::message::Dispatch_task_type value) {
  1218. assert(::message::Dispatch_task_type_IsValid(value));
  1219. set_has_dispatch_task_type();
  1220. dispatch_task_type_ = value;
  1221. // @@protoc_insertion_point(field_set:message.Dispatch_plan_response_msg.dispatch_task_type)
  1222. }
  1223. // optional int32 dispatch_source = 4;
  1224. inline bool Dispatch_plan_response_msg::has_dispatch_source() const {
  1225. return (_has_bits_[0] & 0x00000008u) != 0;
  1226. }
  1227. inline void Dispatch_plan_response_msg::set_has_dispatch_source() {
  1228. _has_bits_[0] |= 0x00000008u;
  1229. }
  1230. inline void Dispatch_plan_response_msg::clear_has_dispatch_source() {
  1231. _has_bits_[0] &= ~0x00000008u;
  1232. }
  1233. inline void Dispatch_plan_response_msg::clear_dispatch_source() {
  1234. dispatch_source_ = 0;
  1235. clear_has_dispatch_source();
  1236. }
  1237. inline ::google::protobuf::int32 Dispatch_plan_response_msg::dispatch_source() const {
  1238. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.dispatch_source)
  1239. return dispatch_source_;
  1240. }
  1241. inline void Dispatch_plan_response_msg::set_dispatch_source(::google::protobuf::int32 value) {
  1242. set_has_dispatch_source();
  1243. dispatch_source_ = value;
  1244. // @@protoc_insertion_point(field_set:message.Dispatch_plan_response_msg.dispatch_source)
  1245. }
  1246. // optional int32 dispatch_destination = 5;
  1247. inline bool Dispatch_plan_response_msg::has_dispatch_destination() const {
  1248. return (_has_bits_[0] & 0x00000010u) != 0;
  1249. }
  1250. inline void Dispatch_plan_response_msg::set_has_dispatch_destination() {
  1251. _has_bits_[0] |= 0x00000010u;
  1252. }
  1253. inline void Dispatch_plan_response_msg::clear_has_dispatch_destination() {
  1254. _has_bits_[0] &= ~0x00000010u;
  1255. }
  1256. inline void Dispatch_plan_response_msg::clear_dispatch_destination() {
  1257. dispatch_destination_ = 0;
  1258. clear_has_dispatch_destination();
  1259. }
  1260. inline ::google::protobuf::int32 Dispatch_plan_response_msg::dispatch_destination() const {
  1261. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.dispatch_destination)
  1262. return dispatch_destination_;
  1263. }
  1264. inline void Dispatch_plan_response_msg::set_dispatch_destination(::google::protobuf::int32 value) {
  1265. set_has_dispatch_destination();
  1266. dispatch_destination_ = value;
  1267. // @@protoc_insertion_point(field_set:message.Dispatch_plan_response_msg.dispatch_destination)
  1268. }
  1269. // optional .message.Error_manager error_manager = 6;
  1270. inline bool Dispatch_plan_response_msg::has_error_manager() const {
  1271. return (_has_bits_[0] & 0x00000004u) != 0;
  1272. }
  1273. inline void Dispatch_plan_response_msg::set_has_error_manager() {
  1274. _has_bits_[0] |= 0x00000004u;
  1275. }
  1276. inline void Dispatch_plan_response_msg::clear_has_error_manager() {
  1277. _has_bits_[0] &= ~0x00000004u;
  1278. }
  1279. inline const ::message::Error_manager& Dispatch_plan_response_msg::error_manager() const {
  1280. const ::message::Error_manager* p = error_manager_;
  1281. // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.error_manager)
  1282. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1283. &::message::_Error_manager_default_instance_);
  1284. }
  1285. inline ::message::Error_manager* Dispatch_plan_response_msg::release_error_manager() {
  1286. // @@protoc_insertion_point(field_release:message.Dispatch_plan_response_msg.error_manager)
  1287. clear_has_error_manager();
  1288. ::message::Error_manager* temp = error_manager_;
  1289. error_manager_ = NULL;
  1290. return temp;
  1291. }
  1292. inline ::message::Error_manager* Dispatch_plan_response_msg::mutable_error_manager() {
  1293. set_has_error_manager();
  1294. if (error_manager_ == NULL) {
  1295. error_manager_ = new ::message::Error_manager;
  1296. }
  1297. // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_response_msg.error_manager)
  1298. return error_manager_;
  1299. }
  1300. inline void Dispatch_plan_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1301. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1302. if (message_arena == NULL) {
  1303. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1304. }
  1305. if (error_manager) {
  1306. ::google::protobuf::Arena* submessage_arena = NULL;
  1307. if (message_arena != submessage_arena) {
  1308. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1309. message_arena, error_manager, submessage_arena);
  1310. }
  1311. set_has_error_manager();
  1312. } else {
  1313. clear_has_error_manager();
  1314. }
  1315. error_manager_ = error_manager;
  1316. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_plan_response_msg.error_manager)
  1317. }
  1318. // -------------------------------------------------------------------
  1319. // Dispatch_control_request_msg
  1320. // required .message.Base_info base_info = 1;
  1321. inline bool Dispatch_control_request_msg::has_base_info() const {
  1322. return (_has_bits_[0] & 0x00000002u) != 0;
  1323. }
  1324. inline void Dispatch_control_request_msg::set_has_base_info() {
  1325. _has_bits_[0] |= 0x00000002u;
  1326. }
  1327. inline void Dispatch_control_request_msg::clear_has_base_info() {
  1328. _has_bits_[0] &= ~0x00000002u;
  1329. }
  1330. inline const ::message::Base_info& Dispatch_control_request_msg::base_info() const {
  1331. const ::message::Base_info* p = base_info_;
  1332. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.base_info)
  1333. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1334. &::message::_Base_info_default_instance_);
  1335. }
  1336. inline ::message::Base_info* Dispatch_control_request_msg::release_base_info() {
  1337. // @@protoc_insertion_point(field_release:message.Dispatch_control_request_msg.base_info)
  1338. clear_has_base_info();
  1339. ::message::Base_info* temp = base_info_;
  1340. base_info_ = NULL;
  1341. return temp;
  1342. }
  1343. inline ::message::Base_info* Dispatch_control_request_msg::mutable_base_info() {
  1344. set_has_base_info();
  1345. if (base_info_ == NULL) {
  1346. base_info_ = new ::message::Base_info;
  1347. }
  1348. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_request_msg.base_info)
  1349. return base_info_;
  1350. }
  1351. inline void Dispatch_control_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1352. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1353. if (message_arena == NULL) {
  1354. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  1355. }
  1356. if (base_info) {
  1357. ::google::protobuf::Arena* submessage_arena = NULL;
  1358. if (message_arena != submessage_arena) {
  1359. base_info = ::google::protobuf::internal::GetOwnedMessage(
  1360. message_arena, base_info, submessage_arena);
  1361. }
  1362. set_has_base_info();
  1363. } else {
  1364. clear_has_base_info();
  1365. }
  1366. base_info_ = base_info;
  1367. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_request_msg.base_info)
  1368. }
  1369. // required string command_key = 2;
  1370. inline bool Dispatch_control_request_msg::has_command_key() const {
  1371. return (_has_bits_[0] & 0x00000001u) != 0;
  1372. }
  1373. inline void Dispatch_control_request_msg::set_has_command_key() {
  1374. _has_bits_[0] |= 0x00000001u;
  1375. }
  1376. inline void Dispatch_control_request_msg::clear_has_command_key() {
  1377. _has_bits_[0] &= ~0x00000001u;
  1378. }
  1379. inline void Dispatch_control_request_msg::clear_command_key() {
  1380. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1381. clear_has_command_key();
  1382. }
  1383. inline const ::std::string& Dispatch_control_request_msg::command_key() const {
  1384. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.command_key)
  1385. return command_key_.GetNoArena();
  1386. }
  1387. inline void Dispatch_control_request_msg::set_command_key(const ::std::string& value) {
  1388. set_has_command_key();
  1389. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1390. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.command_key)
  1391. }
  1392. #if LANG_CXX11
  1393. inline void Dispatch_control_request_msg::set_command_key(::std::string&& value) {
  1394. set_has_command_key();
  1395. command_key_.SetNoArena(
  1396. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1397. // @@protoc_insertion_point(field_set_rvalue:message.Dispatch_control_request_msg.command_key)
  1398. }
  1399. #endif
  1400. inline void Dispatch_control_request_msg::set_command_key(const char* value) {
  1401. GOOGLE_DCHECK(value != NULL);
  1402. set_has_command_key();
  1403. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1404. // @@protoc_insertion_point(field_set_char:message.Dispatch_control_request_msg.command_key)
  1405. }
  1406. inline void Dispatch_control_request_msg::set_command_key(const char* value, size_t size) {
  1407. set_has_command_key();
  1408. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1409. ::std::string(reinterpret_cast<const char*>(value), size));
  1410. // @@protoc_insertion_point(field_set_pointer:message.Dispatch_control_request_msg.command_key)
  1411. }
  1412. inline ::std::string* Dispatch_control_request_msg::mutable_command_key() {
  1413. set_has_command_key();
  1414. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_request_msg.command_key)
  1415. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1416. }
  1417. inline ::std::string* Dispatch_control_request_msg::release_command_key() {
  1418. // @@protoc_insertion_point(field_release:message.Dispatch_control_request_msg.command_key)
  1419. clear_has_command_key();
  1420. return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1421. }
  1422. inline void Dispatch_control_request_msg::set_allocated_command_key(::std::string* command_key) {
  1423. if (command_key != NULL) {
  1424. set_has_command_key();
  1425. } else {
  1426. clear_has_command_key();
  1427. }
  1428. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  1429. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_request_msg.command_key)
  1430. }
  1431. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1432. inline bool Dispatch_control_request_msg::has_dispatch_task_type() const {
  1433. return (_has_bits_[0] & 0x00000080u) != 0;
  1434. }
  1435. inline void Dispatch_control_request_msg::set_has_dispatch_task_type() {
  1436. _has_bits_[0] |= 0x00000080u;
  1437. }
  1438. inline void Dispatch_control_request_msg::clear_has_dispatch_task_type() {
  1439. _has_bits_[0] &= ~0x00000080u;
  1440. }
  1441. inline void Dispatch_control_request_msg::clear_dispatch_task_type() {
  1442. dispatch_task_type_ = 101;
  1443. clear_has_dispatch_task_type();
  1444. }
  1445. inline ::message::Dispatch_task_type Dispatch_control_request_msg::dispatch_task_type() const {
  1446. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_task_type)
  1447. return static_cast< ::message::Dispatch_task_type >(dispatch_task_type_);
  1448. }
  1449. inline void Dispatch_control_request_msg::set_dispatch_task_type(::message::Dispatch_task_type value) {
  1450. assert(::message::Dispatch_task_type_IsValid(value));
  1451. set_has_dispatch_task_type();
  1452. dispatch_task_type_ = value;
  1453. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_task_type)
  1454. }
  1455. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1456. inline bool Dispatch_control_request_msg::has_dispatch_device_type() const {
  1457. return (_has_bits_[0] & 0x00000100u) != 0;
  1458. }
  1459. inline void Dispatch_control_request_msg::set_has_dispatch_device_type() {
  1460. _has_bits_[0] |= 0x00000100u;
  1461. }
  1462. inline void Dispatch_control_request_msg::clear_has_dispatch_device_type() {
  1463. _has_bits_[0] &= ~0x00000100u;
  1464. }
  1465. inline void Dispatch_control_request_msg::clear_dispatch_device_type() {
  1466. dispatch_device_type_ = 101;
  1467. clear_has_dispatch_device_type();
  1468. }
  1469. inline ::message::Dispatch_device_type Dispatch_control_request_msg::dispatch_device_type() const {
  1470. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_device_type)
  1471. return static_cast< ::message::Dispatch_device_type >(dispatch_device_type_);
  1472. }
  1473. inline void Dispatch_control_request_msg::set_dispatch_device_type(::message::Dispatch_device_type value) {
  1474. assert(::message::Dispatch_device_type_IsValid(value));
  1475. set_has_dispatch_device_type();
  1476. dispatch_device_type_ = value;
  1477. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_device_type)
  1478. }
  1479. // optional int32 dispatch_source = 5;
  1480. inline bool Dispatch_control_request_msg::has_dispatch_source() const {
  1481. return (_has_bits_[0] & 0x00000008u) != 0;
  1482. }
  1483. inline void Dispatch_control_request_msg::set_has_dispatch_source() {
  1484. _has_bits_[0] |= 0x00000008u;
  1485. }
  1486. inline void Dispatch_control_request_msg::clear_has_dispatch_source() {
  1487. _has_bits_[0] &= ~0x00000008u;
  1488. }
  1489. inline void Dispatch_control_request_msg::clear_dispatch_source() {
  1490. dispatch_source_ = 0;
  1491. clear_has_dispatch_source();
  1492. }
  1493. inline ::google::protobuf::int32 Dispatch_control_request_msg::dispatch_source() const {
  1494. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_source)
  1495. return dispatch_source_;
  1496. }
  1497. inline void Dispatch_control_request_msg::set_dispatch_source(::google::protobuf::int32 value) {
  1498. set_has_dispatch_source();
  1499. dispatch_source_ = value;
  1500. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_source)
  1501. }
  1502. // optional int32 dispatch_destination = 6;
  1503. inline bool Dispatch_control_request_msg::has_dispatch_destination() const {
  1504. return (_has_bits_[0] & 0x00000010u) != 0;
  1505. }
  1506. inline void Dispatch_control_request_msg::set_has_dispatch_destination() {
  1507. _has_bits_[0] |= 0x00000010u;
  1508. }
  1509. inline void Dispatch_control_request_msg::clear_has_dispatch_destination() {
  1510. _has_bits_[0] &= ~0x00000010u;
  1511. }
  1512. inline void Dispatch_control_request_msg::clear_dispatch_destination() {
  1513. dispatch_destination_ = 0;
  1514. clear_has_dispatch_destination();
  1515. }
  1516. inline ::google::protobuf::int32 Dispatch_control_request_msg::dispatch_destination() const {
  1517. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_destination)
  1518. return dispatch_destination_;
  1519. }
  1520. inline void Dispatch_control_request_msg::set_dispatch_destination(::google::protobuf::int32 value) {
  1521. set_has_dispatch_destination();
  1522. dispatch_destination_ = value;
  1523. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_destination)
  1524. }
  1525. // optional .message.Error_manager error_manager = 7;
  1526. inline bool Dispatch_control_request_msg::has_error_manager() const {
  1527. return (_has_bits_[0] & 0x00000004u) != 0;
  1528. }
  1529. inline void Dispatch_control_request_msg::set_has_error_manager() {
  1530. _has_bits_[0] |= 0x00000004u;
  1531. }
  1532. inline void Dispatch_control_request_msg::clear_has_error_manager() {
  1533. _has_bits_[0] &= ~0x00000004u;
  1534. }
  1535. inline const ::message::Error_manager& Dispatch_control_request_msg::error_manager() const {
  1536. const ::message::Error_manager* p = error_manager_;
  1537. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.error_manager)
  1538. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1539. &::message::_Error_manager_default_instance_);
  1540. }
  1541. inline ::message::Error_manager* Dispatch_control_request_msg::release_error_manager() {
  1542. // @@protoc_insertion_point(field_release:message.Dispatch_control_request_msg.error_manager)
  1543. clear_has_error_manager();
  1544. ::message::Error_manager* temp = error_manager_;
  1545. error_manager_ = NULL;
  1546. return temp;
  1547. }
  1548. inline ::message::Error_manager* Dispatch_control_request_msg::mutable_error_manager() {
  1549. set_has_error_manager();
  1550. if (error_manager_ == NULL) {
  1551. error_manager_ = new ::message::Error_manager;
  1552. }
  1553. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_request_msg.error_manager)
  1554. return error_manager_;
  1555. }
  1556. inline void Dispatch_control_request_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1557. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1558. if (message_arena == NULL) {
  1559. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1560. }
  1561. if (error_manager) {
  1562. ::google::protobuf::Arena* submessage_arena = NULL;
  1563. if (message_arena != submessage_arena) {
  1564. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1565. message_arena, error_manager, submessage_arena);
  1566. }
  1567. set_has_error_manager();
  1568. } else {
  1569. clear_has_error_manager();
  1570. }
  1571. error_manager_ = error_manager;
  1572. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_request_msg.error_manager)
  1573. }
  1574. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1575. inline bool Dispatch_control_request_msg::has_dispatch_device_target_status() const {
  1576. return (_has_bits_[0] & 0x00000020u) != 0;
  1577. }
  1578. inline void Dispatch_control_request_msg::set_has_dispatch_device_target_status() {
  1579. _has_bits_[0] |= 0x00000020u;
  1580. }
  1581. inline void Dispatch_control_request_msg::clear_has_dispatch_device_target_status() {
  1582. _has_bits_[0] &= ~0x00000020u;
  1583. }
  1584. inline void Dispatch_control_request_msg::clear_dispatch_device_target_status() {
  1585. dispatch_device_target_status_ = 0;
  1586. clear_has_dispatch_device_target_status();
  1587. }
  1588. inline ::message::Dispatch_device_target_status Dispatch_control_request_msg::dispatch_device_target_status() const {
  1589. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_device_target_status)
  1590. return static_cast< ::message::Dispatch_device_target_status >(dispatch_device_target_status_);
  1591. }
  1592. inline void Dispatch_control_request_msg::set_dispatch_device_target_status(::message::Dispatch_device_target_status value) {
  1593. assert(::message::Dispatch_device_target_status_IsValid(value));
  1594. set_has_dispatch_device_target_status();
  1595. dispatch_device_target_status_ = value;
  1596. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_device_target_status)
  1597. }
  1598. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1599. inline bool Dispatch_control_request_msg::has_dispatch_device_task_status() const {
  1600. return (_has_bits_[0] & 0x00000040u) != 0;
  1601. }
  1602. inline void Dispatch_control_request_msg::set_has_dispatch_device_task_status() {
  1603. _has_bits_[0] |= 0x00000040u;
  1604. }
  1605. inline void Dispatch_control_request_msg::clear_has_dispatch_device_task_status() {
  1606. _has_bits_[0] &= ~0x00000040u;
  1607. }
  1608. inline void Dispatch_control_request_msg::clear_dispatch_device_task_status() {
  1609. dispatch_device_task_status_ = 0;
  1610. clear_has_dispatch_device_task_status();
  1611. }
  1612. inline ::message::Dispatch_device_task_status Dispatch_control_request_msg::dispatch_device_task_status() const {
  1613. // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.dispatch_device_task_status)
  1614. return static_cast< ::message::Dispatch_device_task_status >(dispatch_device_task_status_);
  1615. }
  1616. inline void Dispatch_control_request_msg::set_dispatch_device_task_status(::message::Dispatch_device_task_status value) {
  1617. assert(::message::Dispatch_device_task_status_IsValid(value));
  1618. set_has_dispatch_device_task_status();
  1619. dispatch_device_task_status_ = value;
  1620. // @@protoc_insertion_point(field_set:message.Dispatch_control_request_msg.dispatch_device_task_status)
  1621. }
  1622. // -------------------------------------------------------------------
  1623. // Dispatch_control_response_msg
  1624. // required .message.Base_info base_info = 1;
  1625. inline bool Dispatch_control_response_msg::has_base_info() const {
  1626. return (_has_bits_[0] & 0x00000002u) != 0;
  1627. }
  1628. inline void Dispatch_control_response_msg::set_has_base_info() {
  1629. _has_bits_[0] |= 0x00000002u;
  1630. }
  1631. inline void Dispatch_control_response_msg::clear_has_base_info() {
  1632. _has_bits_[0] &= ~0x00000002u;
  1633. }
  1634. inline const ::message::Base_info& Dispatch_control_response_msg::base_info() const {
  1635. const ::message::Base_info* p = base_info_;
  1636. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.base_info)
  1637. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1638. &::message::_Base_info_default_instance_);
  1639. }
  1640. inline ::message::Base_info* Dispatch_control_response_msg::release_base_info() {
  1641. // @@protoc_insertion_point(field_release:message.Dispatch_control_response_msg.base_info)
  1642. clear_has_base_info();
  1643. ::message::Base_info* temp = base_info_;
  1644. base_info_ = NULL;
  1645. return temp;
  1646. }
  1647. inline ::message::Base_info* Dispatch_control_response_msg::mutable_base_info() {
  1648. set_has_base_info();
  1649. if (base_info_ == NULL) {
  1650. base_info_ = new ::message::Base_info;
  1651. }
  1652. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_response_msg.base_info)
  1653. return base_info_;
  1654. }
  1655. inline void Dispatch_control_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1656. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1657. if (message_arena == NULL) {
  1658. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  1659. }
  1660. if (base_info) {
  1661. ::google::protobuf::Arena* submessage_arena = NULL;
  1662. if (message_arena != submessage_arena) {
  1663. base_info = ::google::protobuf::internal::GetOwnedMessage(
  1664. message_arena, base_info, submessage_arena);
  1665. }
  1666. set_has_base_info();
  1667. } else {
  1668. clear_has_base_info();
  1669. }
  1670. base_info_ = base_info;
  1671. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_response_msg.base_info)
  1672. }
  1673. // required string command_key = 2;
  1674. inline bool Dispatch_control_response_msg::has_command_key() const {
  1675. return (_has_bits_[0] & 0x00000001u) != 0;
  1676. }
  1677. inline void Dispatch_control_response_msg::set_has_command_key() {
  1678. _has_bits_[0] |= 0x00000001u;
  1679. }
  1680. inline void Dispatch_control_response_msg::clear_has_command_key() {
  1681. _has_bits_[0] &= ~0x00000001u;
  1682. }
  1683. inline void Dispatch_control_response_msg::clear_command_key() {
  1684. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1685. clear_has_command_key();
  1686. }
  1687. inline const ::std::string& Dispatch_control_response_msg::command_key() const {
  1688. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.command_key)
  1689. return command_key_.GetNoArena();
  1690. }
  1691. inline void Dispatch_control_response_msg::set_command_key(const ::std::string& value) {
  1692. set_has_command_key();
  1693. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1694. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.command_key)
  1695. }
  1696. #if LANG_CXX11
  1697. inline void Dispatch_control_response_msg::set_command_key(::std::string&& value) {
  1698. set_has_command_key();
  1699. command_key_.SetNoArena(
  1700. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1701. // @@protoc_insertion_point(field_set_rvalue:message.Dispatch_control_response_msg.command_key)
  1702. }
  1703. #endif
  1704. inline void Dispatch_control_response_msg::set_command_key(const char* value) {
  1705. GOOGLE_DCHECK(value != NULL);
  1706. set_has_command_key();
  1707. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1708. // @@protoc_insertion_point(field_set_char:message.Dispatch_control_response_msg.command_key)
  1709. }
  1710. inline void Dispatch_control_response_msg::set_command_key(const char* value, size_t size) {
  1711. set_has_command_key();
  1712. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1713. ::std::string(reinterpret_cast<const char*>(value), size));
  1714. // @@protoc_insertion_point(field_set_pointer:message.Dispatch_control_response_msg.command_key)
  1715. }
  1716. inline ::std::string* Dispatch_control_response_msg::mutable_command_key() {
  1717. set_has_command_key();
  1718. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_response_msg.command_key)
  1719. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1720. }
  1721. inline ::std::string* Dispatch_control_response_msg::release_command_key() {
  1722. // @@protoc_insertion_point(field_release:message.Dispatch_control_response_msg.command_key)
  1723. clear_has_command_key();
  1724. return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1725. }
  1726. inline void Dispatch_control_response_msg::set_allocated_command_key(::std::string* command_key) {
  1727. if (command_key != NULL) {
  1728. set_has_command_key();
  1729. } else {
  1730. clear_has_command_key();
  1731. }
  1732. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  1733. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_response_msg.command_key)
  1734. }
  1735. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1736. inline bool Dispatch_control_response_msg::has_dispatch_task_type() const {
  1737. return (_has_bits_[0] & 0x00000080u) != 0;
  1738. }
  1739. inline void Dispatch_control_response_msg::set_has_dispatch_task_type() {
  1740. _has_bits_[0] |= 0x00000080u;
  1741. }
  1742. inline void Dispatch_control_response_msg::clear_has_dispatch_task_type() {
  1743. _has_bits_[0] &= ~0x00000080u;
  1744. }
  1745. inline void Dispatch_control_response_msg::clear_dispatch_task_type() {
  1746. dispatch_task_type_ = 101;
  1747. clear_has_dispatch_task_type();
  1748. }
  1749. inline ::message::Dispatch_task_type Dispatch_control_response_msg::dispatch_task_type() const {
  1750. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_task_type)
  1751. return static_cast< ::message::Dispatch_task_type >(dispatch_task_type_);
  1752. }
  1753. inline void Dispatch_control_response_msg::set_dispatch_task_type(::message::Dispatch_task_type value) {
  1754. assert(::message::Dispatch_task_type_IsValid(value));
  1755. set_has_dispatch_task_type();
  1756. dispatch_task_type_ = value;
  1757. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_task_type)
  1758. }
  1759. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1760. inline bool Dispatch_control_response_msg::has_dispatch_device_type() const {
  1761. return (_has_bits_[0] & 0x00000100u) != 0;
  1762. }
  1763. inline void Dispatch_control_response_msg::set_has_dispatch_device_type() {
  1764. _has_bits_[0] |= 0x00000100u;
  1765. }
  1766. inline void Dispatch_control_response_msg::clear_has_dispatch_device_type() {
  1767. _has_bits_[0] &= ~0x00000100u;
  1768. }
  1769. inline void Dispatch_control_response_msg::clear_dispatch_device_type() {
  1770. dispatch_device_type_ = 101;
  1771. clear_has_dispatch_device_type();
  1772. }
  1773. inline ::message::Dispatch_device_type Dispatch_control_response_msg::dispatch_device_type() const {
  1774. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_device_type)
  1775. return static_cast< ::message::Dispatch_device_type >(dispatch_device_type_);
  1776. }
  1777. inline void Dispatch_control_response_msg::set_dispatch_device_type(::message::Dispatch_device_type value) {
  1778. assert(::message::Dispatch_device_type_IsValid(value));
  1779. set_has_dispatch_device_type();
  1780. dispatch_device_type_ = value;
  1781. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_device_type)
  1782. }
  1783. // optional int32 dispatch_source = 5;
  1784. inline bool Dispatch_control_response_msg::has_dispatch_source() const {
  1785. return (_has_bits_[0] & 0x00000008u) != 0;
  1786. }
  1787. inline void Dispatch_control_response_msg::set_has_dispatch_source() {
  1788. _has_bits_[0] |= 0x00000008u;
  1789. }
  1790. inline void Dispatch_control_response_msg::clear_has_dispatch_source() {
  1791. _has_bits_[0] &= ~0x00000008u;
  1792. }
  1793. inline void Dispatch_control_response_msg::clear_dispatch_source() {
  1794. dispatch_source_ = 0;
  1795. clear_has_dispatch_source();
  1796. }
  1797. inline ::google::protobuf::int32 Dispatch_control_response_msg::dispatch_source() const {
  1798. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_source)
  1799. return dispatch_source_;
  1800. }
  1801. inline void Dispatch_control_response_msg::set_dispatch_source(::google::protobuf::int32 value) {
  1802. set_has_dispatch_source();
  1803. dispatch_source_ = value;
  1804. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_source)
  1805. }
  1806. // optional int32 dispatch_destination = 6;
  1807. inline bool Dispatch_control_response_msg::has_dispatch_destination() const {
  1808. return (_has_bits_[0] & 0x00000010u) != 0;
  1809. }
  1810. inline void Dispatch_control_response_msg::set_has_dispatch_destination() {
  1811. _has_bits_[0] |= 0x00000010u;
  1812. }
  1813. inline void Dispatch_control_response_msg::clear_has_dispatch_destination() {
  1814. _has_bits_[0] &= ~0x00000010u;
  1815. }
  1816. inline void Dispatch_control_response_msg::clear_dispatch_destination() {
  1817. dispatch_destination_ = 0;
  1818. clear_has_dispatch_destination();
  1819. }
  1820. inline ::google::protobuf::int32 Dispatch_control_response_msg::dispatch_destination() const {
  1821. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_destination)
  1822. return dispatch_destination_;
  1823. }
  1824. inline void Dispatch_control_response_msg::set_dispatch_destination(::google::protobuf::int32 value) {
  1825. set_has_dispatch_destination();
  1826. dispatch_destination_ = value;
  1827. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_destination)
  1828. }
  1829. // optional .message.Error_manager error_manager = 7;
  1830. inline bool Dispatch_control_response_msg::has_error_manager() const {
  1831. return (_has_bits_[0] & 0x00000004u) != 0;
  1832. }
  1833. inline void Dispatch_control_response_msg::set_has_error_manager() {
  1834. _has_bits_[0] |= 0x00000004u;
  1835. }
  1836. inline void Dispatch_control_response_msg::clear_has_error_manager() {
  1837. _has_bits_[0] &= ~0x00000004u;
  1838. }
  1839. inline const ::message::Error_manager& Dispatch_control_response_msg::error_manager() const {
  1840. const ::message::Error_manager* p = error_manager_;
  1841. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.error_manager)
  1842. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1843. &::message::_Error_manager_default_instance_);
  1844. }
  1845. inline ::message::Error_manager* Dispatch_control_response_msg::release_error_manager() {
  1846. // @@protoc_insertion_point(field_release:message.Dispatch_control_response_msg.error_manager)
  1847. clear_has_error_manager();
  1848. ::message::Error_manager* temp = error_manager_;
  1849. error_manager_ = NULL;
  1850. return temp;
  1851. }
  1852. inline ::message::Error_manager* Dispatch_control_response_msg::mutable_error_manager() {
  1853. set_has_error_manager();
  1854. if (error_manager_ == NULL) {
  1855. error_manager_ = new ::message::Error_manager;
  1856. }
  1857. // @@protoc_insertion_point(field_mutable:message.Dispatch_control_response_msg.error_manager)
  1858. return error_manager_;
  1859. }
  1860. inline void Dispatch_control_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1861. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1862. if (message_arena == NULL) {
  1863. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1864. }
  1865. if (error_manager) {
  1866. ::google::protobuf::Arena* submessage_arena = NULL;
  1867. if (message_arena != submessage_arena) {
  1868. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1869. message_arena, error_manager, submessage_arena);
  1870. }
  1871. set_has_error_manager();
  1872. } else {
  1873. clear_has_error_manager();
  1874. }
  1875. error_manager_ = error_manager;
  1876. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_control_response_msg.error_manager)
  1877. }
  1878. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1879. inline bool Dispatch_control_response_msg::has_dispatch_device_target_status() const {
  1880. return (_has_bits_[0] & 0x00000020u) != 0;
  1881. }
  1882. inline void Dispatch_control_response_msg::set_has_dispatch_device_target_status() {
  1883. _has_bits_[0] |= 0x00000020u;
  1884. }
  1885. inline void Dispatch_control_response_msg::clear_has_dispatch_device_target_status() {
  1886. _has_bits_[0] &= ~0x00000020u;
  1887. }
  1888. inline void Dispatch_control_response_msg::clear_dispatch_device_target_status() {
  1889. dispatch_device_target_status_ = 0;
  1890. clear_has_dispatch_device_target_status();
  1891. }
  1892. inline ::message::Dispatch_device_target_status Dispatch_control_response_msg::dispatch_device_target_status() const {
  1893. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_device_target_status)
  1894. return static_cast< ::message::Dispatch_device_target_status >(dispatch_device_target_status_);
  1895. }
  1896. inline void Dispatch_control_response_msg::set_dispatch_device_target_status(::message::Dispatch_device_target_status value) {
  1897. assert(::message::Dispatch_device_target_status_IsValid(value));
  1898. set_has_dispatch_device_target_status();
  1899. dispatch_device_target_status_ = value;
  1900. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_device_target_status)
  1901. }
  1902. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1903. inline bool Dispatch_control_response_msg::has_dispatch_device_task_status() const {
  1904. return (_has_bits_[0] & 0x00000040u) != 0;
  1905. }
  1906. inline void Dispatch_control_response_msg::set_has_dispatch_device_task_status() {
  1907. _has_bits_[0] |= 0x00000040u;
  1908. }
  1909. inline void Dispatch_control_response_msg::clear_has_dispatch_device_task_status() {
  1910. _has_bits_[0] &= ~0x00000040u;
  1911. }
  1912. inline void Dispatch_control_response_msg::clear_dispatch_device_task_status() {
  1913. dispatch_device_task_status_ = 0;
  1914. clear_has_dispatch_device_task_status();
  1915. }
  1916. inline ::message::Dispatch_device_task_status Dispatch_control_response_msg::dispatch_device_task_status() const {
  1917. // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.dispatch_device_task_status)
  1918. return static_cast< ::message::Dispatch_device_task_status >(dispatch_device_task_status_);
  1919. }
  1920. inline void Dispatch_control_response_msg::set_dispatch_device_task_status(::message::Dispatch_device_task_status value) {
  1921. assert(::message::Dispatch_device_task_status_IsValid(value));
  1922. set_has_dispatch_device_task_status();
  1923. dispatch_device_task_status_ = value;
  1924. // @@protoc_insertion_point(field_set:message.Dispatch_control_response_msg.dispatch_device_task_status)
  1925. }
  1926. #ifdef __GNUC__
  1927. #pragma GCC diagnostic pop
  1928. #endif // __GNUC__
  1929. // -------------------------------------------------------------------
  1930. // -------------------------------------------------------------------
  1931. // -------------------------------------------------------------------
  1932. // @@protoc_insertion_point(namespace_scope)
  1933. } // namespace message
  1934. namespace google {
  1935. namespace protobuf {
  1936. template <> struct is_proto_enum< ::message::Dispatch_task_type> : ::google::protobuf::internal::true_type {};
  1937. template <>
  1938. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_task_type>() {
  1939. return ::message::Dispatch_task_type_descriptor();
  1940. }
  1941. template <> struct is_proto_enum< ::message::Dispatch_device_type> : ::google::protobuf::internal::true_type {};
  1942. template <>
  1943. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_type>() {
  1944. return ::message::Dispatch_device_type_descriptor();
  1945. }
  1946. template <> struct is_proto_enum< ::message::Dispatch_device_target_status> : ::google::protobuf::internal::true_type {};
  1947. template <>
  1948. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_target_status>() {
  1949. return ::message::Dispatch_device_target_status_descriptor();
  1950. }
  1951. template <> struct is_proto_enum< ::message::Dispatch_device_task_status> : ::google::protobuf::internal::true_type {};
  1952. template <>
  1953. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_task_status>() {
  1954. return ::message::Dispatch_device_task_status_descriptor();
  1955. }
  1956. } // namespace protobuf
  1957. } // namespace google
  1958. // @@protoc_insertion_point(global_scope)
  1959. #endif // PROTOBUF_dispatch_5fcontrol_2eproto__INCLUDED