function.pb.h 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: function.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_function_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_function_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/map.h> // IWYU pragma: export
  30. #include <google/protobuf/map_entry.h>
  31. #include <google/protobuf/map_field_inl.h>
  32. #include <google/protobuf/unknown_field_set.h>
  33. #include "attr_value.pb.h"
  34. #include "op_def.pb.h"
  35. // @@protoc_insertion_point(includes)
  36. #include <google/protobuf/port_def.inc>
  37. #define PROTOBUF_INTERNAL_EXPORT_function_2eproto
  38. PROTOBUF_NAMESPACE_OPEN
  39. namespace internal {
  40. class AnyMetadata;
  41. } // namespace internal
  42. PROTOBUF_NAMESPACE_CLOSE
  43. // Internal implementation detail -- do not use these members.
  44. struct TableStruct_function_2eproto {
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  48. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
  50. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  51. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  52. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  53. static const uint32_t offsets[];
  54. };
  55. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_function_2eproto;
  56. namespace opencv_tensorflow {
  57. class FunctionDef;
  58. struct FunctionDefDefaultTypeInternal;
  59. extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
  60. class FunctionDefLibrary;
  61. struct FunctionDefLibraryDefaultTypeInternal;
  62. extern FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_;
  63. class FunctionDef_Node;
  64. struct FunctionDef_NodeDefaultTypeInternal;
  65. extern FunctionDef_NodeDefaultTypeInternal _FunctionDef_Node_default_instance_;
  66. class FunctionDef_Node_AttrEntry_DoNotUse;
  67. struct FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal;
  68. extern FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;
  69. class GradientDef;
  70. struct GradientDefDefaultTypeInternal;
  71. extern GradientDefDefaultTypeInternal _GradientDef_default_instance_;
  72. } // namespace opencv_tensorflow
  73. PROTOBUF_NAMESPACE_OPEN
  74. template<> ::opencv_tensorflow::FunctionDef* Arena::CreateMaybeMessage<::opencv_tensorflow::FunctionDef>(Arena*);
  75. template<> ::opencv_tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage<::opencv_tensorflow::FunctionDefLibrary>(Arena*);
  76. template<> ::opencv_tensorflow::FunctionDef_Node* Arena::CreateMaybeMessage<::opencv_tensorflow::FunctionDef_Node>(Arena*);
  77. template<> ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse>(Arena*);
  78. template<> ::opencv_tensorflow::GradientDef* Arena::CreateMaybeMessage<::opencv_tensorflow::GradientDef>(Arena*);
  79. PROTOBUF_NAMESPACE_CLOSE
  80. namespace opencv_tensorflow {
  81. // ===================================================================
  82. class FunctionDefLibrary final :
  83. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDefLibrary) */ {
  84. public:
  85. inline FunctionDefLibrary() : FunctionDefLibrary(nullptr) {}
  86. ~FunctionDefLibrary() override;
  87. explicit constexpr FunctionDefLibrary(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  88. FunctionDefLibrary(const FunctionDefLibrary& from);
  89. FunctionDefLibrary(FunctionDefLibrary&& from) noexcept
  90. : FunctionDefLibrary() {
  91. *this = ::std::move(from);
  92. }
  93. inline FunctionDefLibrary& operator=(const FunctionDefLibrary& from) {
  94. CopyFrom(from);
  95. return *this;
  96. }
  97. inline FunctionDefLibrary& operator=(FunctionDefLibrary&& from) noexcept {
  98. if (this == &from) return *this;
  99. if (GetOwningArena() == from.GetOwningArena()
  100. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  101. && GetOwningArena() != nullptr
  102. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  103. ) {
  104. InternalSwap(&from);
  105. } else {
  106. CopyFrom(from);
  107. }
  108. return *this;
  109. }
  110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  111. return GetDescriptor();
  112. }
  113. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  114. return default_instance().GetMetadata().descriptor;
  115. }
  116. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  117. return default_instance().GetMetadata().reflection;
  118. }
  119. static const FunctionDefLibrary& default_instance() {
  120. return *internal_default_instance();
  121. }
  122. static inline const FunctionDefLibrary* internal_default_instance() {
  123. return reinterpret_cast<const FunctionDefLibrary*>(
  124. &_FunctionDefLibrary_default_instance_);
  125. }
  126. static constexpr int kIndexInFileMessages =
  127. 0;
  128. friend void swap(FunctionDefLibrary& a, FunctionDefLibrary& b) {
  129. a.Swap(&b);
  130. }
  131. inline void Swap(FunctionDefLibrary* other) {
  132. if (other == this) return;
  133. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  134. if (GetOwningArena() != nullptr &&
  135. GetOwningArena() == other->GetOwningArena()) {
  136. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  137. if (GetOwningArena() == other->GetOwningArena()) {
  138. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  139. InternalSwap(other);
  140. } else {
  141. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  142. }
  143. }
  144. void UnsafeArenaSwap(FunctionDefLibrary* other) {
  145. if (other == this) return;
  146. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  147. InternalSwap(other);
  148. }
  149. // implements Message ----------------------------------------------
  150. FunctionDefLibrary* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  151. return CreateMaybeMessage<FunctionDefLibrary>(arena);
  152. }
  153. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  154. void CopyFrom(const FunctionDefLibrary& from);
  155. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  156. void MergeFrom(const FunctionDefLibrary& from);
  157. private:
  158. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  159. public:
  160. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  161. bool IsInitialized() const final;
  162. size_t ByteSizeLong() const final;
  163. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  164. uint8_t* _InternalSerialize(
  165. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  166. int GetCachedSize() const final { return _cached_size_.Get(); }
  167. private:
  168. void SharedCtor();
  169. void SharedDtor();
  170. void SetCachedSize(int size) const final;
  171. void InternalSwap(FunctionDefLibrary* other);
  172. private:
  173. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  174. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  175. return "opencv_tensorflow.FunctionDefLibrary";
  176. }
  177. protected:
  178. explicit FunctionDefLibrary(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  179. bool is_message_owned = false);
  180. private:
  181. static void ArenaDtor(void* object);
  182. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  183. public:
  184. static const ClassData _class_data_;
  185. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  186. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  187. // nested types ----------------------------------------------------
  188. // accessors -------------------------------------------------------
  189. enum : int {
  190. kFunctionFieldNumber = 1,
  191. kGradientFieldNumber = 2,
  192. };
  193. // repeated .opencv_tensorflow.FunctionDef function = 1;
  194. int function_size() const;
  195. private:
  196. int _internal_function_size() const;
  197. public:
  198. void clear_function();
  199. ::opencv_tensorflow::FunctionDef* mutable_function(int index);
  200. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
  201. mutable_function();
  202. private:
  203. const ::opencv_tensorflow::FunctionDef& _internal_function(int index) const;
  204. ::opencv_tensorflow::FunctionDef* _internal_add_function();
  205. public:
  206. const ::opencv_tensorflow::FunctionDef& function(int index) const;
  207. ::opencv_tensorflow::FunctionDef* add_function();
  208. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
  209. function() const;
  210. // repeated .opencv_tensorflow.GradientDef gradient = 2;
  211. int gradient_size() const;
  212. private:
  213. int _internal_gradient_size() const;
  214. public:
  215. void clear_gradient();
  216. ::opencv_tensorflow::GradientDef* mutable_gradient(int index);
  217. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
  218. mutable_gradient();
  219. private:
  220. const ::opencv_tensorflow::GradientDef& _internal_gradient(int index) const;
  221. ::opencv_tensorflow::GradientDef* _internal_add_gradient();
  222. public:
  223. const ::opencv_tensorflow::GradientDef& gradient(int index) const;
  224. ::opencv_tensorflow::GradientDef* add_gradient();
  225. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
  226. gradient() const;
  227. // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDefLibrary)
  228. private:
  229. class _Internal;
  230. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  231. typedef void InternalArenaConstructable_;
  232. typedef void DestructorSkippable_;
  233. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef > function_;
  234. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::GradientDef > gradient_;
  235. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  236. friend struct ::TableStruct_function_2eproto;
  237. };
  238. // -------------------------------------------------------------------
  239. class FunctionDef_Node_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
  240. std::string, ::opencv_tensorflow::AttrValue,
  241. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  242. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
  243. public:
  244. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
  245. std::string, ::opencv_tensorflow::AttrValue,
  246. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  247. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
  248. FunctionDef_Node_AttrEntry_DoNotUse();
  249. explicit constexpr FunctionDef_Node_AttrEntry_DoNotUse(
  250. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  251. explicit FunctionDef_Node_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  252. void MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other);
  253. static const FunctionDef_Node_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_Node_AttrEntry_DoNotUse*>(&_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_); }
  254. static bool ValidateKey(std::string* s) {
  255. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "opencv_tensorflow.FunctionDef.Node.AttrEntry.key");
  256. }
  257. static bool ValidateValue(void*) { return true; }
  258. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  259. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  260. };
  261. // -------------------------------------------------------------------
  262. class FunctionDef_Node final :
  263. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef.Node) */ {
  264. public:
  265. inline FunctionDef_Node() : FunctionDef_Node(nullptr) {}
  266. ~FunctionDef_Node() override;
  267. explicit constexpr FunctionDef_Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  268. FunctionDef_Node(const FunctionDef_Node& from);
  269. FunctionDef_Node(FunctionDef_Node&& from) noexcept
  270. : FunctionDef_Node() {
  271. *this = ::std::move(from);
  272. }
  273. inline FunctionDef_Node& operator=(const FunctionDef_Node& from) {
  274. CopyFrom(from);
  275. return *this;
  276. }
  277. inline FunctionDef_Node& operator=(FunctionDef_Node&& from) noexcept {
  278. if (this == &from) return *this;
  279. if (GetOwningArena() == from.GetOwningArena()
  280. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  281. && GetOwningArena() != nullptr
  282. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  283. ) {
  284. InternalSwap(&from);
  285. } else {
  286. CopyFrom(from);
  287. }
  288. return *this;
  289. }
  290. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  291. return GetDescriptor();
  292. }
  293. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  294. return default_instance().GetMetadata().descriptor;
  295. }
  296. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  297. return default_instance().GetMetadata().reflection;
  298. }
  299. static const FunctionDef_Node& default_instance() {
  300. return *internal_default_instance();
  301. }
  302. static inline const FunctionDef_Node* internal_default_instance() {
  303. return reinterpret_cast<const FunctionDef_Node*>(
  304. &_FunctionDef_Node_default_instance_);
  305. }
  306. static constexpr int kIndexInFileMessages =
  307. 2;
  308. friend void swap(FunctionDef_Node& a, FunctionDef_Node& b) {
  309. a.Swap(&b);
  310. }
  311. inline void Swap(FunctionDef_Node* other) {
  312. if (other == this) return;
  313. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  314. if (GetOwningArena() != nullptr &&
  315. GetOwningArena() == other->GetOwningArena()) {
  316. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  317. if (GetOwningArena() == other->GetOwningArena()) {
  318. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  319. InternalSwap(other);
  320. } else {
  321. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  322. }
  323. }
  324. void UnsafeArenaSwap(FunctionDef_Node* other) {
  325. if (other == this) return;
  326. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  327. InternalSwap(other);
  328. }
  329. // implements Message ----------------------------------------------
  330. FunctionDef_Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  331. return CreateMaybeMessage<FunctionDef_Node>(arena);
  332. }
  333. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  334. void CopyFrom(const FunctionDef_Node& from);
  335. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  336. void MergeFrom(const FunctionDef_Node& from);
  337. private:
  338. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  339. public:
  340. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  341. bool IsInitialized() const final;
  342. size_t ByteSizeLong() const final;
  343. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  344. uint8_t* _InternalSerialize(
  345. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  346. int GetCachedSize() const final { return _cached_size_.Get(); }
  347. private:
  348. void SharedCtor();
  349. void SharedDtor();
  350. void SetCachedSize(int size) const final;
  351. void InternalSwap(FunctionDef_Node* other);
  352. private:
  353. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  354. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  355. return "opencv_tensorflow.FunctionDef.Node";
  356. }
  357. protected:
  358. explicit FunctionDef_Node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  359. bool is_message_owned = false);
  360. private:
  361. static void ArenaDtor(void* object);
  362. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  363. public:
  364. static const ClassData _class_data_;
  365. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  366. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  367. // nested types ----------------------------------------------------
  368. // accessors -------------------------------------------------------
  369. enum : int {
  370. kRetFieldNumber = 1,
  371. kArgFieldNumber = 3,
  372. kDepFieldNumber = 4,
  373. kAttrFieldNumber = 5,
  374. kOpFieldNumber = 2,
  375. };
  376. // repeated string ret = 1;
  377. int ret_size() const;
  378. private:
  379. int _internal_ret_size() const;
  380. public:
  381. void clear_ret();
  382. const std::string& ret(int index) const;
  383. std::string* mutable_ret(int index);
  384. void set_ret(int index, const std::string& value);
  385. void set_ret(int index, std::string&& value);
  386. void set_ret(int index, const char* value);
  387. void set_ret(int index, const char* value, size_t size);
  388. std::string* add_ret();
  389. void add_ret(const std::string& value);
  390. void add_ret(std::string&& value);
  391. void add_ret(const char* value);
  392. void add_ret(const char* value, size_t size);
  393. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& ret() const;
  394. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_ret();
  395. private:
  396. const std::string& _internal_ret(int index) const;
  397. std::string* _internal_add_ret();
  398. public:
  399. // repeated string arg = 3;
  400. int arg_size() const;
  401. private:
  402. int _internal_arg_size() const;
  403. public:
  404. void clear_arg();
  405. const std::string& arg(int index) const;
  406. std::string* mutable_arg(int index);
  407. void set_arg(int index, const std::string& value);
  408. void set_arg(int index, std::string&& value);
  409. void set_arg(int index, const char* value);
  410. void set_arg(int index, const char* value, size_t size);
  411. std::string* add_arg();
  412. void add_arg(const std::string& value);
  413. void add_arg(std::string&& value);
  414. void add_arg(const char* value);
  415. void add_arg(const char* value, size_t size);
  416. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& arg() const;
  417. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_arg();
  418. private:
  419. const std::string& _internal_arg(int index) const;
  420. std::string* _internal_add_arg();
  421. public:
  422. // repeated string dep = 4;
  423. int dep_size() const;
  424. private:
  425. int _internal_dep_size() const;
  426. public:
  427. void clear_dep();
  428. const std::string& dep(int index) const;
  429. std::string* mutable_dep(int index);
  430. void set_dep(int index, const std::string& value);
  431. void set_dep(int index, std::string&& value);
  432. void set_dep(int index, const char* value);
  433. void set_dep(int index, const char* value, size_t size);
  434. std::string* add_dep();
  435. void add_dep(const std::string& value);
  436. void add_dep(std::string&& value);
  437. void add_dep(const char* value);
  438. void add_dep(const char* value, size_t size);
  439. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dep() const;
  440. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dep();
  441. private:
  442. const std::string& _internal_dep(int index) const;
  443. std::string* _internal_add_dep();
  444. public:
  445. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  446. int attr_size() const;
  447. private:
  448. int _internal_attr_size() const;
  449. public:
  450. void clear_attr();
  451. private:
  452. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  453. _internal_attr() const;
  454. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  455. _internal_mutable_attr();
  456. public:
  457. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  458. attr() const;
  459. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  460. mutable_attr();
  461. // string op = 2;
  462. void clear_op();
  463. const std::string& op() const;
  464. template <typename ArgT0 = const std::string&, typename... ArgT>
  465. void set_op(ArgT0&& arg0, ArgT... args);
  466. std::string* mutable_op();
  467. PROTOBUF_NODISCARD std::string* release_op();
  468. void set_allocated_op(std::string* op);
  469. private:
  470. const std::string& _internal_op() const;
  471. inline PROTOBUF_ALWAYS_INLINE void _internal_set_op(const std::string& value);
  472. std::string* _internal_mutable_op();
  473. public:
  474. // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef.Node)
  475. private:
  476. class _Internal;
  477. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  478. typedef void InternalArenaConstructable_;
  479. typedef void DestructorSkippable_;
  480. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> ret_;
  481. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> arg_;
  482. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dep_;
  483. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  484. FunctionDef_Node_AttrEntry_DoNotUse,
  485. std::string, ::opencv_tensorflow::AttrValue,
  486. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  487. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> attr_;
  488. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_;
  489. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  490. friend struct ::TableStruct_function_2eproto;
  491. };
  492. // -------------------------------------------------------------------
  493. class FunctionDef final :
  494. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef) */ {
  495. public:
  496. inline FunctionDef() : FunctionDef(nullptr) {}
  497. ~FunctionDef() override;
  498. explicit constexpr FunctionDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  499. FunctionDef(const FunctionDef& from);
  500. FunctionDef(FunctionDef&& from) noexcept
  501. : FunctionDef() {
  502. *this = ::std::move(from);
  503. }
  504. inline FunctionDef& operator=(const FunctionDef& from) {
  505. CopyFrom(from);
  506. return *this;
  507. }
  508. inline FunctionDef& operator=(FunctionDef&& from) noexcept {
  509. if (this == &from) return *this;
  510. if (GetOwningArena() == from.GetOwningArena()
  511. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  512. && GetOwningArena() != nullptr
  513. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  514. ) {
  515. InternalSwap(&from);
  516. } else {
  517. CopyFrom(from);
  518. }
  519. return *this;
  520. }
  521. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  522. return GetDescriptor();
  523. }
  524. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  525. return default_instance().GetMetadata().descriptor;
  526. }
  527. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  528. return default_instance().GetMetadata().reflection;
  529. }
  530. static const FunctionDef& default_instance() {
  531. return *internal_default_instance();
  532. }
  533. static inline const FunctionDef* internal_default_instance() {
  534. return reinterpret_cast<const FunctionDef*>(
  535. &_FunctionDef_default_instance_);
  536. }
  537. static constexpr int kIndexInFileMessages =
  538. 3;
  539. friend void swap(FunctionDef& a, FunctionDef& b) {
  540. a.Swap(&b);
  541. }
  542. inline void Swap(FunctionDef* other) {
  543. if (other == this) return;
  544. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  545. if (GetOwningArena() != nullptr &&
  546. GetOwningArena() == other->GetOwningArena()) {
  547. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  548. if (GetOwningArena() == other->GetOwningArena()) {
  549. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  550. InternalSwap(other);
  551. } else {
  552. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  553. }
  554. }
  555. void UnsafeArenaSwap(FunctionDef* other) {
  556. if (other == this) return;
  557. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  558. InternalSwap(other);
  559. }
  560. // implements Message ----------------------------------------------
  561. FunctionDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  562. return CreateMaybeMessage<FunctionDef>(arena);
  563. }
  564. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  565. void CopyFrom(const FunctionDef& from);
  566. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  567. void MergeFrom(const FunctionDef& from);
  568. private:
  569. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  570. public:
  571. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  572. bool IsInitialized() const final;
  573. size_t ByteSizeLong() const final;
  574. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  575. uint8_t* _InternalSerialize(
  576. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  577. int GetCachedSize() const final { return _cached_size_.Get(); }
  578. private:
  579. void SharedCtor();
  580. void SharedDtor();
  581. void SetCachedSize(int size) const final;
  582. void InternalSwap(FunctionDef* other);
  583. private:
  584. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  585. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  586. return "opencv_tensorflow.FunctionDef";
  587. }
  588. protected:
  589. explicit FunctionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  590. bool is_message_owned = false);
  591. private:
  592. static void ArenaDtor(void* object);
  593. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  594. public:
  595. static const ClassData _class_data_;
  596. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  597. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  598. // nested types ----------------------------------------------------
  599. typedef FunctionDef_Node Node;
  600. // accessors -------------------------------------------------------
  601. enum : int {
  602. kNodeFieldNumber = 2,
  603. kSignatureFieldNumber = 1,
  604. };
  605. // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
  606. int node_size() const;
  607. private:
  608. int _internal_node_size() const;
  609. public:
  610. void clear_node();
  611. ::opencv_tensorflow::FunctionDef_Node* mutable_node(int index);
  612. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
  613. mutable_node();
  614. private:
  615. const ::opencv_tensorflow::FunctionDef_Node& _internal_node(int index) const;
  616. ::opencv_tensorflow::FunctionDef_Node* _internal_add_node();
  617. public:
  618. const ::opencv_tensorflow::FunctionDef_Node& node(int index) const;
  619. ::opencv_tensorflow::FunctionDef_Node* add_node();
  620. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
  621. node() const;
  622. // .opencv_tensorflow.OpDef signature = 1;
  623. bool has_signature() const;
  624. private:
  625. bool _internal_has_signature() const;
  626. public:
  627. void clear_signature();
  628. const ::opencv_tensorflow::OpDef& signature() const;
  629. PROTOBUF_NODISCARD ::opencv_tensorflow::OpDef* release_signature();
  630. ::opencv_tensorflow::OpDef* mutable_signature();
  631. void set_allocated_signature(::opencv_tensorflow::OpDef* signature);
  632. private:
  633. const ::opencv_tensorflow::OpDef& _internal_signature() const;
  634. ::opencv_tensorflow::OpDef* _internal_mutable_signature();
  635. public:
  636. void unsafe_arena_set_allocated_signature(
  637. ::opencv_tensorflow::OpDef* signature);
  638. ::opencv_tensorflow::OpDef* unsafe_arena_release_signature();
  639. // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef)
  640. private:
  641. class _Internal;
  642. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  643. typedef void InternalArenaConstructable_;
  644. typedef void DestructorSkippable_;
  645. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node > node_;
  646. ::opencv_tensorflow::OpDef* signature_;
  647. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  648. friend struct ::TableStruct_function_2eproto;
  649. };
  650. // -------------------------------------------------------------------
  651. class GradientDef final :
  652. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GradientDef) */ {
  653. public:
  654. inline GradientDef() : GradientDef(nullptr) {}
  655. ~GradientDef() override;
  656. explicit constexpr GradientDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  657. GradientDef(const GradientDef& from);
  658. GradientDef(GradientDef&& from) noexcept
  659. : GradientDef() {
  660. *this = ::std::move(from);
  661. }
  662. inline GradientDef& operator=(const GradientDef& from) {
  663. CopyFrom(from);
  664. return *this;
  665. }
  666. inline GradientDef& operator=(GradientDef&& from) noexcept {
  667. if (this == &from) return *this;
  668. if (GetOwningArena() == from.GetOwningArena()
  669. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  670. && GetOwningArena() != nullptr
  671. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  672. ) {
  673. InternalSwap(&from);
  674. } else {
  675. CopyFrom(from);
  676. }
  677. return *this;
  678. }
  679. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  680. return GetDescriptor();
  681. }
  682. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  683. return default_instance().GetMetadata().descriptor;
  684. }
  685. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  686. return default_instance().GetMetadata().reflection;
  687. }
  688. static const GradientDef& default_instance() {
  689. return *internal_default_instance();
  690. }
  691. static inline const GradientDef* internal_default_instance() {
  692. return reinterpret_cast<const GradientDef*>(
  693. &_GradientDef_default_instance_);
  694. }
  695. static constexpr int kIndexInFileMessages =
  696. 4;
  697. friend void swap(GradientDef& a, GradientDef& b) {
  698. a.Swap(&b);
  699. }
  700. inline void Swap(GradientDef* other) {
  701. if (other == this) return;
  702. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  703. if (GetOwningArena() != nullptr &&
  704. GetOwningArena() == other->GetOwningArena()) {
  705. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  706. if (GetOwningArena() == other->GetOwningArena()) {
  707. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  708. InternalSwap(other);
  709. } else {
  710. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  711. }
  712. }
  713. void UnsafeArenaSwap(GradientDef* other) {
  714. if (other == this) return;
  715. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  716. InternalSwap(other);
  717. }
  718. // implements Message ----------------------------------------------
  719. GradientDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  720. return CreateMaybeMessage<GradientDef>(arena);
  721. }
  722. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  723. void CopyFrom(const GradientDef& from);
  724. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  725. void MergeFrom(const GradientDef& from);
  726. private:
  727. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  728. public:
  729. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  730. bool IsInitialized() const final;
  731. size_t ByteSizeLong() const final;
  732. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  733. uint8_t* _InternalSerialize(
  734. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  735. int GetCachedSize() const final { return _cached_size_.Get(); }
  736. private:
  737. void SharedCtor();
  738. void SharedDtor();
  739. void SetCachedSize(int size) const final;
  740. void InternalSwap(GradientDef* other);
  741. private:
  742. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  743. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  744. return "opencv_tensorflow.GradientDef";
  745. }
  746. protected:
  747. explicit GradientDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  748. bool is_message_owned = false);
  749. private:
  750. static void ArenaDtor(void* object);
  751. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  752. public:
  753. static const ClassData _class_data_;
  754. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  755. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  756. // nested types ----------------------------------------------------
  757. // accessors -------------------------------------------------------
  758. enum : int {
  759. kFunctionNameFieldNumber = 1,
  760. kGradientFuncFieldNumber = 2,
  761. };
  762. // string function_name = 1;
  763. void clear_function_name();
  764. const std::string& function_name() const;
  765. template <typename ArgT0 = const std::string&, typename... ArgT>
  766. void set_function_name(ArgT0&& arg0, ArgT... args);
  767. std::string* mutable_function_name();
  768. PROTOBUF_NODISCARD std::string* release_function_name();
  769. void set_allocated_function_name(std::string* function_name);
  770. private:
  771. const std::string& _internal_function_name() const;
  772. inline PROTOBUF_ALWAYS_INLINE void _internal_set_function_name(const std::string& value);
  773. std::string* _internal_mutable_function_name();
  774. public:
  775. // string gradient_func = 2;
  776. void clear_gradient_func();
  777. const std::string& gradient_func() const;
  778. template <typename ArgT0 = const std::string&, typename... ArgT>
  779. void set_gradient_func(ArgT0&& arg0, ArgT... args);
  780. std::string* mutable_gradient_func();
  781. PROTOBUF_NODISCARD std::string* release_gradient_func();
  782. void set_allocated_gradient_func(std::string* gradient_func);
  783. private:
  784. const std::string& _internal_gradient_func() const;
  785. inline PROTOBUF_ALWAYS_INLINE void _internal_set_gradient_func(const std::string& value);
  786. std::string* _internal_mutable_gradient_func();
  787. public:
  788. // @@protoc_insertion_point(class_scope:opencv_tensorflow.GradientDef)
  789. private:
  790. class _Internal;
  791. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  792. typedef void InternalArenaConstructable_;
  793. typedef void DestructorSkippable_;
  794. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_name_;
  795. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gradient_func_;
  796. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  797. friend struct ::TableStruct_function_2eproto;
  798. };
  799. // ===================================================================
  800. // ===================================================================
  801. #ifdef __GNUC__
  802. #pragma GCC diagnostic push
  803. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  804. #endif // __GNUC__
  805. // FunctionDefLibrary
  806. // repeated .opencv_tensorflow.FunctionDef function = 1;
  807. inline int FunctionDefLibrary::_internal_function_size() const {
  808. return function_.size();
  809. }
  810. inline int FunctionDefLibrary::function_size() const {
  811. return _internal_function_size();
  812. }
  813. inline void FunctionDefLibrary::clear_function() {
  814. function_.Clear();
  815. }
  816. inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) {
  817. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.function)
  818. return function_.Mutable(index);
  819. }
  820. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
  821. FunctionDefLibrary::mutable_function() {
  822. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.function)
  823. return &function_;
  824. }
  825. inline const ::opencv_tensorflow::FunctionDef& FunctionDefLibrary::_internal_function(int index) const {
  826. return function_.Get(index);
  827. }
  828. inline const ::opencv_tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const {
  829. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.function)
  830. return _internal_function(index);
  831. }
  832. inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::_internal_add_function() {
  833. return function_.Add();
  834. }
  835. inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::add_function() {
  836. ::opencv_tensorflow::FunctionDef* _add = _internal_add_function();
  837. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.function)
  838. return _add;
  839. }
  840. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
  841. FunctionDefLibrary::function() const {
  842. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.function)
  843. return function_;
  844. }
  845. // repeated .opencv_tensorflow.GradientDef gradient = 2;
  846. inline int FunctionDefLibrary::_internal_gradient_size() const {
  847. return gradient_.size();
  848. }
  849. inline int FunctionDefLibrary::gradient_size() const {
  850. return _internal_gradient_size();
  851. }
  852. inline void FunctionDefLibrary::clear_gradient() {
  853. gradient_.Clear();
  854. }
  855. inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) {
  856. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.gradient)
  857. return gradient_.Mutable(index);
  858. }
  859. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
  860. FunctionDefLibrary::mutable_gradient() {
  861. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.gradient)
  862. return &gradient_;
  863. }
  864. inline const ::opencv_tensorflow::GradientDef& FunctionDefLibrary::_internal_gradient(int index) const {
  865. return gradient_.Get(index);
  866. }
  867. inline const ::opencv_tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const {
  868. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.gradient)
  869. return _internal_gradient(index);
  870. }
  871. inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::_internal_add_gradient() {
  872. return gradient_.Add();
  873. }
  874. inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::add_gradient() {
  875. ::opencv_tensorflow::GradientDef* _add = _internal_add_gradient();
  876. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.gradient)
  877. return _add;
  878. }
  879. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
  880. FunctionDefLibrary::gradient() const {
  881. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.gradient)
  882. return gradient_;
  883. }
  884. // -------------------------------------------------------------------
  885. // -------------------------------------------------------------------
  886. // FunctionDef_Node
  887. // repeated string ret = 1;
  888. inline int FunctionDef_Node::_internal_ret_size() const {
  889. return ret_.size();
  890. }
  891. inline int FunctionDef_Node::ret_size() const {
  892. return _internal_ret_size();
  893. }
  894. inline void FunctionDef_Node::clear_ret() {
  895. ret_.Clear();
  896. }
  897. inline std::string* FunctionDef_Node::add_ret() {
  898. std::string* _s = _internal_add_ret();
  899. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.ret)
  900. return _s;
  901. }
  902. inline const std::string& FunctionDef_Node::_internal_ret(int index) const {
  903. return ret_.Get(index);
  904. }
  905. inline const std::string& FunctionDef_Node::ret(int index) const {
  906. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.ret)
  907. return _internal_ret(index);
  908. }
  909. inline std::string* FunctionDef_Node::mutable_ret(int index) {
  910. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.ret)
  911. return ret_.Mutable(index);
  912. }
  913. inline void FunctionDef_Node::set_ret(int index, const std::string& value) {
  914. ret_.Mutable(index)->assign(value);
  915. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
  916. }
  917. inline void FunctionDef_Node::set_ret(int index, std::string&& value) {
  918. ret_.Mutable(index)->assign(std::move(value));
  919. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
  920. }
  921. inline void FunctionDef_Node::set_ret(int index, const char* value) {
  922. GOOGLE_DCHECK(value != nullptr);
  923. ret_.Mutable(index)->assign(value);
  924. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.ret)
  925. }
  926. inline void FunctionDef_Node::set_ret(int index, const char* value, size_t size) {
  927. ret_.Mutable(index)->assign(
  928. reinterpret_cast<const char*>(value), size);
  929. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.ret)
  930. }
  931. inline std::string* FunctionDef_Node::_internal_add_ret() {
  932. return ret_.Add();
  933. }
  934. inline void FunctionDef_Node::add_ret(const std::string& value) {
  935. ret_.Add()->assign(value);
  936. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
  937. }
  938. inline void FunctionDef_Node::add_ret(std::string&& value) {
  939. ret_.Add(std::move(value));
  940. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
  941. }
  942. inline void FunctionDef_Node::add_ret(const char* value) {
  943. GOOGLE_DCHECK(value != nullptr);
  944. ret_.Add()->assign(value);
  945. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.ret)
  946. }
  947. inline void FunctionDef_Node::add_ret(const char* value, size_t size) {
  948. ret_.Add()->assign(reinterpret_cast<const char*>(value), size);
  949. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.ret)
  950. }
  951. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  952. FunctionDef_Node::ret() const {
  953. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.ret)
  954. return ret_;
  955. }
  956. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  957. FunctionDef_Node::mutable_ret() {
  958. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.ret)
  959. return &ret_;
  960. }
  961. // string op = 2;
  962. inline void FunctionDef_Node::clear_op() {
  963. op_.ClearToEmpty();
  964. }
  965. inline const std::string& FunctionDef_Node::op() const {
  966. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.op)
  967. return _internal_op();
  968. }
  969. template <typename ArgT0, typename... ArgT>
  970. inline PROTOBUF_ALWAYS_INLINE
  971. void FunctionDef_Node::set_op(ArgT0&& arg0, ArgT... args) {
  972. op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  973. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.op)
  974. }
  975. inline std::string* FunctionDef_Node::mutable_op() {
  976. std::string* _s = _internal_mutable_op();
  977. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.op)
  978. return _s;
  979. }
  980. inline const std::string& FunctionDef_Node::_internal_op() const {
  981. return op_.Get();
  982. }
  983. inline void FunctionDef_Node::_internal_set_op(const std::string& value) {
  984. op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  985. }
  986. inline std::string* FunctionDef_Node::_internal_mutable_op() {
  987. return op_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  988. }
  989. inline std::string* FunctionDef_Node::release_op() {
  990. // @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.Node.op)
  991. return op_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  992. }
  993. inline void FunctionDef_Node::set_allocated_op(std::string* op) {
  994. if (op != nullptr) {
  995. } else {
  996. }
  997. op_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op,
  998. GetArenaForAllocation());
  999. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1000. if (op_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1001. op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1002. }
  1003. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1004. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.Node.op)
  1005. }
  1006. // repeated string arg = 3;
  1007. inline int FunctionDef_Node::_internal_arg_size() const {
  1008. return arg_.size();
  1009. }
  1010. inline int FunctionDef_Node::arg_size() const {
  1011. return _internal_arg_size();
  1012. }
  1013. inline void FunctionDef_Node::clear_arg() {
  1014. arg_.Clear();
  1015. }
  1016. inline std::string* FunctionDef_Node::add_arg() {
  1017. std::string* _s = _internal_add_arg();
  1018. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.arg)
  1019. return _s;
  1020. }
  1021. inline const std::string& FunctionDef_Node::_internal_arg(int index) const {
  1022. return arg_.Get(index);
  1023. }
  1024. inline const std::string& FunctionDef_Node::arg(int index) const {
  1025. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.arg)
  1026. return _internal_arg(index);
  1027. }
  1028. inline std::string* FunctionDef_Node::mutable_arg(int index) {
  1029. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.arg)
  1030. return arg_.Mutable(index);
  1031. }
  1032. inline void FunctionDef_Node::set_arg(int index, const std::string& value) {
  1033. arg_.Mutable(index)->assign(value);
  1034. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
  1035. }
  1036. inline void FunctionDef_Node::set_arg(int index, std::string&& value) {
  1037. arg_.Mutable(index)->assign(std::move(value));
  1038. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
  1039. }
  1040. inline void FunctionDef_Node::set_arg(int index, const char* value) {
  1041. GOOGLE_DCHECK(value != nullptr);
  1042. arg_.Mutable(index)->assign(value);
  1043. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.arg)
  1044. }
  1045. inline void FunctionDef_Node::set_arg(int index, const char* value, size_t size) {
  1046. arg_.Mutable(index)->assign(
  1047. reinterpret_cast<const char*>(value), size);
  1048. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.arg)
  1049. }
  1050. inline std::string* FunctionDef_Node::_internal_add_arg() {
  1051. return arg_.Add();
  1052. }
  1053. inline void FunctionDef_Node::add_arg(const std::string& value) {
  1054. arg_.Add()->assign(value);
  1055. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
  1056. }
  1057. inline void FunctionDef_Node::add_arg(std::string&& value) {
  1058. arg_.Add(std::move(value));
  1059. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
  1060. }
  1061. inline void FunctionDef_Node::add_arg(const char* value) {
  1062. GOOGLE_DCHECK(value != nullptr);
  1063. arg_.Add()->assign(value);
  1064. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.arg)
  1065. }
  1066. inline void FunctionDef_Node::add_arg(const char* value, size_t size) {
  1067. arg_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1068. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.arg)
  1069. }
  1070. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1071. FunctionDef_Node::arg() const {
  1072. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.arg)
  1073. return arg_;
  1074. }
  1075. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1076. FunctionDef_Node::mutable_arg() {
  1077. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.arg)
  1078. return &arg_;
  1079. }
  1080. // repeated string dep = 4;
  1081. inline int FunctionDef_Node::_internal_dep_size() const {
  1082. return dep_.size();
  1083. }
  1084. inline int FunctionDef_Node::dep_size() const {
  1085. return _internal_dep_size();
  1086. }
  1087. inline void FunctionDef_Node::clear_dep() {
  1088. dep_.Clear();
  1089. }
  1090. inline std::string* FunctionDef_Node::add_dep() {
  1091. std::string* _s = _internal_add_dep();
  1092. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.dep)
  1093. return _s;
  1094. }
  1095. inline const std::string& FunctionDef_Node::_internal_dep(int index) const {
  1096. return dep_.Get(index);
  1097. }
  1098. inline const std::string& FunctionDef_Node::dep(int index) const {
  1099. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.dep)
  1100. return _internal_dep(index);
  1101. }
  1102. inline std::string* FunctionDef_Node::mutable_dep(int index) {
  1103. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.dep)
  1104. return dep_.Mutable(index);
  1105. }
  1106. inline void FunctionDef_Node::set_dep(int index, const std::string& value) {
  1107. dep_.Mutable(index)->assign(value);
  1108. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
  1109. }
  1110. inline void FunctionDef_Node::set_dep(int index, std::string&& value) {
  1111. dep_.Mutable(index)->assign(std::move(value));
  1112. // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
  1113. }
  1114. inline void FunctionDef_Node::set_dep(int index, const char* value) {
  1115. GOOGLE_DCHECK(value != nullptr);
  1116. dep_.Mutable(index)->assign(value);
  1117. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.dep)
  1118. }
  1119. inline void FunctionDef_Node::set_dep(int index, const char* value, size_t size) {
  1120. dep_.Mutable(index)->assign(
  1121. reinterpret_cast<const char*>(value), size);
  1122. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.dep)
  1123. }
  1124. inline std::string* FunctionDef_Node::_internal_add_dep() {
  1125. return dep_.Add();
  1126. }
  1127. inline void FunctionDef_Node::add_dep(const std::string& value) {
  1128. dep_.Add()->assign(value);
  1129. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
  1130. }
  1131. inline void FunctionDef_Node::add_dep(std::string&& value) {
  1132. dep_.Add(std::move(value));
  1133. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
  1134. }
  1135. inline void FunctionDef_Node::add_dep(const char* value) {
  1136. GOOGLE_DCHECK(value != nullptr);
  1137. dep_.Add()->assign(value);
  1138. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.dep)
  1139. }
  1140. inline void FunctionDef_Node::add_dep(const char* value, size_t size) {
  1141. dep_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1142. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.dep)
  1143. }
  1144. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1145. FunctionDef_Node::dep() const {
  1146. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.dep)
  1147. return dep_;
  1148. }
  1149. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1150. FunctionDef_Node::mutable_dep() {
  1151. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.dep)
  1152. return &dep_;
  1153. }
  1154. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  1155. inline int FunctionDef_Node::_internal_attr_size() const {
  1156. return attr_.size();
  1157. }
  1158. inline int FunctionDef_Node::attr_size() const {
  1159. return _internal_attr_size();
  1160. }
  1161. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  1162. FunctionDef_Node::_internal_attr() const {
  1163. return attr_.GetMap();
  1164. }
  1165. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  1166. FunctionDef_Node::attr() const {
  1167. // @@protoc_insertion_point(field_map:opencv_tensorflow.FunctionDef.Node.attr)
  1168. return _internal_attr();
  1169. }
  1170. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  1171. FunctionDef_Node::_internal_mutable_attr() {
  1172. return attr_.MutableMap();
  1173. }
  1174. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  1175. FunctionDef_Node::mutable_attr() {
  1176. // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.FunctionDef.Node.attr)
  1177. return _internal_mutable_attr();
  1178. }
  1179. // -------------------------------------------------------------------
  1180. // FunctionDef
  1181. // .opencv_tensorflow.OpDef signature = 1;
  1182. inline bool FunctionDef::_internal_has_signature() const {
  1183. return this != internal_default_instance() && signature_ != nullptr;
  1184. }
  1185. inline bool FunctionDef::has_signature() const {
  1186. return _internal_has_signature();
  1187. }
  1188. inline const ::opencv_tensorflow::OpDef& FunctionDef::_internal_signature() const {
  1189. const ::opencv_tensorflow::OpDef* p = signature_;
  1190. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::OpDef&>(
  1191. ::opencv_tensorflow::_OpDef_default_instance_);
  1192. }
  1193. inline const ::opencv_tensorflow::OpDef& FunctionDef::signature() const {
  1194. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.signature)
  1195. return _internal_signature();
  1196. }
  1197. inline void FunctionDef::unsafe_arena_set_allocated_signature(
  1198. ::opencv_tensorflow::OpDef* signature) {
  1199. if (GetArenaForAllocation() == nullptr) {
  1200. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_);
  1201. }
  1202. signature_ = signature;
  1203. if (signature) {
  1204. } else {
  1205. }
  1206. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.FunctionDef.signature)
  1207. }
  1208. inline ::opencv_tensorflow::OpDef* FunctionDef::release_signature() {
  1209. ::opencv_tensorflow::OpDef* temp = signature_;
  1210. signature_ = nullptr;
  1211. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1212. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1213. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1214. if (GetArenaForAllocation() == nullptr) { delete old; }
  1215. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1216. if (GetArenaForAllocation() != nullptr) {
  1217. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1218. }
  1219. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1220. return temp;
  1221. }
  1222. inline ::opencv_tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() {
  1223. // @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.signature)
  1224. ::opencv_tensorflow::OpDef* temp = signature_;
  1225. signature_ = nullptr;
  1226. return temp;
  1227. }
  1228. inline ::opencv_tensorflow::OpDef* FunctionDef::_internal_mutable_signature() {
  1229. if (signature_ == nullptr) {
  1230. auto* p = CreateMaybeMessage<::opencv_tensorflow::OpDef>(GetArenaForAllocation());
  1231. signature_ = p;
  1232. }
  1233. return signature_;
  1234. }
  1235. inline ::opencv_tensorflow::OpDef* FunctionDef::mutable_signature() {
  1236. ::opencv_tensorflow::OpDef* _msg = _internal_mutable_signature();
  1237. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.signature)
  1238. return _msg;
  1239. }
  1240. inline void FunctionDef::set_allocated_signature(::opencv_tensorflow::OpDef* signature) {
  1241. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1242. if (message_arena == nullptr) {
  1243. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_);
  1244. }
  1245. if (signature) {
  1246. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1247. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  1248. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  1249. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature));
  1250. if (message_arena != submessage_arena) {
  1251. signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1252. message_arena, signature, submessage_arena);
  1253. }
  1254. } else {
  1255. }
  1256. signature_ = signature;
  1257. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.signature)
  1258. }
  1259. // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
  1260. inline int FunctionDef::_internal_node_size() const {
  1261. return node_.size();
  1262. }
  1263. inline int FunctionDef::node_size() const {
  1264. return _internal_node_size();
  1265. }
  1266. inline void FunctionDef::clear_node() {
  1267. node_.Clear();
  1268. }
  1269. inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::mutable_node(int index) {
  1270. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.node)
  1271. return node_.Mutable(index);
  1272. }
  1273. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
  1274. FunctionDef::mutable_node() {
  1275. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.node)
  1276. return &node_;
  1277. }
  1278. inline const ::opencv_tensorflow::FunctionDef_Node& FunctionDef::_internal_node(int index) const {
  1279. return node_.Get(index);
  1280. }
  1281. inline const ::opencv_tensorflow::FunctionDef_Node& FunctionDef::node(int index) const {
  1282. // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.node)
  1283. return _internal_node(index);
  1284. }
  1285. inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::_internal_add_node() {
  1286. return node_.Add();
  1287. }
  1288. inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::add_node() {
  1289. ::opencv_tensorflow::FunctionDef_Node* _add = _internal_add_node();
  1290. // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.node)
  1291. return _add;
  1292. }
  1293. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
  1294. FunctionDef::node() const {
  1295. // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.node)
  1296. return node_;
  1297. }
  1298. // -------------------------------------------------------------------
  1299. // GradientDef
  1300. // string function_name = 1;
  1301. inline void GradientDef::clear_function_name() {
  1302. function_name_.ClearToEmpty();
  1303. }
  1304. inline const std::string& GradientDef::function_name() const {
  1305. // @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.function_name)
  1306. return _internal_function_name();
  1307. }
  1308. template <typename ArgT0, typename... ArgT>
  1309. inline PROTOBUF_ALWAYS_INLINE
  1310. void GradientDef::set_function_name(ArgT0&& arg0, ArgT... args) {
  1311. function_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1312. // @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.function_name)
  1313. }
  1314. inline std::string* GradientDef::mutable_function_name() {
  1315. std::string* _s = _internal_mutable_function_name();
  1316. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.function_name)
  1317. return _s;
  1318. }
  1319. inline const std::string& GradientDef::_internal_function_name() const {
  1320. return function_name_.Get();
  1321. }
  1322. inline void GradientDef::_internal_set_function_name(const std::string& value) {
  1323. function_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1324. }
  1325. inline std::string* GradientDef::_internal_mutable_function_name() {
  1326. return function_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1327. }
  1328. inline std::string* GradientDef::release_function_name() {
  1329. // @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.function_name)
  1330. return function_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1331. }
  1332. inline void GradientDef::set_allocated_function_name(std::string* function_name) {
  1333. if (function_name != nullptr) {
  1334. } else {
  1335. }
  1336. function_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), function_name,
  1337. GetArenaForAllocation());
  1338. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1339. if (function_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1340. function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1341. }
  1342. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1343. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.function_name)
  1344. }
  1345. // string gradient_func = 2;
  1346. inline void GradientDef::clear_gradient_func() {
  1347. gradient_func_.ClearToEmpty();
  1348. }
  1349. inline const std::string& GradientDef::gradient_func() const {
  1350. // @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.gradient_func)
  1351. return _internal_gradient_func();
  1352. }
  1353. template <typename ArgT0, typename... ArgT>
  1354. inline PROTOBUF_ALWAYS_INLINE
  1355. void GradientDef::set_gradient_func(ArgT0&& arg0, ArgT... args) {
  1356. gradient_func_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1357. // @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.gradient_func)
  1358. }
  1359. inline std::string* GradientDef::mutable_gradient_func() {
  1360. std::string* _s = _internal_mutable_gradient_func();
  1361. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.gradient_func)
  1362. return _s;
  1363. }
  1364. inline const std::string& GradientDef::_internal_gradient_func() const {
  1365. return gradient_func_.Get();
  1366. }
  1367. inline void GradientDef::_internal_set_gradient_func(const std::string& value) {
  1368. gradient_func_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1369. }
  1370. inline std::string* GradientDef::_internal_mutable_gradient_func() {
  1371. return gradient_func_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1372. }
  1373. inline std::string* GradientDef::release_gradient_func() {
  1374. // @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.gradient_func)
  1375. return gradient_func_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1376. }
  1377. inline void GradientDef::set_allocated_gradient_func(std::string* gradient_func) {
  1378. if (gradient_func != nullptr) {
  1379. } else {
  1380. }
  1381. gradient_func_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gradient_func,
  1382. GetArenaForAllocation());
  1383. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1384. if (gradient_func_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1385. gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1386. }
  1387. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1388. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.gradient_func)
  1389. }
  1390. #ifdef __GNUC__
  1391. #pragma GCC diagnostic pop
  1392. #endif // __GNUC__
  1393. // -------------------------------------------------------------------
  1394. // -------------------------------------------------------------------
  1395. // -------------------------------------------------------------------
  1396. // -------------------------------------------------------------------
  1397. // @@protoc_insertion_point(namespace_scope)
  1398. } // namespace opencv_tensorflow
  1399. // @@protoc_insertion_point(global_scope)
  1400. #include <google/protobuf/port_undef.inc>
  1401. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_function_2eproto