attr_value.pb.h 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: attr_value.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_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 "tensor.pb.h"
  34. #include "tensor_shape.pb.h"
  35. #include "types.pb.h"
  36. // @@protoc_insertion_point(includes)
  37. #include <google/protobuf/port_def.inc>
  38. #define PROTOBUF_INTERNAL_EXPORT_attr_5fvalue_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_attr_5fvalue_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[4]
  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_attr_5fvalue_2eproto;
  57. namespace opencv_tensorflow {
  58. class AttrValue;
  59. struct AttrValueDefaultTypeInternal;
  60. extern AttrValueDefaultTypeInternal _AttrValue_default_instance_;
  61. class AttrValue_ListValue;
  62. struct AttrValue_ListValueDefaultTypeInternal;
  63. extern AttrValue_ListValueDefaultTypeInternal _AttrValue_ListValue_default_instance_;
  64. class NameAttrList;
  65. struct NameAttrListDefaultTypeInternal;
  66. extern NameAttrListDefaultTypeInternal _NameAttrList_default_instance_;
  67. class NameAttrList_AttrEntry_DoNotUse;
  68. struct NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal;
  69. extern NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal _NameAttrList_AttrEntry_DoNotUse_default_instance_;
  70. } // namespace opencv_tensorflow
  71. PROTOBUF_NAMESPACE_OPEN
  72. template<> ::opencv_tensorflow::AttrValue* Arena::CreateMaybeMessage<::opencv_tensorflow::AttrValue>(Arena*);
  73. template<> ::opencv_tensorflow::AttrValue_ListValue* Arena::CreateMaybeMessage<::opencv_tensorflow::AttrValue_ListValue>(Arena*);
  74. template<> ::opencv_tensorflow::NameAttrList* Arena::CreateMaybeMessage<::opencv_tensorflow::NameAttrList>(Arena*);
  75. template<> ::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse>(Arena*);
  76. PROTOBUF_NAMESPACE_CLOSE
  77. namespace opencv_tensorflow {
  78. // ===================================================================
  79. class AttrValue_ListValue final :
  80. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.AttrValue.ListValue) */ {
  81. public:
  82. inline AttrValue_ListValue() : AttrValue_ListValue(nullptr) {}
  83. ~AttrValue_ListValue() override;
  84. explicit constexpr AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  85. AttrValue_ListValue(const AttrValue_ListValue& from);
  86. AttrValue_ListValue(AttrValue_ListValue&& from) noexcept
  87. : AttrValue_ListValue() {
  88. *this = ::std::move(from);
  89. }
  90. inline AttrValue_ListValue& operator=(const AttrValue_ListValue& from) {
  91. CopyFrom(from);
  92. return *this;
  93. }
  94. inline AttrValue_ListValue& operator=(AttrValue_ListValue&& from) noexcept {
  95. if (this == &from) return *this;
  96. if (GetOwningArena() == from.GetOwningArena()
  97. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  98. && GetOwningArena() != nullptr
  99. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  100. ) {
  101. InternalSwap(&from);
  102. } else {
  103. CopyFrom(from);
  104. }
  105. return *this;
  106. }
  107. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  108. return GetDescriptor();
  109. }
  110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  111. return default_instance().GetMetadata().descriptor;
  112. }
  113. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  114. return default_instance().GetMetadata().reflection;
  115. }
  116. static const AttrValue_ListValue& default_instance() {
  117. return *internal_default_instance();
  118. }
  119. static inline const AttrValue_ListValue* internal_default_instance() {
  120. return reinterpret_cast<const AttrValue_ListValue*>(
  121. &_AttrValue_ListValue_default_instance_);
  122. }
  123. static constexpr int kIndexInFileMessages =
  124. 0;
  125. friend void swap(AttrValue_ListValue& a, AttrValue_ListValue& b) {
  126. a.Swap(&b);
  127. }
  128. inline void Swap(AttrValue_ListValue* other) {
  129. if (other == this) return;
  130. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  131. if (GetOwningArena() != nullptr &&
  132. GetOwningArena() == other->GetOwningArena()) {
  133. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  134. if (GetOwningArena() == other->GetOwningArena()) {
  135. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  136. InternalSwap(other);
  137. } else {
  138. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  139. }
  140. }
  141. void UnsafeArenaSwap(AttrValue_ListValue* other) {
  142. if (other == this) return;
  143. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  144. InternalSwap(other);
  145. }
  146. // implements Message ----------------------------------------------
  147. AttrValue_ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  148. return CreateMaybeMessage<AttrValue_ListValue>(arena);
  149. }
  150. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  151. void CopyFrom(const AttrValue_ListValue& from);
  152. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  153. void MergeFrom(const AttrValue_ListValue& from);
  154. private:
  155. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  156. public:
  157. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  158. bool IsInitialized() const final;
  159. size_t ByteSizeLong() const final;
  160. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  161. uint8_t* _InternalSerialize(
  162. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  163. int GetCachedSize() const final { return _cached_size_.Get(); }
  164. private:
  165. void SharedCtor();
  166. void SharedDtor();
  167. void SetCachedSize(int size) const final;
  168. void InternalSwap(AttrValue_ListValue* other);
  169. private:
  170. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  171. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  172. return "opencv_tensorflow.AttrValue.ListValue";
  173. }
  174. protected:
  175. explicit AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  176. bool is_message_owned = false);
  177. private:
  178. static void ArenaDtor(void* object);
  179. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  180. public:
  181. static const ClassData _class_data_;
  182. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  183. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  184. // nested types ----------------------------------------------------
  185. // accessors -------------------------------------------------------
  186. enum : int {
  187. kSFieldNumber = 2,
  188. kIFieldNumber = 3,
  189. kFFieldNumber = 4,
  190. kBFieldNumber = 5,
  191. kTypeFieldNumber = 6,
  192. kShapeFieldNumber = 7,
  193. kTensorFieldNumber = 8,
  194. };
  195. // repeated bytes s = 2;
  196. int s_size() const;
  197. private:
  198. int _internal_s_size() const;
  199. public:
  200. void clear_s();
  201. const std::string& s(int index) const;
  202. std::string* mutable_s(int index);
  203. void set_s(int index, const std::string& value);
  204. void set_s(int index, std::string&& value);
  205. void set_s(int index, const char* value);
  206. void set_s(int index, const void* value, size_t size);
  207. std::string* add_s();
  208. void add_s(const std::string& value);
  209. void add_s(std::string&& value);
  210. void add_s(const char* value);
  211. void add_s(const void* value, size_t size);
  212. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& s() const;
  213. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_s();
  214. private:
  215. const std::string& _internal_s(int index) const;
  216. std::string* _internal_add_s();
  217. public:
  218. // repeated int64 i = 3 [packed = true];
  219. int i_size() const;
  220. private:
  221. int _internal_i_size() const;
  222. public:
  223. void clear_i();
  224. private:
  225. int64_t _internal_i(int index) const;
  226. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  227. _internal_i() const;
  228. void _internal_add_i(int64_t value);
  229. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  230. _internal_mutable_i();
  231. public:
  232. int64_t i(int index) const;
  233. void set_i(int index, int64_t value);
  234. void add_i(int64_t value);
  235. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  236. i() const;
  237. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  238. mutable_i();
  239. // repeated float f = 4 [packed = true];
  240. int f_size() const;
  241. private:
  242. int _internal_f_size() const;
  243. public:
  244. void clear_f();
  245. private:
  246. float _internal_f(int index) const;
  247. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  248. _internal_f() const;
  249. void _internal_add_f(float value);
  250. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  251. _internal_mutable_f();
  252. public:
  253. float f(int index) const;
  254. void set_f(int index, float value);
  255. void add_f(float value);
  256. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  257. f() const;
  258. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  259. mutable_f();
  260. // repeated bool b = 5 [packed = true];
  261. int b_size() const;
  262. private:
  263. int _internal_b_size() const;
  264. public:
  265. void clear_b();
  266. private:
  267. bool _internal_b(int index) const;
  268. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  269. _internal_b() const;
  270. void _internal_add_b(bool value);
  271. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  272. _internal_mutable_b();
  273. public:
  274. bool b(int index) const;
  275. void set_b(int index, bool value);
  276. void add_b(bool value);
  277. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  278. b() const;
  279. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  280. mutable_b();
  281. // repeated .opencv_tensorflow.DataType type = 6 [packed = true];
  282. int type_size() const;
  283. private:
  284. int _internal_type_size() const;
  285. public:
  286. void clear_type();
  287. private:
  288. ::opencv_tensorflow::DataType _internal_type(int index) const;
  289. void _internal_add_type(::opencv_tensorflow::DataType value);
  290. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_type();
  291. public:
  292. ::opencv_tensorflow::DataType type(int index) const;
  293. void set_type(int index, ::opencv_tensorflow::DataType value);
  294. void add_type(::opencv_tensorflow::DataType value);
  295. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& type() const;
  296. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_type();
  297. // repeated .opencv_tensorflow.TensorShapeProto shape = 7;
  298. int shape_size() const;
  299. private:
  300. int _internal_shape_size() const;
  301. public:
  302. void clear_shape();
  303. ::opencv_tensorflow::TensorShapeProto* mutable_shape(int index);
  304. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >*
  305. mutable_shape();
  306. private:
  307. const ::opencv_tensorflow::TensorShapeProto& _internal_shape(int index) const;
  308. ::opencv_tensorflow::TensorShapeProto* _internal_add_shape();
  309. public:
  310. const ::opencv_tensorflow::TensorShapeProto& shape(int index) const;
  311. ::opencv_tensorflow::TensorShapeProto* add_shape();
  312. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >&
  313. shape() const;
  314. // repeated .opencv_tensorflow.TensorProto tensor = 8;
  315. int tensor_size() const;
  316. private:
  317. int _internal_tensor_size() const;
  318. public:
  319. void clear_tensor();
  320. ::opencv_tensorflow::TensorProto* mutable_tensor(int index);
  321. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >*
  322. mutable_tensor();
  323. private:
  324. const ::opencv_tensorflow::TensorProto& _internal_tensor(int index) const;
  325. ::opencv_tensorflow::TensorProto* _internal_add_tensor();
  326. public:
  327. const ::opencv_tensorflow::TensorProto& tensor(int index) const;
  328. ::opencv_tensorflow::TensorProto* add_tensor();
  329. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >&
  330. tensor() const;
  331. // @@protoc_insertion_point(class_scope:opencv_tensorflow.AttrValue.ListValue)
  332. private:
  333. class _Internal;
  334. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  335. typedef void InternalArenaConstructable_;
  336. typedef void DestructorSkippable_;
  337. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> s_;
  338. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > i_;
  339. mutable std::atomic<int> _i_cached_byte_size_;
  340. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > f_;
  341. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > b_;
  342. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> type_;
  343. mutable std::atomic<int> _type_cached_byte_size_;
  344. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto > shape_;
  345. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto > tensor_;
  346. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  347. friend struct ::TableStruct_attr_5fvalue_2eproto;
  348. };
  349. // -------------------------------------------------------------------
  350. class AttrValue final :
  351. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.AttrValue) */ {
  352. public:
  353. inline AttrValue() : AttrValue(nullptr) {}
  354. ~AttrValue() override;
  355. explicit constexpr AttrValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  356. AttrValue(const AttrValue& from);
  357. AttrValue(AttrValue&& from) noexcept
  358. : AttrValue() {
  359. *this = ::std::move(from);
  360. }
  361. inline AttrValue& operator=(const AttrValue& from) {
  362. CopyFrom(from);
  363. return *this;
  364. }
  365. inline AttrValue& operator=(AttrValue&& from) noexcept {
  366. if (this == &from) return *this;
  367. if (GetOwningArena() == from.GetOwningArena()
  368. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  369. && GetOwningArena() != nullptr
  370. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  371. ) {
  372. InternalSwap(&from);
  373. } else {
  374. CopyFrom(from);
  375. }
  376. return *this;
  377. }
  378. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  379. return GetDescriptor();
  380. }
  381. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  382. return default_instance().GetMetadata().descriptor;
  383. }
  384. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  385. return default_instance().GetMetadata().reflection;
  386. }
  387. static const AttrValue& default_instance() {
  388. return *internal_default_instance();
  389. }
  390. enum ValueCase {
  391. kS = 2,
  392. kI = 3,
  393. kF = 4,
  394. kB = 5,
  395. kType = 6,
  396. kShape = 7,
  397. kTensor = 8,
  398. kList = 1,
  399. kFunc = 10,
  400. kPlaceholder = 9,
  401. VALUE_NOT_SET = 0,
  402. };
  403. static inline const AttrValue* internal_default_instance() {
  404. return reinterpret_cast<const AttrValue*>(
  405. &_AttrValue_default_instance_);
  406. }
  407. static constexpr int kIndexInFileMessages =
  408. 1;
  409. friend void swap(AttrValue& a, AttrValue& b) {
  410. a.Swap(&b);
  411. }
  412. inline void Swap(AttrValue* other) {
  413. if (other == this) return;
  414. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  415. if (GetOwningArena() != nullptr &&
  416. GetOwningArena() == other->GetOwningArena()) {
  417. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  418. if (GetOwningArena() == other->GetOwningArena()) {
  419. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  420. InternalSwap(other);
  421. } else {
  422. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  423. }
  424. }
  425. void UnsafeArenaSwap(AttrValue* other) {
  426. if (other == this) return;
  427. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  428. InternalSwap(other);
  429. }
  430. // implements Message ----------------------------------------------
  431. AttrValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  432. return CreateMaybeMessage<AttrValue>(arena);
  433. }
  434. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  435. void CopyFrom(const AttrValue& from);
  436. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  437. void MergeFrom(const AttrValue& from);
  438. private:
  439. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  440. public:
  441. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  442. bool IsInitialized() const final;
  443. size_t ByteSizeLong() const final;
  444. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  445. uint8_t* _InternalSerialize(
  446. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  447. int GetCachedSize() const final { return _cached_size_.Get(); }
  448. private:
  449. void SharedCtor();
  450. void SharedDtor();
  451. void SetCachedSize(int size) const final;
  452. void InternalSwap(AttrValue* other);
  453. private:
  454. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  455. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  456. return "opencv_tensorflow.AttrValue";
  457. }
  458. protected:
  459. explicit AttrValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  460. bool is_message_owned = false);
  461. private:
  462. static void ArenaDtor(void* object);
  463. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  464. public:
  465. static const ClassData _class_data_;
  466. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  467. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  468. // nested types ----------------------------------------------------
  469. typedef AttrValue_ListValue ListValue;
  470. // accessors -------------------------------------------------------
  471. enum : int {
  472. kSFieldNumber = 2,
  473. kIFieldNumber = 3,
  474. kFFieldNumber = 4,
  475. kBFieldNumber = 5,
  476. kTypeFieldNumber = 6,
  477. kShapeFieldNumber = 7,
  478. kTensorFieldNumber = 8,
  479. kListFieldNumber = 1,
  480. kFuncFieldNumber = 10,
  481. kPlaceholderFieldNumber = 9,
  482. };
  483. // bytes s = 2;
  484. bool has_s() const;
  485. private:
  486. bool _internal_has_s() const;
  487. public:
  488. void clear_s();
  489. const std::string& s() const;
  490. template <typename ArgT0 = const std::string&, typename... ArgT>
  491. void set_s(ArgT0&& arg0, ArgT... args);
  492. std::string* mutable_s();
  493. PROTOBUF_NODISCARD std::string* release_s();
  494. void set_allocated_s(std::string* s);
  495. private:
  496. const std::string& _internal_s() const;
  497. inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
  498. std::string* _internal_mutable_s();
  499. public:
  500. // int64 i = 3;
  501. bool has_i() const;
  502. private:
  503. bool _internal_has_i() const;
  504. public:
  505. void clear_i();
  506. int64_t i() const;
  507. void set_i(int64_t value);
  508. private:
  509. int64_t _internal_i() const;
  510. void _internal_set_i(int64_t value);
  511. public:
  512. // float f = 4;
  513. bool has_f() const;
  514. private:
  515. bool _internal_has_f() const;
  516. public:
  517. void clear_f();
  518. float f() const;
  519. void set_f(float value);
  520. private:
  521. float _internal_f() const;
  522. void _internal_set_f(float value);
  523. public:
  524. // bool b = 5;
  525. bool has_b() const;
  526. private:
  527. bool _internal_has_b() const;
  528. public:
  529. void clear_b();
  530. bool b() const;
  531. void set_b(bool value);
  532. private:
  533. bool _internal_b() const;
  534. void _internal_set_b(bool value);
  535. public:
  536. // .opencv_tensorflow.DataType type = 6;
  537. bool has_type() const;
  538. private:
  539. bool _internal_has_type() const;
  540. public:
  541. void clear_type();
  542. ::opencv_tensorflow::DataType type() const;
  543. void set_type(::opencv_tensorflow::DataType value);
  544. private:
  545. ::opencv_tensorflow::DataType _internal_type() const;
  546. void _internal_set_type(::opencv_tensorflow::DataType value);
  547. public:
  548. // .opencv_tensorflow.TensorShapeProto shape = 7;
  549. bool has_shape() const;
  550. private:
  551. bool _internal_has_shape() const;
  552. public:
  553. void clear_shape();
  554. const ::opencv_tensorflow::TensorShapeProto& shape() const;
  555. PROTOBUF_NODISCARD ::opencv_tensorflow::TensorShapeProto* release_shape();
  556. ::opencv_tensorflow::TensorShapeProto* mutable_shape();
  557. void set_allocated_shape(::opencv_tensorflow::TensorShapeProto* shape);
  558. private:
  559. const ::opencv_tensorflow::TensorShapeProto& _internal_shape() const;
  560. ::opencv_tensorflow::TensorShapeProto* _internal_mutable_shape();
  561. public:
  562. void unsafe_arena_set_allocated_shape(
  563. ::opencv_tensorflow::TensorShapeProto* shape);
  564. ::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_shape();
  565. // .opencv_tensorflow.TensorProto tensor = 8;
  566. bool has_tensor() const;
  567. private:
  568. bool _internal_has_tensor() const;
  569. public:
  570. void clear_tensor();
  571. const ::opencv_tensorflow::TensorProto& tensor() const;
  572. PROTOBUF_NODISCARD ::opencv_tensorflow::TensorProto* release_tensor();
  573. ::opencv_tensorflow::TensorProto* mutable_tensor();
  574. void set_allocated_tensor(::opencv_tensorflow::TensorProto* tensor);
  575. private:
  576. const ::opencv_tensorflow::TensorProto& _internal_tensor() const;
  577. ::opencv_tensorflow::TensorProto* _internal_mutable_tensor();
  578. public:
  579. void unsafe_arena_set_allocated_tensor(
  580. ::opencv_tensorflow::TensorProto* tensor);
  581. ::opencv_tensorflow::TensorProto* unsafe_arena_release_tensor();
  582. // .opencv_tensorflow.AttrValue.ListValue list = 1;
  583. bool has_list() const;
  584. private:
  585. bool _internal_has_list() const;
  586. public:
  587. void clear_list();
  588. const ::opencv_tensorflow::AttrValue_ListValue& list() const;
  589. PROTOBUF_NODISCARD ::opencv_tensorflow::AttrValue_ListValue* release_list();
  590. ::opencv_tensorflow::AttrValue_ListValue* mutable_list();
  591. void set_allocated_list(::opencv_tensorflow::AttrValue_ListValue* list);
  592. private:
  593. const ::opencv_tensorflow::AttrValue_ListValue& _internal_list() const;
  594. ::opencv_tensorflow::AttrValue_ListValue* _internal_mutable_list();
  595. public:
  596. void unsafe_arena_set_allocated_list(
  597. ::opencv_tensorflow::AttrValue_ListValue* list);
  598. ::opencv_tensorflow::AttrValue_ListValue* unsafe_arena_release_list();
  599. // .opencv_tensorflow.NameAttrList func = 10;
  600. bool has_func() const;
  601. private:
  602. bool _internal_has_func() const;
  603. public:
  604. void clear_func();
  605. const ::opencv_tensorflow::NameAttrList& func() const;
  606. PROTOBUF_NODISCARD ::opencv_tensorflow::NameAttrList* release_func();
  607. ::opencv_tensorflow::NameAttrList* mutable_func();
  608. void set_allocated_func(::opencv_tensorflow::NameAttrList* func);
  609. private:
  610. const ::opencv_tensorflow::NameAttrList& _internal_func() const;
  611. ::opencv_tensorflow::NameAttrList* _internal_mutable_func();
  612. public:
  613. void unsafe_arena_set_allocated_func(
  614. ::opencv_tensorflow::NameAttrList* func);
  615. ::opencv_tensorflow::NameAttrList* unsafe_arena_release_func();
  616. // string placeholder = 9;
  617. bool has_placeholder() const;
  618. private:
  619. bool _internal_has_placeholder() const;
  620. public:
  621. void clear_placeholder();
  622. const std::string& placeholder() const;
  623. template <typename ArgT0 = const std::string&, typename... ArgT>
  624. void set_placeholder(ArgT0&& arg0, ArgT... args);
  625. std::string* mutable_placeholder();
  626. PROTOBUF_NODISCARD std::string* release_placeholder();
  627. void set_allocated_placeholder(std::string* placeholder);
  628. private:
  629. const std::string& _internal_placeholder() const;
  630. inline PROTOBUF_ALWAYS_INLINE void _internal_set_placeholder(const std::string& value);
  631. std::string* _internal_mutable_placeholder();
  632. public:
  633. void clear_value();
  634. ValueCase value_case() const;
  635. // @@protoc_insertion_point(class_scope:opencv_tensorflow.AttrValue)
  636. private:
  637. class _Internal;
  638. void set_has_s();
  639. void set_has_i();
  640. void set_has_f();
  641. void set_has_b();
  642. void set_has_type();
  643. void set_has_shape();
  644. void set_has_tensor();
  645. void set_has_list();
  646. void set_has_func();
  647. void set_has_placeholder();
  648. inline bool has_value() const;
  649. inline void clear_has_value();
  650. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  651. typedef void InternalArenaConstructable_;
  652. typedef void DestructorSkippable_;
  653. union ValueUnion {
  654. constexpr ValueUnion() : _constinit_{} {}
  655. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
  656. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
  657. int64_t i_;
  658. float f_;
  659. bool b_;
  660. int type_;
  661. ::opencv_tensorflow::TensorShapeProto* shape_;
  662. ::opencv_tensorflow::TensorProto* tensor_;
  663. ::opencv_tensorflow::AttrValue_ListValue* list_;
  664. ::opencv_tensorflow::NameAttrList* func_;
  665. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr placeholder_;
  666. } value_;
  667. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  668. uint32_t _oneof_case_[1];
  669. friend struct ::TableStruct_attr_5fvalue_2eproto;
  670. };
  671. // -------------------------------------------------------------------
  672. class NameAttrList_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NameAttrList_AttrEntry_DoNotUse,
  673. std::string, ::opencv_tensorflow::AttrValue,
  674. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  675. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
  676. public:
  677. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NameAttrList_AttrEntry_DoNotUse,
  678. std::string, ::opencv_tensorflow::AttrValue,
  679. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  680. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
  681. NameAttrList_AttrEntry_DoNotUse();
  682. explicit constexpr NameAttrList_AttrEntry_DoNotUse(
  683. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  684. explicit NameAttrList_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  685. void MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other);
  686. static const NameAttrList_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NameAttrList_AttrEntry_DoNotUse*>(&_NameAttrList_AttrEntry_DoNotUse_default_instance_); }
  687. static bool ValidateKey(std::string* s) {
  688. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "opencv_tensorflow.NameAttrList.AttrEntry.key");
  689. }
  690. static bool ValidateValue(void*) { return true; }
  691. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  692. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  693. };
  694. // -------------------------------------------------------------------
  695. class NameAttrList final :
  696. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NameAttrList) */ {
  697. public:
  698. inline NameAttrList() : NameAttrList(nullptr) {}
  699. ~NameAttrList() override;
  700. explicit constexpr NameAttrList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  701. NameAttrList(const NameAttrList& from);
  702. NameAttrList(NameAttrList&& from) noexcept
  703. : NameAttrList() {
  704. *this = ::std::move(from);
  705. }
  706. inline NameAttrList& operator=(const NameAttrList& from) {
  707. CopyFrom(from);
  708. return *this;
  709. }
  710. inline NameAttrList& operator=(NameAttrList&& from) noexcept {
  711. if (this == &from) return *this;
  712. if (GetOwningArena() == from.GetOwningArena()
  713. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  714. && GetOwningArena() != nullptr
  715. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  716. ) {
  717. InternalSwap(&from);
  718. } else {
  719. CopyFrom(from);
  720. }
  721. return *this;
  722. }
  723. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  724. return GetDescriptor();
  725. }
  726. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  727. return default_instance().GetMetadata().descriptor;
  728. }
  729. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  730. return default_instance().GetMetadata().reflection;
  731. }
  732. static const NameAttrList& default_instance() {
  733. return *internal_default_instance();
  734. }
  735. static inline const NameAttrList* internal_default_instance() {
  736. return reinterpret_cast<const NameAttrList*>(
  737. &_NameAttrList_default_instance_);
  738. }
  739. static constexpr int kIndexInFileMessages =
  740. 3;
  741. friend void swap(NameAttrList& a, NameAttrList& b) {
  742. a.Swap(&b);
  743. }
  744. inline void Swap(NameAttrList* other) {
  745. if (other == this) return;
  746. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  747. if (GetOwningArena() != nullptr &&
  748. GetOwningArena() == other->GetOwningArena()) {
  749. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  750. if (GetOwningArena() == other->GetOwningArena()) {
  751. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  752. InternalSwap(other);
  753. } else {
  754. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  755. }
  756. }
  757. void UnsafeArenaSwap(NameAttrList* other) {
  758. if (other == this) return;
  759. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  760. InternalSwap(other);
  761. }
  762. // implements Message ----------------------------------------------
  763. NameAttrList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  764. return CreateMaybeMessage<NameAttrList>(arena);
  765. }
  766. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  767. void CopyFrom(const NameAttrList& from);
  768. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  769. void MergeFrom(const NameAttrList& from);
  770. private:
  771. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  772. public:
  773. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  774. bool IsInitialized() const final;
  775. size_t ByteSizeLong() const final;
  776. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  777. uint8_t* _InternalSerialize(
  778. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  779. int GetCachedSize() const final { return _cached_size_.Get(); }
  780. private:
  781. void SharedCtor();
  782. void SharedDtor();
  783. void SetCachedSize(int size) const final;
  784. void InternalSwap(NameAttrList* other);
  785. private:
  786. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  787. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  788. return "opencv_tensorflow.NameAttrList";
  789. }
  790. protected:
  791. explicit NameAttrList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  792. bool is_message_owned = false);
  793. private:
  794. static void ArenaDtor(void* object);
  795. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  796. public:
  797. static const ClassData _class_data_;
  798. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  799. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  800. // nested types ----------------------------------------------------
  801. // accessors -------------------------------------------------------
  802. enum : int {
  803. kAttrFieldNumber = 2,
  804. kNameFieldNumber = 1,
  805. };
  806. // map<string, .opencv_tensorflow.AttrValue> attr = 2;
  807. int attr_size() const;
  808. private:
  809. int _internal_attr_size() const;
  810. public:
  811. void clear_attr();
  812. private:
  813. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  814. _internal_attr() const;
  815. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  816. _internal_mutable_attr();
  817. public:
  818. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  819. attr() const;
  820. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  821. mutable_attr();
  822. // string name = 1;
  823. void clear_name();
  824. const std::string& name() const;
  825. template <typename ArgT0 = const std::string&, typename... ArgT>
  826. void set_name(ArgT0&& arg0, ArgT... args);
  827. std::string* mutable_name();
  828. PROTOBUF_NODISCARD std::string* release_name();
  829. void set_allocated_name(std::string* name);
  830. private:
  831. const std::string& _internal_name() const;
  832. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  833. std::string* _internal_mutable_name();
  834. public:
  835. // @@protoc_insertion_point(class_scope:opencv_tensorflow.NameAttrList)
  836. private:
  837. class _Internal;
  838. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  839. typedef void InternalArenaConstructable_;
  840. typedef void DestructorSkippable_;
  841. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  842. NameAttrList_AttrEntry_DoNotUse,
  843. std::string, ::opencv_tensorflow::AttrValue,
  844. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  845. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> attr_;
  846. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  847. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  848. friend struct ::TableStruct_attr_5fvalue_2eproto;
  849. };
  850. // ===================================================================
  851. // ===================================================================
  852. #ifdef __GNUC__
  853. #pragma GCC diagnostic push
  854. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  855. #endif // __GNUC__
  856. // AttrValue_ListValue
  857. // repeated bytes s = 2;
  858. inline int AttrValue_ListValue::_internal_s_size() const {
  859. return s_.size();
  860. }
  861. inline int AttrValue_ListValue::s_size() const {
  862. return _internal_s_size();
  863. }
  864. inline void AttrValue_ListValue::clear_s() {
  865. s_.Clear();
  866. }
  867. inline std::string* AttrValue_ListValue::add_s() {
  868. std::string* _s = _internal_add_s();
  869. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.AttrValue.ListValue.s)
  870. return _s;
  871. }
  872. inline const std::string& AttrValue_ListValue::_internal_s(int index) const {
  873. return s_.Get(index);
  874. }
  875. inline const std::string& AttrValue_ListValue::s(int index) const {
  876. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.s)
  877. return _internal_s(index);
  878. }
  879. inline std::string* AttrValue_ListValue::mutable_s(int index) {
  880. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.s)
  881. return s_.Mutable(index);
  882. }
  883. inline void AttrValue_ListValue::set_s(int index, const std::string& value) {
  884. s_.Mutable(index)->assign(value);
  885. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.s)
  886. }
  887. inline void AttrValue_ListValue::set_s(int index, std::string&& value) {
  888. s_.Mutable(index)->assign(std::move(value));
  889. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.s)
  890. }
  891. inline void AttrValue_ListValue::set_s(int index, const char* value) {
  892. GOOGLE_DCHECK(value != nullptr);
  893. s_.Mutable(index)->assign(value);
  894. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.AttrValue.ListValue.s)
  895. }
  896. inline void AttrValue_ListValue::set_s(int index, const void* value, size_t size) {
  897. s_.Mutable(index)->assign(
  898. reinterpret_cast<const char*>(value), size);
  899. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.AttrValue.ListValue.s)
  900. }
  901. inline std::string* AttrValue_ListValue::_internal_add_s() {
  902. return s_.Add();
  903. }
  904. inline void AttrValue_ListValue::add_s(const std::string& value) {
  905. s_.Add()->assign(value);
  906. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.s)
  907. }
  908. inline void AttrValue_ListValue::add_s(std::string&& value) {
  909. s_.Add(std::move(value));
  910. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.s)
  911. }
  912. inline void AttrValue_ListValue::add_s(const char* value) {
  913. GOOGLE_DCHECK(value != nullptr);
  914. s_.Add()->assign(value);
  915. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.AttrValue.ListValue.s)
  916. }
  917. inline void AttrValue_ListValue::add_s(const void* value, size_t size) {
  918. s_.Add()->assign(reinterpret_cast<const char*>(value), size);
  919. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.AttrValue.ListValue.s)
  920. }
  921. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  922. AttrValue_ListValue::s() const {
  923. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.s)
  924. return s_;
  925. }
  926. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  927. AttrValue_ListValue::mutable_s() {
  928. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.s)
  929. return &s_;
  930. }
  931. // repeated int64 i = 3 [packed = true];
  932. inline int AttrValue_ListValue::_internal_i_size() const {
  933. return i_.size();
  934. }
  935. inline int AttrValue_ListValue::i_size() const {
  936. return _internal_i_size();
  937. }
  938. inline void AttrValue_ListValue::clear_i() {
  939. i_.Clear();
  940. }
  941. inline int64_t AttrValue_ListValue::_internal_i(int index) const {
  942. return i_.Get(index);
  943. }
  944. inline int64_t AttrValue_ListValue::i(int index) const {
  945. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.i)
  946. return _internal_i(index);
  947. }
  948. inline void AttrValue_ListValue::set_i(int index, int64_t value) {
  949. i_.Set(index, value);
  950. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.i)
  951. }
  952. inline void AttrValue_ListValue::_internal_add_i(int64_t value) {
  953. i_.Add(value);
  954. }
  955. inline void AttrValue_ListValue::add_i(int64_t value) {
  956. _internal_add_i(value);
  957. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.i)
  958. }
  959. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  960. AttrValue_ListValue::_internal_i() const {
  961. return i_;
  962. }
  963. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  964. AttrValue_ListValue::i() const {
  965. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.i)
  966. return _internal_i();
  967. }
  968. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  969. AttrValue_ListValue::_internal_mutable_i() {
  970. return &i_;
  971. }
  972. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  973. AttrValue_ListValue::mutable_i() {
  974. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.i)
  975. return _internal_mutable_i();
  976. }
  977. // repeated float f = 4 [packed = true];
  978. inline int AttrValue_ListValue::_internal_f_size() const {
  979. return f_.size();
  980. }
  981. inline int AttrValue_ListValue::f_size() const {
  982. return _internal_f_size();
  983. }
  984. inline void AttrValue_ListValue::clear_f() {
  985. f_.Clear();
  986. }
  987. inline float AttrValue_ListValue::_internal_f(int index) const {
  988. return f_.Get(index);
  989. }
  990. inline float AttrValue_ListValue::f(int index) const {
  991. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.f)
  992. return _internal_f(index);
  993. }
  994. inline void AttrValue_ListValue::set_f(int index, float value) {
  995. f_.Set(index, value);
  996. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.f)
  997. }
  998. inline void AttrValue_ListValue::_internal_add_f(float value) {
  999. f_.Add(value);
  1000. }
  1001. inline void AttrValue_ListValue::add_f(float value) {
  1002. _internal_add_f(value);
  1003. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.f)
  1004. }
  1005. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  1006. AttrValue_ListValue::_internal_f() const {
  1007. return f_;
  1008. }
  1009. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  1010. AttrValue_ListValue::f() const {
  1011. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.f)
  1012. return _internal_f();
  1013. }
  1014. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  1015. AttrValue_ListValue::_internal_mutable_f() {
  1016. return &f_;
  1017. }
  1018. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  1019. AttrValue_ListValue::mutable_f() {
  1020. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.f)
  1021. return _internal_mutable_f();
  1022. }
  1023. // repeated bool b = 5 [packed = true];
  1024. inline int AttrValue_ListValue::_internal_b_size() const {
  1025. return b_.size();
  1026. }
  1027. inline int AttrValue_ListValue::b_size() const {
  1028. return _internal_b_size();
  1029. }
  1030. inline void AttrValue_ListValue::clear_b() {
  1031. b_.Clear();
  1032. }
  1033. inline bool AttrValue_ListValue::_internal_b(int index) const {
  1034. return b_.Get(index);
  1035. }
  1036. inline bool AttrValue_ListValue::b(int index) const {
  1037. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.b)
  1038. return _internal_b(index);
  1039. }
  1040. inline void AttrValue_ListValue::set_b(int index, bool value) {
  1041. b_.Set(index, value);
  1042. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.b)
  1043. }
  1044. inline void AttrValue_ListValue::_internal_add_b(bool value) {
  1045. b_.Add(value);
  1046. }
  1047. inline void AttrValue_ListValue::add_b(bool value) {
  1048. _internal_add_b(value);
  1049. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.b)
  1050. }
  1051. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  1052. AttrValue_ListValue::_internal_b() const {
  1053. return b_;
  1054. }
  1055. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  1056. AttrValue_ListValue::b() const {
  1057. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.b)
  1058. return _internal_b();
  1059. }
  1060. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  1061. AttrValue_ListValue::_internal_mutable_b() {
  1062. return &b_;
  1063. }
  1064. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  1065. AttrValue_ListValue::mutable_b() {
  1066. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.b)
  1067. return _internal_mutable_b();
  1068. }
  1069. // repeated .opencv_tensorflow.DataType type = 6 [packed = true];
  1070. inline int AttrValue_ListValue::_internal_type_size() const {
  1071. return type_.size();
  1072. }
  1073. inline int AttrValue_ListValue::type_size() const {
  1074. return _internal_type_size();
  1075. }
  1076. inline void AttrValue_ListValue::clear_type() {
  1077. type_.Clear();
  1078. }
  1079. inline ::opencv_tensorflow::DataType AttrValue_ListValue::_internal_type(int index) const {
  1080. return static_cast< ::opencv_tensorflow::DataType >(type_.Get(index));
  1081. }
  1082. inline ::opencv_tensorflow::DataType AttrValue_ListValue::type(int index) const {
  1083. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.type)
  1084. return _internal_type(index);
  1085. }
  1086. inline void AttrValue_ListValue::set_type(int index, ::opencv_tensorflow::DataType value) {
  1087. type_.Set(index, value);
  1088. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.type)
  1089. }
  1090. inline void AttrValue_ListValue::_internal_add_type(::opencv_tensorflow::DataType value) {
  1091. type_.Add(value);
  1092. }
  1093. inline void AttrValue_ListValue::add_type(::opencv_tensorflow::DataType value) {
  1094. _internal_add_type(value);
  1095. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.type)
  1096. }
  1097. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
  1098. AttrValue_ListValue::type() const {
  1099. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.type)
  1100. return type_;
  1101. }
  1102. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
  1103. AttrValue_ListValue::_internal_mutable_type() {
  1104. return &type_;
  1105. }
  1106. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
  1107. AttrValue_ListValue::mutable_type() {
  1108. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.type)
  1109. return _internal_mutable_type();
  1110. }
  1111. // repeated .opencv_tensorflow.TensorShapeProto shape = 7;
  1112. inline int AttrValue_ListValue::_internal_shape_size() const {
  1113. return shape_.size();
  1114. }
  1115. inline int AttrValue_ListValue::shape_size() const {
  1116. return _internal_shape_size();
  1117. }
  1118. inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::mutable_shape(int index) {
  1119. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.shape)
  1120. return shape_.Mutable(index);
  1121. }
  1122. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >*
  1123. AttrValue_ListValue::mutable_shape() {
  1124. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.shape)
  1125. return &shape_;
  1126. }
  1127. inline const ::opencv_tensorflow::TensorShapeProto& AttrValue_ListValue::_internal_shape(int index) const {
  1128. return shape_.Get(index);
  1129. }
  1130. inline const ::opencv_tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const {
  1131. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.shape)
  1132. return _internal_shape(index);
  1133. }
  1134. inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::_internal_add_shape() {
  1135. return shape_.Add();
  1136. }
  1137. inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::add_shape() {
  1138. ::opencv_tensorflow::TensorShapeProto* _add = _internal_add_shape();
  1139. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.shape)
  1140. return _add;
  1141. }
  1142. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >&
  1143. AttrValue_ListValue::shape() const {
  1144. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.shape)
  1145. return shape_;
  1146. }
  1147. // repeated .opencv_tensorflow.TensorProto tensor = 8;
  1148. inline int AttrValue_ListValue::_internal_tensor_size() const {
  1149. return tensor_.size();
  1150. }
  1151. inline int AttrValue_ListValue::tensor_size() const {
  1152. return _internal_tensor_size();
  1153. }
  1154. inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::mutable_tensor(int index) {
  1155. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.tensor)
  1156. return tensor_.Mutable(index);
  1157. }
  1158. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >*
  1159. AttrValue_ListValue::mutable_tensor() {
  1160. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.tensor)
  1161. return &tensor_;
  1162. }
  1163. inline const ::opencv_tensorflow::TensorProto& AttrValue_ListValue::_internal_tensor(int index) const {
  1164. return tensor_.Get(index);
  1165. }
  1166. inline const ::opencv_tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const {
  1167. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.tensor)
  1168. return _internal_tensor(index);
  1169. }
  1170. inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::_internal_add_tensor() {
  1171. return tensor_.Add();
  1172. }
  1173. inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::add_tensor() {
  1174. ::opencv_tensorflow::TensorProto* _add = _internal_add_tensor();
  1175. // @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.tensor)
  1176. return _add;
  1177. }
  1178. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >&
  1179. AttrValue_ListValue::tensor() const {
  1180. // @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.tensor)
  1181. return tensor_;
  1182. }
  1183. // -------------------------------------------------------------------
  1184. // AttrValue
  1185. // bytes s = 2;
  1186. inline bool AttrValue::_internal_has_s() const {
  1187. return value_case() == kS;
  1188. }
  1189. inline bool AttrValue::has_s() const {
  1190. return _internal_has_s();
  1191. }
  1192. inline void AttrValue::set_has_s() {
  1193. _oneof_case_[0] = kS;
  1194. }
  1195. inline void AttrValue::clear_s() {
  1196. if (_internal_has_s()) {
  1197. value_.s_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1198. clear_has_value();
  1199. }
  1200. }
  1201. inline const std::string& AttrValue::s() const {
  1202. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.s)
  1203. return _internal_s();
  1204. }
  1205. template <typename ArgT0, typename... ArgT>
  1206. inline void AttrValue::set_s(ArgT0&& arg0, ArgT... args) {
  1207. if (!_internal_has_s()) {
  1208. clear_value();
  1209. set_has_s();
  1210. value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1211. }
  1212. value_.s_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1213. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.s)
  1214. }
  1215. inline std::string* AttrValue::mutable_s() {
  1216. std::string* _s = _internal_mutable_s();
  1217. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.s)
  1218. return _s;
  1219. }
  1220. inline const std::string& AttrValue::_internal_s() const {
  1221. if (_internal_has_s()) {
  1222. return value_.s_.Get();
  1223. }
  1224. return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  1225. }
  1226. inline void AttrValue::_internal_set_s(const std::string& value) {
  1227. if (!_internal_has_s()) {
  1228. clear_value();
  1229. set_has_s();
  1230. value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1231. }
  1232. value_.s_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1233. }
  1234. inline std::string* AttrValue::_internal_mutable_s() {
  1235. if (!_internal_has_s()) {
  1236. clear_value();
  1237. set_has_s();
  1238. value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1239. }
  1240. return value_.s_.Mutable(
  1241. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1242. }
  1243. inline std::string* AttrValue::release_s() {
  1244. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.s)
  1245. if (_internal_has_s()) {
  1246. clear_has_value();
  1247. return value_.s_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1248. } else {
  1249. return nullptr;
  1250. }
  1251. }
  1252. inline void AttrValue::set_allocated_s(std::string* s) {
  1253. if (has_value()) {
  1254. clear_value();
  1255. }
  1256. if (s != nullptr) {
  1257. set_has_s();
  1258. value_.s_.UnsafeSetDefault(s);
  1259. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
  1260. if (arena != nullptr) {
  1261. arena->Own(s);
  1262. }
  1263. }
  1264. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.s)
  1265. }
  1266. // int64 i = 3;
  1267. inline bool AttrValue::_internal_has_i() const {
  1268. return value_case() == kI;
  1269. }
  1270. inline bool AttrValue::has_i() const {
  1271. return _internal_has_i();
  1272. }
  1273. inline void AttrValue::set_has_i() {
  1274. _oneof_case_[0] = kI;
  1275. }
  1276. inline void AttrValue::clear_i() {
  1277. if (_internal_has_i()) {
  1278. value_.i_ = int64_t{0};
  1279. clear_has_value();
  1280. }
  1281. }
  1282. inline int64_t AttrValue::_internal_i() const {
  1283. if (_internal_has_i()) {
  1284. return value_.i_;
  1285. }
  1286. return int64_t{0};
  1287. }
  1288. inline void AttrValue::_internal_set_i(int64_t value) {
  1289. if (!_internal_has_i()) {
  1290. clear_value();
  1291. set_has_i();
  1292. }
  1293. value_.i_ = value;
  1294. }
  1295. inline int64_t AttrValue::i() const {
  1296. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.i)
  1297. return _internal_i();
  1298. }
  1299. inline void AttrValue::set_i(int64_t value) {
  1300. _internal_set_i(value);
  1301. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.i)
  1302. }
  1303. // float f = 4;
  1304. inline bool AttrValue::_internal_has_f() const {
  1305. return value_case() == kF;
  1306. }
  1307. inline bool AttrValue::has_f() const {
  1308. return _internal_has_f();
  1309. }
  1310. inline void AttrValue::set_has_f() {
  1311. _oneof_case_[0] = kF;
  1312. }
  1313. inline void AttrValue::clear_f() {
  1314. if (_internal_has_f()) {
  1315. value_.f_ = 0;
  1316. clear_has_value();
  1317. }
  1318. }
  1319. inline float AttrValue::_internal_f() const {
  1320. if (_internal_has_f()) {
  1321. return value_.f_;
  1322. }
  1323. return 0;
  1324. }
  1325. inline void AttrValue::_internal_set_f(float value) {
  1326. if (!_internal_has_f()) {
  1327. clear_value();
  1328. set_has_f();
  1329. }
  1330. value_.f_ = value;
  1331. }
  1332. inline float AttrValue::f() const {
  1333. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.f)
  1334. return _internal_f();
  1335. }
  1336. inline void AttrValue::set_f(float value) {
  1337. _internal_set_f(value);
  1338. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.f)
  1339. }
  1340. // bool b = 5;
  1341. inline bool AttrValue::_internal_has_b() const {
  1342. return value_case() == kB;
  1343. }
  1344. inline bool AttrValue::has_b() const {
  1345. return _internal_has_b();
  1346. }
  1347. inline void AttrValue::set_has_b() {
  1348. _oneof_case_[0] = kB;
  1349. }
  1350. inline void AttrValue::clear_b() {
  1351. if (_internal_has_b()) {
  1352. value_.b_ = false;
  1353. clear_has_value();
  1354. }
  1355. }
  1356. inline bool AttrValue::_internal_b() const {
  1357. if (_internal_has_b()) {
  1358. return value_.b_;
  1359. }
  1360. return false;
  1361. }
  1362. inline void AttrValue::_internal_set_b(bool value) {
  1363. if (!_internal_has_b()) {
  1364. clear_value();
  1365. set_has_b();
  1366. }
  1367. value_.b_ = value;
  1368. }
  1369. inline bool AttrValue::b() const {
  1370. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.b)
  1371. return _internal_b();
  1372. }
  1373. inline void AttrValue::set_b(bool value) {
  1374. _internal_set_b(value);
  1375. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.b)
  1376. }
  1377. // .opencv_tensorflow.DataType type = 6;
  1378. inline bool AttrValue::_internal_has_type() const {
  1379. return value_case() == kType;
  1380. }
  1381. inline bool AttrValue::has_type() const {
  1382. return _internal_has_type();
  1383. }
  1384. inline void AttrValue::set_has_type() {
  1385. _oneof_case_[0] = kType;
  1386. }
  1387. inline void AttrValue::clear_type() {
  1388. if (_internal_has_type()) {
  1389. value_.type_ = 0;
  1390. clear_has_value();
  1391. }
  1392. }
  1393. inline ::opencv_tensorflow::DataType AttrValue::_internal_type() const {
  1394. if (_internal_has_type()) {
  1395. return static_cast< ::opencv_tensorflow::DataType >(value_.type_);
  1396. }
  1397. return static_cast< ::opencv_tensorflow::DataType >(0);
  1398. }
  1399. inline ::opencv_tensorflow::DataType AttrValue::type() const {
  1400. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.type)
  1401. return _internal_type();
  1402. }
  1403. inline void AttrValue::_internal_set_type(::opencv_tensorflow::DataType value) {
  1404. if (!_internal_has_type()) {
  1405. clear_value();
  1406. set_has_type();
  1407. }
  1408. value_.type_ = value;
  1409. }
  1410. inline void AttrValue::set_type(::opencv_tensorflow::DataType value) {
  1411. _internal_set_type(value);
  1412. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.type)
  1413. }
  1414. // .opencv_tensorflow.TensorShapeProto shape = 7;
  1415. inline bool AttrValue::_internal_has_shape() const {
  1416. return value_case() == kShape;
  1417. }
  1418. inline bool AttrValue::has_shape() const {
  1419. return _internal_has_shape();
  1420. }
  1421. inline void AttrValue::set_has_shape() {
  1422. _oneof_case_[0] = kShape;
  1423. }
  1424. inline ::opencv_tensorflow::TensorShapeProto* AttrValue::release_shape() {
  1425. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.shape)
  1426. if (_internal_has_shape()) {
  1427. clear_has_value();
  1428. ::opencv_tensorflow::TensorShapeProto* temp = value_.shape_;
  1429. if (GetArenaForAllocation() != nullptr) {
  1430. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1431. }
  1432. value_.shape_ = nullptr;
  1433. return temp;
  1434. } else {
  1435. return nullptr;
  1436. }
  1437. }
  1438. inline const ::opencv_tensorflow::TensorShapeProto& AttrValue::_internal_shape() const {
  1439. return _internal_has_shape()
  1440. ? *value_.shape_
  1441. : reinterpret_cast< ::opencv_tensorflow::TensorShapeProto&>(::opencv_tensorflow::_TensorShapeProto_default_instance_);
  1442. }
  1443. inline const ::opencv_tensorflow::TensorShapeProto& AttrValue::shape() const {
  1444. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.shape)
  1445. return _internal_shape();
  1446. }
  1447. inline ::opencv_tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() {
  1448. // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.shape)
  1449. if (_internal_has_shape()) {
  1450. clear_has_value();
  1451. ::opencv_tensorflow::TensorShapeProto* temp = value_.shape_;
  1452. value_.shape_ = nullptr;
  1453. return temp;
  1454. } else {
  1455. return nullptr;
  1456. }
  1457. }
  1458. inline void AttrValue::unsafe_arena_set_allocated_shape(::opencv_tensorflow::TensorShapeProto* shape) {
  1459. clear_value();
  1460. if (shape) {
  1461. set_has_shape();
  1462. value_.shape_ = shape;
  1463. }
  1464. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.shape)
  1465. }
  1466. inline ::opencv_tensorflow::TensorShapeProto* AttrValue::_internal_mutable_shape() {
  1467. if (!_internal_has_shape()) {
  1468. clear_value();
  1469. set_has_shape();
  1470. value_.shape_ = CreateMaybeMessage< ::opencv_tensorflow::TensorShapeProto >(GetArenaForAllocation());
  1471. }
  1472. return value_.shape_;
  1473. }
  1474. inline ::opencv_tensorflow::TensorShapeProto* AttrValue::mutable_shape() {
  1475. ::opencv_tensorflow::TensorShapeProto* _msg = _internal_mutable_shape();
  1476. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.shape)
  1477. return _msg;
  1478. }
  1479. // .opencv_tensorflow.TensorProto tensor = 8;
  1480. inline bool AttrValue::_internal_has_tensor() const {
  1481. return value_case() == kTensor;
  1482. }
  1483. inline bool AttrValue::has_tensor() const {
  1484. return _internal_has_tensor();
  1485. }
  1486. inline void AttrValue::set_has_tensor() {
  1487. _oneof_case_[0] = kTensor;
  1488. }
  1489. inline ::opencv_tensorflow::TensorProto* AttrValue::release_tensor() {
  1490. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.tensor)
  1491. if (_internal_has_tensor()) {
  1492. clear_has_value();
  1493. ::opencv_tensorflow::TensorProto* temp = value_.tensor_;
  1494. if (GetArenaForAllocation() != nullptr) {
  1495. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1496. }
  1497. value_.tensor_ = nullptr;
  1498. return temp;
  1499. } else {
  1500. return nullptr;
  1501. }
  1502. }
  1503. inline const ::opencv_tensorflow::TensorProto& AttrValue::_internal_tensor() const {
  1504. return _internal_has_tensor()
  1505. ? *value_.tensor_
  1506. : reinterpret_cast< ::opencv_tensorflow::TensorProto&>(::opencv_tensorflow::_TensorProto_default_instance_);
  1507. }
  1508. inline const ::opencv_tensorflow::TensorProto& AttrValue::tensor() const {
  1509. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.tensor)
  1510. return _internal_tensor();
  1511. }
  1512. inline ::opencv_tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() {
  1513. // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.tensor)
  1514. if (_internal_has_tensor()) {
  1515. clear_has_value();
  1516. ::opencv_tensorflow::TensorProto* temp = value_.tensor_;
  1517. value_.tensor_ = nullptr;
  1518. return temp;
  1519. } else {
  1520. return nullptr;
  1521. }
  1522. }
  1523. inline void AttrValue::unsafe_arena_set_allocated_tensor(::opencv_tensorflow::TensorProto* tensor) {
  1524. clear_value();
  1525. if (tensor) {
  1526. set_has_tensor();
  1527. value_.tensor_ = tensor;
  1528. }
  1529. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.tensor)
  1530. }
  1531. inline ::opencv_tensorflow::TensorProto* AttrValue::_internal_mutable_tensor() {
  1532. if (!_internal_has_tensor()) {
  1533. clear_value();
  1534. set_has_tensor();
  1535. value_.tensor_ = CreateMaybeMessage< ::opencv_tensorflow::TensorProto >(GetArenaForAllocation());
  1536. }
  1537. return value_.tensor_;
  1538. }
  1539. inline ::opencv_tensorflow::TensorProto* AttrValue::mutable_tensor() {
  1540. ::opencv_tensorflow::TensorProto* _msg = _internal_mutable_tensor();
  1541. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.tensor)
  1542. return _msg;
  1543. }
  1544. // .opencv_tensorflow.AttrValue.ListValue list = 1;
  1545. inline bool AttrValue::_internal_has_list() const {
  1546. return value_case() == kList;
  1547. }
  1548. inline bool AttrValue::has_list() const {
  1549. return _internal_has_list();
  1550. }
  1551. inline void AttrValue::set_has_list() {
  1552. _oneof_case_[0] = kList;
  1553. }
  1554. inline void AttrValue::clear_list() {
  1555. if (_internal_has_list()) {
  1556. if (GetArenaForAllocation() == nullptr) {
  1557. delete value_.list_;
  1558. }
  1559. clear_has_value();
  1560. }
  1561. }
  1562. inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::release_list() {
  1563. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.list)
  1564. if (_internal_has_list()) {
  1565. clear_has_value();
  1566. ::opencv_tensorflow::AttrValue_ListValue* temp = value_.list_;
  1567. if (GetArenaForAllocation() != nullptr) {
  1568. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1569. }
  1570. value_.list_ = nullptr;
  1571. return temp;
  1572. } else {
  1573. return nullptr;
  1574. }
  1575. }
  1576. inline const ::opencv_tensorflow::AttrValue_ListValue& AttrValue::_internal_list() const {
  1577. return _internal_has_list()
  1578. ? *value_.list_
  1579. : reinterpret_cast< ::opencv_tensorflow::AttrValue_ListValue&>(::opencv_tensorflow::_AttrValue_ListValue_default_instance_);
  1580. }
  1581. inline const ::opencv_tensorflow::AttrValue_ListValue& AttrValue::list() const {
  1582. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.list)
  1583. return _internal_list();
  1584. }
  1585. inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() {
  1586. // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.list)
  1587. if (_internal_has_list()) {
  1588. clear_has_value();
  1589. ::opencv_tensorflow::AttrValue_ListValue* temp = value_.list_;
  1590. value_.list_ = nullptr;
  1591. return temp;
  1592. } else {
  1593. return nullptr;
  1594. }
  1595. }
  1596. inline void AttrValue::unsafe_arena_set_allocated_list(::opencv_tensorflow::AttrValue_ListValue* list) {
  1597. clear_value();
  1598. if (list) {
  1599. set_has_list();
  1600. value_.list_ = list;
  1601. }
  1602. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.list)
  1603. }
  1604. inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::_internal_mutable_list() {
  1605. if (!_internal_has_list()) {
  1606. clear_value();
  1607. set_has_list();
  1608. value_.list_ = CreateMaybeMessage< ::opencv_tensorflow::AttrValue_ListValue >(GetArenaForAllocation());
  1609. }
  1610. return value_.list_;
  1611. }
  1612. inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::mutable_list() {
  1613. ::opencv_tensorflow::AttrValue_ListValue* _msg = _internal_mutable_list();
  1614. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.list)
  1615. return _msg;
  1616. }
  1617. // .opencv_tensorflow.NameAttrList func = 10;
  1618. inline bool AttrValue::_internal_has_func() const {
  1619. return value_case() == kFunc;
  1620. }
  1621. inline bool AttrValue::has_func() const {
  1622. return _internal_has_func();
  1623. }
  1624. inline void AttrValue::set_has_func() {
  1625. _oneof_case_[0] = kFunc;
  1626. }
  1627. inline void AttrValue::clear_func() {
  1628. if (_internal_has_func()) {
  1629. if (GetArenaForAllocation() == nullptr) {
  1630. delete value_.func_;
  1631. }
  1632. clear_has_value();
  1633. }
  1634. }
  1635. inline ::opencv_tensorflow::NameAttrList* AttrValue::release_func() {
  1636. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.func)
  1637. if (_internal_has_func()) {
  1638. clear_has_value();
  1639. ::opencv_tensorflow::NameAttrList* temp = value_.func_;
  1640. if (GetArenaForAllocation() != nullptr) {
  1641. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1642. }
  1643. value_.func_ = nullptr;
  1644. return temp;
  1645. } else {
  1646. return nullptr;
  1647. }
  1648. }
  1649. inline const ::opencv_tensorflow::NameAttrList& AttrValue::_internal_func() const {
  1650. return _internal_has_func()
  1651. ? *value_.func_
  1652. : reinterpret_cast< ::opencv_tensorflow::NameAttrList&>(::opencv_tensorflow::_NameAttrList_default_instance_);
  1653. }
  1654. inline const ::opencv_tensorflow::NameAttrList& AttrValue::func() const {
  1655. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.func)
  1656. return _internal_func();
  1657. }
  1658. inline ::opencv_tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() {
  1659. // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.func)
  1660. if (_internal_has_func()) {
  1661. clear_has_value();
  1662. ::opencv_tensorflow::NameAttrList* temp = value_.func_;
  1663. value_.func_ = nullptr;
  1664. return temp;
  1665. } else {
  1666. return nullptr;
  1667. }
  1668. }
  1669. inline void AttrValue::unsafe_arena_set_allocated_func(::opencv_tensorflow::NameAttrList* func) {
  1670. clear_value();
  1671. if (func) {
  1672. set_has_func();
  1673. value_.func_ = func;
  1674. }
  1675. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.func)
  1676. }
  1677. inline ::opencv_tensorflow::NameAttrList* AttrValue::_internal_mutable_func() {
  1678. if (!_internal_has_func()) {
  1679. clear_value();
  1680. set_has_func();
  1681. value_.func_ = CreateMaybeMessage< ::opencv_tensorflow::NameAttrList >(GetArenaForAllocation());
  1682. }
  1683. return value_.func_;
  1684. }
  1685. inline ::opencv_tensorflow::NameAttrList* AttrValue::mutable_func() {
  1686. ::opencv_tensorflow::NameAttrList* _msg = _internal_mutable_func();
  1687. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.func)
  1688. return _msg;
  1689. }
  1690. // string placeholder = 9;
  1691. inline bool AttrValue::_internal_has_placeholder() const {
  1692. return value_case() == kPlaceholder;
  1693. }
  1694. inline bool AttrValue::has_placeholder() const {
  1695. return _internal_has_placeholder();
  1696. }
  1697. inline void AttrValue::set_has_placeholder() {
  1698. _oneof_case_[0] = kPlaceholder;
  1699. }
  1700. inline void AttrValue::clear_placeholder() {
  1701. if (_internal_has_placeholder()) {
  1702. value_.placeholder_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1703. clear_has_value();
  1704. }
  1705. }
  1706. inline const std::string& AttrValue::placeholder() const {
  1707. // @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.placeholder)
  1708. return _internal_placeholder();
  1709. }
  1710. template <typename ArgT0, typename... ArgT>
  1711. inline void AttrValue::set_placeholder(ArgT0&& arg0, ArgT... args) {
  1712. if (!_internal_has_placeholder()) {
  1713. clear_value();
  1714. set_has_placeholder();
  1715. value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1716. }
  1717. value_.placeholder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1718. // @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.placeholder)
  1719. }
  1720. inline std::string* AttrValue::mutable_placeholder() {
  1721. std::string* _s = _internal_mutable_placeholder();
  1722. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.placeholder)
  1723. return _s;
  1724. }
  1725. inline const std::string& AttrValue::_internal_placeholder() const {
  1726. if (_internal_has_placeholder()) {
  1727. return value_.placeholder_.Get();
  1728. }
  1729. return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  1730. }
  1731. inline void AttrValue::_internal_set_placeholder(const std::string& value) {
  1732. if (!_internal_has_placeholder()) {
  1733. clear_value();
  1734. set_has_placeholder();
  1735. value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1736. }
  1737. value_.placeholder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1738. }
  1739. inline std::string* AttrValue::_internal_mutable_placeholder() {
  1740. if (!_internal_has_placeholder()) {
  1741. clear_value();
  1742. set_has_placeholder();
  1743. value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1744. }
  1745. return value_.placeholder_.Mutable(
  1746. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1747. }
  1748. inline std::string* AttrValue::release_placeholder() {
  1749. // @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.placeholder)
  1750. if (_internal_has_placeholder()) {
  1751. clear_has_value();
  1752. return value_.placeholder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1753. } else {
  1754. return nullptr;
  1755. }
  1756. }
  1757. inline void AttrValue::set_allocated_placeholder(std::string* placeholder) {
  1758. if (has_value()) {
  1759. clear_value();
  1760. }
  1761. if (placeholder != nullptr) {
  1762. set_has_placeholder();
  1763. value_.placeholder_.UnsafeSetDefault(placeholder);
  1764. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
  1765. if (arena != nullptr) {
  1766. arena->Own(placeholder);
  1767. }
  1768. }
  1769. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.placeholder)
  1770. }
  1771. inline bool AttrValue::has_value() const {
  1772. return value_case() != VALUE_NOT_SET;
  1773. }
  1774. inline void AttrValue::clear_has_value() {
  1775. _oneof_case_[0] = VALUE_NOT_SET;
  1776. }
  1777. inline AttrValue::ValueCase AttrValue::value_case() const {
  1778. return AttrValue::ValueCase(_oneof_case_[0]);
  1779. }
  1780. // -------------------------------------------------------------------
  1781. // -------------------------------------------------------------------
  1782. // NameAttrList
  1783. // string name = 1;
  1784. inline void NameAttrList::clear_name() {
  1785. name_.ClearToEmpty();
  1786. }
  1787. inline const std::string& NameAttrList::name() const {
  1788. // @@protoc_insertion_point(field_get:opencv_tensorflow.NameAttrList.name)
  1789. return _internal_name();
  1790. }
  1791. template <typename ArgT0, typename... ArgT>
  1792. inline PROTOBUF_ALWAYS_INLINE
  1793. void NameAttrList::set_name(ArgT0&& arg0, ArgT... args) {
  1794. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1795. // @@protoc_insertion_point(field_set:opencv_tensorflow.NameAttrList.name)
  1796. }
  1797. inline std::string* NameAttrList::mutable_name() {
  1798. std::string* _s = _internal_mutable_name();
  1799. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NameAttrList.name)
  1800. return _s;
  1801. }
  1802. inline const std::string& NameAttrList::_internal_name() const {
  1803. return name_.Get();
  1804. }
  1805. inline void NameAttrList::_internal_set_name(const std::string& value) {
  1806. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1807. }
  1808. inline std::string* NameAttrList::_internal_mutable_name() {
  1809. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1810. }
  1811. inline std::string* NameAttrList::release_name() {
  1812. // @@protoc_insertion_point(field_release:opencv_tensorflow.NameAttrList.name)
  1813. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1814. }
  1815. inline void NameAttrList::set_allocated_name(std::string* name) {
  1816. if (name != nullptr) {
  1817. } else {
  1818. }
  1819. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1820. GetArenaForAllocation());
  1821. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1822. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1823. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1824. }
  1825. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1826. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NameAttrList.name)
  1827. }
  1828. // map<string, .opencv_tensorflow.AttrValue> attr = 2;
  1829. inline int NameAttrList::_internal_attr_size() const {
  1830. return attr_.size();
  1831. }
  1832. inline int NameAttrList::attr_size() const {
  1833. return _internal_attr_size();
  1834. }
  1835. inline void NameAttrList::clear_attr() {
  1836. attr_.Clear();
  1837. }
  1838. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  1839. NameAttrList::_internal_attr() const {
  1840. return attr_.GetMap();
  1841. }
  1842. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
  1843. NameAttrList::attr() const {
  1844. // @@protoc_insertion_point(field_map:opencv_tensorflow.NameAttrList.attr)
  1845. return _internal_attr();
  1846. }
  1847. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  1848. NameAttrList::_internal_mutable_attr() {
  1849. return attr_.MutableMap();
  1850. }
  1851. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
  1852. NameAttrList::mutable_attr() {
  1853. // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NameAttrList.attr)
  1854. return _internal_mutable_attr();
  1855. }
  1856. #ifdef __GNUC__
  1857. #pragma GCC diagnostic pop
  1858. #endif // __GNUC__
  1859. // -------------------------------------------------------------------
  1860. // -------------------------------------------------------------------
  1861. // -------------------------------------------------------------------
  1862. // @@protoc_insertion_point(namespace_scope)
  1863. } // namespace opencv_tensorflow
  1864. // @@protoc_insertion_point(global_scope)
  1865. #include <google/protobuf/port_undef.inc>
  1866. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_2eproto