| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: PathPlanning.proto
- #include "PathPlanning.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_PathPlanning_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_PathPlanning_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrder;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_PathPlanning_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrderTask;
- } // namespace protobuf_PathPlanning_2eproto
- namespace pathplanning {
- class WaimaiOrderDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<WaimaiOrder>
- _instance;
- } _WaimaiOrder_default_instance_;
- class PathPlanningRequestDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<PathPlanningRequest>
- _instance;
- } _PathPlanningRequest_default_instance_;
- class WaimaiOrderTaskDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<WaimaiOrderTask>
- _instance;
- } _WaimaiOrderTask_default_instance_;
- class PathPlanningReplyDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<PathPlanningReply>
- _instance;
- } _PathPlanningReply_default_instance_;
- } // namespace pathplanning
- namespace protobuf_PathPlanning_2eproto {
- static void InitDefaultsWaimaiOrder() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::pathplanning::_WaimaiOrder_default_instance_;
- new (ptr) ::pathplanning::WaimaiOrder();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::pathplanning::WaimaiOrder::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrder =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWaimaiOrder}, {}};
- static void InitDefaultsPathPlanningRequest() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::pathplanning::_PathPlanningRequest_default_instance_;
- new (ptr) ::pathplanning::PathPlanningRequest();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::pathplanning::PathPlanningRequest::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_PathPlanningRequest =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPathPlanningRequest}, {
- &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base,}};
- static void InitDefaultsWaimaiOrderTask() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::pathplanning::_WaimaiOrderTask_default_instance_;
- new (ptr) ::pathplanning::WaimaiOrderTask();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::pathplanning::WaimaiOrderTask::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_WaimaiOrderTask =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWaimaiOrderTask}, {}};
- static void InitDefaultsPathPlanningReply() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::pathplanning::_PathPlanningReply_default_instance_;
- new (ptr) ::pathplanning::PathPlanningReply();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::pathplanning::PathPlanningReply::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_PathPlanningReply =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPathPlanningReply}, {
- &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_WaimaiOrder.base);
- ::google::protobuf::internal::InitSCC(&scc_info_PathPlanningRequest.base);
- ::google::protobuf::internal::InitSCC(&scc_info_WaimaiOrderTask.base);
- ::google::protobuf::internal::InitSCC(&scc_info_PathPlanningReply.base);
- }
- ::google::protobuf::Metadata file_level_metadata[4];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, init_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, confirme_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, daodian_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, quhuo_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, guke_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, songda_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, qiwang_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, chucan_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, jiaofu_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, haoshi_second_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, is_chaoshi_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, chaoshi_second_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_waimaiorder_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_group_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_deliveryman_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, m_status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, shop_lat_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, shop_lng_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, cus_lat_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrder, cus_lng_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, lat_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, lng_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, group_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, deliveryman_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, deliveryman_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, order_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, orders_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, request_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, group_code_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningRequest, init_time_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, order_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::WaimaiOrderTask, task_type_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, err_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, m_bestdes_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, group_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, deliveryman_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, deliveryman_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, order_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, request_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, bestroad_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pathplanning::PathPlanningReply, group_code_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::pathplanning::WaimaiOrder)},
- { 25, -1, sizeof(::pathplanning::PathPlanningRequest)},
- { 41, -1, sizeof(::pathplanning::WaimaiOrderTask)},
- { 48, -1, sizeof(::pathplanning::PathPlanningReply)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_WaimaiOrder_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_PathPlanningRequest_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_WaimaiOrderTask_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::pathplanning::_PathPlanningReply_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "PathPlanning.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\022PathPlanning.proto\022\014pathplanning\"\253\003\n\013W"
- "aimaiOrder\022\021\n\tinit_time\030\001 \001(\003\022\025\n\rconfirm"
- "e_time\030\002 \001(\003\022\024\n\014daodian_time\030\003 \001(\003\022\022\n\nqu"
- "huo_time\030\004 \001(\003\022\021\n\tguke_time\030\005 \001(\003\022\023\n\013son"
- "gda_time\030\006 \001(\003\022\023\n\013qiwang_time\030\007 \001(\003\022\023\n\013c"
- "hucan_time\030\010 \001(\005\022\023\n\013jiaofu_time\030\t \001(\005\022\025\n"
- "\rhaoshi_second\030\n \001(\005\022\022\n\nis_chaoshi\030\013 \001(\005"
- "\022\026\n\016chaoshi_second\030\014 \001(\005\022\030\n\020m_waimaiorde"
- "r_id\030\r \001(\005\022\022\n\nm_group_id\030\016 \001(\005\022\030\n\020m_deli"
- "veryman_id\030\017 \001(\005\022\020\n\010m_status\030\020 \001(\005\022\020\n\010sh"
- "op_lat\030\021 \001(\001\022\020\n\010shop_lng\030\022 \001(\001\022\017\n\007cus_la"
- "t\030\023 \001(\001\022\017\n\007cus_lng\030\024 \001(\001\"\373\001\n\023PathPlannin"
- "gRequest\022\013\n\003lat\030\001 \001(\001\022\013\n\003lng\030\002 \001(\001\022\014\n\004na"
- "me\030\003 \001(\t\022\020\n\010group_id\030\004 \001(\005\022\026\n\016deliveryma"
- "n_id\030\005 \001(\005\022\027\n\017deliveryman_num\030\006 \001(\005\022\021\n\to"
- "rder_num\030\007 \001(\005\022)\n\006orders\030\010 \003(\0132\031.pathpla"
- "nning.WaimaiOrder\022\024\n\014request_type\030\t \001(\005\022"
- "\022\n\ngroup_code\030\n \001(\005\022\021\n\tinit_time\030\013 \001(\003\"6"
- "\n\017WaimaiOrderTask\022\020\n\010order_id\030\001 \001(\005\022\021\n\tt"
- "ask_type\030\002 \001(\005\"\374\001\n\021PathPlanningReply\022\016\n\006"
- "status\030\001 \001(\t\022\023\n\013err_message\030\002 \001(\t\022\021\n\tm_b"
- "estDes\030\003 \001(\001\022\020\n\010group_id\030\004 \001(\005\022\026\n\016delive"
- "ryman_id\030\005 \001(\005\022\027\n\017deliveryman_num\030\006 \001(\005\022"
- "\021\n\torder_num\030\007 \001(\005\022\024\n\014request_type\030\010 \001(\005"
- "\022/\n\010bestRoad\030\t \003(\0132\035.pathplanning.Waimai"
- "OrderTask\022\022\n\ngroup_code\030\n \001(\0052`\n\rCPathPl"
- "anning\022O\n\007CalPath\022!.pathplanning.PathPla"
- "nningRequest\032\037.pathplanning.PathPlanning"
- "Reply\"\000b\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1135);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "PathPlanning.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_PathPlanning_2eproto
- namespace pathplanning {
- // ===================================================================
- void WaimaiOrder::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int WaimaiOrder::kInitTimeFieldNumber;
- const int WaimaiOrder::kConfirmeTimeFieldNumber;
- const int WaimaiOrder::kDaodianTimeFieldNumber;
- const int WaimaiOrder::kQuhuoTimeFieldNumber;
- const int WaimaiOrder::kGukeTimeFieldNumber;
- const int WaimaiOrder::kSongdaTimeFieldNumber;
- const int WaimaiOrder::kQiwangTimeFieldNumber;
- const int WaimaiOrder::kChucanTimeFieldNumber;
- const int WaimaiOrder::kJiaofuTimeFieldNumber;
- const int WaimaiOrder::kHaoshiSecondFieldNumber;
- const int WaimaiOrder::kIsChaoshiFieldNumber;
- const int WaimaiOrder::kChaoshiSecondFieldNumber;
- const int WaimaiOrder::kMWaimaiorderIdFieldNumber;
- const int WaimaiOrder::kMGroupIdFieldNumber;
- const int WaimaiOrder::kMDeliverymanIdFieldNumber;
- const int WaimaiOrder::kMStatusFieldNumber;
- const int WaimaiOrder::kShopLatFieldNumber;
- const int WaimaiOrder::kShopLngFieldNumber;
- const int WaimaiOrder::kCusLatFieldNumber;
- const int WaimaiOrder::kCusLngFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- WaimaiOrder::WaimaiOrder()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:pathplanning.WaimaiOrder)
- }
- WaimaiOrder::WaimaiOrder(const WaimaiOrder& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&init_time_, &from.init_time_,
- static_cast<size_t>(reinterpret_cast<char*>(&m_status_) -
- reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
- // @@protoc_insertion_point(copy_constructor:pathplanning.WaimaiOrder)
- }
- void WaimaiOrder::SharedCtor() {
- ::memset(&init_time_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m_status_) -
- reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
- }
- WaimaiOrder::~WaimaiOrder() {
- // @@protoc_insertion_point(destructor:pathplanning.WaimaiOrder)
- SharedDtor();
- }
- void WaimaiOrder::SharedDtor() {
- }
- void WaimaiOrder::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* WaimaiOrder::descriptor() {
- ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const WaimaiOrder& WaimaiOrder::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_WaimaiOrder.base);
- return *internal_default_instance();
- }
- void WaimaiOrder::Clear() {
- // @@protoc_insertion_point(message_clear_start:pathplanning.WaimaiOrder)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&init_time_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m_status_) -
- reinterpret_cast<char*>(&init_time_)) + sizeof(m_status_));
- _internal_metadata_.Clear();
- }
- bool WaimaiOrder::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:pathplanning.WaimaiOrder)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // int64 init_time = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &init_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 confirme_time = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &confirme_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 daodian_time = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &daodian_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 quhuo_time = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &quhuo_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 guke_time = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &guke_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 songda_time = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &songda_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 qiwang_time = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &qiwang_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 chucan_time = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &chucan_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 jiaofu_time = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &jiaofu_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 haoshi_second = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &haoshi_second_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 is_chaoshi = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &is_chaoshi_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 chaoshi_second = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &chaoshi_second_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 m_waimaiorder_id = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &m_waimaiorder_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 m_group_id = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &m_group_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 m_deliveryman_id = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &m_deliveryman_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 m_status = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &m_status_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double shop_lat = 17;
- case 17: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &shop_lat_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double shop_lng = 18;
- case 18: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(145u /* 145 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &shop_lng_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double cus_lat = 19;
- case 19: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &cus_lat_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double cus_lng = 20;
- case 20: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(161u /* 161 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &cus_lng_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:pathplanning.WaimaiOrder)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:pathplanning.WaimaiOrder)
- return false;
- #undef DO_
- }
- void WaimaiOrder::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:pathplanning.WaimaiOrder)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int64 init_time = 1;
- if (this->init_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->init_time(), output);
- }
- // int64 confirme_time = 2;
- if (this->confirme_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->confirme_time(), output);
- }
- // int64 daodian_time = 3;
- if (this->daodian_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->daodian_time(), output);
- }
- // int64 quhuo_time = 4;
- if (this->quhuo_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->quhuo_time(), output);
- }
- // int64 guke_time = 5;
- if (this->guke_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->guke_time(), output);
- }
- // int64 songda_time = 6;
- if (this->songda_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->songda_time(), output);
- }
- // int64 qiwang_time = 7;
- if (this->qiwang_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->qiwang_time(), output);
- }
- // int32 chucan_time = 8;
- if (this->chucan_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->chucan_time(), output);
- }
- // int32 jiaofu_time = 9;
- if (this->jiaofu_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->jiaofu_time(), output);
- }
- // int32 haoshi_second = 10;
- if (this->haoshi_second() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->haoshi_second(), output);
- }
- // int32 is_chaoshi = 11;
- if (this->is_chaoshi() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->is_chaoshi(), output);
- }
- // int32 chaoshi_second = 12;
- if (this->chaoshi_second() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->chaoshi_second(), output);
- }
- // int32 m_waimaiorder_id = 13;
- if (this->m_waimaiorder_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->m_waimaiorder_id(), output);
- }
- // int32 m_group_id = 14;
- if (this->m_group_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->m_group_id(), output);
- }
- // int32 m_deliveryman_id = 15;
- if (this->m_deliveryman_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->m_deliveryman_id(), output);
- }
- // int32 m_status = 16;
- if (this->m_status() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->m_status(), output);
- }
- // double shop_lat = 17;
- if (this->shop_lat() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->shop_lat(), output);
- }
- // double shop_lng = 18;
- if (this->shop_lng() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->shop_lng(), output);
- }
- // double cus_lat = 19;
- if (this->cus_lat() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(19, this->cus_lat(), output);
- }
- // double cus_lng = 20;
- if (this->cus_lng() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->cus_lng(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:pathplanning.WaimaiOrder)
- }
- ::google::protobuf::uint8* WaimaiOrder::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:pathplanning.WaimaiOrder)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int64 init_time = 1;
- if (this->init_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->init_time(), target);
- }
- // int64 confirme_time = 2;
- if (this->confirme_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->confirme_time(), target);
- }
- // int64 daodian_time = 3;
- if (this->daodian_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->daodian_time(), target);
- }
- // int64 quhuo_time = 4;
- if (this->quhuo_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->quhuo_time(), target);
- }
- // int64 guke_time = 5;
- if (this->guke_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->guke_time(), target);
- }
- // int64 songda_time = 6;
- if (this->songda_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->songda_time(), target);
- }
- // int64 qiwang_time = 7;
- if (this->qiwang_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->qiwang_time(), target);
- }
- // int32 chucan_time = 8;
- if (this->chucan_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->chucan_time(), target);
- }
- // int32 jiaofu_time = 9;
- if (this->jiaofu_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->jiaofu_time(), target);
- }
- // int32 haoshi_second = 10;
- if (this->haoshi_second() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->haoshi_second(), target);
- }
- // int32 is_chaoshi = 11;
- if (this->is_chaoshi() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->is_chaoshi(), target);
- }
- // int32 chaoshi_second = 12;
- if (this->chaoshi_second() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->chaoshi_second(), target);
- }
- // int32 m_waimaiorder_id = 13;
- if (this->m_waimaiorder_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->m_waimaiorder_id(), target);
- }
- // int32 m_group_id = 14;
- if (this->m_group_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->m_group_id(), target);
- }
- // int32 m_deliveryman_id = 15;
- if (this->m_deliveryman_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->m_deliveryman_id(), target);
- }
- // int32 m_status = 16;
- if (this->m_status() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->m_status(), target);
- }
- // double shop_lat = 17;
- if (this->shop_lat() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->shop_lat(), target);
- }
- // double shop_lng = 18;
- if (this->shop_lng() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->shop_lng(), target);
- }
- // double cus_lat = 19;
- if (this->cus_lat() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(19, this->cus_lat(), target);
- }
- // double cus_lng = 20;
- if (this->cus_lng() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->cus_lng(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:pathplanning.WaimaiOrder)
- return target;
- }
- size_t WaimaiOrder::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:pathplanning.WaimaiOrder)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // int64 init_time = 1;
- if (this->init_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->init_time());
- }
- // int64 confirme_time = 2;
- if (this->confirme_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->confirme_time());
- }
- // int64 daodian_time = 3;
- if (this->daodian_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->daodian_time());
- }
- // int64 quhuo_time = 4;
- if (this->quhuo_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->quhuo_time());
- }
- // int64 guke_time = 5;
- if (this->guke_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->guke_time());
- }
- // int64 songda_time = 6;
- if (this->songda_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->songda_time());
- }
- // int64 qiwang_time = 7;
- if (this->qiwang_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->qiwang_time());
- }
- // int32 chucan_time = 8;
- if (this->chucan_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->chucan_time());
- }
- // int32 jiaofu_time = 9;
- if (this->jiaofu_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->jiaofu_time());
- }
- // int32 haoshi_second = 10;
- if (this->haoshi_second() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->haoshi_second());
- }
- // int32 is_chaoshi = 11;
- if (this->is_chaoshi() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->is_chaoshi());
- }
- // int32 chaoshi_second = 12;
- if (this->chaoshi_second() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->chaoshi_second());
- }
- // int32 m_waimaiorder_id = 13;
- if (this->m_waimaiorder_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->m_waimaiorder_id());
- }
- // int32 m_group_id = 14;
- if (this->m_group_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->m_group_id());
- }
- // int32 m_deliveryman_id = 15;
- if (this->m_deliveryman_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->m_deliveryman_id());
- }
- // double shop_lat = 17;
- if (this->shop_lat() != 0) {
- total_size += 2 + 8;
- }
- // double shop_lng = 18;
- if (this->shop_lng() != 0) {
- total_size += 2 + 8;
- }
- // double cus_lat = 19;
- if (this->cus_lat() != 0) {
- total_size += 2 + 8;
- }
- // double cus_lng = 20;
- if (this->cus_lng() != 0) {
- total_size += 2 + 8;
- }
- // int32 m_status = 16;
- if (this->m_status() != 0) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->m_status());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void WaimaiOrder::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.WaimaiOrder)
- GOOGLE_DCHECK_NE(&from, this);
- const WaimaiOrder* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const WaimaiOrder>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.WaimaiOrder)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.WaimaiOrder)
- MergeFrom(*source);
- }
- }
- void WaimaiOrder::MergeFrom(const WaimaiOrder& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.WaimaiOrder)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.init_time() != 0) {
- set_init_time(from.init_time());
- }
- if (from.confirme_time() != 0) {
- set_confirme_time(from.confirme_time());
- }
- if (from.daodian_time() != 0) {
- set_daodian_time(from.daodian_time());
- }
- if (from.quhuo_time() != 0) {
- set_quhuo_time(from.quhuo_time());
- }
- if (from.guke_time() != 0) {
- set_guke_time(from.guke_time());
- }
- if (from.songda_time() != 0) {
- set_songda_time(from.songda_time());
- }
- if (from.qiwang_time() != 0) {
- set_qiwang_time(from.qiwang_time());
- }
- if (from.chucan_time() != 0) {
- set_chucan_time(from.chucan_time());
- }
- if (from.jiaofu_time() != 0) {
- set_jiaofu_time(from.jiaofu_time());
- }
- if (from.haoshi_second() != 0) {
- set_haoshi_second(from.haoshi_second());
- }
- if (from.is_chaoshi() != 0) {
- set_is_chaoshi(from.is_chaoshi());
- }
- if (from.chaoshi_second() != 0) {
- set_chaoshi_second(from.chaoshi_second());
- }
- if (from.m_waimaiorder_id() != 0) {
- set_m_waimaiorder_id(from.m_waimaiorder_id());
- }
- if (from.m_group_id() != 0) {
- set_m_group_id(from.m_group_id());
- }
- if (from.m_deliveryman_id() != 0) {
- set_m_deliveryman_id(from.m_deliveryman_id());
- }
- if (from.shop_lat() != 0) {
- set_shop_lat(from.shop_lat());
- }
- if (from.shop_lng() != 0) {
- set_shop_lng(from.shop_lng());
- }
- if (from.cus_lat() != 0) {
- set_cus_lat(from.cus_lat());
- }
- if (from.cus_lng() != 0) {
- set_cus_lng(from.cus_lng());
- }
- if (from.m_status() != 0) {
- set_m_status(from.m_status());
- }
- }
- void WaimaiOrder::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.WaimaiOrder)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void WaimaiOrder::CopyFrom(const WaimaiOrder& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.WaimaiOrder)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool WaimaiOrder::IsInitialized() const {
- return true;
- }
- void WaimaiOrder::Swap(WaimaiOrder* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void WaimaiOrder::InternalSwap(WaimaiOrder* other) {
- using std::swap;
- swap(init_time_, other->init_time_);
- swap(confirme_time_, other->confirme_time_);
- swap(daodian_time_, other->daodian_time_);
- swap(quhuo_time_, other->quhuo_time_);
- swap(guke_time_, other->guke_time_);
- swap(songda_time_, other->songda_time_);
- swap(qiwang_time_, other->qiwang_time_);
- swap(chucan_time_, other->chucan_time_);
- swap(jiaofu_time_, other->jiaofu_time_);
- swap(haoshi_second_, other->haoshi_second_);
- swap(is_chaoshi_, other->is_chaoshi_);
- swap(chaoshi_second_, other->chaoshi_second_);
- swap(m_waimaiorder_id_, other->m_waimaiorder_id_);
- swap(m_group_id_, other->m_group_id_);
- swap(m_deliveryman_id_, other->m_deliveryman_id_);
- swap(shop_lat_, other->shop_lat_);
- swap(shop_lng_, other->shop_lng_);
- swap(cus_lat_, other->cus_lat_);
- swap(cus_lng_, other->cus_lng_);
- swap(m_status_, other->m_status_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata WaimaiOrder::GetMetadata() const {
- protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void PathPlanningRequest::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int PathPlanningRequest::kLatFieldNumber;
- const int PathPlanningRequest::kLngFieldNumber;
- const int PathPlanningRequest::kNameFieldNumber;
- const int PathPlanningRequest::kGroupIdFieldNumber;
- const int PathPlanningRequest::kDeliverymanIdFieldNumber;
- const int PathPlanningRequest::kDeliverymanNumFieldNumber;
- const int PathPlanningRequest::kOrderNumFieldNumber;
- const int PathPlanningRequest::kOrdersFieldNumber;
- const int PathPlanningRequest::kRequestTypeFieldNumber;
- const int PathPlanningRequest::kGroupCodeFieldNumber;
- const int PathPlanningRequest::kInitTimeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- PathPlanningRequest::PathPlanningRequest()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_PathPlanning_2eproto::scc_info_PathPlanningRequest.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:pathplanning.PathPlanningRequest)
- }
- PathPlanningRequest::PathPlanningRequest(const PathPlanningRequest& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- orders_(from.orders_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.name().size() > 0) {
- name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
- }
- ::memcpy(&lat_, &from.lat_,
- static_cast<size_t>(reinterpret_cast<char*>(&init_time_) -
- reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
- // @@protoc_insertion_point(copy_constructor:pathplanning.PathPlanningRequest)
- }
- void PathPlanningRequest::SharedCtor() {
- name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&lat_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&init_time_) -
- reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
- }
- PathPlanningRequest::~PathPlanningRequest() {
- // @@protoc_insertion_point(destructor:pathplanning.PathPlanningRequest)
- SharedDtor();
- }
- void PathPlanningRequest::SharedDtor() {
- name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void PathPlanningRequest::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* PathPlanningRequest::descriptor() {
- ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const PathPlanningRequest& PathPlanningRequest::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_PathPlanningRequest.base);
- return *internal_default_instance();
- }
- void PathPlanningRequest::Clear() {
- // @@protoc_insertion_point(message_clear_start:pathplanning.PathPlanningRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- orders_.Clear();
- name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&lat_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&init_time_) -
- reinterpret_cast<char*>(&lat_)) + sizeof(init_time_));
- _internal_metadata_.Clear();
- }
- bool PathPlanningRequest::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:pathplanning.PathPlanningRequest)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // double lat = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &lat_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double lng = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &lng_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string name = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_name()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "pathplanning.PathPlanningRequest.name"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 group_id = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &group_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 deliveryman_id = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &deliveryman_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 deliveryman_num = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &deliveryman_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 order_num = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &order_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .pathplanning.WaimaiOrder orders = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_orders()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 request_type = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &request_type_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 group_code = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &group_code_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 init_time = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &init_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:pathplanning.PathPlanningRequest)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:pathplanning.PathPlanningRequest)
- return false;
- #undef DO_
- }
- void PathPlanningRequest::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:pathplanning.PathPlanningRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double lat = 1;
- if (this->lat() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->lat(), output);
- }
- // double lng = 2;
- if (this->lng() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->lng(), output);
- }
- // string name = 3;
- if (this->name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningRequest.name");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->name(), output);
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->group_id(), output);
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->deliveryman_id(), output);
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->deliveryman_num(), output);
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->order_num(), output);
- }
- // repeated .pathplanning.WaimaiOrder orders = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->orders_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8,
- this->orders(static_cast<int>(i)),
- output);
- }
- // int32 request_type = 9;
- if (this->request_type() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->request_type(), output);
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->group_code(), output);
- }
- // int64 init_time = 11;
- if (this->init_time() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->init_time(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:pathplanning.PathPlanningRequest)
- }
- ::google::protobuf::uint8* PathPlanningRequest::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:pathplanning.PathPlanningRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double lat = 1;
- if (this->lat() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->lat(), target);
- }
- // double lng = 2;
- if (this->lng() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->lng(), target);
- }
- // string name = 3;
- if (this->name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningRequest.name");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->name(), target);
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->group_id(), target);
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->deliveryman_id(), target);
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->deliveryman_num(), target);
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->order_num(), target);
- }
- // repeated .pathplanning.WaimaiOrder orders = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->orders_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->orders(static_cast<int>(i)), deterministic, target);
- }
- // int32 request_type = 9;
- if (this->request_type() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->request_type(), target);
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->group_code(), target);
- }
- // int64 init_time = 11;
- if (this->init_time() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->init_time(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:pathplanning.PathPlanningRequest)
- return target;
- }
- size_t PathPlanningRequest::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:pathplanning.PathPlanningRequest)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .pathplanning.WaimaiOrder orders = 8;
- {
- unsigned int count = static_cast<unsigned int>(this->orders_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->orders(static_cast<int>(i)));
- }
- }
- // string name = 3;
- if (this->name().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->name());
- }
- // double lat = 1;
- if (this->lat() != 0) {
- total_size += 1 + 8;
- }
- // double lng = 2;
- if (this->lng() != 0) {
- total_size += 1 + 8;
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->group_id());
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->deliveryman_id());
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->deliveryman_num());
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->order_num());
- }
- // int32 request_type = 9;
- if (this->request_type() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->request_type());
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->group_code());
- }
- // int64 init_time = 11;
- if (this->init_time() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->init_time());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void PathPlanningRequest::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.PathPlanningRequest)
- GOOGLE_DCHECK_NE(&from, this);
- const PathPlanningRequest* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const PathPlanningRequest>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.PathPlanningRequest)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.PathPlanningRequest)
- MergeFrom(*source);
- }
- }
- void PathPlanningRequest::MergeFrom(const PathPlanningRequest& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.PathPlanningRequest)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- orders_.MergeFrom(from.orders_);
- if (from.name().size() > 0) {
- name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
- }
- if (from.lat() != 0) {
- set_lat(from.lat());
- }
- if (from.lng() != 0) {
- set_lng(from.lng());
- }
- if (from.group_id() != 0) {
- set_group_id(from.group_id());
- }
- if (from.deliveryman_id() != 0) {
- set_deliveryman_id(from.deliveryman_id());
- }
- if (from.deliveryman_num() != 0) {
- set_deliveryman_num(from.deliveryman_num());
- }
- if (from.order_num() != 0) {
- set_order_num(from.order_num());
- }
- if (from.request_type() != 0) {
- set_request_type(from.request_type());
- }
- if (from.group_code() != 0) {
- set_group_code(from.group_code());
- }
- if (from.init_time() != 0) {
- set_init_time(from.init_time());
- }
- }
- void PathPlanningRequest::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.PathPlanningRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void PathPlanningRequest::CopyFrom(const PathPlanningRequest& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.PathPlanningRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PathPlanningRequest::IsInitialized() const {
- return true;
- }
- void PathPlanningRequest::Swap(PathPlanningRequest* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void PathPlanningRequest::InternalSwap(PathPlanningRequest* other) {
- using std::swap;
- CastToBase(&orders_)->InternalSwap(CastToBase(&other->orders_));
- name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(lat_, other->lat_);
- swap(lng_, other->lng_);
- swap(group_id_, other->group_id_);
- swap(deliveryman_id_, other->deliveryman_id_);
- swap(deliveryman_num_, other->deliveryman_num_);
- swap(order_num_, other->order_num_);
- swap(request_type_, other->request_type_);
- swap(group_code_, other->group_code_);
- swap(init_time_, other->init_time_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata PathPlanningRequest::GetMetadata() const {
- protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void WaimaiOrderTask::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int WaimaiOrderTask::kOrderIdFieldNumber;
- const int WaimaiOrderTask::kTaskTypeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- WaimaiOrderTask::WaimaiOrderTask()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:pathplanning.WaimaiOrderTask)
- }
- WaimaiOrderTask::WaimaiOrderTask(const WaimaiOrderTask& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&order_id_, &from.order_id_,
- static_cast<size_t>(reinterpret_cast<char*>(&task_type_) -
- reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
- // @@protoc_insertion_point(copy_constructor:pathplanning.WaimaiOrderTask)
- }
- void WaimaiOrderTask::SharedCtor() {
- ::memset(&order_id_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&task_type_) -
- reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
- }
- WaimaiOrderTask::~WaimaiOrderTask() {
- // @@protoc_insertion_point(destructor:pathplanning.WaimaiOrderTask)
- SharedDtor();
- }
- void WaimaiOrderTask::SharedDtor() {
- }
- void WaimaiOrderTask::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* WaimaiOrderTask::descriptor() {
- ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const WaimaiOrderTask& WaimaiOrderTask::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_WaimaiOrderTask.base);
- return *internal_default_instance();
- }
- void WaimaiOrderTask::Clear() {
- // @@protoc_insertion_point(message_clear_start:pathplanning.WaimaiOrderTask)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&order_id_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&task_type_) -
- reinterpret_cast<char*>(&order_id_)) + sizeof(task_type_));
- _internal_metadata_.Clear();
- }
- bool WaimaiOrderTask::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:pathplanning.WaimaiOrderTask)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // int32 order_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &order_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 task_type = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &task_type_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:pathplanning.WaimaiOrderTask)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:pathplanning.WaimaiOrderTask)
- return false;
- #undef DO_
- }
- void WaimaiOrderTask::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:pathplanning.WaimaiOrderTask)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 order_id = 1;
- if (this->order_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->order_id(), output);
- }
- // int32 task_type = 2;
- if (this->task_type() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->task_type(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:pathplanning.WaimaiOrderTask)
- }
- ::google::protobuf::uint8* WaimaiOrderTask::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:pathplanning.WaimaiOrderTask)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 order_id = 1;
- if (this->order_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->order_id(), target);
- }
- // int32 task_type = 2;
- if (this->task_type() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->task_type(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:pathplanning.WaimaiOrderTask)
- return target;
- }
- size_t WaimaiOrderTask::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:pathplanning.WaimaiOrderTask)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // int32 order_id = 1;
- if (this->order_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->order_id());
- }
- // int32 task_type = 2;
- if (this->task_type() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->task_type());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void WaimaiOrderTask::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.WaimaiOrderTask)
- GOOGLE_DCHECK_NE(&from, this);
- const WaimaiOrderTask* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const WaimaiOrderTask>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.WaimaiOrderTask)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.WaimaiOrderTask)
- MergeFrom(*source);
- }
- }
- void WaimaiOrderTask::MergeFrom(const WaimaiOrderTask& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.WaimaiOrderTask)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.order_id() != 0) {
- set_order_id(from.order_id());
- }
- if (from.task_type() != 0) {
- set_task_type(from.task_type());
- }
- }
- void WaimaiOrderTask::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.WaimaiOrderTask)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void WaimaiOrderTask::CopyFrom(const WaimaiOrderTask& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.WaimaiOrderTask)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool WaimaiOrderTask::IsInitialized() const {
- return true;
- }
- void WaimaiOrderTask::Swap(WaimaiOrderTask* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void WaimaiOrderTask::InternalSwap(WaimaiOrderTask* other) {
- using std::swap;
- swap(order_id_, other->order_id_);
- swap(task_type_, other->task_type_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata WaimaiOrderTask::GetMetadata() const {
- protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void PathPlanningReply::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int PathPlanningReply::kStatusFieldNumber;
- const int PathPlanningReply::kErrMessageFieldNumber;
- const int PathPlanningReply::kMBestDesFieldNumber;
- const int PathPlanningReply::kGroupIdFieldNumber;
- const int PathPlanningReply::kDeliverymanIdFieldNumber;
- const int PathPlanningReply::kDeliverymanNumFieldNumber;
- const int PathPlanningReply::kOrderNumFieldNumber;
- const int PathPlanningReply::kRequestTypeFieldNumber;
- const int PathPlanningReply::kBestRoadFieldNumber;
- const int PathPlanningReply::kGroupCodeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- PathPlanningReply::PathPlanningReply()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_PathPlanning_2eproto::scc_info_PathPlanningReply.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:pathplanning.PathPlanningReply)
- }
- PathPlanningReply::PathPlanningReply(const PathPlanningReply& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- bestroad_(from.bestroad_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.status().size() > 0) {
- status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
- }
- err_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.err_message().size() > 0) {
- err_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.err_message_);
- }
- ::memcpy(&m_bestdes_, &from.m_bestdes_,
- static_cast<size_t>(reinterpret_cast<char*>(&group_code_) -
- reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
- // @@protoc_insertion_point(copy_constructor:pathplanning.PathPlanningReply)
- }
- void PathPlanningReply::SharedCtor() {
- status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- err_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&m_bestdes_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&group_code_) -
- reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
- }
- PathPlanningReply::~PathPlanningReply() {
- // @@protoc_insertion_point(destructor:pathplanning.PathPlanningReply)
- SharedDtor();
- }
- void PathPlanningReply::SharedDtor() {
- status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- err_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void PathPlanningReply::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* PathPlanningReply::descriptor() {
- ::protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const PathPlanningReply& PathPlanningReply::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_PathPlanning_2eproto::scc_info_PathPlanningReply.base);
- return *internal_default_instance();
- }
- void PathPlanningReply::Clear() {
- // @@protoc_insertion_point(message_clear_start:pathplanning.PathPlanningReply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- bestroad_.Clear();
- status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- err_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&m_bestdes_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&group_code_) -
- reinterpret_cast<char*>(&m_bestdes_)) + sizeof(group_code_));
- _internal_metadata_.Clear();
- }
- bool PathPlanningReply::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:pathplanning.PathPlanningReply)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string status = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_status()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast<int>(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "pathplanning.PathPlanningReply.status"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string err_message = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_err_message()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->err_message().data(), static_cast<int>(this->err_message().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "pathplanning.PathPlanningReply.err_message"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double m_bestDes = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &m_bestdes_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 group_id = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &group_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 deliveryman_id = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &deliveryman_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 deliveryman_num = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &deliveryman_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 order_num = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &order_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 request_type = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &request_type_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_bestroad()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 group_code = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &group_code_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:pathplanning.PathPlanningReply)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:pathplanning.PathPlanningReply)
- return false;
- #undef DO_
- }
- void PathPlanningReply::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:pathplanning.PathPlanningReply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string status = 1;
- if (this->status().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast<int>(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningReply.status");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->status(), output);
- }
- // string err_message = 2;
- if (this->err_message().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->err_message().data(), static_cast<int>(this->err_message().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningReply.err_message");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->err_message(), output);
- }
- // double m_bestDes = 3;
- if (this->m_bestdes() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->m_bestdes(), output);
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->group_id(), output);
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->deliveryman_id(), output);
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->deliveryman_num(), output);
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->order_num(), output);
- }
- // int32 request_type = 8;
- if (this->request_type() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->request_type(), output);
- }
- // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->bestroad_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9,
- this->bestroad(static_cast<int>(i)),
- output);
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->group_code(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:pathplanning.PathPlanningReply)
- }
- ::google::protobuf::uint8* PathPlanningReply::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:pathplanning.PathPlanningReply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string status = 1;
- if (this->status().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast<int>(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningReply.status");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->status(), target);
- }
- // string err_message = 2;
- if (this->err_message().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->err_message().data(), static_cast<int>(this->err_message().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "pathplanning.PathPlanningReply.err_message");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->err_message(), target);
- }
- // double m_bestDes = 3;
- if (this->m_bestdes() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->m_bestdes(), target);
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->group_id(), target);
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->deliveryman_id(), target);
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->deliveryman_num(), target);
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->order_num(), target);
- }
- // int32 request_type = 8;
- if (this->request_type() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->request_type(), target);
- }
- // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->bestroad_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->bestroad(static_cast<int>(i)), deterministic, target);
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->group_code(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:pathplanning.PathPlanningReply)
- return target;
- }
- size_t PathPlanningReply::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:pathplanning.PathPlanningReply)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .pathplanning.WaimaiOrderTask bestRoad = 9;
- {
- unsigned int count = static_cast<unsigned int>(this->bestroad_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->bestroad(static_cast<int>(i)));
- }
- }
- // string status = 1;
- if (this->status().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->status());
- }
- // string err_message = 2;
- if (this->err_message().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->err_message());
- }
- // double m_bestDes = 3;
- if (this->m_bestdes() != 0) {
- total_size += 1 + 8;
- }
- // int32 group_id = 4;
- if (this->group_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->group_id());
- }
- // int32 deliveryman_id = 5;
- if (this->deliveryman_id() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->deliveryman_id());
- }
- // int32 deliveryman_num = 6;
- if (this->deliveryman_num() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->deliveryman_num());
- }
- // int32 order_num = 7;
- if (this->order_num() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->order_num());
- }
- // int32 request_type = 8;
- if (this->request_type() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->request_type());
- }
- // int32 group_code = 10;
- if (this->group_code() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->group_code());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void PathPlanningReply::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:pathplanning.PathPlanningReply)
- GOOGLE_DCHECK_NE(&from, this);
- const PathPlanningReply* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const PathPlanningReply>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:pathplanning.PathPlanningReply)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:pathplanning.PathPlanningReply)
- MergeFrom(*source);
- }
- }
- void PathPlanningReply::MergeFrom(const PathPlanningReply& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:pathplanning.PathPlanningReply)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- bestroad_.MergeFrom(from.bestroad_);
- if (from.status().size() > 0) {
- status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
- }
- if (from.err_message().size() > 0) {
- err_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.err_message_);
- }
- if (from.m_bestdes() != 0) {
- set_m_bestdes(from.m_bestdes());
- }
- if (from.group_id() != 0) {
- set_group_id(from.group_id());
- }
- if (from.deliveryman_id() != 0) {
- set_deliveryman_id(from.deliveryman_id());
- }
- if (from.deliveryman_num() != 0) {
- set_deliveryman_num(from.deliveryman_num());
- }
- if (from.order_num() != 0) {
- set_order_num(from.order_num());
- }
- if (from.request_type() != 0) {
- set_request_type(from.request_type());
- }
- if (from.group_code() != 0) {
- set_group_code(from.group_code());
- }
- }
- void PathPlanningReply::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:pathplanning.PathPlanningReply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void PathPlanningReply::CopyFrom(const PathPlanningReply& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:pathplanning.PathPlanningReply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PathPlanningReply::IsInitialized() const {
- return true;
- }
- void PathPlanningReply::Swap(PathPlanningReply* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void PathPlanningReply::InternalSwap(PathPlanningReply* other) {
- using std::swap;
- CastToBase(&bestroad_)->InternalSwap(CastToBase(&other->bestroad_));
- status_.Swap(&other->status_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- err_message_.Swap(&other->err_message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(m_bestdes_, other->m_bestdes_);
- swap(group_id_, other->group_id_);
- swap(deliveryman_id_, other->deliveryman_id_);
- swap(deliveryman_num_, other->deliveryman_num_);
- swap(order_num_, other->order_num_);
- swap(request_type_, other->request_type_);
- swap(group_code_, other->group_code_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata PathPlanningReply::GetMetadata() const {
- protobuf_PathPlanning_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_PathPlanning_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace pathplanning
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::WaimaiOrder* Arena::CreateMaybeMessage< ::pathplanning::WaimaiOrder >(Arena* arena) {
- return Arena::CreateInternal< ::pathplanning::WaimaiOrder >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::PathPlanningRequest* Arena::CreateMaybeMessage< ::pathplanning::PathPlanningRequest >(Arena* arena) {
- return Arena::CreateInternal< ::pathplanning::PathPlanningRequest >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::WaimaiOrderTask* Arena::CreateMaybeMessage< ::pathplanning::WaimaiOrderTask >(Arena* arena) {
- return Arena::CreateInternal< ::pathplanning::WaimaiOrderTask >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pathplanning::PathPlanningReply* Arena::CreateMaybeMessage< ::pathplanning::PathPlanningReply >(Arena* arena) {
- return Arena::CreateInternal< ::pathplanning::PathPlanningReply >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|