dispatch_control.pb.h 89 KB

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