graph.pb.h 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: graph.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_graph_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_graph_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 "function.pb.h"
  35. #include "versions.pb.h"
  36. // @@protoc_insertion_point(includes)
  37. #include <google/protobuf/port_def.inc>
  38. #define PROTOBUF_INTERNAL_EXPORT_graph_2eproto
  39. PROTOBUF_NAMESPACE_OPEN
  40. namespace internal {
  41. class AnyMetadata;
  42. } // namespace internal
  43. PROTOBUF_NAMESPACE_CLOSE
  44. // Internal implementation detail -- do not use these members.
  45. struct TableStruct_graph_2eproto {
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  49. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  51. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  52. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  53. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  54. static const uint32_t offsets[];
  55. };
  56. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_graph_2eproto;
  57. namespace opencv_tensorflow {
  58. class GraphDef;
  59. struct GraphDefDefaultTypeInternal;
  60. extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;
  61. class NodeDef;
  62. struct NodeDefDefaultTypeInternal;
  63. extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;
  64. class NodeDef_AttrEntry_DoNotUse;
  65. struct NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;
  66. extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
  67. } // namespace opencv_tensorflow
  68. PROTOBUF_NAMESPACE_OPEN
  69. template<> ::opencv_tensorflow::GraphDef* Arena::CreateMaybeMessage<::opencv_tensorflow::GraphDef>(Arena*);
  70. template<> ::opencv_tensorflow::NodeDef* Arena::CreateMaybeMessage<::opencv_tensorflow::NodeDef>(Arena*);
  71. template<> ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse>(Arena*);
  72. PROTOBUF_NAMESPACE_CLOSE
  73. namespace opencv_tensorflow {
  74. // ===================================================================
  75. class GraphDef final :
  76. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GraphDef) */ {
  77. public:
  78. inline GraphDef() : GraphDef(nullptr) {}
  79. ~GraphDef() override;
  80. explicit constexpr GraphDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  81. GraphDef(const GraphDef& from);
  82. GraphDef(GraphDef&& from) noexcept
  83. : GraphDef() {
  84. *this = ::std::move(from);
  85. }
  86. inline GraphDef& operator=(const GraphDef& from) {
  87. CopyFrom(from);
  88. return *this;
  89. }
  90. inline GraphDef& operator=(GraphDef&& from) noexcept {
  91. if (this == &from) return *this;
  92. if (GetOwningArena() == from.GetOwningArena()
  93. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  94. && GetOwningArena() != nullptr
  95. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  96. ) {
  97. InternalSwap(&from);
  98. } else {
  99. CopyFrom(from);
  100. }
  101. return *this;
  102. }
  103. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  104. return GetDescriptor();
  105. }
  106. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  107. return default_instance().GetMetadata().descriptor;
  108. }
  109. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  110. return default_instance().GetMetadata().reflection;
  111. }
  112. static const GraphDef& default_instance() {
  113. return *internal_default_instance();
  114. }
  115. static inline const GraphDef* internal_default_instance() {
  116. return reinterpret_cast<const GraphDef*>(
  117. &_GraphDef_default_instance_);
  118. }
  119. static constexpr int kIndexInFileMessages =
  120. 0;
  121. friend void swap(GraphDef& a, GraphDef& b) {
  122. a.Swap(&b);
  123. }
  124. inline void Swap(GraphDef* other) {
  125. if (other == this) return;
  126. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  127. if (GetOwningArena() != nullptr &&
  128. GetOwningArena() == other->GetOwningArena()) {
  129. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  130. if (GetOwningArena() == other->GetOwningArena()) {
  131. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  132. InternalSwap(other);
  133. } else {
  134. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  135. }
  136. }
  137. void UnsafeArenaSwap(GraphDef* other) {
  138. if (other == this) return;
  139. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  140. InternalSwap(other);
  141. }
  142. // implements Message ----------------------------------------------
  143. GraphDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  144. return CreateMaybeMessage<GraphDef>(arena);
  145. }
  146. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  147. void CopyFrom(const GraphDef& from);
  148. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  149. void MergeFrom(const GraphDef& from);
  150. private:
  151. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  152. public:
  153. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  154. bool IsInitialized() const final;
  155. size_t ByteSizeLong() const final;
  156. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  157. uint8_t* _InternalSerialize(
  158. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  159. int GetCachedSize() const final { return _cached_size_.Get(); }
  160. private:
  161. void SharedCtor();
  162. void SharedDtor();
  163. void SetCachedSize(int size) const final;
  164. void InternalSwap(GraphDef* other);
  165. private:
  166. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  167. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  168. return "opencv_tensorflow.GraphDef";
  169. }
  170. protected:
  171. explicit GraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  172. bool is_message_owned = false);
  173. private:
  174. static void ArenaDtor(void* object);
  175. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  176. public:
  177. static const ClassData _class_data_;
  178. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  179. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  180. // nested types ----------------------------------------------------
  181. // accessors -------------------------------------------------------
  182. enum : int {
  183. kNodeFieldNumber = 1,
  184. kLibraryFieldNumber = 2,
  185. kVersionsFieldNumber = 4,
  186. kVersionFieldNumber = 3,
  187. };
  188. // repeated .opencv_tensorflow.NodeDef node = 1;
  189. int node_size() const;
  190. private:
  191. int _internal_node_size() const;
  192. public:
  193. void clear_node();
  194. ::opencv_tensorflow::NodeDef* mutable_node(int index);
  195. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
  196. mutable_node();
  197. private:
  198. const ::opencv_tensorflow::NodeDef& _internal_node(int index) const;
  199. ::opencv_tensorflow::NodeDef* _internal_add_node();
  200. public:
  201. const ::opencv_tensorflow::NodeDef& node(int index) const;
  202. ::opencv_tensorflow::NodeDef* add_node();
  203. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
  204. node() const;
  205. // .opencv_tensorflow.FunctionDefLibrary library = 2;
  206. bool has_library() const;
  207. private:
  208. bool _internal_has_library() const;
  209. public:
  210. void clear_library();
  211. const ::opencv_tensorflow::FunctionDefLibrary& library() const;
  212. PROTOBUF_NODISCARD ::opencv_tensorflow::FunctionDefLibrary* release_library();
  213. ::opencv_tensorflow::FunctionDefLibrary* mutable_library();
  214. void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library);
  215. private:
  216. const ::opencv_tensorflow::FunctionDefLibrary& _internal_library() const;
  217. ::opencv_tensorflow::FunctionDefLibrary* _internal_mutable_library();
  218. public:
  219. void unsafe_arena_set_allocated_library(
  220. ::opencv_tensorflow::FunctionDefLibrary* library);
  221. ::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
  222. // .opencv_tensorflow.VersionDef versions = 4;
  223. bool has_versions() const;
  224. private:
  225. bool _internal_has_versions() const;
  226. public:
  227. void clear_versions();
  228. const ::opencv_tensorflow::VersionDef& versions() const;
  229. PROTOBUF_NODISCARD ::opencv_tensorflow::VersionDef* release_versions();
  230. ::opencv_tensorflow::VersionDef* mutable_versions();
  231. void set_allocated_versions(::opencv_tensorflow::VersionDef* versions);
  232. private:
  233. const ::opencv_tensorflow::VersionDef& _internal_versions() const;
  234. ::opencv_tensorflow::VersionDef* _internal_mutable_versions();
  235. public:
  236. void unsafe_arena_set_allocated_versions(
  237. ::opencv_tensorflow::VersionDef* versions);
  238. ::opencv_tensorflow::VersionDef* unsafe_arena_release_versions();
  239. // int32 version = 3 [deprecated = true];
  240. PROTOBUF_DEPRECATED void clear_version();
  241. PROTOBUF_DEPRECATED int32_t version() const;
  242. PROTOBUF_DEPRECATED void set_version(int32_t value);
  243. private:
  244. int32_t _internal_version() const;
  245. void _internal_set_version(int32_t value);
  246. public:
  247. // @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef)
  248. private:
  249. class _Internal;
  250. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  251. typedef void InternalArenaConstructable_;
  252. typedef void DestructorSkippable_;
  253. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_;
  254. ::opencv_tensorflow::FunctionDefLibrary* library_;
  255. ::opencv_tensorflow::VersionDef* versions_;
  256. int32_t version_;
  257. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  258. friend struct ::TableStruct_graph_2eproto;
  259. };
  260. // -------------------------------------------------------------------
  261. class NodeDef_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
  262. std::string, ::opencv_tensorflow::AttrValue,
  263. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  264. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
  265. public:
  266. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
  267. std::string, ::opencv_tensorflow::AttrValue,
  268. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  269. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
  270. NodeDef_AttrEntry_DoNotUse();
  271. explicit constexpr NodeDef_AttrEntry_DoNotUse(
  272. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  273. explicit NodeDef_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  274. void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other);
  275. static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); }
  276. static bool ValidateKey(std::string* s) {
  277. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "opencv_tensorflow.NodeDef.AttrEntry.key");
  278. }
  279. static bool ValidateValue(void*) { return true; }
  280. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  281. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  282. };
  283. // -------------------------------------------------------------------
  284. class NodeDef final :
  285. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NodeDef) */ {
  286. public:
  287. inline NodeDef() : NodeDef(nullptr) {}
  288. ~NodeDef() override;
  289. explicit constexpr NodeDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  290. NodeDef(const NodeDef& from);
  291. NodeDef(NodeDef&& from) noexcept
  292. : NodeDef() {
  293. *this = ::std::move(from);
  294. }
  295. inline NodeDef& operator=(const NodeDef& from) {
  296. CopyFrom(from);
  297. return *this;
  298. }
  299. inline NodeDef& operator=(NodeDef&& from) noexcept {
  300. if (this == &from) return *this;
  301. if (GetOwningArena() == from.GetOwningArena()
  302. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  303. && GetOwningArena() != nullptr
  304. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  305. ) {
  306. InternalSwap(&from);
  307. } else {
  308. CopyFrom(from);
  309. }
  310. return *this;
  311. }
  312. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  313. return GetDescriptor();
  314. }
  315. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  316. return default_instance().GetMetadata().descriptor;
  317. }
  318. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  319. return default_instance().GetMetadata().reflection;
  320. }
  321. static const NodeDef& default_instance() {
  322. return *internal_default_instance();
  323. }
  324. static inline const NodeDef* internal_default_instance() {
  325. return reinterpret_cast<const NodeDef*>(
  326. &_NodeDef_default_instance_);
  327. }
  328. static constexpr int kIndexInFileMessages =
  329. 2;
  330. friend void swap(NodeDef& a, NodeDef& b) {
  331. a.Swap(&b);
  332. }
  333. inline void Swap(NodeDef* other) {
  334. if (other == this) return;
  335. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  336. if (GetOwningArena() != nullptr &&
  337. GetOwningArena() == other->GetOwningArena()) {
  338. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  339. if (GetOwningArena() == other->GetOwningArena()) {
  340. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  341. InternalSwap(other);
  342. } else {
  343. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  344. }
  345. }
  346. void UnsafeArenaSwap(NodeDef* other) {
  347. if (other == this) return;
  348. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  349. InternalSwap(other);
  350. }
  351. // implements Message ----------------------------------------------
  352. NodeDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  353. return CreateMaybeMessage<NodeDef>(arena);
  354. }
  355. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  356. void CopyFrom(const NodeDef& from);
  357. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  358. void MergeFrom(const NodeDef& from);
  359. private:
  360. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  361. public:
  362. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  363. bool IsInitialized() const final;
  364. size_t ByteSizeLong() const final;
  365. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  366. uint8_t* _InternalSerialize(
  367. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  368. int GetCachedSize() const final { return _cached_size_.Get(); }
  369. private:
  370. void SharedCtor();
  371. void SharedDtor();
  372. void SetCachedSize(int size) const final;
  373. void InternalSwap(NodeDef* other);
  374. private:
  375. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  376. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  377. return "opencv_tensorflow.NodeDef";
  378. }
  379. protected:
  380. explicit NodeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  381. bool is_message_owned = false);
  382. private:
  383. static void ArenaDtor(void* object);
  384. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  385. public:
  386. static const ClassData _class_data_;
  387. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  388. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  389. // nested types ----------------------------------------------------
  390. // accessors -------------------------------------------------------
  391. enum : int {
  392. kInputFieldNumber = 3,
  393. kAttrFieldNumber = 5,
  394. kNameFieldNumber = 1,
  395. kOpFieldNumber = 2,
  396. kDeviceFieldNumber = 4,
  397. };
  398. // repeated string input = 3;
  399. int input_size() const;
  400. private:
  401. int _internal_input_size() const;
  402. public:
  403. void clear_input();
  404. const std::string& input(int index) const;
  405. std::string* mutable_input(int index);
  406. void set_input(int index, const std::string& value);
  407. void set_input(int index, std::string&& value);
  408. void set_input(int index, const char* value);
  409. void set_input(int index, const char* value, size_t size);
  410. std::string* add_input();
  411. void add_input(const std::string& value);
  412. void add_input(std::string&& value);
  413. void add_input(const char* value);
  414. void add_input(const char* value, size_t size);
  415. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
  416. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
  417. private:
  418. const std::string& _internal_input(int index) const;
  419. std::string* _internal_add_input();
  420. public:
  421. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  422. int attr_size() const;
  423. private:
  424. int _internal_attr_size() const;
  425. public:
  426. void clear_attr();
  427. private:
  428. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  429. _internal_attr() const;
  430. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  431. _internal_mutable_attr();
  432. public:
  433. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  434. attr() const;
  435. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  436. mutable_attr();
  437. // string name = 1;
  438. void clear_name();
  439. const std::string& name() const;
  440. template <typename ArgT0 = const std::string&, typename... ArgT>
  441. void set_name(ArgT0&& arg0, ArgT... args);
  442. std::string* mutable_name();
  443. PROTOBUF_NODISCARD std::string* release_name();
  444. void set_allocated_name(std::string* name);
  445. private:
  446. const std::string& _internal_name() const;
  447. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  448. std::string* _internal_mutable_name();
  449. public:
  450. // string op = 2;
  451. void clear_op();
  452. const std::string& op() const;
  453. template <typename ArgT0 = const std::string&, typename... ArgT>
  454. void set_op(ArgT0&& arg0, ArgT... args);
  455. std::string* mutable_op();
  456. PROTOBUF_NODISCARD std::string* release_op();
  457. void set_allocated_op(std::string* op);
  458. private:
  459. const std::string& _internal_op() const;
  460. inline PROTOBUF_ALWAYS_INLINE void _internal_set_op(const std::string& value);
  461. std::string* _internal_mutable_op();
  462. public:
  463. // string device = 4;
  464. void clear_device();
  465. const std::string& device() const;
  466. template <typename ArgT0 = const std::string&, typename... ArgT>
  467. void set_device(ArgT0&& arg0, ArgT... args);
  468. std::string* mutable_device();
  469. PROTOBUF_NODISCARD std::string* release_device();
  470. void set_allocated_device(std::string* device);
  471. private:
  472. const std::string& _internal_device() const;
  473. inline PROTOBUF_ALWAYS_INLINE void _internal_set_device(const std::string& value);
  474. std::string* _internal_mutable_device();
  475. public:
  476. // @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef)
  477. private:
  478. class _Internal;
  479. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  480. typedef void InternalArenaConstructable_;
  481. typedef void DestructorSkippable_;
  482. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
  483. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  484. NodeDef_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 name_;
  489. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_;
  490. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
  491. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  492. friend struct ::TableStruct_graph_2eproto;
  493. };
  494. // ===================================================================
  495. // ===================================================================
  496. #ifdef __GNUC__
  497. #pragma GCC diagnostic push
  498. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  499. #endif // __GNUC__
  500. // GraphDef
  501. // repeated .opencv_tensorflow.NodeDef node = 1;
  502. inline int GraphDef::_internal_node_size() const {
  503. return node_.size();
  504. }
  505. inline int GraphDef::node_size() const {
  506. return _internal_node_size();
  507. }
  508. inline void GraphDef::clear_node() {
  509. node_.Clear();
  510. }
  511. inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) {
  512. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node)
  513. return node_.Mutable(index);
  514. }
  515. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
  516. GraphDef::mutable_node() {
  517. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node)
  518. return &node_;
  519. }
  520. inline const ::opencv_tensorflow::NodeDef& GraphDef::_internal_node(int index) const {
  521. return node_.Get(index);
  522. }
  523. inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const {
  524. // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node)
  525. return _internal_node(index);
  526. }
  527. inline ::opencv_tensorflow::NodeDef* GraphDef::_internal_add_node() {
  528. return node_.Add();
  529. }
  530. inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() {
  531. ::opencv_tensorflow::NodeDef* _add = _internal_add_node();
  532. // @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node)
  533. return _add;
  534. }
  535. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
  536. GraphDef::node() const {
  537. // @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node)
  538. return node_;
  539. }
  540. // .opencv_tensorflow.VersionDef versions = 4;
  541. inline bool GraphDef::_internal_has_versions() const {
  542. return this != internal_default_instance() && versions_ != nullptr;
  543. }
  544. inline bool GraphDef::has_versions() const {
  545. return _internal_has_versions();
  546. }
  547. inline const ::opencv_tensorflow::VersionDef& GraphDef::_internal_versions() const {
  548. const ::opencv_tensorflow::VersionDef* p = versions_;
  549. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::VersionDef&>(
  550. ::opencv_tensorflow::_VersionDef_default_instance_);
  551. }
  552. inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const {
  553. // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions)
  554. return _internal_versions();
  555. }
  556. inline void GraphDef::unsafe_arena_set_allocated_versions(
  557. ::opencv_tensorflow::VersionDef* versions) {
  558. if (GetArenaForAllocation() == nullptr) {
  559. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_);
  560. }
  561. versions_ = versions;
  562. if (versions) {
  563. } else {
  564. }
  565. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.versions)
  566. }
  567. inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() {
  568. ::opencv_tensorflow::VersionDef* temp = versions_;
  569. versions_ = nullptr;
  570. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  571. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  572. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  573. if (GetArenaForAllocation() == nullptr) { delete old; }
  574. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  575. if (GetArenaForAllocation() != nullptr) {
  576. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  577. }
  578. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  579. return temp;
  580. }
  581. inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
  582. // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions)
  583. ::opencv_tensorflow::VersionDef* temp = versions_;
  584. versions_ = nullptr;
  585. return temp;
  586. }
  587. inline ::opencv_tensorflow::VersionDef* GraphDef::_internal_mutable_versions() {
  588. if (versions_ == nullptr) {
  589. auto* p = CreateMaybeMessage<::opencv_tensorflow::VersionDef>(GetArenaForAllocation());
  590. versions_ = p;
  591. }
  592. return versions_;
  593. }
  594. inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() {
  595. ::opencv_tensorflow::VersionDef* _msg = _internal_mutable_versions();
  596. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.versions)
  597. return _msg;
  598. }
  599. inline void GraphDef::set_allocated_versions(::opencv_tensorflow::VersionDef* versions) {
  600. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  601. if (message_arena == nullptr) {
  602. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_);
  603. }
  604. if (versions) {
  605. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  606. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  607. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  608. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions));
  609. if (message_arena != submessage_arena) {
  610. versions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  611. message_arena, versions, submessage_arena);
  612. }
  613. } else {
  614. }
  615. versions_ = versions;
  616. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.versions)
  617. }
  618. // int32 version = 3 [deprecated = true];
  619. inline void GraphDef::clear_version() {
  620. version_ = 0;
  621. }
  622. inline int32_t GraphDef::_internal_version() const {
  623. return version_;
  624. }
  625. inline int32_t GraphDef::version() const {
  626. // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.version)
  627. return _internal_version();
  628. }
  629. inline void GraphDef::_internal_set_version(int32_t value) {
  630. version_ = value;
  631. }
  632. inline void GraphDef::set_version(int32_t value) {
  633. _internal_set_version(value);
  634. // @@protoc_insertion_point(field_set:opencv_tensorflow.GraphDef.version)
  635. }
  636. // .opencv_tensorflow.FunctionDefLibrary library = 2;
  637. inline bool GraphDef::_internal_has_library() const {
  638. return this != internal_default_instance() && library_ != nullptr;
  639. }
  640. inline bool GraphDef::has_library() const {
  641. return _internal_has_library();
  642. }
  643. inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::_internal_library() const {
  644. const ::opencv_tensorflow::FunctionDefLibrary* p = library_;
  645. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary&>(
  646. ::opencv_tensorflow::_FunctionDefLibrary_default_instance_);
  647. }
  648. inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const {
  649. // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library)
  650. return _internal_library();
  651. }
  652. inline void GraphDef::unsafe_arena_set_allocated_library(
  653. ::opencv_tensorflow::FunctionDefLibrary* library) {
  654. if (GetArenaForAllocation() == nullptr) {
  655. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library_);
  656. }
  657. library_ = library;
  658. if (library) {
  659. } else {
  660. }
  661. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.library)
  662. }
  663. inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() {
  664. ::opencv_tensorflow::FunctionDefLibrary* temp = library_;
  665. library_ = nullptr;
  666. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  667. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  668. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  669. if (GetArenaForAllocation() == nullptr) { delete old; }
  670. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  671. if (GetArenaForAllocation() != nullptr) {
  672. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  673. }
  674. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  675. return temp;
  676. }
  677. inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
  678. // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library)
  679. ::opencv_tensorflow::FunctionDefLibrary* temp = library_;
  680. library_ = nullptr;
  681. return temp;
  682. }
  683. inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::_internal_mutable_library() {
  684. if (library_ == nullptr) {
  685. auto* p = CreateMaybeMessage<::opencv_tensorflow::FunctionDefLibrary>(GetArenaForAllocation());
  686. library_ = p;
  687. }
  688. return library_;
  689. }
  690. inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
  691. ::opencv_tensorflow::FunctionDefLibrary* _msg = _internal_mutable_library();
  692. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.library)
  693. return _msg;
  694. }
  695. inline void GraphDef::set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library) {
  696. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  697. if (message_arena == nullptr) {
  698. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(library_);
  699. }
  700. if (library) {
  701. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  702. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  703. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  704. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library));
  705. if (message_arena != submessage_arena) {
  706. library = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  707. message_arena, library, submessage_arena);
  708. }
  709. } else {
  710. }
  711. library_ = library;
  712. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.library)
  713. }
  714. // -------------------------------------------------------------------
  715. // -------------------------------------------------------------------
  716. // NodeDef
  717. // string name = 1;
  718. inline void NodeDef::clear_name() {
  719. name_.ClearToEmpty();
  720. }
  721. inline const std::string& NodeDef::name() const {
  722. // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.name)
  723. return _internal_name();
  724. }
  725. template <typename ArgT0, typename... ArgT>
  726. inline PROTOBUF_ALWAYS_INLINE
  727. void NodeDef::set_name(ArgT0&& arg0, ArgT... args) {
  728. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  729. // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.name)
  730. }
  731. inline std::string* NodeDef::mutable_name() {
  732. std::string* _s = _internal_mutable_name();
  733. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.name)
  734. return _s;
  735. }
  736. inline const std::string& NodeDef::_internal_name() const {
  737. return name_.Get();
  738. }
  739. inline void NodeDef::_internal_set_name(const std::string& value) {
  740. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  741. }
  742. inline std::string* NodeDef::_internal_mutable_name() {
  743. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  744. }
  745. inline std::string* NodeDef::release_name() {
  746. // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.name)
  747. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  748. }
  749. inline void NodeDef::set_allocated_name(std::string* name) {
  750. if (name != nullptr) {
  751. } else {
  752. }
  753. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  754. GetArenaForAllocation());
  755. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  756. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  757. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  758. }
  759. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  760. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.name)
  761. }
  762. // string op = 2;
  763. inline void NodeDef::clear_op() {
  764. op_.ClearToEmpty();
  765. }
  766. inline const std::string& NodeDef::op() const {
  767. // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.op)
  768. return _internal_op();
  769. }
  770. template <typename ArgT0, typename... ArgT>
  771. inline PROTOBUF_ALWAYS_INLINE
  772. void NodeDef::set_op(ArgT0&& arg0, ArgT... args) {
  773. op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  774. // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.op)
  775. }
  776. inline std::string* NodeDef::mutable_op() {
  777. std::string* _s = _internal_mutable_op();
  778. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.op)
  779. return _s;
  780. }
  781. inline const std::string& NodeDef::_internal_op() const {
  782. return op_.Get();
  783. }
  784. inline void NodeDef::_internal_set_op(const std::string& value) {
  785. op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  786. }
  787. inline std::string* NodeDef::_internal_mutable_op() {
  788. return op_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  789. }
  790. inline std::string* NodeDef::release_op() {
  791. // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.op)
  792. return op_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  793. }
  794. inline void NodeDef::set_allocated_op(std::string* op) {
  795. if (op != nullptr) {
  796. } else {
  797. }
  798. op_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op,
  799. GetArenaForAllocation());
  800. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  801. if (op_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  802. op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  803. }
  804. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  805. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.op)
  806. }
  807. // repeated string input = 3;
  808. inline int NodeDef::_internal_input_size() const {
  809. return input_.size();
  810. }
  811. inline int NodeDef::input_size() const {
  812. return _internal_input_size();
  813. }
  814. inline void NodeDef::clear_input() {
  815. input_.Clear();
  816. }
  817. inline std::string* NodeDef::add_input() {
  818. std::string* _s = _internal_add_input();
  819. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input)
  820. return _s;
  821. }
  822. inline const std::string& NodeDef::_internal_input(int index) const {
  823. return input_.Get(index);
  824. }
  825. inline const std::string& NodeDef::input(int index) const {
  826. // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.input)
  827. return _internal_input(index);
  828. }
  829. inline std::string* NodeDef::mutable_input(int index) {
  830. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.input)
  831. return input_.Mutable(index);
  832. }
  833. inline void NodeDef::set_input(int index, const std::string& value) {
  834. input_.Mutable(index)->assign(value);
  835. // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
  836. }
  837. inline void NodeDef::set_input(int index, std::string&& value) {
  838. input_.Mutable(index)->assign(std::move(value));
  839. // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
  840. }
  841. inline void NodeDef::set_input(int index, const char* value) {
  842. GOOGLE_DCHECK(value != nullptr);
  843. input_.Mutable(index)->assign(value);
  844. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.input)
  845. }
  846. inline void NodeDef::set_input(int index, const char* value, size_t size) {
  847. input_.Mutable(index)->assign(
  848. reinterpret_cast<const char*>(value), size);
  849. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.input)
  850. }
  851. inline std::string* NodeDef::_internal_add_input() {
  852. return input_.Add();
  853. }
  854. inline void NodeDef::add_input(const std::string& value) {
  855. input_.Add()->assign(value);
  856. // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
  857. }
  858. inline void NodeDef::add_input(std::string&& value) {
  859. input_.Add(std::move(value));
  860. // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
  861. }
  862. inline void NodeDef::add_input(const char* value) {
  863. GOOGLE_DCHECK(value != nullptr);
  864. input_.Add()->assign(value);
  865. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.NodeDef.input)
  866. }
  867. inline void NodeDef::add_input(const char* value, size_t size) {
  868. input_.Add()->assign(reinterpret_cast<const char*>(value), size);
  869. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.NodeDef.input)
  870. }
  871. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  872. NodeDef::input() const {
  873. // @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input)
  874. return input_;
  875. }
  876. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  877. NodeDef::mutable_input() {
  878. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input)
  879. return &input_;
  880. }
  881. // string device = 4;
  882. inline void NodeDef::clear_device() {
  883. device_.ClearToEmpty();
  884. }
  885. inline const std::string& NodeDef::device() const {
  886. // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.device)
  887. return _internal_device();
  888. }
  889. template <typename ArgT0, typename... ArgT>
  890. inline PROTOBUF_ALWAYS_INLINE
  891. void NodeDef::set_device(ArgT0&& arg0, ArgT... args) {
  892. device_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  893. // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.device)
  894. }
  895. inline std::string* NodeDef::mutable_device() {
  896. std::string* _s = _internal_mutable_device();
  897. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.device)
  898. return _s;
  899. }
  900. inline const std::string& NodeDef::_internal_device() const {
  901. return device_.Get();
  902. }
  903. inline void NodeDef::_internal_set_device(const std::string& value) {
  904. device_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  905. }
  906. inline std::string* NodeDef::_internal_mutable_device() {
  907. return device_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  908. }
  909. inline std::string* NodeDef::release_device() {
  910. // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.device)
  911. return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  912. }
  913. inline void NodeDef::set_allocated_device(std::string* device) {
  914. if (device != nullptr) {
  915. } else {
  916. }
  917. device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device,
  918. GetArenaForAllocation());
  919. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  920. if (device_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  921. device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  922. }
  923. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  924. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.device)
  925. }
  926. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  927. inline int NodeDef::_internal_attr_size() const {
  928. return attr_.size();
  929. }
  930. inline int NodeDef::attr_size() const {
  931. return _internal_attr_size();
  932. }
  933. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  934. NodeDef::_internal_attr() const {
  935. return attr_.GetMap();
  936. }
  937. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  938. NodeDef::attr() const {
  939. // @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr)
  940. return _internal_attr();
  941. }
  942. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  943. NodeDef::_internal_mutable_attr() {
  944. return attr_.MutableMap();
  945. }
  946. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  947. NodeDef::mutable_attr() {
  948. // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NodeDef.attr)
  949. return _internal_mutable_attr();
  950. }
  951. #ifdef __GNUC__
  952. #pragma GCC diagnostic pop
  953. #endif // __GNUC__
  954. // -------------------------------------------------------------------
  955. // -------------------------------------------------------------------
  956. // @@protoc_insertion_point(namespace_scope)
  957. } // namespace opencv_tensorflow
  958. // @@protoc_insertion_point(global_scope)
  959. #include <google/protobuf/port_undef.inc>
  960. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_graph_2eproto