op_def.pb.h 92 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: op_def.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_op_5fdef_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_op_5fdef_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/unknown_field_set.h>
  30. #include "attr_value.pb.h"
  31. #include "types.pb.h"
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_op_5fdef_2eproto
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct TableStruct_op_5fdef_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const uint32_t offsets[];
  51. };
  52. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_op_5fdef_2eproto;
  53. namespace opencv_tensorflow {
  54. class OpDef;
  55. struct OpDefDefaultTypeInternal;
  56. extern OpDefDefaultTypeInternal _OpDef_default_instance_;
  57. class OpDef_ArgDef;
  58. struct OpDef_ArgDefDefaultTypeInternal;
  59. extern OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_;
  60. class OpDef_AttrDef;
  61. struct OpDef_AttrDefDefaultTypeInternal;
  62. extern OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_;
  63. class OpDeprecation;
  64. struct OpDeprecationDefaultTypeInternal;
  65. extern OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_;
  66. class OpList;
  67. struct OpListDefaultTypeInternal;
  68. extern OpListDefaultTypeInternal _OpList_default_instance_;
  69. } // namespace opencv_tensorflow
  70. PROTOBUF_NAMESPACE_OPEN
  71. template<> ::opencv_tensorflow::OpDef* Arena::CreateMaybeMessage<::opencv_tensorflow::OpDef>(Arena*);
  72. template<> ::opencv_tensorflow::OpDef_ArgDef* Arena::CreateMaybeMessage<::opencv_tensorflow::OpDef_ArgDef>(Arena*);
  73. template<> ::opencv_tensorflow::OpDef_AttrDef* Arena::CreateMaybeMessage<::opencv_tensorflow::OpDef_AttrDef>(Arena*);
  74. template<> ::opencv_tensorflow::OpDeprecation* Arena::CreateMaybeMessage<::opencv_tensorflow::OpDeprecation>(Arena*);
  75. template<> ::opencv_tensorflow::OpList* Arena::CreateMaybeMessage<::opencv_tensorflow::OpList>(Arena*);
  76. PROTOBUF_NAMESPACE_CLOSE
  77. namespace opencv_tensorflow {
  78. // ===================================================================
  79. class OpDef_ArgDef final :
  80. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef.ArgDef) */ {
  81. public:
  82. inline OpDef_ArgDef() : OpDef_ArgDef(nullptr) {}
  83. ~OpDef_ArgDef() override;
  84. explicit constexpr OpDef_ArgDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  85. OpDef_ArgDef(const OpDef_ArgDef& from);
  86. OpDef_ArgDef(OpDef_ArgDef&& from) noexcept
  87. : OpDef_ArgDef() {
  88. *this = ::std::move(from);
  89. }
  90. inline OpDef_ArgDef& operator=(const OpDef_ArgDef& from) {
  91. CopyFrom(from);
  92. return *this;
  93. }
  94. inline OpDef_ArgDef& operator=(OpDef_ArgDef&& from) noexcept {
  95. if (this == &from) return *this;
  96. if (GetOwningArena() == from.GetOwningArena()
  97. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  98. && GetOwningArena() != nullptr
  99. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  100. ) {
  101. InternalSwap(&from);
  102. } else {
  103. CopyFrom(from);
  104. }
  105. return *this;
  106. }
  107. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  108. return GetDescriptor();
  109. }
  110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  111. return default_instance().GetMetadata().descriptor;
  112. }
  113. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  114. return default_instance().GetMetadata().reflection;
  115. }
  116. static const OpDef_ArgDef& default_instance() {
  117. return *internal_default_instance();
  118. }
  119. static inline const OpDef_ArgDef* internal_default_instance() {
  120. return reinterpret_cast<const OpDef_ArgDef*>(
  121. &_OpDef_ArgDef_default_instance_);
  122. }
  123. static constexpr int kIndexInFileMessages =
  124. 0;
  125. friend void swap(OpDef_ArgDef& a, OpDef_ArgDef& b) {
  126. a.Swap(&b);
  127. }
  128. inline void Swap(OpDef_ArgDef* other) {
  129. if (other == this) return;
  130. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  131. if (GetOwningArena() != nullptr &&
  132. GetOwningArena() == other->GetOwningArena()) {
  133. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  134. if (GetOwningArena() == other->GetOwningArena()) {
  135. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  136. InternalSwap(other);
  137. } else {
  138. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  139. }
  140. }
  141. void UnsafeArenaSwap(OpDef_ArgDef* other) {
  142. if (other == this) return;
  143. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  144. InternalSwap(other);
  145. }
  146. // implements Message ----------------------------------------------
  147. OpDef_ArgDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  148. return CreateMaybeMessage<OpDef_ArgDef>(arena);
  149. }
  150. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  151. void CopyFrom(const OpDef_ArgDef& from);
  152. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  153. void MergeFrom(const OpDef_ArgDef& from);
  154. private:
  155. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  156. public:
  157. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  158. bool IsInitialized() const final;
  159. size_t ByteSizeLong() const final;
  160. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  161. uint8_t* _InternalSerialize(
  162. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  163. int GetCachedSize() const final { return _cached_size_.Get(); }
  164. private:
  165. void SharedCtor();
  166. void SharedDtor();
  167. void SetCachedSize(int size) const final;
  168. void InternalSwap(OpDef_ArgDef* other);
  169. private:
  170. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  171. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  172. return "opencv_tensorflow.OpDef.ArgDef";
  173. }
  174. protected:
  175. explicit OpDef_ArgDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  176. bool is_message_owned = false);
  177. private:
  178. static void ArenaDtor(void* object);
  179. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  180. public:
  181. static const ClassData _class_data_;
  182. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  183. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  184. // nested types ----------------------------------------------------
  185. // accessors -------------------------------------------------------
  186. enum : int {
  187. kNameFieldNumber = 1,
  188. kDescriptionFieldNumber = 2,
  189. kTypeAttrFieldNumber = 4,
  190. kNumberAttrFieldNumber = 5,
  191. kTypeListAttrFieldNumber = 6,
  192. kTypeFieldNumber = 3,
  193. kIsRefFieldNumber = 16,
  194. };
  195. // string name = 1;
  196. void clear_name();
  197. const std::string& name() const;
  198. template <typename ArgT0 = const std::string&, typename... ArgT>
  199. void set_name(ArgT0&& arg0, ArgT... args);
  200. std::string* mutable_name();
  201. PROTOBUF_NODISCARD std::string* release_name();
  202. void set_allocated_name(std::string* name);
  203. private:
  204. const std::string& _internal_name() const;
  205. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  206. std::string* _internal_mutable_name();
  207. public:
  208. // string description = 2;
  209. void clear_description();
  210. const std::string& description() const;
  211. template <typename ArgT0 = const std::string&, typename... ArgT>
  212. void set_description(ArgT0&& arg0, ArgT... args);
  213. std::string* mutable_description();
  214. PROTOBUF_NODISCARD std::string* release_description();
  215. void set_allocated_description(std::string* description);
  216. private:
  217. const std::string& _internal_description() const;
  218. inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value);
  219. std::string* _internal_mutable_description();
  220. public:
  221. // string type_attr = 4;
  222. void clear_type_attr();
  223. const std::string& type_attr() const;
  224. template <typename ArgT0 = const std::string&, typename... ArgT>
  225. void set_type_attr(ArgT0&& arg0, ArgT... args);
  226. std::string* mutable_type_attr();
  227. PROTOBUF_NODISCARD std::string* release_type_attr();
  228. void set_allocated_type_attr(std::string* type_attr);
  229. private:
  230. const std::string& _internal_type_attr() const;
  231. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_attr(const std::string& value);
  232. std::string* _internal_mutable_type_attr();
  233. public:
  234. // string number_attr = 5;
  235. void clear_number_attr();
  236. const std::string& number_attr() const;
  237. template <typename ArgT0 = const std::string&, typename... ArgT>
  238. void set_number_attr(ArgT0&& arg0, ArgT... args);
  239. std::string* mutable_number_attr();
  240. PROTOBUF_NODISCARD std::string* release_number_attr();
  241. void set_allocated_number_attr(std::string* number_attr);
  242. private:
  243. const std::string& _internal_number_attr() const;
  244. inline PROTOBUF_ALWAYS_INLINE void _internal_set_number_attr(const std::string& value);
  245. std::string* _internal_mutable_number_attr();
  246. public:
  247. // string type_list_attr = 6;
  248. void clear_type_list_attr();
  249. const std::string& type_list_attr() const;
  250. template <typename ArgT0 = const std::string&, typename... ArgT>
  251. void set_type_list_attr(ArgT0&& arg0, ArgT... args);
  252. std::string* mutable_type_list_attr();
  253. PROTOBUF_NODISCARD std::string* release_type_list_attr();
  254. void set_allocated_type_list_attr(std::string* type_list_attr);
  255. private:
  256. const std::string& _internal_type_list_attr() const;
  257. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_list_attr(const std::string& value);
  258. std::string* _internal_mutable_type_list_attr();
  259. public:
  260. // .opencv_tensorflow.DataType type = 3;
  261. void clear_type();
  262. ::opencv_tensorflow::DataType type() const;
  263. void set_type(::opencv_tensorflow::DataType value);
  264. private:
  265. ::opencv_tensorflow::DataType _internal_type() const;
  266. void _internal_set_type(::opencv_tensorflow::DataType value);
  267. public:
  268. // bool is_ref = 16;
  269. void clear_is_ref();
  270. bool is_ref() const;
  271. void set_is_ref(bool value);
  272. private:
  273. bool _internal_is_ref() const;
  274. void _internal_set_is_ref(bool value);
  275. public:
  276. // @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef.ArgDef)
  277. private:
  278. class _Internal;
  279. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  280. typedef void InternalArenaConstructable_;
  281. typedef void DestructorSkippable_;
  282. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  283. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
  284. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_attr_;
  285. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr number_attr_;
  286. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_list_attr_;
  287. int type_;
  288. bool is_ref_;
  289. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  290. friend struct ::TableStruct_op_5fdef_2eproto;
  291. };
  292. // -------------------------------------------------------------------
  293. class OpDef_AttrDef final :
  294. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef.AttrDef) */ {
  295. public:
  296. inline OpDef_AttrDef() : OpDef_AttrDef(nullptr) {}
  297. ~OpDef_AttrDef() override;
  298. explicit constexpr OpDef_AttrDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  299. OpDef_AttrDef(const OpDef_AttrDef& from);
  300. OpDef_AttrDef(OpDef_AttrDef&& from) noexcept
  301. : OpDef_AttrDef() {
  302. *this = ::std::move(from);
  303. }
  304. inline OpDef_AttrDef& operator=(const OpDef_AttrDef& from) {
  305. CopyFrom(from);
  306. return *this;
  307. }
  308. inline OpDef_AttrDef& operator=(OpDef_AttrDef&& from) noexcept {
  309. if (this == &from) return *this;
  310. if (GetOwningArena() == from.GetOwningArena()
  311. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  312. && GetOwningArena() != nullptr
  313. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  314. ) {
  315. InternalSwap(&from);
  316. } else {
  317. CopyFrom(from);
  318. }
  319. return *this;
  320. }
  321. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  322. return GetDescriptor();
  323. }
  324. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  325. return default_instance().GetMetadata().descriptor;
  326. }
  327. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  328. return default_instance().GetMetadata().reflection;
  329. }
  330. static const OpDef_AttrDef& default_instance() {
  331. return *internal_default_instance();
  332. }
  333. static inline const OpDef_AttrDef* internal_default_instance() {
  334. return reinterpret_cast<const OpDef_AttrDef*>(
  335. &_OpDef_AttrDef_default_instance_);
  336. }
  337. static constexpr int kIndexInFileMessages =
  338. 1;
  339. friend void swap(OpDef_AttrDef& a, OpDef_AttrDef& b) {
  340. a.Swap(&b);
  341. }
  342. inline void Swap(OpDef_AttrDef* other) {
  343. if (other == this) return;
  344. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  345. if (GetOwningArena() != nullptr &&
  346. GetOwningArena() == other->GetOwningArena()) {
  347. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  348. if (GetOwningArena() == other->GetOwningArena()) {
  349. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  350. InternalSwap(other);
  351. } else {
  352. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  353. }
  354. }
  355. void UnsafeArenaSwap(OpDef_AttrDef* other) {
  356. if (other == this) return;
  357. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  358. InternalSwap(other);
  359. }
  360. // implements Message ----------------------------------------------
  361. OpDef_AttrDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  362. return CreateMaybeMessage<OpDef_AttrDef>(arena);
  363. }
  364. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  365. void CopyFrom(const OpDef_AttrDef& from);
  366. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  367. void MergeFrom(const OpDef_AttrDef& from);
  368. private:
  369. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  370. public:
  371. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  372. bool IsInitialized() const final;
  373. size_t ByteSizeLong() const final;
  374. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  375. uint8_t* _InternalSerialize(
  376. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  377. int GetCachedSize() const final { return _cached_size_.Get(); }
  378. private:
  379. void SharedCtor();
  380. void SharedDtor();
  381. void SetCachedSize(int size) const final;
  382. void InternalSwap(OpDef_AttrDef* other);
  383. private:
  384. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  385. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  386. return "opencv_tensorflow.OpDef.AttrDef";
  387. }
  388. protected:
  389. explicit OpDef_AttrDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  390. bool is_message_owned = false);
  391. private:
  392. static void ArenaDtor(void* object);
  393. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  394. public:
  395. static const ClassData _class_data_;
  396. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  397. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  398. // nested types ----------------------------------------------------
  399. // accessors -------------------------------------------------------
  400. enum : int {
  401. kNameFieldNumber = 1,
  402. kTypeFieldNumber = 2,
  403. kDescriptionFieldNumber = 4,
  404. kDefaultValueFieldNumber = 3,
  405. kAllowedValuesFieldNumber = 7,
  406. kMinimumFieldNumber = 6,
  407. kHasMinimumFieldNumber = 5,
  408. };
  409. // string name = 1;
  410. void clear_name();
  411. const std::string& name() const;
  412. template <typename ArgT0 = const std::string&, typename... ArgT>
  413. void set_name(ArgT0&& arg0, ArgT... args);
  414. std::string* mutable_name();
  415. PROTOBUF_NODISCARD std::string* release_name();
  416. void set_allocated_name(std::string* name);
  417. private:
  418. const std::string& _internal_name() const;
  419. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  420. std::string* _internal_mutable_name();
  421. public:
  422. // string type = 2;
  423. void clear_type();
  424. const std::string& type() const;
  425. template <typename ArgT0 = const std::string&, typename... ArgT>
  426. void set_type(ArgT0&& arg0, ArgT... args);
  427. std::string* mutable_type();
  428. PROTOBUF_NODISCARD std::string* release_type();
  429. void set_allocated_type(std::string* type);
  430. private:
  431. const std::string& _internal_type() const;
  432. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value);
  433. std::string* _internal_mutable_type();
  434. public:
  435. // string description = 4;
  436. void clear_description();
  437. const std::string& description() const;
  438. template <typename ArgT0 = const std::string&, typename... ArgT>
  439. void set_description(ArgT0&& arg0, ArgT... args);
  440. std::string* mutable_description();
  441. PROTOBUF_NODISCARD std::string* release_description();
  442. void set_allocated_description(std::string* description);
  443. private:
  444. const std::string& _internal_description() const;
  445. inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value);
  446. std::string* _internal_mutable_description();
  447. public:
  448. // .opencv_tensorflow.AttrValue default_value = 3;
  449. bool has_default_value() const;
  450. private:
  451. bool _internal_has_default_value() const;
  452. public:
  453. void clear_default_value();
  454. const ::opencv_tensorflow::AttrValue& default_value() const;
  455. PROTOBUF_NODISCARD ::opencv_tensorflow::AttrValue* release_default_value();
  456. ::opencv_tensorflow::AttrValue* mutable_default_value();
  457. void set_allocated_default_value(::opencv_tensorflow::AttrValue* default_value);
  458. private:
  459. const ::opencv_tensorflow::AttrValue& _internal_default_value() const;
  460. ::opencv_tensorflow::AttrValue* _internal_mutable_default_value();
  461. public:
  462. void unsafe_arena_set_allocated_default_value(
  463. ::opencv_tensorflow::AttrValue* default_value);
  464. ::opencv_tensorflow::AttrValue* unsafe_arena_release_default_value();
  465. // .opencv_tensorflow.AttrValue allowed_values = 7;
  466. bool has_allowed_values() const;
  467. private:
  468. bool _internal_has_allowed_values() const;
  469. public:
  470. void clear_allowed_values();
  471. const ::opencv_tensorflow::AttrValue& allowed_values() const;
  472. PROTOBUF_NODISCARD ::opencv_tensorflow::AttrValue* release_allowed_values();
  473. ::opencv_tensorflow::AttrValue* mutable_allowed_values();
  474. void set_allocated_allowed_values(::opencv_tensorflow::AttrValue* allowed_values);
  475. private:
  476. const ::opencv_tensorflow::AttrValue& _internal_allowed_values() const;
  477. ::opencv_tensorflow::AttrValue* _internal_mutable_allowed_values();
  478. public:
  479. void unsafe_arena_set_allocated_allowed_values(
  480. ::opencv_tensorflow::AttrValue* allowed_values);
  481. ::opencv_tensorflow::AttrValue* unsafe_arena_release_allowed_values();
  482. // int64 minimum = 6;
  483. void clear_minimum();
  484. int64_t minimum() const;
  485. void set_minimum(int64_t value);
  486. private:
  487. int64_t _internal_minimum() const;
  488. void _internal_set_minimum(int64_t value);
  489. public:
  490. // bool has_minimum = 5;
  491. void clear_has_minimum();
  492. bool has_minimum() const;
  493. void set_has_minimum(bool value);
  494. private:
  495. bool _internal_has_minimum() const;
  496. void _internal_set_has_minimum(bool value);
  497. public:
  498. // @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef.AttrDef)
  499. private:
  500. class _Internal;
  501. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  502. typedef void InternalArenaConstructable_;
  503. typedef void DestructorSkippable_;
  504. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  505. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
  506. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
  507. ::opencv_tensorflow::AttrValue* default_value_;
  508. ::opencv_tensorflow::AttrValue* allowed_values_;
  509. int64_t minimum_;
  510. bool has_minimum_;
  511. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  512. friend struct ::TableStruct_op_5fdef_2eproto;
  513. };
  514. // -------------------------------------------------------------------
  515. class OpDef final :
  516. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef) */ {
  517. public:
  518. inline OpDef() : OpDef(nullptr) {}
  519. ~OpDef() override;
  520. explicit constexpr OpDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  521. OpDef(const OpDef& from);
  522. OpDef(OpDef&& from) noexcept
  523. : OpDef() {
  524. *this = ::std::move(from);
  525. }
  526. inline OpDef& operator=(const OpDef& from) {
  527. CopyFrom(from);
  528. return *this;
  529. }
  530. inline OpDef& operator=(OpDef&& from) noexcept {
  531. if (this == &from) return *this;
  532. if (GetOwningArena() == from.GetOwningArena()
  533. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  534. && GetOwningArena() != nullptr
  535. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  536. ) {
  537. InternalSwap(&from);
  538. } else {
  539. CopyFrom(from);
  540. }
  541. return *this;
  542. }
  543. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  544. return GetDescriptor();
  545. }
  546. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  547. return default_instance().GetMetadata().descriptor;
  548. }
  549. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  550. return default_instance().GetMetadata().reflection;
  551. }
  552. static const OpDef& default_instance() {
  553. return *internal_default_instance();
  554. }
  555. static inline const OpDef* internal_default_instance() {
  556. return reinterpret_cast<const OpDef*>(
  557. &_OpDef_default_instance_);
  558. }
  559. static constexpr int kIndexInFileMessages =
  560. 2;
  561. friend void swap(OpDef& a, OpDef& b) {
  562. a.Swap(&b);
  563. }
  564. inline void Swap(OpDef* other) {
  565. if (other == this) return;
  566. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  567. if (GetOwningArena() != nullptr &&
  568. GetOwningArena() == other->GetOwningArena()) {
  569. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  570. if (GetOwningArena() == other->GetOwningArena()) {
  571. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  572. InternalSwap(other);
  573. } else {
  574. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  575. }
  576. }
  577. void UnsafeArenaSwap(OpDef* other) {
  578. if (other == this) return;
  579. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  580. InternalSwap(other);
  581. }
  582. // implements Message ----------------------------------------------
  583. OpDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  584. return CreateMaybeMessage<OpDef>(arena);
  585. }
  586. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  587. void CopyFrom(const OpDef& from);
  588. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  589. void MergeFrom(const OpDef& from);
  590. private:
  591. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  592. public:
  593. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  594. bool IsInitialized() const final;
  595. size_t ByteSizeLong() const final;
  596. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  597. uint8_t* _InternalSerialize(
  598. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  599. int GetCachedSize() const final { return _cached_size_.Get(); }
  600. private:
  601. void SharedCtor();
  602. void SharedDtor();
  603. void SetCachedSize(int size) const final;
  604. void InternalSwap(OpDef* other);
  605. private:
  606. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  607. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  608. return "opencv_tensorflow.OpDef";
  609. }
  610. protected:
  611. explicit OpDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  612. bool is_message_owned = false);
  613. private:
  614. static void ArenaDtor(void* object);
  615. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  616. public:
  617. static const ClassData _class_data_;
  618. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  619. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  620. // nested types ----------------------------------------------------
  621. typedef OpDef_ArgDef ArgDef;
  622. typedef OpDef_AttrDef AttrDef;
  623. // accessors -------------------------------------------------------
  624. enum : int {
  625. kInputArgFieldNumber = 2,
  626. kOutputArgFieldNumber = 3,
  627. kAttrFieldNumber = 4,
  628. kNameFieldNumber = 1,
  629. kSummaryFieldNumber = 5,
  630. kDescriptionFieldNumber = 6,
  631. kDeprecationFieldNumber = 8,
  632. kIsCommutativeFieldNumber = 18,
  633. kIsAggregateFieldNumber = 16,
  634. kIsStatefulFieldNumber = 17,
  635. kAllowsUninitializedInputFieldNumber = 19,
  636. };
  637. // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
  638. int input_arg_size() const;
  639. private:
  640. int _internal_input_arg_size() const;
  641. public:
  642. void clear_input_arg();
  643. ::opencv_tensorflow::OpDef_ArgDef* mutable_input_arg(int index);
  644. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
  645. mutable_input_arg();
  646. private:
  647. const ::opencv_tensorflow::OpDef_ArgDef& _internal_input_arg(int index) const;
  648. ::opencv_tensorflow::OpDef_ArgDef* _internal_add_input_arg();
  649. public:
  650. const ::opencv_tensorflow::OpDef_ArgDef& input_arg(int index) const;
  651. ::opencv_tensorflow::OpDef_ArgDef* add_input_arg();
  652. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
  653. input_arg() const;
  654. // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
  655. int output_arg_size() const;
  656. private:
  657. int _internal_output_arg_size() const;
  658. public:
  659. void clear_output_arg();
  660. ::opencv_tensorflow::OpDef_ArgDef* mutable_output_arg(int index);
  661. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
  662. mutable_output_arg();
  663. private:
  664. const ::opencv_tensorflow::OpDef_ArgDef& _internal_output_arg(int index) const;
  665. ::opencv_tensorflow::OpDef_ArgDef* _internal_add_output_arg();
  666. public:
  667. const ::opencv_tensorflow::OpDef_ArgDef& output_arg(int index) const;
  668. ::opencv_tensorflow::OpDef_ArgDef* add_output_arg();
  669. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
  670. output_arg() const;
  671. // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
  672. int attr_size() const;
  673. private:
  674. int _internal_attr_size() const;
  675. public:
  676. void clear_attr();
  677. ::opencv_tensorflow::OpDef_AttrDef* mutable_attr(int index);
  678. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >*
  679. mutable_attr();
  680. private:
  681. const ::opencv_tensorflow::OpDef_AttrDef& _internal_attr(int index) const;
  682. ::opencv_tensorflow::OpDef_AttrDef* _internal_add_attr();
  683. public:
  684. const ::opencv_tensorflow::OpDef_AttrDef& attr(int index) const;
  685. ::opencv_tensorflow::OpDef_AttrDef* add_attr();
  686. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >&
  687. attr() const;
  688. // string name = 1;
  689. void clear_name();
  690. const std::string& name() const;
  691. template <typename ArgT0 = const std::string&, typename... ArgT>
  692. void set_name(ArgT0&& arg0, ArgT... args);
  693. std::string* mutable_name();
  694. PROTOBUF_NODISCARD std::string* release_name();
  695. void set_allocated_name(std::string* name);
  696. private:
  697. const std::string& _internal_name() const;
  698. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  699. std::string* _internal_mutable_name();
  700. public:
  701. // string summary = 5;
  702. void clear_summary();
  703. const std::string& summary() const;
  704. template <typename ArgT0 = const std::string&, typename... ArgT>
  705. void set_summary(ArgT0&& arg0, ArgT... args);
  706. std::string* mutable_summary();
  707. PROTOBUF_NODISCARD std::string* release_summary();
  708. void set_allocated_summary(std::string* summary);
  709. private:
  710. const std::string& _internal_summary() const;
  711. inline PROTOBUF_ALWAYS_INLINE void _internal_set_summary(const std::string& value);
  712. std::string* _internal_mutable_summary();
  713. public:
  714. // string description = 6;
  715. void clear_description();
  716. const std::string& description() const;
  717. template <typename ArgT0 = const std::string&, typename... ArgT>
  718. void set_description(ArgT0&& arg0, ArgT... args);
  719. std::string* mutable_description();
  720. PROTOBUF_NODISCARD std::string* release_description();
  721. void set_allocated_description(std::string* description);
  722. private:
  723. const std::string& _internal_description() const;
  724. inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value);
  725. std::string* _internal_mutable_description();
  726. public:
  727. // .opencv_tensorflow.OpDeprecation deprecation = 8;
  728. bool has_deprecation() const;
  729. private:
  730. bool _internal_has_deprecation() const;
  731. public:
  732. void clear_deprecation();
  733. const ::opencv_tensorflow::OpDeprecation& deprecation() const;
  734. PROTOBUF_NODISCARD ::opencv_tensorflow::OpDeprecation* release_deprecation();
  735. ::opencv_tensorflow::OpDeprecation* mutable_deprecation();
  736. void set_allocated_deprecation(::opencv_tensorflow::OpDeprecation* deprecation);
  737. private:
  738. const ::opencv_tensorflow::OpDeprecation& _internal_deprecation() const;
  739. ::opencv_tensorflow::OpDeprecation* _internal_mutable_deprecation();
  740. public:
  741. void unsafe_arena_set_allocated_deprecation(
  742. ::opencv_tensorflow::OpDeprecation* deprecation);
  743. ::opencv_tensorflow::OpDeprecation* unsafe_arena_release_deprecation();
  744. // bool is_commutative = 18;
  745. void clear_is_commutative();
  746. bool is_commutative() const;
  747. void set_is_commutative(bool value);
  748. private:
  749. bool _internal_is_commutative() const;
  750. void _internal_set_is_commutative(bool value);
  751. public:
  752. // bool is_aggregate = 16;
  753. void clear_is_aggregate();
  754. bool is_aggregate() const;
  755. void set_is_aggregate(bool value);
  756. private:
  757. bool _internal_is_aggregate() const;
  758. void _internal_set_is_aggregate(bool value);
  759. public:
  760. // bool is_stateful = 17;
  761. void clear_is_stateful();
  762. bool is_stateful() const;
  763. void set_is_stateful(bool value);
  764. private:
  765. bool _internal_is_stateful() const;
  766. void _internal_set_is_stateful(bool value);
  767. public:
  768. // bool allows_uninitialized_input = 19;
  769. void clear_allows_uninitialized_input();
  770. bool allows_uninitialized_input() const;
  771. void set_allows_uninitialized_input(bool value);
  772. private:
  773. bool _internal_allows_uninitialized_input() const;
  774. void _internal_set_allows_uninitialized_input(bool value);
  775. public:
  776. // @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef)
  777. private:
  778. class _Internal;
  779. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  780. typedef void InternalArenaConstructable_;
  781. typedef void DestructorSkippable_;
  782. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef > input_arg_;
  783. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef > output_arg_;
  784. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef > attr_;
  785. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  786. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr summary_;
  787. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
  788. ::opencv_tensorflow::OpDeprecation* deprecation_;
  789. bool is_commutative_;
  790. bool is_aggregate_;
  791. bool is_stateful_;
  792. bool allows_uninitialized_input_;
  793. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  794. friend struct ::TableStruct_op_5fdef_2eproto;
  795. };
  796. // -------------------------------------------------------------------
  797. class OpDeprecation final :
  798. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDeprecation) */ {
  799. public:
  800. inline OpDeprecation() : OpDeprecation(nullptr) {}
  801. ~OpDeprecation() override;
  802. explicit constexpr OpDeprecation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  803. OpDeprecation(const OpDeprecation& from);
  804. OpDeprecation(OpDeprecation&& from) noexcept
  805. : OpDeprecation() {
  806. *this = ::std::move(from);
  807. }
  808. inline OpDeprecation& operator=(const OpDeprecation& from) {
  809. CopyFrom(from);
  810. return *this;
  811. }
  812. inline OpDeprecation& operator=(OpDeprecation&& from) noexcept {
  813. if (this == &from) return *this;
  814. if (GetOwningArena() == from.GetOwningArena()
  815. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  816. && GetOwningArena() != nullptr
  817. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  818. ) {
  819. InternalSwap(&from);
  820. } else {
  821. CopyFrom(from);
  822. }
  823. return *this;
  824. }
  825. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  826. return GetDescriptor();
  827. }
  828. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  829. return default_instance().GetMetadata().descriptor;
  830. }
  831. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  832. return default_instance().GetMetadata().reflection;
  833. }
  834. static const OpDeprecation& default_instance() {
  835. return *internal_default_instance();
  836. }
  837. static inline const OpDeprecation* internal_default_instance() {
  838. return reinterpret_cast<const OpDeprecation*>(
  839. &_OpDeprecation_default_instance_);
  840. }
  841. static constexpr int kIndexInFileMessages =
  842. 3;
  843. friend void swap(OpDeprecation& a, OpDeprecation& b) {
  844. a.Swap(&b);
  845. }
  846. inline void Swap(OpDeprecation* other) {
  847. if (other == this) return;
  848. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  849. if (GetOwningArena() != nullptr &&
  850. GetOwningArena() == other->GetOwningArena()) {
  851. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  852. if (GetOwningArena() == other->GetOwningArena()) {
  853. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  854. InternalSwap(other);
  855. } else {
  856. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  857. }
  858. }
  859. void UnsafeArenaSwap(OpDeprecation* other) {
  860. if (other == this) return;
  861. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  862. InternalSwap(other);
  863. }
  864. // implements Message ----------------------------------------------
  865. OpDeprecation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  866. return CreateMaybeMessage<OpDeprecation>(arena);
  867. }
  868. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  869. void CopyFrom(const OpDeprecation& from);
  870. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  871. void MergeFrom(const OpDeprecation& from);
  872. private:
  873. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  874. public:
  875. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  876. bool IsInitialized() const final;
  877. size_t ByteSizeLong() const final;
  878. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  879. uint8_t* _InternalSerialize(
  880. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  881. int GetCachedSize() const final { return _cached_size_.Get(); }
  882. private:
  883. void SharedCtor();
  884. void SharedDtor();
  885. void SetCachedSize(int size) const final;
  886. void InternalSwap(OpDeprecation* other);
  887. private:
  888. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  889. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  890. return "opencv_tensorflow.OpDeprecation";
  891. }
  892. protected:
  893. explicit OpDeprecation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  894. bool is_message_owned = false);
  895. private:
  896. static void ArenaDtor(void* object);
  897. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  898. public:
  899. static const ClassData _class_data_;
  900. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  901. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  902. // nested types ----------------------------------------------------
  903. // accessors -------------------------------------------------------
  904. enum : int {
  905. kExplanationFieldNumber = 2,
  906. kVersionFieldNumber = 1,
  907. };
  908. // string explanation = 2;
  909. void clear_explanation();
  910. const std::string& explanation() const;
  911. template <typename ArgT0 = const std::string&, typename... ArgT>
  912. void set_explanation(ArgT0&& arg0, ArgT... args);
  913. std::string* mutable_explanation();
  914. PROTOBUF_NODISCARD std::string* release_explanation();
  915. void set_allocated_explanation(std::string* explanation);
  916. private:
  917. const std::string& _internal_explanation() const;
  918. inline PROTOBUF_ALWAYS_INLINE void _internal_set_explanation(const std::string& value);
  919. std::string* _internal_mutable_explanation();
  920. public:
  921. // int32 version = 1;
  922. void clear_version();
  923. int32_t version() const;
  924. void set_version(int32_t value);
  925. private:
  926. int32_t _internal_version() const;
  927. void _internal_set_version(int32_t value);
  928. public:
  929. // @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDeprecation)
  930. private:
  931. class _Internal;
  932. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  933. typedef void InternalArenaConstructable_;
  934. typedef void DestructorSkippable_;
  935. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr explanation_;
  936. int32_t version_;
  937. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  938. friend struct ::TableStruct_op_5fdef_2eproto;
  939. };
  940. // -------------------------------------------------------------------
  941. class OpList final :
  942. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpList) */ {
  943. public:
  944. inline OpList() : OpList(nullptr) {}
  945. ~OpList() override;
  946. explicit constexpr OpList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  947. OpList(const OpList& from);
  948. OpList(OpList&& from) noexcept
  949. : OpList() {
  950. *this = ::std::move(from);
  951. }
  952. inline OpList& operator=(const OpList& from) {
  953. CopyFrom(from);
  954. return *this;
  955. }
  956. inline OpList& operator=(OpList&& from) noexcept {
  957. if (this == &from) return *this;
  958. if (GetOwningArena() == from.GetOwningArena()
  959. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  960. && GetOwningArena() != nullptr
  961. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  962. ) {
  963. InternalSwap(&from);
  964. } else {
  965. CopyFrom(from);
  966. }
  967. return *this;
  968. }
  969. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  970. return GetDescriptor();
  971. }
  972. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  973. return default_instance().GetMetadata().descriptor;
  974. }
  975. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  976. return default_instance().GetMetadata().reflection;
  977. }
  978. static const OpList& default_instance() {
  979. return *internal_default_instance();
  980. }
  981. static inline const OpList* internal_default_instance() {
  982. return reinterpret_cast<const OpList*>(
  983. &_OpList_default_instance_);
  984. }
  985. static constexpr int kIndexInFileMessages =
  986. 4;
  987. friend void swap(OpList& a, OpList& b) {
  988. a.Swap(&b);
  989. }
  990. inline void Swap(OpList* other) {
  991. if (other == this) return;
  992. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  993. if (GetOwningArena() != nullptr &&
  994. GetOwningArena() == other->GetOwningArena()) {
  995. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  996. if (GetOwningArena() == other->GetOwningArena()) {
  997. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  998. InternalSwap(other);
  999. } else {
  1000. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1001. }
  1002. }
  1003. void UnsafeArenaSwap(OpList* other) {
  1004. if (other == this) return;
  1005. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1006. InternalSwap(other);
  1007. }
  1008. // implements Message ----------------------------------------------
  1009. OpList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1010. return CreateMaybeMessage<OpList>(arena);
  1011. }
  1012. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1013. void CopyFrom(const OpList& from);
  1014. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1015. void MergeFrom(const OpList& from);
  1016. private:
  1017. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1018. public:
  1019. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1020. bool IsInitialized() const final;
  1021. size_t ByteSizeLong() const final;
  1022. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1023. uint8_t* _InternalSerialize(
  1024. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1025. int GetCachedSize() const final { return _cached_size_.Get(); }
  1026. private:
  1027. void SharedCtor();
  1028. void SharedDtor();
  1029. void SetCachedSize(int size) const final;
  1030. void InternalSwap(OpList* other);
  1031. private:
  1032. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1033. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1034. return "opencv_tensorflow.OpList";
  1035. }
  1036. protected:
  1037. explicit OpList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1038. bool is_message_owned = false);
  1039. private:
  1040. static void ArenaDtor(void* object);
  1041. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1042. public:
  1043. static const ClassData _class_data_;
  1044. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1045. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1046. // nested types ----------------------------------------------------
  1047. // accessors -------------------------------------------------------
  1048. enum : int {
  1049. kOpFieldNumber = 1,
  1050. };
  1051. // repeated .opencv_tensorflow.OpDef op = 1;
  1052. int op_size() const;
  1053. private:
  1054. int _internal_op_size() const;
  1055. public:
  1056. void clear_op();
  1057. ::opencv_tensorflow::OpDef* mutable_op(int index);
  1058. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef >*
  1059. mutable_op();
  1060. private:
  1061. const ::opencv_tensorflow::OpDef& _internal_op(int index) const;
  1062. ::opencv_tensorflow::OpDef* _internal_add_op();
  1063. public:
  1064. const ::opencv_tensorflow::OpDef& op(int index) const;
  1065. ::opencv_tensorflow::OpDef* add_op();
  1066. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef >&
  1067. op() const;
  1068. // @@protoc_insertion_point(class_scope:opencv_tensorflow.OpList)
  1069. private:
  1070. class _Internal;
  1071. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1072. typedef void InternalArenaConstructable_;
  1073. typedef void DestructorSkippable_;
  1074. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef > op_;
  1075. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1076. friend struct ::TableStruct_op_5fdef_2eproto;
  1077. };
  1078. // ===================================================================
  1079. // ===================================================================
  1080. #ifdef __GNUC__
  1081. #pragma GCC diagnostic push
  1082. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1083. #endif // __GNUC__
  1084. // OpDef_ArgDef
  1085. // string name = 1;
  1086. inline void OpDef_ArgDef::clear_name() {
  1087. name_.ClearToEmpty();
  1088. }
  1089. inline const std::string& OpDef_ArgDef::name() const {
  1090. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.name)
  1091. return _internal_name();
  1092. }
  1093. template <typename ArgT0, typename... ArgT>
  1094. inline PROTOBUF_ALWAYS_INLINE
  1095. void OpDef_ArgDef::set_name(ArgT0&& arg0, ArgT... args) {
  1096. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1097. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.name)
  1098. }
  1099. inline std::string* OpDef_ArgDef::mutable_name() {
  1100. std::string* _s = _internal_mutable_name();
  1101. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.name)
  1102. return _s;
  1103. }
  1104. inline const std::string& OpDef_ArgDef::_internal_name() const {
  1105. return name_.Get();
  1106. }
  1107. inline void OpDef_ArgDef::_internal_set_name(const std::string& value) {
  1108. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1109. }
  1110. inline std::string* OpDef_ArgDef::_internal_mutable_name() {
  1111. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1112. }
  1113. inline std::string* OpDef_ArgDef::release_name() {
  1114. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.name)
  1115. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1116. }
  1117. inline void OpDef_ArgDef::set_allocated_name(std::string* name) {
  1118. if (name != nullptr) {
  1119. } else {
  1120. }
  1121. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1122. GetArenaForAllocation());
  1123. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1124. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1125. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1126. }
  1127. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1128. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.name)
  1129. }
  1130. // string description = 2;
  1131. inline void OpDef_ArgDef::clear_description() {
  1132. description_.ClearToEmpty();
  1133. }
  1134. inline const std::string& OpDef_ArgDef::description() const {
  1135. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.description)
  1136. return _internal_description();
  1137. }
  1138. template <typename ArgT0, typename... ArgT>
  1139. inline PROTOBUF_ALWAYS_INLINE
  1140. void OpDef_ArgDef::set_description(ArgT0&& arg0, ArgT... args) {
  1141. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1142. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.description)
  1143. }
  1144. inline std::string* OpDef_ArgDef::mutable_description() {
  1145. std::string* _s = _internal_mutable_description();
  1146. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.description)
  1147. return _s;
  1148. }
  1149. inline const std::string& OpDef_ArgDef::_internal_description() const {
  1150. return description_.Get();
  1151. }
  1152. inline void OpDef_ArgDef::_internal_set_description(const std::string& value) {
  1153. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1154. }
  1155. inline std::string* OpDef_ArgDef::_internal_mutable_description() {
  1156. return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1157. }
  1158. inline std::string* OpDef_ArgDef::release_description() {
  1159. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.description)
  1160. return description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1161. }
  1162. inline void OpDef_ArgDef::set_allocated_description(std::string* description) {
  1163. if (description != nullptr) {
  1164. } else {
  1165. }
  1166. description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description,
  1167. GetArenaForAllocation());
  1168. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1169. if (description_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1170. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1171. }
  1172. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1173. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.description)
  1174. }
  1175. // .opencv_tensorflow.DataType type = 3;
  1176. inline void OpDef_ArgDef::clear_type() {
  1177. type_ = 0;
  1178. }
  1179. inline ::opencv_tensorflow::DataType OpDef_ArgDef::_internal_type() const {
  1180. return static_cast< ::opencv_tensorflow::DataType >(type_);
  1181. }
  1182. inline ::opencv_tensorflow::DataType OpDef_ArgDef::type() const {
  1183. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type)
  1184. return _internal_type();
  1185. }
  1186. inline void OpDef_ArgDef::_internal_set_type(::opencv_tensorflow::DataType value) {
  1187. type_ = value;
  1188. }
  1189. inline void OpDef_ArgDef::set_type(::opencv_tensorflow::DataType value) {
  1190. _internal_set_type(value);
  1191. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type)
  1192. }
  1193. // string type_attr = 4;
  1194. inline void OpDef_ArgDef::clear_type_attr() {
  1195. type_attr_.ClearToEmpty();
  1196. }
  1197. inline const std::string& OpDef_ArgDef::type_attr() const {
  1198. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type_attr)
  1199. return _internal_type_attr();
  1200. }
  1201. template <typename ArgT0, typename... ArgT>
  1202. inline PROTOBUF_ALWAYS_INLINE
  1203. void OpDef_ArgDef::set_type_attr(ArgT0&& arg0, ArgT... args) {
  1204. type_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1205. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type_attr)
  1206. }
  1207. inline std::string* OpDef_ArgDef::mutable_type_attr() {
  1208. std::string* _s = _internal_mutable_type_attr();
  1209. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.type_attr)
  1210. return _s;
  1211. }
  1212. inline const std::string& OpDef_ArgDef::_internal_type_attr() const {
  1213. return type_attr_.Get();
  1214. }
  1215. inline void OpDef_ArgDef::_internal_set_type_attr(const std::string& value) {
  1216. type_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1217. }
  1218. inline std::string* OpDef_ArgDef::_internal_mutable_type_attr() {
  1219. return type_attr_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1220. }
  1221. inline std::string* OpDef_ArgDef::release_type_attr() {
  1222. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.type_attr)
  1223. return type_attr_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1224. }
  1225. inline void OpDef_ArgDef::set_allocated_type_attr(std::string* type_attr) {
  1226. if (type_attr != nullptr) {
  1227. } else {
  1228. }
  1229. type_attr_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_attr,
  1230. GetArenaForAllocation());
  1231. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1232. if (type_attr_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1233. type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1234. }
  1235. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1236. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_attr)
  1237. }
  1238. // string number_attr = 5;
  1239. inline void OpDef_ArgDef::clear_number_attr() {
  1240. number_attr_.ClearToEmpty();
  1241. }
  1242. inline const std::string& OpDef_ArgDef::number_attr() const {
  1243. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.number_attr)
  1244. return _internal_number_attr();
  1245. }
  1246. template <typename ArgT0, typename... ArgT>
  1247. inline PROTOBUF_ALWAYS_INLINE
  1248. void OpDef_ArgDef::set_number_attr(ArgT0&& arg0, ArgT... args) {
  1249. number_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1250. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.number_attr)
  1251. }
  1252. inline std::string* OpDef_ArgDef::mutable_number_attr() {
  1253. std::string* _s = _internal_mutable_number_attr();
  1254. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.number_attr)
  1255. return _s;
  1256. }
  1257. inline const std::string& OpDef_ArgDef::_internal_number_attr() const {
  1258. return number_attr_.Get();
  1259. }
  1260. inline void OpDef_ArgDef::_internal_set_number_attr(const std::string& value) {
  1261. number_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1262. }
  1263. inline std::string* OpDef_ArgDef::_internal_mutable_number_attr() {
  1264. return number_attr_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1265. }
  1266. inline std::string* OpDef_ArgDef::release_number_attr() {
  1267. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.number_attr)
  1268. return number_attr_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1269. }
  1270. inline void OpDef_ArgDef::set_allocated_number_attr(std::string* number_attr) {
  1271. if (number_attr != nullptr) {
  1272. } else {
  1273. }
  1274. number_attr_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), number_attr,
  1275. GetArenaForAllocation());
  1276. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1277. if (number_attr_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1278. number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1279. }
  1280. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1281. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.number_attr)
  1282. }
  1283. // string type_list_attr = 6;
  1284. inline void OpDef_ArgDef::clear_type_list_attr() {
  1285. type_list_attr_.ClearToEmpty();
  1286. }
  1287. inline const std::string& OpDef_ArgDef::type_list_attr() const {
  1288. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
  1289. return _internal_type_list_attr();
  1290. }
  1291. template <typename ArgT0, typename... ArgT>
  1292. inline PROTOBUF_ALWAYS_INLINE
  1293. void OpDef_ArgDef::set_type_list_attr(ArgT0&& arg0, ArgT... args) {
  1294. type_list_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1295. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
  1296. }
  1297. inline std::string* OpDef_ArgDef::mutable_type_list_attr() {
  1298. std::string* _s = _internal_mutable_type_list_attr();
  1299. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
  1300. return _s;
  1301. }
  1302. inline const std::string& OpDef_ArgDef::_internal_type_list_attr() const {
  1303. return type_list_attr_.Get();
  1304. }
  1305. inline void OpDef_ArgDef::_internal_set_type_list_attr(const std::string& value) {
  1306. type_list_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1307. }
  1308. inline std::string* OpDef_ArgDef::_internal_mutable_type_list_attr() {
  1309. return type_list_attr_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1310. }
  1311. inline std::string* OpDef_ArgDef::release_type_list_attr() {
  1312. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
  1313. return type_list_attr_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1314. }
  1315. inline void OpDef_ArgDef::set_allocated_type_list_attr(std::string* type_list_attr) {
  1316. if (type_list_attr != nullptr) {
  1317. } else {
  1318. }
  1319. type_list_attr_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_list_attr,
  1320. GetArenaForAllocation());
  1321. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1322. if (type_list_attr_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1323. type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1324. }
  1325. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1326. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
  1327. }
  1328. // bool is_ref = 16;
  1329. inline void OpDef_ArgDef::clear_is_ref() {
  1330. is_ref_ = false;
  1331. }
  1332. inline bool OpDef_ArgDef::_internal_is_ref() const {
  1333. return is_ref_;
  1334. }
  1335. inline bool OpDef_ArgDef::is_ref() const {
  1336. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.is_ref)
  1337. return _internal_is_ref();
  1338. }
  1339. inline void OpDef_ArgDef::_internal_set_is_ref(bool value) {
  1340. is_ref_ = value;
  1341. }
  1342. inline void OpDef_ArgDef::set_is_ref(bool value) {
  1343. _internal_set_is_ref(value);
  1344. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.is_ref)
  1345. }
  1346. // -------------------------------------------------------------------
  1347. // OpDef_AttrDef
  1348. // string name = 1;
  1349. inline void OpDef_AttrDef::clear_name() {
  1350. name_.ClearToEmpty();
  1351. }
  1352. inline const std::string& OpDef_AttrDef::name() const {
  1353. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.name)
  1354. return _internal_name();
  1355. }
  1356. template <typename ArgT0, typename... ArgT>
  1357. inline PROTOBUF_ALWAYS_INLINE
  1358. void OpDef_AttrDef::set_name(ArgT0&& arg0, ArgT... args) {
  1359. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1360. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.name)
  1361. }
  1362. inline std::string* OpDef_AttrDef::mutable_name() {
  1363. std::string* _s = _internal_mutable_name();
  1364. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.name)
  1365. return _s;
  1366. }
  1367. inline const std::string& OpDef_AttrDef::_internal_name() const {
  1368. return name_.Get();
  1369. }
  1370. inline void OpDef_AttrDef::_internal_set_name(const std::string& value) {
  1371. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1372. }
  1373. inline std::string* OpDef_AttrDef::_internal_mutable_name() {
  1374. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1375. }
  1376. inline std::string* OpDef_AttrDef::release_name() {
  1377. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.name)
  1378. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1379. }
  1380. inline void OpDef_AttrDef::set_allocated_name(std::string* name) {
  1381. if (name != nullptr) {
  1382. } else {
  1383. }
  1384. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1385. GetArenaForAllocation());
  1386. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1387. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1388. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1389. }
  1390. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1391. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.name)
  1392. }
  1393. // string type = 2;
  1394. inline void OpDef_AttrDef::clear_type() {
  1395. type_.ClearToEmpty();
  1396. }
  1397. inline const std::string& OpDef_AttrDef::type() const {
  1398. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.type)
  1399. return _internal_type();
  1400. }
  1401. template <typename ArgT0, typename... ArgT>
  1402. inline PROTOBUF_ALWAYS_INLINE
  1403. void OpDef_AttrDef::set_type(ArgT0&& arg0, ArgT... args) {
  1404. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1405. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.type)
  1406. }
  1407. inline std::string* OpDef_AttrDef::mutable_type() {
  1408. std::string* _s = _internal_mutable_type();
  1409. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.type)
  1410. return _s;
  1411. }
  1412. inline const std::string& OpDef_AttrDef::_internal_type() const {
  1413. return type_.Get();
  1414. }
  1415. inline void OpDef_AttrDef::_internal_set_type(const std::string& value) {
  1416. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1417. }
  1418. inline std::string* OpDef_AttrDef::_internal_mutable_type() {
  1419. return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1420. }
  1421. inline std::string* OpDef_AttrDef::release_type() {
  1422. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.type)
  1423. return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1424. }
  1425. inline void OpDef_AttrDef::set_allocated_type(std::string* type) {
  1426. if (type != nullptr) {
  1427. } else {
  1428. }
  1429. type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type,
  1430. GetArenaForAllocation());
  1431. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1432. if (type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1433. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1434. }
  1435. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1436. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.type)
  1437. }
  1438. // .opencv_tensorflow.AttrValue default_value = 3;
  1439. inline bool OpDef_AttrDef::_internal_has_default_value() const {
  1440. return this != internal_default_instance() && default_value_ != nullptr;
  1441. }
  1442. inline bool OpDef_AttrDef::has_default_value() const {
  1443. return _internal_has_default_value();
  1444. }
  1445. inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::_internal_default_value() const {
  1446. const ::opencv_tensorflow::AttrValue* p = default_value_;
  1447. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::AttrValue&>(
  1448. ::opencv_tensorflow::_AttrValue_default_instance_);
  1449. }
  1450. inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::default_value() const {
  1451. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.default_value)
  1452. return _internal_default_value();
  1453. }
  1454. inline void OpDef_AttrDef::unsafe_arena_set_allocated_default_value(
  1455. ::opencv_tensorflow::AttrValue* default_value) {
  1456. if (GetArenaForAllocation() == nullptr) {
  1457. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_value_);
  1458. }
  1459. default_value_ = default_value;
  1460. if (default_value) {
  1461. } else {
  1462. }
  1463. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.default_value)
  1464. }
  1465. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::release_default_value() {
  1466. ::opencv_tensorflow::AttrValue* temp = default_value_;
  1467. default_value_ = nullptr;
  1468. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1469. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1470. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1471. if (GetArenaForAllocation() == nullptr) { delete old; }
  1472. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1473. if (GetArenaForAllocation() != nullptr) {
  1474. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1475. }
  1476. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1477. return temp;
  1478. }
  1479. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() {
  1480. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.default_value)
  1481. ::opencv_tensorflow::AttrValue* temp = default_value_;
  1482. default_value_ = nullptr;
  1483. return temp;
  1484. }
  1485. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::_internal_mutable_default_value() {
  1486. if (default_value_ == nullptr) {
  1487. auto* p = CreateMaybeMessage<::opencv_tensorflow::AttrValue>(GetArenaForAllocation());
  1488. default_value_ = p;
  1489. }
  1490. return default_value_;
  1491. }
  1492. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() {
  1493. ::opencv_tensorflow::AttrValue* _msg = _internal_mutable_default_value();
  1494. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.default_value)
  1495. return _msg;
  1496. }
  1497. inline void OpDef_AttrDef::set_allocated_default_value(::opencv_tensorflow::AttrValue* default_value) {
  1498. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1499. if (message_arena == nullptr) {
  1500. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_value_);
  1501. }
  1502. if (default_value) {
  1503. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1504. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  1505. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  1506. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_value));
  1507. if (message_arena != submessage_arena) {
  1508. default_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1509. message_arena, default_value, submessage_arena);
  1510. }
  1511. } else {
  1512. }
  1513. default_value_ = default_value;
  1514. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.default_value)
  1515. }
  1516. // string description = 4;
  1517. inline void OpDef_AttrDef::clear_description() {
  1518. description_.ClearToEmpty();
  1519. }
  1520. inline const std::string& OpDef_AttrDef::description() const {
  1521. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.description)
  1522. return _internal_description();
  1523. }
  1524. template <typename ArgT0, typename... ArgT>
  1525. inline PROTOBUF_ALWAYS_INLINE
  1526. void OpDef_AttrDef::set_description(ArgT0&& arg0, ArgT... args) {
  1527. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1528. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.description)
  1529. }
  1530. inline std::string* OpDef_AttrDef::mutable_description() {
  1531. std::string* _s = _internal_mutable_description();
  1532. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.description)
  1533. return _s;
  1534. }
  1535. inline const std::string& OpDef_AttrDef::_internal_description() const {
  1536. return description_.Get();
  1537. }
  1538. inline void OpDef_AttrDef::_internal_set_description(const std::string& value) {
  1539. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1540. }
  1541. inline std::string* OpDef_AttrDef::_internal_mutable_description() {
  1542. return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1543. }
  1544. inline std::string* OpDef_AttrDef::release_description() {
  1545. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.description)
  1546. return description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1547. }
  1548. inline void OpDef_AttrDef::set_allocated_description(std::string* description) {
  1549. if (description != nullptr) {
  1550. } else {
  1551. }
  1552. description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description,
  1553. GetArenaForAllocation());
  1554. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1555. if (description_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1556. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1557. }
  1558. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1559. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.description)
  1560. }
  1561. // bool has_minimum = 5;
  1562. inline void OpDef_AttrDef::clear_has_minimum() {
  1563. has_minimum_ = false;
  1564. }
  1565. inline bool OpDef_AttrDef::_internal_has_minimum() const {
  1566. return has_minimum_;
  1567. }
  1568. inline bool OpDef_AttrDef::has_minimum() const {
  1569. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.has_minimum)
  1570. return _internal_has_minimum();
  1571. }
  1572. inline void OpDef_AttrDef::_internal_set_has_minimum(bool value) {
  1573. has_minimum_ = value;
  1574. }
  1575. inline void OpDef_AttrDef::set_has_minimum(bool value) {
  1576. _internal_set_has_minimum(value);
  1577. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.has_minimum)
  1578. }
  1579. // int64 minimum = 6;
  1580. inline void OpDef_AttrDef::clear_minimum() {
  1581. minimum_ = int64_t{0};
  1582. }
  1583. inline int64_t OpDef_AttrDef::_internal_minimum() const {
  1584. return minimum_;
  1585. }
  1586. inline int64_t OpDef_AttrDef::minimum() const {
  1587. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.minimum)
  1588. return _internal_minimum();
  1589. }
  1590. inline void OpDef_AttrDef::_internal_set_minimum(int64_t value) {
  1591. minimum_ = value;
  1592. }
  1593. inline void OpDef_AttrDef::set_minimum(int64_t value) {
  1594. _internal_set_minimum(value);
  1595. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.minimum)
  1596. }
  1597. // .opencv_tensorflow.AttrValue allowed_values = 7;
  1598. inline bool OpDef_AttrDef::_internal_has_allowed_values() const {
  1599. return this != internal_default_instance() && allowed_values_ != nullptr;
  1600. }
  1601. inline bool OpDef_AttrDef::has_allowed_values() const {
  1602. return _internal_has_allowed_values();
  1603. }
  1604. inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::_internal_allowed_values() const {
  1605. const ::opencv_tensorflow::AttrValue* p = allowed_values_;
  1606. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::AttrValue&>(
  1607. ::opencv_tensorflow::_AttrValue_default_instance_);
  1608. }
  1609. inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const {
  1610. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.allowed_values)
  1611. return _internal_allowed_values();
  1612. }
  1613. inline void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values(
  1614. ::opencv_tensorflow::AttrValue* allowed_values) {
  1615. if (GetArenaForAllocation() == nullptr) {
  1616. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(allowed_values_);
  1617. }
  1618. allowed_values_ = allowed_values;
  1619. if (allowed_values) {
  1620. } else {
  1621. }
  1622. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.allowed_values)
  1623. }
  1624. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() {
  1625. ::opencv_tensorflow::AttrValue* temp = allowed_values_;
  1626. allowed_values_ = nullptr;
  1627. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1628. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1629. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1630. if (GetArenaForAllocation() == nullptr) { delete old; }
  1631. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1632. if (GetArenaForAllocation() != nullptr) {
  1633. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1634. }
  1635. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1636. return temp;
  1637. }
  1638. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() {
  1639. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.allowed_values)
  1640. ::opencv_tensorflow::AttrValue* temp = allowed_values_;
  1641. allowed_values_ = nullptr;
  1642. return temp;
  1643. }
  1644. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::_internal_mutable_allowed_values() {
  1645. if (allowed_values_ == nullptr) {
  1646. auto* p = CreateMaybeMessage<::opencv_tensorflow::AttrValue>(GetArenaForAllocation());
  1647. allowed_values_ = p;
  1648. }
  1649. return allowed_values_;
  1650. }
  1651. inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() {
  1652. ::opencv_tensorflow::AttrValue* _msg = _internal_mutable_allowed_values();
  1653. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.allowed_values)
  1654. return _msg;
  1655. }
  1656. inline void OpDef_AttrDef::set_allocated_allowed_values(::opencv_tensorflow::AttrValue* allowed_values) {
  1657. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1658. if (message_arena == nullptr) {
  1659. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(allowed_values_);
  1660. }
  1661. if (allowed_values) {
  1662. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1663. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  1664. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  1665. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(allowed_values));
  1666. if (message_arena != submessage_arena) {
  1667. allowed_values = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1668. message_arena, allowed_values, submessage_arena);
  1669. }
  1670. } else {
  1671. }
  1672. allowed_values_ = allowed_values;
  1673. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.allowed_values)
  1674. }
  1675. // -------------------------------------------------------------------
  1676. // OpDef
  1677. // string name = 1;
  1678. inline void OpDef::clear_name() {
  1679. name_.ClearToEmpty();
  1680. }
  1681. inline const std::string& OpDef::name() const {
  1682. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.name)
  1683. return _internal_name();
  1684. }
  1685. template <typename ArgT0, typename... ArgT>
  1686. inline PROTOBUF_ALWAYS_INLINE
  1687. void OpDef::set_name(ArgT0&& arg0, ArgT... args) {
  1688. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1689. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.name)
  1690. }
  1691. inline std::string* OpDef::mutable_name() {
  1692. std::string* _s = _internal_mutable_name();
  1693. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.name)
  1694. return _s;
  1695. }
  1696. inline const std::string& OpDef::_internal_name() const {
  1697. return name_.Get();
  1698. }
  1699. inline void OpDef::_internal_set_name(const std::string& value) {
  1700. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1701. }
  1702. inline std::string* OpDef::_internal_mutable_name() {
  1703. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1704. }
  1705. inline std::string* OpDef::release_name() {
  1706. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.name)
  1707. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1708. }
  1709. inline void OpDef::set_allocated_name(std::string* name) {
  1710. if (name != nullptr) {
  1711. } else {
  1712. }
  1713. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1714. GetArenaForAllocation());
  1715. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1716. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1717. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1718. }
  1719. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1720. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.name)
  1721. }
  1722. // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
  1723. inline int OpDef::_internal_input_arg_size() const {
  1724. return input_arg_.size();
  1725. }
  1726. inline int OpDef::input_arg_size() const {
  1727. return _internal_input_arg_size();
  1728. }
  1729. inline void OpDef::clear_input_arg() {
  1730. input_arg_.Clear();
  1731. }
  1732. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::mutable_input_arg(int index) {
  1733. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.input_arg)
  1734. return input_arg_.Mutable(index);
  1735. }
  1736. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
  1737. OpDef::mutable_input_arg() {
  1738. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.input_arg)
  1739. return &input_arg_;
  1740. }
  1741. inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::_internal_input_arg(int index) const {
  1742. return input_arg_.Get(index);
  1743. }
  1744. inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::input_arg(int index) const {
  1745. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.input_arg)
  1746. return _internal_input_arg(index);
  1747. }
  1748. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::_internal_add_input_arg() {
  1749. return input_arg_.Add();
  1750. }
  1751. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::add_input_arg() {
  1752. ::opencv_tensorflow::OpDef_ArgDef* _add = _internal_add_input_arg();
  1753. // @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.input_arg)
  1754. return _add;
  1755. }
  1756. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
  1757. OpDef::input_arg() const {
  1758. // @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.input_arg)
  1759. return input_arg_;
  1760. }
  1761. // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
  1762. inline int OpDef::_internal_output_arg_size() const {
  1763. return output_arg_.size();
  1764. }
  1765. inline int OpDef::output_arg_size() const {
  1766. return _internal_output_arg_size();
  1767. }
  1768. inline void OpDef::clear_output_arg() {
  1769. output_arg_.Clear();
  1770. }
  1771. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::mutable_output_arg(int index) {
  1772. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.output_arg)
  1773. return output_arg_.Mutable(index);
  1774. }
  1775. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
  1776. OpDef::mutable_output_arg() {
  1777. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.output_arg)
  1778. return &output_arg_;
  1779. }
  1780. inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::_internal_output_arg(int index) const {
  1781. return output_arg_.Get(index);
  1782. }
  1783. inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::output_arg(int index) const {
  1784. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.output_arg)
  1785. return _internal_output_arg(index);
  1786. }
  1787. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::_internal_add_output_arg() {
  1788. return output_arg_.Add();
  1789. }
  1790. inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::add_output_arg() {
  1791. ::opencv_tensorflow::OpDef_ArgDef* _add = _internal_add_output_arg();
  1792. // @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.output_arg)
  1793. return _add;
  1794. }
  1795. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
  1796. OpDef::output_arg() const {
  1797. // @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.output_arg)
  1798. return output_arg_;
  1799. }
  1800. // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
  1801. inline int OpDef::_internal_attr_size() const {
  1802. return attr_.size();
  1803. }
  1804. inline int OpDef::attr_size() const {
  1805. return _internal_attr_size();
  1806. }
  1807. inline void OpDef::clear_attr() {
  1808. attr_.Clear();
  1809. }
  1810. inline ::opencv_tensorflow::OpDef_AttrDef* OpDef::mutable_attr(int index) {
  1811. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.attr)
  1812. return attr_.Mutable(index);
  1813. }
  1814. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >*
  1815. OpDef::mutable_attr() {
  1816. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.attr)
  1817. return &attr_;
  1818. }
  1819. inline const ::opencv_tensorflow::OpDef_AttrDef& OpDef::_internal_attr(int index) const {
  1820. return attr_.Get(index);
  1821. }
  1822. inline const ::opencv_tensorflow::OpDef_AttrDef& OpDef::attr(int index) const {
  1823. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.attr)
  1824. return _internal_attr(index);
  1825. }
  1826. inline ::opencv_tensorflow::OpDef_AttrDef* OpDef::_internal_add_attr() {
  1827. return attr_.Add();
  1828. }
  1829. inline ::opencv_tensorflow::OpDef_AttrDef* OpDef::add_attr() {
  1830. ::opencv_tensorflow::OpDef_AttrDef* _add = _internal_add_attr();
  1831. // @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.attr)
  1832. return _add;
  1833. }
  1834. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >&
  1835. OpDef::attr() const {
  1836. // @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.attr)
  1837. return attr_;
  1838. }
  1839. // .opencv_tensorflow.OpDeprecation deprecation = 8;
  1840. inline bool OpDef::_internal_has_deprecation() const {
  1841. return this != internal_default_instance() && deprecation_ != nullptr;
  1842. }
  1843. inline bool OpDef::has_deprecation() const {
  1844. return _internal_has_deprecation();
  1845. }
  1846. inline void OpDef::clear_deprecation() {
  1847. if (GetArenaForAllocation() == nullptr && deprecation_ != nullptr) {
  1848. delete deprecation_;
  1849. }
  1850. deprecation_ = nullptr;
  1851. }
  1852. inline const ::opencv_tensorflow::OpDeprecation& OpDef::_internal_deprecation() const {
  1853. const ::opencv_tensorflow::OpDeprecation* p = deprecation_;
  1854. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::OpDeprecation&>(
  1855. ::opencv_tensorflow::_OpDeprecation_default_instance_);
  1856. }
  1857. inline const ::opencv_tensorflow::OpDeprecation& OpDef::deprecation() const {
  1858. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.deprecation)
  1859. return _internal_deprecation();
  1860. }
  1861. inline void OpDef::unsafe_arena_set_allocated_deprecation(
  1862. ::opencv_tensorflow::OpDeprecation* deprecation) {
  1863. if (GetArenaForAllocation() == nullptr) {
  1864. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(deprecation_);
  1865. }
  1866. deprecation_ = deprecation;
  1867. if (deprecation) {
  1868. } else {
  1869. }
  1870. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.deprecation)
  1871. }
  1872. inline ::opencv_tensorflow::OpDeprecation* OpDef::release_deprecation() {
  1873. ::opencv_tensorflow::OpDeprecation* temp = deprecation_;
  1874. deprecation_ = nullptr;
  1875. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1876. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1877. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1878. if (GetArenaForAllocation() == nullptr) { delete old; }
  1879. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1880. if (GetArenaForAllocation() != nullptr) {
  1881. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1882. }
  1883. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1884. return temp;
  1885. }
  1886. inline ::opencv_tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() {
  1887. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.deprecation)
  1888. ::opencv_tensorflow::OpDeprecation* temp = deprecation_;
  1889. deprecation_ = nullptr;
  1890. return temp;
  1891. }
  1892. inline ::opencv_tensorflow::OpDeprecation* OpDef::_internal_mutable_deprecation() {
  1893. if (deprecation_ == nullptr) {
  1894. auto* p = CreateMaybeMessage<::opencv_tensorflow::OpDeprecation>(GetArenaForAllocation());
  1895. deprecation_ = p;
  1896. }
  1897. return deprecation_;
  1898. }
  1899. inline ::opencv_tensorflow::OpDeprecation* OpDef::mutable_deprecation() {
  1900. ::opencv_tensorflow::OpDeprecation* _msg = _internal_mutable_deprecation();
  1901. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.deprecation)
  1902. return _msg;
  1903. }
  1904. inline void OpDef::set_allocated_deprecation(::opencv_tensorflow::OpDeprecation* deprecation) {
  1905. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1906. if (message_arena == nullptr) {
  1907. delete deprecation_;
  1908. }
  1909. if (deprecation) {
  1910. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1911. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_tensorflow::OpDeprecation>::GetOwningArena(deprecation);
  1912. if (message_arena != submessage_arena) {
  1913. deprecation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1914. message_arena, deprecation, submessage_arena);
  1915. }
  1916. } else {
  1917. }
  1918. deprecation_ = deprecation;
  1919. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.deprecation)
  1920. }
  1921. // string summary = 5;
  1922. inline void OpDef::clear_summary() {
  1923. summary_.ClearToEmpty();
  1924. }
  1925. inline const std::string& OpDef::summary() const {
  1926. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.summary)
  1927. return _internal_summary();
  1928. }
  1929. template <typename ArgT0, typename... ArgT>
  1930. inline PROTOBUF_ALWAYS_INLINE
  1931. void OpDef::set_summary(ArgT0&& arg0, ArgT... args) {
  1932. summary_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1933. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.summary)
  1934. }
  1935. inline std::string* OpDef::mutable_summary() {
  1936. std::string* _s = _internal_mutable_summary();
  1937. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.summary)
  1938. return _s;
  1939. }
  1940. inline const std::string& OpDef::_internal_summary() const {
  1941. return summary_.Get();
  1942. }
  1943. inline void OpDef::_internal_set_summary(const std::string& value) {
  1944. summary_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1945. }
  1946. inline std::string* OpDef::_internal_mutable_summary() {
  1947. return summary_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1948. }
  1949. inline std::string* OpDef::release_summary() {
  1950. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.summary)
  1951. return summary_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1952. }
  1953. inline void OpDef::set_allocated_summary(std::string* summary) {
  1954. if (summary != nullptr) {
  1955. } else {
  1956. }
  1957. summary_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), summary,
  1958. GetArenaForAllocation());
  1959. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1960. if (summary_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1961. summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1962. }
  1963. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1964. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.summary)
  1965. }
  1966. // string description = 6;
  1967. inline void OpDef::clear_description() {
  1968. description_.ClearToEmpty();
  1969. }
  1970. inline const std::string& OpDef::description() const {
  1971. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.description)
  1972. return _internal_description();
  1973. }
  1974. template <typename ArgT0, typename... ArgT>
  1975. inline PROTOBUF_ALWAYS_INLINE
  1976. void OpDef::set_description(ArgT0&& arg0, ArgT... args) {
  1977. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1978. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.description)
  1979. }
  1980. inline std::string* OpDef::mutable_description() {
  1981. std::string* _s = _internal_mutable_description();
  1982. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.description)
  1983. return _s;
  1984. }
  1985. inline const std::string& OpDef::_internal_description() const {
  1986. return description_.Get();
  1987. }
  1988. inline void OpDef::_internal_set_description(const std::string& value) {
  1989. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1990. }
  1991. inline std::string* OpDef::_internal_mutable_description() {
  1992. return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1993. }
  1994. inline std::string* OpDef::release_description() {
  1995. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.description)
  1996. return description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1997. }
  1998. inline void OpDef::set_allocated_description(std::string* description) {
  1999. if (description != nullptr) {
  2000. } else {
  2001. }
  2002. description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description,
  2003. GetArenaForAllocation());
  2004. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2005. if (description_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  2006. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2007. }
  2008. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2009. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.description)
  2010. }
  2011. // bool is_commutative = 18;
  2012. inline void OpDef::clear_is_commutative() {
  2013. is_commutative_ = false;
  2014. }
  2015. inline bool OpDef::_internal_is_commutative() const {
  2016. return is_commutative_;
  2017. }
  2018. inline bool OpDef::is_commutative() const {
  2019. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_commutative)
  2020. return _internal_is_commutative();
  2021. }
  2022. inline void OpDef::_internal_set_is_commutative(bool value) {
  2023. is_commutative_ = value;
  2024. }
  2025. inline void OpDef::set_is_commutative(bool value) {
  2026. _internal_set_is_commutative(value);
  2027. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_commutative)
  2028. }
  2029. // bool is_aggregate = 16;
  2030. inline void OpDef::clear_is_aggregate() {
  2031. is_aggregate_ = false;
  2032. }
  2033. inline bool OpDef::_internal_is_aggregate() const {
  2034. return is_aggregate_;
  2035. }
  2036. inline bool OpDef::is_aggregate() const {
  2037. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_aggregate)
  2038. return _internal_is_aggregate();
  2039. }
  2040. inline void OpDef::_internal_set_is_aggregate(bool value) {
  2041. is_aggregate_ = value;
  2042. }
  2043. inline void OpDef::set_is_aggregate(bool value) {
  2044. _internal_set_is_aggregate(value);
  2045. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_aggregate)
  2046. }
  2047. // bool is_stateful = 17;
  2048. inline void OpDef::clear_is_stateful() {
  2049. is_stateful_ = false;
  2050. }
  2051. inline bool OpDef::_internal_is_stateful() const {
  2052. return is_stateful_;
  2053. }
  2054. inline bool OpDef::is_stateful() const {
  2055. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_stateful)
  2056. return _internal_is_stateful();
  2057. }
  2058. inline void OpDef::_internal_set_is_stateful(bool value) {
  2059. is_stateful_ = value;
  2060. }
  2061. inline void OpDef::set_is_stateful(bool value) {
  2062. _internal_set_is_stateful(value);
  2063. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_stateful)
  2064. }
  2065. // bool allows_uninitialized_input = 19;
  2066. inline void OpDef::clear_allows_uninitialized_input() {
  2067. allows_uninitialized_input_ = false;
  2068. }
  2069. inline bool OpDef::_internal_allows_uninitialized_input() const {
  2070. return allows_uninitialized_input_;
  2071. }
  2072. inline bool OpDef::allows_uninitialized_input() const {
  2073. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.allows_uninitialized_input)
  2074. return _internal_allows_uninitialized_input();
  2075. }
  2076. inline void OpDef::_internal_set_allows_uninitialized_input(bool value) {
  2077. allows_uninitialized_input_ = value;
  2078. }
  2079. inline void OpDef::set_allows_uninitialized_input(bool value) {
  2080. _internal_set_allows_uninitialized_input(value);
  2081. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.allows_uninitialized_input)
  2082. }
  2083. // -------------------------------------------------------------------
  2084. // OpDeprecation
  2085. // int32 version = 1;
  2086. inline void OpDeprecation::clear_version() {
  2087. version_ = 0;
  2088. }
  2089. inline int32_t OpDeprecation::_internal_version() const {
  2090. return version_;
  2091. }
  2092. inline int32_t OpDeprecation::version() const {
  2093. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDeprecation.version)
  2094. return _internal_version();
  2095. }
  2096. inline void OpDeprecation::_internal_set_version(int32_t value) {
  2097. version_ = value;
  2098. }
  2099. inline void OpDeprecation::set_version(int32_t value) {
  2100. _internal_set_version(value);
  2101. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDeprecation.version)
  2102. }
  2103. // string explanation = 2;
  2104. inline void OpDeprecation::clear_explanation() {
  2105. explanation_.ClearToEmpty();
  2106. }
  2107. inline const std::string& OpDeprecation::explanation() const {
  2108. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpDeprecation.explanation)
  2109. return _internal_explanation();
  2110. }
  2111. template <typename ArgT0, typename... ArgT>
  2112. inline PROTOBUF_ALWAYS_INLINE
  2113. void OpDeprecation::set_explanation(ArgT0&& arg0, ArgT... args) {
  2114. explanation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  2115. // @@protoc_insertion_point(field_set:opencv_tensorflow.OpDeprecation.explanation)
  2116. }
  2117. inline std::string* OpDeprecation::mutable_explanation() {
  2118. std::string* _s = _internal_mutable_explanation();
  2119. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDeprecation.explanation)
  2120. return _s;
  2121. }
  2122. inline const std::string& OpDeprecation::_internal_explanation() const {
  2123. return explanation_.Get();
  2124. }
  2125. inline void OpDeprecation::_internal_set_explanation(const std::string& value) {
  2126. explanation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  2127. }
  2128. inline std::string* OpDeprecation::_internal_mutable_explanation() {
  2129. return explanation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  2130. }
  2131. inline std::string* OpDeprecation::release_explanation() {
  2132. // @@protoc_insertion_point(field_release:opencv_tensorflow.OpDeprecation.explanation)
  2133. return explanation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  2134. }
  2135. inline void OpDeprecation::set_allocated_explanation(std::string* explanation) {
  2136. if (explanation != nullptr) {
  2137. } else {
  2138. }
  2139. explanation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), explanation,
  2140. GetArenaForAllocation());
  2141. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2142. if (explanation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  2143. explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2144. }
  2145. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2146. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDeprecation.explanation)
  2147. }
  2148. // -------------------------------------------------------------------
  2149. // OpList
  2150. // repeated .opencv_tensorflow.OpDef op = 1;
  2151. inline int OpList::_internal_op_size() const {
  2152. return op_.size();
  2153. }
  2154. inline int OpList::op_size() const {
  2155. return _internal_op_size();
  2156. }
  2157. inline void OpList::clear_op() {
  2158. op_.Clear();
  2159. }
  2160. inline ::opencv_tensorflow::OpDef* OpList::mutable_op(int index) {
  2161. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpList.op)
  2162. return op_.Mutable(index);
  2163. }
  2164. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef >*
  2165. OpList::mutable_op() {
  2166. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpList.op)
  2167. return &op_;
  2168. }
  2169. inline const ::opencv_tensorflow::OpDef& OpList::_internal_op(int index) const {
  2170. return op_.Get(index);
  2171. }
  2172. inline const ::opencv_tensorflow::OpDef& OpList::op(int index) const {
  2173. // @@protoc_insertion_point(field_get:opencv_tensorflow.OpList.op)
  2174. return _internal_op(index);
  2175. }
  2176. inline ::opencv_tensorflow::OpDef* OpList::_internal_add_op() {
  2177. return op_.Add();
  2178. }
  2179. inline ::opencv_tensorflow::OpDef* OpList::add_op() {
  2180. ::opencv_tensorflow::OpDef* _add = _internal_add_op();
  2181. // @@protoc_insertion_point(field_add:opencv_tensorflow.OpList.op)
  2182. return _add;
  2183. }
  2184. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::OpDef >&
  2185. OpList::op() const {
  2186. // @@protoc_insertion_point(field_list:opencv_tensorflow.OpList.op)
  2187. return op_;
  2188. }
  2189. #ifdef __GNUC__
  2190. #pragma GCC diagnostic pop
  2191. #endif // __GNUC__
  2192. // -------------------------------------------------------------------
  2193. // -------------------------------------------------------------------
  2194. // -------------------------------------------------------------------
  2195. // -------------------------------------------------------------------
  2196. // @@protoc_insertion_point(namespace_scope)
  2197. } // namespace opencv_tensorflow
  2198. // @@protoc_insertion_point(global_scope)
  2199. #include <google/protobuf/port_undef.inc>
  2200. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_op_5fdef_2eproto