12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tof3d_config.proto
- #include "tof3d_config.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_tof3d_5fconfig_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Tof3dVzenseBuiltInParams;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Yolov8ProcessParams;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_tof3dVzenseEtc;
- } // namespace protobuf_tof3d_5fconfig_2eproto
- class Tof3dVzenseBuiltInParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Tof3dVzenseBuiltInParams>
- _instance;
- } _Tof3dVzenseBuiltInParams_default_instance_;
- class Yolov8ProcessParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Yolov8ProcessParams>
- _instance;
- } _Yolov8ProcessParams_default_instance_;
- class RabbitmqCommunicationParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RabbitmqCommunicationParams>
- _instance;
- } _RabbitmqCommunicationParams_default_instance_;
- class MqttCommunicationParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MqttCommunicationParams>
- _instance;
- } _MqttCommunicationParams_default_instance_;
- class tof3dVzenseEtcDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<tof3dVzenseEtc>
- _instance;
- } _tof3dVzenseEtc_default_instance_;
- class tof3dManagerParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<tof3dManagerParams>
- _instance;
- } _tof3dManagerParams_default_instance_;
- namespace protobuf_tof3d_5fconfig_2eproto {
- static void InitDefaultsTof3dVzenseBuiltInParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_Tof3dVzenseBuiltInParams_default_instance_;
- new (ptr) ::Tof3dVzenseBuiltInParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Tof3dVzenseBuiltInParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Tof3dVzenseBuiltInParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTof3dVzenseBuiltInParams}, {}};
- static void InitDefaultsYolov8ProcessParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_Yolov8ProcessParams_default_instance_;
- new (ptr) ::Yolov8ProcessParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Yolov8ProcessParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Yolov8ProcessParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsYolov8ProcessParams}, {}};
- static void InitDefaultsRabbitmqCommunicationParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_RabbitmqCommunicationParams_default_instance_;
- new (ptr) ::RabbitmqCommunicationParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::RabbitmqCommunicationParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RabbitmqCommunicationParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRabbitmqCommunicationParams}, {}};
- static void InitDefaultsMqttCommunicationParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_MqttCommunicationParams_default_instance_;
- new (ptr) ::MqttCommunicationParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::MqttCommunicationParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MqttCommunicationParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMqttCommunicationParams}, {}};
- static void InitDefaultstof3dVzenseEtc() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.DefaultConstruct();
- *::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get_mutable() = ::std::string("192.168.1.101", 13);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get_mutable());
- {
- void* ptr = &::_tof3dVzenseEtc_default_instance_;
- new (ptr) ::tof3dVzenseEtc();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::tof3dVzenseEtc::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_tof3dVzenseEtc =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultstof3dVzenseEtc}, {
- &protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base,
- &protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base,}};
- static void InitDefaultstof3dManagerParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_tof3dManagerParams_default_instance_;
- new (ptr) ::tof3dManagerParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::tof3dManagerParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_tof3dManagerParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultstof3dManagerParams}, {
- &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_Tof3dVzenseBuiltInParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Yolov8ProcessParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RabbitmqCommunicationParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MqttCommunicationParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_tof3dVzenseEtc.base);
- ::google::protobuf::internal::InitSCC(&scc_info_tof3dManagerParams.base);
- }
- ::google::protobuf::Metadata file_level_metadata[6];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, work_mode_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, irgmmgain_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, frame_rate_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_manual_exposure_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, exposure_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_filter_fill_hole_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_filter_spatial_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_time_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, time_filter_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_flying_pixel_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, flying_pixel_filter_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_confidence_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, confidence_filter_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_hdr_mode_),
- 0,
- 5,
- 6,
- 8,
- 7,
- 9,
- 10,
- 11,
- 12,
- 2,
- 13,
- 3,
- 1,
- 4,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_mat_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, draw_rect_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_confidence_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_aspect_ratio_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_aspect_ratio_max_),
- 0,
- 1,
- 3,
- 4,
- 2,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, enable_rabbitmq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, rabbitmq_ex_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, rabbitmq_route_key_),
- 2,
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, enable_mqtt_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, mqtt_topic_),
- 1,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, enable_device_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, ip_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, bip_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, yolo_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, azimuth_),
- 3,
- 0,
- 1,
- 2,
- 4,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, vzense_tof3d_devices_),
- ~0u,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 19, sizeof(::Tof3dVzenseBuiltInParams)},
- { 33, 43, sizeof(::Yolov8ProcessParams)},
- { 48, 56, sizeof(::RabbitmqCommunicationParams)},
- { 59, 66, sizeof(::MqttCommunicationParams)},
- { 68, 78, sizeof(::tof3dVzenseEtc)},
- { 83, 89, sizeof(::tof3dManagerParams)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::_Tof3dVzenseBuiltInParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_Yolov8ProcessParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_RabbitmqCommunicationParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_MqttCommunicationParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_tof3dVzenseEtc_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_tof3dManagerParams_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "tof3d_config.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, file_level_enum_descriptors, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\022tof3d_config.proto\"\357\003\n\030Tof3dVzenseBuil"
- "tInParams\022\024\n\twork_mode\030\001 \001(\r:\0010\022\025\n\tirgmm"
- "gain\030\002 \001(\r:\00245\022\026\n\nframe_rate\030\003 \001(\r:\00210\022)"
- "\n\033enable_manual_exposure_time\030\004 \001(\010:\004tru"
- "e\022\033\n\rexposure_time\030\005 \001(\r:\0042000\022%\n\027enable"
- "_filter_fill_hole\030\007 \001(\010:\004true\022#\n\025enable_"
- "filter_spatial\030\010 \001(\010:\004true\022 \n\022enable_tim"
- "e_filter\030\t \001(\010:\004true\022\034\n\021time_filter_valu"
- "e\030\n \001(\r:\0013\022(\n\032enable_flying_pixel_filter"
- "\030\013 \001(\010:\004true\022%\n\031flying_pixel_filter_valu"
- "e\030\014 \001(\r:\00215\022&\n\030enable_confidence_filter\030"
- "\r \001(\010:\004true\022\"\n\027confidence_filter_value\030\016"
- " \001(\r:\0010\022\035\n\017enable_hdr_mode\030\017 \001(\010:\004true\"\256"
- "\001\n\023Yolov8ProcessParams\022\027\n\010save_mat\030\001 \001(\010"
- ":\005false\022\030\n\tdraw_rect\030\002 \001(\010:\005false\022\034\n\017sav"
- "e_confidence\030\003 \001(\002:\0030.8\022\"\n\025save_aspect_r"
- "atio_min\030\004 \001(\002:\0030.9\022\"\n\025save_aspect_ratio"
- "_max\030\005 \001(\002:\0031.1\"g\n\033RabbitmqCommunication"
- "Params\022\027\n\017enable_rabbitmq\030\004 \002(\010\022\023\n\013rabbi"
- "tmq_ex\030\005 \002(\t\022\032\n\022rabbitmq_route_key\030\006 \002(\t"
- "\"B\n\027MqttCommunicationParams\022\023\n\013enable_mq"
- "tt\030\007 \002(\010\022\022\n\nmqtt_topic\030\010 \002(\t\"\257\001\n\016tof3dVz"
- "enseEtc\022\025\n\renable_device\030\001 \002(\010\022\031\n\002ip\030\002 \002"
- "(\t:\r192.168.1.101\022&\n\003bip\030\004 \002(\0132\031.Tof3dVz"
- "enseBuiltInParams\022\"\n\004yolo\030\005 \002(\0132\024.Yolov8"
- "ProcessParams\022\037\n\007azimuth\030\006 \002(\0162\016.DeviceA"
- "zimuth\"C\n\022tof3dManagerParams\022-\n\024vzense_t"
- "of3d_devices\030\001 \003(\0132\017.tof3dVzenseEtc*/\n\rD"
- "eviceAzimuth\022\006\n\002LF\020\001\022\006\n\002RF\020\002\022\006\n\002LR\020\003\022\006\n\002"
- "RR\020\004"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1164);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "tof3d_config.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_tof3d_5fconfig_2eproto
- const ::google::protobuf::EnumDescriptor* DeviceAzimuth_descriptor() {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_tof3d_5fconfig_2eproto::file_level_enum_descriptors[0];
- }
- bool DeviceAzimuth_IsValid(int value) {
- switch (value) {
- case 1:
- case 2:
- case 3:
- case 4:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- void Tof3dVzenseBuiltInParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Tof3dVzenseBuiltInParams::kWorkModeFieldNumber;
- const int Tof3dVzenseBuiltInParams::kIrgmmgainFieldNumber;
- const int Tof3dVzenseBuiltInParams::kFrameRateFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableManualExposureTimeFieldNumber;
- const int Tof3dVzenseBuiltInParams::kExposureTimeFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableFilterFillHoleFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableFilterSpatialFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableTimeFilterFieldNumber;
- const int Tof3dVzenseBuiltInParams::kTimeFilterValueFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableFlyingPixelFilterFieldNumber;
- const int Tof3dVzenseBuiltInParams::kFlyingPixelFilterValueFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableConfidenceFilterFieldNumber;
- const int Tof3dVzenseBuiltInParams::kConfidenceFilterValueFieldNumber;
- const int Tof3dVzenseBuiltInParams::kEnableHdrModeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Tof3dVzenseBuiltInParams::Tof3dVzenseBuiltInParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Tof3dVzenseBuiltInParams)
- }
- Tof3dVzenseBuiltInParams::Tof3dVzenseBuiltInParams(const Tof3dVzenseBuiltInParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&work_mode_, &from.work_mode_,
- static_cast<size_t>(reinterpret_cast<char*>(&flying_pixel_filter_value_) -
- reinterpret_cast<char*>(&work_mode_)) + sizeof(flying_pixel_filter_value_));
- // @@protoc_insertion_point(copy_constructor:Tof3dVzenseBuiltInParams)
- }
- void Tof3dVzenseBuiltInParams::SharedCtor() {
- ::memset(&work_mode_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&confidence_filter_value_) -
- reinterpret_cast<char*>(&work_mode_)) + sizeof(confidence_filter_value_));
- enable_flying_pixel_filter_ = true;
- enable_confidence_filter_ = true;
- enable_hdr_mode_ = true;
- irgmmgain_ = 45u;
- frame_rate_ = 10u;
- exposure_time_ = 2000u;
- enable_manual_exposure_time_ = true;
- enable_filter_fill_hole_ = true;
- enable_filter_spatial_ = true;
- enable_time_filter_ = true;
- time_filter_value_ = 3u;
- flying_pixel_filter_value_ = 15u;
- }
- Tof3dVzenseBuiltInParams::~Tof3dVzenseBuiltInParams() {
- // @@protoc_insertion_point(destructor:Tof3dVzenseBuiltInParams)
- SharedDtor();
- }
- void Tof3dVzenseBuiltInParams::SharedDtor() {
- }
- void Tof3dVzenseBuiltInParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Tof3dVzenseBuiltInParams::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Tof3dVzenseBuiltInParams& Tof3dVzenseBuiltInParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base);
- return *internal_default_instance();
- }
- void Tof3dVzenseBuiltInParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:Tof3dVzenseBuiltInParams)
- ::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(&work_mode_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&confidence_filter_value_) -
- reinterpret_cast<char*>(&work_mode_)) + sizeof(confidence_filter_value_));
- enable_flying_pixel_filter_ = true;
- enable_confidence_filter_ = true;
- enable_hdr_mode_ = true;
- irgmmgain_ = 45u;
- frame_rate_ = 10u;
- exposure_time_ = 2000u;
- }
- if (cached_has_bits & 16128u) {
- enable_manual_exposure_time_ = true;
- enable_filter_fill_hole_ = true;
- enable_filter_spatial_ = true;
- enable_time_filter_ = true;
- time_filter_value_ = 3u;
- flying_pixel_filter_value_ = 15u;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Tof3dVzenseBuiltInParams::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:Tof3dVzenseBuiltInParams)
- 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 uint32 work_mode = 1 [default = 0];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_work_mode();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &work_mode_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 irgmmgain = 2 [default = 45];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_irgmmgain();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &irgmmgain_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 frame_rate = 3 [default = 10];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_frame_rate();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &frame_rate_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_manual_exposure_time = 4 [default = true];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_enable_manual_exposure_time();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_manual_exposure_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 exposure_time = 5 [default = 2000];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_exposure_time();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &exposure_time_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_filter_fill_hole = 7 [default = true];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_enable_filter_fill_hole();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_filter_fill_hole_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_filter_spatial = 8 [default = true];
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- set_has_enable_filter_spatial();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_filter_spatial_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_time_filter = 9 [default = true];
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- set_has_enable_time_filter();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_time_filter_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 time_filter_value = 10 [default = 3];
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- set_has_time_filter_value();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &time_filter_value_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_flying_pixel_filter = 11 [default = true];
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
- set_has_enable_flying_pixel_filter();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_flying_pixel_filter_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 flying_pixel_filter_value = 12 [default = 15];
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
- set_has_flying_pixel_filter_value();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &flying_pixel_filter_value_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_confidence_filter = 13 [default = true];
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
- set_has_enable_confidence_filter();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_confidence_filter_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional uint32 confidence_filter_value = 14 [default = 0];
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
- set_has_confidence_filter_value();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &confidence_filter_value_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool enable_hdr_mode = 15 [default = true];
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
- set_has_enable_hdr_mode();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_hdr_mode_)));
- } 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:Tof3dVzenseBuiltInParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Tof3dVzenseBuiltInParams)
- return false;
- #undef DO_
- }
- void Tof3dVzenseBuiltInParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Tof3dVzenseBuiltInParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional uint32 work_mode = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->work_mode(), output);
- }
- // optional uint32 irgmmgain = 2 [default = 45];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->irgmmgain(), output);
- }
- // optional uint32 frame_rate = 3 [default = 10];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->frame_rate(), output);
- }
- // optional bool enable_manual_exposure_time = 4 [default = true];
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->enable_manual_exposure_time(), output);
- }
- // optional uint32 exposure_time = 5 [default = 2000];
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->exposure_time(), output);
- }
- // optional bool enable_filter_fill_hole = 7 [default = true];
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_filter_fill_hole(), output);
- }
- // optional bool enable_filter_spatial = 8 [default = true];
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->enable_filter_spatial(), output);
- }
- // optional bool enable_time_filter = 9 [default = true];
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->enable_time_filter(), output);
- }
- // optional uint32 time_filter_value = 10 [default = 3];
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->time_filter_value(), output);
- }
- // optional bool enable_flying_pixel_filter = 11 [default = true];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->enable_flying_pixel_filter(), output);
- }
- // optional uint32 flying_pixel_filter_value = 12 [default = 15];
- if (cached_has_bits & 0x00002000u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->flying_pixel_filter_value(), output);
- }
- // optional bool enable_confidence_filter = 13 [default = true];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->enable_confidence_filter(), output);
- }
- // optional uint32 confidence_filter_value = 14 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->confidence_filter_value(), output);
- }
- // optional bool enable_hdr_mode = 15 [default = true];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->enable_hdr_mode(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Tof3dVzenseBuiltInParams)
- }
- ::google::protobuf::uint8* Tof3dVzenseBuiltInParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Tof3dVzenseBuiltInParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional uint32 work_mode = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->work_mode(), target);
- }
- // optional uint32 irgmmgain = 2 [default = 45];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->irgmmgain(), target);
- }
- // optional uint32 frame_rate = 3 [default = 10];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->frame_rate(), target);
- }
- // optional bool enable_manual_exposure_time = 4 [default = true];
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->enable_manual_exposure_time(), target);
- }
- // optional uint32 exposure_time = 5 [default = 2000];
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->exposure_time(), target);
- }
- // optional bool enable_filter_fill_hole = 7 [default = true];
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_filter_fill_hole(), target);
- }
- // optional bool enable_filter_spatial = 8 [default = true];
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->enable_filter_spatial(), target);
- }
- // optional bool enable_time_filter = 9 [default = true];
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->enable_time_filter(), target);
- }
- // optional uint32 time_filter_value = 10 [default = 3];
- if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->time_filter_value(), target);
- }
- // optional bool enable_flying_pixel_filter = 11 [default = true];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->enable_flying_pixel_filter(), target);
- }
- // optional uint32 flying_pixel_filter_value = 12 [default = 15];
- if (cached_has_bits & 0x00002000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->flying_pixel_filter_value(), target);
- }
- // optional bool enable_confidence_filter = 13 [default = true];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->enable_confidence_filter(), target);
- }
- // optional uint32 confidence_filter_value = 14 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->confidence_filter_value(), target);
- }
- // optional bool enable_hdr_mode = 15 [default = true];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->enable_hdr_mode(), 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:Tof3dVzenseBuiltInParams)
- return target;
- }
- size_t Tof3dVzenseBuiltInParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Tof3dVzenseBuiltInParams)
- 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 uint32 work_mode = 1 [default = 0];
- if (has_work_mode()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->work_mode());
- }
- // optional uint32 confidence_filter_value = 14 [default = 0];
- if (has_confidence_filter_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->confidence_filter_value());
- }
- // optional bool enable_flying_pixel_filter = 11 [default = true];
- if (has_enable_flying_pixel_filter()) {
- total_size += 1 + 1;
- }
- // optional bool enable_confidence_filter = 13 [default = true];
- if (has_enable_confidence_filter()) {
- total_size += 1 + 1;
- }
- // optional bool enable_hdr_mode = 15 [default = true];
- if (has_enable_hdr_mode()) {
- total_size += 1 + 1;
- }
- // optional uint32 irgmmgain = 2 [default = 45];
- if (has_irgmmgain()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->irgmmgain());
- }
- // optional uint32 frame_rate = 3 [default = 10];
- if (has_frame_rate()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->frame_rate());
- }
- // optional uint32 exposure_time = 5 [default = 2000];
- if (has_exposure_time()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->exposure_time());
- }
- }
- if (_has_bits_[8 / 32] & 16128u) {
- // optional bool enable_manual_exposure_time = 4 [default = true];
- if (has_enable_manual_exposure_time()) {
- total_size += 1 + 1;
- }
- // optional bool enable_filter_fill_hole = 7 [default = true];
- if (has_enable_filter_fill_hole()) {
- total_size += 1 + 1;
- }
- // optional bool enable_filter_spatial = 8 [default = true];
- if (has_enable_filter_spatial()) {
- total_size += 1 + 1;
- }
- // optional bool enable_time_filter = 9 [default = true];
- if (has_enable_time_filter()) {
- total_size += 1 + 1;
- }
- // optional uint32 time_filter_value = 10 [default = 3];
- if (has_time_filter_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->time_filter_value());
- }
- // optional uint32 flying_pixel_filter_value = 12 [default = 15];
- if (has_flying_pixel_filter_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->flying_pixel_filter_value());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Tof3dVzenseBuiltInParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Tof3dVzenseBuiltInParams)
- GOOGLE_DCHECK_NE(&from, this);
- const Tof3dVzenseBuiltInParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Tof3dVzenseBuiltInParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tof3dVzenseBuiltInParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Tof3dVzenseBuiltInParams)
- MergeFrom(*source);
- }
- }
- void Tof3dVzenseBuiltInParams::MergeFrom(const Tof3dVzenseBuiltInParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Tof3dVzenseBuiltInParams)
- 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) {
- work_mode_ = from.work_mode_;
- }
- if (cached_has_bits & 0x00000002u) {
- confidence_filter_value_ = from.confidence_filter_value_;
- }
- if (cached_has_bits & 0x00000004u) {
- enable_flying_pixel_filter_ = from.enable_flying_pixel_filter_;
- }
- if (cached_has_bits & 0x00000008u) {
- enable_confidence_filter_ = from.enable_confidence_filter_;
- }
- if (cached_has_bits & 0x00000010u) {
- enable_hdr_mode_ = from.enable_hdr_mode_;
- }
- if (cached_has_bits & 0x00000020u) {
- irgmmgain_ = from.irgmmgain_;
- }
- if (cached_has_bits & 0x00000040u) {
- frame_rate_ = from.frame_rate_;
- }
- if (cached_has_bits & 0x00000080u) {
- exposure_time_ = from.exposure_time_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 16128u) {
- if (cached_has_bits & 0x00000100u) {
- enable_manual_exposure_time_ = from.enable_manual_exposure_time_;
- }
- if (cached_has_bits & 0x00000200u) {
- enable_filter_fill_hole_ = from.enable_filter_fill_hole_;
- }
- if (cached_has_bits & 0x00000400u) {
- enable_filter_spatial_ = from.enable_filter_spatial_;
- }
- if (cached_has_bits & 0x00000800u) {
- enable_time_filter_ = from.enable_time_filter_;
- }
- if (cached_has_bits & 0x00001000u) {
- time_filter_value_ = from.time_filter_value_;
- }
- if (cached_has_bits & 0x00002000u) {
- flying_pixel_filter_value_ = from.flying_pixel_filter_value_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Tof3dVzenseBuiltInParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Tof3dVzenseBuiltInParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Tof3dVzenseBuiltInParams::CopyFrom(const Tof3dVzenseBuiltInParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Tof3dVzenseBuiltInParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Tof3dVzenseBuiltInParams::IsInitialized() const {
- return true;
- }
- void Tof3dVzenseBuiltInParams::Swap(Tof3dVzenseBuiltInParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Tof3dVzenseBuiltInParams::InternalSwap(Tof3dVzenseBuiltInParams* other) {
- using std::swap;
- swap(work_mode_, other->work_mode_);
- swap(confidence_filter_value_, other->confidence_filter_value_);
- swap(enable_flying_pixel_filter_, other->enable_flying_pixel_filter_);
- swap(enable_confidence_filter_, other->enable_confidence_filter_);
- swap(enable_hdr_mode_, other->enable_hdr_mode_);
- swap(irgmmgain_, other->irgmmgain_);
- swap(frame_rate_, other->frame_rate_);
- swap(exposure_time_, other->exposure_time_);
- swap(enable_manual_exposure_time_, other->enable_manual_exposure_time_);
- swap(enable_filter_fill_hole_, other->enable_filter_fill_hole_);
- swap(enable_filter_spatial_, other->enable_filter_spatial_);
- swap(enable_time_filter_, other->enable_time_filter_);
- swap(time_filter_value_, other->time_filter_value_);
- swap(flying_pixel_filter_value_, other->flying_pixel_filter_value_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Tof3dVzenseBuiltInParams::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Yolov8ProcessParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Yolov8ProcessParams::kSaveMatFieldNumber;
- const int Yolov8ProcessParams::kDrawRectFieldNumber;
- const int Yolov8ProcessParams::kSaveConfidenceFieldNumber;
- const int Yolov8ProcessParams::kSaveAspectRatioMinFieldNumber;
- const int Yolov8ProcessParams::kSaveAspectRatioMaxFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Yolov8ProcessParams::Yolov8ProcessParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Yolov8ProcessParams)
- }
- Yolov8ProcessParams::Yolov8ProcessParams(const Yolov8ProcessParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&save_mat_, &from.save_mat_,
- static_cast<size_t>(reinterpret_cast<char*>(&save_aspect_ratio_min_) -
- reinterpret_cast<char*>(&save_mat_)) + sizeof(save_aspect_ratio_min_));
- // @@protoc_insertion_point(copy_constructor:Yolov8ProcessParams)
- }
- void Yolov8ProcessParams::SharedCtor() {
- ::memset(&save_mat_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&draw_rect_) -
- reinterpret_cast<char*>(&save_mat_)) + sizeof(draw_rect_));
- save_aspect_ratio_max_ = 1.1f;
- save_confidence_ = 0.8f;
- save_aspect_ratio_min_ = 0.9f;
- }
- Yolov8ProcessParams::~Yolov8ProcessParams() {
- // @@protoc_insertion_point(destructor:Yolov8ProcessParams)
- SharedDtor();
- }
- void Yolov8ProcessParams::SharedDtor() {
- }
- void Yolov8ProcessParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Yolov8ProcessParams::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Yolov8ProcessParams& Yolov8ProcessParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base);
- return *internal_default_instance();
- }
- void Yolov8ProcessParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:Yolov8ProcessParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&save_mat_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&draw_rect_) -
- reinterpret_cast<char*>(&save_mat_)) + sizeof(draw_rect_));
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 28u) {
- save_aspect_ratio_max_ = 1.1f;
- save_confidence_ = 0.8f;
- save_aspect_ratio_min_ = 0.9f;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Yolov8ProcessParams::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:Yolov8ProcessParams)
- 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 bool save_mat = 1 [default = false];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_save_mat();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &save_mat_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional bool draw_rect = 2 [default = false];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_draw_rect();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &draw_rect_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float save_confidence = 3 [default = 0.8];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_save_confidence();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &save_confidence_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float save_aspect_ratio_min = 4 [default = 0.9];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_save_aspect_ratio_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &save_aspect_ratio_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float save_aspect_ratio_max = 5 [default = 1.1];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_save_aspect_ratio_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &save_aspect_ratio_max_)));
- } 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:Yolov8ProcessParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Yolov8ProcessParams)
- return false;
- #undef DO_
- }
- void Yolov8ProcessParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Yolov8ProcessParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional bool save_mat = 1 [default = false];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->save_mat(), output);
- }
- // optional bool draw_rect = 2 [default = false];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->draw_rect(), output);
- }
- // optional float save_confidence = 3 [default = 0.8];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->save_confidence(), output);
- }
- // optional float save_aspect_ratio_min = 4 [default = 0.9];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->save_aspect_ratio_min(), output);
- }
- // optional float save_aspect_ratio_max = 5 [default = 1.1];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->save_aspect_ratio_max(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Yolov8ProcessParams)
- }
- ::google::protobuf::uint8* Yolov8ProcessParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Yolov8ProcessParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional bool save_mat = 1 [default = false];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->save_mat(), target);
- }
- // optional bool draw_rect = 2 [default = false];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->draw_rect(), target);
- }
- // optional float save_confidence = 3 [default = 0.8];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->save_confidence(), target);
- }
- // optional float save_aspect_ratio_min = 4 [default = 0.9];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->save_aspect_ratio_min(), target);
- }
- // optional float save_aspect_ratio_max = 5 [default = 1.1];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->save_aspect_ratio_max(), 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:Yolov8ProcessParams)
- return target;
- }
- size_t Yolov8ProcessParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Yolov8ProcessParams)
- 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] & 31u) {
- // optional bool save_mat = 1 [default = false];
- if (has_save_mat()) {
- total_size += 1 + 1;
- }
- // optional bool draw_rect = 2 [default = false];
- if (has_draw_rect()) {
- total_size += 1 + 1;
- }
- // optional float save_aspect_ratio_max = 5 [default = 1.1];
- if (has_save_aspect_ratio_max()) {
- total_size += 1 + 4;
- }
- // optional float save_confidence = 3 [default = 0.8];
- if (has_save_confidence()) {
- total_size += 1 + 4;
- }
- // optional float save_aspect_ratio_min = 4 [default = 0.9];
- if (has_save_aspect_ratio_min()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Yolov8ProcessParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Yolov8ProcessParams)
- GOOGLE_DCHECK_NE(&from, this);
- const Yolov8ProcessParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Yolov8ProcessParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Yolov8ProcessParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Yolov8ProcessParams)
- MergeFrom(*source);
- }
- }
- void Yolov8ProcessParams::MergeFrom(const Yolov8ProcessParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Yolov8ProcessParams)
- 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 & 31u) {
- if (cached_has_bits & 0x00000001u) {
- save_mat_ = from.save_mat_;
- }
- if (cached_has_bits & 0x00000002u) {
- draw_rect_ = from.draw_rect_;
- }
- if (cached_has_bits & 0x00000004u) {
- save_aspect_ratio_max_ = from.save_aspect_ratio_max_;
- }
- if (cached_has_bits & 0x00000008u) {
- save_confidence_ = from.save_confidence_;
- }
- if (cached_has_bits & 0x00000010u) {
- save_aspect_ratio_min_ = from.save_aspect_ratio_min_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Yolov8ProcessParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Yolov8ProcessParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Yolov8ProcessParams::CopyFrom(const Yolov8ProcessParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Yolov8ProcessParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Yolov8ProcessParams::IsInitialized() const {
- return true;
- }
- void Yolov8ProcessParams::Swap(Yolov8ProcessParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Yolov8ProcessParams::InternalSwap(Yolov8ProcessParams* other) {
- using std::swap;
- swap(save_mat_, other->save_mat_);
- swap(draw_rect_, other->draw_rect_);
- swap(save_aspect_ratio_max_, other->save_aspect_ratio_max_);
- swap(save_confidence_, other->save_confidence_);
- swap(save_aspect_ratio_min_, other->save_aspect_ratio_min_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Yolov8ProcessParams::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RabbitmqCommunicationParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RabbitmqCommunicationParams::kEnableRabbitmqFieldNumber;
- const int RabbitmqCommunicationParams::kRabbitmqExFieldNumber;
- const int RabbitmqCommunicationParams::kRabbitmqRouteKeyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RabbitmqCommunicationParams::RabbitmqCommunicationParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_RabbitmqCommunicationParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:RabbitmqCommunicationParams)
- }
- RabbitmqCommunicationParams::RabbitmqCommunicationParams(const RabbitmqCommunicationParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- rabbitmq_ex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_rabbitmq_ex()) {
- rabbitmq_ex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_ex_);
- }
- rabbitmq_route_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_rabbitmq_route_key()) {
- rabbitmq_route_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_route_key_);
- }
- enable_rabbitmq_ = from.enable_rabbitmq_;
- // @@protoc_insertion_point(copy_constructor:RabbitmqCommunicationParams)
- }
- void RabbitmqCommunicationParams::SharedCtor() {
- rabbitmq_ex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- rabbitmq_route_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- enable_rabbitmq_ = false;
- }
- RabbitmqCommunicationParams::~RabbitmqCommunicationParams() {
- // @@protoc_insertion_point(destructor:RabbitmqCommunicationParams)
- SharedDtor();
- }
- void RabbitmqCommunicationParams::SharedDtor() {
- rabbitmq_ex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- rabbitmq_route_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void RabbitmqCommunicationParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RabbitmqCommunicationParams::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RabbitmqCommunicationParams& RabbitmqCommunicationParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_RabbitmqCommunicationParams.base);
- return *internal_default_instance();
- }
- void RabbitmqCommunicationParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:RabbitmqCommunicationParams)
- ::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 & 3u) {
- if (cached_has_bits & 0x00000001u) {
- rabbitmq_ex_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- rabbitmq_route_key_.ClearNonDefaultToEmptyNoArena();
- }
- }
- enable_rabbitmq_ = false;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool RabbitmqCommunicationParams::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:RabbitmqCommunicationParams)
- 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 bool enable_rabbitmq = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_enable_rabbitmq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_rabbitmq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string rabbitmq_ex = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_rabbitmq_ex()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "RabbitmqCommunicationParams.rabbitmq_ex");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string rabbitmq_route_key = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_rabbitmq_route_key()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "RabbitmqCommunicationParams.rabbitmq_route_key");
- } 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:RabbitmqCommunicationParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:RabbitmqCommunicationParams)
- return false;
- #undef DO_
- }
- void RabbitmqCommunicationParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:RabbitmqCommunicationParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_rabbitmq = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->enable_rabbitmq(), output);
- }
- // required string rabbitmq_ex = 5;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "RabbitmqCommunicationParams.rabbitmq_ex");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->rabbitmq_ex(), output);
- }
- // required string rabbitmq_route_key = 6;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "RabbitmqCommunicationParams.rabbitmq_route_key");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->rabbitmq_route_key(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:RabbitmqCommunicationParams)
- }
- ::google::protobuf::uint8* RabbitmqCommunicationParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:RabbitmqCommunicationParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_rabbitmq = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->enable_rabbitmq(), target);
- }
- // required string rabbitmq_ex = 5;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "RabbitmqCommunicationParams.rabbitmq_ex");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->rabbitmq_ex(), target);
- }
- // required string rabbitmq_route_key = 6;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "RabbitmqCommunicationParams.rabbitmq_route_key");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->rabbitmq_route_key(), 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:RabbitmqCommunicationParams)
- return target;
- }
- size_t RabbitmqCommunicationParams::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:RabbitmqCommunicationParams)
- size_t total_size = 0;
- if (has_rabbitmq_ex()) {
- // required string rabbitmq_ex = 5;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->rabbitmq_ex());
- }
- if (has_rabbitmq_route_key()) {
- // required string rabbitmq_route_key = 6;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->rabbitmq_route_key());
- }
- if (has_enable_rabbitmq()) {
- // required bool enable_rabbitmq = 4;
- total_size += 1 + 1;
- }
- return total_size;
- }
- size_t RabbitmqCommunicationParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:RabbitmqCommunicationParams)
- 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
- // required string rabbitmq_ex = 5;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->rabbitmq_ex());
- // required string rabbitmq_route_key = 6;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->rabbitmq_route_key());
- // required bool enable_rabbitmq = 4;
- total_size += 1 + 1;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RabbitmqCommunicationParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:RabbitmqCommunicationParams)
- GOOGLE_DCHECK_NE(&from, this);
- const RabbitmqCommunicationParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RabbitmqCommunicationParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:RabbitmqCommunicationParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:RabbitmqCommunicationParams)
- MergeFrom(*source);
- }
- }
- void RabbitmqCommunicationParams::MergeFrom(const RabbitmqCommunicationParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:RabbitmqCommunicationParams)
- 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 & 7u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_rabbitmq_ex();
- rabbitmq_ex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_ex_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_rabbitmq_route_key();
- rabbitmq_route_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_route_key_);
- }
- if (cached_has_bits & 0x00000004u) {
- enable_rabbitmq_ = from.enable_rabbitmq_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void RabbitmqCommunicationParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:RabbitmqCommunicationParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RabbitmqCommunicationParams::CopyFrom(const RabbitmqCommunicationParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:RabbitmqCommunicationParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RabbitmqCommunicationParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
- return true;
- }
- void RabbitmqCommunicationParams::Swap(RabbitmqCommunicationParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RabbitmqCommunicationParams::InternalSwap(RabbitmqCommunicationParams* other) {
- using std::swap;
- rabbitmq_ex_.Swap(&other->rabbitmq_ex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- rabbitmq_route_key_.Swap(&other->rabbitmq_route_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(enable_rabbitmq_, other->enable_rabbitmq_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RabbitmqCommunicationParams::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void MqttCommunicationParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MqttCommunicationParams::kEnableMqttFieldNumber;
- const int MqttCommunicationParams::kMqttTopicFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MqttCommunicationParams::MqttCommunicationParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_MqttCommunicationParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:MqttCommunicationParams)
- }
- MqttCommunicationParams::MqttCommunicationParams(const MqttCommunicationParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- mqtt_topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_mqtt_topic()) {
- mqtt_topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mqtt_topic_);
- }
- enable_mqtt_ = from.enable_mqtt_;
- // @@protoc_insertion_point(copy_constructor:MqttCommunicationParams)
- }
- void MqttCommunicationParams::SharedCtor() {
- mqtt_topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- enable_mqtt_ = false;
- }
- MqttCommunicationParams::~MqttCommunicationParams() {
- // @@protoc_insertion_point(destructor:MqttCommunicationParams)
- SharedDtor();
- }
- void MqttCommunicationParams::SharedDtor() {
- mqtt_topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void MqttCommunicationParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MqttCommunicationParams::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MqttCommunicationParams& MqttCommunicationParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_MqttCommunicationParams.base);
- return *internal_default_instance();
- }
- void MqttCommunicationParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:MqttCommunicationParams)
- ::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) {
- mqtt_topic_.ClearNonDefaultToEmptyNoArena();
- }
- enable_mqtt_ = false;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool MqttCommunicationParams::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:MqttCommunicationParams)
- 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 bool enable_mqtt = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_enable_mqtt();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_mqtt_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string mqtt_topic = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_mqtt_topic()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "MqttCommunicationParams.mqtt_topic");
- } 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:MqttCommunicationParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:MqttCommunicationParams)
- return false;
- #undef DO_
- }
- void MqttCommunicationParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:MqttCommunicationParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_mqtt = 7;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_mqtt(), output);
- }
- // required string mqtt_topic = 8;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "MqttCommunicationParams.mqtt_topic");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 8, this->mqtt_topic(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:MqttCommunicationParams)
- }
- ::google::protobuf::uint8* MqttCommunicationParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:MqttCommunicationParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_mqtt = 7;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_mqtt(), target);
- }
- // required string mqtt_topic = 8;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "MqttCommunicationParams.mqtt_topic");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 8, this->mqtt_topic(), 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:MqttCommunicationParams)
- return target;
- }
- size_t MqttCommunicationParams::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:MqttCommunicationParams)
- size_t total_size = 0;
- if (has_mqtt_topic()) {
- // required string mqtt_topic = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->mqtt_topic());
- }
- if (has_enable_mqtt()) {
- // required bool enable_mqtt = 7;
- total_size += 1 + 1;
- }
- return total_size;
- }
- size_t MqttCommunicationParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:MqttCommunicationParams)
- 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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
- // required string mqtt_topic = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->mqtt_topic());
- // required bool enable_mqtt = 7;
- total_size += 1 + 1;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MqttCommunicationParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:MqttCommunicationParams)
- GOOGLE_DCHECK_NE(&from, this);
- const MqttCommunicationParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MqttCommunicationParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:MqttCommunicationParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:MqttCommunicationParams)
- MergeFrom(*source);
- }
- }
- void MqttCommunicationParams::MergeFrom(const MqttCommunicationParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:MqttCommunicationParams)
- 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 & 3u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_mqtt_topic();
- mqtt_topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mqtt_topic_);
- }
- if (cached_has_bits & 0x00000002u) {
- enable_mqtt_ = from.enable_mqtt_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void MqttCommunicationParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:MqttCommunicationParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MqttCommunicationParams::CopyFrom(const MqttCommunicationParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:MqttCommunicationParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MqttCommunicationParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
- return true;
- }
- void MqttCommunicationParams::Swap(MqttCommunicationParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MqttCommunicationParams::InternalSwap(MqttCommunicationParams* other) {
- using std::swap;
- mqtt_topic_.Swap(&other->mqtt_topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(enable_mqtt_, other->enable_mqtt_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MqttCommunicationParams::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void tof3dVzenseEtc::InitAsDefaultInstance() {
- ::_tof3dVzenseEtc_default_instance_._instance.get_mutable()->bip_ = const_cast< ::Tof3dVzenseBuiltInParams*>(
- ::Tof3dVzenseBuiltInParams::internal_default_instance());
- ::_tof3dVzenseEtc_default_instance_._instance.get_mutable()->yolo_ = const_cast< ::Yolov8ProcessParams*>(
- ::Yolov8ProcessParams::internal_default_instance());
- }
- ::google::protobuf::internal::ExplicitlyConstructed<::std::string> tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int tof3dVzenseEtc::kEnableDeviceFieldNumber;
- const int tof3dVzenseEtc::kIpFieldNumber;
- const int tof3dVzenseEtc::kBipFieldNumber;
- const int tof3dVzenseEtc::kYoloFieldNumber;
- const int tof3dVzenseEtc::kAzimuthFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- tof3dVzenseEtc::tof3dVzenseEtc()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:tof3dVzenseEtc)
- }
- tof3dVzenseEtc::tof3dVzenseEtc(const tof3dVzenseEtc& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ip_.UnsafeSetDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
- if (from.has_ip()) {
- ip_.AssignWithDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(), from.ip_);
- }
- if (from.has_bip()) {
- bip_ = new ::Tof3dVzenseBuiltInParams(*from.bip_);
- } else {
- bip_ = NULL;
- }
- if (from.has_yolo()) {
- yolo_ = new ::Yolov8ProcessParams(*from.yolo_);
- } else {
- yolo_ = NULL;
- }
- ::memcpy(&enable_device_, &from.enable_device_,
- static_cast<size_t>(reinterpret_cast<char*>(&azimuth_) -
- reinterpret_cast<char*>(&enable_device_)) + sizeof(azimuth_));
- // @@protoc_insertion_point(copy_constructor:tof3dVzenseEtc)
- }
- void tof3dVzenseEtc::SharedCtor() {
- ip_.UnsafeSetDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
- ::memset(&bip_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&enable_device_) -
- reinterpret_cast<char*>(&bip_)) + sizeof(enable_device_));
- azimuth_ = 1;
- }
- tof3dVzenseEtc::~tof3dVzenseEtc() {
- // @@protoc_insertion_point(destructor:tof3dVzenseEtc)
- SharedDtor();
- }
- void tof3dVzenseEtc::SharedDtor() {
- ip_.DestroyNoArena(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
- if (this != internal_default_instance()) delete bip_;
- if (this != internal_default_instance()) delete yolo_;
- }
- void tof3dVzenseEtc::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* tof3dVzenseEtc::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const tof3dVzenseEtc& tof3dVzenseEtc::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base);
- return *internal_default_instance();
- }
- void tof3dVzenseEtc::Clear() {
- // @@protoc_insertion_point(message_clear_start:tof3dVzenseEtc)
- ::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) {
- ip_.UnsafeMutablePointer()->assign(*&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(bip_ != NULL);
- bip_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(yolo_ != NULL);
- yolo_->Clear();
- }
- }
- if (cached_has_bits & 24u) {
- enable_device_ = false;
- azimuth_ = 1;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool tof3dVzenseEtc::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:tof3dVzenseEtc)
- 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 bool enable_device = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_enable_device();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_device_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string ip = 2 [default = "192.168.1.101"];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_ip()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "tof3dVzenseEtc.ip");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .Tof3dVzenseBuiltInParams bip = 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_bip()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .Yolov8ProcessParams yolo = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_yolo()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .DeviceAzimuth azimuth = 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 (::DeviceAzimuth_IsValid(value)) {
- set_azimuth(static_cast< ::DeviceAzimuth >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 6, static_cast< ::google::protobuf::uint64>(value));
- }
- } 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:tof3dVzenseEtc)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:tof3dVzenseEtc)
- return false;
- #undef DO_
- }
- void tof3dVzenseEtc::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:tof3dVzenseEtc)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_device = 1;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable_device(), output);
- }
- // required string ip = 2 [default = "192.168.1.101"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "tof3dVzenseEtc.ip");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->ip(), output);
- }
- // required .Tof3dVzenseBuiltInParams bip = 4;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_bip(), output);
- }
- // required .Yolov8ProcessParams yolo = 5;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->_internal_yolo(), output);
- }
- // required .DeviceAzimuth azimuth = 6;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 6, this->azimuth(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:tof3dVzenseEtc)
- }
- ::google::protobuf::uint8* tof3dVzenseEtc::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:tof3dVzenseEtc)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required bool enable_device = 1;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable_device(), target);
- }
- // required string ip = 2 [default = "192.168.1.101"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "tof3dVzenseEtc.ip");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->ip(), target);
- }
- // required .Tof3dVzenseBuiltInParams bip = 4;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_bip(), deterministic, target);
- }
- // required .Yolov8ProcessParams yolo = 5;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 5, this->_internal_yolo(), deterministic, target);
- }
- // required .DeviceAzimuth azimuth = 6;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 6, this->azimuth(), 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:tof3dVzenseEtc)
- return target;
- }
- size_t tof3dVzenseEtc::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:tof3dVzenseEtc)
- size_t total_size = 0;
- if (has_ip()) {
- // required string ip = 2 [default = "192.168.1.101"];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip());
- }
- if (has_bip()) {
- // required .Tof3dVzenseBuiltInParams bip = 4;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *bip_);
- }
- if (has_yolo()) {
- // required .Yolov8ProcessParams yolo = 5;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *yolo_);
- }
- if (has_enable_device()) {
- // required bool enable_device = 1;
- total_size += 1 + 1;
- }
- if (has_azimuth()) {
- // required .DeviceAzimuth azimuth = 6;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->azimuth());
- }
- return total_size;
- }
- size_t tof3dVzenseEtc::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:tof3dVzenseEtc)
- 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] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present.
- // required string ip = 2 [default = "192.168.1.101"];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip());
- // required .Tof3dVzenseBuiltInParams bip = 4;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *bip_);
- // required .Yolov8ProcessParams yolo = 5;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *yolo_);
- // required bool enable_device = 1;
- total_size += 1 + 1;
- // required .DeviceAzimuth azimuth = 6;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->azimuth());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void tof3dVzenseEtc::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:tof3dVzenseEtc)
- GOOGLE_DCHECK_NE(&from, this);
- const tof3dVzenseEtc* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const tof3dVzenseEtc>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tof3dVzenseEtc)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tof3dVzenseEtc)
- MergeFrom(*source);
- }
- }
- void tof3dVzenseEtc::MergeFrom(const tof3dVzenseEtc& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:tof3dVzenseEtc)
- 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 & 31u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_ip();
- ip_.AssignWithDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(), from.ip_);
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_bip()->::Tof3dVzenseBuiltInParams::MergeFrom(from.bip());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_yolo()->::Yolov8ProcessParams::MergeFrom(from.yolo());
- }
- if (cached_has_bits & 0x00000008u) {
- enable_device_ = from.enable_device_;
- }
- if (cached_has_bits & 0x00000010u) {
- azimuth_ = from.azimuth_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void tof3dVzenseEtc::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:tof3dVzenseEtc)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void tof3dVzenseEtc::CopyFrom(const tof3dVzenseEtc& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:tof3dVzenseEtc)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool tof3dVzenseEtc::IsInitialized() const {
- if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
- return true;
- }
- void tof3dVzenseEtc::Swap(tof3dVzenseEtc* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void tof3dVzenseEtc::InternalSwap(tof3dVzenseEtc* other) {
- using std::swap;
- ip_.Swap(&other->ip_, &::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(),
- GetArenaNoVirtual());
- swap(bip_, other->bip_);
- swap(yolo_, other->yolo_);
- swap(enable_device_, other->enable_device_);
- swap(azimuth_, other->azimuth_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata tof3dVzenseEtc::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void tof3dManagerParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int tof3dManagerParams::kVzenseTof3DDevicesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- tof3dManagerParams::tof3dManagerParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dManagerParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:tof3dManagerParams)
- }
- tof3dManagerParams::tof3dManagerParams(const tof3dManagerParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- vzense_tof3d_devices_(from.vzense_tof3d_devices_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:tof3dManagerParams)
- }
- void tof3dManagerParams::SharedCtor() {
- }
- tof3dManagerParams::~tof3dManagerParams() {
- // @@protoc_insertion_point(destructor:tof3dManagerParams)
- SharedDtor();
- }
- void tof3dManagerParams::SharedDtor() {
- }
- void tof3dManagerParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* tof3dManagerParams::descriptor() {
- ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const tof3dManagerParams& tof3dManagerParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dManagerParams.base);
- return *internal_default_instance();
- }
- void tof3dManagerParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:tof3dManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- vzense_tof3d_devices_.Clear();
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool tof3dManagerParams::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:tof3dManagerParams)
- 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)) {
- // repeated .tof3dVzenseEtc vzense_tof3d_devices = 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, add_vzense_tof3d_devices()));
- } 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:tof3dManagerParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:tof3dManagerParams)
- return false;
- #undef DO_
- }
- void tof3dManagerParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:tof3dManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->vzense_tof3d_devices_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->vzense_tof3d_devices(static_cast<int>(i)),
- output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:tof3dManagerParams)
- }
- ::google::protobuf::uint8* tof3dManagerParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:tof3dManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->vzense_tof3d_devices_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->vzense_tof3d_devices(static_cast<int>(i)), 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:tof3dManagerParams)
- return target;
- }
- size_t tof3dManagerParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:tof3dManagerParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->vzense_tof3d_devices_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->vzense_tof3d_devices(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void tof3dManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:tof3dManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- const tof3dManagerParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const tof3dManagerParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tof3dManagerParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tof3dManagerParams)
- MergeFrom(*source);
- }
- }
- void tof3dManagerParams::MergeFrom(const tof3dManagerParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:tof3dManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- vzense_tof3d_devices_.MergeFrom(from.vzense_tof3d_devices_);
- }
- void tof3dManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:tof3dManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void tof3dManagerParams::CopyFrom(const tof3dManagerParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:tof3dManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool tof3dManagerParams::IsInitialized() const {
- if (!::google::protobuf::internal::AllAreInitialized(this->vzense_tof3d_devices())) return false;
- return true;
- }
- void tof3dManagerParams::Swap(tof3dManagerParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void tof3dManagerParams::InternalSwap(tof3dManagerParams* other) {
- using std::swap;
- CastToBase(&vzense_tof3d_devices_)->InternalSwap(CastToBase(&other->vzense_tof3d_devices_));
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata tof3dManagerParams::GetMetadata() const {
- protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Tof3dVzenseBuiltInParams* Arena::CreateMaybeMessage< ::Tof3dVzenseBuiltInParams >(Arena* arena) {
- return Arena::CreateInternal< ::Tof3dVzenseBuiltInParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Yolov8ProcessParams* Arena::CreateMaybeMessage< ::Yolov8ProcessParams >(Arena* arena) {
- return Arena::CreateInternal< ::Yolov8ProcessParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::RabbitmqCommunicationParams* Arena::CreateMaybeMessage< ::RabbitmqCommunicationParams >(Arena* arena) {
- return Arena::CreateInternal< ::RabbitmqCommunicationParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::MqttCommunicationParams* Arena::CreateMaybeMessage< ::MqttCommunicationParams >(Arena* arena) {
- return Arena::CreateInternal< ::MqttCommunicationParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tof3dVzenseEtc* Arena::CreateMaybeMessage< ::tof3dVzenseEtc >(Arena* arena) {
- return Arena::CreateInternal< ::tof3dVzenseEtc >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tof3dManagerParams* Arena::CreateMaybeMessage< ::tof3dManagerParams >(Arena* arena) {
- return Arena::CreateInternal< ::tof3dManagerParams >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|