1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: singlechip_msg.proto
- #include "singlechip_msg.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.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 message {
- class InputDiDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<InputDi>
- _instance;
- } _InputDi_default_instance_;
- class OutputDoDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<OutputDo>
- _instance;
- } _OutputDo_default_instance_;
- class terminal_msgDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<terminal_msg>
- _instance;
- } _terminal_msg_default_instance_;
- class Singlechip_dataDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Singlechip_data>
- _instance;
- } _Singlechip_data_default_instance_;
- class Terminal_status_msgDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Terminal_status_msg>
- _instance;
- } _Terminal_status_msg_default_instance_;
- } // namespace message
- namespace protobuf_singlechip_5fmsg_2eproto {
- void InitDefaultsInputDiImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::message::_InputDi_default_instance_;
- new (ptr) ::message::InputDi();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::message::InputDi::InitAsDefaultInstance();
- }
- void InitDefaultsInputDi() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInputDiImpl);
- }
- void InitDefaultsOutputDoImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::message::_OutputDo_default_instance_;
- new (ptr) ::message::OutputDo();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::message::OutputDo::InitAsDefaultInstance();
- }
- void InitDefaultsOutputDo() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOutputDoImpl);
- }
- void InitDefaultsterminal_msgImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
- {
- void* ptr = &::message::_terminal_msg_default_instance_;
- new (ptr) ::message::terminal_msg();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::message::terminal_msg::InitAsDefaultInstance();
- }
- void InitDefaultsterminal_msg() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsterminal_msgImpl);
- }
- void InitDefaultsSinglechip_dataImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
- {
- void* ptr = &::message::_Singlechip_data_default_instance_;
- new (ptr) ::message::Singlechip_data();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::message::Singlechip_data::InitAsDefaultInstance();
- }
- void InitDefaultsSinglechip_data() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSinglechip_dataImpl);
- }
- void InitDefaultsTerminal_status_msgImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
- protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
- protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
- {
- void* ptr = &::message::_Terminal_status_msg_default_instance_;
- new (ptr) ::message::Terminal_status_msg();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::message::Terminal_status_msg::InitAsDefaultInstance();
- }
- void InitDefaultsTerminal_status_msg() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_status_msgImpl);
- }
- ::google::protobuf::Metadata file_level_metadata[5];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di0_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di4_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di5_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di6_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di7_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di8_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di9_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di10_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di11_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di12_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di13_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di14_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::InputDi, di15_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do0_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do4_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do5_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do6_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::OutputDo, do7_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, terminalid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, dispatchdirection_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, processcontrol_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::terminal_msg, outputdo_),
- 1,
- 2,
- 3,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, terminalid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, dispatchdirection_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, processstatus_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, inputdi_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, resetflag_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, processcontrol_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, insideexistenceflag_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, overborderstatus_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, carheightstatuscurrent_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, carheightstatuspassing_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, stopflag_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsidedoorstatus_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsidedoorcontrol_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, dispatchfinishflag_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Singlechip_data, outsideexistenceflag_),
- 1,
- 2,
- 3,
- 0,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, base_info_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, id_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, singlechipdata_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Terminal_status_msg, singlechip_validity_),
- 0,
- 1,
- 2,
- 3,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 21, sizeof(::message::InputDi)},
- { 37, 50, sizeof(::message::OutputDo)},
- { 58, 67, sizeof(::message::terminal_msg)},
- { 71, 91, sizeof(::message::Singlechip_data)},
- { 106, 115, sizeof(::message::Terminal_status_msg)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_InputDi_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_OutputDo_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_terminal_msg_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Singlechip_data_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Terminal_status_msg_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "singlechip_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, file_level_enum_descriptors, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&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, 5);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\024singlechip_msg.proto\022\007message\032\022message"
- "_base.proto\"\337\001\n\007InputDi\022\013\n\003Di0\030\001 \001(\005\022\013\n\003"
- "Di1\030\002 \001(\005\022\013\n\003Di2\030\003 \001(\005\022\013\n\003Di3\030\004 \001(\005\022\013\n\003D"
- "i4\030\005 \001(\005\022\013\n\003Di5\030\006 \001(\005\022\013\n\003Di6\030\007 \001(\005\022\013\n\003Di"
- "7\030\010 \001(\005\022\013\n\003Di8\030\t \001(\005\022\013\n\003Di9\030\n \001(\005\022\014\n\004Di1"
- "0\030\013 \001(\005\022\014\n\004Di11\030\014 \001(\005\022\014\n\004Di12\030\r \001(\005\022\014\n\004D"
- "i13\030\016 \001(\005\022\014\n\004Di14\030\017 \001(\005\022\014\n\004Di15\030\020 \001(\005\"r\n"
- "\010OutputDo\022\013\n\003Do0\030\001 \001(\005\022\013\n\003Do1\030\002 \001(\005\022\013\n\003D"
- "o2\030\003 \001(\005\022\013\n\003Do3\030\004 \001(\005\022\013\n\003Do4\030\005 \001(\005\022\013\n\003Do"
- "5\030\006 \001(\005\022\013\n\003Do6\030\007 \001(\005\022\013\n\003Do7\030\010 \001(\005\"z\n\014ter"
- "minal_msg\022\022\n\nTerminalID\030\001 \001(\005\022\031\n\021Dispatc"
- "hDirection\030\002 \001(\005\022\026\n\016ProcessControl\030\003 \001(\005"
- "\022#\n\010OutPutDo\030\004 \001(\0132\021.message.OutputDo\"\344\004"
- "\n\017Singlechip_data\022\022\n\nTerminalID\030\001 \001(\005\022\031\n"
- "\021DispatchDirection\030\002 \001(\005\022.\n\rProcessStatu"
- "s\030\003 \001(\0162\027.message.Process_status\022!\n\007InPu"
- "tDi\030\004 \001(\0132\020.message.InputDi\022\021\n\tResetFlag"
- "\030\005 \001(\005\0220\n\016ProcessControl\030\006 \001(\0162\030.message"
- ".Process_control\022\033\n\023InsideExistenceFlag\030"
- "\007 \001(\005\0225\n\020OverBorderStatus\030\010 \001(\0162\033.messag"
- "e.Over_border_status\022:\n\026CarHeightStatusC"
- "urrent\030\t \001(\0162\032.message.Car_height_status"
- "\022:\n\026CarHeightStatusPassing\030\n \001(\0162\032.messa"
- "ge.Car_height_status\022\020\n\010StopFlag\030\013 \001(\005\0227"
- "\n\021OutsideDoorStatus\030\014 \001(\0162\034.message.Outs"
- "ide_door_status\0229\n\022OutsideDoorControl\030\r "
- "\001(\0162\035.message.Outside_door_control\022\032\n\022Di"
- "spatchFinishFlag\030\016 \001(\005\022\034\n\024OutsideExisten"
- "ceFlag\030\017 \001(\005\"\262\001\n\023Terminal_status_msg\022%\n\t"
- "base_info\030\001 \002(\0132\022.message.Base_info\022%\n\ti"
- "d_struct\030\002 \001(\0132\022.message.Id_struct\0220\n\016si"
- "nglechipData\030\003 \001(\0132\030.message.Singlechip_"
- "data\022\033\n\023singlechip_validity\030\004 \001(\010*\344\006\n\017Pr"
- "ocess_control\022\033\n\027PROCESS_CONTROL_UNKNOWN"
- "\020\000\022\035\n\031PROCESS_CONTROL_FULL_AUTO\020\001\022\032\n\026PRO"
- "CESS_CONTROL_MANUAL\020\002\022\036\n\032PROCESS_CONTROL"
- "_AUTO_CLOSE\020\003\022\035\n\031PROCESS_CONTROL_AUTO_OP"
- "EN\020\004\022\034\n\030PROCESS_CONTROL_TO_READY\020\005\022\031\n\025PR"
- "OCESS_CONTROL_RESET\020\007\022\030\n\024PROCESS_CONTROL"
- "_STOP\020\010\022\031\n\025PROCESS_CONTROL_FAULT\020\t\022\033\n\027PR"
- "OCESS_CONTROL_INLET_0\020\n\022\033\n\027PROCESS_CONTR"
- "OL_INLET_1\020\013\022\033\n\027PROCESS_CONTROL_INLET_2\020"
- "\014\022\033\n\027PROCESS_CONTROL_INLET_3\020\r\022\033\n\027PROCES"
- "S_CONTROL_INLET_4\020\016\022\033\n\027PROCESS_CONTROL_I"
- "NLET_5\020\017\022\033\n\027PROCESS_CONTROL_INLET_6\020\020\022\033\n"
- "\027PROCESS_CONTROL_INLET_7\020\021\022\033\n\027PROCESS_CO"
- "NTROL_INLET_8\020\022\022\033\n\027PROCESS_CONTROL_INLET"
- "_9\020\023\022\034\n\030PROCESS_CONTROL_OUTLET_0\020\036\022\034\n\030PR"
- "OCESS_CONTROL_OUTLET_1\020\037\022\034\n\030PROCESS_CONT"
- "ROL_OUTLET_2\020 \022\034\n\030PROCESS_CONTROL_OUTLET"
- "_3\020!\022\034\n\030PROCESS_CONTROL_OUTLET_4\020\"\022\034\n\030PR"
- "OCESS_CONTROL_OUTLET_5\020#\022\034\n\030PROCESS_CONT"
- "ROL_OUTLET_6\020$\022\034\n\030PROCESS_CONTROL_OUTLET"
- "_7\020%\022\034\n\030PROCESS_CONTROL_OUTLET_8\020&\022\034\n\030PR"
- "OCESS_CONTROL_OUTLET_9\020\'*\311\001\n\022Over_border"
- "_status\022\036\n\032OVER_BORDER_STATUS_UNKNOWN\020\000\022"
- "\035\n\031OVER_BORDER_STATUS_NORMAL\020\001\022\034\n\030OVER_B"
- "ORDER_STATUS_FRONT\020\002\022\033\n\027OVER_BORDER_STAT"
- "US_BACK\020\003\022\033\n\027OVER_BORDER_STATUS_LEFT\020\004\022\034"
- "\n\030OVER_BORDER_STATUS_RIGHT\020\005*\303\001\n\021Car_hei"
- "ght_status\022\035\n\031CAR_HEIGHT_STATUS_UNKNOWN\020"
- "\000\022\033\n\027CAR_HEIGHT_STATUS_SMALL\020\001\022\034\n\030CAR_HE"
- "IGHT_STATUS_MEDIUM\020\002\022\033\n\027CAR_HEIGHT_STATU"
- "S_LARGE\020\003\022\032\n\026CAR_HEIGHT_STATUS_HUGE\020\004\022\033\n"
- "\027CAR_HEIGHT_STATUS_FAULT\020\005*\257\001\n\023Outside_d"
- "oor_status\022\037\n\033OUTSIDE_DOOR_STATUS_UNKNOW"
- "N\020\000\022\034\n\030OUTSIDE_DOOR_STATUS_OPEN\020\001\022\035\n\031OUT"
- "SIDE_DOOR_STATUS_CLOSE\020\002\022\033\n\027OUTSIDE_DOOR"
- "_STATUS_RUN\020\003\022\035\n\031OUTSIDE_DOOR_STATUS_FAU"
- "LT\020\004*w\n\024Outside_door_control\022 \n\034OUTSIDE_"
- "DOOR_CONTROL_UNKNOWN\020\000\022\035\n\031OUTSIDE_DOOR_C"
- "ONTROL_OPEN\020\001\022\036\n\032OUTSIDE_DOOR_CONTROL_CL"
- "OSE\020\002*\224\013\n\016Process_status\022\032\n\026PROCESS_STAT"
- "US_UNKNOWN\020\000\022\034\n\030PROCESS_STATUS_FULL_AUTO"
- "\020\001\022\031\n\025PROCESS_STATUS_MANUAL\020\002\022\035\n\031PROCESS"
- "_STATUS_AUTO_CLOSE\020\003\022\034\n\030PROCESS_STATUS_A"
- "UTO_OPEN\020\004\022\033\n\027PROCESS_STATUS_TO_READY\020\005\022"
- "\030\n\024PROCESS_STATUS_RESET\020\007\022\027\n\023PROCESS_STA"
- "TUS_STOP\020\010\022\030\n\024PROCESS_STATUS_FAULT\020\t\022\032\n\026"
- "PROCESS_STATUS_INLET_0\020\n\022\032\n\026PROCESS_STAT"
- "US_INLET_1\020\013\022\032\n\026PROCESS_STATUS_INLET_2\020\014"
- "\022\032\n\026PROCESS_STATUS_INLET_3\020\r\022\032\n\026PROCESS_"
- "STATUS_INLET_4\020\016\022\032\n\026PROCESS_STATUS_INLET"
- "_5\020\017\022\032\n\026PROCESS_STATUS_INLET_6\020\020\022\032\n\026PROC"
- "ESS_STATUS_INLET_7\020\021\022\032\n\026PROCESS_STATUS_I"
- "NLET_8\020\022\022\032\n\026PROCESS_STATUS_INLET_9\020\023\022\033\n\027"
- "PROCESS_STATUS_INLET_10\020\024\022\033\n\027PROCESS_STA"
- "TUS_INLET_11\020\025\022\033\n\027PROCESS_STATUS_INLET_1"
- "2\020\026\022\033\n\027PROCESS_STATUS_INLET_13\020\027\022\033\n\027PROC"
- "ESS_STATUS_INLET_14\020\030\022\033\n\027PROCESS_STATUS_"
- "INLET_15\020\031\022\033\n\027PROCESS_STATUS_INLET_16\020\032\022"
- "\033\n\027PROCESS_STATUS_INLET_17\020\033\022\033\n\027PROCESS_"
- "STATUS_INLET_18\020\034\022\033\n\027PROCESS_STATUS_INLE"
- "T_19\020\035\022\033\n\027PROCESS_STATUS_OUTLET_0\020\036\022\033\n\027P"
- "ROCESS_STATUS_OUTLET_1\020\037\022\033\n\027PROCESS_STAT"
- "US_OUTLET_2\020 \022\033\n\027PROCESS_STATUS_OUTLET_3"
- "\020!\022\033\n\027PROCESS_STATUS_OUTLET_4\020\"\022\033\n\027PROCE"
- "SS_STATUS_OUTLET_5\020#\022\033\n\027PROCESS_STATUS_O"
- "UTLET_6\020$\022\033\n\027PROCESS_STATUS_OUTLET_7\020%\022\033"
- "\n\027PROCESS_STATUS_OUTLET_8\020&\022\033\n\027PROCESS_S"
- "TATUS_OUTLET_9\020\'\022\034\n\030PROCESS_STATUS_OUTLE"
- "T_10\020(\022\034\n\030PROCESS_STATUS_OUTLET_11\020)\022\034\n\030"
- "PROCESS_STATUS_OUTLET_12\020*\022\034\n\030PROCESS_ST"
- "ATUS_OUTLET_13\020+\022\034\n\030PROCESS_STATUS_OUTLE"
- "T_14\020,\022\034\n\030PROCESS_STATUS_OUTLET_15\020-\022\034\n\030"
- "PROCESS_STATUS_OUTLET_16\020.\022\034\n\030PROCESS_ST"
- "ATUS_OUTLET_17\020/\022\034\n\030PROCESS_STATUS_OUTLE"
- "T_18\0200\022\034\n\030PROCESS_STATUS_OUTLET_19\0201"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 4316);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "singlechip_msg.proto", &protobuf_RegisterTypes);
- ::protobuf_message_5fbase_2eproto::AddDescriptors();
- }
- void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_singlechip_5fmsg_2eproto
- namespace message {
- const ::google::protobuf::EnumDescriptor* Process_control_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[0];
- }
- bool Process_control_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* Over_border_status_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[1];
- }
- bool Over_border_status_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* Car_height_status_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[2];
- }
- bool Car_height_status_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* Outside_door_status_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[3];
- }
- bool Outside_door_status_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* Outside_door_control_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[4];
- }
- bool Outside_door_control_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* Process_status_descriptor() {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_singlechip_5fmsg_2eproto::file_level_enum_descriptors[5];
- }
- bool Process_status_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- void InputDi::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int InputDi::kDi0FieldNumber;
- const int InputDi::kDi1FieldNumber;
- const int InputDi::kDi2FieldNumber;
- const int InputDi::kDi3FieldNumber;
- const int InputDi::kDi4FieldNumber;
- const int InputDi::kDi5FieldNumber;
- const int InputDi::kDi6FieldNumber;
- const int InputDi::kDi7FieldNumber;
- const int InputDi::kDi8FieldNumber;
- const int InputDi::kDi9FieldNumber;
- const int InputDi::kDi10FieldNumber;
- const int InputDi::kDi11FieldNumber;
- const int InputDi::kDi12FieldNumber;
- const int InputDi::kDi13FieldNumber;
- const int InputDi::kDi14FieldNumber;
- const int InputDi::kDi15FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- InputDi::InputDi()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:message.InputDi)
- }
- InputDi::InputDi(const InputDi& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&di0_, &from.di0_,
- static_cast<size_t>(reinterpret_cast<char*>(&di15_) -
- reinterpret_cast<char*>(&di0_)) + sizeof(di15_));
- // @@protoc_insertion_point(copy_constructor:message.InputDi)
- }
- void InputDi::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&di0_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&di15_) -
- reinterpret_cast<char*>(&di0_)) + sizeof(di15_));
- }
- InputDi::~InputDi() {
- // @@protoc_insertion_point(destructor:message.InputDi)
- SharedDtor();
- }
- void InputDi::SharedDtor() {
- }
- void InputDi::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* InputDi::descriptor() {
- ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const InputDi& InputDi::default_instance() {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
- return *internal_default_instance();
- }
- InputDi* InputDi::New(::google::protobuf::Arena* arena) const {
- InputDi* n = new InputDi;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void InputDi::Clear() {
- // @@protoc_insertion_point(message_clear_start:message.InputDi)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 255u) {
- ::memset(&di0_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&di7_) -
- reinterpret_cast<char*>(&di0_)) + sizeof(di7_));
- }
- if (cached_has_bits & 65280u) {
- ::memset(&di8_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&di15_) -
- reinterpret_cast<char*>(&di8_)) + sizeof(di15_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool InputDi::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:message.InputDi)
- 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)) {
- // optional int32 Di0 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_di0();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di0_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di1 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_di1();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di1_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di2 = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_di2();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di2_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di3 = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_di3();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di3_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di4 = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_di4();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di4_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di5 = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- set_has_di5();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di5_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di6 = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_di6();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di6_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di7 = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- set_has_di7();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di7_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di8 = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- set_has_di8();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di8_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di9 = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- set_has_di9();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di9_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di10 = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
- set_has_di10();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di10_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di11 = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
- set_has_di11();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di11_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di12 = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
- set_has_di12();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di12_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di13 = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
- set_has_di13();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di13_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di14 = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
- set_has_di14();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di14_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Di15 = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
- set_has_di15();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &di15_)));
- } 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:message.InputDi)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:message.InputDi)
- return false;
- #undef DO_
- }
- void InputDi::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:message.InputDi)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 Di0 = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->di0(), output);
- }
- // optional int32 Di1 = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->di1(), output);
- }
- // optional int32 Di2 = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->di2(), output);
- }
- // optional int32 Di3 = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->di3(), output);
- }
- // optional int32 Di4 = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->di4(), output);
- }
- // optional int32 Di5 = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->di5(), output);
- }
- // optional int32 Di6 = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->di6(), output);
- }
- // optional int32 Di7 = 8;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->di7(), output);
- }
- // optional int32 Di8 = 9;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->di8(), output);
- }
- // optional int32 Di9 = 10;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->di9(), output);
- }
- // optional int32 Di10 = 11;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->di10(), output);
- }
- // optional int32 Di11 = 12;
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->di11(), output);
- }
- // optional int32 Di12 = 13;
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->di12(), output);
- }
- // optional int32 Di13 = 14;
- if (cached_has_bits & 0x00002000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->di13(), output);
- }
- // optional int32 Di14 = 15;
- if (cached_has_bits & 0x00004000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->di14(), output);
- }
- // optional int32 Di15 = 16;
- if (cached_has_bits & 0x00008000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->di15(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:message.InputDi)
- }
- ::google::protobuf::uint8* InputDi::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:message.InputDi)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 Di0 = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->di0(), target);
- }
- // optional int32 Di1 = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->di1(), target);
- }
- // optional int32 Di2 = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->di2(), target);
- }
- // optional int32 Di3 = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->di3(), target);
- }
- // optional int32 Di4 = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->di4(), target);
- }
- // optional int32 Di5 = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->di5(), target);
- }
- // optional int32 Di6 = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->di6(), target);
- }
- // optional int32 Di7 = 8;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->di7(), target);
- }
- // optional int32 Di8 = 9;
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->di8(), target);
- }
- // optional int32 Di9 = 10;
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->di9(), target);
- }
- // optional int32 Di10 = 11;
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->di10(), target);
- }
- // optional int32 Di11 = 12;
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->di11(), target);
- }
- // optional int32 Di12 = 13;
- if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->di12(), target);
- }
- // optional int32 Di13 = 14;
- if (cached_has_bits & 0x00002000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->di13(), target);
- }
- // optional int32 Di14 = 15;
- if (cached_has_bits & 0x00004000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->di14(), target);
- }
- // optional int32 Di15 = 16;
- if (cached_has_bits & 0x00008000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->di15(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:message.InputDi)
- return target;
- }
- size_t InputDi::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:message.InputDi)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 255u) {
- // optional int32 Di0 = 1;
- if (has_di0()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di0());
- }
- // optional int32 Di1 = 2;
- if (has_di1()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di1());
- }
- // optional int32 Di2 = 3;
- if (has_di2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di2());
- }
- // optional int32 Di3 = 4;
- if (has_di3()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di3());
- }
- // optional int32 Di4 = 5;
- if (has_di4()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di4());
- }
- // optional int32 Di5 = 6;
- if (has_di5()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di5());
- }
- // optional int32 Di6 = 7;
- if (has_di6()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di6());
- }
- // optional int32 Di7 = 8;
- if (has_di7()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di7());
- }
- }
- if (_has_bits_[8 / 32] & 65280u) {
- // optional int32 Di8 = 9;
- if (has_di8()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di8());
- }
- // optional int32 Di9 = 10;
- if (has_di9()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di9());
- }
- // optional int32 Di10 = 11;
- if (has_di10()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di10());
- }
- // optional int32 Di11 = 12;
- if (has_di11()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di11());
- }
- // optional int32 Di12 = 13;
- if (has_di12()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di12());
- }
- // optional int32 Di13 = 14;
- if (has_di13()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di13());
- }
- // optional int32 Di14 = 15;
- if (has_di14()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di14());
- }
- // optional int32 Di15 = 16;
- if (has_di15()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->di15());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void InputDi::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:message.InputDi)
- GOOGLE_DCHECK_NE(&from, this);
- const InputDi* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const InputDi>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.InputDi)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.InputDi)
- MergeFrom(*source);
- }
- }
- void InputDi::MergeFrom(const InputDi& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:message.InputDi)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- di0_ = from.di0_;
- }
- if (cached_has_bits & 0x00000002u) {
- di1_ = from.di1_;
- }
- if (cached_has_bits & 0x00000004u) {
- di2_ = from.di2_;
- }
- if (cached_has_bits & 0x00000008u) {
- di3_ = from.di3_;
- }
- if (cached_has_bits & 0x00000010u) {
- di4_ = from.di4_;
- }
- if (cached_has_bits & 0x00000020u) {
- di5_ = from.di5_;
- }
- if (cached_has_bits & 0x00000040u) {
- di6_ = from.di6_;
- }
- if (cached_has_bits & 0x00000080u) {
- di7_ = from.di7_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 65280u) {
- if (cached_has_bits & 0x00000100u) {
- di8_ = from.di8_;
- }
- if (cached_has_bits & 0x00000200u) {
- di9_ = from.di9_;
- }
- if (cached_has_bits & 0x00000400u) {
- di10_ = from.di10_;
- }
- if (cached_has_bits & 0x00000800u) {
- di11_ = from.di11_;
- }
- if (cached_has_bits & 0x00001000u) {
- di12_ = from.di12_;
- }
- if (cached_has_bits & 0x00002000u) {
- di13_ = from.di13_;
- }
- if (cached_has_bits & 0x00004000u) {
- di14_ = from.di14_;
- }
- if (cached_has_bits & 0x00008000u) {
- di15_ = from.di15_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void InputDi::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:message.InputDi)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void InputDi::CopyFrom(const InputDi& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:message.InputDi)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool InputDi::IsInitialized() const {
- return true;
- }
- void InputDi::Swap(InputDi* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void InputDi::InternalSwap(InputDi* other) {
- using std::swap;
- swap(di0_, other->di0_);
- swap(di1_, other->di1_);
- swap(di2_, other->di2_);
- swap(di3_, other->di3_);
- swap(di4_, other->di4_);
- swap(di5_, other->di5_);
- swap(di6_, other->di6_);
- swap(di7_, other->di7_);
- swap(di8_, other->di8_);
- swap(di9_, other->di9_);
- swap(di10_, other->di10_);
- swap(di11_, other->di11_);
- swap(di12_, other->di12_);
- swap(di13_, other->di13_);
- swap(di14_, other->di14_);
- swap(di15_, other->di15_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata InputDi::GetMetadata() const {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void OutputDo::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int OutputDo::kDo0FieldNumber;
- const int OutputDo::kDo1FieldNumber;
- const int OutputDo::kDo2FieldNumber;
- const int OutputDo::kDo3FieldNumber;
- const int OutputDo::kDo4FieldNumber;
- const int OutputDo::kDo5FieldNumber;
- const int OutputDo::kDo6FieldNumber;
- const int OutputDo::kDo7FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- OutputDo::OutputDo()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:message.OutputDo)
- }
- OutputDo::OutputDo(const OutputDo& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&do0_, &from.do0_,
- static_cast<size_t>(reinterpret_cast<char*>(&do7_) -
- reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
- // @@protoc_insertion_point(copy_constructor:message.OutputDo)
- }
- void OutputDo::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&do0_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&do7_) -
- reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
- }
- OutputDo::~OutputDo() {
- // @@protoc_insertion_point(destructor:message.OutputDo)
- SharedDtor();
- }
- void OutputDo::SharedDtor() {
- }
- void OutputDo::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* OutputDo::descriptor() {
- ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const OutputDo& OutputDo::default_instance() {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
- return *internal_default_instance();
- }
- OutputDo* OutputDo::New(::google::protobuf::Arena* arena) const {
- OutputDo* n = new OutputDo;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void OutputDo::Clear() {
- // @@protoc_insertion_point(message_clear_start:message.OutputDo)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 255u) {
- ::memset(&do0_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&do7_) -
- reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool OutputDo::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:message.OutputDo)
- 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)) {
- // optional int32 Do0 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_do0();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do0_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do1 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_do1();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do1_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do2 = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_do2();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do2_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do3 = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_do3();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do3_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do4 = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_do4();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do4_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do5 = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- set_has_do5();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do5_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do6 = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_do6();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do6_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 Do7 = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- set_has_do7();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &do7_)));
- } 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:message.OutputDo)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:message.OutputDo)
- return false;
- #undef DO_
- }
- void OutputDo::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:message.OutputDo)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 Do0 = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->do0(), output);
- }
- // optional int32 Do1 = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->do1(), output);
- }
- // optional int32 Do2 = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->do2(), output);
- }
- // optional int32 Do3 = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->do3(), output);
- }
- // optional int32 Do4 = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->do4(), output);
- }
- // optional int32 Do5 = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->do5(), output);
- }
- // optional int32 Do6 = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->do6(), output);
- }
- // optional int32 Do7 = 8;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->do7(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:message.OutputDo)
- }
- ::google::protobuf::uint8* OutputDo::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:message.OutputDo)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 Do0 = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->do0(), target);
- }
- // optional int32 Do1 = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->do1(), target);
- }
- // optional int32 Do2 = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->do2(), target);
- }
- // optional int32 Do3 = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->do3(), target);
- }
- // optional int32 Do4 = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->do4(), target);
- }
- // optional int32 Do5 = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->do5(), target);
- }
- // optional int32 Do6 = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->do6(), target);
- }
- // optional int32 Do7 = 8;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->do7(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:message.OutputDo)
- return target;
- }
- size_t OutputDo::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:message.OutputDo)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 255u) {
- // optional int32 Do0 = 1;
- if (has_do0()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do0());
- }
- // optional int32 Do1 = 2;
- if (has_do1()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do1());
- }
- // optional int32 Do2 = 3;
- if (has_do2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do2());
- }
- // optional int32 Do3 = 4;
- if (has_do3()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do3());
- }
- // optional int32 Do4 = 5;
- if (has_do4()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do4());
- }
- // optional int32 Do5 = 6;
- if (has_do5()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do5());
- }
- // optional int32 Do6 = 7;
- if (has_do6()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do6());
- }
- // optional int32 Do7 = 8;
- if (has_do7()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->do7());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void OutputDo::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:message.OutputDo)
- GOOGLE_DCHECK_NE(&from, this);
- const OutputDo* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const OutputDo>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.OutputDo)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.OutputDo)
- MergeFrom(*source);
- }
- }
- void OutputDo::MergeFrom(const OutputDo& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:message.OutputDo)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- do0_ = from.do0_;
- }
- if (cached_has_bits & 0x00000002u) {
- do1_ = from.do1_;
- }
- if (cached_has_bits & 0x00000004u) {
- do2_ = from.do2_;
- }
- if (cached_has_bits & 0x00000008u) {
- do3_ = from.do3_;
- }
- if (cached_has_bits & 0x00000010u) {
- do4_ = from.do4_;
- }
- if (cached_has_bits & 0x00000020u) {
- do5_ = from.do5_;
- }
- if (cached_has_bits & 0x00000040u) {
- do6_ = from.do6_;
- }
- if (cached_has_bits & 0x00000080u) {
- do7_ = from.do7_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void OutputDo::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:message.OutputDo)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void OutputDo::CopyFrom(const OutputDo& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:message.OutputDo)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OutputDo::IsInitialized() const {
- return true;
- }
- void OutputDo::Swap(OutputDo* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void OutputDo::InternalSwap(OutputDo* other) {
- using std::swap;
- swap(do0_, other->do0_);
- swap(do1_, other->do1_);
- swap(do2_, other->do2_);
- swap(do3_, other->do3_);
- swap(do4_, other->do4_);
- swap(do5_, other->do5_);
- swap(do6_, other->do6_);
- swap(do7_, other->do7_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata OutputDo::GetMetadata() const {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void terminal_msg::InitAsDefaultInstance() {
- ::message::_terminal_msg_default_instance_._instance.get_mutable()->outputdo_ = const_cast< ::message::OutputDo*>(
- ::message::OutputDo::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int terminal_msg::kTerminalIDFieldNumber;
- const int terminal_msg::kDispatchDirectionFieldNumber;
- const int terminal_msg::kProcessControlFieldNumber;
- const int terminal_msg::kOutPutDoFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- terminal_msg::terminal_msg()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsterminal_msg();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:message.terminal_msg)
- }
- terminal_msg::terminal_msg(const terminal_msg& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_outputdo()) {
- outputdo_ = new ::message::OutputDo(*from.outputdo_);
- } else {
- outputdo_ = NULL;
- }
- ::memcpy(&terminalid_, &from.terminalid_,
- static_cast<size_t>(reinterpret_cast<char*>(&processcontrol_) -
- reinterpret_cast<char*>(&terminalid_)) + sizeof(processcontrol_));
- // @@protoc_insertion_point(copy_constructor:message.terminal_msg)
- }
- void terminal_msg::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&outputdo_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&processcontrol_) -
- reinterpret_cast<char*>(&outputdo_)) + sizeof(processcontrol_));
- }
- terminal_msg::~terminal_msg() {
- // @@protoc_insertion_point(destructor:message.terminal_msg)
- SharedDtor();
- }
- void terminal_msg::SharedDtor() {
- if (this != internal_default_instance()) delete outputdo_;
- }
- void terminal_msg::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* terminal_msg::descriptor() {
- ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const terminal_msg& terminal_msg::default_instance() {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsterminal_msg();
- return *internal_default_instance();
- }
- terminal_msg* terminal_msg::New(::google::protobuf::Arena* arena) const {
- terminal_msg* n = new terminal_msg;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void terminal_msg::Clear() {
- // @@protoc_insertion_point(message_clear_start:message.terminal_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(outputdo_ != NULL);
- outputdo_->Clear();
- }
- if (cached_has_bits & 14u) {
- ::memset(&terminalid_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&processcontrol_) -
- reinterpret_cast<char*>(&terminalid_)) + sizeof(processcontrol_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool terminal_msg::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:message.terminal_msg)
- 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)) {
- // optional int32 TerminalID = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_terminalid();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &terminalid_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 DispatchDirection = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_dispatchdirection();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &dispatchdirection_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 ProcessControl = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_processcontrol();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &processcontrol_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.OutputDo OutPutDo = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_outputdo()));
- } 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:message.terminal_msg)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:message.terminal_msg)
- return false;
- #undef DO_
- }
- void terminal_msg::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:message.terminal_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 TerminalID = 1;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminalid(), output);
- }
- // optional int32 DispatchDirection = 2;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatchdirection(), output);
- }
- // optional int32 ProcessControl = 3;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->processcontrol(), output);
- }
- // optional .message.OutputDo OutPutDo = 4;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->outputdo_, output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:message.terminal_msg)
- }
- ::google::protobuf::uint8* terminal_msg::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:message.terminal_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 TerminalID = 1;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminalid(), target);
- }
- // optional int32 DispatchDirection = 2;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatchdirection(), target);
- }
- // optional int32 ProcessControl = 3;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->processcontrol(), target);
- }
- // optional .message.OutputDo OutPutDo = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->outputdo_, deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:message.terminal_msg)
- return target;
- }
- size_t terminal_msg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:message.terminal_msg)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 15u) {
- // optional .message.OutputDo OutPutDo = 4;
- if (has_outputdo()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->outputdo_);
- }
- // optional int32 TerminalID = 1;
- if (has_terminalid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->terminalid());
- }
- // optional int32 DispatchDirection = 2;
- if (has_dispatchdirection()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->dispatchdirection());
- }
- // optional int32 ProcessControl = 3;
- if (has_processcontrol()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->processcontrol());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void terminal_msg::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:message.terminal_msg)
- GOOGLE_DCHECK_NE(&from, this);
- const terminal_msg* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const terminal_msg>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.terminal_msg)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.terminal_msg)
- MergeFrom(*source);
- }
- }
- void terminal_msg::MergeFrom(const terminal_msg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:message.terminal_msg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_outputdo()->::message::OutputDo::MergeFrom(from.outputdo());
- }
- if (cached_has_bits & 0x00000002u) {
- terminalid_ = from.terminalid_;
- }
- if (cached_has_bits & 0x00000004u) {
- dispatchdirection_ = from.dispatchdirection_;
- }
- if (cached_has_bits & 0x00000008u) {
- processcontrol_ = from.processcontrol_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void terminal_msg::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:message.terminal_msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void terminal_msg::CopyFrom(const terminal_msg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:message.terminal_msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool terminal_msg::IsInitialized() const {
- return true;
- }
- void terminal_msg::Swap(terminal_msg* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void terminal_msg::InternalSwap(terminal_msg* other) {
- using std::swap;
- swap(outputdo_, other->outputdo_);
- swap(terminalid_, other->terminalid_);
- swap(dispatchdirection_, other->dispatchdirection_);
- swap(processcontrol_, other->processcontrol_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata terminal_msg::GetMetadata() const {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Singlechip_data::InitAsDefaultInstance() {
- ::message::_Singlechip_data_default_instance_._instance.get_mutable()->inputdi_ = const_cast< ::message::InputDi*>(
- ::message::InputDi::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Singlechip_data::kTerminalIDFieldNumber;
- const int Singlechip_data::kDispatchDirectionFieldNumber;
- const int Singlechip_data::kProcessStatusFieldNumber;
- const int Singlechip_data::kInPutDiFieldNumber;
- const int Singlechip_data::kResetFlagFieldNumber;
- const int Singlechip_data::kProcessControlFieldNumber;
- const int Singlechip_data::kInsideExistenceFlagFieldNumber;
- const int Singlechip_data::kOverBorderStatusFieldNumber;
- const int Singlechip_data::kCarHeightStatusCurrentFieldNumber;
- const int Singlechip_data::kCarHeightStatusPassingFieldNumber;
- const int Singlechip_data::kStopFlagFieldNumber;
- const int Singlechip_data::kOutsideDoorStatusFieldNumber;
- const int Singlechip_data::kOutsideDoorControlFieldNumber;
- const int Singlechip_data::kDispatchFinishFlagFieldNumber;
- const int Singlechip_data::kOutsideExistenceFlagFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Singlechip_data::Singlechip_data()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:message.Singlechip_data)
- }
- Singlechip_data::Singlechip_data(const Singlechip_data& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_inputdi()) {
- inputdi_ = new ::message::InputDi(*from.inputdi_);
- } else {
- inputdi_ = NULL;
- }
- ::memcpy(&terminalid_, &from.terminalid_,
- static_cast<size_t>(reinterpret_cast<char*>(&outsideexistenceflag_) -
- reinterpret_cast<char*>(&terminalid_)) + sizeof(outsideexistenceflag_));
- // @@protoc_insertion_point(copy_constructor:message.Singlechip_data)
- }
- void Singlechip_data::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&inputdi_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&outsideexistenceflag_) -
- reinterpret_cast<char*>(&inputdi_)) + sizeof(outsideexistenceflag_));
- }
- Singlechip_data::~Singlechip_data() {
- // @@protoc_insertion_point(destructor:message.Singlechip_data)
- SharedDtor();
- }
- void Singlechip_data::SharedDtor() {
- if (this != internal_default_instance()) delete inputdi_;
- }
- void Singlechip_data::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Singlechip_data::descriptor() {
- ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Singlechip_data& Singlechip_data::default_instance() {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
- return *internal_default_instance();
- }
- Singlechip_data* Singlechip_data::New(::google::protobuf::Arena* arena) const {
- Singlechip_data* n = new Singlechip_data;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Singlechip_data::Clear() {
- // @@protoc_insertion_point(message_clear_start:message.Singlechip_data)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(inputdi_ != NULL);
- inputdi_->Clear();
- }
- if (cached_has_bits & 254u) {
- ::memset(&terminalid_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&overborderstatus_) -
- reinterpret_cast<char*>(&terminalid_)) + sizeof(overborderstatus_));
- }
- if (cached_has_bits & 32512u) {
- ::memset(&carheightstatuscurrent_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&outsideexistenceflag_) -
- reinterpret_cast<char*>(&carheightstatuscurrent_)) + sizeof(outsideexistenceflag_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Singlechip_data::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:message.Singlechip_data)
- 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)) {
- // optional int32 TerminalID = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_terminalid();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &terminalid_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 DispatchDirection = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_dispatchdirection();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &dispatchdirection_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Process_status ProcessStatus = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Process_status_IsValid(value)) {
- set_processstatus(static_cast< ::message::Process_status >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 3, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.InputDi InPutDi = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_inputdi()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 ResetFlag = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_resetflag();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &resetflag_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Process_control ProcessControl = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Process_control_IsValid(value)) {
- set_processcontrol(static_cast< ::message::Process_control >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 6, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 InsideExistenceFlag = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_insideexistenceflag();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &insideexistenceflag_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Over_border_status OverBorderStatus = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Over_border_status_IsValid(value)) {
- set_overborderstatus(static_cast< ::message::Over_border_status >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 8, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Car_height_status CarHeightStatusCurrent = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Car_height_status_IsValid(value)) {
- set_carheightstatuscurrent(static_cast< ::message::Car_height_status >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 9, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Car_height_status CarHeightStatusPassing = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Car_height_status_IsValid(value)) {
- set_carheightstatuspassing(static_cast< ::message::Car_height_status >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 10, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 StopFlag = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
- set_has_stopflag();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &stopflag_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Outside_door_status OutsideDoorStatus = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Outside_door_status_IsValid(value)) {
- set_outsidedoorstatus(static_cast< ::message::Outside_door_status >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 12, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Outside_door_control OutsideDoorControl = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::message::Outside_door_control_IsValid(value)) {
- set_outsidedoorcontrol(static_cast< ::message::Outside_door_control >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 13, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 DispatchFinishFlag = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
- set_has_dispatchfinishflag();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &dispatchfinishflag_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 OutsideExistenceFlag = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
- set_has_outsideexistenceflag();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &outsideexistenceflag_)));
- } 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:message.Singlechip_data)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:message.Singlechip_data)
- return false;
- #undef DO_
- }
- void Singlechip_data::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:message.Singlechip_data)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 TerminalID = 1;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminalid(), output);
- }
- // optional int32 DispatchDirection = 2;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatchdirection(), output);
- }
- // optional .message.Process_status ProcessStatus = 3;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 3, this->processstatus(), output);
- }
- // optional .message.InputDi InPutDi = 4;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->inputdi_, output);
- }
- // optional int32 ResetFlag = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->resetflag(), output);
- }
- // optional .message.Process_control ProcessControl = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 6, this->processcontrol(), output);
- }
- // optional int32 InsideExistenceFlag = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->insideexistenceflag(), output);
- }
- // optional .message.Over_border_status OverBorderStatus = 8;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 8, this->overborderstatus(), output);
- }
- // optional .message.Car_height_status CarHeightStatusCurrent = 9;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 9, this->carheightstatuscurrent(), output);
- }
- // optional .message.Car_height_status CarHeightStatusPassing = 10;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 10, this->carheightstatuspassing(), output);
- }
- // optional int32 StopFlag = 11;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->stopflag(), output);
- }
- // optional .message.Outside_door_status OutsideDoorStatus = 12;
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 12, this->outsidedoorstatus(), output);
- }
- // optional .message.Outside_door_control OutsideDoorControl = 13;
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 13, this->outsidedoorcontrol(), output);
- }
- // optional int32 DispatchFinishFlag = 14;
- if (cached_has_bits & 0x00002000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->dispatchfinishflag(), output);
- }
- // optional int32 OutsideExistenceFlag = 15;
- if (cached_has_bits & 0x00004000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->outsideexistenceflag(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:message.Singlechip_data)
- }
- ::google::protobuf::uint8* Singlechip_data::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:message.Singlechip_data)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 TerminalID = 1;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminalid(), target);
- }
- // optional int32 DispatchDirection = 2;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatchdirection(), target);
- }
- // optional .message.Process_status ProcessStatus = 3;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 3, this->processstatus(), target);
- }
- // optional .message.InputDi InPutDi = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->inputdi_, deterministic, target);
- }
- // optional int32 ResetFlag = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->resetflag(), target);
- }
- // optional .message.Process_control ProcessControl = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 6, this->processcontrol(), target);
- }
- // optional int32 InsideExistenceFlag = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->insideexistenceflag(), target);
- }
- // optional .message.Over_border_status OverBorderStatus = 8;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 8, this->overborderstatus(), target);
- }
- // optional .message.Car_height_status CarHeightStatusCurrent = 9;
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 9, this->carheightstatuscurrent(), target);
- }
- // optional .message.Car_height_status CarHeightStatusPassing = 10;
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 10, this->carheightstatuspassing(), target);
- }
- // optional int32 StopFlag = 11;
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->stopflag(), target);
- }
- // optional .message.Outside_door_status OutsideDoorStatus = 12;
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 12, this->outsidedoorstatus(), target);
- }
- // optional .message.Outside_door_control OutsideDoorControl = 13;
- if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 13, this->outsidedoorcontrol(), target);
- }
- // optional int32 DispatchFinishFlag = 14;
- if (cached_has_bits & 0x00002000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->dispatchfinishflag(), target);
- }
- // optional int32 OutsideExistenceFlag = 15;
- if (cached_has_bits & 0x00004000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->outsideexistenceflag(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:message.Singlechip_data)
- return target;
- }
- size_t Singlechip_data::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:message.Singlechip_data)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 255u) {
- // optional .message.InputDi InPutDi = 4;
- if (has_inputdi()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->inputdi_);
- }
- // optional int32 TerminalID = 1;
- if (has_terminalid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->terminalid());
- }
- // optional int32 DispatchDirection = 2;
- if (has_dispatchdirection()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->dispatchdirection());
- }
- // optional .message.Process_status ProcessStatus = 3;
- if (has_processstatus()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->processstatus());
- }
- // optional int32 ResetFlag = 5;
- if (has_resetflag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->resetflag());
- }
- // optional .message.Process_control ProcessControl = 6;
- if (has_processcontrol()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->processcontrol());
- }
- // optional int32 InsideExistenceFlag = 7;
- if (has_insideexistenceflag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->insideexistenceflag());
- }
- // optional .message.Over_border_status OverBorderStatus = 8;
- if (has_overborderstatus()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->overborderstatus());
- }
- }
- if (_has_bits_[8 / 32] & 32512u) {
- // optional .message.Car_height_status CarHeightStatusCurrent = 9;
- if (has_carheightstatuscurrent()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->carheightstatuscurrent());
- }
- // optional .message.Car_height_status CarHeightStatusPassing = 10;
- if (has_carheightstatuspassing()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->carheightstatuspassing());
- }
- // optional int32 StopFlag = 11;
- if (has_stopflag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->stopflag());
- }
- // optional .message.Outside_door_status OutsideDoorStatus = 12;
- if (has_outsidedoorstatus()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->outsidedoorstatus());
- }
- // optional .message.Outside_door_control OutsideDoorControl = 13;
- if (has_outsidedoorcontrol()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->outsidedoorcontrol());
- }
- // optional int32 DispatchFinishFlag = 14;
- if (has_dispatchfinishflag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->dispatchfinishflag());
- }
- // optional int32 OutsideExistenceFlag = 15;
- if (has_outsideexistenceflag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->outsideexistenceflag());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Singlechip_data::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:message.Singlechip_data)
- GOOGLE_DCHECK_NE(&from, this);
- const Singlechip_data* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Singlechip_data>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Singlechip_data)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Singlechip_data)
- MergeFrom(*source);
- }
- }
- void Singlechip_data::MergeFrom(const Singlechip_data& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:message.Singlechip_data)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_inputdi()->::message::InputDi::MergeFrom(from.inputdi());
- }
- if (cached_has_bits & 0x00000002u) {
- terminalid_ = from.terminalid_;
- }
- if (cached_has_bits & 0x00000004u) {
- dispatchdirection_ = from.dispatchdirection_;
- }
- if (cached_has_bits & 0x00000008u) {
- processstatus_ = from.processstatus_;
- }
- if (cached_has_bits & 0x00000010u) {
- resetflag_ = from.resetflag_;
- }
- if (cached_has_bits & 0x00000020u) {
- processcontrol_ = from.processcontrol_;
- }
- if (cached_has_bits & 0x00000040u) {
- insideexistenceflag_ = from.insideexistenceflag_;
- }
- if (cached_has_bits & 0x00000080u) {
- overborderstatus_ = from.overborderstatus_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 32512u) {
- if (cached_has_bits & 0x00000100u) {
- carheightstatuscurrent_ = from.carheightstatuscurrent_;
- }
- if (cached_has_bits & 0x00000200u) {
- carheightstatuspassing_ = from.carheightstatuspassing_;
- }
- if (cached_has_bits & 0x00000400u) {
- stopflag_ = from.stopflag_;
- }
- if (cached_has_bits & 0x00000800u) {
- outsidedoorstatus_ = from.outsidedoorstatus_;
- }
- if (cached_has_bits & 0x00001000u) {
- outsidedoorcontrol_ = from.outsidedoorcontrol_;
- }
- if (cached_has_bits & 0x00002000u) {
- dispatchfinishflag_ = from.dispatchfinishflag_;
- }
- if (cached_has_bits & 0x00004000u) {
- outsideexistenceflag_ = from.outsideexistenceflag_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Singlechip_data::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:message.Singlechip_data)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Singlechip_data::CopyFrom(const Singlechip_data& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:message.Singlechip_data)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Singlechip_data::IsInitialized() const {
- return true;
- }
- void Singlechip_data::Swap(Singlechip_data* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Singlechip_data::InternalSwap(Singlechip_data* other) {
- using std::swap;
- swap(inputdi_, other->inputdi_);
- swap(terminalid_, other->terminalid_);
- swap(dispatchdirection_, other->dispatchdirection_);
- swap(processstatus_, other->processstatus_);
- swap(resetflag_, other->resetflag_);
- swap(processcontrol_, other->processcontrol_);
- swap(insideexistenceflag_, other->insideexistenceflag_);
- swap(overborderstatus_, other->overborderstatus_);
- swap(carheightstatuscurrent_, other->carheightstatuscurrent_);
- swap(carheightstatuspassing_, other->carheightstatuspassing_);
- swap(stopflag_, other->stopflag_);
- swap(outsidedoorstatus_, other->outsidedoorstatus_);
- swap(outsidedoorcontrol_, other->outsidedoorcontrol_);
- swap(dispatchfinishflag_, other->dispatchfinishflag_);
- swap(outsideexistenceflag_, other->outsideexistenceflag_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Singlechip_data::GetMetadata() const {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Terminal_status_msg::InitAsDefaultInstance() {
- ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
- ::message::Base_info::internal_default_instance());
- ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
- ::message::Id_struct::internal_default_instance());
- ::message::_Terminal_status_msg_default_instance_._instance.get_mutable()->singlechipdata_ = const_cast< ::message::Singlechip_data*>(
- ::message::Singlechip_data::internal_default_instance());
- }
- void Terminal_status_msg::clear_base_info() {
- if (base_info_ != NULL) base_info_->Clear();
- clear_has_base_info();
- }
- void Terminal_status_msg::clear_id_struct() {
- if (id_struct_ != NULL) id_struct_->Clear();
- clear_has_id_struct();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Terminal_status_msg::kBaseInfoFieldNumber;
- const int Terminal_status_msg::kIdStructFieldNumber;
- const int Terminal_status_msg::kSinglechipDataFieldNumber;
- const int Terminal_status_msg::kSinglechipValidityFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Terminal_status_msg::Terminal_status_msg()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsTerminal_status_msg();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:message.Terminal_status_msg)
- }
- Terminal_status_msg::Terminal_status_msg(const Terminal_status_msg& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_base_info()) {
- base_info_ = new ::message::Base_info(*from.base_info_);
- } else {
- base_info_ = NULL;
- }
- if (from.has_id_struct()) {
- id_struct_ = new ::message::Id_struct(*from.id_struct_);
- } else {
- id_struct_ = NULL;
- }
- if (from.has_singlechipdata()) {
- singlechipdata_ = new ::message::Singlechip_data(*from.singlechipdata_);
- } else {
- singlechipdata_ = NULL;
- }
- singlechip_validity_ = from.singlechip_validity_;
- // @@protoc_insertion_point(copy_constructor:message.Terminal_status_msg)
- }
- void Terminal_status_msg::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&base_info_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&singlechip_validity_) -
- reinterpret_cast<char*>(&base_info_)) + sizeof(singlechip_validity_));
- }
- Terminal_status_msg::~Terminal_status_msg() {
- // @@protoc_insertion_point(destructor:message.Terminal_status_msg)
- SharedDtor();
- }
- void Terminal_status_msg::SharedDtor() {
- if (this != internal_default_instance()) delete base_info_;
- if (this != internal_default_instance()) delete id_struct_;
- if (this != internal_default_instance()) delete singlechipdata_;
- }
- void Terminal_status_msg::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Terminal_status_msg::descriptor() {
- ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Terminal_status_msg& Terminal_status_msg::default_instance() {
- ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsTerminal_status_msg();
- return *internal_default_instance();
- }
- Terminal_status_msg* Terminal_status_msg::New(::google::protobuf::Arena* arena) const {
- Terminal_status_msg* n = new Terminal_status_msg;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Terminal_status_msg::Clear() {
- // @@protoc_insertion_point(message_clear_start:message.Terminal_status_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(base_info_ != NULL);
- base_info_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(id_struct_ != NULL);
- id_struct_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(singlechipdata_ != NULL);
- singlechipdata_->Clear();
- }
- }
- singlechip_validity_ = false;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Terminal_status_msg::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:message.Terminal_status_msg)
- 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)) {
- // required .message.Base_info base_info = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_base_info()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Id_struct id_struct = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_id_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .message.Singlechip_data singlechipData = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_singlechipdata()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool singlechip_validity = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_singlechip_validity();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &singlechip_validity_)));
- } 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:message.Terminal_status_msg)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:message.Terminal_status_msg)
- return false;
- #undef DO_
- }
- void Terminal_status_msg::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:message.Terminal_status_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .message.Base_info base_info = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *this->base_info_, output);
- }
- // optional .message.Id_struct id_struct = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *this->id_struct_, output);
- }
- // optional .message.Singlechip_data singlechipData = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *this->singlechipdata_, output);
- }
- // optional bool singlechip_validity = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->singlechip_validity(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:message.Terminal_status_msg)
- }
- ::google::protobuf::uint8* Terminal_status_msg::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:message.Terminal_status_msg)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .message.Base_info base_info = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, *this->base_info_, deterministic, target);
- }
- // optional .message.Id_struct id_struct = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, *this->id_struct_, deterministic, target);
- }
- // optional .message.Singlechip_data singlechipData = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, *this->singlechipdata_, deterministic, target);
- }
- // optional bool singlechip_validity = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->singlechip_validity(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:message.Terminal_status_msg)
- return target;
- }
- size_t Terminal_status_msg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:message.Terminal_status_msg)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required .message.Base_info base_info = 1;
- if (has_base_info()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->base_info_);
- }
- if (_has_bits_[0 / 32] & 14u) {
- // optional .message.Id_struct id_struct = 2;
- if (has_id_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->id_struct_);
- }
- // optional .message.Singlechip_data singlechipData = 3;
- if (has_singlechipdata()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->singlechipdata_);
- }
- // optional bool singlechip_validity = 4;
- if (has_singlechip_validity()) {
- total_size += 1 + 1;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:message.Terminal_status_msg)
- GOOGLE_DCHECK_NE(&from, this);
- const Terminal_status_msg* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Terminal_status_msg>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Terminal_status_msg)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Terminal_status_msg)
- MergeFrom(*source);
- }
- }
- void Terminal_status_msg::MergeFrom(const Terminal_status_msg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:message.Terminal_status_msg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_singlechipdata()->::message::Singlechip_data::MergeFrom(from.singlechipdata());
- }
- if (cached_has_bits & 0x00000008u) {
- singlechip_validity_ = from.singlechip_validity_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:message.Terminal_status_msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Terminal_status_msg::CopyFrom(const Terminal_status_msg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:message.Terminal_status_msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Terminal_status_msg::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
- if (has_base_info()) {
- if (!this->base_info_->IsInitialized()) return false;
- }
- return true;
- }
- void Terminal_status_msg::Swap(Terminal_status_msg* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Terminal_status_msg::InternalSwap(Terminal_status_msg* other) {
- using std::swap;
- swap(base_info_, other->base_info_);
- swap(id_struct_, other->id_struct_);
- swap(singlechipdata_, other->singlechipdata_);
- swap(singlechip_validity_, other->singlechip_validity_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Terminal_status_msg::GetMetadata() const {
- protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_singlechip_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace message
- // @@protoc_insertion_point(global_scope)
|