dispatch_control.pb.h 83 KB

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