locater_parameter.pb.h 68 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: locater_parameter.proto
  3. #ifndef PROTOBUF_locater_5fparameter_2eproto__INCLUDED
  4. #define PROTOBUF_locater_5fparameter_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/unknown_field_set.h>
  27. // @@protoc_insertion_point(includes)
  28. namespace protobuf_locater_5fparameter_2eproto {
  29. // Internal implementation detail -- do not use these members.
  30. struct TableStruct {
  31. static const ::google::protobuf::internal::ParseTableField entries[];
  32. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  33. static const ::google::protobuf::internal::ParseTable schema[5];
  34. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  35. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  36. static const ::google::protobuf::uint32 offsets[];
  37. };
  38. void AddDescriptors();
  39. void InitDefaultsArea3dImpl();
  40. void InitDefaultsArea3d();
  41. void InitDefaultsYoloParameterImpl();
  42. void InitDefaultsYoloParameter();
  43. void InitDefaultsPointSiftParameterImpl();
  44. void InitDefaultsPointSiftParameter();
  45. void InitDefaultscnnParameterImpl();
  46. void InitDefaultscnnParameter();
  47. void InitDefaultsLocateParameterImpl();
  48. void InitDefaultsLocateParameter();
  49. inline void InitDefaults() {
  50. InitDefaultsArea3d();
  51. InitDefaultsYoloParameter();
  52. InitDefaultsPointSiftParameter();
  53. InitDefaultscnnParameter();
  54. InitDefaultsLocateParameter();
  55. }
  56. } // namespace protobuf_locater_5fparameter_2eproto
  57. namespace Measure {
  58. class Area3d;
  59. class Area3dDefaultTypeInternal;
  60. extern Area3dDefaultTypeInternal _Area3d_default_instance_;
  61. class LocateParameter;
  62. class LocateParameterDefaultTypeInternal;
  63. extern LocateParameterDefaultTypeInternal _LocateParameter_default_instance_;
  64. class PointSiftParameter;
  65. class PointSiftParameterDefaultTypeInternal;
  66. extern PointSiftParameterDefaultTypeInternal _PointSiftParameter_default_instance_;
  67. class YoloParameter;
  68. class YoloParameterDefaultTypeInternal;
  69. extern YoloParameterDefaultTypeInternal _YoloParameter_default_instance_;
  70. class cnnParameter;
  71. class cnnParameterDefaultTypeInternal;
  72. extern cnnParameterDefaultTypeInternal _cnnParameter_default_instance_;
  73. } // namespace Measure
  74. namespace Measure {
  75. // ===================================================================
  76. class Area3d : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Measure.Area3d) */ {
  77. public:
  78. Area3d();
  79. virtual ~Area3d();
  80. Area3d(const Area3d& from);
  81. inline Area3d& operator=(const Area3d& from) {
  82. CopyFrom(from);
  83. return *this;
  84. }
  85. #if LANG_CXX11
  86. Area3d(Area3d&& from) noexcept
  87. : Area3d() {
  88. *this = ::std::move(from);
  89. }
  90. inline Area3d& operator=(Area3d&& from) noexcept {
  91. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  92. if (this != &from) InternalSwap(&from);
  93. } else {
  94. CopyFrom(from);
  95. }
  96. return *this;
  97. }
  98. #endif
  99. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  100. return _internal_metadata_.unknown_fields();
  101. }
  102. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  103. return _internal_metadata_.mutable_unknown_fields();
  104. }
  105. static const ::google::protobuf::Descriptor* descriptor();
  106. static const Area3d& default_instance();
  107. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  108. static inline const Area3d* internal_default_instance() {
  109. return reinterpret_cast<const Area3d*>(
  110. &_Area3d_default_instance_);
  111. }
  112. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  113. 0;
  114. void Swap(Area3d* other);
  115. friend void swap(Area3d& a, Area3d& b) {
  116. a.Swap(&b);
  117. }
  118. // implements Message ----------------------------------------------
  119. inline Area3d* New() const PROTOBUF_FINAL { return New(NULL); }
  120. Area3d* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  121. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  122. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  123. void CopyFrom(const Area3d& from);
  124. void MergeFrom(const Area3d& from);
  125. void Clear() PROTOBUF_FINAL;
  126. bool IsInitialized() const PROTOBUF_FINAL;
  127. size_t ByteSizeLong() const PROTOBUF_FINAL;
  128. bool MergePartialFromCodedStream(
  129. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  130. void SerializeWithCachedSizes(
  131. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  132. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  133. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  134. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  135. private:
  136. void SharedCtor();
  137. void SharedDtor();
  138. void SetCachedSize(int size) const PROTOBUF_FINAL;
  139. void InternalSwap(Area3d* other);
  140. private:
  141. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  142. return NULL;
  143. }
  144. inline void* MaybeArenaPtr() const {
  145. return NULL;
  146. }
  147. public:
  148. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  149. // nested types ----------------------------------------------------
  150. // accessors -------------------------------------------------------
  151. // optional double x_min = 1 [default = 0];
  152. bool has_x_min() const;
  153. void clear_x_min();
  154. static const int kXMinFieldNumber = 1;
  155. double x_min() const;
  156. void set_x_min(double value);
  157. // optional double x_max = 2 [default = 12000];
  158. bool has_x_max() const;
  159. void clear_x_max();
  160. static const int kXMaxFieldNumber = 2;
  161. double x_max() const;
  162. void set_x_max(double value);
  163. // optional double y_min = 3 [default = 4500];
  164. bool has_y_min() const;
  165. void clear_y_min();
  166. static const int kYMinFieldNumber = 3;
  167. double y_min() const;
  168. void set_y_min(double value);
  169. // optional double y_max = 4 [default = 11000];
  170. bool has_y_max() const;
  171. void clear_y_max();
  172. static const int kYMaxFieldNumber = 4;
  173. double y_max() const;
  174. void set_y_max(double value);
  175. // optional double z_min = 5 [default = 60];
  176. bool has_z_min() const;
  177. void clear_z_min();
  178. static const int kZMinFieldNumber = 5;
  179. double z_min() const;
  180. void set_z_min(double value);
  181. // optional double z_max = 6 [default = 3000];
  182. bool has_z_max() const;
  183. void clear_z_max();
  184. static const int kZMaxFieldNumber = 6;
  185. double z_max() const;
  186. void set_z_max(double value);
  187. // @@protoc_insertion_point(class_scope:Measure.Area3d)
  188. private:
  189. void set_has_x_min();
  190. void clear_has_x_min();
  191. void set_has_x_max();
  192. void clear_has_x_max();
  193. void set_has_y_min();
  194. void clear_has_y_min();
  195. void set_has_y_max();
  196. void clear_has_y_max();
  197. void set_has_z_min();
  198. void clear_has_z_min();
  199. void set_has_z_max();
  200. void clear_has_z_max();
  201. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  202. ::google::protobuf::internal::HasBits<1> _has_bits_;
  203. mutable int _cached_size_;
  204. double x_min_;
  205. double x_max_;
  206. double y_min_;
  207. double y_max_;
  208. double z_min_;
  209. double z_max_;
  210. friend struct ::protobuf_locater_5fparameter_2eproto::TableStruct;
  211. friend void ::protobuf_locater_5fparameter_2eproto::InitDefaultsArea3dImpl();
  212. };
  213. // -------------------------------------------------------------------
  214. class YoloParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Measure.YoloParameter) */ {
  215. public:
  216. YoloParameter();
  217. virtual ~YoloParameter();
  218. YoloParameter(const YoloParameter& from);
  219. inline YoloParameter& operator=(const YoloParameter& from) {
  220. CopyFrom(from);
  221. return *this;
  222. }
  223. #if LANG_CXX11
  224. YoloParameter(YoloParameter&& from) noexcept
  225. : YoloParameter() {
  226. *this = ::std::move(from);
  227. }
  228. inline YoloParameter& operator=(YoloParameter&& from) noexcept {
  229. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  230. if (this != &from) InternalSwap(&from);
  231. } else {
  232. CopyFrom(from);
  233. }
  234. return *this;
  235. }
  236. #endif
  237. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  238. return _internal_metadata_.unknown_fields();
  239. }
  240. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  241. return _internal_metadata_.mutable_unknown_fields();
  242. }
  243. static const ::google::protobuf::Descriptor* descriptor();
  244. static const YoloParameter& default_instance();
  245. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  246. static inline const YoloParameter* internal_default_instance() {
  247. return reinterpret_cast<const YoloParameter*>(
  248. &_YoloParameter_default_instance_);
  249. }
  250. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  251. 1;
  252. void Swap(YoloParameter* other);
  253. friend void swap(YoloParameter& a, YoloParameter& b) {
  254. a.Swap(&b);
  255. }
  256. // implements Message ----------------------------------------------
  257. inline YoloParameter* New() const PROTOBUF_FINAL { return New(NULL); }
  258. YoloParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  259. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  260. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  261. void CopyFrom(const YoloParameter& from);
  262. void MergeFrom(const YoloParameter& from);
  263. void Clear() PROTOBUF_FINAL;
  264. bool IsInitialized() const PROTOBUF_FINAL;
  265. size_t ByteSizeLong() const PROTOBUF_FINAL;
  266. bool MergePartialFromCodedStream(
  267. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  268. void SerializeWithCachedSizes(
  269. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  270. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  271. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  272. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  273. private:
  274. void SharedCtor();
  275. void SharedDtor();
  276. void SetCachedSize(int size) const PROTOBUF_FINAL;
  277. void InternalSwap(YoloParameter* other);
  278. private:
  279. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  280. return NULL;
  281. }
  282. inline void* MaybeArenaPtr() const {
  283. return NULL;
  284. }
  285. public:
  286. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  287. // nested types ----------------------------------------------------
  288. // accessors -------------------------------------------------------
  289. // optional string cfg = 1 [default = ""];
  290. bool has_cfg() const;
  291. void clear_cfg();
  292. static const int kCfgFieldNumber = 1;
  293. const ::std::string& cfg() const;
  294. void set_cfg(const ::std::string& value);
  295. #if LANG_CXX11
  296. void set_cfg(::std::string&& value);
  297. #endif
  298. void set_cfg(const char* value);
  299. void set_cfg(const char* value, size_t size);
  300. ::std::string* mutable_cfg();
  301. ::std::string* release_cfg();
  302. void set_allocated_cfg(::std::string* cfg);
  303. // optional string weights = 2 [default = ""];
  304. bool has_weights() const;
  305. void clear_weights();
  306. static const int kWeightsFieldNumber = 2;
  307. const ::std::string& weights() const;
  308. void set_weights(const ::std::string& value);
  309. #if LANG_CXX11
  310. void set_weights(::std::string&& value);
  311. #endif
  312. void set_weights(const char* value);
  313. void set_weights(const char* value, size_t size);
  314. ::std::string* mutable_weights();
  315. ::std::string* release_weights();
  316. void set_allocated_weights(::std::string* weights);
  317. // optional double min_x = 3 [default = 0];
  318. bool has_min_x() const;
  319. void clear_min_x();
  320. static const int kMinXFieldNumber = 3;
  321. double min_x() const;
  322. void set_min_x(double value);
  323. // optional double max_x = 4 [default = 12000];
  324. bool has_max_x() const;
  325. void clear_max_x();
  326. static const int kMaxXFieldNumber = 4;
  327. double max_x() const;
  328. void set_max_x(double value);
  329. // optional double min_y = 5 [default = 4500];
  330. bool has_min_y() const;
  331. void clear_min_y();
  332. static const int kMinYFieldNumber = 5;
  333. double min_y() const;
  334. void set_min_y(double value);
  335. // optional double max_y = 6 [default = 11000];
  336. bool has_max_y() const;
  337. void clear_max_y();
  338. static const int kMaxYFieldNumber = 6;
  339. double max_y() const;
  340. void set_max_y(double value);
  341. // optional double freq = 7 [default = 25];
  342. bool has_freq() const;
  343. void clear_freq();
  344. static const int kFreqFieldNumber = 7;
  345. double freq() const;
  346. void set_freq(double value);
  347. // @@protoc_insertion_point(class_scope:Measure.YoloParameter)
  348. private:
  349. void set_has_cfg();
  350. void clear_has_cfg();
  351. void set_has_weights();
  352. void clear_has_weights();
  353. void set_has_min_x();
  354. void clear_has_min_x();
  355. void set_has_max_x();
  356. void clear_has_max_x();
  357. void set_has_min_y();
  358. void clear_has_min_y();
  359. void set_has_max_y();
  360. void clear_has_max_y();
  361. void set_has_freq();
  362. void clear_has_freq();
  363. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  364. ::google::protobuf::internal::HasBits<1> _has_bits_;
  365. mutable int _cached_size_;
  366. ::google::protobuf::internal::ArenaStringPtr cfg_;
  367. ::google::protobuf::internal::ArenaStringPtr weights_;
  368. double min_x_;
  369. double max_x_;
  370. double min_y_;
  371. double max_y_;
  372. double freq_;
  373. friend struct ::protobuf_locater_5fparameter_2eproto::TableStruct;
  374. friend void ::protobuf_locater_5fparameter_2eproto::InitDefaultsYoloParameterImpl();
  375. };
  376. // -------------------------------------------------------------------
  377. class PointSiftParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Measure.PointSiftParameter) */ {
  378. public:
  379. PointSiftParameter();
  380. virtual ~PointSiftParameter();
  381. PointSiftParameter(const PointSiftParameter& from);
  382. inline PointSiftParameter& operator=(const PointSiftParameter& from) {
  383. CopyFrom(from);
  384. return *this;
  385. }
  386. #if LANG_CXX11
  387. PointSiftParameter(PointSiftParameter&& from) noexcept
  388. : PointSiftParameter() {
  389. *this = ::std::move(from);
  390. }
  391. inline PointSiftParameter& operator=(PointSiftParameter&& from) noexcept {
  392. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  393. if (this != &from) InternalSwap(&from);
  394. } else {
  395. CopyFrom(from);
  396. }
  397. return *this;
  398. }
  399. #endif
  400. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  401. return _internal_metadata_.unknown_fields();
  402. }
  403. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  404. return _internal_metadata_.mutable_unknown_fields();
  405. }
  406. static const ::google::protobuf::Descriptor* descriptor();
  407. static const PointSiftParameter& default_instance();
  408. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  409. static inline const PointSiftParameter* internal_default_instance() {
  410. return reinterpret_cast<const PointSiftParameter*>(
  411. &_PointSiftParameter_default_instance_);
  412. }
  413. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  414. 2;
  415. void Swap(PointSiftParameter* other);
  416. friend void swap(PointSiftParameter& a, PointSiftParameter& b) {
  417. a.Swap(&b);
  418. }
  419. // implements Message ----------------------------------------------
  420. inline PointSiftParameter* New() const PROTOBUF_FINAL { return New(NULL); }
  421. PointSiftParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  422. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  423. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  424. void CopyFrom(const PointSiftParameter& from);
  425. void MergeFrom(const PointSiftParameter& from);
  426. void Clear() PROTOBUF_FINAL;
  427. bool IsInitialized() const PROTOBUF_FINAL;
  428. size_t ByteSizeLong() const PROTOBUF_FINAL;
  429. bool MergePartialFromCodedStream(
  430. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  431. void SerializeWithCachedSizes(
  432. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  433. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  434. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  435. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  436. private:
  437. void SharedCtor();
  438. void SharedDtor();
  439. void SetCachedSize(int size) const PROTOBUF_FINAL;
  440. void InternalSwap(PointSiftParameter* other);
  441. private:
  442. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  443. return NULL;
  444. }
  445. inline void* MaybeArenaPtr() const {
  446. return NULL;
  447. }
  448. public:
  449. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  450. // nested types ----------------------------------------------------
  451. // accessors -------------------------------------------------------
  452. // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
  453. bool has_graph() const;
  454. void clear_graph();
  455. static const int kGraphFieldNumber = 5;
  456. const ::std::string& graph() const;
  457. void set_graph(const ::std::string& value);
  458. #if LANG_CXX11
  459. void set_graph(::std::string&& value);
  460. #endif
  461. void set_graph(const char* value);
  462. void set_graph(const char* value, size_t size);
  463. ::std::string* mutable_graph();
  464. ::std::string* release_graph();
  465. void set_allocated_graph(::std::string* graph);
  466. // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
  467. bool has_cpkt() const;
  468. void clear_cpkt();
  469. static const int kCpktFieldNumber = 6;
  470. const ::std::string& cpkt() const;
  471. void set_cpkt(const ::std::string& value);
  472. #if LANG_CXX11
  473. void set_cpkt(::std::string&& value);
  474. #endif
  475. void set_cpkt(const char* value);
  476. void set_cpkt(const char* value, size_t size);
  477. ::std::string* mutable_cpkt();
  478. ::std::string* release_cpkt();
  479. void set_allocated_cpkt(::std::string* cpkt);
  480. // optional .Measure.Area3d area = 4;
  481. bool has_area() const;
  482. void clear_area();
  483. static const int kAreaFieldNumber = 4;
  484. const ::Measure::Area3d& area() const;
  485. ::Measure::Area3d* release_area();
  486. ::Measure::Area3d* mutable_area();
  487. void set_allocated_area(::Measure::Area3d* area);
  488. // optional int64 point_size = 1 [default = 8192];
  489. bool has_point_size() const;
  490. void clear_point_size();
  491. static const int kPointSizeFieldNumber = 1;
  492. ::google::protobuf::int64 point_size() const;
  493. void set_point_size(::google::protobuf::int64 value);
  494. // optional int64 cls_num = 2 [default = 3];
  495. bool has_cls_num() const;
  496. void clear_cls_num();
  497. static const int kClsNumFieldNumber = 2;
  498. ::google::protobuf::int64 cls_num() const;
  499. void set_cls_num(::google::protobuf::int64 value);
  500. // optional double freq = 3 [default = 50];
  501. bool has_freq() const;
  502. void clear_freq();
  503. static const int kFreqFieldNumber = 3;
  504. double freq() const;
  505. void set_freq(double value);
  506. // @@protoc_insertion_point(class_scope:Measure.PointSiftParameter)
  507. private:
  508. void set_has_point_size();
  509. void clear_has_point_size();
  510. void set_has_cls_num();
  511. void clear_has_cls_num();
  512. void set_has_freq();
  513. void clear_has_freq();
  514. void set_has_area();
  515. void clear_has_area();
  516. void set_has_graph();
  517. void clear_has_graph();
  518. void set_has_cpkt();
  519. void clear_has_cpkt();
  520. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  521. ::google::protobuf::internal::HasBits<1> _has_bits_;
  522. mutable int _cached_size_;
  523. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_graph_;
  524. ::google::protobuf::internal::ArenaStringPtr graph_;
  525. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_cpkt_;
  526. ::google::protobuf::internal::ArenaStringPtr cpkt_;
  527. ::Measure::Area3d* area_;
  528. ::google::protobuf::int64 point_size_;
  529. ::google::protobuf::int64 cls_num_;
  530. double freq_;
  531. friend struct ::protobuf_locater_5fparameter_2eproto::TableStruct;
  532. friend void ::protobuf_locater_5fparameter_2eproto::InitDefaultsPointSiftParameterImpl();
  533. };
  534. // -------------------------------------------------------------------
  535. class cnnParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Measure.cnnParameter) */ {
  536. public:
  537. cnnParameter();
  538. virtual ~cnnParameter();
  539. cnnParameter(const cnnParameter& from);
  540. inline cnnParameter& operator=(const cnnParameter& from) {
  541. CopyFrom(from);
  542. return *this;
  543. }
  544. #if LANG_CXX11
  545. cnnParameter(cnnParameter&& from) noexcept
  546. : cnnParameter() {
  547. *this = ::std::move(from);
  548. }
  549. inline cnnParameter& operator=(cnnParameter&& from) noexcept {
  550. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  551. if (this != &from) InternalSwap(&from);
  552. } else {
  553. CopyFrom(from);
  554. }
  555. return *this;
  556. }
  557. #endif
  558. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  559. return _internal_metadata_.unknown_fields();
  560. }
  561. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  562. return _internal_metadata_.mutable_unknown_fields();
  563. }
  564. static const ::google::protobuf::Descriptor* descriptor();
  565. static const cnnParameter& default_instance();
  566. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  567. static inline const cnnParameter* internal_default_instance() {
  568. return reinterpret_cast<const cnnParameter*>(
  569. &_cnnParameter_default_instance_);
  570. }
  571. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  572. 3;
  573. void Swap(cnnParameter* other);
  574. friend void swap(cnnParameter& a, cnnParameter& b) {
  575. a.Swap(&b);
  576. }
  577. // implements Message ----------------------------------------------
  578. inline cnnParameter* New() const PROTOBUF_FINAL { return New(NULL); }
  579. cnnParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  580. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  581. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  582. void CopyFrom(const cnnParameter& from);
  583. void MergeFrom(const cnnParameter& from);
  584. void Clear() PROTOBUF_FINAL;
  585. bool IsInitialized() const PROTOBUF_FINAL;
  586. size_t ByteSizeLong() const PROTOBUF_FINAL;
  587. bool MergePartialFromCodedStream(
  588. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  589. void SerializeWithCachedSizes(
  590. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  591. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  592. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  593. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  594. private:
  595. void SharedCtor();
  596. void SharedDtor();
  597. void SetCachedSize(int size) const PROTOBUF_FINAL;
  598. void InternalSwap(cnnParameter* other);
  599. private:
  600. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  601. return NULL;
  602. }
  603. inline void* MaybeArenaPtr() const {
  604. return NULL;
  605. }
  606. public:
  607. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  608. // nested types ----------------------------------------------------
  609. // accessors -------------------------------------------------------
  610. // optional string weights_file = 6 [default = "frozen_model.pb"];
  611. bool has_weights_file() const;
  612. void clear_weights_file();
  613. static const int kWeightsFileFieldNumber = 6;
  614. const ::std::string& weights_file() const;
  615. void set_weights_file(const ::std::string& value);
  616. #if LANG_CXX11
  617. void set_weights_file(::std::string&& value);
  618. #endif
  619. void set_weights_file(const char* value);
  620. void set_weights_file(const char* value, size_t size);
  621. ::std::string* mutable_weights_file();
  622. ::std::string* release_weights_file();
  623. void set_allocated_weights_file(::std::string* weights_file);
  624. // optional int64 length = 1 [default = 224];
  625. bool has_length() const;
  626. void clear_length();
  627. static const int kLengthFieldNumber = 1;
  628. ::google::protobuf::int64 length() const;
  629. void set_length(::google::protobuf::int64 value);
  630. // optional int64 width = 2 [default = 224];
  631. bool has_width() const;
  632. void clear_width();
  633. static const int kWidthFieldNumber = 2;
  634. ::google::protobuf::int64 width() const;
  635. void set_width(::google::protobuf::int64 value);
  636. // optional int64 height = 3 [default = 96];
  637. bool has_height() const;
  638. void clear_height();
  639. static const int kHeightFieldNumber = 3;
  640. ::google::protobuf::int64 height() const;
  641. void set_height(::google::protobuf::int64 value);
  642. // optional int64 freq = 4 [default = 25];
  643. bool has_freq() const;
  644. void clear_freq();
  645. static const int kFreqFieldNumber = 4;
  646. ::google::protobuf::int64 freq() const;
  647. void set_freq(::google::protobuf::int64 value);
  648. // optional int64 nclass = 5 [default = 3];
  649. bool has_nclass() const;
  650. void clear_nclass();
  651. static const int kNclassFieldNumber = 5;
  652. ::google::protobuf::int64 nclass() const;
  653. void set_nclass(::google::protobuf::int64 value);
  654. // @@protoc_insertion_point(class_scope:Measure.cnnParameter)
  655. private:
  656. void set_has_length();
  657. void clear_has_length();
  658. void set_has_width();
  659. void clear_has_width();
  660. void set_has_height();
  661. void clear_has_height();
  662. void set_has_freq();
  663. void clear_has_freq();
  664. void set_has_nclass();
  665. void clear_has_nclass();
  666. void set_has_weights_file();
  667. void clear_has_weights_file();
  668. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  669. ::google::protobuf::internal::HasBits<1> _has_bits_;
  670. mutable int _cached_size_;
  671. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_weights_file_;
  672. ::google::protobuf::internal::ArenaStringPtr weights_file_;
  673. ::google::protobuf::int64 length_;
  674. ::google::protobuf::int64 width_;
  675. ::google::protobuf::int64 height_;
  676. ::google::protobuf::int64 freq_;
  677. ::google::protobuf::int64 nclass_;
  678. friend struct ::protobuf_locater_5fparameter_2eproto::TableStruct;
  679. friend void ::protobuf_locater_5fparameter_2eproto::InitDefaultscnnParameterImpl();
  680. };
  681. // -------------------------------------------------------------------
  682. class LocateParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Measure.LocateParameter) */ {
  683. public:
  684. LocateParameter();
  685. virtual ~LocateParameter();
  686. LocateParameter(const LocateParameter& from);
  687. inline LocateParameter& operator=(const LocateParameter& from) {
  688. CopyFrom(from);
  689. return *this;
  690. }
  691. #if LANG_CXX11
  692. LocateParameter(LocateParameter&& from) noexcept
  693. : LocateParameter() {
  694. *this = ::std::move(from);
  695. }
  696. inline LocateParameter& operator=(LocateParameter&& from) noexcept {
  697. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  698. if (this != &from) InternalSwap(&from);
  699. } else {
  700. CopyFrom(from);
  701. }
  702. return *this;
  703. }
  704. #endif
  705. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  706. return _internal_metadata_.unknown_fields();
  707. }
  708. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  709. return _internal_metadata_.mutable_unknown_fields();
  710. }
  711. static const ::google::protobuf::Descriptor* descriptor();
  712. static const LocateParameter& default_instance();
  713. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  714. static inline const LocateParameter* internal_default_instance() {
  715. return reinterpret_cast<const LocateParameter*>(
  716. &_LocateParameter_default_instance_);
  717. }
  718. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  719. 4;
  720. void Swap(LocateParameter* other);
  721. friend void swap(LocateParameter& a, LocateParameter& b) {
  722. a.Swap(&b);
  723. }
  724. // implements Message ----------------------------------------------
  725. inline LocateParameter* New() const PROTOBUF_FINAL { return New(NULL); }
  726. LocateParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  727. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  728. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  729. void CopyFrom(const LocateParameter& from);
  730. void MergeFrom(const LocateParameter& from);
  731. void Clear() PROTOBUF_FINAL;
  732. bool IsInitialized() const PROTOBUF_FINAL;
  733. size_t ByteSizeLong() const PROTOBUF_FINAL;
  734. bool MergePartialFromCodedStream(
  735. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  736. void SerializeWithCachedSizes(
  737. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  738. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  739. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  740. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  741. private:
  742. void SharedCtor();
  743. void SharedDtor();
  744. void SetCachedSize(int size) const PROTOBUF_FINAL;
  745. void InternalSwap(LocateParameter* other);
  746. private:
  747. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  748. return NULL;
  749. }
  750. inline void* MaybeArenaPtr() const {
  751. return NULL;
  752. }
  753. public:
  754. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  755. // nested types ----------------------------------------------------
  756. // accessors -------------------------------------------------------
  757. // optional .Measure.Area3d area = 1;
  758. bool has_area() const;
  759. void clear_area();
  760. static const int kAreaFieldNumber = 1;
  761. const ::Measure::Area3d& area() const;
  762. ::Measure::Area3d* release_area();
  763. ::Measure::Area3d* mutable_area();
  764. void set_allocated_area(::Measure::Area3d* area);
  765. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  766. bool has_net_3dcnn_parameter() const;
  767. void clear_net_3dcnn_parameter();
  768. static const int kNet3DcnnParameterFieldNumber = 2;
  769. const ::Measure::cnnParameter& net_3dcnn_parameter() const;
  770. ::Measure::cnnParameter* release_net_3dcnn_parameter();
  771. ::Measure::cnnParameter* mutable_net_3dcnn_parameter();
  772. void set_allocated_net_3dcnn_parameter(::Measure::cnnParameter* net_3dcnn_parameter);
  773. // optional .Measure.PointSiftParameter seg_parameter = 3;
  774. bool has_seg_parameter() const;
  775. void clear_seg_parameter();
  776. static const int kSegParameterFieldNumber = 3;
  777. const ::Measure::PointSiftParameter& seg_parameter() const;
  778. ::Measure::PointSiftParameter* release_seg_parameter();
  779. ::Measure::PointSiftParameter* mutable_seg_parameter();
  780. void set_allocated_seg_parameter(::Measure::PointSiftParameter* seg_parameter);
  781. // optional .Measure.YoloParameter yolo_parameter = 4;
  782. bool has_yolo_parameter() const;
  783. void clear_yolo_parameter();
  784. static const int kYoloParameterFieldNumber = 4;
  785. const ::Measure::YoloParameter& yolo_parameter() const;
  786. ::Measure::YoloParameter* release_yolo_parameter();
  787. ::Measure::YoloParameter* mutable_yolo_parameter();
  788. void set_allocated_yolo_parameter(::Measure::YoloParameter* yolo_parameter);
  789. // @@protoc_insertion_point(class_scope:Measure.LocateParameter)
  790. private:
  791. void set_has_area();
  792. void clear_has_area();
  793. void set_has_net_3dcnn_parameter();
  794. void clear_has_net_3dcnn_parameter();
  795. void set_has_seg_parameter();
  796. void clear_has_seg_parameter();
  797. void set_has_yolo_parameter();
  798. void clear_has_yolo_parameter();
  799. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  800. ::google::protobuf::internal::HasBits<1> _has_bits_;
  801. mutable int _cached_size_;
  802. ::Measure::Area3d* area_;
  803. ::Measure::cnnParameter* net_3dcnn_parameter_;
  804. ::Measure::PointSiftParameter* seg_parameter_;
  805. ::Measure::YoloParameter* yolo_parameter_;
  806. friend struct ::protobuf_locater_5fparameter_2eproto::TableStruct;
  807. friend void ::protobuf_locater_5fparameter_2eproto::InitDefaultsLocateParameterImpl();
  808. };
  809. // ===================================================================
  810. // ===================================================================
  811. #ifdef __GNUC__
  812. #pragma GCC diagnostic push
  813. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  814. #endif // __GNUC__
  815. // Area3d
  816. // optional double x_min = 1 [default = 0];
  817. inline bool Area3d::has_x_min() const {
  818. return (_has_bits_[0] & 0x00000001u) != 0;
  819. }
  820. inline void Area3d::set_has_x_min() {
  821. _has_bits_[0] |= 0x00000001u;
  822. }
  823. inline void Area3d::clear_has_x_min() {
  824. _has_bits_[0] &= ~0x00000001u;
  825. }
  826. inline void Area3d::clear_x_min() {
  827. x_min_ = 0;
  828. clear_has_x_min();
  829. }
  830. inline double Area3d::x_min() const {
  831. // @@protoc_insertion_point(field_get:Measure.Area3d.x_min)
  832. return x_min_;
  833. }
  834. inline void Area3d::set_x_min(double value) {
  835. set_has_x_min();
  836. x_min_ = value;
  837. // @@protoc_insertion_point(field_set:Measure.Area3d.x_min)
  838. }
  839. // optional double x_max = 2 [default = 12000];
  840. inline bool Area3d::has_x_max() const {
  841. return (_has_bits_[0] & 0x00000002u) != 0;
  842. }
  843. inline void Area3d::set_has_x_max() {
  844. _has_bits_[0] |= 0x00000002u;
  845. }
  846. inline void Area3d::clear_has_x_max() {
  847. _has_bits_[0] &= ~0x00000002u;
  848. }
  849. inline void Area3d::clear_x_max() {
  850. x_max_ = 12000;
  851. clear_has_x_max();
  852. }
  853. inline double Area3d::x_max() const {
  854. // @@protoc_insertion_point(field_get:Measure.Area3d.x_max)
  855. return x_max_;
  856. }
  857. inline void Area3d::set_x_max(double value) {
  858. set_has_x_max();
  859. x_max_ = value;
  860. // @@protoc_insertion_point(field_set:Measure.Area3d.x_max)
  861. }
  862. // optional double y_min = 3 [default = 4500];
  863. inline bool Area3d::has_y_min() const {
  864. return (_has_bits_[0] & 0x00000004u) != 0;
  865. }
  866. inline void Area3d::set_has_y_min() {
  867. _has_bits_[0] |= 0x00000004u;
  868. }
  869. inline void Area3d::clear_has_y_min() {
  870. _has_bits_[0] &= ~0x00000004u;
  871. }
  872. inline void Area3d::clear_y_min() {
  873. y_min_ = 4500;
  874. clear_has_y_min();
  875. }
  876. inline double Area3d::y_min() const {
  877. // @@protoc_insertion_point(field_get:Measure.Area3d.y_min)
  878. return y_min_;
  879. }
  880. inline void Area3d::set_y_min(double value) {
  881. set_has_y_min();
  882. y_min_ = value;
  883. // @@protoc_insertion_point(field_set:Measure.Area3d.y_min)
  884. }
  885. // optional double y_max = 4 [default = 11000];
  886. inline bool Area3d::has_y_max() const {
  887. return (_has_bits_[0] & 0x00000008u) != 0;
  888. }
  889. inline void Area3d::set_has_y_max() {
  890. _has_bits_[0] |= 0x00000008u;
  891. }
  892. inline void Area3d::clear_has_y_max() {
  893. _has_bits_[0] &= ~0x00000008u;
  894. }
  895. inline void Area3d::clear_y_max() {
  896. y_max_ = 11000;
  897. clear_has_y_max();
  898. }
  899. inline double Area3d::y_max() const {
  900. // @@protoc_insertion_point(field_get:Measure.Area3d.y_max)
  901. return y_max_;
  902. }
  903. inline void Area3d::set_y_max(double value) {
  904. set_has_y_max();
  905. y_max_ = value;
  906. // @@protoc_insertion_point(field_set:Measure.Area3d.y_max)
  907. }
  908. // optional double z_min = 5 [default = 60];
  909. inline bool Area3d::has_z_min() const {
  910. return (_has_bits_[0] & 0x00000010u) != 0;
  911. }
  912. inline void Area3d::set_has_z_min() {
  913. _has_bits_[0] |= 0x00000010u;
  914. }
  915. inline void Area3d::clear_has_z_min() {
  916. _has_bits_[0] &= ~0x00000010u;
  917. }
  918. inline void Area3d::clear_z_min() {
  919. z_min_ = 60;
  920. clear_has_z_min();
  921. }
  922. inline double Area3d::z_min() const {
  923. // @@protoc_insertion_point(field_get:Measure.Area3d.z_min)
  924. return z_min_;
  925. }
  926. inline void Area3d::set_z_min(double value) {
  927. set_has_z_min();
  928. z_min_ = value;
  929. // @@protoc_insertion_point(field_set:Measure.Area3d.z_min)
  930. }
  931. // optional double z_max = 6 [default = 3000];
  932. inline bool Area3d::has_z_max() const {
  933. return (_has_bits_[0] & 0x00000020u) != 0;
  934. }
  935. inline void Area3d::set_has_z_max() {
  936. _has_bits_[0] |= 0x00000020u;
  937. }
  938. inline void Area3d::clear_has_z_max() {
  939. _has_bits_[0] &= ~0x00000020u;
  940. }
  941. inline void Area3d::clear_z_max() {
  942. z_max_ = 3000;
  943. clear_has_z_max();
  944. }
  945. inline double Area3d::z_max() const {
  946. // @@protoc_insertion_point(field_get:Measure.Area3d.z_max)
  947. return z_max_;
  948. }
  949. inline void Area3d::set_z_max(double value) {
  950. set_has_z_max();
  951. z_max_ = value;
  952. // @@protoc_insertion_point(field_set:Measure.Area3d.z_max)
  953. }
  954. // -------------------------------------------------------------------
  955. // YoloParameter
  956. // optional string cfg = 1 [default = ""];
  957. inline bool YoloParameter::has_cfg() const {
  958. return (_has_bits_[0] & 0x00000001u) != 0;
  959. }
  960. inline void YoloParameter::set_has_cfg() {
  961. _has_bits_[0] |= 0x00000001u;
  962. }
  963. inline void YoloParameter::clear_has_cfg() {
  964. _has_bits_[0] &= ~0x00000001u;
  965. }
  966. inline void YoloParameter::clear_cfg() {
  967. cfg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  968. clear_has_cfg();
  969. }
  970. inline const ::std::string& YoloParameter::cfg() const {
  971. // @@protoc_insertion_point(field_get:Measure.YoloParameter.cfg)
  972. return cfg_.GetNoArena();
  973. }
  974. inline void YoloParameter::set_cfg(const ::std::string& value) {
  975. set_has_cfg();
  976. cfg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  977. // @@protoc_insertion_point(field_set:Measure.YoloParameter.cfg)
  978. }
  979. #if LANG_CXX11
  980. inline void YoloParameter::set_cfg(::std::string&& value) {
  981. set_has_cfg();
  982. cfg_.SetNoArena(
  983. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  984. // @@protoc_insertion_point(field_set_rvalue:Measure.YoloParameter.cfg)
  985. }
  986. #endif
  987. inline void YoloParameter::set_cfg(const char* value) {
  988. GOOGLE_DCHECK(value != NULL);
  989. set_has_cfg();
  990. cfg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  991. // @@protoc_insertion_point(field_set_char:Measure.YoloParameter.cfg)
  992. }
  993. inline void YoloParameter::set_cfg(const char* value, size_t size) {
  994. set_has_cfg();
  995. cfg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  996. ::std::string(reinterpret_cast<const char*>(value), size));
  997. // @@protoc_insertion_point(field_set_pointer:Measure.YoloParameter.cfg)
  998. }
  999. inline ::std::string* YoloParameter::mutable_cfg() {
  1000. set_has_cfg();
  1001. // @@protoc_insertion_point(field_mutable:Measure.YoloParameter.cfg)
  1002. return cfg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1003. }
  1004. inline ::std::string* YoloParameter::release_cfg() {
  1005. // @@protoc_insertion_point(field_release:Measure.YoloParameter.cfg)
  1006. clear_has_cfg();
  1007. return cfg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1008. }
  1009. inline void YoloParameter::set_allocated_cfg(::std::string* cfg) {
  1010. if (cfg != NULL) {
  1011. set_has_cfg();
  1012. } else {
  1013. clear_has_cfg();
  1014. }
  1015. cfg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cfg);
  1016. // @@protoc_insertion_point(field_set_allocated:Measure.YoloParameter.cfg)
  1017. }
  1018. // optional string weights = 2 [default = ""];
  1019. inline bool YoloParameter::has_weights() const {
  1020. return (_has_bits_[0] & 0x00000002u) != 0;
  1021. }
  1022. inline void YoloParameter::set_has_weights() {
  1023. _has_bits_[0] |= 0x00000002u;
  1024. }
  1025. inline void YoloParameter::clear_has_weights() {
  1026. _has_bits_[0] &= ~0x00000002u;
  1027. }
  1028. inline void YoloParameter::clear_weights() {
  1029. weights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1030. clear_has_weights();
  1031. }
  1032. inline const ::std::string& YoloParameter::weights() const {
  1033. // @@protoc_insertion_point(field_get:Measure.YoloParameter.weights)
  1034. return weights_.GetNoArena();
  1035. }
  1036. inline void YoloParameter::set_weights(const ::std::string& value) {
  1037. set_has_weights();
  1038. weights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1039. // @@protoc_insertion_point(field_set:Measure.YoloParameter.weights)
  1040. }
  1041. #if LANG_CXX11
  1042. inline void YoloParameter::set_weights(::std::string&& value) {
  1043. set_has_weights();
  1044. weights_.SetNoArena(
  1045. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1046. // @@protoc_insertion_point(field_set_rvalue:Measure.YoloParameter.weights)
  1047. }
  1048. #endif
  1049. inline void YoloParameter::set_weights(const char* value) {
  1050. GOOGLE_DCHECK(value != NULL);
  1051. set_has_weights();
  1052. weights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1053. // @@protoc_insertion_point(field_set_char:Measure.YoloParameter.weights)
  1054. }
  1055. inline void YoloParameter::set_weights(const char* value, size_t size) {
  1056. set_has_weights();
  1057. weights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1058. ::std::string(reinterpret_cast<const char*>(value), size));
  1059. // @@protoc_insertion_point(field_set_pointer:Measure.YoloParameter.weights)
  1060. }
  1061. inline ::std::string* YoloParameter::mutable_weights() {
  1062. set_has_weights();
  1063. // @@protoc_insertion_point(field_mutable:Measure.YoloParameter.weights)
  1064. return weights_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1065. }
  1066. inline ::std::string* YoloParameter::release_weights() {
  1067. // @@protoc_insertion_point(field_release:Measure.YoloParameter.weights)
  1068. clear_has_weights();
  1069. return weights_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1070. }
  1071. inline void YoloParameter::set_allocated_weights(::std::string* weights) {
  1072. if (weights != NULL) {
  1073. set_has_weights();
  1074. } else {
  1075. clear_has_weights();
  1076. }
  1077. weights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), weights);
  1078. // @@protoc_insertion_point(field_set_allocated:Measure.YoloParameter.weights)
  1079. }
  1080. // optional double min_x = 3 [default = 0];
  1081. inline bool YoloParameter::has_min_x() const {
  1082. return (_has_bits_[0] & 0x00000004u) != 0;
  1083. }
  1084. inline void YoloParameter::set_has_min_x() {
  1085. _has_bits_[0] |= 0x00000004u;
  1086. }
  1087. inline void YoloParameter::clear_has_min_x() {
  1088. _has_bits_[0] &= ~0x00000004u;
  1089. }
  1090. inline void YoloParameter::clear_min_x() {
  1091. min_x_ = 0;
  1092. clear_has_min_x();
  1093. }
  1094. inline double YoloParameter::min_x() const {
  1095. // @@protoc_insertion_point(field_get:Measure.YoloParameter.min_x)
  1096. return min_x_;
  1097. }
  1098. inline void YoloParameter::set_min_x(double value) {
  1099. set_has_min_x();
  1100. min_x_ = value;
  1101. // @@protoc_insertion_point(field_set:Measure.YoloParameter.min_x)
  1102. }
  1103. // optional double max_x = 4 [default = 12000];
  1104. inline bool YoloParameter::has_max_x() const {
  1105. return (_has_bits_[0] & 0x00000008u) != 0;
  1106. }
  1107. inline void YoloParameter::set_has_max_x() {
  1108. _has_bits_[0] |= 0x00000008u;
  1109. }
  1110. inline void YoloParameter::clear_has_max_x() {
  1111. _has_bits_[0] &= ~0x00000008u;
  1112. }
  1113. inline void YoloParameter::clear_max_x() {
  1114. max_x_ = 12000;
  1115. clear_has_max_x();
  1116. }
  1117. inline double YoloParameter::max_x() const {
  1118. // @@protoc_insertion_point(field_get:Measure.YoloParameter.max_x)
  1119. return max_x_;
  1120. }
  1121. inline void YoloParameter::set_max_x(double value) {
  1122. set_has_max_x();
  1123. max_x_ = value;
  1124. // @@protoc_insertion_point(field_set:Measure.YoloParameter.max_x)
  1125. }
  1126. // optional double min_y = 5 [default = 4500];
  1127. inline bool YoloParameter::has_min_y() const {
  1128. return (_has_bits_[0] & 0x00000010u) != 0;
  1129. }
  1130. inline void YoloParameter::set_has_min_y() {
  1131. _has_bits_[0] |= 0x00000010u;
  1132. }
  1133. inline void YoloParameter::clear_has_min_y() {
  1134. _has_bits_[0] &= ~0x00000010u;
  1135. }
  1136. inline void YoloParameter::clear_min_y() {
  1137. min_y_ = 4500;
  1138. clear_has_min_y();
  1139. }
  1140. inline double YoloParameter::min_y() const {
  1141. // @@protoc_insertion_point(field_get:Measure.YoloParameter.min_y)
  1142. return min_y_;
  1143. }
  1144. inline void YoloParameter::set_min_y(double value) {
  1145. set_has_min_y();
  1146. min_y_ = value;
  1147. // @@protoc_insertion_point(field_set:Measure.YoloParameter.min_y)
  1148. }
  1149. // optional double max_y = 6 [default = 11000];
  1150. inline bool YoloParameter::has_max_y() const {
  1151. return (_has_bits_[0] & 0x00000020u) != 0;
  1152. }
  1153. inline void YoloParameter::set_has_max_y() {
  1154. _has_bits_[0] |= 0x00000020u;
  1155. }
  1156. inline void YoloParameter::clear_has_max_y() {
  1157. _has_bits_[0] &= ~0x00000020u;
  1158. }
  1159. inline void YoloParameter::clear_max_y() {
  1160. max_y_ = 11000;
  1161. clear_has_max_y();
  1162. }
  1163. inline double YoloParameter::max_y() const {
  1164. // @@protoc_insertion_point(field_get:Measure.YoloParameter.max_y)
  1165. return max_y_;
  1166. }
  1167. inline void YoloParameter::set_max_y(double value) {
  1168. set_has_max_y();
  1169. max_y_ = value;
  1170. // @@protoc_insertion_point(field_set:Measure.YoloParameter.max_y)
  1171. }
  1172. // optional double freq = 7 [default = 25];
  1173. inline bool YoloParameter::has_freq() const {
  1174. return (_has_bits_[0] & 0x00000040u) != 0;
  1175. }
  1176. inline void YoloParameter::set_has_freq() {
  1177. _has_bits_[0] |= 0x00000040u;
  1178. }
  1179. inline void YoloParameter::clear_has_freq() {
  1180. _has_bits_[0] &= ~0x00000040u;
  1181. }
  1182. inline void YoloParameter::clear_freq() {
  1183. freq_ = 25;
  1184. clear_has_freq();
  1185. }
  1186. inline double YoloParameter::freq() const {
  1187. // @@protoc_insertion_point(field_get:Measure.YoloParameter.freq)
  1188. return freq_;
  1189. }
  1190. inline void YoloParameter::set_freq(double value) {
  1191. set_has_freq();
  1192. freq_ = value;
  1193. // @@protoc_insertion_point(field_set:Measure.YoloParameter.freq)
  1194. }
  1195. // -------------------------------------------------------------------
  1196. // PointSiftParameter
  1197. // optional int64 point_size = 1 [default = 8192];
  1198. inline bool PointSiftParameter::has_point_size() const {
  1199. return (_has_bits_[0] & 0x00000008u) != 0;
  1200. }
  1201. inline void PointSiftParameter::set_has_point_size() {
  1202. _has_bits_[0] |= 0x00000008u;
  1203. }
  1204. inline void PointSiftParameter::clear_has_point_size() {
  1205. _has_bits_[0] &= ~0x00000008u;
  1206. }
  1207. inline void PointSiftParameter::clear_point_size() {
  1208. point_size_ = GOOGLE_LONGLONG(8192);
  1209. clear_has_point_size();
  1210. }
  1211. inline ::google::protobuf::int64 PointSiftParameter::point_size() const {
  1212. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.point_size)
  1213. return point_size_;
  1214. }
  1215. inline void PointSiftParameter::set_point_size(::google::protobuf::int64 value) {
  1216. set_has_point_size();
  1217. point_size_ = value;
  1218. // @@protoc_insertion_point(field_set:Measure.PointSiftParameter.point_size)
  1219. }
  1220. // optional int64 cls_num = 2 [default = 3];
  1221. inline bool PointSiftParameter::has_cls_num() const {
  1222. return (_has_bits_[0] & 0x00000010u) != 0;
  1223. }
  1224. inline void PointSiftParameter::set_has_cls_num() {
  1225. _has_bits_[0] |= 0x00000010u;
  1226. }
  1227. inline void PointSiftParameter::clear_has_cls_num() {
  1228. _has_bits_[0] &= ~0x00000010u;
  1229. }
  1230. inline void PointSiftParameter::clear_cls_num() {
  1231. cls_num_ = GOOGLE_LONGLONG(3);
  1232. clear_has_cls_num();
  1233. }
  1234. inline ::google::protobuf::int64 PointSiftParameter::cls_num() const {
  1235. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.cls_num)
  1236. return cls_num_;
  1237. }
  1238. inline void PointSiftParameter::set_cls_num(::google::protobuf::int64 value) {
  1239. set_has_cls_num();
  1240. cls_num_ = value;
  1241. // @@protoc_insertion_point(field_set:Measure.PointSiftParameter.cls_num)
  1242. }
  1243. // optional double freq = 3 [default = 50];
  1244. inline bool PointSiftParameter::has_freq() const {
  1245. return (_has_bits_[0] & 0x00000020u) != 0;
  1246. }
  1247. inline void PointSiftParameter::set_has_freq() {
  1248. _has_bits_[0] |= 0x00000020u;
  1249. }
  1250. inline void PointSiftParameter::clear_has_freq() {
  1251. _has_bits_[0] &= ~0x00000020u;
  1252. }
  1253. inline void PointSiftParameter::clear_freq() {
  1254. freq_ = 50;
  1255. clear_has_freq();
  1256. }
  1257. inline double PointSiftParameter::freq() const {
  1258. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.freq)
  1259. return freq_;
  1260. }
  1261. inline void PointSiftParameter::set_freq(double value) {
  1262. set_has_freq();
  1263. freq_ = value;
  1264. // @@protoc_insertion_point(field_set:Measure.PointSiftParameter.freq)
  1265. }
  1266. // optional .Measure.Area3d area = 4;
  1267. inline bool PointSiftParameter::has_area() const {
  1268. return (_has_bits_[0] & 0x00000004u) != 0;
  1269. }
  1270. inline void PointSiftParameter::set_has_area() {
  1271. _has_bits_[0] |= 0x00000004u;
  1272. }
  1273. inline void PointSiftParameter::clear_has_area() {
  1274. _has_bits_[0] &= ~0x00000004u;
  1275. }
  1276. inline void PointSiftParameter::clear_area() {
  1277. if (area_ != NULL) area_->Clear();
  1278. clear_has_area();
  1279. }
  1280. inline const ::Measure::Area3d& PointSiftParameter::area() const {
  1281. const ::Measure::Area3d* p = area_;
  1282. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.area)
  1283. return p != NULL ? *p : *reinterpret_cast<const ::Measure::Area3d*>(
  1284. &::Measure::_Area3d_default_instance_);
  1285. }
  1286. inline ::Measure::Area3d* PointSiftParameter::release_area() {
  1287. // @@protoc_insertion_point(field_release:Measure.PointSiftParameter.area)
  1288. clear_has_area();
  1289. ::Measure::Area3d* temp = area_;
  1290. area_ = NULL;
  1291. return temp;
  1292. }
  1293. inline ::Measure::Area3d* PointSiftParameter::mutable_area() {
  1294. set_has_area();
  1295. if (area_ == NULL) {
  1296. area_ = new ::Measure::Area3d;
  1297. }
  1298. // @@protoc_insertion_point(field_mutable:Measure.PointSiftParameter.area)
  1299. return area_;
  1300. }
  1301. inline void PointSiftParameter::set_allocated_area(::Measure::Area3d* area) {
  1302. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1303. if (message_arena == NULL) {
  1304. delete area_;
  1305. }
  1306. if (area) {
  1307. ::google::protobuf::Arena* submessage_arena = NULL;
  1308. if (message_arena != submessage_arena) {
  1309. area = ::google::protobuf::internal::GetOwnedMessage(
  1310. message_arena, area, submessage_arena);
  1311. }
  1312. set_has_area();
  1313. } else {
  1314. clear_has_area();
  1315. }
  1316. area_ = area;
  1317. // @@protoc_insertion_point(field_set_allocated:Measure.PointSiftParameter.area)
  1318. }
  1319. // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
  1320. inline bool PointSiftParameter::has_graph() const {
  1321. return (_has_bits_[0] & 0x00000001u) != 0;
  1322. }
  1323. inline void PointSiftParameter::set_has_graph() {
  1324. _has_bits_[0] |= 0x00000001u;
  1325. }
  1326. inline void PointSiftParameter::clear_has_graph() {
  1327. _has_bits_[0] &= ~0x00000001u;
  1328. }
  1329. inline void PointSiftParameter::clear_graph() {
  1330. graph_.ClearToDefaultNoArena(&::Measure::PointSiftParameter::_default_graph_.get());
  1331. clear_has_graph();
  1332. }
  1333. inline const ::std::string& PointSiftParameter::graph() const {
  1334. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.graph)
  1335. return graph_.GetNoArena();
  1336. }
  1337. inline void PointSiftParameter::set_graph(const ::std::string& value) {
  1338. set_has_graph();
  1339. graph_.SetNoArena(&::Measure::PointSiftParameter::_default_graph_.get(), value);
  1340. // @@protoc_insertion_point(field_set:Measure.PointSiftParameter.graph)
  1341. }
  1342. #if LANG_CXX11
  1343. inline void PointSiftParameter::set_graph(::std::string&& value) {
  1344. set_has_graph();
  1345. graph_.SetNoArena(
  1346. &::Measure::PointSiftParameter::_default_graph_.get(), ::std::move(value));
  1347. // @@protoc_insertion_point(field_set_rvalue:Measure.PointSiftParameter.graph)
  1348. }
  1349. #endif
  1350. inline void PointSiftParameter::set_graph(const char* value) {
  1351. GOOGLE_DCHECK(value != NULL);
  1352. set_has_graph();
  1353. graph_.SetNoArena(&::Measure::PointSiftParameter::_default_graph_.get(), ::std::string(value));
  1354. // @@protoc_insertion_point(field_set_char:Measure.PointSiftParameter.graph)
  1355. }
  1356. inline void PointSiftParameter::set_graph(const char* value, size_t size) {
  1357. set_has_graph();
  1358. graph_.SetNoArena(&::Measure::PointSiftParameter::_default_graph_.get(),
  1359. ::std::string(reinterpret_cast<const char*>(value), size));
  1360. // @@protoc_insertion_point(field_set_pointer:Measure.PointSiftParameter.graph)
  1361. }
  1362. inline ::std::string* PointSiftParameter::mutable_graph() {
  1363. set_has_graph();
  1364. // @@protoc_insertion_point(field_mutable:Measure.PointSiftParameter.graph)
  1365. return graph_.MutableNoArena(&::Measure::PointSiftParameter::_default_graph_.get());
  1366. }
  1367. inline ::std::string* PointSiftParameter::release_graph() {
  1368. // @@protoc_insertion_point(field_release:Measure.PointSiftParameter.graph)
  1369. clear_has_graph();
  1370. return graph_.ReleaseNoArena(&::Measure::PointSiftParameter::_default_graph_.get());
  1371. }
  1372. inline void PointSiftParameter::set_allocated_graph(::std::string* graph) {
  1373. if (graph != NULL) {
  1374. set_has_graph();
  1375. } else {
  1376. clear_has_graph();
  1377. }
  1378. graph_.SetAllocatedNoArena(&::Measure::PointSiftParameter::_default_graph_.get(), graph);
  1379. // @@protoc_insertion_point(field_set_allocated:Measure.PointSiftParameter.graph)
  1380. }
  1381. // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
  1382. inline bool PointSiftParameter::has_cpkt() const {
  1383. return (_has_bits_[0] & 0x00000002u) != 0;
  1384. }
  1385. inline void PointSiftParameter::set_has_cpkt() {
  1386. _has_bits_[0] |= 0x00000002u;
  1387. }
  1388. inline void PointSiftParameter::clear_has_cpkt() {
  1389. _has_bits_[0] &= ~0x00000002u;
  1390. }
  1391. inline void PointSiftParameter::clear_cpkt() {
  1392. cpkt_.ClearToDefaultNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get());
  1393. clear_has_cpkt();
  1394. }
  1395. inline const ::std::string& PointSiftParameter::cpkt() const {
  1396. // @@protoc_insertion_point(field_get:Measure.PointSiftParameter.cpkt)
  1397. return cpkt_.GetNoArena();
  1398. }
  1399. inline void PointSiftParameter::set_cpkt(const ::std::string& value) {
  1400. set_has_cpkt();
  1401. cpkt_.SetNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get(), value);
  1402. // @@protoc_insertion_point(field_set:Measure.PointSiftParameter.cpkt)
  1403. }
  1404. #if LANG_CXX11
  1405. inline void PointSiftParameter::set_cpkt(::std::string&& value) {
  1406. set_has_cpkt();
  1407. cpkt_.SetNoArena(
  1408. &::Measure::PointSiftParameter::_default_cpkt_.get(), ::std::move(value));
  1409. // @@protoc_insertion_point(field_set_rvalue:Measure.PointSiftParameter.cpkt)
  1410. }
  1411. #endif
  1412. inline void PointSiftParameter::set_cpkt(const char* value) {
  1413. GOOGLE_DCHECK(value != NULL);
  1414. set_has_cpkt();
  1415. cpkt_.SetNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get(), ::std::string(value));
  1416. // @@protoc_insertion_point(field_set_char:Measure.PointSiftParameter.cpkt)
  1417. }
  1418. inline void PointSiftParameter::set_cpkt(const char* value, size_t size) {
  1419. set_has_cpkt();
  1420. cpkt_.SetNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get(),
  1421. ::std::string(reinterpret_cast<const char*>(value), size));
  1422. // @@protoc_insertion_point(field_set_pointer:Measure.PointSiftParameter.cpkt)
  1423. }
  1424. inline ::std::string* PointSiftParameter::mutable_cpkt() {
  1425. set_has_cpkt();
  1426. // @@protoc_insertion_point(field_mutable:Measure.PointSiftParameter.cpkt)
  1427. return cpkt_.MutableNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get());
  1428. }
  1429. inline ::std::string* PointSiftParameter::release_cpkt() {
  1430. // @@protoc_insertion_point(field_release:Measure.PointSiftParameter.cpkt)
  1431. clear_has_cpkt();
  1432. return cpkt_.ReleaseNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get());
  1433. }
  1434. inline void PointSiftParameter::set_allocated_cpkt(::std::string* cpkt) {
  1435. if (cpkt != NULL) {
  1436. set_has_cpkt();
  1437. } else {
  1438. clear_has_cpkt();
  1439. }
  1440. cpkt_.SetAllocatedNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get(), cpkt);
  1441. // @@protoc_insertion_point(field_set_allocated:Measure.PointSiftParameter.cpkt)
  1442. }
  1443. // -------------------------------------------------------------------
  1444. // cnnParameter
  1445. // optional int64 length = 1 [default = 224];
  1446. inline bool cnnParameter::has_length() const {
  1447. return (_has_bits_[0] & 0x00000002u) != 0;
  1448. }
  1449. inline void cnnParameter::set_has_length() {
  1450. _has_bits_[0] |= 0x00000002u;
  1451. }
  1452. inline void cnnParameter::clear_has_length() {
  1453. _has_bits_[0] &= ~0x00000002u;
  1454. }
  1455. inline void cnnParameter::clear_length() {
  1456. length_ = GOOGLE_LONGLONG(224);
  1457. clear_has_length();
  1458. }
  1459. inline ::google::protobuf::int64 cnnParameter::length() const {
  1460. // @@protoc_insertion_point(field_get:Measure.cnnParameter.length)
  1461. return length_;
  1462. }
  1463. inline void cnnParameter::set_length(::google::protobuf::int64 value) {
  1464. set_has_length();
  1465. length_ = value;
  1466. // @@protoc_insertion_point(field_set:Measure.cnnParameter.length)
  1467. }
  1468. // optional int64 width = 2 [default = 224];
  1469. inline bool cnnParameter::has_width() const {
  1470. return (_has_bits_[0] & 0x00000004u) != 0;
  1471. }
  1472. inline void cnnParameter::set_has_width() {
  1473. _has_bits_[0] |= 0x00000004u;
  1474. }
  1475. inline void cnnParameter::clear_has_width() {
  1476. _has_bits_[0] &= ~0x00000004u;
  1477. }
  1478. inline void cnnParameter::clear_width() {
  1479. width_ = GOOGLE_LONGLONG(224);
  1480. clear_has_width();
  1481. }
  1482. inline ::google::protobuf::int64 cnnParameter::width() const {
  1483. // @@protoc_insertion_point(field_get:Measure.cnnParameter.width)
  1484. return width_;
  1485. }
  1486. inline void cnnParameter::set_width(::google::protobuf::int64 value) {
  1487. set_has_width();
  1488. width_ = value;
  1489. // @@protoc_insertion_point(field_set:Measure.cnnParameter.width)
  1490. }
  1491. // optional int64 height = 3 [default = 96];
  1492. inline bool cnnParameter::has_height() const {
  1493. return (_has_bits_[0] & 0x00000008u) != 0;
  1494. }
  1495. inline void cnnParameter::set_has_height() {
  1496. _has_bits_[0] |= 0x00000008u;
  1497. }
  1498. inline void cnnParameter::clear_has_height() {
  1499. _has_bits_[0] &= ~0x00000008u;
  1500. }
  1501. inline void cnnParameter::clear_height() {
  1502. height_ = GOOGLE_LONGLONG(96);
  1503. clear_has_height();
  1504. }
  1505. inline ::google::protobuf::int64 cnnParameter::height() const {
  1506. // @@protoc_insertion_point(field_get:Measure.cnnParameter.height)
  1507. return height_;
  1508. }
  1509. inline void cnnParameter::set_height(::google::protobuf::int64 value) {
  1510. set_has_height();
  1511. height_ = value;
  1512. // @@protoc_insertion_point(field_set:Measure.cnnParameter.height)
  1513. }
  1514. // optional int64 freq = 4 [default = 25];
  1515. inline bool cnnParameter::has_freq() const {
  1516. return (_has_bits_[0] & 0x00000010u) != 0;
  1517. }
  1518. inline void cnnParameter::set_has_freq() {
  1519. _has_bits_[0] |= 0x00000010u;
  1520. }
  1521. inline void cnnParameter::clear_has_freq() {
  1522. _has_bits_[0] &= ~0x00000010u;
  1523. }
  1524. inline void cnnParameter::clear_freq() {
  1525. freq_ = GOOGLE_LONGLONG(25);
  1526. clear_has_freq();
  1527. }
  1528. inline ::google::protobuf::int64 cnnParameter::freq() const {
  1529. // @@protoc_insertion_point(field_get:Measure.cnnParameter.freq)
  1530. return freq_;
  1531. }
  1532. inline void cnnParameter::set_freq(::google::protobuf::int64 value) {
  1533. set_has_freq();
  1534. freq_ = value;
  1535. // @@protoc_insertion_point(field_set:Measure.cnnParameter.freq)
  1536. }
  1537. // optional int64 nclass = 5 [default = 3];
  1538. inline bool cnnParameter::has_nclass() const {
  1539. return (_has_bits_[0] & 0x00000020u) != 0;
  1540. }
  1541. inline void cnnParameter::set_has_nclass() {
  1542. _has_bits_[0] |= 0x00000020u;
  1543. }
  1544. inline void cnnParameter::clear_has_nclass() {
  1545. _has_bits_[0] &= ~0x00000020u;
  1546. }
  1547. inline void cnnParameter::clear_nclass() {
  1548. nclass_ = GOOGLE_LONGLONG(3);
  1549. clear_has_nclass();
  1550. }
  1551. inline ::google::protobuf::int64 cnnParameter::nclass() const {
  1552. // @@protoc_insertion_point(field_get:Measure.cnnParameter.nclass)
  1553. return nclass_;
  1554. }
  1555. inline void cnnParameter::set_nclass(::google::protobuf::int64 value) {
  1556. set_has_nclass();
  1557. nclass_ = value;
  1558. // @@protoc_insertion_point(field_set:Measure.cnnParameter.nclass)
  1559. }
  1560. // optional string weights_file = 6 [default = "frozen_model.pb"];
  1561. inline bool cnnParameter::has_weights_file() const {
  1562. return (_has_bits_[0] & 0x00000001u) != 0;
  1563. }
  1564. inline void cnnParameter::set_has_weights_file() {
  1565. _has_bits_[0] |= 0x00000001u;
  1566. }
  1567. inline void cnnParameter::clear_has_weights_file() {
  1568. _has_bits_[0] &= ~0x00000001u;
  1569. }
  1570. inline void cnnParameter::clear_weights_file() {
  1571. weights_file_.ClearToDefaultNoArena(&::Measure::cnnParameter::_default_weights_file_.get());
  1572. clear_has_weights_file();
  1573. }
  1574. inline const ::std::string& cnnParameter::weights_file() const {
  1575. // @@protoc_insertion_point(field_get:Measure.cnnParameter.weights_file)
  1576. return weights_file_.GetNoArena();
  1577. }
  1578. inline void cnnParameter::set_weights_file(const ::std::string& value) {
  1579. set_has_weights_file();
  1580. weights_file_.SetNoArena(&::Measure::cnnParameter::_default_weights_file_.get(), value);
  1581. // @@protoc_insertion_point(field_set:Measure.cnnParameter.weights_file)
  1582. }
  1583. #if LANG_CXX11
  1584. inline void cnnParameter::set_weights_file(::std::string&& value) {
  1585. set_has_weights_file();
  1586. weights_file_.SetNoArena(
  1587. &::Measure::cnnParameter::_default_weights_file_.get(), ::std::move(value));
  1588. // @@protoc_insertion_point(field_set_rvalue:Measure.cnnParameter.weights_file)
  1589. }
  1590. #endif
  1591. inline void cnnParameter::set_weights_file(const char* value) {
  1592. GOOGLE_DCHECK(value != NULL);
  1593. set_has_weights_file();
  1594. weights_file_.SetNoArena(&::Measure::cnnParameter::_default_weights_file_.get(), ::std::string(value));
  1595. // @@protoc_insertion_point(field_set_char:Measure.cnnParameter.weights_file)
  1596. }
  1597. inline void cnnParameter::set_weights_file(const char* value, size_t size) {
  1598. set_has_weights_file();
  1599. weights_file_.SetNoArena(&::Measure::cnnParameter::_default_weights_file_.get(),
  1600. ::std::string(reinterpret_cast<const char*>(value), size));
  1601. // @@protoc_insertion_point(field_set_pointer:Measure.cnnParameter.weights_file)
  1602. }
  1603. inline ::std::string* cnnParameter::mutable_weights_file() {
  1604. set_has_weights_file();
  1605. // @@protoc_insertion_point(field_mutable:Measure.cnnParameter.weights_file)
  1606. return weights_file_.MutableNoArena(&::Measure::cnnParameter::_default_weights_file_.get());
  1607. }
  1608. inline ::std::string* cnnParameter::release_weights_file() {
  1609. // @@protoc_insertion_point(field_release:Measure.cnnParameter.weights_file)
  1610. clear_has_weights_file();
  1611. return weights_file_.ReleaseNoArena(&::Measure::cnnParameter::_default_weights_file_.get());
  1612. }
  1613. inline void cnnParameter::set_allocated_weights_file(::std::string* weights_file) {
  1614. if (weights_file != NULL) {
  1615. set_has_weights_file();
  1616. } else {
  1617. clear_has_weights_file();
  1618. }
  1619. weights_file_.SetAllocatedNoArena(&::Measure::cnnParameter::_default_weights_file_.get(), weights_file);
  1620. // @@protoc_insertion_point(field_set_allocated:Measure.cnnParameter.weights_file)
  1621. }
  1622. // -------------------------------------------------------------------
  1623. // LocateParameter
  1624. // optional .Measure.Area3d area = 1;
  1625. inline bool LocateParameter::has_area() const {
  1626. return (_has_bits_[0] & 0x00000001u) != 0;
  1627. }
  1628. inline void LocateParameter::set_has_area() {
  1629. _has_bits_[0] |= 0x00000001u;
  1630. }
  1631. inline void LocateParameter::clear_has_area() {
  1632. _has_bits_[0] &= ~0x00000001u;
  1633. }
  1634. inline void LocateParameter::clear_area() {
  1635. if (area_ != NULL) area_->Clear();
  1636. clear_has_area();
  1637. }
  1638. inline const ::Measure::Area3d& LocateParameter::area() const {
  1639. const ::Measure::Area3d* p = area_;
  1640. // @@protoc_insertion_point(field_get:Measure.LocateParameter.area)
  1641. return p != NULL ? *p : *reinterpret_cast<const ::Measure::Area3d*>(
  1642. &::Measure::_Area3d_default_instance_);
  1643. }
  1644. inline ::Measure::Area3d* LocateParameter::release_area() {
  1645. // @@protoc_insertion_point(field_release:Measure.LocateParameter.area)
  1646. clear_has_area();
  1647. ::Measure::Area3d* temp = area_;
  1648. area_ = NULL;
  1649. return temp;
  1650. }
  1651. inline ::Measure::Area3d* LocateParameter::mutable_area() {
  1652. set_has_area();
  1653. if (area_ == NULL) {
  1654. area_ = new ::Measure::Area3d;
  1655. }
  1656. // @@protoc_insertion_point(field_mutable:Measure.LocateParameter.area)
  1657. return area_;
  1658. }
  1659. inline void LocateParameter::set_allocated_area(::Measure::Area3d* area) {
  1660. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1661. if (message_arena == NULL) {
  1662. delete area_;
  1663. }
  1664. if (area) {
  1665. ::google::protobuf::Arena* submessage_arena = NULL;
  1666. if (message_arena != submessage_arena) {
  1667. area = ::google::protobuf::internal::GetOwnedMessage(
  1668. message_arena, area, submessage_arena);
  1669. }
  1670. set_has_area();
  1671. } else {
  1672. clear_has_area();
  1673. }
  1674. area_ = area;
  1675. // @@protoc_insertion_point(field_set_allocated:Measure.LocateParameter.area)
  1676. }
  1677. // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
  1678. inline bool LocateParameter::has_net_3dcnn_parameter() const {
  1679. return (_has_bits_[0] & 0x00000002u) != 0;
  1680. }
  1681. inline void LocateParameter::set_has_net_3dcnn_parameter() {
  1682. _has_bits_[0] |= 0x00000002u;
  1683. }
  1684. inline void LocateParameter::clear_has_net_3dcnn_parameter() {
  1685. _has_bits_[0] &= ~0x00000002u;
  1686. }
  1687. inline void LocateParameter::clear_net_3dcnn_parameter() {
  1688. if (net_3dcnn_parameter_ != NULL) net_3dcnn_parameter_->Clear();
  1689. clear_has_net_3dcnn_parameter();
  1690. }
  1691. inline const ::Measure::cnnParameter& LocateParameter::net_3dcnn_parameter() const {
  1692. const ::Measure::cnnParameter* p = net_3dcnn_parameter_;
  1693. // @@protoc_insertion_point(field_get:Measure.LocateParameter.net_3dcnn_parameter)
  1694. return p != NULL ? *p : *reinterpret_cast<const ::Measure::cnnParameter*>(
  1695. &::Measure::_cnnParameter_default_instance_);
  1696. }
  1697. inline ::Measure::cnnParameter* LocateParameter::release_net_3dcnn_parameter() {
  1698. // @@protoc_insertion_point(field_release:Measure.LocateParameter.net_3dcnn_parameter)
  1699. clear_has_net_3dcnn_parameter();
  1700. ::Measure::cnnParameter* temp = net_3dcnn_parameter_;
  1701. net_3dcnn_parameter_ = NULL;
  1702. return temp;
  1703. }
  1704. inline ::Measure::cnnParameter* LocateParameter::mutable_net_3dcnn_parameter() {
  1705. set_has_net_3dcnn_parameter();
  1706. if (net_3dcnn_parameter_ == NULL) {
  1707. net_3dcnn_parameter_ = new ::Measure::cnnParameter;
  1708. }
  1709. // @@protoc_insertion_point(field_mutable:Measure.LocateParameter.net_3dcnn_parameter)
  1710. return net_3dcnn_parameter_;
  1711. }
  1712. inline void LocateParameter::set_allocated_net_3dcnn_parameter(::Measure::cnnParameter* net_3dcnn_parameter) {
  1713. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1714. if (message_arena == NULL) {
  1715. delete net_3dcnn_parameter_;
  1716. }
  1717. if (net_3dcnn_parameter) {
  1718. ::google::protobuf::Arena* submessage_arena = NULL;
  1719. if (message_arena != submessage_arena) {
  1720. net_3dcnn_parameter = ::google::protobuf::internal::GetOwnedMessage(
  1721. message_arena, net_3dcnn_parameter, submessage_arena);
  1722. }
  1723. set_has_net_3dcnn_parameter();
  1724. } else {
  1725. clear_has_net_3dcnn_parameter();
  1726. }
  1727. net_3dcnn_parameter_ = net_3dcnn_parameter;
  1728. // @@protoc_insertion_point(field_set_allocated:Measure.LocateParameter.net_3dcnn_parameter)
  1729. }
  1730. // optional .Measure.PointSiftParameter seg_parameter = 3;
  1731. inline bool LocateParameter::has_seg_parameter() const {
  1732. return (_has_bits_[0] & 0x00000004u) != 0;
  1733. }
  1734. inline void LocateParameter::set_has_seg_parameter() {
  1735. _has_bits_[0] |= 0x00000004u;
  1736. }
  1737. inline void LocateParameter::clear_has_seg_parameter() {
  1738. _has_bits_[0] &= ~0x00000004u;
  1739. }
  1740. inline void LocateParameter::clear_seg_parameter() {
  1741. if (seg_parameter_ != NULL) seg_parameter_->Clear();
  1742. clear_has_seg_parameter();
  1743. }
  1744. inline const ::Measure::PointSiftParameter& LocateParameter::seg_parameter() const {
  1745. const ::Measure::PointSiftParameter* p = seg_parameter_;
  1746. // @@protoc_insertion_point(field_get:Measure.LocateParameter.seg_parameter)
  1747. return p != NULL ? *p : *reinterpret_cast<const ::Measure::PointSiftParameter*>(
  1748. &::Measure::_PointSiftParameter_default_instance_);
  1749. }
  1750. inline ::Measure::PointSiftParameter* LocateParameter::release_seg_parameter() {
  1751. // @@protoc_insertion_point(field_release:Measure.LocateParameter.seg_parameter)
  1752. clear_has_seg_parameter();
  1753. ::Measure::PointSiftParameter* temp = seg_parameter_;
  1754. seg_parameter_ = NULL;
  1755. return temp;
  1756. }
  1757. inline ::Measure::PointSiftParameter* LocateParameter::mutable_seg_parameter() {
  1758. set_has_seg_parameter();
  1759. if (seg_parameter_ == NULL) {
  1760. seg_parameter_ = new ::Measure::PointSiftParameter;
  1761. }
  1762. // @@protoc_insertion_point(field_mutable:Measure.LocateParameter.seg_parameter)
  1763. return seg_parameter_;
  1764. }
  1765. inline void LocateParameter::set_allocated_seg_parameter(::Measure::PointSiftParameter* seg_parameter) {
  1766. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1767. if (message_arena == NULL) {
  1768. delete seg_parameter_;
  1769. }
  1770. if (seg_parameter) {
  1771. ::google::protobuf::Arena* submessage_arena = NULL;
  1772. if (message_arena != submessage_arena) {
  1773. seg_parameter = ::google::protobuf::internal::GetOwnedMessage(
  1774. message_arena, seg_parameter, submessage_arena);
  1775. }
  1776. set_has_seg_parameter();
  1777. } else {
  1778. clear_has_seg_parameter();
  1779. }
  1780. seg_parameter_ = seg_parameter;
  1781. // @@protoc_insertion_point(field_set_allocated:Measure.LocateParameter.seg_parameter)
  1782. }
  1783. // optional .Measure.YoloParameter yolo_parameter = 4;
  1784. inline bool LocateParameter::has_yolo_parameter() const {
  1785. return (_has_bits_[0] & 0x00000008u) != 0;
  1786. }
  1787. inline void LocateParameter::set_has_yolo_parameter() {
  1788. _has_bits_[0] |= 0x00000008u;
  1789. }
  1790. inline void LocateParameter::clear_has_yolo_parameter() {
  1791. _has_bits_[0] &= ~0x00000008u;
  1792. }
  1793. inline void LocateParameter::clear_yolo_parameter() {
  1794. if (yolo_parameter_ != NULL) yolo_parameter_->Clear();
  1795. clear_has_yolo_parameter();
  1796. }
  1797. inline const ::Measure::YoloParameter& LocateParameter::yolo_parameter() const {
  1798. const ::Measure::YoloParameter* p = yolo_parameter_;
  1799. // @@protoc_insertion_point(field_get:Measure.LocateParameter.yolo_parameter)
  1800. return p != NULL ? *p : *reinterpret_cast<const ::Measure::YoloParameter*>(
  1801. &::Measure::_YoloParameter_default_instance_);
  1802. }
  1803. inline ::Measure::YoloParameter* LocateParameter::release_yolo_parameter() {
  1804. // @@protoc_insertion_point(field_release:Measure.LocateParameter.yolo_parameter)
  1805. clear_has_yolo_parameter();
  1806. ::Measure::YoloParameter* temp = yolo_parameter_;
  1807. yolo_parameter_ = NULL;
  1808. return temp;
  1809. }
  1810. inline ::Measure::YoloParameter* LocateParameter::mutable_yolo_parameter() {
  1811. set_has_yolo_parameter();
  1812. if (yolo_parameter_ == NULL) {
  1813. yolo_parameter_ = new ::Measure::YoloParameter;
  1814. }
  1815. // @@protoc_insertion_point(field_mutable:Measure.LocateParameter.yolo_parameter)
  1816. return yolo_parameter_;
  1817. }
  1818. inline void LocateParameter::set_allocated_yolo_parameter(::Measure::YoloParameter* yolo_parameter) {
  1819. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1820. if (message_arena == NULL) {
  1821. delete yolo_parameter_;
  1822. }
  1823. if (yolo_parameter) {
  1824. ::google::protobuf::Arena* submessage_arena = NULL;
  1825. if (message_arena != submessage_arena) {
  1826. yolo_parameter = ::google::protobuf::internal::GetOwnedMessage(
  1827. message_arena, yolo_parameter, submessage_arena);
  1828. }
  1829. set_has_yolo_parameter();
  1830. } else {
  1831. clear_has_yolo_parameter();
  1832. }
  1833. yolo_parameter_ = yolo_parameter;
  1834. // @@protoc_insertion_point(field_set_allocated:Measure.LocateParameter.yolo_parameter)
  1835. }
  1836. #ifdef __GNUC__
  1837. #pragma GCC diagnostic pop
  1838. #endif // __GNUC__
  1839. // -------------------------------------------------------------------
  1840. // -------------------------------------------------------------------
  1841. // -------------------------------------------------------------------
  1842. // -------------------------------------------------------------------
  1843. // @@protoc_insertion_point(namespace_scope)
  1844. } // namespace Measure
  1845. // @@protoc_insertion_point(global_scope)
  1846. #endif // PROTOBUF_locater_5fparameter_2eproto__INCLUDED