PathPlanning.pb.cc 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: PathPlanning.proto
  3. #include "PathPlanning.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_PathPlanning_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_PathPlanning_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrder;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_PathPlanning_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrderTask;
  21. } // namespace protobuf_PathPlanning_2eproto
  22. namespace pathplanning {
  23. class WaimaiOrderDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<WaimaiOrder>
  26. _instance;
  27. } _WaimaiOrder_default_instance_;
  28. class PathPlanningRequestDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<PathPlanningRequest>
  31. _instance;
  32. } _PathPlanningRequest_default_instance_;
  33. class WaimaiOrderTaskDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<WaimaiOrderTask>
  36. _instance;
  37. } _WaimaiOrderTask_default_instance_;
  38. class PathPlanningReplyDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<PathPlanningReply>
  41. _instance;
  42. } _PathPlanningReply_default_instance_;
  43. } // namespace pathplanning
  44. namespace protobuf_PathPlanning_2eproto {
  45. static void InitDefaultsWaimaiOrder() {
  46. GOOGLE_PROTOBUF_VERIFY_VERSION;
  47. {
  48. void* ptr = &::pathplanning::_WaimaiOrder_default_instance_;
  49. new (ptr) ::pathplanning::WaimaiOrder();
  50. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  51. }
  52. ::pathplanning::WaimaiOrder::InitAsDefaultInstance();
  53. }
  54. ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrder =
  55. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWaimaiOrder}, {}};
  56. static void InitDefaultsPathPlanningRequest() {
  57. GOOGLE_PROTOBUF_VERIFY_VERSION;
  58. {
  59. void* ptr = &::pathplanning::_PathPlanningRequest_default_instance_;
  60. new (ptr) ::pathplanning::PathPlanningRequest();
  61. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  62. }
  63. ::pathplanning::PathPlanningRequest::InitAsDefaultInstance();
  64. }
  65. ::google::protobuf::internal::SCCInfo<1> scc_info_PathPlanningRequest =
  66. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPathPlanningRequest}, {
  67. &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base,}};
  68. static void InitDefaultsWaimaiOrderTask() {
  69. GOOGLE_PROTOBUF_VERIFY_VERSION;
  70. {
  71. void* ptr = &::pathplanning::_WaimaiOrderTask_default_instance_;
  72. new (ptr) ::pathplanning::WaimaiOrderTask();
  73. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  74. }
  75. ::pathplanning::WaimaiOrderTask::InitAsDefaultInstance();
  76. }
  77. ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrderTask =
  78. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWaimaiOrderTask}, {}};
  79. static void InitDefaultsPathPlanningReply() {
  80. GOOGLE_PROTOBUF_VERIFY_VERSION;
  81. {
  82. void* ptr = &::pathplanning::_PathPlanningReply_default_instance_;
  83. new (ptr) ::pathplanning::PathPlanningReply();
  84. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  85. }
  86. ::pathplanning::PathPlanningReply::InitAsDefaultInstance();
  87. }
  88. ::google::protobuf::internal::SCCInfo<1> scc_info_PathPlanningReply =
  89. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPathPlanningReply}, {
  90. &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base,}};
  91. void InitDefaults() {
  92. ::google::protobuf::internal::InitSCC(&scc_info_WaimaiOrder.base);
  93. ::google::protobuf::internal::InitSCC(&scc_info_PathPlanningRequest.base);
  94. ::google::protobuf::internal::InitSCC(&scc_info_WaimaiOrderTask.base);
  95. ::google::protobuf::internal::InitSCC(&scc_info_PathPlanningReply.base);
  96. }
  97. ::google::protobuf::Metadata file_level_metadata[4];
  98. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  99. ~0u, // no _has_bits_
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, _internal_metadata_),
  101. ~0u, // no _extensions_
  102. ~0u, // no _oneof_case_
  103. ~0u, // no _weak_field_map_
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, init_time_),
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, confirme_time_),
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, daodian_time_),
  107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, quhuo_time_),
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, guke_time_),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, songda_time_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, qiwang_time_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, chucan_time_),
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, jiaofu_time_),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, haoshi_second_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, is_chaoshi_),
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, chaoshi_second_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_waimaiorder_id_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_group_id_),
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_deliveryman_id_),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_status_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, shop_lat_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, shop_lng_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, cus_lat_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, cus_lng_),
  124. ~0u, // no _has_bits_
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, _internal_metadata_),
  126. ~0u, // no _extensions_
  127. ~0u, // no _oneof_case_
  128. ~0u, // no _weak_field_map_
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, lat_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, lng_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, name_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, group_id_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, deliveryman_id_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, deliveryman_num_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, order_num_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, orders_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, request_type_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, group_code_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, init_time_),
  140. ~0u, // no _has_bits_
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, _internal_metadata_),
  142. ~0u, // no _extensions_
  143. ~0u, // no _oneof_case_
  144. ~0u, // no _weak_field_map_
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, order_id_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, task_type_),
  147. ~0u, // no _has_bits_
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, _internal_metadata_),
  149. ~0u, // no _extensions_
  150. ~0u, // no _oneof_case_
  151. ~0u, // no _weak_field_map_
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, status_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, err_message_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, m_bestdes_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, group_id_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, deliveryman_id_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, deliveryman_num_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, order_num_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, request_type_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, bestroad_),
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, group_code_),
  162. };
  163. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  164. { 0, -1, sizeof(::pathplanning::WaimaiOrder)},
  165. { 25, -1, sizeof(::pathplanning::PathPlanningRequest)},
  166. { 41, -1, sizeof(::pathplanning::WaimaiOrderTask)},
  167. { 48, -1, sizeof(::pathplanning::PathPlanningReply)},
  168. };
  169. static ::google::protobuf::Message const * const file_default_instances[] = {
  170. reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_WaimaiOrder_default_instance_),
  171. reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_PathPlanningRequest_default_instance_),
  172. reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_WaimaiOrderTask_default_instance_),
  173. reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_PathPlanningReply_default_instance_),
  174. };
  175. void protobuf_AssignDescriptors() {
  176. AddDescriptors();
  177. AssignDescriptors(
  178. "PathPlanning.proto", schemas, file_default_instances, TableStruct::offsets,
  179. file_level_metadata, NULL, NULL);
  180. }
  181. void protobuf_AssignDescriptorsOnce() {
  182. static ::google::protobuf::internal::once_flag once;
  183. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  184. }
  185. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  186. void protobuf_RegisterTypes(const ::std::string&) {
  187. protobuf_AssignDescriptorsOnce();
  188. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  189. }
  190. void AddDescriptorsImpl() {
  191. InitDefaults();
  192. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  193. "\n\022PathPlanning.proto\022\014pathplanning\"\253\003\n\013W"
  194. "aimaiOrder\022\021\n\tinit_time\030\001 \001(\003\022\025\n\rconfirm"
  195. "e_time\030\002 \001(\003\022\024\n\014daodian_time\030\003 \001(\003\022\022\n\nqu"
  196. "huo_time\030\004 \001(\003\022\021\n\tguke_time\030\005 \001(\003\022\023\n\013son"
  197. "gda_time\030\006 \001(\003\022\023\n\013qiwang_time\030\007 \001(\003\022\023\n\013c"
  198. "hucan_time\030\010 \001(\005\022\023\n\013jiaofu_time\030\t \001(\005\022\025\n"
  199. "\rhaoshi_second\030\n \001(\005\022\022\n\nis_chaoshi\030\013 \001(\005"
  200. "\022\026\n\016chaoshi_second\030\014 \001(\005\022\030\n\020m_waimaiorde"
  201. "r_id\030\r \001(\005\022\022\n\nm_group_id\030\016 \001(\005\022\030\n\020m_deli"
  202. "veryman_id\030\017 \001(\005\022\020\n\010m_status\030\020 \001(\005\022\020\n\010sh"
  203. "op_lat\030\021 \001(\001\022\020\n\010shop_lng\030\022 \001(\001\022\017\n\007cus_la"
  204. "t\030\023 \001(\001\022\017\n\007cus_lng\030\024 \001(\001\"\373\001\n\023PathPlannin"
  205. "gRequest\022\013\n\003lat\030\001 \001(\001\022\013\n\003lng\030\002 \001(\001\022\014\n\004na"
  206. "me\030\003 \001(\t\022\020\n\010group_id\030\004 \001(\005\022\026\n\016deliveryma"
  207. "n_id\030\005 \001(\005\022\027\n\017deliveryman_num\030\006 \001(\005\022\021\n\to"
  208. "rder_num\030\007 \001(\005\022)\n\006orders\030\010 \003(\0132\031.pathpla"
  209. "nning.WaimaiOrder\022\024\n\014request_type\030\t \001(\005\022"
  210. "\022\n\ngroup_code\030\n \001(\005\022\021\n\tinit_time\030\013 \001(\003\"6"
  211. "\n\017WaimaiOrderTask\022\020\n\010order_id\030\001 \001(\005\022\021\n\tt"
  212. "ask_type\030\002 \001(\005\"\374\001\n\021PathPlanningReply\022\016\n\006"
  213. "status\030\001 \001(\t\022\023\n\013err_message\030\002 \001(\t\022\021\n\tm_b"
  214. "estDes\030\003 \001(\001\022\020\n\010group_id\030\004 \001(\005\022\026\n\016delive"
  215. "ryman_id\030\005 \001(\005\022\027\n\017deliveryman_num\030\006 \001(\005\022"
  216. "\021\n\torder_num\030\007 \001(\005\022\024\n\014request_type\030\010 \001(\005"
  217. "\022/\n\010bestRoad\030\t \003(\0132\035.pathplanning.Waimai"
  218. "OrderTask\022\022\n\ngroup_code\030\n \001(\0052`\n\rCPathPl"
  219. "anning\022O\n\007CalPath\022!.pathplanning.PathPla"
  220. "nningRequest\032\037.pathplanning.PathPlanning"
  221. "Reply\"\000b\006proto3"
  222. };
  223. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  224. descriptor, 1135);
  225. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  226. "PathPlanning.proto", &protobuf_RegisterTypes);
  227. }
  228. void AddDescriptors() {
  229. static ::google::protobuf::internal::once_flag once;
  230. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  231. }
  232. // Force AddDescriptors() to be called at dynamic initialization time.
  233. struct StaticDescriptorInitializer {
  234. StaticDescriptorInitializer() {
  235. AddDescriptors();
  236. }
  237. } static_descriptor_initializer;
  238. } // namespace protobuf_PathPlanning_2eproto
  239. namespace pathplanning {
  240. // ===================================================================
  241. void WaimaiOrder::InitAsDefaultInstance() {
  242. }
  243. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  244. const int WaimaiOrder::kInitTimeFieldNumber;
  245. const int WaimaiOrder::kConfirmeTimeFieldNumber;
  246. const int WaimaiOrder::kDaodianTimeFieldNumber;
  247. const int WaimaiOrder::kQuhuoTimeFieldNumber;
  248. const int WaimaiOrder::kGukeTimeFieldNumber;
  249. const int WaimaiOrder::kSongdaTimeFieldNumber;
  250. const int WaimaiOrder::kQiwangTimeFieldNumber;
  251. const int WaimaiOrder::kChucanTimeFieldNumber;
  252. const int WaimaiOrder::kJiaofuTimeFieldNumber;
  253. const int WaimaiOrder::kHaoshiSecondFieldNumber;
  254. const int WaimaiOrder::kIsChaoshiFieldNumber;
  255. const int WaimaiOrder::kChaoshiSecondFieldNumber;
  256. const int WaimaiOrder::kMWaimaiorderIdFieldNumber;
  257. const int WaimaiOrder::kMGroupIdFieldNumber;
  258. const int WaimaiOrder::kMDeliverymanIdFieldNumber;
  259. const int WaimaiOrder::kMStatusFieldNumber;
  260. const int WaimaiOrder::kShopLatFieldNumber;
  261. const int WaimaiOrder::kShopLngFieldNumber;
  262. const int WaimaiOrder::kCusLatFieldNumber;
  263. const int WaimaiOrder::kCusLngFieldNumber;
  264. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  265. WaimaiOrder::WaimaiOrder()
  266. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  267. ::google::protobuf::internal::InitSCC(
  268. &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base);
  269. SharedCtor();
  270. // @@protoc_insertion_point(constructor:pathplanning.WaimaiOrder)
  271. }
  272. WaimaiOrder::WaimaiOrder(const WaimaiOrder& from)
  273. : ::google::protobuf::Message(),
  274. _internal_metadata_(NULL) {
  275. _internal_metadata_.MergeFrom(from._internal_metadata_);
  276. ::memcpy(&init_time_, &from.init_time_,
  277. static_cast<size_t>(reinterpret_cast<char*>(&m_status_) -
  278. reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
  279. // @@protoc_insertion_point(copy_constructor:pathplanning.WaimaiOrder)
  280. }
  281. void WaimaiOrder::SharedCtor() {
  282. ::memset(&init_time_, 0, static_cast<size_t>(
  283. reinterpret_cast<char*>(&m_status_) -
  284. reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
  285. }
  286. WaimaiOrder::~WaimaiOrder() {
  287. // @@protoc_insertion_point(destructor:pathplanning.WaimaiOrder)
  288. SharedDtor();
  289. }
  290. void WaimaiOrder::SharedDtor() {
  291. }
  292. void WaimaiOrder::SetCachedSize(int size) const {
  293. _cached_size_.Set(size);
  294. }
  295. const ::google::protobuf::Descriptor* WaimaiOrder::descriptor() {
  296. ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  297. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  298. }
  299. const WaimaiOrder& WaimaiOrder::default_instance() {
  300. ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base);
  301. return *internal_default_instance();
  302. }
  303. void WaimaiOrder::Clear() {
  304. // @@protoc_insertion_point(message_clear_start:pathplanning.WaimaiOrder)
  305. ::google::protobuf::uint32 cached_has_bits = 0;
  306. // Prevent compiler warnings about cached_has_bits being unused
  307. (void) cached_has_bits;
  308. ::memset(&init_time_, 0, static_cast<size_t>(
  309. reinterpret_cast<char*>(&m_status_) -
  310. reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
  311. _internal_metadata_.Clear();
  312. }
  313. bool WaimaiOrder::MergePartialFromCodedStream(
  314. ::google::protobuf::io::CodedInputStream* input) {
  315. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  316. ::google::protobuf::uint32 tag;
  317. // @@protoc_insertion_point(parse_start:pathplanning.WaimaiOrder)
  318. for (;;) {
  319. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  320. tag = p.first;
  321. if (!p.second) goto handle_unusual;
  322. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  323. // int64 init_time = 1;
  324. case 1: {
  325. if (static_cast< ::google::protobuf::uint8>(tag) ==
  326. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  327. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  328. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  329. input, &init_time_)));
  330. } else {
  331. goto handle_unusual;
  332. }
  333. break;
  334. }
  335. // int64 confirme_time = 2;
  336. case 2: {
  337. if (static_cast< ::google::protobuf::uint8>(tag) ==
  338. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  339. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  340. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  341. input, &confirme_time_)));
  342. } else {
  343. goto handle_unusual;
  344. }
  345. break;
  346. }
  347. // int64 daodian_time = 3;
  348. case 3: {
  349. if (static_cast< ::google::protobuf::uint8>(tag) ==
  350. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  351. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  352. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  353. input, &daodian_time_)));
  354. } else {
  355. goto handle_unusual;
  356. }
  357. break;
  358. }
  359. // int64 quhuo_time = 4;
  360. case 4: {
  361. if (static_cast< ::google::protobuf::uint8>(tag) ==
  362. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  363. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  364. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  365. input, &quhuo_time_)));
  366. } else {
  367. goto handle_unusual;
  368. }
  369. break;
  370. }
  371. // int64 guke_time = 5;
  372. case 5: {
  373. if (static_cast< ::google::protobuf::uint8>(tag) ==
  374. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  375. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  376. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  377. input, &guke_time_)));
  378. } else {
  379. goto handle_unusual;
  380. }
  381. break;
  382. }
  383. // int64 songda_time = 6;
  384. case 6: {
  385. if (static_cast< ::google::protobuf::uint8>(tag) ==
  386. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  387. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  388. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  389. input, &songda_time_)));
  390. } else {
  391. goto handle_unusual;
  392. }
  393. break;
  394. }
  395. // int64 qiwang_time = 7;
  396. case 7: {
  397. if (static_cast< ::google::protobuf::uint8>(tag) ==
  398. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  399. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  400. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  401. input, &qiwang_time_)));
  402. } else {
  403. goto handle_unusual;
  404. }
  405. break;
  406. }
  407. // int32 chucan_time = 8;
  408. case 8: {
  409. if (static_cast< ::google::protobuf::uint8>(tag) ==
  410. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  411. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  412. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  413. input, &chucan_time_)));
  414. } else {
  415. goto handle_unusual;
  416. }
  417. break;
  418. }
  419. // int32 jiaofu_time = 9;
  420. case 9: {
  421. if (static_cast< ::google::protobuf::uint8>(tag) ==
  422. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  423. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  424. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  425. input, &jiaofu_time_)));
  426. } else {
  427. goto handle_unusual;
  428. }
  429. break;
  430. }
  431. // int32 haoshi_second = 10;
  432. case 10: {
  433. if (static_cast< ::google::protobuf::uint8>(tag) ==
  434. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  435. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  436. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  437. input, &haoshi_second_)));
  438. } else {
  439. goto handle_unusual;
  440. }
  441. break;
  442. }
  443. // int32 is_chaoshi = 11;
  444. case 11: {
  445. if (static_cast< ::google::protobuf::uint8>(tag) ==
  446. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  447. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  448. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  449. input, &is_chaoshi_)));
  450. } else {
  451. goto handle_unusual;
  452. }
  453. break;
  454. }
  455. // int32 chaoshi_second = 12;
  456. case 12: {
  457. if (static_cast< ::google::protobuf::uint8>(tag) ==
  458. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  459. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  460. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  461. input, &chaoshi_second_)));
  462. } else {
  463. goto handle_unusual;
  464. }
  465. break;
  466. }
  467. // int32 m_waimaiorder_id = 13;
  468. case 13: {
  469. if (static_cast< ::google::protobuf::uint8>(tag) ==
  470. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  471. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  472. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  473. input, &m_waimaiorder_id_)));
  474. } else {
  475. goto handle_unusual;
  476. }
  477. break;
  478. }
  479. // int32 m_group_id = 14;
  480. case 14: {
  481. if (static_cast< ::google::protobuf::uint8>(tag) ==
  482. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  483. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  484. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  485. input, &m_group_id_)));
  486. } else {
  487. goto handle_unusual;
  488. }
  489. break;
  490. }
  491. // int32 m_deliveryman_id = 15;
  492. case 15: {
  493. if (static_cast< ::google::protobuf::uint8>(tag) ==
  494. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  495. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  496. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  497. input, &m_deliveryman_id_)));
  498. } else {
  499. goto handle_unusual;
  500. }
  501. break;
  502. }
  503. // int32 m_status = 16;
  504. case 16: {
  505. if (static_cast< ::google::protobuf::uint8>(tag) ==
  506. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  507. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  508. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  509. input, &m_status_)));
  510. } else {
  511. goto handle_unusual;
  512. }
  513. break;
  514. }
  515. // double shop_lat = 17;
  516. case 17: {
  517. if (static_cast< ::google::protobuf::uint8>(tag) ==
  518. static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
  519. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  520. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  521. input, &shop_lat_)));
  522. } else {
  523. goto handle_unusual;
  524. }
  525. break;
  526. }
  527. // double shop_lng = 18;
  528. case 18: {
  529. if (static_cast< ::google::protobuf::uint8>(tag) ==
  530. static_cast< ::google::protobuf::uint8>(145u /* 145 & 0xFF */)) {
  531. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  532. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  533. input, &shop_lng_)));
  534. } else {
  535. goto handle_unusual;
  536. }
  537. break;
  538. }
  539. // double cus_lat = 19;
  540. case 19: {
  541. if (static_cast< ::google::protobuf::uint8>(tag) ==
  542. static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) {
  543. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  544. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  545. input, &cus_lat_)));
  546. } else {
  547. goto handle_unusual;
  548. }
  549. break;
  550. }
  551. // double cus_lng = 20;
  552. case 20: {
  553. if (static_cast< ::google::protobuf::uint8>(tag) ==
  554. static_cast< ::google::protobuf::uint8>(161u /* 161 & 0xFF */)) {
  555. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  556. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  557. input, &cus_lng_)));
  558. } else {
  559. goto handle_unusual;
  560. }
  561. break;
  562. }
  563. default: {
  564. handle_unusual:
  565. if (tag == 0) {
  566. goto success;
  567. }
  568. DO_(::google::protobuf::internal::WireFormat::SkipField(
  569. input, tag, _internal_metadata_.mutable_unknown_fields()));
  570. break;
  571. }
  572. }
  573. }
  574. success:
  575. // @@protoc_insertion_point(parse_success:pathplanning.WaimaiOrder)
  576. return true;
  577. failure:
  578. // @@protoc_insertion_point(parse_failure:pathplanning.WaimaiOrder)
  579. return false;
  580. #undef DO_
  581. }
  582. void WaimaiOrder::SerializeWithCachedSizes(
  583. ::google::protobuf::io::CodedOutputStream* output) const {
  584. // @@protoc_insertion_point(serialize_start:pathplanning.WaimaiOrder)
  585. ::google::protobuf::uint32 cached_has_bits = 0;
  586. (void) cached_has_bits;
  587. // int64 init_time = 1;
  588. if (this->init_time() != 0) {
  589. ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->init_time(), output);
  590. }
  591. // int64 confirme_time = 2;
  592. if (this->confirme_time() != 0) {
  593. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->confirme_time(), output);
  594. }
  595. // int64 daodian_time = 3;
  596. if (this->daodian_time() != 0) {
  597. ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->daodian_time(), output);
  598. }
  599. // int64 quhuo_time = 4;
  600. if (this->quhuo_time() != 0) {
  601. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->quhuo_time(), output);
  602. }
  603. // int64 guke_time = 5;
  604. if (this->guke_time() != 0) {
  605. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->guke_time(), output);
  606. }
  607. // int64 songda_time = 6;
  608. if (this->songda_time() != 0) {
  609. ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->songda_time(), output);
  610. }
  611. // int64 qiwang_time = 7;
  612. if (this->qiwang_time() != 0) {
  613. ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->qiwang_time(), output);
  614. }
  615. // int32 chucan_time = 8;
  616. if (this->chucan_time() != 0) {
  617. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->chucan_time(), output);
  618. }
  619. // int32 jiaofu_time = 9;
  620. if (this->jiaofu_time() != 0) {
  621. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->jiaofu_time(), output);
  622. }
  623. // int32 haoshi_second = 10;
  624. if (this->haoshi_second() != 0) {
  625. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->haoshi_second(), output);
  626. }
  627. // int32 is_chaoshi = 11;
  628. if (this->is_chaoshi() != 0) {
  629. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->is_chaoshi(), output);
  630. }
  631. // int32 chaoshi_second = 12;
  632. if (this->chaoshi_second() != 0) {
  633. ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->chaoshi_second(), output);
  634. }
  635. // int32 m_waimaiorder_id = 13;
  636. if (this->m_waimaiorder_id() != 0) {
  637. ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->m_waimaiorder_id(), output);
  638. }
  639. // int32 m_group_id = 14;
  640. if (this->m_group_id() != 0) {
  641. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->m_group_id(), output);
  642. }
  643. // int32 m_deliveryman_id = 15;
  644. if (this->m_deliveryman_id() != 0) {
  645. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->m_deliveryman_id(), output);
  646. }
  647. // int32 m_status = 16;
  648. if (this->m_status() != 0) {
  649. ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->m_status(), output);
  650. }
  651. // double shop_lat = 17;
  652. if (this->shop_lat() != 0) {
  653. ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->shop_lat(), output);
  654. }
  655. // double shop_lng = 18;
  656. if (this->shop_lng() != 0) {
  657. ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->shop_lng(), output);
  658. }
  659. // double cus_lat = 19;
  660. if (this->cus_lat() != 0) {
  661. ::google::protobuf::internal::WireFormatLite::WriteDouble(19, this->cus_lat(), output);
  662. }
  663. // double cus_lng = 20;
  664. if (this->cus_lng() != 0) {
  665. ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->cus_lng(), output);
  666. }
  667. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  668. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  669. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  670. }
  671. // @@protoc_insertion_point(serialize_end:pathplanning.WaimaiOrder)
  672. }
  673. ::google::protobuf::uint8* WaimaiOrder::InternalSerializeWithCachedSizesToArray(
  674. bool deterministic, ::google::protobuf::uint8* target) const {
  675. (void)deterministic; // Unused
  676. // @@protoc_insertion_point(serialize_to_array_start:pathplanning.WaimaiOrder)
  677. ::google::protobuf::uint32 cached_has_bits = 0;
  678. (void) cached_has_bits;
  679. // int64 init_time = 1;
  680. if (this->init_time() != 0) {
  681. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->init_time(), target);
  682. }
  683. // int64 confirme_time = 2;
  684. if (this->confirme_time() != 0) {
  685. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->confirme_time(), target);
  686. }
  687. // int64 daodian_time = 3;
  688. if (this->daodian_time() != 0) {
  689. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->daodian_time(), target);
  690. }
  691. // int64 quhuo_time = 4;
  692. if (this->quhuo_time() != 0) {
  693. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->quhuo_time(), target);
  694. }
  695. // int64 guke_time = 5;
  696. if (this->guke_time() != 0) {
  697. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->guke_time(), target);
  698. }
  699. // int64 songda_time = 6;
  700. if (this->songda_time() != 0) {
  701. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->songda_time(), target);
  702. }
  703. // int64 qiwang_time = 7;
  704. if (this->qiwang_time() != 0) {
  705. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->qiwang_time(), target);
  706. }
  707. // int32 chucan_time = 8;
  708. if (this->chucan_time() != 0) {
  709. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->chucan_time(), target);
  710. }
  711. // int32 jiaofu_time = 9;
  712. if (this->jiaofu_time() != 0) {
  713. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->jiaofu_time(), target);
  714. }
  715. // int32 haoshi_second = 10;
  716. if (this->haoshi_second() != 0) {
  717. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->haoshi_second(), target);
  718. }
  719. // int32 is_chaoshi = 11;
  720. if (this->is_chaoshi() != 0) {
  721. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->is_chaoshi(), target);
  722. }
  723. // int32 chaoshi_second = 12;
  724. if (this->chaoshi_second() != 0) {
  725. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->chaoshi_second(), target);
  726. }
  727. // int32 m_waimaiorder_id = 13;
  728. if (this->m_waimaiorder_id() != 0) {
  729. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->m_waimaiorder_id(), target);
  730. }
  731. // int32 m_group_id = 14;
  732. if (this->m_group_id() != 0) {
  733. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->m_group_id(), target);
  734. }
  735. // int32 m_deliveryman_id = 15;
  736. if (this->m_deliveryman_id() != 0) {
  737. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->m_deliveryman_id(), target);
  738. }
  739. // int32 m_status = 16;
  740. if (this->m_status() != 0) {
  741. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->m_status(), target);
  742. }
  743. // double shop_lat = 17;
  744. if (this->shop_lat() != 0) {
  745. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->shop_lat(), target);
  746. }
  747. // double shop_lng = 18;
  748. if (this->shop_lng() != 0) {
  749. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->shop_lng(), target);
  750. }
  751. // double cus_lat = 19;
  752. if (this->cus_lat() != 0) {
  753. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(19, this->cus_lat(), target);
  754. }
  755. // double cus_lng = 20;
  756. if (this->cus_lng() != 0) {
  757. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->cus_lng(), target);
  758. }
  759. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  760. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  761. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  762. }
  763. // @@protoc_insertion_point(serialize_to_array_end:pathplanning.WaimaiOrder)
  764. return target;
  765. }
  766. size_t WaimaiOrder::ByteSizeLong() const {
  767. // @@protoc_insertion_point(message_byte_size_start:pathplanning.WaimaiOrder)
  768. size_t total_size = 0;
  769. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  770. total_size +=
  771. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  772. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  773. }
  774. // int64 init_time = 1;
  775. if (this->init_time() != 0) {
  776. total_size += 1 +
  777. ::google::protobuf::internal::WireFormatLite::Int64Size(
  778. this->init_time());
  779. }
  780. // int64 confirme_time = 2;
  781. if (this->confirme_time() != 0) {
  782. total_size += 1 +
  783. ::google::protobuf::internal::WireFormatLite::Int64Size(
  784. this->confirme_time());
  785. }
  786. // int64 daodian_time = 3;
  787. if (this->daodian_time() != 0) {
  788. total_size += 1 +
  789. ::google::protobuf::internal::WireFormatLite::Int64Size(
  790. this->daodian_time());
  791. }
  792. // int64 quhuo_time = 4;
  793. if (this->quhuo_time() != 0) {
  794. total_size += 1 +
  795. ::google::protobuf::internal::WireFormatLite::Int64Size(
  796. this->quhuo_time());
  797. }
  798. // int64 guke_time = 5;
  799. if (this->guke_time() != 0) {
  800. total_size += 1 +
  801. ::google::protobuf::internal::WireFormatLite::Int64Size(
  802. this->guke_time());
  803. }
  804. // int64 songda_time = 6;
  805. if (this->songda_time() != 0) {
  806. total_size += 1 +
  807. ::google::protobuf::internal::WireFormatLite::Int64Size(
  808. this->songda_time());
  809. }
  810. // int64 qiwang_time = 7;
  811. if (this->qiwang_time() != 0) {
  812. total_size += 1 +
  813. ::google::protobuf::internal::WireFormatLite::Int64Size(
  814. this->qiwang_time());
  815. }
  816. // int32 chucan_time = 8;
  817. if (this->chucan_time() != 0) {
  818. total_size += 1 +
  819. ::google::protobuf::internal::WireFormatLite::Int32Size(
  820. this->chucan_time());
  821. }
  822. // int32 jiaofu_time = 9;
  823. if (this->jiaofu_time() != 0) {
  824. total_size += 1 +
  825. ::google::protobuf::internal::WireFormatLite::Int32Size(
  826. this->jiaofu_time());
  827. }
  828. // int32 haoshi_second = 10;
  829. if (this->haoshi_second() != 0) {
  830. total_size += 1 +
  831. ::google::protobuf::internal::WireFormatLite::Int32Size(
  832. this->haoshi_second());
  833. }
  834. // int32 is_chaoshi = 11;
  835. if (this->is_chaoshi() != 0) {
  836. total_size += 1 +
  837. ::google::protobuf::internal::WireFormatLite::Int32Size(
  838. this->is_chaoshi());
  839. }
  840. // int32 chaoshi_second = 12;
  841. if (this->chaoshi_second() != 0) {
  842. total_size += 1 +
  843. ::google::protobuf::internal::WireFormatLite::Int32Size(
  844. this->chaoshi_second());
  845. }
  846. // int32 m_waimaiorder_id = 13;
  847. if (this->m_waimaiorder_id() != 0) {
  848. total_size += 1 +
  849. ::google::protobuf::internal::WireFormatLite::Int32Size(
  850. this->m_waimaiorder_id());
  851. }
  852. // int32 m_group_id = 14;
  853. if (this->m_group_id() != 0) {
  854. total_size += 1 +
  855. ::google::protobuf::internal::WireFormatLite::Int32Size(
  856. this->m_group_id());
  857. }
  858. // int32 m_deliveryman_id = 15;
  859. if (this->m_deliveryman_id() != 0) {
  860. total_size += 1 +
  861. ::google::protobuf::internal::WireFormatLite::Int32Size(
  862. this->m_deliveryman_id());
  863. }
  864. // double shop_lat = 17;
  865. if (this->shop_lat() != 0) {
  866. total_size += 2 + 8;
  867. }
  868. // double shop_lng = 18;
  869. if (this->shop_lng() != 0) {
  870. total_size += 2 + 8;
  871. }
  872. // double cus_lat = 19;
  873. if (this->cus_lat() != 0) {
  874. total_size += 2 + 8;
  875. }
  876. // double cus_lng = 20;
  877. if (this->cus_lng() != 0) {
  878. total_size += 2 + 8;
  879. }
  880. // int32 m_status = 16;
  881. if (this->m_status() != 0) {
  882. total_size += 2 +
  883. ::google::protobuf::internal::WireFormatLite::Int32Size(
  884. this->m_status());
  885. }
  886. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  887. SetCachedSize(cached_size);
  888. return total_size;
  889. }
  890. void WaimaiOrder::MergeFrom(const ::google::protobuf::Message& from) {
  891. // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.WaimaiOrder)
  892. GOOGLE_DCHECK_NE(&from, this);
  893. const WaimaiOrder* source =
  894. ::google::protobuf::internal::DynamicCastToGenerated<const WaimaiOrder>(
  895. &from);
  896. if (source == NULL) {
  897. // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.WaimaiOrder)
  898. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  899. } else {
  900. // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.WaimaiOrder)
  901. MergeFrom(*source);
  902. }
  903. }
  904. void WaimaiOrder::MergeFrom(const WaimaiOrder& from) {
  905. // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.WaimaiOrder)
  906. GOOGLE_DCHECK_NE(&from, this);
  907. _internal_metadata_.MergeFrom(from._internal_metadata_);
  908. ::google::protobuf::uint32 cached_has_bits = 0;
  909. (void) cached_has_bits;
  910. if (from.init_time() != 0) {
  911. set_init_time(from.init_time());
  912. }
  913. if (from.confirme_time() != 0) {
  914. set_confirme_time(from.confirme_time());
  915. }
  916. if (from.daodian_time() != 0) {
  917. set_daodian_time(from.daodian_time());
  918. }
  919. if (from.quhuo_time() != 0) {
  920. set_quhuo_time(from.quhuo_time());
  921. }
  922. if (from.guke_time() != 0) {
  923. set_guke_time(from.guke_time());
  924. }
  925. if (from.songda_time() != 0) {
  926. set_songda_time(from.songda_time());
  927. }
  928. if (from.qiwang_time() != 0) {
  929. set_qiwang_time(from.qiwang_time());
  930. }
  931. if (from.chucan_time() != 0) {
  932. set_chucan_time(from.chucan_time());
  933. }
  934. if (from.jiaofu_time() != 0) {
  935. set_jiaofu_time(from.jiaofu_time());
  936. }
  937. if (from.haoshi_second() != 0) {
  938. set_haoshi_second(from.haoshi_second());
  939. }
  940. if (from.is_chaoshi() != 0) {
  941. set_is_chaoshi(from.is_chaoshi());
  942. }
  943. if (from.chaoshi_second() != 0) {
  944. set_chaoshi_second(from.chaoshi_second());
  945. }
  946. if (from.m_waimaiorder_id() != 0) {
  947. set_m_waimaiorder_id(from.m_waimaiorder_id());
  948. }
  949. if (from.m_group_id() != 0) {
  950. set_m_group_id(from.m_group_id());
  951. }
  952. if (from.m_deliveryman_id() != 0) {
  953. set_m_deliveryman_id(from.m_deliveryman_id());
  954. }
  955. if (from.shop_lat() != 0) {
  956. set_shop_lat(from.shop_lat());
  957. }
  958. if (from.shop_lng() != 0) {
  959. set_shop_lng(from.shop_lng());
  960. }
  961. if (from.cus_lat() != 0) {
  962. set_cus_lat(from.cus_lat());
  963. }
  964. if (from.cus_lng() != 0) {
  965. set_cus_lng(from.cus_lng());
  966. }
  967. if (from.m_status() != 0) {
  968. set_m_status(from.m_status());
  969. }
  970. }
  971. void WaimaiOrder::CopyFrom(const ::google::protobuf::Message& from) {
  972. // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.WaimaiOrder)
  973. if (&from == this) return;
  974. Clear();
  975. MergeFrom(from);
  976. }
  977. void WaimaiOrder::CopyFrom(const WaimaiOrder& from) {
  978. // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.WaimaiOrder)
  979. if (&from == this) return;
  980. Clear();
  981. MergeFrom(from);
  982. }
  983. bool WaimaiOrder::IsInitialized() const {
  984. return true;
  985. }
  986. void WaimaiOrder::Swap(WaimaiOrder* other) {
  987. if (other == this) return;
  988. InternalSwap(other);
  989. }
  990. void WaimaiOrder::InternalSwap(WaimaiOrder* other) {
  991. using std::swap;
  992. swap(init_time_, other->init_time_);
  993. swap(confirme_time_, other->confirme_time_);
  994. swap(daodian_time_, other->daodian_time_);
  995. swap(quhuo_time_, other->quhuo_time_);
  996. swap(guke_time_, other->guke_time_);
  997. swap(songda_time_, other->songda_time_);
  998. swap(qiwang_time_, other->qiwang_time_);
  999. swap(chucan_time_, other->chucan_time_);
  1000. swap(jiaofu_time_, other->jiaofu_time_);
  1001. swap(haoshi_second_, other->haoshi_second_);
  1002. swap(is_chaoshi_, other->is_chaoshi_);
  1003. swap(chaoshi_second_, other->chaoshi_second_);
  1004. swap(m_waimaiorder_id_, other->m_waimaiorder_id_);
  1005. swap(m_group_id_, other->m_group_id_);
  1006. swap(m_deliveryman_id_, other->m_deliveryman_id_);
  1007. swap(shop_lat_, other->shop_lat_);
  1008. swap(shop_lng_, other->shop_lng_);
  1009. swap(cus_lat_, other->cus_lat_);
  1010. swap(cus_lng_, other->cus_lng_);
  1011. swap(m_status_, other->m_status_);
  1012. _internal_metadata_.Swap(&other->_internal_metadata_);
  1013. }
  1014. ::google::protobuf::Metadata WaimaiOrder::GetMetadata() const {
  1015. protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1016. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
  1017. }
  1018. // ===================================================================
  1019. void PathPlanningRequest::InitAsDefaultInstance() {
  1020. }
  1021. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1022. const int PathPlanningRequest::kLatFieldNumber;
  1023. const int PathPlanningRequest::kLngFieldNumber;
  1024. const int PathPlanningRequest::kNameFieldNumber;
  1025. const int PathPlanningRequest::kGroupIdFieldNumber;
  1026. const int PathPlanningRequest::kDeliverymanIdFieldNumber;
  1027. const int PathPlanningRequest::kDeliverymanNumFieldNumber;
  1028. const int PathPlanningRequest::kOrderNumFieldNumber;
  1029. const int PathPlanningRequest::kOrdersFieldNumber;
  1030. const int PathPlanningRequest::kRequestTypeFieldNumber;
  1031. const int PathPlanningRequest::kGroupCodeFieldNumber;
  1032. const int PathPlanningRequest::kInitTimeFieldNumber;
  1033. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1034. PathPlanningRequest::PathPlanningRequest()
  1035. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1036. ::google::protobuf::internal::InitSCC(
  1037. &protobuf_PathPlanning_2eproto::scc_info_PathPlanningRequest.base);
  1038. SharedCtor();
  1039. // @@protoc_insertion_point(constructor:pathplanning.PathPlanningRequest)
  1040. }
  1041. PathPlanningRequest::PathPlanningRequest(const PathPlanningRequest& from)
  1042. : ::google::protobuf::Message(),
  1043. _internal_metadata_(NULL),
  1044. orders_(from.orders_) {
  1045. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1046. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1047. if (from.name().size() > 0) {
  1048. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1049. }
  1050. ::memcpy(&lat_, &from.lat_,
  1051. static_cast<size_t>(reinterpret_cast<char*>(&init_time_) -
  1052. reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
  1053. // @@protoc_insertion_point(copy_constructor:pathplanning.PathPlanningRequest)
  1054. }
  1055. void PathPlanningRequest::SharedCtor() {
  1056. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1057. ::memset(&lat_, 0, static_cast<size_t>(
  1058. reinterpret_cast<char*>(&init_time_) -
  1059. reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
  1060. }
  1061. PathPlanningRequest::~PathPlanningRequest() {
  1062. // @@protoc_insertion_point(destructor:pathplanning.PathPlanningRequest)
  1063. SharedDtor();
  1064. }
  1065. void PathPlanningRequest::SharedDtor() {
  1066. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1067. }
  1068. void PathPlanningRequest::SetCachedSize(int size) const {
  1069. _cached_size_.Set(size);
  1070. }
  1071. const ::google::protobuf::Descriptor* PathPlanningRequest::descriptor() {
  1072. ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1073. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1074. }
  1075. const PathPlanningRequest& PathPlanningRequest::default_instance() {
  1076. ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_PathPlanningRequest.base);
  1077. return *internal_default_instance();
  1078. }
  1079. void PathPlanningRequest::Clear() {
  1080. // @@protoc_insertion_point(message_clear_start:pathplanning.PathPlanningRequest)
  1081. ::google::protobuf::uint32 cached_has_bits = 0;
  1082. // Prevent compiler warnings about cached_has_bits being unused
  1083. (void) cached_has_bits;
  1084. orders_.Clear();
  1085. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1086. ::memset(&lat_, 0, static_cast<size_t>(
  1087. reinterpret_cast<char*>(&init_time_) -
  1088. reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
  1089. _internal_metadata_.Clear();
  1090. }
  1091. bool PathPlanningRequest::MergePartialFromCodedStream(
  1092. ::google::protobuf::io::CodedInputStream* input) {
  1093. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1094. ::google::protobuf::uint32 tag;
  1095. // @@protoc_insertion_point(parse_start:pathplanning.PathPlanningRequest)
  1096. for (;;) {
  1097. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1098. tag = p.first;
  1099. if (!p.second) goto handle_unusual;
  1100. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1101. // double lat = 1;
  1102. case 1: {
  1103. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1104. static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
  1105. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1106. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1107. input, &lat_)));
  1108. } else {
  1109. goto handle_unusual;
  1110. }
  1111. break;
  1112. }
  1113. // double lng = 2;
  1114. case 2: {
  1115. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1116. static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
  1117. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1118. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1119. input, &lng_)));
  1120. } else {
  1121. goto handle_unusual;
  1122. }
  1123. break;
  1124. }
  1125. // string name = 3;
  1126. case 3: {
  1127. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1128. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1129. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1130. input, this->mutable_name()));
  1131. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1132. this->name().data(), static_cast<int>(this->name().length()),
  1133. ::google::protobuf::internal::WireFormatLite::PARSE,
  1134. "pathplanning.PathPlanningRequest.name"));
  1135. } else {
  1136. goto handle_unusual;
  1137. }
  1138. break;
  1139. }
  1140. // int32 group_id = 4;
  1141. case 4: {
  1142. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1143. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1144. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1145. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1146. input, &group_id_)));
  1147. } else {
  1148. goto handle_unusual;
  1149. }
  1150. break;
  1151. }
  1152. // int32 deliveryman_id = 5;
  1153. case 5: {
  1154. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1155. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1156. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1157. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1158. input, &deliveryman_id_)));
  1159. } else {
  1160. goto handle_unusual;
  1161. }
  1162. break;
  1163. }
  1164. // int32 deliveryman_num = 6;
  1165. case 6: {
  1166. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1167. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1168. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1169. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1170. input, &deliveryman_num_)));
  1171. } else {
  1172. goto handle_unusual;
  1173. }
  1174. break;
  1175. }
  1176. // int32 order_num = 7;
  1177. case 7: {
  1178. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1179. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1180. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1181. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1182. input, &order_num_)));
  1183. } else {
  1184. goto handle_unusual;
  1185. }
  1186. break;
  1187. }
  1188. // repeated .pathplanning.WaimaiOrder orders = 8;
  1189. case 8: {
  1190. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1191. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1192. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1193. input, add_orders()));
  1194. } else {
  1195. goto handle_unusual;
  1196. }
  1197. break;
  1198. }
  1199. // int32 request_type = 9;
  1200. case 9: {
  1201. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1202. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1203. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1204. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1205. input, &request_type_)));
  1206. } else {
  1207. goto handle_unusual;
  1208. }
  1209. break;
  1210. }
  1211. // int32 group_code = 10;
  1212. case 10: {
  1213. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1214. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1215. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1216. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1217. input, &group_code_)));
  1218. } else {
  1219. goto handle_unusual;
  1220. }
  1221. break;
  1222. }
  1223. // int64 init_time = 11;
  1224. case 11: {
  1225. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1226. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  1227. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1228. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  1229. input, &init_time_)));
  1230. } else {
  1231. goto handle_unusual;
  1232. }
  1233. break;
  1234. }
  1235. default: {
  1236. handle_unusual:
  1237. if (tag == 0) {
  1238. goto success;
  1239. }
  1240. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1241. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1242. break;
  1243. }
  1244. }
  1245. }
  1246. success:
  1247. // @@protoc_insertion_point(parse_success:pathplanning.PathPlanningRequest)
  1248. return true;
  1249. failure:
  1250. // @@protoc_insertion_point(parse_failure:pathplanning.PathPlanningRequest)
  1251. return false;
  1252. #undef DO_
  1253. }
  1254. void PathPlanningRequest::SerializeWithCachedSizes(
  1255. ::google::protobuf::io::CodedOutputStream* output) const {
  1256. // @@protoc_insertion_point(serialize_start:pathplanning.PathPlanningRequest)
  1257. ::google::protobuf::uint32 cached_has_bits = 0;
  1258. (void) cached_has_bits;
  1259. // double lat = 1;
  1260. if (this->lat() != 0) {
  1261. ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->lat(), output);
  1262. }
  1263. // double lng = 2;
  1264. if (this->lng() != 0) {
  1265. ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->lng(), output);
  1266. }
  1267. // string name = 3;
  1268. if (this->name().size() > 0) {
  1269. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1270. this->name().data(), static_cast<int>(this->name().length()),
  1271. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1272. "pathplanning.PathPlanningRequest.name");
  1273. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1274. 3, this->name(), output);
  1275. }
  1276. // int32 group_id = 4;
  1277. if (this->group_id() != 0) {
  1278. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->group_id(), output);
  1279. }
  1280. // int32 deliveryman_id = 5;
  1281. if (this->deliveryman_id() != 0) {
  1282. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->deliveryman_id(), output);
  1283. }
  1284. // int32 deliveryman_num = 6;
  1285. if (this->deliveryman_num() != 0) {
  1286. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->deliveryman_num(), output);
  1287. }
  1288. // int32 order_num = 7;
  1289. if (this->order_num() != 0) {
  1290. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->order_num(), output);
  1291. }
  1292. // repeated .pathplanning.WaimaiOrder orders = 8;
  1293. for (unsigned int i = 0,
  1294. n = static_cast<unsigned int>(this->orders_size()); i < n; i++) {
  1295. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1296. 8,
  1297. this->orders(static_cast<int>(i)),
  1298. output);
  1299. }
  1300. // int32 request_type = 9;
  1301. if (this->request_type() != 0) {
  1302. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->request_type(), output);
  1303. }
  1304. // int32 group_code = 10;
  1305. if (this->group_code() != 0) {
  1306. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->group_code(), output);
  1307. }
  1308. // int64 init_time = 11;
  1309. if (this->init_time() != 0) {
  1310. ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->init_time(), output);
  1311. }
  1312. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1313. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1314. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1315. }
  1316. // @@protoc_insertion_point(serialize_end:pathplanning.PathPlanningRequest)
  1317. }
  1318. ::google::protobuf::uint8* PathPlanningRequest::InternalSerializeWithCachedSizesToArray(
  1319. bool deterministic, ::google::protobuf::uint8* target) const {
  1320. (void)deterministic; // Unused
  1321. // @@protoc_insertion_point(serialize_to_array_start:pathplanning.PathPlanningRequest)
  1322. ::google::protobuf::uint32 cached_has_bits = 0;
  1323. (void) cached_has_bits;
  1324. // double lat = 1;
  1325. if (this->lat() != 0) {
  1326. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->lat(), target);
  1327. }
  1328. // double lng = 2;
  1329. if (this->lng() != 0) {
  1330. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->lng(), target);
  1331. }
  1332. // string name = 3;
  1333. if (this->name().size() > 0) {
  1334. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1335. this->name().data(), static_cast<int>(this->name().length()),
  1336. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1337. "pathplanning.PathPlanningRequest.name");
  1338. target =
  1339. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1340. 3, this->name(), target);
  1341. }
  1342. // int32 group_id = 4;
  1343. if (this->group_id() != 0) {
  1344. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->group_id(), target);
  1345. }
  1346. // int32 deliveryman_id = 5;
  1347. if (this->deliveryman_id() != 0) {
  1348. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->deliveryman_id(), target);
  1349. }
  1350. // int32 deliveryman_num = 6;
  1351. if (this->deliveryman_num() != 0) {
  1352. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->deliveryman_num(), target);
  1353. }
  1354. // int32 order_num = 7;
  1355. if (this->order_num() != 0) {
  1356. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->order_num(), target);
  1357. }
  1358. // repeated .pathplanning.WaimaiOrder orders = 8;
  1359. for (unsigned int i = 0,
  1360. n = static_cast<unsigned int>(this->orders_size()); i < n; i++) {
  1361. target = ::google::protobuf::internal::WireFormatLite::
  1362. InternalWriteMessageToArray(
  1363. 8, this->orders(static_cast<int>(i)), deterministic, target);
  1364. }
  1365. // int32 request_type = 9;
  1366. if (this->request_type() != 0) {
  1367. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->request_type(), target);
  1368. }
  1369. // int32 group_code = 10;
  1370. if (this->group_code() != 0) {
  1371. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->group_code(), target);
  1372. }
  1373. // int64 init_time = 11;
  1374. if (this->init_time() != 0) {
  1375. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->init_time(), target);
  1376. }
  1377. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1378. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1379. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1380. }
  1381. // @@protoc_insertion_point(serialize_to_array_end:pathplanning.PathPlanningRequest)
  1382. return target;
  1383. }
  1384. size_t PathPlanningRequest::ByteSizeLong() const {
  1385. // @@protoc_insertion_point(message_byte_size_start:pathplanning.PathPlanningRequest)
  1386. size_t total_size = 0;
  1387. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1388. total_size +=
  1389. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1390. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1391. }
  1392. // repeated .pathplanning.WaimaiOrder orders = 8;
  1393. {
  1394. unsigned int count = static_cast<unsigned int>(this->orders_size());
  1395. total_size += 1UL * count;
  1396. for (unsigned int i = 0; i < count; i++) {
  1397. total_size +=
  1398. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1399. this->orders(static_cast<int>(i)));
  1400. }
  1401. }
  1402. // string name = 3;
  1403. if (this->name().size() > 0) {
  1404. total_size += 1 +
  1405. ::google::protobuf::internal::WireFormatLite::StringSize(
  1406. this->name());
  1407. }
  1408. // double lat = 1;
  1409. if (this->lat() != 0) {
  1410. total_size += 1 + 8;
  1411. }
  1412. // double lng = 2;
  1413. if (this->lng() != 0) {
  1414. total_size += 1 + 8;
  1415. }
  1416. // int32 group_id = 4;
  1417. if (this->group_id() != 0) {
  1418. total_size += 1 +
  1419. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1420. this->group_id());
  1421. }
  1422. // int32 deliveryman_id = 5;
  1423. if (this->deliveryman_id() != 0) {
  1424. total_size += 1 +
  1425. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1426. this->deliveryman_id());
  1427. }
  1428. // int32 deliveryman_num = 6;
  1429. if (this->deliveryman_num() != 0) {
  1430. total_size += 1 +
  1431. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1432. this->deliveryman_num());
  1433. }
  1434. // int32 order_num = 7;
  1435. if (this->order_num() != 0) {
  1436. total_size += 1 +
  1437. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1438. this->order_num());
  1439. }
  1440. // int32 request_type = 9;
  1441. if (this->request_type() != 0) {
  1442. total_size += 1 +
  1443. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1444. this->request_type());
  1445. }
  1446. // int32 group_code = 10;
  1447. if (this->group_code() != 0) {
  1448. total_size += 1 +
  1449. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1450. this->group_code());
  1451. }
  1452. // int64 init_time = 11;
  1453. if (this->init_time() != 0) {
  1454. total_size += 1 +
  1455. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1456. this->init_time());
  1457. }
  1458. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1459. SetCachedSize(cached_size);
  1460. return total_size;
  1461. }
  1462. void PathPlanningRequest::MergeFrom(const ::google::protobuf::Message& from) {
  1463. // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.PathPlanningRequest)
  1464. GOOGLE_DCHECK_NE(&from, this);
  1465. const PathPlanningRequest* source =
  1466. ::google::protobuf::internal::DynamicCastToGenerated<const PathPlanningRequest>(
  1467. &from);
  1468. if (source == NULL) {
  1469. // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.PathPlanningRequest)
  1470. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1471. } else {
  1472. // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.PathPlanningRequest)
  1473. MergeFrom(*source);
  1474. }
  1475. }
  1476. void PathPlanningRequest::MergeFrom(const PathPlanningRequest& from) {
  1477. // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.PathPlanningRequest)
  1478. GOOGLE_DCHECK_NE(&from, this);
  1479. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1480. ::google::protobuf::uint32 cached_has_bits = 0;
  1481. (void) cached_has_bits;
  1482. orders_.MergeFrom(from.orders_);
  1483. if (from.name().size() > 0) {
  1484. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1485. }
  1486. if (from.lat() != 0) {
  1487. set_lat(from.lat());
  1488. }
  1489. if (from.lng() != 0) {
  1490. set_lng(from.lng());
  1491. }
  1492. if (from.group_id() != 0) {
  1493. set_group_id(from.group_id());
  1494. }
  1495. if (from.deliveryman_id() != 0) {
  1496. set_deliveryman_id(from.deliveryman_id());
  1497. }
  1498. if (from.deliveryman_num() != 0) {
  1499. set_deliveryman_num(from.deliveryman_num());
  1500. }
  1501. if (from.order_num() != 0) {
  1502. set_order_num(from.order_num());
  1503. }
  1504. if (from.request_type() != 0) {
  1505. set_request_type(from.request_type());
  1506. }
  1507. if (from.group_code() != 0) {
  1508. set_group_code(from.group_code());
  1509. }
  1510. if (from.init_time() != 0) {
  1511. set_init_time(from.init_time());
  1512. }
  1513. }
  1514. void PathPlanningRequest::CopyFrom(const ::google::protobuf::Message& from) {
  1515. // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.PathPlanningRequest)
  1516. if (&from == this) return;
  1517. Clear();
  1518. MergeFrom(from);
  1519. }
  1520. void PathPlanningRequest::CopyFrom(const PathPlanningRequest& from) {
  1521. // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.PathPlanningRequest)
  1522. if (&from == this) return;
  1523. Clear();
  1524. MergeFrom(from);
  1525. }
  1526. bool PathPlanningRequest::IsInitialized() const {
  1527. return true;
  1528. }
  1529. void PathPlanningRequest::Swap(PathPlanningRequest* other) {
  1530. if (other == this) return;
  1531. InternalSwap(other);
  1532. }
  1533. void PathPlanningRequest::InternalSwap(PathPlanningRequest* other) {
  1534. using std::swap;
  1535. CastToBase(&orders_)->InternalSwap(CastToBase(&other->orders_));
  1536. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1537. GetArenaNoVirtual());
  1538. swap(lat_, other->lat_);
  1539. swap(lng_, other->lng_);
  1540. swap(group_id_, other->group_id_);
  1541. swap(deliveryman_id_, other->deliveryman_id_);
  1542. swap(deliveryman_num_, other->deliveryman_num_);
  1543. swap(order_num_, other->order_num_);
  1544. swap(request_type_, other->request_type_);
  1545. swap(group_code_, other->group_code_);
  1546. swap(init_time_, other->init_time_);
  1547. _internal_metadata_.Swap(&other->_internal_metadata_);
  1548. }
  1549. ::google::protobuf::Metadata PathPlanningRequest::GetMetadata() const {
  1550. protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1551. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
  1552. }
  1553. // ===================================================================
  1554. void WaimaiOrderTask::InitAsDefaultInstance() {
  1555. }
  1556. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1557. const int WaimaiOrderTask::kOrderIdFieldNumber;
  1558. const int WaimaiOrderTask::kTaskTypeFieldNumber;
  1559. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1560. WaimaiOrderTask::WaimaiOrderTask()
  1561. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1562. ::google::protobuf::internal::InitSCC(
  1563. &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base);
  1564. SharedCtor();
  1565. // @@protoc_insertion_point(constructor:pathplanning.WaimaiOrderTask)
  1566. }
  1567. WaimaiOrderTask::WaimaiOrderTask(const WaimaiOrderTask& from)
  1568. : ::google::protobuf::Message(),
  1569. _internal_metadata_(NULL) {
  1570. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1571. ::memcpy(&order_id_, &from.order_id_,
  1572. static_cast<size_t>(reinterpret_cast<char*>(&task_type_) -
  1573. reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
  1574. // @@protoc_insertion_point(copy_constructor:pathplanning.WaimaiOrderTask)
  1575. }
  1576. void WaimaiOrderTask::SharedCtor() {
  1577. ::memset(&order_id_, 0, static_cast<size_t>(
  1578. reinterpret_cast<char*>(&task_type_) -
  1579. reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
  1580. }
  1581. WaimaiOrderTask::~WaimaiOrderTask() {
  1582. // @@protoc_insertion_point(destructor:pathplanning.WaimaiOrderTask)
  1583. SharedDtor();
  1584. }
  1585. void WaimaiOrderTask::SharedDtor() {
  1586. }
  1587. void WaimaiOrderTask::SetCachedSize(int size) const {
  1588. _cached_size_.Set(size);
  1589. }
  1590. const ::google::protobuf::Descriptor* WaimaiOrderTask::descriptor() {
  1591. ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1592. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1593. }
  1594. const WaimaiOrderTask& WaimaiOrderTask::default_instance() {
  1595. ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base);
  1596. return *internal_default_instance();
  1597. }
  1598. void WaimaiOrderTask::Clear() {
  1599. // @@protoc_insertion_point(message_clear_start:pathplanning.WaimaiOrderTask)
  1600. ::google::protobuf::uint32 cached_has_bits = 0;
  1601. // Prevent compiler warnings about cached_has_bits being unused
  1602. (void) cached_has_bits;
  1603. ::memset(&order_id_, 0, static_cast<size_t>(
  1604. reinterpret_cast<char*>(&task_type_) -
  1605. reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
  1606. _internal_metadata_.Clear();
  1607. }
  1608. bool WaimaiOrderTask::MergePartialFromCodedStream(
  1609. ::google::protobuf::io::CodedInputStream* input) {
  1610. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1611. ::google::protobuf::uint32 tag;
  1612. // @@protoc_insertion_point(parse_start:pathplanning.WaimaiOrderTask)
  1613. for (;;) {
  1614. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1615. tag = p.first;
  1616. if (!p.second) goto handle_unusual;
  1617. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1618. // int32 order_id = 1;
  1619. case 1: {
  1620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1621. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1622. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1623. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1624. input, &order_id_)));
  1625. } else {
  1626. goto handle_unusual;
  1627. }
  1628. break;
  1629. }
  1630. // int32 task_type = 2;
  1631. case 2: {
  1632. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1633. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1634. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1635. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1636. input, &task_type_)));
  1637. } else {
  1638. goto handle_unusual;
  1639. }
  1640. break;
  1641. }
  1642. default: {
  1643. handle_unusual:
  1644. if (tag == 0) {
  1645. goto success;
  1646. }
  1647. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1648. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1649. break;
  1650. }
  1651. }
  1652. }
  1653. success:
  1654. // @@protoc_insertion_point(parse_success:pathplanning.WaimaiOrderTask)
  1655. return true;
  1656. failure:
  1657. // @@protoc_insertion_point(parse_failure:pathplanning.WaimaiOrderTask)
  1658. return false;
  1659. #undef DO_
  1660. }
  1661. void WaimaiOrderTask::SerializeWithCachedSizes(
  1662. ::google::protobuf::io::CodedOutputStream* output) const {
  1663. // @@protoc_insertion_point(serialize_start:pathplanning.WaimaiOrderTask)
  1664. ::google::protobuf::uint32 cached_has_bits = 0;
  1665. (void) cached_has_bits;
  1666. // int32 order_id = 1;
  1667. if (this->order_id() != 0) {
  1668. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->order_id(), output);
  1669. }
  1670. // int32 task_type = 2;
  1671. if (this->task_type() != 0) {
  1672. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->task_type(), output);
  1673. }
  1674. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1675. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1676. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1677. }
  1678. // @@protoc_insertion_point(serialize_end:pathplanning.WaimaiOrderTask)
  1679. }
  1680. ::google::protobuf::uint8* WaimaiOrderTask::InternalSerializeWithCachedSizesToArray(
  1681. bool deterministic, ::google::protobuf::uint8* target) const {
  1682. (void)deterministic; // Unused
  1683. // @@protoc_insertion_point(serialize_to_array_start:pathplanning.WaimaiOrderTask)
  1684. ::google::protobuf::uint32 cached_has_bits = 0;
  1685. (void) cached_has_bits;
  1686. // int32 order_id = 1;
  1687. if (this->order_id() != 0) {
  1688. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->order_id(), target);
  1689. }
  1690. // int32 task_type = 2;
  1691. if (this->task_type() != 0) {
  1692. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->task_type(), target);
  1693. }
  1694. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1695. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1696. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1697. }
  1698. // @@protoc_insertion_point(serialize_to_array_end:pathplanning.WaimaiOrderTask)
  1699. return target;
  1700. }
  1701. size_t WaimaiOrderTask::ByteSizeLong() const {
  1702. // @@protoc_insertion_point(message_byte_size_start:pathplanning.WaimaiOrderTask)
  1703. size_t total_size = 0;
  1704. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1705. total_size +=
  1706. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1707. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1708. }
  1709. // int32 order_id = 1;
  1710. if (this->order_id() != 0) {
  1711. total_size += 1 +
  1712. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1713. this->order_id());
  1714. }
  1715. // int32 task_type = 2;
  1716. if (this->task_type() != 0) {
  1717. total_size += 1 +
  1718. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1719. this->task_type());
  1720. }
  1721. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1722. SetCachedSize(cached_size);
  1723. return total_size;
  1724. }
  1725. void WaimaiOrderTask::MergeFrom(const ::google::protobuf::Message& from) {
  1726. // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.WaimaiOrderTask)
  1727. GOOGLE_DCHECK_NE(&from, this);
  1728. const WaimaiOrderTask* source =
  1729. ::google::protobuf::internal::DynamicCastToGenerated<const WaimaiOrderTask>(
  1730. &from);
  1731. if (source == NULL) {
  1732. // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.WaimaiOrderTask)
  1733. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1734. } else {
  1735. // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.WaimaiOrderTask)
  1736. MergeFrom(*source);
  1737. }
  1738. }
  1739. void WaimaiOrderTask::MergeFrom(const WaimaiOrderTask& from) {
  1740. // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.WaimaiOrderTask)
  1741. GOOGLE_DCHECK_NE(&from, this);
  1742. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1743. ::google::protobuf::uint32 cached_has_bits = 0;
  1744. (void) cached_has_bits;
  1745. if (from.order_id() != 0) {
  1746. set_order_id(from.order_id());
  1747. }
  1748. if (from.task_type() != 0) {
  1749. set_task_type(from.task_type());
  1750. }
  1751. }
  1752. void WaimaiOrderTask::CopyFrom(const ::google::protobuf::Message& from) {
  1753. // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.WaimaiOrderTask)
  1754. if (&from == this) return;
  1755. Clear();
  1756. MergeFrom(from);
  1757. }
  1758. void WaimaiOrderTask::CopyFrom(const WaimaiOrderTask& from) {
  1759. // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.WaimaiOrderTask)
  1760. if (&from == this) return;
  1761. Clear();
  1762. MergeFrom(from);
  1763. }
  1764. bool WaimaiOrderTask::IsInitialized() const {
  1765. return true;
  1766. }
  1767. void WaimaiOrderTask::Swap(WaimaiOrderTask* other) {
  1768. if (other == this) return;
  1769. InternalSwap(other);
  1770. }
  1771. void WaimaiOrderTask::InternalSwap(WaimaiOrderTask* other) {
  1772. using std::swap;
  1773. swap(order_id_, other->order_id_);
  1774. swap(task_type_, other->task_type_);
  1775. _internal_metadata_.Swap(&other->_internal_metadata_);
  1776. }
  1777. ::google::protobuf::Metadata WaimaiOrderTask::GetMetadata() const {
  1778. protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1779. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
  1780. }
  1781. // ===================================================================
  1782. void PathPlanningReply::InitAsDefaultInstance() {
  1783. }
  1784. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1785. const int PathPlanningReply::kStatusFieldNumber;
  1786. const int PathPlanningReply::kErrMessageFieldNumber;
  1787. const int PathPlanningReply::kMBestDesFieldNumber;
  1788. const int PathPlanningReply::kGroupIdFieldNumber;
  1789. const int PathPlanningReply::kDeliverymanIdFieldNumber;
  1790. const int PathPlanningReply::kDeliverymanNumFieldNumber;
  1791. const int PathPlanningReply::kOrderNumFieldNumber;
  1792. const int PathPlanningReply::kRequestTypeFieldNumber;
  1793. const int PathPlanningReply::kBestRoadFieldNumber;
  1794. const int PathPlanningReply::kGroupCodeFieldNumber;
  1795. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1796. PathPlanningReply::PathPlanningReply()
  1797. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1798. ::google::protobuf::internal::InitSCC(
  1799. &protobuf_PathPlanning_2eproto::scc_info_PathPlanningReply.base);
  1800. SharedCtor();
  1801. // @@protoc_insertion_point(constructor:pathplanning.PathPlanningReply)
  1802. }
  1803. PathPlanningReply::PathPlanningReply(const PathPlanningReply& from)
  1804. : ::google::protobuf::Message(),
  1805. _internal_metadata_(NULL),
  1806. bestroad_(from.bestroad_) {
  1807. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1808. status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1809. if (from.status().size() > 0) {
  1810. status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
  1811. }
  1812. err_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1813. if (from.err_message().size() > 0) {
  1814. err_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.err_message_);
  1815. }
  1816. ::memcpy(&m_bestdes_, &from.m_bestdes_,
  1817. static_cast<size_t>(reinterpret_cast<char*>(&group_code_) -
  1818. reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
  1819. // @@protoc_insertion_point(copy_constructor:pathplanning.PathPlanningReply)
  1820. }
  1821. void PathPlanningReply::SharedCtor() {
  1822. status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1823. err_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1824. ::memset(&m_bestdes_, 0, static_cast<size_t>(
  1825. reinterpret_cast<char*>(&group_code_) -
  1826. reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
  1827. }
  1828. PathPlanningReply::~PathPlanningReply() {
  1829. // @@protoc_insertion_point(destructor:pathplanning.PathPlanningReply)
  1830. SharedDtor();
  1831. }
  1832. void PathPlanningReply::SharedDtor() {
  1833. status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1834. err_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1835. }
  1836. void PathPlanningReply::SetCachedSize(int size) const {
  1837. _cached_size_.Set(size);
  1838. }
  1839. const ::google::protobuf::Descriptor* PathPlanningReply::descriptor() {
  1840. ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  1841. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1842. }
  1843. const PathPlanningReply& PathPlanningReply::default_instance() {
  1844. ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_PathPlanningReply.base);
  1845. return *internal_default_instance();
  1846. }
  1847. void PathPlanningReply::Clear() {
  1848. // @@protoc_insertion_point(message_clear_start:pathplanning.PathPlanningReply)
  1849. ::google::protobuf::uint32 cached_has_bits = 0;
  1850. // Prevent compiler warnings about cached_has_bits being unused
  1851. (void) cached_has_bits;
  1852. bestroad_.Clear();
  1853. status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1854. err_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1855. ::memset(&m_bestdes_, 0, static_cast<size_t>(
  1856. reinterpret_cast<char*>(&group_code_) -
  1857. reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
  1858. _internal_metadata_.Clear();
  1859. }
  1860. bool PathPlanningReply::MergePartialFromCodedStream(
  1861. ::google::protobuf::io::CodedInputStream* input) {
  1862. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1863. ::google::protobuf::uint32 tag;
  1864. // @@protoc_insertion_point(parse_start:pathplanning.PathPlanningReply)
  1865. for (;;) {
  1866. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1867. tag = p.first;
  1868. if (!p.second) goto handle_unusual;
  1869. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1870. // string status = 1;
  1871. case 1: {
  1872. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1873. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1874. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1875. input, this->mutable_status()));
  1876. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1877. this->status().data(), static_cast<int>(this->status().length()),
  1878. ::google::protobuf::internal::WireFormatLite::PARSE,
  1879. "pathplanning.PathPlanningReply.status"));
  1880. } else {
  1881. goto handle_unusual;
  1882. }
  1883. break;
  1884. }
  1885. // string err_message = 2;
  1886. case 2: {
  1887. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1888. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1889. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1890. input, this->mutable_err_message()));
  1891. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1892. this->err_message().data(), static_cast<int>(this->err_message().length()),
  1893. ::google::protobuf::internal::WireFormatLite::PARSE,
  1894. "pathplanning.PathPlanningReply.err_message"));
  1895. } else {
  1896. goto handle_unusual;
  1897. }
  1898. break;
  1899. }
  1900. // double m_bestDes = 3;
  1901. case 3: {
  1902. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1903. static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
  1904. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1905. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1906. input, &m_bestdes_)));
  1907. } else {
  1908. goto handle_unusual;
  1909. }
  1910. break;
  1911. }
  1912. // int32 group_id = 4;
  1913. case 4: {
  1914. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1915. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1916. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1917. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1918. input, &group_id_)));
  1919. } else {
  1920. goto handle_unusual;
  1921. }
  1922. break;
  1923. }
  1924. // int32 deliveryman_id = 5;
  1925. case 5: {
  1926. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1927. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1928. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1929. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1930. input, &deliveryman_id_)));
  1931. } else {
  1932. goto handle_unusual;
  1933. }
  1934. break;
  1935. }
  1936. // int32 deliveryman_num = 6;
  1937. case 6: {
  1938. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1939. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1940. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1941. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1942. input, &deliveryman_num_)));
  1943. } else {
  1944. goto handle_unusual;
  1945. }
  1946. break;
  1947. }
  1948. // int32 order_num = 7;
  1949. case 7: {
  1950. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1951. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1952. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1953. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1954. input, &order_num_)));
  1955. } else {
  1956. goto handle_unusual;
  1957. }
  1958. break;
  1959. }
  1960. // int32 request_type = 8;
  1961. case 8: {
  1962. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1963. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1964. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1965. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1966. input, &request_type_)));
  1967. } else {
  1968. goto handle_unusual;
  1969. }
  1970. break;
  1971. }
  1972. // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
  1973. case 9: {
  1974. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1975. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  1976. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1977. input, add_bestroad()));
  1978. } else {
  1979. goto handle_unusual;
  1980. }
  1981. break;
  1982. }
  1983. // int32 group_code = 10;
  1984. case 10: {
  1985. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1986. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1987. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1988. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1989. input, &group_code_)));
  1990. } else {
  1991. goto handle_unusual;
  1992. }
  1993. break;
  1994. }
  1995. default: {
  1996. handle_unusual:
  1997. if (tag == 0) {
  1998. goto success;
  1999. }
  2000. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2001. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2002. break;
  2003. }
  2004. }
  2005. }
  2006. success:
  2007. // @@protoc_insertion_point(parse_success:pathplanning.PathPlanningReply)
  2008. return true;
  2009. failure:
  2010. // @@protoc_insertion_point(parse_failure:pathplanning.PathPlanningReply)
  2011. return false;
  2012. #undef DO_
  2013. }
  2014. void PathPlanningReply::SerializeWithCachedSizes(
  2015. ::google::protobuf::io::CodedOutputStream* output) const {
  2016. // @@protoc_insertion_point(serialize_start:pathplanning.PathPlanningReply)
  2017. ::google::protobuf::uint32 cached_has_bits = 0;
  2018. (void) cached_has_bits;
  2019. // string status = 1;
  2020. if (this->status().size() > 0) {
  2021. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2022. this->status().data(), static_cast<int>(this->status().length()),
  2023. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2024. "pathplanning.PathPlanningReply.status");
  2025. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2026. 1, this->status(), output);
  2027. }
  2028. // string err_message = 2;
  2029. if (this->err_message().size() > 0) {
  2030. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2031. this->err_message().data(), static_cast<int>(this->err_message().length()),
  2032. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2033. "pathplanning.PathPlanningReply.err_message");
  2034. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2035. 2, this->err_message(), output);
  2036. }
  2037. // double m_bestDes = 3;
  2038. if (this->m_bestdes() != 0) {
  2039. ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->m_bestdes(), output);
  2040. }
  2041. // int32 group_id = 4;
  2042. if (this->group_id() != 0) {
  2043. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->group_id(), output);
  2044. }
  2045. // int32 deliveryman_id = 5;
  2046. if (this->deliveryman_id() != 0) {
  2047. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->deliveryman_id(), output);
  2048. }
  2049. // int32 deliveryman_num = 6;
  2050. if (this->deliveryman_num() != 0) {
  2051. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->deliveryman_num(), output);
  2052. }
  2053. // int32 order_num = 7;
  2054. if (this->order_num() != 0) {
  2055. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->order_num(), output);
  2056. }
  2057. // int32 request_type = 8;
  2058. if (this->request_type() != 0) {
  2059. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->request_type(), output);
  2060. }
  2061. // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
  2062. for (unsigned int i = 0,
  2063. n = static_cast<unsigned int>(this->bestroad_size()); i < n; i++) {
  2064. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2065. 9,
  2066. this->bestroad(static_cast<int>(i)),
  2067. output);
  2068. }
  2069. // int32 group_code = 10;
  2070. if (this->group_code() != 0) {
  2071. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->group_code(), output);
  2072. }
  2073. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2074. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2075. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2076. }
  2077. // @@protoc_insertion_point(serialize_end:pathplanning.PathPlanningReply)
  2078. }
  2079. ::google::protobuf::uint8* PathPlanningReply::InternalSerializeWithCachedSizesToArray(
  2080. bool deterministic, ::google::protobuf::uint8* target) const {
  2081. (void)deterministic; // Unused
  2082. // @@protoc_insertion_point(serialize_to_array_start:pathplanning.PathPlanningReply)
  2083. ::google::protobuf::uint32 cached_has_bits = 0;
  2084. (void) cached_has_bits;
  2085. // string status = 1;
  2086. if (this->status().size() > 0) {
  2087. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2088. this->status().data(), static_cast<int>(this->status().length()),
  2089. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2090. "pathplanning.PathPlanningReply.status");
  2091. target =
  2092. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2093. 1, this->status(), target);
  2094. }
  2095. // string err_message = 2;
  2096. if (this->err_message().size() > 0) {
  2097. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2098. this->err_message().data(), static_cast<int>(this->err_message().length()),
  2099. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2100. "pathplanning.PathPlanningReply.err_message");
  2101. target =
  2102. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2103. 2, this->err_message(), target);
  2104. }
  2105. // double m_bestDes = 3;
  2106. if (this->m_bestdes() != 0) {
  2107. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->m_bestdes(), target);
  2108. }
  2109. // int32 group_id = 4;
  2110. if (this->group_id() != 0) {
  2111. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->group_id(), target);
  2112. }
  2113. // int32 deliveryman_id = 5;
  2114. if (this->deliveryman_id() != 0) {
  2115. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->deliveryman_id(), target);
  2116. }
  2117. // int32 deliveryman_num = 6;
  2118. if (this->deliveryman_num() != 0) {
  2119. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->deliveryman_num(), target);
  2120. }
  2121. // int32 order_num = 7;
  2122. if (this->order_num() != 0) {
  2123. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->order_num(), target);
  2124. }
  2125. // int32 request_type = 8;
  2126. if (this->request_type() != 0) {
  2127. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->request_type(), target);
  2128. }
  2129. // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
  2130. for (unsigned int i = 0,
  2131. n = static_cast<unsigned int>(this->bestroad_size()); i < n; i++) {
  2132. target = ::google::protobuf::internal::WireFormatLite::
  2133. InternalWriteMessageToArray(
  2134. 9, this->bestroad(static_cast<int>(i)), deterministic, target);
  2135. }
  2136. // int32 group_code = 10;
  2137. if (this->group_code() != 0) {
  2138. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->group_code(), target);
  2139. }
  2140. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2141. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2142. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2143. }
  2144. // @@protoc_insertion_point(serialize_to_array_end:pathplanning.PathPlanningReply)
  2145. return target;
  2146. }
  2147. size_t PathPlanningReply::ByteSizeLong() const {
  2148. // @@protoc_insertion_point(message_byte_size_start:pathplanning.PathPlanningReply)
  2149. size_t total_size = 0;
  2150. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2151. total_size +=
  2152. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2153. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2154. }
  2155. // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
  2156. {
  2157. unsigned int count = static_cast<unsigned int>(this->bestroad_size());
  2158. total_size += 1UL * count;
  2159. for (unsigned int i = 0; i < count; i++) {
  2160. total_size +=
  2161. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2162. this->bestroad(static_cast<int>(i)));
  2163. }
  2164. }
  2165. // string status = 1;
  2166. if (this->status().size() > 0) {
  2167. total_size += 1 +
  2168. ::google::protobuf::internal::WireFormatLite::StringSize(
  2169. this->status());
  2170. }
  2171. // string err_message = 2;
  2172. if (this->err_message().size() > 0) {
  2173. total_size += 1 +
  2174. ::google::protobuf::internal::WireFormatLite::StringSize(
  2175. this->err_message());
  2176. }
  2177. // double m_bestDes = 3;
  2178. if (this->m_bestdes() != 0) {
  2179. total_size += 1 + 8;
  2180. }
  2181. // int32 group_id = 4;
  2182. if (this->group_id() != 0) {
  2183. total_size += 1 +
  2184. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2185. this->group_id());
  2186. }
  2187. // int32 deliveryman_id = 5;
  2188. if (this->deliveryman_id() != 0) {
  2189. total_size += 1 +
  2190. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2191. this->deliveryman_id());
  2192. }
  2193. // int32 deliveryman_num = 6;
  2194. if (this->deliveryman_num() != 0) {
  2195. total_size += 1 +
  2196. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2197. this->deliveryman_num());
  2198. }
  2199. // int32 order_num = 7;
  2200. if (this->order_num() != 0) {
  2201. total_size += 1 +
  2202. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2203. this->order_num());
  2204. }
  2205. // int32 request_type = 8;
  2206. if (this->request_type() != 0) {
  2207. total_size += 1 +
  2208. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2209. this->request_type());
  2210. }
  2211. // int32 group_code = 10;
  2212. if (this->group_code() != 0) {
  2213. total_size += 1 +
  2214. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2215. this->group_code());
  2216. }
  2217. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2218. SetCachedSize(cached_size);
  2219. return total_size;
  2220. }
  2221. void PathPlanningReply::MergeFrom(const ::google::protobuf::Message& from) {
  2222. // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.PathPlanningReply)
  2223. GOOGLE_DCHECK_NE(&from, this);
  2224. const PathPlanningReply* source =
  2225. ::google::protobuf::internal::DynamicCastToGenerated<const PathPlanningReply>(
  2226. &from);
  2227. if (source == NULL) {
  2228. // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.PathPlanningReply)
  2229. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2230. } else {
  2231. // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.PathPlanningReply)
  2232. MergeFrom(*source);
  2233. }
  2234. }
  2235. void PathPlanningReply::MergeFrom(const PathPlanningReply& from) {
  2236. // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.PathPlanningReply)
  2237. GOOGLE_DCHECK_NE(&from, this);
  2238. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2239. ::google::protobuf::uint32 cached_has_bits = 0;
  2240. (void) cached_has_bits;
  2241. bestroad_.MergeFrom(from.bestroad_);
  2242. if (from.status().size() > 0) {
  2243. status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
  2244. }
  2245. if (from.err_message().size() > 0) {
  2246. err_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.err_message_);
  2247. }
  2248. if (from.m_bestdes() != 0) {
  2249. set_m_bestdes(from.m_bestdes());
  2250. }
  2251. if (from.group_id() != 0) {
  2252. set_group_id(from.group_id());
  2253. }
  2254. if (from.deliveryman_id() != 0) {
  2255. set_deliveryman_id(from.deliveryman_id());
  2256. }
  2257. if (from.deliveryman_num() != 0) {
  2258. set_deliveryman_num(from.deliveryman_num());
  2259. }
  2260. if (from.order_num() != 0) {
  2261. set_order_num(from.order_num());
  2262. }
  2263. if (from.request_type() != 0) {
  2264. set_request_type(from.request_type());
  2265. }
  2266. if (from.group_code() != 0) {
  2267. set_group_code(from.group_code());
  2268. }
  2269. }
  2270. void PathPlanningReply::CopyFrom(const ::google::protobuf::Message& from) {
  2271. // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.PathPlanningReply)
  2272. if (&from == this) return;
  2273. Clear();
  2274. MergeFrom(from);
  2275. }
  2276. void PathPlanningReply::CopyFrom(const PathPlanningReply& from) {
  2277. // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.PathPlanningReply)
  2278. if (&from == this) return;
  2279. Clear();
  2280. MergeFrom(from);
  2281. }
  2282. bool PathPlanningReply::IsInitialized() const {
  2283. return true;
  2284. }
  2285. void PathPlanningReply::Swap(PathPlanningReply* other) {
  2286. if (other == this) return;
  2287. InternalSwap(other);
  2288. }
  2289. void PathPlanningReply::InternalSwap(PathPlanningReply* other) {
  2290. using std::swap;
  2291. CastToBase(&bestroad_)->InternalSwap(CastToBase(&other->bestroad_));
  2292. status_.Swap(&other->status_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2293. GetArenaNoVirtual());
  2294. err_message_.Swap(&other->err_message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2295. GetArenaNoVirtual());
  2296. swap(m_bestdes_, other->m_bestdes_);
  2297. swap(group_id_, other->group_id_);
  2298. swap(deliveryman_id_, other->deliveryman_id_);
  2299. swap(deliveryman_num_, other->deliveryman_num_);
  2300. swap(order_num_, other->order_num_);
  2301. swap(request_type_, other->request_type_);
  2302. swap(group_code_, other->group_code_);
  2303. _internal_metadata_.Swap(&other->_internal_metadata_);
  2304. }
  2305. ::google::protobuf::Metadata PathPlanningReply::GetMetadata() const {
  2306. protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
  2307. return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
  2308. }
  2309. // @@protoc_insertion_point(namespace_scope)
  2310. } // namespace pathplanning
  2311. namespace google {
  2312. namespace protobuf {
  2313. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::WaimaiOrder* Arena::CreateMaybeMessage< ::pathplanning::WaimaiOrder >(Arena* arena) {
  2314. return Arena::CreateInternal< ::pathplanning::WaimaiOrder >(arena);
  2315. }
  2316. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::PathPlanningRequest* Arena::CreateMaybeMessage< ::pathplanning::PathPlanningRequest >(Arena* arena) {
  2317. return Arena::CreateInternal< ::pathplanning::PathPlanningRequest >(arena);
  2318. }
  2319. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::WaimaiOrderTask* Arena::CreateMaybeMessage< ::pathplanning::WaimaiOrderTask >(Arena* arena) {
  2320. return Arena::CreateInternal< ::pathplanning::WaimaiOrderTask >(arena);
  2321. }
  2322. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::PathPlanningReply* Arena::CreateMaybeMessage< ::pathplanning::PathPlanningReply >(Arena* arena) {
  2323. return Arena::CreateInternal< ::pathplanning::PathPlanningReply >(arena);
  2324. }
  2325. } // namespace protobuf
  2326. } // namespace google
  2327. // @@protoc_insertion_point(global_scope)