locate_parameter.pb.cc 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: locate_parameter.proto
  3. #include "locate_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_locate_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_locate_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_locate_5fparameter_2eproto::InitDefaultsArea3d();
  140. protobuf_locate_5fparameter_2eproto::InitDefaultscnnParameter();
  141. protobuf_locate_5fparameter_2eproto::InitDefaultsPointSiftParameter();
  142. protobuf_locate_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. "locate_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\026locate_parameter.proto\022\007Measure\"\203\001\n\006Ar"
  274. "ea3d\022\020\n\005x_min\030\001 \001(\001:\0010\022\024\n\005x_max\030\002 \001(\001:\0051"
  275. "2000\022\023\n\005y_min\030\003 \001(\001:\0044500\022\024\n\005y_max\030\004 \001(\001"
  276. ":\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:\000"
  278. "\022\021\n\007weights\030\002 \001(\t:\000\022\020\n\005min_x\030\003 \001(\001:\0010\022\024\n"
  279. "\005max_x\030\004 \001(\001:\00512000\022\023\n\005min_y\030\005 \001(\001:\0044500"
  280. "\022\024\n\005max_y\030\006 \001(\001:\00511000\022\020\n\004freq\030\007 \001(\001:\00225"
  281. "\"\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\022"
  285. "!\n\004cpkt\030\006 \001(\t:\023seg_model_last.ckpt\"\227\001\n\014c"
  286. "nnParameter\022\023\n\006length\030\001 \001(\001:\003224\022\022\n\005widt"
  287. "h\030\002 \001(\001:\003224\022\022\n\006height\030\003 \001(\001:\00296\022\020\n\004freq"
  288. "\030\004 \001(\001:\00225\022\021\n\006nclass\030\005 \001(\001:\0013\022%\n\014weights"
  289. "_file\030\006 \001(\t:\017frozen_model.pb\"\310\001\n\017LocateP"
  290. "arameter\022\035\n\004area\030\001 \001(\0132\017.Measure.Area3d\022"
  291. "2\n\023net_3dcnn_parameter\030\002 \001(\0132\025.Measure.c"
  292. "nnParameter\0222\n\rseg_parameter\030\003 \001(\0132\033.Mea"
  293. "sure.PointSiftParameter\022.\n\016yolo_paramete"
  294. "r\030\004 \001(\0132\026.Measure.YoloParameter"
  295. };
  296. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  297. descriptor, 871);
  298. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  299. "locate_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_locate_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_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  365. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  366. }
  367. const Area3d& Area3d::default_instance() {
  368. ::protobuf_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  692. return ::protobuf_locate_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_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  758. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  759. }
  760. const YoloParameter& YoloParameter::default_instance() {
  761. ::protobuf_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1155. return ::protobuf_locate_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_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1229. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1230. }
  1231. const PointSiftParameter& PointSiftParameter::default_instance() {
  1232. ::protobuf_locate_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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1604. return ::protobuf_locate_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_locate_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_ = 224;
  1645. width_ = 224;
  1646. height_ = 96;
  1647. freq_ = 25;
  1648. nclass_ = 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_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1664. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1665. }
  1666. const cnnParameter& cnnParameter::default_instance() {
  1667. ::protobuf_locate_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_ = 224;
  1689. width_ = 224;
  1690. height_ = 96;
  1691. freq_ = 25;
  1692. nclass_ = 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 double length = 1 [default = 224];
  1708. case 1: {
  1709. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1710. static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
  1711. set_has_length();
  1712. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1713. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1714. input, &length_)));
  1715. } else {
  1716. goto handle_unusual;
  1717. }
  1718. break;
  1719. }
  1720. // optional double width = 2 [default = 224];
  1721. case 2: {
  1722. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1723. static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
  1724. set_has_width();
  1725. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1726. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1727. input, &width_)));
  1728. } else {
  1729. goto handle_unusual;
  1730. }
  1731. break;
  1732. }
  1733. // optional double height = 3 [default = 96];
  1734. case 3: {
  1735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1736. static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
  1737. set_has_height();
  1738. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1739. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1740. input, &height_)));
  1741. } else {
  1742. goto handle_unusual;
  1743. }
  1744. break;
  1745. }
  1746. // optional double freq = 4 [default = 25];
  1747. case 4: {
  1748. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1749. static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
  1750. set_has_freq();
  1751. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1752. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1753. input, &freq_)));
  1754. } else {
  1755. goto handle_unusual;
  1756. }
  1757. break;
  1758. }
  1759. // optional double nclass = 5 [default = 3];
  1760. case 5: {
  1761. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1762. static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
  1763. set_has_nclass();
  1764. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1765. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  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 double length = 1 [default = 224];
  1813. if (cached_has_bits & 0x00000002u) {
  1814. ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->length(), output);
  1815. }
  1816. // optional double width = 2 [default = 224];
  1817. if (cached_has_bits & 0x00000004u) {
  1818. ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->width(), output);
  1819. }
  1820. // optional double height = 3 [default = 96];
  1821. if (cached_has_bits & 0x00000008u) {
  1822. ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->height(), output);
  1823. }
  1824. // optional double freq = 4 [default = 25];
  1825. if (cached_has_bits & 0x00000010u) {
  1826. ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->freq(), output);
  1827. }
  1828. // optional double nclass = 5 [default = 3];
  1829. if (cached_has_bits & 0x00000020u) {
  1830. ::google::protobuf::internal::WireFormatLite::WriteDouble(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 double length = 1 [default = 224];
  1855. if (cached_has_bits & 0x00000002u) {
  1856. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->length(), target);
  1857. }
  1858. // optional double width = 2 [default = 224];
  1859. if (cached_has_bits & 0x00000004u) {
  1860. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->width(), target);
  1861. }
  1862. // optional double height = 3 [default = 96];
  1863. if (cached_has_bits & 0x00000008u) {
  1864. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->height(), target);
  1865. }
  1866. // optional double freq = 4 [default = 25];
  1867. if (cached_has_bits & 0x00000010u) {
  1868. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->freq(), target);
  1869. }
  1870. // optional double nclass = 5 [default = 3];
  1871. if (cached_has_bits & 0x00000020u) {
  1872. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(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 double length = 1 [default = 224];
  1907. if (has_length()) {
  1908. total_size += 1 + 8;
  1909. }
  1910. // optional double width = 2 [default = 224];
  1911. if (has_width()) {
  1912. total_size += 1 + 8;
  1913. }
  1914. // optional double height = 3 [default = 96];
  1915. if (has_height()) {
  1916. total_size += 1 + 8;
  1917. }
  1918. // optional double freq = 4 [default = 25];
  1919. if (has_freq()) {
  1920. total_size += 1 + 8;
  1921. }
  1922. // optional double nclass = 5 [default = 3];
  1923. if (has_nclass()) {
  1924. total_size += 1 + 8;
  1925. }
  1926. }
  1927. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1928. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1929. _cached_size_ = cached_size;
  1930. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1931. return total_size;
  1932. }
  1933. void cnnParameter::MergeFrom(const ::google::protobuf::Message& from) {
  1934. // @@protoc_insertion_point(generalized_merge_from_start:Measure.cnnParameter)
  1935. GOOGLE_DCHECK_NE(&from, this);
  1936. const cnnParameter* source =
  1937. ::google::protobuf::internal::DynamicCastToGenerated<const cnnParameter>(
  1938. &from);
  1939. if (source == NULL) {
  1940. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.cnnParameter)
  1941. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1942. } else {
  1943. // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.cnnParameter)
  1944. MergeFrom(*source);
  1945. }
  1946. }
  1947. void cnnParameter::MergeFrom(const cnnParameter& from) {
  1948. // @@protoc_insertion_point(class_specific_merge_from_start:Measure.cnnParameter)
  1949. GOOGLE_DCHECK_NE(&from, this);
  1950. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1951. ::google::protobuf::uint32 cached_has_bits = 0;
  1952. (void) cached_has_bits;
  1953. cached_has_bits = from._has_bits_[0];
  1954. if (cached_has_bits & 63u) {
  1955. if (cached_has_bits & 0x00000001u) {
  1956. set_has_weights_file();
  1957. weights_file_.AssignWithDefault(&::Measure::cnnParameter::_default_weights_file_.get(), from.weights_file_);
  1958. }
  1959. if (cached_has_bits & 0x00000002u) {
  1960. length_ = from.length_;
  1961. }
  1962. if (cached_has_bits & 0x00000004u) {
  1963. width_ = from.width_;
  1964. }
  1965. if (cached_has_bits & 0x00000008u) {
  1966. height_ = from.height_;
  1967. }
  1968. if (cached_has_bits & 0x00000010u) {
  1969. freq_ = from.freq_;
  1970. }
  1971. if (cached_has_bits & 0x00000020u) {
  1972. nclass_ = from.nclass_;
  1973. }
  1974. _has_bits_[0] |= cached_has_bits;
  1975. }
  1976. }
  1977. void cnnParameter::CopyFrom(const ::google::protobuf::Message& from) {
  1978. // @@protoc_insertion_point(generalized_copy_from_start:Measure.cnnParameter)
  1979. if (&from == this) return;
  1980. Clear();
  1981. MergeFrom(from);
  1982. }
  1983. void cnnParameter::CopyFrom(const cnnParameter& from) {
  1984. // @@protoc_insertion_point(class_specific_copy_from_start:Measure.cnnParameter)
  1985. if (&from == this) return;
  1986. Clear();
  1987. MergeFrom(from);
  1988. }
  1989. bool cnnParameter::IsInitialized() const {
  1990. return true;
  1991. }
  1992. void cnnParameter::Swap(cnnParameter* other) {
  1993. if (other == this) return;
  1994. InternalSwap(other);
  1995. }
  1996. void cnnParameter::InternalSwap(cnnParameter* other) {
  1997. using std::swap;
  1998. weights_file_.Swap(&other->weights_file_);
  1999. swap(length_, other->length_);
  2000. swap(width_, other->width_);
  2001. swap(height_, other->height_);
  2002. swap(freq_, other->freq_);
  2003. swap(nclass_, other->nclass_);
  2004. swap(_has_bits_[0], other->_has_bits_[0]);
  2005. _internal_metadata_.Swap(&other->_internal_metadata_);
  2006. swap(_cached_size_, other->_cached_size_);
  2007. }
  2008. ::google::protobuf::Metadata cnnParameter::GetMetadata() const {
  2009. protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  2010. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  2011. }
  2012. // ===================================================================
  2013. void LocateParameter::InitAsDefaultInstance() {
  2014. ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->area_ = const_cast< ::Measure::Area3d*>(
  2015. ::Measure::Area3d::internal_default_instance());
  2016. ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->net_3dcnn_parameter_ = const_cast< ::Measure::cnnParameter*>(
  2017. ::Measure::cnnParameter::internal_default_instance());
  2018. ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->seg_parameter_ = const_cast< ::Measure::PointSiftParameter*>(
  2019. ::Measure::PointSiftParameter::internal_default_instance());
  2020. ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->yolo_parameter_ = const_cast< ::Measure::YoloParameter*>(
  2021. ::Measure::YoloParameter::internal_default_instance());
  2022. }
  2023. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2024. const int LocateParameter::kAreaFieldNumber;
  2025. const int LocateParameter::kNet3DcnnParameterFieldNumber;
  2026. const int LocateParameter::kSegParameterFieldNumber;
  2027. const int LocateParameter::kYoloParameterFieldNumber;
  2028. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2029. LocateParameter::LocateParameter()
  2030. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2031. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2032. ::protobuf_locate_5fparameter_2eproto::InitDefaultsLocateParameter();
  2033. }
  2034. SharedCtor();
  2035. // @@protoc_insertion_point(constructor:Measure.LocateParameter)
  2036. }
  2037. LocateParameter::LocateParameter(const LocateParameter& from)
  2038. : ::google::protobuf::Message(),
  2039. _internal_metadata_(NULL),
  2040. _has_bits_(from._has_bits_),
  2041. _cached_size_(0) {
  2042. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2043. if (from.has_area()) {
  2044. area_ = new ::Measure::Area3d(*from.area_);
  2045. } else {
  2046. area_ = NULL;
  2047. }
  2048. if (from.has_net_3dcnn_parameter()) {
  2049. net_3dcnn_parameter_ = new ::Measure::cnnParameter(*from.net_3dcnn_parameter_);
  2050. } else {
  2051. net_3dcnn_parameter_ = NULL;
  2052. }
  2053. if (from.has_seg_parameter()) {
  2054. seg_parameter_ = new ::Measure::PointSiftParameter(*from.seg_parameter_);
  2055. } else {
  2056. seg_parameter_ = NULL;
  2057. }
  2058. if (from.has_yolo_parameter()) {
  2059. yolo_parameter_ = new ::Measure::YoloParameter(*from.yolo_parameter_);
  2060. } else {
  2061. yolo_parameter_ = NULL;
  2062. }
  2063. // @@protoc_insertion_point(copy_constructor:Measure.LocateParameter)
  2064. }
  2065. void LocateParameter::SharedCtor() {
  2066. _cached_size_ = 0;
  2067. ::memset(&area_, 0, static_cast<size_t>(
  2068. reinterpret_cast<char*>(&yolo_parameter_) -
  2069. reinterpret_cast<char*>(&area_)) + sizeof(yolo_parameter_));
  2070. }
  2071. LocateParameter::~LocateParameter() {
  2072. // @@protoc_insertion_point(destructor:Measure.LocateParameter)
  2073. SharedDtor();
  2074. }
  2075. void LocateParameter::SharedDtor() {
  2076. if (this != internal_default_instance()) delete area_;
  2077. if (this != internal_default_instance()) delete net_3dcnn_parameter_;
  2078. if (this != internal_default_instance()) delete seg_parameter_;
  2079. if (this != internal_default_instance()) delete yolo_parameter_;
  2080. }
  2081. void LocateParameter::SetCachedSize(int size) const {
  2082. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2083. _cached_size_ = size;
  2084. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2085. }
  2086. const ::google::protobuf::Descriptor* LocateParameter::descriptor() {
  2087. ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  2088. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2089. }
  2090. const LocateParameter& LocateParameter::default_instance() {
  2091. ::protobuf_locate_5fparameter_2eproto::InitDefaultsLocateParameter();
  2092. return *internal_default_instance();
  2093. }
  2094. LocateParameter* LocateParameter::New(::google::protobuf::Arena* arena) const {
  2095. LocateParameter* n = new LocateParameter;
  2096. if (arena != NULL) {
  2097. arena->Own(n);
  2098. }
  2099. return n;
  2100. }
  2101. void LocateParameter::Clear() {
  2102. // @@protoc_insertion_point(message_clear_start:Measure.LocateParameter)
  2103. ::google::protobuf::uint32 cached_has_bits = 0;
  2104. // Prevent compiler warnings about cached_has_bits being unused
  2105. (void) cached_has_bits;
  2106. cached_has_bits = _has_bits_[0];
  2107. if (cached_has_bits & 15u) {
  2108. if (cached_has_bits & 0x00000001u) {
  2109. GOOGLE_DCHECK(area_ != NULL);
  2110. area_->Clear();
  2111. }
  2112. if (cached_has_bits & 0x00000002u) {
  2113. GOOGLE_DCHECK(net_3dcnn_parameter_ != NULL);
  2114. net_3dcnn_parameter_->Clear();
  2115. }
  2116. if (cached_has_bits & 0x00000004u) {
  2117. GOOGLE_DCHECK(seg_parameter_ != NULL);
  2118. seg_parameter_->Clear();
  2119. }
  2120. if (cached_has_bits & 0x00000008u) {
  2121. GOOGLE_DCHECK(yolo_parameter_ != NULL);
  2122. yolo_parameter_->Clear();
  2123. }
  2124. }
  2125. _has_bits_.Clear();
  2126. _internal_metadata_.Clear();
  2127. }
  2128. bool LocateParameter::MergePartialFromCodedStream(
  2129. ::google::protobuf::io::CodedInputStream* input) {
  2130. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2131. ::google::protobuf::uint32 tag;
  2132. // @@protoc_insertion_point(parse_start:Measure.LocateParameter)
  2133. for (;;) {
  2134. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2135. tag = p.first;
  2136. if (!p.second) goto handle_unusual;
  2137. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2138. // optional .Measure.Area3d area = 1;
  2139. case 1: {
  2140. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2141. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2142. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2143. input, mutable_area()));
  2144. } else {
  2145. goto handle_unusual;
  2146. }
  2147. break;
  2148. }
  2149. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  2150. case 2: {
  2151. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2152. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2153. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2154. input, mutable_net_3dcnn_parameter()));
  2155. } else {
  2156. goto handle_unusual;
  2157. }
  2158. break;
  2159. }
  2160. // optional .Measure.PointSiftParameter seg_parameter = 3;
  2161. case 3: {
  2162. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2163. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2164. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2165. input, mutable_seg_parameter()));
  2166. } else {
  2167. goto handle_unusual;
  2168. }
  2169. break;
  2170. }
  2171. // optional .Measure.YoloParameter yolo_parameter = 4;
  2172. case 4: {
  2173. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2174. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2175. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2176. input, mutable_yolo_parameter()));
  2177. } else {
  2178. goto handle_unusual;
  2179. }
  2180. break;
  2181. }
  2182. default: {
  2183. handle_unusual:
  2184. if (tag == 0) {
  2185. goto success;
  2186. }
  2187. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2188. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2189. break;
  2190. }
  2191. }
  2192. }
  2193. success:
  2194. // @@protoc_insertion_point(parse_success:Measure.LocateParameter)
  2195. return true;
  2196. failure:
  2197. // @@protoc_insertion_point(parse_failure:Measure.LocateParameter)
  2198. return false;
  2199. #undef DO_
  2200. }
  2201. void LocateParameter::SerializeWithCachedSizes(
  2202. ::google::protobuf::io::CodedOutputStream* output) const {
  2203. // @@protoc_insertion_point(serialize_start:Measure.LocateParameter)
  2204. ::google::protobuf::uint32 cached_has_bits = 0;
  2205. (void) cached_has_bits;
  2206. cached_has_bits = _has_bits_[0];
  2207. // optional .Measure.Area3d area = 1;
  2208. if (cached_has_bits & 0x00000001u) {
  2209. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2210. 1, *this->area_, output);
  2211. }
  2212. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  2213. if (cached_has_bits & 0x00000002u) {
  2214. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2215. 2, *this->net_3dcnn_parameter_, output);
  2216. }
  2217. // optional .Measure.PointSiftParameter seg_parameter = 3;
  2218. if (cached_has_bits & 0x00000004u) {
  2219. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2220. 3, *this->seg_parameter_, output);
  2221. }
  2222. // optional .Measure.YoloParameter yolo_parameter = 4;
  2223. if (cached_has_bits & 0x00000008u) {
  2224. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2225. 4, *this->yolo_parameter_, output);
  2226. }
  2227. if (_internal_metadata_.have_unknown_fields()) {
  2228. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2229. _internal_metadata_.unknown_fields(), output);
  2230. }
  2231. // @@protoc_insertion_point(serialize_end:Measure.LocateParameter)
  2232. }
  2233. ::google::protobuf::uint8* LocateParameter::InternalSerializeWithCachedSizesToArray(
  2234. bool deterministic, ::google::protobuf::uint8* target) const {
  2235. (void)deterministic; // Unused
  2236. // @@protoc_insertion_point(serialize_to_array_start:Measure.LocateParameter)
  2237. ::google::protobuf::uint32 cached_has_bits = 0;
  2238. (void) cached_has_bits;
  2239. cached_has_bits = _has_bits_[0];
  2240. // optional .Measure.Area3d area = 1;
  2241. if (cached_has_bits & 0x00000001u) {
  2242. target = ::google::protobuf::internal::WireFormatLite::
  2243. InternalWriteMessageToArray(
  2244. 1, *this->area_, deterministic, target);
  2245. }
  2246. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  2247. if (cached_has_bits & 0x00000002u) {
  2248. target = ::google::protobuf::internal::WireFormatLite::
  2249. InternalWriteMessageToArray(
  2250. 2, *this->net_3dcnn_parameter_, deterministic, target);
  2251. }
  2252. // optional .Measure.PointSiftParameter seg_parameter = 3;
  2253. if (cached_has_bits & 0x00000004u) {
  2254. target = ::google::protobuf::internal::WireFormatLite::
  2255. InternalWriteMessageToArray(
  2256. 3, *this->seg_parameter_, deterministic, target);
  2257. }
  2258. // optional .Measure.YoloParameter yolo_parameter = 4;
  2259. if (cached_has_bits & 0x00000008u) {
  2260. target = ::google::protobuf::internal::WireFormatLite::
  2261. InternalWriteMessageToArray(
  2262. 4, *this->yolo_parameter_, deterministic, target);
  2263. }
  2264. if (_internal_metadata_.have_unknown_fields()) {
  2265. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2266. _internal_metadata_.unknown_fields(), target);
  2267. }
  2268. // @@protoc_insertion_point(serialize_to_array_end:Measure.LocateParameter)
  2269. return target;
  2270. }
  2271. size_t LocateParameter::ByteSizeLong() const {
  2272. // @@protoc_insertion_point(message_byte_size_start:Measure.LocateParameter)
  2273. size_t total_size = 0;
  2274. if (_internal_metadata_.have_unknown_fields()) {
  2275. total_size +=
  2276. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2277. _internal_metadata_.unknown_fields());
  2278. }
  2279. if (_has_bits_[0 / 32] & 15u) {
  2280. // optional .Measure.Area3d area = 1;
  2281. if (has_area()) {
  2282. total_size += 1 +
  2283. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2284. *this->area_);
  2285. }
  2286. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  2287. if (has_net_3dcnn_parameter()) {
  2288. total_size += 1 +
  2289. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2290. *this->net_3dcnn_parameter_);
  2291. }
  2292. // optional .Measure.PointSiftParameter seg_parameter = 3;
  2293. if (has_seg_parameter()) {
  2294. total_size += 1 +
  2295. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2296. *this->seg_parameter_);
  2297. }
  2298. // optional .Measure.YoloParameter yolo_parameter = 4;
  2299. if (has_yolo_parameter()) {
  2300. total_size += 1 +
  2301. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2302. *this->yolo_parameter_);
  2303. }
  2304. }
  2305. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2306. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2307. _cached_size_ = cached_size;
  2308. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2309. return total_size;
  2310. }
  2311. void LocateParameter::MergeFrom(const ::google::protobuf::Message& from) {
  2312. // @@protoc_insertion_point(generalized_merge_from_start:Measure.LocateParameter)
  2313. GOOGLE_DCHECK_NE(&from, this);
  2314. const LocateParameter* source =
  2315. ::google::protobuf::internal::DynamicCastToGenerated<const LocateParameter>(
  2316. &from);
  2317. if (source == NULL) {
  2318. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.LocateParameter)
  2319. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2320. } else {
  2321. // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.LocateParameter)
  2322. MergeFrom(*source);
  2323. }
  2324. }
  2325. void LocateParameter::MergeFrom(const LocateParameter& from) {
  2326. // @@protoc_insertion_point(class_specific_merge_from_start:Measure.LocateParameter)
  2327. GOOGLE_DCHECK_NE(&from, this);
  2328. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2329. ::google::protobuf::uint32 cached_has_bits = 0;
  2330. (void) cached_has_bits;
  2331. cached_has_bits = from._has_bits_[0];
  2332. if (cached_has_bits & 15u) {
  2333. if (cached_has_bits & 0x00000001u) {
  2334. mutable_area()->::Measure::Area3d::MergeFrom(from.area());
  2335. }
  2336. if (cached_has_bits & 0x00000002u) {
  2337. mutable_net_3dcnn_parameter()->::Measure::cnnParameter::MergeFrom(from.net_3dcnn_parameter());
  2338. }
  2339. if (cached_has_bits & 0x00000004u) {
  2340. mutable_seg_parameter()->::Measure::PointSiftParameter::MergeFrom(from.seg_parameter());
  2341. }
  2342. if (cached_has_bits & 0x00000008u) {
  2343. mutable_yolo_parameter()->::Measure::YoloParameter::MergeFrom(from.yolo_parameter());
  2344. }
  2345. }
  2346. }
  2347. void LocateParameter::CopyFrom(const ::google::protobuf::Message& from) {
  2348. // @@protoc_insertion_point(generalized_copy_from_start:Measure.LocateParameter)
  2349. if (&from == this) return;
  2350. Clear();
  2351. MergeFrom(from);
  2352. }
  2353. void LocateParameter::CopyFrom(const LocateParameter& from) {
  2354. // @@protoc_insertion_point(class_specific_copy_from_start:Measure.LocateParameter)
  2355. if (&from == this) return;
  2356. Clear();
  2357. MergeFrom(from);
  2358. }
  2359. bool LocateParameter::IsInitialized() const {
  2360. return true;
  2361. }
  2362. void LocateParameter::Swap(LocateParameter* other) {
  2363. if (other == this) return;
  2364. InternalSwap(other);
  2365. }
  2366. void LocateParameter::InternalSwap(LocateParameter* other) {
  2367. using std::swap;
  2368. swap(area_, other->area_);
  2369. swap(net_3dcnn_parameter_, other->net_3dcnn_parameter_);
  2370. swap(seg_parameter_, other->seg_parameter_);
  2371. swap(yolo_parameter_, other->yolo_parameter_);
  2372. swap(_has_bits_[0], other->_has_bits_[0]);
  2373. _internal_metadata_.Swap(&other->_internal_metadata_);
  2374. swap(_cached_size_, other->_cached_size_);
  2375. }
  2376. ::google::protobuf::Metadata LocateParameter::GetMetadata() const {
  2377. protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  2378. return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  2379. }
  2380. // @@protoc_insertion_point(namespace_scope)
  2381. } // namespace Measure
  2382. // @@protoc_insertion_point(global_scope)