locater_parameter.pb.cc 95 KB

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