tof3d_config.pb.cc 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: tof3d_config.proto
  3. #include "tof3d_config.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_tof3d_5fconfig_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Tof3dVzenseBuiltInParams;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Yolov8ProcessParams;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_tof3d_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_tof3dVzenseEtc;
  22. } // namespace protobuf_tof3d_5fconfig_2eproto
  23. class Tof3dVzenseBuiltInParamsDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<Tof3dVzenseBuiltInParams>
  26. _instance;
  27. } _Tof3dVzenseBuiltInParams_default_instance_;
  28. class Yolov8ProcessParamsDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<Yolov8ProcessParams>
  31. _instance;
  32. } _Yolov8ProcessParams_default_instance_;
  33. class RabbitmqCommunicationParamsDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<RabbitmqCommunicationParams>
  36. _instance;
  37. } _RabbitmqCommunicationParams_default_instance_;
  38. class MqttCommunicationParamsDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<MqttCommunicationParams>
  41. _instance;
  42. } _MqttCommunicationParams_default_instance_;
  43. class tof3dVzenseEtcDefaultTypeInternal {
  44. public:
  45. ::google::protobuf::internal::ExplicitlyConstructed<tof3dVzenseEtc>
  46. _instance;
  47. } _tof3dVzenseEtc_default_instance_;
  48. class tof3dManagerParamsDefaultTypeInternal {
  49. public:
  50. ::google::protobuf::internal::ExplicitlyConstructed<tof3dManagerParams>
  51. _instance;
  52. } _tof3dManagerParams_default_instance_;
  53. namespace protobuf_tof3d_5fconfig_2eproto {
  54. static void InitDefaultsTof3dVzenseBuiltInParams() {
  55. GOOGLE_PROTOBUF_VERIFY_VERSION;
  56. {
  57. void* ptr = &::_Tof3dVzenseBuiltInParams_default_instance_;
  58. new (ptr) ::Tof3dVzenseBuiltInParams();
  59. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  60. }
  61. ::Tof3dVzenseBuiltInParams::InitAsDefaultInstance();
  62. }
  63. ::google::protobuf::internal::SCCInfo<0> scc_info_Tof3dVzenseBuiltInParams =
  64. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTof3dVzenseBuiltInParams}, {}};
  65. static void InitDefaultsYolov8ProcessParams() {
  66. GOOGLE_PROTOBUF_VERIFY_VERSION;
  67. {
  68. void* ptr = &::_Yolov8ProcessParams_default_instance_;
  69. new (ptr) ::Yolov8ProcessParams();
  70. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  71. }
  72. ::Yolov8ProcessParams::InitAsDefaultInstance();
  73. }
  74. ::google::protobuf::internal::SCCInfo<0> scc_info_Yolov8ProcessParams =
  75. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsYolov8ProcessParams}, {}};
  76. static void InitDefaultsRabbitmqCommunicationParams() {
  77. GOOGLE_PROTOBUF_VERIFY_VERSION;
  78. {
  79. void* ptr = &::_RabbitmqCommunicationParams_default_instance_;
  80. new (ptr) ::RabbitmqCommunicationParams();
  81. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  82. }
  83. ::RabbitmqCommunicationParams::InitAsDefaultInstance();
  84. }
  85. ::google::protobuf::internal::SCCInfo<0> scc_info_RabbitmqCommunicationParams =
  86. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRabbitmqCommunicationParams}, {}};
  87. static void InitDefaultsMqttCommunicationParams() {
  88. GOOGLE_PROTOBUF_VERIFY_VERSION;
  89. {
  90. void* ptr = &::_MqttCommunicationParams_default_instance_;
  91. new (ptr) ::MqttCommunicationParams();
  92. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  93. }
  94. ::MqttCommunicationParams::InitAsDefaultInstance();
  95. }
  96. ::google::protobuf::internal::SCCInfo<0> scc_info_MqttCommunicationParams =
  97. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMqttCommunicationParams}, {}};
  98. static void InitDefaultstof3dVzenseEtc() {
  99. GOOGLE_PROTOBUF_VERIFY_VERSION;
  100. ::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.DefaultConstruct();
  101. *::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get_mutable() = ::std::string("192.168.1.101", 13);
  102. ::google::protobuf::internal::OnShutdownDestroyString(
  103. ::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get_mutable());
  104. {
  105. void* ptr = &::_tof3dVzenseEtc_default_instance_;
  106. new (ptr) ::tof3dVzenseEtc();
  107. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  108. }
  109. ::tof3dVzenseEtc::InitAsDefaultInstance();
  110. }
  111. ::google::protobuf::internal::SCCInfo<2> scc_info_tof3dVzenseEtc =
  112. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultstof3dVzenseEtc}, {
  113. &protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base,
  114. &protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base,}};
  115. static void InitDefaultstof3dManagerParams() {
  116. GOOGLE_PROTOBUF_VERIFY_VERSION;
  117. {
  118. void* ptr = &::_tof3dManagerParams_default_instance_;
  119. new (ptr) ::tof3dManagerParams();
  120. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  121. }
  122. ::tof3dManagerParams::InitAsDefaultInstance();
  123. }
  124. ::google::protobuf::internal::SCCInfo<1> scc_info_tof3dManagerParams =
  125. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultstof3dManagerParams}, {
  126. &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base,}};
  127. void InitDefaults() {
  128. ::google::protobuf::internal::InitSCC(&scc_info_Tof3dVzenseBuiltInParams.base);
  129. ::google::protobuf::internal::InitSCC(&scc_info_Yolov8ProcessParams.base);
  130. ::google::protobuf::internal::InitSCC(&scc_info_RabbitmqCommunicationParams.base);
  131. ::google::protobuf::internal::InitSCC(&scc_info_MqttCommunicationParams.base);
  132. ::google::protobuf::internal::InitSCC(&scc_info_tof3dVzenseEtc.base);
  133. ::google::protobuf::internal::InitSCC(&scc_info_tof3dManagerParams.base);
  134. }
  135. ::google::protobuf::Metadata file_level_metadata[6];
  136. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  137. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, _has_bits_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, _internal_metadata_),
  140. ~0u, // no _extensions_
  141. ~0u, // no _oneof_case_
  142. ~0u, // no _weak_field_map_
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, work_mode_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, irgmmgain_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, frame_rate_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_manual_exposure_time_),
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, exposure_time_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_filter_fill_hole_),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_filter_spatial_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_time_filter_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, time_filter_value_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_flying_pixel_filter_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, flying_pixel_filter_value_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_confidence_filter_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, confidence_filter_value_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Tof3dVzenseBuiltInParams, enable_hdr_mode_),
  157. 0,
  158. 5,
  159. 6,
  160. 8,
  161. 7,
  162. 9,
  163. 10,
  164. 11,
  165. 12,
  166. 2,
  167. 13,
  168. 3,
  169. 1,
  170. 4,
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, _has_bits_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, _internal_metadata_),
  173. ~0u, // no _extensions_
  174. ~0u, // no _oneof_case_
  175. ~0u, // no _weak_field_map_
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_mat_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, draw_rect_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_confidence_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_aspect_ratio_min_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Yolov8ProcessParams, save_aspect_ratio_max_),
  181. 0,
  182. 1,
  183. 3,
  184. 4,
  185. 2,
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, _has_bits_),
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, _internal_metadata_),
  188. ~0u, // no _extensions_
  189. ~0u, // no _oneof_case_
  190. ~0u, // no _weak_field_map_
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, enable_rabbitmq_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, rabbitmq_ex_),
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::RabbitmqCommunicationParams, rabbitmq_route_key_),
  194. 2,
  195. 0,
  196. 1,
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, _has_bits_),
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, _internal_metadata_),
  199. ~0u, // no _extensions_
  200. ~0u, // no _oneof_case_
  201. ~0u, // no _weak_field_map_
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, enable_mqtt_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::MqttCommunicationParams, mqtt_topic_),
  204. 1,
  205. 0,
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, _has_bits_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, _internal_metadata_),
  208. ~0u, // no _extensions_
  209. ~0u, // no _oneof_case_
  210. ~0u, // no _weak_field_map_
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, enable_device_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, ip_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, bip_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, yolo_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dVzenseEtc, azimuth_),
  216. 3,
  217. 0,
  218. 1,
  219. 2,
  220. 4,
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, _has_bits_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, _internal_metadata_),
  223. ~0u, // no _extensions_
  224. ~0u, // no _oneof_case_
  225. ~0u, // no _weak_field_map_
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tof3dManagerParams, vzense_tof3d_devices_),
  227. ~0u,
  228. };
  229. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  230. { 0, 19, sizeof(::Tof3dVzenseBuiltInParams)},
  231. { 33, 43, sizeof(::Yolov8ProcessParams)},
  232. { 48, 56, sizeof(::RabbitmqCommunicationParams)},
  233. { 59, 66, sizeof(::MqttCommunicationParams)},
  234. { 68, 78, sizeof(::tof3dVzenseEtc)},
  235. { 83, 89, sizeof(::tof3dManagerParams)},
  236. };
  237. static ::google::protobuf::Message const * const file_default_instances[] = {
  238. reinterpret_cast<const ::google::protobuf::Message*>(&::_Tof3dVzenseBuiltInParams_default_instance_),
  239. reinterpret_cast<const ::google::protobuf::Message*>(&::_Yolov8ProcessParams_default_instance_),
  240. reinterpret_cast<const ::google::protobuf::Message*>(&::_RabbitmqCommunicationParams_default_instance_),
  241. reinterpret_cast<const ::google::protobuf::Message*>(&::_MqttCommunicationParams_default_instance_),
  242. reinterpret_cast<const ::google::protobuf::Message*>(&::_tof3dVzenseEtc_default_instance_),
  243. reinterpret_cast<const ::google::protobuf::Message*>(&::_tof3dManagerParams_default_instance_),
  244. };
  245. void protobuf_AssignDescriptors() {
  246. AddDescriptors();
  247. AssignDescriptors(
  248. "tof3d_config.proto", schemas, file_default_instances, TableStruct::offsets,
  249. file_level_metadata, file_level_enum_descriptors, NULL);
  250. }
  251. void protobuf_AssignDescriptorsOnce() {
  252. static ::google::protobuf::internal::once_flag once;
  253. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  254. }
  255. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  256. void protobuf_RegisterTypes(const ::std::string&) {
  257. protobuf_AssignDescriptorsOnce();
  258. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
  259. }
  260. void AddDescriptorsImpl() {
  261. InitDefaults();
  262. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  263. "\n\022tof3d_config.proto\"\357\003\n\030Tof3dVzenseBuil"
  264. "tInParams\022\024\n\twork_mode\030\001 \001(\r:\0010\022\025\n\tirgmm"
  265. "gain\030\002 \001(\r:\00245\022\026\n\nframe_rate\030\003 \001(\r:\00210\022)"
  266. "\n\033enable_manual_exposure_time\030\004 \001(\010:\004tru"
  267. "e\022\033\n\rexposure_time\030\005 \001(\r:\0042000\022%\n\027enable"
  268. "_filter_fill_hole\030\007 \001(\010:\004true\022#\n\025enable_"
  269. "filter_spatial\030\010 \001(\010:\004true\022 \n\022enable_tim"
  270. "e_filter\030\t \001(\010:\004true\022\034\n\021time_filter_valu"
  271. "e\030\n \001(\r:\0013\022(\n\032enable_flying_pixel_filter"
  272. "\030\013 \001(\010:\004true\022%\n\031flying_pixel_filter_valu"
  273. "e\030\014 \001(\r:\00215\022&\n\030enable_confidence_filter\030"
  274. "\r \001(\010:\004true\022\"\n\027confidence_filter_value\030\016"
  275. " \001(\r:\0010\022\035\n\017enable_hdr_mode\030\017 \001(\010:\004true\"\256"
  276. "\001\n\023Yolov8ProcessParams\022\027\n\010save_mat\030\001 \001(\010"
  277. ":\005false\022\030\n\tdraw_rect\030\002 \001(\010:\005false\022\034\n\017sav"
  278. "e_confidence\030\003 \001(\002:\0030.8\022\"\n\025save_aspect_r"
  279. "atio_min\030\004 \001(\002:\0030.9\022\"\n\025save_aspect_ratio"
  280. "_max\030\005 \001(\002:\0031.1\"g\n\033RabbitmqCommunication"
  281. "Params\022\027\n\017enable_rabbitmq\030\004 \002(\010\022\023\n\013rabbi"
  282. "tmq_ex\030\005 \002(\t\022\032\n\022rabbitmq_route_key\030\006 \002(\t"
  283. "\"B\n\027MqttCommunicationParams\022\023\n\013enable_mq"
  284. "tt\030\007 \002(\010\022\022\n\nmqtt_topic\030\010 \002(\t\"\257\001\n\016tof3dVz"
  285. "enseEtc\022\025\n\renable_device\030\001 \002(\010\022\031\n\002ip\030\002 \002"
  286. "(\t:\r192.168.1.101\022&\n\003bip\030\004 \002(\0132\031.Tof3dVz"
  287. "enseBuiltInParams\022\"\n\004yolo\030\005 \002(\0132\024.Yolov8"
  288. "ProcessParams\022\037\n\007azimuth\030\006 \002(\0162\016.DeviceA"
  289. "zimuth\"C\n\022tof3dManagerParams\022-\n\024vzense_t"
  290. "of3d_devices\030\001 \003(\0132\017.tof3dVzenseEtc*/\n\rD"
  291. "eviceAzimuth\022\006\n\002LF\020\001\022\006\n\002RF\020\002\022\006\n\002LR\020\003\022\006\n\002"
  292. "RR\020\004"
  293. };
  294. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  295. descriptor, 1164);
  296. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  297. "tof3d_config.proto", &protobuf_RegisterTypes);
  298. }
  299. void AddDescriptors() {
  300. static ::google::protobuf::internal::once_flag once;
  301. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  302. }
  303. // Force AddDescriptors() to be called at dynamic initialization time.
  304. struct StaticDescriptorInitializer {
  305. StaticDescriptorInitializer() {
  306. AddDescriptors();
  307. }
  308. } static_descriptor_initializer;
  309. } // namespace protobuf_tof3d_5fconfig_2eproto
  310. const ::google::protobuf::EnumDescriptor* DeviceAzimuth_descriptor() {
  311. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  312. return protobuf_tof3d_5fconfig_2eproto::file_level_enum_descriptors[0];
  313. }
  314. bool DeviceAzimuth_IsValid(int value) {
  315. switch (value) {
  316. case 1:
  317. case 2:
  318. case 3:
  319. case 4:
  320. return true;
  321. default:
  322. return false;
  323. }
  324. }
  325. // ===================================================================
  326. void Tof3dVzenseBuiltInParams::InitAsDefaultInstance() {
  327. }
  328. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  329. const int Tof3dVzenseBuiltInParams::kWorkModeFieldNumber;
  330. const int Tof3dVzenseBuiltInParams::kIrgmmgainFieldNumber;
  331. const int Tof3dVzenseBuiltInParams::kFrameRateFieldNumber;
  332. const int Tof3dVzenseBuiltInParams::kEnableManualExposureTimeFieldNumber;
  333. const int Tof3dVzenseBuiltInParams::kExposureTimeFieldNumber;
  334. const int Tof3dVzenseBuiltInParams::kEnableFilterFillHoleFieldNumber;
  335. const int Tof3dVzenseBuiltInParams::kEnableFilterSpatialFieldNumber;
  336. const int Tof3dVzenseBuiltInParams::kEnableTimeFilterFieldNumber;
  337. const int Tof3dVzenseBuiltInParams::kTimeFilterValueFieldNumber;
  338. const int Tof3dVzenseBuiltInParams::kEnableFlyingPixelFilterFieldNumber;
  339. const int Tof3dVzenseBuiltInParams::kFlyingPixelFilterValueFieldNumber;
  340. const int Tof3dVzenseBuiltInParams::kEnableConfidenceFilterFieldNumber;
  341. const int Tof3dVzenseBuiltInParams::kConfidenceFilterValueFieldNumber;
  342. const int Tof3dVzenseBuiltInParams::kEnableHdrModeFieldNumber;
  343. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  344. Tof3dVzenseBuiltInParams::Tof3dVzenseBuiltInParams()
  345. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  346. ::google::protobuf::internal::InitSCC(
  347. &protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base);
  348. SharedCtor();
  349. // @@protoc_insertion_point(constructor:Tof3dVzenseBuiltInParams)
  350. }
  351. Tof3dVzenseBuiltInParams::Tof3dVzenseBuiltInParams(const Tof3dVzenseBuiltInParams& from)
  352. : ::google::protobuf::Message(),
  353. _internal_metadata_(NULL),
  354. _has_bits_(from._has_bits_) {
  355. _internal_metadata_.MergeFrom(from._internal_metadata_);
  356. ::memcpy(&work_mode_, &from.work_mode_,
  357. static_cast<size_t>(reinterpret_cast<char*>(&flying_pixel_filter_value_) -
  358. reinterpret_cast<char*>(&work_mode_)) + sizeof(flying_pixel_filter_value_));
  359. // @@protoc_insertion_point(copy_constructor:Tof3dVzenseBuiltInParams)
  360. }
  361. void Tof3dVzenseBuiltInParams::SharedCtor() {
  362. ::memset(&work_mode_, 0, static_cast<size_t>(
  363. reinterpret_cast<char*>(&confidence_filter_value_) -
  364. reinterpret_cast<char*>(&work_mode_)) + sizeof(confidence_filter_value_));
  365. enable_flying_pixel_filter_ = true;
  366. enable_confidence_filter_ = true;
  367. enable_hdr_mode_ = true;
  368. irgmmgain_ = 45u;
  369. frame_rate_ = 10u;
  370. exposure_time_ = 2000u;
  371. enable_manual_exposure_time_ = true;
  372. enable_filter_fill_hole_ = true;
  373. enable_filter_spatial_ = true;
  374. enable_time_filter_ = true;
  375. time_filter_value_ = 3u;
  376. flying_pixel_filter_value_ = 15u;
  377. }
  378. Tof3dVzenseBuiltInParams::~Tof3dVzenseBuiltInParams() {
  379. // @@protoc_insertion_point(destructor:Tof3dVzenseBuiltInParams)
  380. SharedDtor();
  381. }
  382. void Tof3dVzenseBuiltInParams::SharedDtor() {
  383. }
  384. void Tof3dVzenseBuiltInParams::SetCachedSize(int size) const {
  385. _cached_size_.Set(size);
  386. }
  387. const ::google::protobuf::Descriptor* Tof3dVzenseBuiltInParams::descriptor() {
  388. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  389. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  390. }
  391. const Tof3dVzenseBuiltInParams& Tof3dVzenseBuiltInParams::default_instance() {
  392. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_Tof3dVzenseBuiltInParams.base);
  393. return *internal_default_instance();
  394. }
  395. void Tof3dVzenseBuiltInParams::Clear() {
  396. // @@protoc_insertion_point(message_clear_start:Tof3dVzenseBuiltInParams)
  397. ::google::protobuf::uint32 cached_has_bits = 0;
  398. // Prevent compiler warnings about cached_has_bits being unused
  399. (void) cached_has_bits;
  400. cached_has_bits = _has_bits_[0];
  401. if (cached_has_bits & 255u) {
  402. ::memset(&work_mode_, 0, static_cast<size_t>(
  403. reinterpret_cast<char*>(&confidence_filter_value_) -
  404. reinterpret_cast<char*>(&work_mode_)) + sizeof(confidence_filter_value_));
  405. enable_flying_pixel_filter_ = true;
  406. enable_confidence_filter_ = true;
  407. enable_hdr_mode_ = true;
  408. irgmmgain_ = 45u;
  409. frame_rate_ = 10u;
  410. exposure_time_ = 2000u;
  411. }
  412. if (cached_has_bits & 16128u) {
  413. enable_manual_exposure_time_ = true;
  414. enable_filter_fill_hole_ = true;
  415. enable_filter_spatial_ = true;
  416. enable_time_filter_ = true;
  417. time_filter_value_ = 3u;
  418. flying_pixel_filter_value_ = 15u;
  419. }
  420. _has_bits_.Clear();
  421. _internal_metadata_.Clear();
  422. }
  423. bool Tof3dVzenseBuiltInParams::MergePartialFromCodedStream(
  424. ::google::protobuf::io::CodedInputStream* input) {
  425. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  426. ::google::protobuf::uint32 tag;
  427. // @@protoc_insertion_point(parse_start:Tof3dVzenseBuiltInParams)
  428. for (;;) {
  429. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  430. tag = p.first;
  431. if (!p.second) goto handle_unusual;
  432. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  433. // optional uint32 work_mode = 1 [default = 0];
  434. case 1: {
  435. if (static_cast< ::google::protobuf::uint8>(tag) ==
  436. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  437. set_has_work_mode();
  438. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  439. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  440. input, &work_mode_)));
  441. } else {
  442. goto handle_unusual;
  443. }
  444. break;
  445. }
  446. // optional uint32 irgmmgain = 2 [default = 45];
  447. case 2: {
  448. if (static_cast< ::google::protobuf::uint8>(tag) ==
  449. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  450. set_has_irgmmgain();
  451. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  452. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  453. input, &irgmmgain_)));
  454. } else {
  455. goto handle_unusual;
  456. }
  457. break;
  458. }
  459. // optional uint32 frame_rate = 3 [default = 10];
  460. case 3: {
  461. if (static_cast< ::google::protobuf::uint8>(tag) ==
  462. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  463. set_has_frame_rate();
  464. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  465. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  466. input, &frame_rate_)));
  467. } else {
  468. goto handle_unusual;
  469. }
  470. break;
  471. }
  472. // optional bool enable_manual_exposure_time = 4 [default = true];
  473. case 4: {
  474. if (static_cast< ::google::protobuf::uint8>(tag) ==
  475. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  476. set_has_enable_manual_exposure_time();
  477. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  478. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  479. input, &enable_manual_exposure_time_)));
  480. } else {
  481. goto handle_unusual;
  482. }
  483. break;
  484. }
  485. // optional uint32 exposure_time = 5 [default = 2000];
  486. case 5: {
  487. if (static_cast< ::google::protobuf::uint8>(tag) ==
  488. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  489. set_has_exposure_time();
  490. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  491. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  492. input, &exposure_time_)));
  493. } else {
  494. goto handle_unusual;
  495. }
  496. break;
  497. }
  498. // optional bool enable_filter_fill_hole = 7 [default = true];
  499. case 7: {
  500. if (static_cast< ::google::protobuf::uint8>(tag) ==
  501. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  502. set_has_enable_filter_fill_hole();
  503. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  504. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  505. input, &enable_filter_fill_hole_)));
  506. } else {
  507. goto handle_unusual;
  508. }
  509. break;
  510. }
  511. // optional bool enable_filter_spatial = 8 [default = true];
  512. case 8: {
  513. if (static_cast< ::google::protobuf::uint8>(tag) ==
  514. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  515. set_has_enable_filter_spatial();
  516. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  517. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  518. input, &enable_filter_spatial_)));
  519. } else {
  520. goto handle_unusual;
  521. }
  522. break;
  523. }
  524. // optional bool enable_time_filter = 9 [default = true];
  525. case 9: {
  526. if (static_cast< ::google::protobuf::uint8>(tag) ==
  527. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  528. set_has_enable_time_filter();
  529. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  530. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  531. input, &enable_time_filter_)));
  532. } else {
  533. goto handle_unusual;
  534. }
  535. break;
  536. }
  537. // optional uint32 time_filter_value = 10 [default = 3];
  538. case 10: {
  539. if (static_cast< ::google::protobuf::uint8>(tag) ==
  540. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  541. set_has_time_filter_value();
  542. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  543. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  544. input, &time_filter_value_)));
  545. } else {
  546. goto handle_unusual;
  547. }
  548. break;
  549. }
  550. // optional bool enable_flying_pixel_filter = 11 [default = true];
  551. case 11: {
  552. if (static_cast< ::google::protobuf::uint8>(tag) ==
  553. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  554. set_has_enable_flying_pixel_filter();
  555. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  556. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  557. input, &enable_flying_pixel_filter_)));
  558. } else {
  559. goto handle_unusual;
  560. }
  561. break;
  562. }
  563. // optional uint32 flying_pixel_filter_value = 12 [default = 15];
  564. case 12: {
  565. if (static_cast< ::google::protobuf::uint8>(tag) ==
  566. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  567. set_has_flying_pixel_filter_value();
  568. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  569. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  570. input, &flying_pixel_filter_value_)));
  571. } else {
  572. goto handle_unusual;
  573. }
  574. break;
  575. }
  576. // optional bool enable_confidence_filter = 13 [default = true];
  577. case 13: {
  578. if (static_cast< ::google::protobuf::uint8>(tag) ==
  579. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  580. set_has_enable_confidence_filter();
  581. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  582. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  583. input, &enable_confidence_filter_)));
  584. } else {
  585. goto handle_unusual;
  586. }
  587. break;
  588. }
  589. // optional uint32 confidence_filter_value = 14 [default = 0];
  590. case 14: {
  591. if (static_cast< ::google::protobuf::uint8>(tag) ==
  592. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  593. set_has_confidence_filter_value();
  594. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  595. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  596. input, &confidence_filter_value_)));
  597. } else {
  598. goto handle_unusual;
  599. }
  600. break;
  601. }
  602. // optional bool enable_hdr_mode = 15 [default = true];
  603. case 15: {
  604. if (static_cast< ::google::protobuf::uint8>(tag) ==
  605. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  606. set_has_enable_hdr_mode();
  607. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  608. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  609. input, &enable_hdr_mode_)));
  610. } else {
  611. goto handle_unusual;
  612. }
  613. break;
  614. }
  615. default: {
  616. handle_unusual:
  617. if (tag == 0) {
  618. goto success;
  619. }
  620. DO_(::google::protobuf::internal::WireFormat::SkipField(
  621. input, tag, _internal_metadata_.mutable_unknown_fields()));
  622. break;
  623. }
  624. }
  625. }
  626. success:
  627. // @@protoc_insertion_point(parse_success:Tof3dVzenseBuiltInParams)
  628. return true;
  629. failure:
  630. // @@protoc_insertion_point(parse_failure:Tof3dVzenseBuiltInParams)
  631. return false;
  632. #undef DO_
  633. }
  634. void Tof3dVzenseBuiltInParams::SerializeWithCachedSizes(
  635. ::google::protobuf::io::CodedOutputStream* output) const {
  636. // @@protoc_insertion_point(serialize_start:Tof3dVzenseBuiltInParams)
  637. ::google::protobuf::uint32 cached_has_bits = 0;
  638. (void) cached_has_bits;
  639. cached_has_bits = _has_bits_[0];
  640. // optional uint32 work_mode = 1 [default = 0];
  641. if (cached_has_bits & 0x00000001u) {
  642. ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->work_mode(), output);
  643. }
  644. // optional uint32 irgmmgain = 2 [default = 45];
  645. if (cached_has_bits & 0x00000020u) {
  646. ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->irgmmgain(), output);
  647. }
  648. // optional uint32 frame_rate = 3 [default = 10];
  649. if (cached_has_bits & 0x00000040u) {
  650. ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->frame_rate(), output);
  651. }
  652. // optional bool enable_manual_exposure_time = 4 [default = true];
  653. if (cached_has_bits & 0x00000100u) {
  654. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->enable_manual_exposure_time(), output);
  655. }
  656. // optional uint32 exposure_time = 5 [default = 2000];
  657. if (cached_has_bits & 0x00000080u) {
  658. ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->exposure_time(), output);
  659. }
  660. // optional bool enable_filter_fill_hole = 7 [default = true];
  661. if (cached_has_bits & 0x00000200u) {
  662. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_filter_fill_hole(), output);
  663. }
  664. // optional bool enable_filter_spatial = 8 [default = true];
  665. if (cached_has_bits & 0x00000400u) {
  666. ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->enable_filter_spatial(), output);
  667. }
  668. // optional bool enable_time_filter = 9 [default = true];
  669. if (cached_has_bits & 0x00000800u) {
  670. ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->enable_time_filter(), output);
  671. }
  672. // optional uint32 time_filter_value = 10 [default = 3];
  673. if (cached_has_bits & 0x00001000u) {
  674. ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->time_filter_value(), output);
  675. }
  676. // optional bool enable_flying_pixel_filter = 11 [default = true];
  677. if (cached_has_bits & 0x00000004u) {
  678. ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->enable_flying_pixel_filter(), output);
  679. }
  680. // optional uint32 flying_pixel_filter_value = 12 [default = 15];
  681. if (cached_has_bits & 0x00002000u) {
  682. ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->flying_pixel_filter_value(), output);
  683. }
  684. // optional bool enable_confidence_filter = 13 [default = true];
  685. if (cached_has_bits & 0x00000008u) {
  686. ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->enable_confidence_filter(), output);
  687. }
  688. // optional uint32 confidence_filter_value = 14 [default = 0];
  689. if (cached_has_bits & 0x00000002u) {
  690. ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->confidence_filter_value(), output);
  691. }
  692. // optional bool enable_hdr_mode = 15 [default = true];
  693. if (cached_has_bits & 0x00000010u) {
  694. ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->enable_hdr_mode(), output);
  695. }
  696. if (_internal_metadata_.have_unknown_fields()) {
  697. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  698. _internal_metadata_.unknown_fields(), output);
  699. }
  700. // @@protoc_insertion_point(serialize_end:Tof3dVzenseBuiltInParams)
  701. }
  702. ::google::protobuf::uint8* Tof3dVzenseBuiltInParams::InternalSerializeWithCachedSizesToArray(
  703. bool deterministic, ::google::protobuf::uint8* target) const {
  704. (void)deterministic; // Unused
  705. // @@protoc_insertion_point(serialize_to_array_start:Tof3dVzenseBuiltInParams)
  706. ::google::protobuf::uint32 cached_has_bits = 0;
  707. (void) cached_has_bits;
  708. cached_has_bits = _has_bits_[0];
  709. // optional uint32 work_mode = 1 [default = 0];
  710. if (cached_has_bits & 0x00000001u) {
  711. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->work_mode(), target);
  712. }
  713. // optional uint32 irgmmgain = 2 [default = 45];
  714. if (cached_has_bits & 0x00000020u) {
  715. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->irgmmgain(), target);
  716. }
  717. // optional uint32 frame_rate = 3 [default = 10];
  718. if (cached_has_bits & 0x00000040u) {
  719. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->frame_rate(), target);
  720. }
  721. // optional bool enable_manual_exposure_time = 4 [default = true];
  722. if (cached_has_bits & 0x00000100u) {
  723. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->enable_manual_exposure_time(), target);
  724. }
  725. // optional uint32 exposure_time = 5 [default = 2000];
  726. if (cached_has_bits & 0x00000080u) {
  727. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->exposure_time(), target);
  728. }
  729. // optional bool enable_filter_fill_hole = 7 [default = true];
  730. if (cached_has_bits & 0x00000200u) {
  731. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_filter_fill_hole(), target);
  732. }
  733. // optional bool enable_filter_spatial = 8 [default = true];
  734. if (cached_has_bits & 0x00000400u) {
  735. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->enable_filter_spatial(), target);
  736. }
  737. // optional bool enable_time_filter = 9 [default = true];
  738. if (cached_has_bits & 0x00000800u) {
  739. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->enable_time_filter(), target);
  740. }
  741. // optional uint32 time_filter_value = 10 [default = 3];
  742. if (cached_has_bits & 0x00001000u) {
  743. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->time_filter_value(), target);
  744. }
  745. // optional bool enable_flying_pixel_filter = 11 [default = true];
  746. if (cached_has_bits & 0x00000004u) {
  747. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->enable_flying_pixel_filter(), target);
  748. }
  749. // optional uint32 flying_pixel_filter_value = 12 [default = 15];
  750. if (cached_has_bits & 0x00002000u) {
  751. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->flying_pixel_filter_value(), target);
  752. }
  753. // optional bool enable_confidence_filter = 13 [default = true];
  754. if (cached_has_bits & 0x00000008u) {
  755. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->enable_confidence_filter(), target);
  756. }
  757. // optional uint32 confidence_filter_value = 14 [default = 0];
  758. if (cached_has_bits & 0x00000002u) {
  759. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->confidence_filter_value(), target);
  760. }
  761. // optional bool enable_hdr_mode = 15 [default = true];
  762. if (cached_has_bits & 0x00000010u) {
  763. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->enable_hdr_mode(), target);
  764. }
  765. if (_internal_metadata_.have_unknown_fields()) {
  766. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  767. _internal_metadata_.unknown_fields(), target);
  768. }
  769. // @@protoc_insertion_point(serialize_to_array_end:Tof3dVzenseBuiltInParams)
  770. return target;
  771. }
  772. size_t Tof3dVzenseBuiltInParams::ByteSizeLong() const {
  773. // @@protoc_insertion_point(message_byte_size_start:Tof3dVzenseBuiltInParams)
  774. size_t total_size = 0;
  775. if (_internal_metadata_.have_unknown_fields()) {
  776. total_size +=
  777. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  778. _internal_metadata_.unknown_fields());
  779. }
  780. if (_has_bits_[0 / 32] & 255u) {
  781. // optional uint32 work_mode = 1 [default = 0];
  782. if (has_work_mode()) {
  783. total_size += 1 +
  784. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  785. this->work_mode());
  786. }
  787. // optional uint32 confidence_filter_value = 14 [default = 0];
  788. if (has_confidence_filter_value()) {
  789. total_size += 1 +
  790. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  791. this->confidence_filter_value());
  792. }
  793. // optional bool enable_flying_pixel_filter = 11 [default = true];
  794. if (has_enable_flying_pixel_filter()) {
  795. total_size += 1 + 1;
  796. }
  797. // optional bool enable_confidence_filter = 13 [default = true];
  798. if (has_enable_confidence_filter()) {
  799. total_size += 1 + 1;
  800. }
  801. // optional bool enable_hdr_mode = 15 [default = true];
  802. if (has_enable_hdr_mode()) {
  803. total_size += 1 + 1;
  804. }
  805. // optional uint32 irgmmgain = 2 [default = 45];
  806. if (has_irgmmgain()) {
  807. total_size += 1 +
  808. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  809. this->irgmmgain());
  810. }
  811. // optional uint32 frame_rate = 3 [default = 10];
  812. if (has_frame_rate()) {
  813. total_size += 1 +
  814. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  815. this->frame_rate());
  816. }
  817. // optional uint32 exposure_time = 5 [default = 2000];
  818. if (has_exposure_time()) {
  819. total_size += 1 +
  820. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  821. this->exposure_time());
  822. }
  823. }
  824. if (_has_bits_[8 / 32] & 16128u) {
  825. // optional bool enable_manual_exposure_time = 4 [default = true];
  826. if (has_enable_manual_exposure_time()) {
  827. total_size += 1 + 1;
  828. }
  829. // optional bool enable_filter_fill_hole = 7 [default = true];
  830. if (has_enable_filter_fill_hole()) {
  831. total_size += 1 + 1;
  832. }
  833. // optional bool enable_filter_spatial = 8 [default = true];
  834. if (has_enable_filter_spatial()) {
  835. total_size += 1 + 1;
  836. }
  837. // optional bool enable_time_filter = 9 [default = true];
  838. if (has_enable_time_filter()) {
  839. total_size += 1 + 1;
  840. }
  841. // optional uint32 time_filter_value = 10 [default = 3];
  842. if (has_time_filter_value()) {
  843. total_size += 1 +
  844. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  845. this->time_filter_value());
  846. }
  847. // optional uint32 flying_pixel_filter_value = 12 [default = 15];
  848. if (has_flying_pixel_filter_value()) {
  849. total_size += 1 +
  850. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  851. this->flying_pixel_filter_value());
  852. }
  853. }
  854. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  855. SetCachedSize(cached_size);
  856. return total_size;
  857. }
  858. void Tof3dVzenseBuiltInParams::MergeFrom(const ::google::protobuf::Message& from) {
  859. // @@protoc_insertion_point(generalized_merge_from_start:Tof3dVzenseBuiltInParams)
  860. GOOGLE_DCHECK_NE(&from, this);
  861. const Tof3dVzenseBuiltInParams* source =
  862. ::google::protobuf::internal::DynamicCastToGenerated<const Tof3dVzenseBuiltInParams>(
  863. &from);
  864. if (source == NULL) {
  865. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tof3dVzenseBuiltInParams)
  866. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  867. } else {
  868. // @@protoc_insertion_point(generalized_merge_from_cast_success:Tof3dVzenseBuiltInParams)
  869. MergeFrom(*source);
  870. }
  871. }
  872. void Tof3dVzenseBuiltInParams::MergeFrom(const Tof3dVzenseBuiltInParams& from) {
  873. // @@protoc_insertion_point(class_specific_merge_from_start:Tof3dVzenseBuiltInParams)
  874. GOOGLE_DCHECK_NE(&from, this);
  875. _internal_metadata_.MergeFrom(from._internal_metadata_);
  876. ::google::protobuf::uint32 cached_has_bits = 0;
  877. (void) cached_has_bits;
  878. cached_has_bits = from._has_bits_[0];
  879. if (cached_has_bits & 255u) {
  880. if (cached_has_bits & 0x00000001u) {
  881. work_mode_ = from.work_mode_;
  882. }
  883. if (cached_has_bits & 0x00000002u) {
  884. confidence_filter_value_ = from.confidence_filter_value_;
  885. }
  886. if (cached_has_bits & 0x00000004u) {
  887. enable_flying_pixel_filter_ = from.enable_flying_pixel_filter_;
  888. }
  889. if (cached_has_bits & 0x00000008u) {
  890. enable_confidence_filter_ = from.enable_confidence_filter_;
  891. }
  892. if (cached_has_bits & 0x00000010u) {
  893. enable_hdr_mode_ = from.enable_hdr_mode_;
  894. }
  895. if (cached_has_bits & 0x00000020u) {
  896. irgmmgain_ = from.irgmmgain_;
  897. }
  898. if (cached_has_bits & 0x00000040u) {
  899. frame_rate_ = from.frame_rate_;
  900. }
  901. if (cached_has_bits & 0x00000080u) {
  902. exposure_time_ = from.exposure_time_;
  903. }
  904. _has_bits_[0] |= cached_has_bits;
  905. }
  906. if (cached_has_bits & 16128u) {
  907. if (cached_has_bits & 0x00000100u) {
  908. enable_manual_exposure_time_ = from.enable_manual_exposure_time_;
  909. }
  910. if (cached_has_bits & 0x00000200u) {
  911. enable_filter_fill_hole_ = from.enable_filter_fill_hole_;
  912. }
  913. if (cached_has_bits & 0x00000400u) {
  914. enable_filter_spatial_ = from.enable_filter_spatial_;
  915. }
  916. if (cached_has_bits & 0x00000800u) {
  917. enable_time_filter_ = from.enable_time_filter_;
  918. }
  919. if (cached_has_bits & 0x00001000u) {
  920. time_filter_value_ = from.time_filter_value_;
  921. }
  922. if (cached_has_bits & 0x00002000u) {
  923. flying_pixel_filter_value_ = from.flying_pixel_filter_value_;
  924. }
  925. _has_bits_[0] |= cached_has_bits;
  926. }
  927. }
  928. void Tof3dVzenseBuiltInParams::CopyFrom(const ::google::protobuf::Message& from) {
  929. // @@protoc_insertion_point(generalized_copy_from_start:Tof3dVzenseBuiltInParams)
  930. if (&from == this) return;
  931. Clear();
  932. MergeFrom(from);
  933. }
  934. void Tof3dVzenseBuiltInParams::CopyFrom(const Tof3dVzenseBuiltInParams& from) {
  935. // @@protoc_insertion_point(class_specific_copy_from_start:Tof3dVzenseBuiltInParams)
  936. if (&from == this) return;
  937. Clear();
  938. MergeFrom(from);
  939. }
  940. bool Tof3dVzenseBuiltInParams::IsInitialized() const {
  941. return true;
  942. }
  943. void Tof3dVzenseBuiltInParams::Swap(Tof3dVzenseBuiltInParams* other) {
  944. if (other == this) return;
  945. InternalSwap(other);
  946. }
  947. void Tof3dVzenseBuiltInParams::InternalSwap(Tof3dVzenseBuiltInParams* other) {
  948. using std::swap;
  949. swap(work_mode_, other->work_mode_);
  950. swap(confidence_filter_value_, other->confidence_filter_value_);
  951. swap(enable_flying_pixel_filter_, other->enable_flying_pixel_filter_);
  952. swap(enable_confidence_filter_, other->enable_confidence_filter_);
  953. swap(enable_hdr_mode_, other->enable_hdr_mode_);
  954. swap(irgmmgain_, other->irgmmgain_);
  955. swap(frame_rate_, other->frame_rate_);
  956. swap(exposure_time_, other->exposure_time_);
  957. swap(enable_manual_exposure_time_, other->enable_manual_exposure_time_);
  958. swap(enable_filter_fill_hole_, other->enable_filter_fill_hole_);
  959. swap(enable_filter_spatial_, other->enable_filter_spatial_);
  960. swap(enable_time_filter_, other->enable_time_filter_);
  961. swap(time_filter_value_, other->time_filter_value_);
  962. swap(flying_pixel_filter_value_, other->flying_pixel_filter_value_);
  963. swap(_has_bits_[0], other->_has_bits_[0]);
  964. _internal_metadata_.Swap(&other->_internal_metadata_);
  965. }
  966. ::google::protobuf::Metadata Tof3dVzenseBuiltInParams::GetMetadata() const {
  967. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  968. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  969. }
  970. // ===================================================================
  971. void Yolov8ProcessParams::InitAsDefaultInstance() {
  972. }
  973. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  974. const int Yolov8ProcessParams::kSaveMatFieldNumber;
  975. const int Yolov8ProcessParams::kDrawRectFieldNumber;
  976. const int Yolov8ProcessParams::kSaveConfidenceFieldNumber;
  977. const int Yolov8ProcessParams::kSaveAspectRatioMinFieldNumber;
  978. const int Yolov8ProcessParams::kSaveAspectRatioMaxFieldNumber;
  979. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  980. Yolov8ProcessParams::Yolov8ProcessParams()
  981. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  982. ::google::protobuf::internal::InitSCC(
  983. &protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base);
  984. SharedCtor();
  985. // @@protoc_insertion_point(constructor:Yolov8ProcessParams)
  986. }
  987. Yolov8ProcessParams::Yolov8ProcessParams(const Yolov8ProcessParams& from)
  988. : ::google::protobuf::Message(),
  989. _internal_metadata_(NULL),
  990. _has_bits_(from._has_bits_) {
  991. _internal_metadata_.MergeFrom(from._internal_metadata_);
  992. ::memcpy(&save_mat_, &from.save_mat_,
  993. static_cast<size_t>(reinterpret_cast<char*>(&save_aspect_ratio_min_) -
  994. reinterpret_cast<char*>(&save_mat_)) + sizeof(save_aspect_ratio_min_));
  995. // @@protoc_insertion_point(copy_constructor:Yolov8ProcessParams)
  996. }
  997. void Yolov8ProcessParams::SharedCtor() {
  998. ::memset(&save_mat_, 0, static_cast<size_t>(
  999. reinterpret_cast<char*>(&draw_rect_) -
  1000. reinterpret_cast<char*>(&save_mat_)) + sizeof(draw_rect_));
  1001. save_aspect_ratio_max_ = 1.1f;
  1002. save_confidence_ = 0.8f;
  1003. save_aspect_ratio_min_ = 0.9f;
  1004. }
  1005. Yolov8ProcessParams::~Yolov8ProcessParams() {
  1006. // @@protoc_insertion_point(destructor:Yolov8ProcessParams)
  1007. SharedDtor();
  1008. }
  1009. void Yolov8ProcessParams::SharedDtor() {
  1010. }
  1011. void Yolov8ProcessParams::SetCachedSize(int size) const {
  1012. _cached_size_.Set(size);
  1013. }
  1014. const ::google::protobuf::Descriptor* Yolov8ProcessParams::descriptor() {
  1015. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1016. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1017. }
  1018. const Yolov8ProcessParams& Yolov8ProcessParams::default_instance() {
  1019. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_Yolov8ProcessParams.base);
  1020. return *internal_default_instance();
  1021. }
  1022. void Yolov8ProcessParams::Clear() {
  1023. // @@protoc_insertion_point(message_clear_start:Yolov8ProcessParams)
  1024. ::google::protobuf::uint32 cached_has_bits = 0;
  1025. // Prevent compiler warnings about cached_has_bits being unused
  1026. (void) cached_has_bits;
  1027. ::memset(&save_mat_, 0, static_cast<size_t>(
  1028. reinterpret_cast<char*>(&draw_rect_) -
  1029. reinterpret_cast<char*>(&save_mat_)) + sizeof(draw_rect_));
  1030. cached_has_bits = _has_bits_[0];
  1031. if (cached_has_bits & 28u) {
  1032. save_aspect_ratio_max_ = 1.1f;
  1033. save_confidence_ = 0.8f;
  1034. save_aspect_ratio_min_ = 0.9f;
  1035. }
  1036. _has_bits_.Clear();
  1037. _internal_metadata_.Clear();
  1038. }
  1039. bool Yolov8ProcessParams::MergePartialFromCodedStream(
  1040. ::google::protobuf::io::CodedInputStream* input) {
  1041. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1042. ::google::protobuf::uint32 tag;
  1043. // @@protoc_insertion_point(parse_start:Yolov8ProcessParams)
  1044. for (;;) {
  1045. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1046. tag = p.first;
  1047. if (!p.second) goto handle_unusual;
  1048. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1049. // optional bool save_mat = 1 [default = false];
  1050. case 1: {
  1051. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1052. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1053. set_has_save_mat();
  1054. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1055. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1056. input, &save_mat_)));
  1057. } else {
  1058. goto handle_unusual;
  1059. }
  1060. break;
  1061. }
  1062. // optional bool draw_rect = 2 [default = false];
  1063. case 2: {
  1064. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1065. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1066. set_has_draw_rect();
  1067. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1068. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1069. input, &draw_rect_)));
  1070. } else {
  1071. goto handle_unusual;
  1072. }
  1073. break;
  1074. }
  1075. // optional float save_confidence = 3 [default = 0.8];
  1076. case 3: {
  1077. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1078. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1079. set_has_save_confidence();
  1080. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1081. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1082. input, &save_confidence_)));
  1083. } else {
  1084. goto handle_unusual;
  1085. }
  1086. break;
  1087. }
  1088. // optional float save_aspect_ratio_min = 4 [default = 0.9];
  1089. case 4: {
  1090. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1091. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1092. set_has_save_aspect_ratio_min();
  1093. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1094. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1095. input, &save_aspect_ratio_min_)));
  1096. } else {
  1097. goto handle_unusual;
  1098. }
  1099. break;
  1100. }
  1101. // optional float save_aspect_ratio_max = 5 [default = 1.1];
  1102. case 5: {
  1103. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1104. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1105. set_has_save_aspect_ratio_max();
  1106. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1107. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1108. input, &save_aspect_ratio_max_)));
  1109. } else {
  1110. goto handle_unusual;
  1111. }
  1112. break;
  1113. }
  1114. default: {
  1115. handle_unusual:
  1116. if (tag == 0) {
  1117. goto success;
  1118. }
  1119. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1120. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1121. break;
  1122. }
  1123. }
  1124. }
  1125. success:
  1126. // @@protoc_insertion_point(parse_success:Yolov8ProcessParams)
  1127. return true;
  1128. failure:
  1129. // @@protoc_insertion_point(parse_failure:Yolov8ProcessParams)
  1130. return false;
  1131. #undef DO_
  1132. }
  1133. void Yolov8ProcessParams::SerializeWithCachedSizes(
  1134. ::google::protobuf::io::CodedOutputStream* output) const {
  1135. // @@protoc_insertion_point(serialize_start:Yolov8ProcessParams)
  1136. ::google::protobuf::uint32 cached_has_bits = 0;
  1137. (void) cached_has_bits;
  1138. cached_has_bits = _has_bits_[0];
  1139. // optional bool save_mat = 1 [default = false];
  1140. if (cached_has_bits & 0x00000001u) {
  1141. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->save_mat(), output);
  1142. }
  1143. // optional bool draw_rect = 2 [default = false];
  1144. if (cached_has_bits & 0x00000002u) {
  1145. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->draw_rect(), output);
  1146. }
  1147. // optional float save_confidence = 3 [default = 0.8];
  1148. if (cached_has_bits & 0x00000008u) {
  1149. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->save_confidence(), output);
  1150. }
  1151. // optional float save_aspect_ratio_min = 4 [default = 0.9];
  1152. if (cached_has_bits & 0x00000010u) {
  1153. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->save_aspect_ratio_min(), output);
  1154. }
  1155. // optional float save_aspect_ratio_max = 5 [default = 1.1];
  1156. if (cached_has_bits & 0x00000004u) {
  1157. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->save_aspect_ratio_max(), output);
  1158. }
  1159. if (_internal_metadata_.have_unknown_fields()) {
  1160. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1161. _internal_metadata_.unknown_fields(), output);
  1162. }
  1163. // @@protoc_insertion_point(serialize_end:Yolov8ProcessParams)
  1164. }
  1165. ::google::protobuf::uint8* Yolov8ProcessParams::InternalSerializeWithCachedSizesToArray(
  1166. bool deterministic, ::google::protobuf::uint8* target) const {
  1167. (void)deterministic; // Unused
  1168. // @@protoc_insertion_point(serialize_to_array_start:Yolov8ProcessParams)
  1169. ::google::protobuf::uint32 cached_has_bits = 0;
  1170. (void) cached_has_bits;
  1171. cached_has_bits = _has_bits_[0];
  1172. // optional bool save_mat = 1 [default = false];
  1173. if (cached_has_bits & 0x00000001u) {
  1174. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->save_mat(), target);
  1175. }
  1176. // optional bool draw_rect = 2 [default = false];
  1177. if (cached_has_bits & 0x00000002u) {
  1178. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->draw_rect(), target);
  1179. }
  1180. // optional float save_confidence = 3 [default = 0.8];
  1181. if (cached_has_bits & 0x00000008u) {
  1182. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->save_confidence(), target);
  1183. }
  1184. // optional float save_aspect_ratio_min = 4 [default = 0.9];
  1185. if (cached_has_bits & 0x00000010u) {
  1186. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->save_aspect_ratio_min(), target);
  1187. }
  1188. // optional float save_aspect_ratio_max = 5 [default = 1.1];
  1189. if (cached_has_bits & 0x00000004u) {
  1190. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->save_aspect_ratio_max(), target);
  1191. }
  1192. if (_internal_metadata_.have_unknown_fields()) {
  1193. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1194. _internal_metadata_.unknown_fields(), target);
  1195. }
  1196. // @@protoc_insertion_point(serialize_to_array_end:Yolov8ProcessParams)
  1197. return target;
  1198. }
  1199. size_t Yolov8ProcessParams::ByteSizeLong() const {
  1200. // @@protoc_insertion_point(message_byte_size_start:Yolov8ProcessParams)
  1201. size_t total_size = 0;
  1202. if (_internal_metadata_.have_unknown_fields()) {
  1203. total_size +=
  1204. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1205. _internal_metadata_.unknown_fields());
  1206. }
  1207. if (_has_bits_[0 / 32] & 31u) {
  1208. // optional bool save_mat = 1 [default = false];
  1209. if (has_save_mat()) {
  1210. total_size += 1 + 1;
  1211. }
  1212. // optional bool draw_rect = 2 [default = false];
  1213. if (has_draw_rect()) {
  1214. total_size += 1 + 1;
  1215. }
  1216. // optional float save_aspect_ratio_max = 5 [default = 1.1];
  1217. if (has_save_aspect_ratio_max()) {
  1218. total_size += 1 + 4;
  1219. }
  1220. // optional float save_confidence = 3 [default = 0.8];
  1221. if (has_save_confidence()) {
  1222. total_size += 1 + 4;
  1223. }
  1224. // optional float save_aspect_ratio_min = 4 [default = 0.9];
  1225. if (has_save_aspect_ratio_min()) {
  1226. total_size += 1 + 4;
  1227. }
  1228. }
  1229. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1230. SetCachedSize(cached_size);
  1231. return total_size;
  1232. }
  1233. void Yolov8ProcessParams::MergeFrom(const ::google::protobuf::Message& from) {
  1234. // @@protoc_insertion_point(generalized_merge_from_start:Yolov8ProcessParams)
  1235. GOOGLE_DCHECK_NE(&from, this);
  1236. const Yolov8ProcessParams* source =
  1237. ::google::protobuf::internal::DynamicCastToGenerated<const Yolov8ProcessParams>(
  1238. &from);
  1239. if (source == NULL) {
  1240. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Yolov8ProcessParams)
  1241. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1242. } else {
  1243. // @@protoc_insertion_point(generalized_merge_from_cast_success:Yolov8ProcessParams)
  1244. MergeFrom(*source);
  1245. }
  1246. }
  1247. void Yolov8ProcessParams::MergeFrom(const Yolov8ProcessParams& from) {
  1248. // @@protoc_insertion_point(class_specific_merge_from_start:Yolov8ProcessParams)
  1249. GOOGLE_DCHECK_NE(&from, this);
  1250. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1251. ::google::protobuf::uint32 cached_has_bits = 0;
  1252. (void) cached_has_bits;
  1253. cached_has_bits = from._has_bits_[0];
  1254. if (cached_has_bits & 31u) {
  1255. if (cached_has_bits & 0x00000001u) {
  1256. save_mat_ = from.save_mat_;
  1257. }
  1258. if (cached_has_bits & 0x00000002u) {
  1259. draw_rect_ = from.draw_rect_;
  1260. }
  1261. if (cached_has_bits & 0x00000004u) {
  1262. save_aspect_ratio_max_ = from.save_aspect_ratio_max_;
  1263. }
  1264. if (cached_has_bits & 0x00000008u) {
  1265. save_confidence_ = from.save_confidence_;
  1266. }
  1267. if (cached_has_bits & 0x00000010u) {
  1268. save_aspect_ratio_min_ = from.save_aspect_ratio_min_;
  1269. }
  1270. _has_bits_[0] |= cached_has_bits;
  1271. }
  1272. }
  1273. void Yolov8ProcessParams::CopyFrom(const ::google::protobuf::Message& from) {
  1274. // @@protoc_insertion_point(generalized_copy_from_start:Yolov8ProcessParams)
  1275. if (&from == this) return;
  1276. Clear();
  1277. MergeFrom(from);
  1278. }
  1279. void Yolov8ProcessParams::CopyFrom(const Yolov8ProcessParams& from) {
  1280. // @@protoc_insertion_point(class_specific_copy_from_start:Yolov8ProcessParams)
  1281. if (&from == this) return;
  1282. Clear();
  1283. MergeFrom(from);
  1284. }
  1285. bool Yolov8ProcessParams::IsInitialized() const {
  1286. return true;
  1287. }
  1288. void Yolov8ProcessParams::Swap(Yolov8ProcessParams* other) {
  1289. if (other == this) return;
  1290. InternalSwap(other);
  1291. }
  1292. void Yolov8ProcessParams::InternalSwap(Yolov8ProcessParams* other) {
  1293. using std::swap;
  1294. swap(save_mat_, other->save_mat_);
  1295. swap(draw_rect_, other->draw_rect_);
  1296. swap(save_aspect_ratio_max_, other->save_aspect_ratio_max_);
  1297. swap(save_confidence_, other->save_confidence_);
  1298. swap(save_aspect_ratio_min_, other->save_aspect_ratio_min_);
  1299. swap(_has_bits_[0], other->_has_bits_[0]);
  1300. _internal_metadata_.Swap(&other->_internal_metadata_);
  1301. }
  1302. ::google::protobuf::Metadata Yolov8ProcessParams::GetMetadata() const {
  1303. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1304. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1305. }
  1306. // ===================================================================
  1307. void RabbitmqCommunicationParams::InitAsDefaultInstance() {
  1308. }
  1309. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1310. const int RabbitmqCommunicationParams::kEnableRabbitmqFieldNumber;
  1311. const int RabbitmqCommunicationParams::kRabbitmqExFieldNumber;
  1312. const int RabbitmqCommunicationParams::kRabbitmqRouteKeyFieldNumber;
  1313. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1314. RabbitmqCommunicationParams::RabbitmqCommunicationParams()
  1315. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1316. ::google::protobuf::internal::InitSCC(
  1317. &protobuf_tof3d_5fconfig_2eproto::scc_info_RabbitmqCommunicationParams.base);
  1318. SharedCtor();
  1319. // @@protoc_insertion_point(constructor:RabbitmqCommunicationParams)
  1320. }
  1321. RabbitmqCommunicationParams::RabbitmqCommunicationParams(const RabbitmqCommunicationParams& from)
  1322. : ::google::protobuf::Message(),
  1323. _internal_metadata_(NULL),
  1324. _has_bits_(from._has_bits_) {
  1325. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1326. rabbitmq_ex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1327. if (from.has_rabbitmq_ex()) {
  1328. rabbitmq_ex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_ex_);
  1329. }
  1330. rabbitmq_route_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1331. if (from.has_rabbitmq_route_key()) {
  1332. rabbitmq_route_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_route_key_);
  1333. }
  1334. enable_rabbitmq_ = from.enable_rabbitmq_;
  1335. // @@protoc_insertion_point(copy_constructor:RabbitmqCommunicationParams)
  1336. }
  1337. void RabbitmqCommunicationParams::SharedCtor() {
  1338. rabbitmq_ex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1339. rabbitmq_route_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1340. enable_rabbitmq_ = false;
  1341. }
  1342. RabbitmqCommunicationParams::~RabbitmqCommunicationParams() {
  1343. // @@protoc_insertion_point(destructor:RabbitmqCommunicationParams)
  1344. SharedDtor();
  1345. }
  1346. void RabbitmqCommunicationParams::SharedDtor() {
  1347. rabbitmq_ex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1348. rabbitmq_route_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1349. }
  1350. void RabbitmqCommunicationParams::SetCachedSize(int size) const {
  1351. _cached_size_.Set(size);
  1352. }
  1353. const ::google::protobuf::Descriptor* RabbitmqCommunicationParams::descriptor() {
  1354. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1355. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1356. }
  1357. const RabbitmqCommunicationParams& RabbitmqCommunicationParams::default_instance() {
  1358. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_RabbitmqCommunicationParams.base);
  1359. return *internal_default_instance();
  1360. }
  1361. void RabbitmqCommunicationParams::Clear() {
  1362. // @@protoc_insertion_point(message_clear_start:RabbitmqCommunicationParams)
  1363. ::google::protobuf::uint32 cached_has_bits = 0;
  1364. // Prevent compiler warnings about cached_has_bits being unused
  1365. (void) cached_has_bits;
  1366. cached_has_bits = _has_bits_[0];
  1367. if (cached_has_bits & 3u) {
  1368. if (cached_has_bits & 0x00000001u) {
  1369. rabbitmq_ex_.ClearNonDefaultToEmptyNoArena();
  1370. }
  1371. if (cached_has_bits & 0x00000002u) {
  1372. rabbitmq_route_key_.ClearNonDefaultToEmptyNoArena();
  1373. }
  1374. }
  1375. enable_rabbitmq_ = false;
  1376. _has_bits_.Clear();
  1377. _internal_metadata_.Clear();
  1378. }
  1379. bool RabbitmqCommunicationParams::MergePartialFromCodedStream(
  1380. ::google::protobuf::io::CodedInputStream* input) {
  1381. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1382. ::google::protobuf::uint32 tag;
  1383. // @@protoc_insertion_point(parse_start:RabbitmqCommunicationParams)
  1384. for (;;) {
  1385. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1386. tag = p.first;
  1387. if (!p.second) goto handle_unusual;
  1388. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1389. // required bool enable_rabbitmq = 4;
  1390. case 4: {
  1391. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1392. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1393. set_has_enable_rabbitmq();
  1394. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1395. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1396. input, &enable_rabbitmq_)));
  1397. } else {
  1398. goto handle_unusual;
  1399. }
  1400. break;
  1401. }
  1402. // required string rabbitmq_ex = 5;
  1403. case 5: {
  1404. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1405. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1406. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1407. input, this->mutable_rabbitmq_ex()));
  1408. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1409. this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
  1410. ::google::protobuf::internal::WireFormat::PARSE,
  1411. "RabbitmqCommunicationParams.rabbitmq_ex");
  1412. } else {
  1413. goto handle_unusual;
  1414. }
  1415. break;
  1416. }
  1417. // required string rabbitmq_route_key = 6;
  1418. case 6: {
  1419. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1420. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1421. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1422. input, this->mutable_rabbitmq_route_key()));
  1423. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1424. this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
  1425. ::google::protobuf::internal::WireFormat::PARSE,
  1426. "RabbitmqCommunicationParams.rabbitmq_route_key");
  1427. } else {
  1428. goto handle_unusual;
  1429. }
  1430. break;
  1431. }
  1432. default: {
  1433. handle_unusual:
  1434. if (tag == 0) {
  1435. goto success;
  1436. }
  1437. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1438. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1439. break;
  1440. }
  1441. }
  1442. }
  1443. success:
  1444. // @@protoc_insertion_point(parse_success:RabbitmqCommunicationParams)
  1445. return true;
  1446. failure:
  1447. // @@protoc_insertion_point(parse_failure:RabbitmqCommunicationParams)
  1448. return false;
  1449. #undef DO_
  1450. }
  1451. void RabbitmqCommunicationParams::SerializeWithCachedSizes(
  1452. ::google::protobuf::io::CodedOutputStream* output) const {
  1453. // @@protoc_insertion_point(serialize_start:RabbitmqCommunicationParams)
  1454. ::google::protobuf::uint32 cached_has_bits = 0;
  1455. (void) cached_has_bits;
  1456. cached_has_bits = _has_bits_[0];
  1457. // required bool enable_rabbitmq = 4;
  1458. if (cached_has_bits & 0x00000004u) {
  1459. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->enable_rabbitmq(), output);
  1460. }
  1461. // required string rabbitmq_ex = 5;
  1462. if (cached_has_bits & 0x00000001u) {
  1463. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1464. this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
  1465. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1466. "RabbitmqCommunicationParams.rabbitmq_ex");
  1467. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1468. 5, this->rabbitmq_ex(), output);
  1469. }
  1470. // required string rabbitmq_route_key = 6;
  1471. if (cached_has_bits & 0x00000002u) {
  1472. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1473. this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
  1474. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1475. "RabbitmqCommunicationParams.rabbitmq_route_key");
  1476. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1477. 6, this->rabbitmq_route_key(), output);
  1478. }
  1479. if (_internal_metadata_.have_unknown_fields()) {
  1480. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1481. _internal_metadata_.unknown_fields(), output);
  1482. }
  1483. // @@protoc_insertion_point(serialize_end:RabbitmqCommunicationParams)
  1484. }
  1485. ::google::protobuf::uint8* RabbitmqCommunicationParams::InternalSerializeWithCachedSizesToArray(
  1486. bool deterministic, ::google::protobuf::uint8* target) const {
  1487. (void)deterministic; // Unused
  1488. // @@protoc_insertion_point(serialize_to_array_start:RabbitmqCommunicationParams)
  1489. ::google::protobuf::uint32 cached_has_bits = 0;
  1490. (void) cached_has_bits;
  1491. cached_has_bits = _has_bits_[0];
  1492. // required bool enable_rabbitmq = 4;
  1493. if (cached_has_bits & 0x00000004u) {
  1494. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->enable_rabbitmq(), target);
  1495. }
  1496. // required string rabbitmq_ex = 5;
  1497. if (cached_has_bits & 0x00000001u) {
  1498. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1499. this->rabbitmq_ex().data(), static_cast<int>(this->rabbitmq_ex().length()),
  1500. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1501. "RabbitmqCommunicationParams.rabbitmq_ex");
  1502. target =
  1503. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1504. 5, this->rabbitmq_ex(), target);
  1505. }
  1506. // required string rabbitmq_route_key = 6;
  1507. if (cached_has_bits & 0x00000002u) {
  1508. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1509. this->rabbitmq_route_key().data(), static_cast<int>(this->rabbitmq_route_key().length()),
  1510. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1511. "RabbitmqCommunicationParams.rabbitmq_route_key");
  1512. target =
  1513. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1514. 6, this->rabbitmq_route_key(), target);
  1515. }
  1516. if (_internal_metadata_.have_unknown_fields()) {
  1517. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1518. _internal_metadata_.unknown_fields(), target);
  1519. }
  1520. // @@protoc_insertion_point(serialize_to_array_end:RabbitmqCommunicationParams)
  1521. return target;
  1522. }
  1523. size_t RabbitmqCommunicationParams::RequiredFieldsByteSizeFallback() const {
  1524. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:RabbitmqCommunicationParams)
  1525. size_t total_size = 0;
  1526. if (has_rabbitmq_ex()) {
  1527. // required string rabbitmq_ex = 5;
  1528. total_size += 1 +
  1529. ::google::protobuf::internal::WireFormatLite::StringSize(
  1530. this->rabbitmq_ex());
  1531. }
  1532. if (has_rabbitmq_route_key()) {
  1533. // required string rabbitmq_route_key = 6;
  1534. total_size += 1 +
  1535. ::google::protobuf::internal::WireFormatLite::StringSize(
  1536. this->rabbitmq_route_key());
  1537. }
  1538. if (has_enable_rabbitmq()) {
  1539. // required bool enable_rabbitmq = 4;
  1540. total_size += 1 + 1;
  1541. }
  1542. return total_size;
  1543. }
  1544. size_t RabbitmqCommunicationParams::ByteSizeLong() const {
  1545. // @@protoc_insertion_point(message_byte_size_start:RabbitmqCommunicationParams)
  1546. size_t total_size = 0;
  1547. if (_internal_metadata_.have_unknown_fields()) {
  1548. total_size +=
  1549. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1550. _internal_metadata_.unknown_fields());
  1551. }
  1552. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1553. // required string rabbitmq_ex = 5;
  1554. total_size += 1 +
  1555. ::google::protobuf::internal::WireFormatLite::StringSize(
  1556. this->rabbitmq_ex());
  1557. // required string rabbitmq_route_key = 6;
  1558. total_size += 1 +
  1559. ::google::protobuf::internal::WireFormatLite::StringSize(
  1560. this->rabbitmq_route_key());
  1561. // required bool enable_rabbitmq = 4;
  1562. total_size += 1 + 1;
  1563. } else {
  1564. total_size += RequiredFieldsByteSizeFallback();
  1565. }
  1566. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1567. SetCachedSize(cached_size);
  1568. return total_size;
  1569. }
  1570. void RabbitmqCommunicationParams::MergeFrom(const ::google::protobuf::Message& from) {
  1571. // @@protoc_insertion_point(generalized_merge_from_start:RabbitmqCommunicationParams)
  1572. GOOGLE_DCHECK_NE(&from, this);
  1573. const RabbitmqCommunicationParams* source =
  1574. ::google::protobuf::internal::DynamicCastToGenerated<const RabbitmqCommunicationParams>(
  1575. &from);
  1576. if (source == NULL) {
  1577. // @@protoc_insertion_point(generalized_merge_from_cast_fail:RabbitmqCommunicationParams)
  1578. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1579. } else {
  1580. // @@protoc_insertion_point(generalized_merge_from_cast_success:RabbitmqCommunicationParams)
  1581. MergeFrom(*source);
  1582. }
  1583. }
  1584. void RabbitmqCommunicationParams::MergeFrom(const RabbitmqCommunicationParams& from) {
  1585. // @@protoc_insertion_point(class_specific_merge_from_start:RabbitmqCommunicationParams)
  1586. GOOGLE_DCHECK_NE(&from, this);
  1587. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1588. ::google::protobuf::uint32 cached_has_bits = 0;
  1589. (void) cached_has_bits;
  1590. cached_has_bits = from._has_bits_[0];
  1591. if (cached_has_bits & 7u) {
  1592. if (cached_has_bits & 0x00000001u) {
  1593. set_has_rabbitmq_ex();
  1594. rabbitmq_ex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_ex_);
  1595. }
  1596. if (cached_has_bits & 0x00000002u) {
  1597. set_has_rabbitmq_route_key();
  1598. rabbitmq_route_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rabbitmq_route_key_);
  1599. }
  1600. if (cached_has_bits & 0x00000004u) {
  1601. enable_rabbitmq_ = from.enable_rabbitmq_;
  1602. }
  1603. _has_bits_[0] |= cached_has_bits;
  1604. }
  1605. }
  1606. void RabbitmqCommunicationParams::CopyFrom(const ::google::protobuf::Message& from) {
  1607. // @@protoc_insertion_point(generalized_copy_from_start:RabbitmqCommunicationParams)
  1608. if (&from == this) return;
  1609. Clear();
  1610. MergeFrom(from);
  1611. }
  1612. void RabbitmqCommunicationParams::CopyFrom(const RabbitmqCommunicationParams& from) {
  1613. // @@protoc_insertion_point(class_specific_copy_from_start:RabbitmqCommunicationParams)
  1614. if (&from == this) return;
  1615. Clear();
  1616. MergeFrom(from);
  1617. }
  1618. bool RabbitmqCommunicationParams::IsInitialized() const {
  1619. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1620. return true;
  1621. }
  1622. void RabbitmqCommunicationParams::Swap(RabbitmqCommunicationParams* other) {
  1623. if (other == this) return;
  1624. InternalSwap(other);
  1625. }
  1626. void RabbitmqCommunicationParams::InternalSwap(RabbitmqCommunicationParams* other) {
  1627. using std::swap;
  1628. rabbitmq_ex_.Swap(&other->rabbitmq_ex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1629. GetArenaNoVirtual());
  1630. rabbitmq_route_key_.Swap(&other->rabbitmq_route_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1631. GetArenaNoVirtual());
  1632. swap(enable_rabbitmq_, other->enable_rabbitmq_);
  1633. swap(_has_bits_[0], other->_has_bits_[0]);
  1634. _internal_metadata_.Swap(&other->_internal_metadata_);
  1635. }
  1636. ::google::protobuf::Metadata RabbitmqCommunicationParams::GetMetadata() const {
  1637. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1638. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1639. }
  1640. // ===================================================================
  1641. void MqttCommunicationParams::InitAsDefaultInstance() {
  1642. }
  1643. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1644. const int MqttCommunicationParams::kEnableMqttFieldNumber;
  1645. const int MqttCommunicationParams::kMqttTopicFieldNumber;
  1646. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1647. MqttCommunicationParams::MqttCommunicationParams()
  1648. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1649. ::google::protobuf::internal::InitSCC(
  1650. &protobuf_tof3d_5fconfig_2eproto::scc_info_MqttCommunicationParams.base);
  1651. SharedCtor();
  1652. // @@protoc_insertion_point(constructor:MqttCommunicationParams)
  1653. }
  1654. MqttCommunicationParams::MqttCommunicationParams(const MqttCommunicationParams& from)
  1655. : ::google::protobuf::Message(),
  1656. _internal_metadata_(NULL),
  1657. _has_bits_(from._has_bits_) {
  1658. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1659. mqtt_topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1660. if (from.has_mqtt_topic()) {
  1661. mqtt_topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mqtt_topic_);
  1662. }
  1663. enable_mqtt_ = from.enable_mqtt_;
  1664. // @@protoc_insertion_point(copy_constructor:MqttCommunicationParams)
  1665. }
  1666. void MqttCommunicationParams::SharedCtor() {
  1667. mqtt_topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1668. enable_mqtt_ = false;
  1669. }
  1670. MqttCommunicationParams::~MqttCommunicationParams() {
  1671. // @@protoc_insertion_point(destructor:MqttCommunicationParams)
  1672. SharedDtor();
  1673. }
  1674. void MqttCommunicationParams::SharedDtor() {
  1675. mqtt_topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1676. }
  1677. void MqttCommunicationParams::SetCachedSize(int size) const {
  1678. _cached_size_.Set(size);
  1679. }
  1680. const ::google::protobuf::Descriptor* MqttCommunicationParams::descriptor() {
  1681. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1682. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1683. }
  1684. const MqttCommunicationParams& MqttCommunicationParams::default_instance() {
  1685. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_MqttCommunicationParams.base);
  1686. return *internal_default_instance();
  1687. }
  1688. void MqttCommunicationParams::Clear() {
  1689. // @@protoc_insertion_point(message_clear_start:MqttCommunicationParams)
  1690. ::google::protobuf::uint32 cached_has_bits = 0;
  1691. // Prevent compiler warnings about cached_has_bits being unused
  1692. (void) cached_has_bits;
  1693. cached_has_bits = _has_bits_[0];
  1694. if (cached_has_bits & 0x00000001u) {
  1695. mqtt_topic_.ClearNonDefaultToEmptyNoArena();
  1696. }
  1697. enable_mqtt_ = false;
  1698. _has_bits_.Clear();
  1699. _internal_metadata_.Clear();
  1700. }
  1701. bool MqttCommunicationParams::MergePartialFromCodedStream(
  1702. ::google::protobuf::io::CodedInputStream* input) {
  1703. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1704. ::google::protobuf::uint32 tag;
  1705. // @@protoc_insertion_point(parse_start:MqttCommunicationParams)
  1706. for (;;) {
  1707. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1708. tag = p.first;
  1709. if (!p.second) goto handle_unusual;
  1710. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1711. // required bool enable_mqtt = 7;
  1712. case 7: {
  1713. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1714. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1715. set_has_enable_mqtt();
  1716. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1717. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1718. input, &enable_mqtt_)));
  1719. } else {
  1720. goto handle_unusual;
  1721. }
  1722. break;
  1723. }
  1724. // required string mqtt_topic = 8;
  1725. case 8: {
  1726. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1727. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1728. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1729. input, this->mutable_mqtt_topic()));
  1730. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1731. this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
  1732. ::google::protobuf::internal::WireFormat::PARSE,
  1733. "MqttCommunicationParams.mqtt_topic");
  1734. } else {
  1735. goto handle_unusual;
  1736. }
  1737. break;
  1738. }
  1739. default: {
  1740. handle_unusual:
  1741. if (tag == 0) {
  1742. goto success;
  1743. }
  1744. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1745. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1746. break;
  1747. }
  1748. }
  1749. }
  1750. success:
  1751. // @@protoc_insertion_point(parse_success:MqttCommunicationParams)
  1752. return true;
  1753. failure:
  1754. // @@protoc_insertion_point(parse_failure:MqttCommunicationParams)
  1755. return false;
  1756. #undef DO_
  1757. }
  1758. void MqttCommunicationParams::SerializeWithCachedSizes(
  1759. ::google::protobuf::io::CodedOutputStream* output) const {
  1760. // @@protoc_insertion_point(serialize_start:MqttCommunicationParams)
  1761. ::google::protobuf::uint32 cached_has_bits = 0;
  1762. (void) cached_has_bits;
  1763. cached_has_bits = _has_bits_[0];
  1764. // required bool enable_mqtt = 7;
  1765. if (cached_has_bits & 0x00000002u) {
  1766. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_mqtt(), output);
  1767. }
  1768. // required string mqtt_topic = 8;
  1769. if (cached_has_bits & 0x00000001u) {
  1770. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1771. this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
  1772. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1773. "MqttCommunicationParams.mqtt_topic");
  1774. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1775. 8, this->mqtt_topic(), output);
  1776. }
  1777. if (_internal_metadata_.have_unknown_fields()) {
  1778. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1779. _internal_metadata_.unknown_fields(), output);
  1780. }
  1781. // @@protoc_insertion_point(serialize_end:MqttCommunicationParams)
  1782. }
  1783. ::google::protobuf::uint8* MqttCommunicationParams::InternalSerializeWithCachedSizesToArray(
  1784. bool deterministic, ::google::protobuf::uint8* target) const {
  1785. (void)deterministic; // Unused
  1786. // @@protoc_insertion_point(serialize_to_array_start:MqttCommunicationParams)
  1787. ::google::protobuf::uint32 cached_has_bits = 0;
  1788. (void) cached_has_bits;
  1789. cached_has_bits = _has_bits_[0];
  1790. // required bool enable_mqtt = 7;
  1791. if (cached_has_bits & 0x00000002u) {
  1792. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_mqtt(), target);
  1793. }
  1794. // required string mqtt_topic = 8;
  1795. if (cached_has_bits & 0x00000001u) {
  1796. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1797. this->mqtt_topic().data(), static_cast<int>(this->mqtt_topic().length()),
  1798. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1799. "MqttCommunicationParams.mqtt_topic");
  1800. target =
  1801. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1802. 8, this->mqtt_topic(), target);
  1803. }
  1804. if (_internal_metadata_.have_unknown_fields()) {
  1805. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1806. _internal_metadata_.unknown_fields(), target);
  1807. }
  1808. // @@protoc_insertion_point(serialize_to_array_end:MqttCommunicationParams)
  1809. return target;
  1810. }
  1811. size_t MqttCommunicationParams::RequiredFieldsByteSizeFallback() const {
  1812. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:MqttCommunicationParams)
  1813. size_t total_size = 0;
  1814. if (has_mqtt_topic()) {
  1815. // required string mqtt_topic = 8;
  1816. total_size += 1 +
  1817. ::google::protobuf::internal::WireFormatLite::StringSize(
  1818. this->mqtt_topic());
  1819. }
  1820. if (has_enable_mqtt()) {
  1821. // required bool enable_mqtt = 7;
  1822. total_size += 1 + 1;
  1823. }
  1824. return total_size;
  1825. }
  1826. size_t MqttCommunicationParams::ByteSizeLong() const {
  1827. // @@protoc_insertion_point(message_byte_size_start:MqttCommunicationParams)
  1828. size_t total_size = 0;
  1829. if (_internal_metadata_.have_unknown_fields()) {
  1830. total_size +=
  1831. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1832. _internal_metadata_.unknown_fields());
  1833. }
  1834. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1835. // required string mqtt_topic = 8;
  1836. total_size += 1 +
  1837. ::google::protobuf::internal::WireFormatLite::StringSize(
  1838. this->mqtt_topic());
  1839. // required bool enable_mqtt = 7;
  1840. total_size += 1 + 1;
  1841. } else {
  1842. total_size += RequiredFieldsByteSizeFallback();
  1843. }
  1844. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1845. SetCachedSize(cached_size);
  1846. return total_size;
  1847. }
  1848. void MqttCommunicationParams::MergeFrom(const ::google::protobuf::Message& from) {
  1849. // @@protoc_insertion_point(generalized_merge_from_start:MqttCommunicationParams)
  1850. GOOGLE_DCHECK_NE(&from, this);
  1851. const MqttCommunicationParams* source =
  1852. ::google::protobuf::internal::DynamicCastToGenerated<const MqttCommunicationParams>(
  1853. &from);
  1854. if (source == NULL) {
  1855. // @@protoc_insertion_point(generalized_merge_from_cast_fail:MqttCommunicationParams)
  1856. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1857. } else {
  1858. // @@protoc_insertion_point(generalized_merge_from_cast_success:MqttCommunicationParams)
  1859. MergeFrom(*source);
  1860. }
  1861. }
  1862. void MqttCommunicationParams::MergeFrom(const MqttCommunicationParams& from) {
  1863. // @@protoc_insertion_point(class_specific_merge_from_start:MqttCommunicationParams)
  1864. GOOGLE_DCHECK_NE(&from, this);
  1865. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1866. ::google::protobuf::uint32 cached_has_bits = 0;
  1867. (void) cached_has_bits;
  1868. cached_has_bits = from._has_bits_[0];
  1869. if (cached_has_bits & 3u) {
  1870. if (cached_has_bits & 0x00000001u) {
  1871. set_has_mqtt_topic();
  1872. mqtt_topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mqtt_topic_);
  1873. }
  1874. if (cached_has_bits & 0x00000002u) {
  1875. enable_mqtt_ = from.enable_mqtt_;
  1876. }
  1877. _has_bits_[0] |= cached_has_bits;
  1878. }
  1879. }
  1880. void MqttCommunicationParams::CopyFrom(const ::google::protobuf::Message& from) {
  1881. // @@protoc_insertion_point(generalized_copy_from_start:MqttCommunicationParams)
  1882. if (&from == this) return;
  1883. Clear();
  1884. MergeFrom(from);
  1885. }
  1886. void MqttCommunicationParams::CopyFrom(const MqttCommunicationParams& from) {
  1887. // @@protoc_insertion_point(class_specific_copy_from_start:MqttCommunicationParams)
  1888. if (&from == this) return;
  1889. Clear();
  1890. MergeFrom(from);
  1891. }
  1892. bool MqttCommunicationParams::IsInitialized() const {
  1893. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1894. return true;
  1895. }
  1896. void MqttCommunicationParams::Swap(MqttCommunicationParams* other) {
  1897. if (other == this) return;
  1898. InternalSwap(other);
  1899. }
  1900. void MqttCommunicationParams::InternalSwap(MqttCommunicationParams* other) {
  1901. using std::swap;
  1902. mqtt_topic_.Swap(&other->mqtt_topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1903. GetArenaNoVirtual());
  1904. swap(enable_mqtt_, other->enable_mqtt_);
  1905. swap(_has_bits_[0], other->_has_bits_[0]);
  1906. _internal_metadata_.Swap(&other->_internal_metadata_);
  1907. }
  1908. ::google::protobuf::Metadata MqttCommunicationParams::GetMetadata() const {
  1909. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1910. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1911. }
  1912. // ===================================================================
  1913. void tof3dVzenseEtc::InitAsDefaultInstance() {
  1914. ::_tof3dVzenseEtc_default_instance_._instance.get_mutable()->bip_ = const_cast< ::Tof3dVzenseBuiltInParams*>(
  1915. ::Tof3dVzenseBuiltInParams::internal_default_instance());
  1916. ::_tof3dVzenseEtc_default_instance_._instance.get_mutable()->yolo_ = const_cast< ::Yolov8ProcessParams*>(
  1917. ::Yolov8ProcessParams::internal_default_instance());
  1918. }
  1919. ::google::protobuf::internal::ExplicitlyConstructed<::std::string> tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_;
  1920. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1921. const int tof3dVzenseEtc::kEnableDeviceFieldNumber;
  1922. const int tof3dVzenseEtc::kIpFieldNumber;
  1923. const int tof3dVzenseEtc::kBipFieldNumber;
  1924. const int tof3dVzenseEtc::kYoloFieldNumber;
  1925. const int tof3dVzenseEtc::kAzimuthFieldNumber;
  1926. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1927. tof3dVzenseEtc::tof3dVzenseEtc()
  1928. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1929. ::google::protobuf::internal::InitSCC(
  1930. &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base);
  1931. SharedCtor();
  1932. // @@protoc_insertion_point(constructor:tof3dVzenseEtc)
  1933. }
  1934. tof3dVzenseEtc::tof3dVzenseEtc(const tof3dVzenseEtc& from)
  1935. : ::google::protobuf::Message(),
  1936. _internal_metadata_(NULL),
  1937. _has_bits_(from._has_bits_) {
  1938. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1939. ip_.UnsafeSetDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
  1940. if (from.has_ip()) {
  1941. ip_.AssignWithDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(), from.ip_);
  1942. }
  1943. if (from.has_bip()) {
  1944. bip_ = new ::Tof3dVzenseBuiltInParams(*from.bip_);
  1945. } else {
  1946. bip_ = NULL;
  1947. }
  1948. if (from.has_yolo()) {
  1949. yolo_ = new ::Yolov8ProcessParams(*from.yolo_);
  1950. } else {
  1951. yolo_ = NULL;
  1952. }
  1953. ::memcpy(&enable_device_, &from.enable_device_,
  1954. static_cast<size_t>(reinterpret_cast<char*>(&azimuth_) -
  1955. reinterpret_cast<char*>(&enable_device_)) + sizeof(azimuth_));
  1956. // @@protoc_insertion_point(copy_constructor:tof3dVzenseEtc)
  1957. }
  1958. void tof3dVzenseEtc::SharedCtor() {
  1959. ip_.UnsafeSetDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
  1960. ::memset(&bip_, 0, static_cast<size_t>(
  1961. reinterpret_cast<char*>(&enable_device_) -
  1962. reinterpret_cast<char*>(&bip_)) + sizeof(enable_device_));
  1963. azimuth_ = 1;
  1964. }
  1965. tof3dVzenseEtc::~tof3dVzenseEtc() {
  1966. // @@protoc_insertion_point(destructor:tof3dVzenseEtc)
  1967. SharedDtor();
  1968. }
  1969. void tof3dVzenseEtc::SharedDtor() {
  1970. ip_.DestroyNoArena(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
  1971. if (this != internal_default_instance()) delete bip_;
  1972. if (this != internal_default_instance()) delete yolo_;
  1973. }
  1974. void tof3dVzenseEtc::SetCachedSize(int size) const {
  1975. _cached_size_.Set(size);
  1976. }
  1977. const ::google::protobuf::Descriptor* tof3dVzenseEtc::descriptor() {
  1978. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1979. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1980. }
  1981. const tof3dVzenseEtc& tof3dVzenseEtc::default_instance() {
  1982. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dVzenseEtc.base);
  1983. return *internal_default_instance();
  1984. }
  1985. void tof3dVzenseEtc::Clear() {
  1986. // @@protoc_insertion_point(message_clear_start:tof3dVzenseEtc)
  1987. ::google::protobuf::uint32 cached_has_bits = 0;
  1988. // Prevent compiler warnings about cached_has_bits being unused
  1989. (void) cached_has_bits;
  1990. cached_has_bits = _has_bits_[0];
  1991. if (cached_has_bits & 7u) {
  1992. if (cached_has_bits & 0x00000001u) {
  1993. ip_.UnsafeMutablePointer()->assign(*&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get());
  1994. }
  1995. if (cached_has_bits & 0x00000002u) {
  1996. GOOGLE_DCHECK(bip_ != NULL);
  1997. bip_->Clear();
  1998. }
  1999. if (cached_has_bits & 0x00000004u) {
  2000. GOOGLE_DCHECK(yolo_ != NULL);
  2001. yolo_->Clear();
  2002. }
  2003. }
  2004. if (cached_has_bits & 24u) {
  2005. enable_device_ = false;
  2006. azimuth_ = 1;
  2007. }
  2008. _has_bits_.Clear();
  2009. _internal_metadata_.Clear();
  2010. }
  2011. bool tof3dVzenseEtc::MergePartialFromCodedStream(
  2012. ::google::protobuf::io::CodedInputStream* input) {
  2013. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2014. ::google::protobuf::uint32 tag;
  2015. // @@protoc_insertion_point(parse_start:tof3dVzenseEtc)
  2016. for (;;) {
  2017. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2018. tag = p.first;
  2019. if (!p.second) goto handle_unusual;
  2020. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2021. // required bool enable_device = 1;
  2022. case 1: {
  2023. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2024. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2025. set_has_enable_device();
  2026. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2027. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  2028. input, &enable_device_)));
  2029. } else {
  2030. goto handle_unusual;
  2031. }
  2032. break;
  2033. }
  2034. // required string ip = 2 [default = "192.168.1.101"];
  2035. case 2: {
  2036. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2037. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2038. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2039. input, this->mutable_ip()));
  2040. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2041. this->ip().data(), static_cast<int>(this->ip().length()),
  2042. ::google::protobuf::internal::WireFormat::PARSE,
  2043. "tof3dVzenseEtc.ip");
  2044. } else {
  2045. goto handle_unusual;
  2046. }
  2047. break;
  2048. }
  2049. // required .Tof3dVzenseBuiltInParams bip = 4;
  2050. case 4: {
  2051. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2052. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2053. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2054. input, mutable_bip()));
  2055. } else {
  2056. goto handle_unusual;
  2057. }
  2058. break;
  2059. }
  2060. // required .Yolov8ProcessParams yolo = 5;
  2061. case 5: {
  2062. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2063. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  2064. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2065. input, mutable_yolo()));
  2066. } else {
  2067. goto handle_unusual;
  2068. }
  2069. break;
  2070. }
  2071. // required .DeviceAzimuth azimuth = 6;
  2072. case 6: {
  2073. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2074. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2075. int value;
  2076. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2077. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2078. input, &value)));
  2079. if (::DeviceAzimuth_IsValid(value)) {
  2080. set_azimuth(static_cast< ::DeviceAzimuth >(value));
  2081. } else {
  2082. mutable_unknown_fields()->AddVarint(
  2083. 6, static_cast< ::google::protobuf::uint64>(value));
  2084. }
  2085. } else {
  2086. goto handle_unusual;
  2087. }
  2088. break;
  2089. }
  2090. default: {
  2091. handle_unusual:
  2092. if (tag == 0) {
  2093. goto success;
  2094. }
  2095. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2096. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2097. break;
  2098. }
  2099. }
  2100. }
  2101. success:
  2102. // @@protoc_insertion_point(parse_success:tof3dVzenseEtc)
  2103. return true;
  2104. failure:
  2105. // @@protoc_insertion_point(parse_failure:tof3dVzenseEtc)
  2106. return false;
  2107. #undef DO_
  2108. }
  2109. void tof3dVzenseEtc::SerializeWithCachedSizes(
  2110. ::google::protobuf::io::CodedOutputStream* output) const {
  2111. // @@protoc_insertion_point(serialize_start:tof3dVzenseEtc)
  2112. ::google::protobuf::uint32 cached_has_bits = 0;
  2113. (void) cached_has_bits;
  2114. cached_has_bits = _has_bits_[0];
  2115. // required bool enable_device = 1;
  2116. if (cached_has_bits & 0x00000008u) {
  2117. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable_device(), output);
  2118. }
  2119. // required string ip = 2 [default = "192.168.1.101"];
  2120. if (cached_has_bits & 0x00000001u) {
  2121. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2122. this->ip().data(), static_cast<int>(this->ip().length()),
  2123. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2124. "tof3dVzenseEtc.ip");
  2125. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2126. 2, this->ip(), output);
  2127. }
  2128. // required .Tof3dVzenseBuiltInParams bip = 4;
  2129. if (cached_has_bits & 0x00000002u) {
  2130. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2131. 4, this->_internal_bip(), output);
  2132. }
  2133. // required .Yolov8ProcessParams yolo = 5;
  2134. if (cached_has_bits & 0x00000004u) {
  2135. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2136. 5, this->_internal_yolo(), output);
  2137. }
  2138. // required .DeviceAzimuth azimuth = 6;
  2139. if (cached_has_bits & 0x00000010u) {
  2140. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2141. 6, this->azimuth(), output);
  2142. }
  2143. if (_internal_metadata_.have_unknown_fields()) {
  2144. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2145. _internal_metadata_.unknown_fields(), output);
  2146. }
  2147. // @@protoc_insertion_point(serialize_end:tof3dVzenseEtc)
  2148. }
  2149. ::google::protobuf::uint8* tof3dVzenseEtc::InternalSerializeWithCachedSizesToArray(
  2150. bool deterministic, ::google::protobuf::uint8* target) const {
  2151. (void)deterministic; // Unused
  2152. // @@protoc_insertion_point(serialize_to_array_start:tof3dVzenseEtc)
  2153. ::google::protobuf::uint32 cached_has_bits = 0;
  2154. (void) cached_has_bits;
  2155. cached_has_bits = _has_bits_[0];
  2156. // required bool enable_device = 1;
  2157. if (cached_has_bits & 0x00000008u) {
  2158. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable_device(), target);
  2159. }
  2160. // required string ip = 2 [default = "192.168.1.101"];
  2161. if (cached_has_bits & 0x00000001u) {
  2162. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2163. this->ip().data(), static_cast<int>(this->ip().length()),
  2164. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2165. "tof3dVzenseEtc.ip");
  2166. target =
  2167. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2168. 2, this->ip(), target);
  2169. }
  2170. // required .Tof3dVzenseBuiltInParams bip = 4;
  2171. if (cached_has_bits & 0x00000002u) {
  2172. target = ::google::protobuf::internal::WireFormatLite::
  2173. InternalWriteMessageToArray(
  2174. 4, this->_internal_bip(), deterministic, target);
  2175. }
  2176. // required .Yolov8ProcessParams yolo = 5;
  2177. if (cached_has_bits & 0x00000004u) {
  2178. target = ::google::protobuf::internal::WireFormatLite::
  2179. InternalWriteMessageToArray(
  2180. 5, this->_internal_yolo(), deterministic, target);
  2181. }
  2182. // required .DeviceAzimuth azimuth = 6;
  2183. if (cached_has_bits & 0x00000010u) {
  2184. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2185. 6, this->azimuth(), target);
  2186. }
  2187. if (_internal_metadata_.have_unknown_fields()) {
  2188. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2189. _internal_metadata_.unknown_fields(), target);
  2190. }
  2191. // @@protoc_insertion_point(serialize_to_array_end:tof3dVzenseEtc)
  2192. return target;
  2193. }
  2194. size_t tof3dVzenseEtc::RequiredFieldsByteSizeFallback() const {
  2195. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:tof3dVzenseEtc)
  2196. size_t total_size = 0;
  2197. if (has_ip()) {
  2198. // required string ip = 2 [default = "192.168.1.101"];
  2199. total_size += 1 +
  2200. ::google::protobuf::internal::WireFormatLite::StringSize(
  2201. this->ip());
  2202. }
  2203. if (has_bip()) {
  2204. // required .Tof3dVzenseBuiltInParams bip = 4;
  2205. total_size += 1 +
  2206. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2207. *bip_);
  2208. }
  2209. if (has_yolo()) {
  2210. // required .Yolov8ProcessParams yolo = 5;
  2211. total_size += 1 +
  2212. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2213. *yolo_);
  2214. }
  2215. if (has_enable_device()) {
  2216. // required bool enable_device = 1;
  2217. total_size += 1 + 1;
  2218. }
  2219. if (has_azimuth()) {
  2220. // required .DeviceAzimuth azimuth = 6;
  2221. total_size += 1 +
  2222. ::google::protobuf::internal::WireFormatLite::EnumSize(this->azimuth());
  2223. }
  2224. return total_size;
  2225. }
  2226. size_t tof3dVzenseEtc::ByteSizeLong() const {
  2227. // @@protoc_insertion_point(message_byte_size_start:tof3dVzenseEtc)
  2228. size_t total_size = 0;
  2229. if (_internal_metadata_.have_unknown_fields()) {
  2230. total_size +=
  2231. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2232. _internal_metadata_.unknown_fields());
  2233. }
  2234. if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present.
  2235. // required string ip = 2 [default = "192.168.1.101"];
  2236. total_size += 1 +
  2237. ::google::protobuf::internal::WireFormatLite::StringSize(
  2238. this->ip());
  2239. // required .Tof3dVzenseBuiltInParams bip = 4;
  2240. total_size += 1 +
  2241. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2242. *bip_);
  2243. // required .Yolov8ProcessParams yolo = 5;
  2244. total_size += 1 +
  2245. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2246. *yolo_);
  2247. // required bool enable_device = 1;
  2248. total_size += 1 + 1;
  2249. // required .DeviceAzimuth azimuth = 6;
  2250. total_size += 1 +
  2251. ::google::protobuf::internal::WireFormatLite::EnumSize(this->azimuth());
  2252. } else {
  2253. total_size += RequiredFieldsByteSizeFallback();
  2254. }
  2255. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2256. SetCachedSize(cached_size);
  2257. return total_size;
  2258. }
  2259. void tof3dVzenseEtc::MergeFrom(const ::google::protobuf::Message& from) {
  2260. // @@protoc_insertion_point(generalized_merge_from_start:tof3dVzenseEtc)
  2261. GOOGLE_DCHECK_NE(&from, this);
  2262. const tof3dVzenseEtc* source =
  2263. ::google::protobuf::internal::DynamicCastToGenerated<const tof3dVzenseEtc>(
  2264. &from);
  2265. if (source == NULL) {
  2266. // @@protoc_insertion_point(generalized_merge_from_cast_fail:tof3dVzenseEtc)
  2267. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2268. } else {
  2269. // @@protoc_insertion_point(generalized_merge_from_cast_success:tof3dVzenseEtc)
  2270. MergeFrom(*source);
  2271. }
  2272. }
  2273. void tof3dVzenseEtc::MergeFrom(const tof3dVzenseEtc& from) {
  2274. // @@protoc_insertion_point(class_specific_merge_from_start:tof3dVzenseEtc)
  2275. GOOGLE_DCHECK_NE(&from, this);
  2276. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2277. ::google::protobuf::uint32 cached_has_bits = 0;
  2278. (void) cached_has_bits;
  2279. cached_has_bits = from._has_bits_[0];
  2280. if (cached_has_bits & 31u) {
  2281. if (cached_has_bits & 0x00000001u) {
  2282. set_has_ip();
  2283. ip_.AssignWithDefault(&::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(), from.ip_);
  2284. }
  2285. if (cached_has_bits & 0x00000002u) {
  2286. mutable_bip()->::Tof3dVzenseBuiltInParams::MergeFrom(from.bip());
  2287. }
  2288. if (cached_has_bits & 0x00000004u) {
  2289. mutable_yolo()->::Yolov8ProcessParams::MergeFrom(from.yolo());
  2290. }
  2291. if (cached_has_bits & 0x00000008u) {
  2292. enable_device_ = from.enable_device_;
  2293. }
  2294. if (cached_has_bits & 0x00000010u) {
  2295. azimuth_ = from.azimuth_;
  2296. }
  2297. _has_bits_[0] |= cached_has_bits;
  2298. }
  2299. }
  2300. void tof3dVzenseEtc::CopyFrom(const ::google::protobuf::Message& from) {
  2301. // @@protoc_insertion_point(generalized_copy_from_start:tof3dVzenseEtc)
  2302. if (&from == this) return;
  2303. Clear();
  2304. MergeFrom(from);
  2305. }
  2306. void tof3dVzenseEtc::CopyFrom(const tof3dVzenseEtc& from) {
  2307. // @@protoc_insertion_point(class_specific_copy_from_start:tof3dVzenseEtc)
  2308. if (&from == this) return;
  2309. Clear();
  2310. MergeFrom(from);
  2311. }
  2312. bool tof3dVzenseEtc::IsInitialized() const {
  2313. if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
  2314. return true;
  2315. }
  2316. void tof3dVzenseEtc::Swap(tof3dVzenseEtc* other) {
  2317. if (other == this) return;
  2318. InternalSwap(other);
  2319. }
  2320. void tof3dVzenseEtc::InternalSwap(tof3dVzenseEtc* other) {
  2321. using std::swap;
  2322. ip_.Swap(&other->ip_, &::tof3dVzenseEtc::_i_give_permission_to_break_this_code_default_ip_.get(),
  2323. GetArenaNoVirtual());
  2324. swap(bip_, other->bip_);
  2325. swap(yolo_, other->yolo_);
  2326. swap(enable_device_, other->enable_device_);
  2327. swap(azimuth_, other->azimuth_);
  2328. swap(_has_bits_[0], other->_has_bits_[0]);
  2329. _internal_metadata_.Swap(&other->_internal_metadata_);
  2330. }
  2331. ::google::protobuf::Metadata tof3dVzenseEtc::GetMetadata() const {
  2332. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2333. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  2334. }
  2335. // ===================================================================
  2336. void tof3dManagerParams::InitAsDefaultInstance() {
  2337. }
  2338. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2339. const int tof3dManagerParams::kVzenseTof3DDevicesFieldNumber;
  2340. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2341. tof3dManagerParams::tof3dManagerParams()
  2342. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2343. ::google::protobuf::internal::InitSCC(
  2344. &protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dManagerParams.base);
  2345. SharedCtor();
  2346. // @@protoc_insertion_point(constructor:tof3dManagerParams)
  2347. }
  2348. tof3dManagerParams::tof3dManagerParams(const tof3dManagerParams& from)
  2349. : ::google::protobuf::Message(),
  2350. _internal_metadata_(NULL),
  2351. _has_bits_(from._has_bits_),
  2352. vzense_tof3d_devices_(from.vzense_tof3d_devices_) {
  2353. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2354. // @@protoc_insertion_point(copy_constructor:tof3dManagerParams)
  2355. }
  2356. void tof3dManagerParams::SharedCtor() {
  2357. }
  2358. tof3dManagerParams::~tof3dManagerParams() {
  2359. // @@protoc_insertion_point(destructor:tof3dManagerParams)
  2360. SharedDtor();
  2361. }
  2362. void tof3dManagerParams::SharedDtor() {
  2363. }
  2364. void tof3dManagerParams::SetCachedSize(int size) const {
  2365. _cached_size_.Set(size);
  2366. }
  2367. const ::google::protobuf::Descriptor* tof3dManagerParams::descriptor() {
  2368. ::protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2369. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2370. }
  2371. const tof3dManagerParams& tof3dManagerParams::default_instance() {
  2372. ::google::protobuf::internal::InitSCC(&protobuf_tof3d_5fconfig_2eproto::scc_info_tof3dManagerParams.base);
  2373. return *internal_default_instance();
  2374. }
  2375. void tof3dManagerParams::Clear() {
  2376. // @@protoc_insertion_point(message_clear_start:tof3dManagerParams)
  2377. ::google::protobuf::uint32 cached_has_bits = 0;
  2378. // Prevent compiler warnings about cached_has_bits being unused
  2379. (void) cached_has_bits;
  2380. vzense_tof3d_devices_.Clear();
  2381. _has_bits_.Clear();
  2382. _internal_metadata_.Clear();
  2383. }
  2384. bool tof3dManagerParams::MergePartialFromCodedStream(
  2385. ::google::protobuf::io::CodedInputStream* input) {
  2386. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2387. ::google::protobuf::uint32 tag;
  2388. // @@protoc_insertion_point(parse_start:tof3dManagerParams)
  2389. for (;;) {
  2390. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2391. tag = p.first;
  2392. if (!p.second) goto handle_unusual;
  2393. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2394. // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
  2395. case 1: {
  2396. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2397. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2398. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2399. input, add_vzense_tof3d_devices()));
  2400. } else {
  2401. goto handle_unusual;
  2402. }
  2403. break;
  2404. }
  2405. default: {
  2406. handle_unusual:
  2407. if (tag == 0) {
  2408. goto success;
  2409. }
  2410. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2411. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2412. break;
  2413. }
  2414. }
  2415. }
  2416. success:
  2417. // @@protoc_insertion_point(parse_success:tof3dManagerParams)
  2418. return true;
  2419. failure:
  2420. // @@protoc_insertion_point(parse_failure:tof3dManagerParams)
  2421. return false;
  2422. #undef DO_
  2423. }
  2424. void tof3dManagerParams::SerializeWithCachedSizes(
  2425. ::google::protobuf::io::CodedOutputStream* output) const {
  2426. // @@protoc_insertion_point(serialize_start:tof3dManagerParams)
  2427. ::google::protobuf::uint32 cached_has_bits = 0;
  2428. (void) cached_has_bits;
  2429. // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
  2430. for (unsigned int i = 0,
  2431. n = static_cast<unsigned int>(this->vzense_tof3d_devices_size()); i < n; i++) {
  2432. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2433. 1,
  2434. this->vzense_tof3d_devices(static_cast<int>(i)),
  2435. output);
  2436. }
  2437. if (_internal_metadata_.have_unknown_fields()) {
  2438. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2439. _internal_metadata_.unknown_fields(), output);
  2440. }
  2441. // @@protoc_insertion_point(serialize_end:tof3dManagerParams)
  2442. }
  2443. ::google::protobuf::uint8* tof3dManagerParams::InternalSerializeWithCachedSizesToArray(
  2444. bool deterministic, ::google::protobuf::uint8* target) const {
  2445. (void)deterministic; // Unused
  2446. // @@protoc_insertion_point(serialize_to_array_start:tof3dManagerParams)
  2447. ::google::protobuf::uint32 cached_has_bits = 0;
  2448. (void) cached_has_bits;
  2449. // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
  2450. for (unsigned int i = 0,
  2451. n = static_cast<unsigned int>(this->vzense_tof3d_devices_size()); i < n; i++) {
  2452. target = ::google::protobuf::internal::WireFormatLite::
  2453. InternalWriteMessageToArray(
  2454. 1, this->vzense_tof3d_devices(static_cast<int>(i)), deterministic, target);
  2455. }
  2456. if (_internal_metadata_.have_unknown_fields()) {
  2457. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2458. _internal_metadata_.unknown_fields(), target);
  2459. }
  2460. // @@protoc_insertion_point(serialize_to_array_end:tof3dManagerParams)
  2461. return target;
  2462. }
  2463. size_t tof3dManagerParams::ByteSizeLong() const {
  2464. // @@protoc_insertion_point(message_byte_size_start:tof3dManagerParams)
  2465. size_t total_size = 0;
  2466. if (_internal_metadata_.have_unknown_fields()) {
  2467. total_size +=
  2468. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2469. _internal_metadata_.unknown_fields());
  2470. }
  2471. // repeated .tof3dVzenseEtc vzense_tof3d_devices = 1;
  2472. {
  2473. unsigned int count = static_cast<unsigned int>(this->vzense_tof3d_devices_size());
  2474. total_size += 1UL * count;
  2475. for (unsigned int i = 0; i < count; i++) {
  2476. total_size +=
  2477. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2478. this->vzense_tof3d_devices(static_cast<int>(i)));
  2479. }
  2480. }
  2481. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2482. SetCachedSize(cached_size);
  2483. return total_size;
  2484. }
  2485. void tof3dManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
  2486. // @@protoc_insertion_point(generalized_merge_from_start:tof3dManagerParams)
  2487. GOOGLE_DCHECK_NE(&from, this);
  2488. const tof3dManagerParams* source =
  2489. ::google::protobuf::internal::DynamicCastToGenerated<const tof3dManagerParams>(
  2490. &from);
  2491. if (source == NULL) {
  2492. // @@protoc_insertion_point(generalized_merge_from_cast_fail:tof3dManagerParams)
  2493. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2494. } else {
  2495. // @@protoc_insertion_point(generalized_merge_from_cast_success:tof3dManagerParams)
  2496. MergeFrom(*source);
  2497. }
  2498. }
  2499. void tof3dManagerParams::MergeFrom(const tof3dManagerParams& from) {
  2500. // @@protoc_insertion_point(class_specific_merge_from_start:tof3dManagerParams)
  2501. GOOGLE_DCHECK_NE(&from, this);
  2502. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2503. ::google::protobuf::uint32 cached_has_bits = 0;
  2504. (void) cached_has_bits;
  2505. vzense_tof3d_devices_.MergeFrom(from.vzense_tof3d_devices_);
  2506. }
  2507. void tof3dManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
  2508. // @@protoc_insertion_point(generalized_copy_from_start:tof3dManagerParams)
  2509. if (&from == this) return;
  2510. Clear();
  2511. MergeFrom(from);
  2512. }
  2513. void tof3dManagerParams::CopyFrom(const tof3dManagerParams& from) {
  2514. // @@protoc_insertion_point(class_specific_copy_from_start:tof3dManagerParams)
  2515. if (&from == this) return;
  2516. Clear();
  2517. MergeFrom(from);
  2518. }
  2519. bool tof3dManagerParams::IsInitialized() const {
  2520. if (!::google::protobuf::internal::AllAreInitialized(this->vzense_tof3d_devices())) return false;
  2521. return true;
  2522. }
  2523. void tof3dManagerParams::Swap(tof3dManagerParams* other) {
  2524. if (other == this) return;
  2525. InternalSwap(other);
  2526. }
  2527. void tof3dManagerParams::InternalSwap(tof3dManagerParams* other) {
  2528. using std::swap;
  2529. CastToBase(&vzense_tof3d_devices_)->InternalSwap(CastToBase(&other->vzense_tof3d_devices_));
  2530. swap(_has_bits_[0], other->_has_bits_[0]);
  2531. _internal_metadata_.Swap(&other->_internal_metadata_);
  2532. }
  2533. ::google::protobuf::Metadata tof3dManagerParams::GetMetadata() const {
  2534. protobuf_tof3d_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2535. return ::protobuf_tof3d_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  2536. }
  2537. // @@protoc_insertion_point(namespace_scope)
  2538. namespace google {
  2539. namespace protobuf {
  2540. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Tof3dVzenseBuiltInParams* Arena::CreateMaybeMessage< ::Tof3dVzenseBuiltInParams >(Arena* arena) {
  2541. return Arena::CreateInternal< ::Tof3dVzenseBuiltInParams >(arena);
  2542. }
  2543. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Yolov8ProcessParams* Arena::CreateMaybeMessage< ::Yolov8ProcessParams >(Arena* arena) {
  2544. return Arena::CreateInternal< ::Yolov8ProcessParams >(arena);
  2545. }
  2546. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::RabbitmqCommunicationParams* Arena::CreateMaybeMessage< ::RabbitmqCommunicationParams >(Arena* arena) {
  2547. return Arena::CreateInternal< ::RabbitmqCommunicationParams >(arena);
  2548. }
  2549. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::MqttCommunicationParams* Arena::CreateMaybeMessage< ::MqttCommunicationParams >(Arena* arena) {
  2550. return Arena::CreateInternal< ::MqttCommunicationParams >(arena);
  2551. }
  2552. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tof3dVzenseEtc* Arena::CreateMaybeMessage< ::tof3dVzenseEtc >(Arena* arena) {
  2553. return Arena::CreateInternal< ::tof3dVzenseEtc >(arena);
  2554. }
  2555. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tof3dManagerParams* Arena::CreateMaybeMessage< ::tof3dManagerParams >(Arena* arena) {
  2556. return Arena::CreateInternal< ::tof3dManagerParams >(arena);
  2557. }
  2558. } // namespace protobuf
  2559. } // namespace google
  2560. // @@protoc_insertion_point(global_scope)