tensor.pb.h 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: tensor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_tensor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_tensor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/unknown_field_set.h>
  30. #include "tensor_shape.pb.h"
  31. #include "types.pb.h"
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_tensor_2eproto
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct TableStruct_tensor_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const uint32_t offsets[];
  51. };
  52. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensor_2eproto;
  53. namespace opencv_tensorflow {
  54. class TensorProto;
  55. struct TensorProtoDefaultTypeInternal;
  56. extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
  57. } // namespace opencv_tensorflow
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> ::opencv_tensorflow::TensorProto* Arena::CreateMaybeMessage<::opencv_tensorflow::TensorProto>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. namespace opencv_tensorflow {
  62. // ===================================================================
  63. class TensorProto final :
  64. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorProto) */ {
  65. public:
  66. inline TensorProto() : TensorProto(nullptr) {}
  67. ~TensorProto() override;
  68. explicit constexpr TensorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  69. TensorProto(const TensorProto& from);
  70. TensorProto(TensorProto&& from) noexcept
  71. : TensorProto() {
  72. *this = ::std::move(from);
  73. }
  74. inline TensorProto& operator=(const TensorProto& from) {
  75. CopyFrom(from);
  76. return *this;
  77. }
  78. inline TensorProto& operator=(TensorProto&& from) noexcept {
  79. if (this == &from) return *this;
  80. if (GetOwningArena() == from.GetOwningArena()
  81. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  82. && GetOwningArena() != nullptr
  83. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  84. ) {
  85. InternalSwap(&from);
  86. } else {
  87. CopyFrom(from);
  88. }
  89. return *this;
  90. }
  91. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  92. return GetDescriptor();
  93. }
  94. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  95. return default_instance().GetMetadata().descriptor;
  96. }
  97. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  98. return default_instance().GetMetadata().reflection;
  99. }
  100. static const TensorProto& default_instance() {
  101. return *internal_default_instance();
  102. }
  103. static inline const TensorProto* internal_default_instance() {
  104. return reinterpret_cast<const TensorProto*>(
  105. &_TensorProto_default_instance_);
  106. }
  107. static constexpr int kIndexInFileMessages =
  108. 0;
  109. friend void swap(TensorProto& a, TensorProto& b) {
  110. a.Swap(&b);
  111. }
  112. inline void Swap(TensorProto* other) {
  113. if (other == this) return;
  114. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  115. if (GetOwningArena() != nullptr &&
  116. GetOwningArena() == other->GetOwningArena()) {
  117. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  118. if (GetOwningArena() == other->GetOwningArena()) {
  119. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  120. InternalSwap(other);
  121. } else {
  122. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  123. }
  124. }
  125. void UnsafeArenaSwap(TensorProto* other) {
  126. if (other == this) return;
  127. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  128. InternalSwap(other);
  129. }
  130. // implements Message ----------------------------------------------
  131. TensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  132. return CreateMaybeMessage<TensorProto>(arena);
  133. }
  134. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  135. void CopyFrom(const TensorProto& from);
  136. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  137. void MergeFrom(const TensorProto& from);
  138. private:
  139. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  140. public:
  141. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  142. bool IsInitialized() const final;
  143. size_t ByteSizeLong() const final;
  144. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  145. uint8_t* _InternalSerialize(
  146. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  147. int GetCachedSize() const final { return _cached_size_.Get(); }
  148. private:
  149. void SharedCtor();
  150. void SharedDtor();
  151. void SetCachedSize(int size) const final;
  152. void InternalSwap(TensorProto* other);
  153. private:
  154. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  155. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  156. return "opencv_tensorflow.TensorProto";
  157. }
  158. protected:
  159. explicit TensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  160. bool is_message_owned = false);
  161. private:
  162. static void ArenaDtor(void* object);
  163. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  164. public:
  165. static const ClassData _class_data_;
  166. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  167. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  168. // nested types ----------------------------------------------------
  169. // accessors -------------------------------------------------------
  170. enum : int {
  171. kFloatValFieldNumber = 5,
  172. kDoubleValFieldNumber = 6,
  173. kIntValFieldNumber = 7,
  174. kStringValFieldNumber = 8,
  175. kScomplexValFieldNumber = 9,
  176. kInt64ValFieldNumber = 10,
  177. kBoolValFieldNumber = 11,
  178. kDcomplexValFieldNumber = 12,
  179. kHalfValFieldNumber = 13,
  180. kTensorContentFieldNumber = 4,
  181. kTensorShapeFieldNumber = 2,
  182. kDtypeFieldNumber = 1,
  183. kVersionNumberFieldNumber = 3,
  184. };
  185. // repeated float float_val = 5 [packed = true];
  186. int float_val_size() const;
  187. private:
  188. int _internal_float_val_size() const;
  189. public:
  190. void clear_float_val();
  191. private:
  192. float _internal_float_val(int index) const;
  193. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  194. _internal_float_val() const;
  195. void _internal_add_float_val(float value);
  196. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  197. _internal_mutable_float_val();
  198. public:
  199. float float_val(int index) const;
  200. void set_float_val(int index, float value);
  201. void add_float_val(float value);
  202. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  203. float_val() const;
  204. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  205. mutable_float_val();
  206. // repeated double double_val = 6 [packed = true];
  207. int double_val_size() const;
  208. private:
  209. int _internal_double_val_size() const;
  210. public:
  211. void clear_double_val();
  212. private:
  213. double _internal_double_val(int index) const;
  214. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  215. _internal_double_val() const;
  216. void _internal_add_double_val(double value);
  217. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  218. _internal_mutable_double_val();
  219. public:
  220. double double_val(int index) const;
  221. void set_double_val(int index, double value);
  222. void add_double_val(double value);
  223. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  224. double_val() const;
  225. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  226. mutable_double_val();
  227. // repeated int32 int_val = 7 [packed = true];
  228. int int_val_size() const;
  229. private:
  230. int _internal_int_val_size() const;
  231. public:
  232. void clear_int_val();
  233. private:
  234. int32_t _internal_int_val(int index) const;
  235. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  236. _internal_int_val() const;
  237. void _internal_add_int_val(int32_t value);
  238. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  239. _internal_mutable_int_val();
  240. public:
  241. int32_t int_val(int index) const;
  242. void set_int_val(int index, int32_t value);
  243. void add_int_val(int32_t value);
  244. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  245. int_val() const;
  246. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  247. mutable_int_val();
  248. // repeated bytes string_val = 8;
  249. int string_val_size() const;
  250. private:
  251. int _internal_string_val_size() const;
  252. public:
  253. void clear_string_val();
  254. const std::string& string_val(int index) const;
  255. std::string* mutable_string_val(int index);
  256. void set_string_val(int index, const std::string& value);
  257. void set_string_val(int index, std::string&& value);
  258. void set_string_val(int index, const char* value);
  259. void set_string_val(int index, const void* value, size_t size);
  260. std::string* add_string_val();
  261. void add_string_val(const std::string& value);
  262. void add_string_val(std::string&& value);
  263. void add_string_val(const char* value);
  264. void add_string_val(const void* value, size_t size);
  265. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& string_val() const;
  266. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_string_val();
  267. private:
  268. const std::string& _internal_string_val(int index) const;
  269. std::string* _internal_add_string_val();
  270. public:
  271. // repeated float scomplex_val = 9 [packed = true];
  272. int scomplex_val_size() const;
  273. private:
  274. int _internal_scomplex_val_size() const;
  275. public:
  276. void clear_scomplex_val();
  277. private:
  278. float _internal_scomplex_val(int index) const;
  279. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  280. _internal_scomplex_val() const;
  281. void _internal_add_scomplex_val(float value);
  282. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  283. _internal_mutable_scomplex_val();
  284. public:
  285. float scomplex_val(int index) const;
  286. void set_scomplex_val(int index, float value);
  287. void add_scomplex_val(float value);
  288. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  289. scomplex_val() const;
  290. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  291. mutable_scomplex_val();
  292. // repeated int64 int64_val = 10 [packed = true];
  293. int int64_val_size() const;
  294. private:
  295. int _internal_int64_val_size() const;
  296. public:
  297. void clear_int64_val();
  298. private:
  299. int64_t _internal_int64_val(int index) const;
  300. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  301. _internal_int64_val() const;
  302. void _internal_add_int64_val(int64_t value);
  303. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  304. _internal_mutable_int64_val();
  305. public:
  306. int64_t int64_val(int index) const;
  307. void set_int64_val(int index, int64_t value);
  308. void add_int64_val(int64_t value);
  309. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  310. int64_val() const;
  311. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  312. mutable_int64_val();
  313. // repeated bool bool_val = 11 [packed = true];
  314. int bool_val_size() const;
  315. private:
  316. int _internal_bool_val_size() const;
  317. public:
  318. void clear_bool_val();
  319. private:
  320. bool _internal_bool_val(int index) const;
  321. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  322. _internal_bool_val() const;
  323. void _internal_add_bool_val(bool value);
  324. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  325. _internal_mutable_bool_val();
  326. public:
  327. bool bool_val(int index) const;
  328. void set_bool_val(int index, bool value);
  329. void add_bool_val(bool value);
  330. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  331. bool_val() const;
  332. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  333. mutable_bool_val();
  334. // repeated double dcomplex_val = 12 [packed = true];
  335. int dcomplex_val_size() const;
  336. private:
  337. int _internal_dcomplex_val_size() const;
  338. public:
  339. void clear_dcomplex_val();
  340. private:
  341. double _internal_dcomplex_val(int index) const;
  342. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  343. _internal_dcomplex_val() const;
  344. void _internal_add_dcomplex_val(double value);
  345. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  346. _internal_mutable_dcomplex_val();
  347. public:
  348. double dcomplex_val(int index) const;
  349. void set_dcomplex_val(int index, double value);
  350. void add_dcomplex_val(double value);
  351. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  352. dcomplex_val() const;
  353. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  354. mutable_dcomplex_val();
  355. // repeated int32 half_val = 13 [packed = true];
  356. int half_val_size() const;
  357. private:
  358. int _internal_half_val_size() const;
  359. public:
  360. void clear_half_val();
  361. private:
  362. int32_t _internal_half_val(int index) const;
  363. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  364. _internal_half_val() const;
  365. void _internal_add_half_val(int32_t value);
  366. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  367. _internal_mutable_half_val();
  368. public:
  369. int32_t half_val(int index) const;
  370. void set_half_val(int index, int32_t value);
  371. void add_half_val(int32_t value);
  372. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  373. half_val() const;
  374. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  375. mutable_half_val();
  376. // bytes tensor_content = 4;
  377. void clear_tensor_content();
  378. const std::string& tensor_content() const;
  379. template <typename ArgT0 = const std::string&, typename... ArgT>
  380. void set_tensor_content(ArgT0&& arg0, ArgT... args);
  381. std::string* mutable_tensor_content();
  382. PROTOBUF_NODISCARD std::string* release_tensor_content();
  383. void set_allocated_tensor_content(std::string* tensor_content);
  384. private:
  385. const std::string& _internal_tensor_content() const;
  386. inline PROTOBUF_ALWAYS_INLINE void _internal_set_tensor_content(const std::string& value);
  387. std::string* _internal_mutable_tensor_content();
  388. public:
  389. // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
  390. bool has_tensor_shape() const;
  391. private:
  392. bool _internal_has_tensor_shape() const;
  393. public:
  394. void clear_tensor_shape();
  395. const ::opencv_tensorflow::TensorShapeProto& tensor_shape() const;
  396. PROTOBUF_NODISCARD ::opencv_tensorflow::TensorShapeProto* release_tensor_shape();
  397. ::opencv_tensorflow::TensorShapeProto* mutable_tensor_shape();
  398. void set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape);
  399. private:
  400. const ::opencv_tensorflow::TensorShapeProto& _internal_tensor_shape() const;
  401. ::opencv_tensorflow::TensorShapeProto* _internal_mutable_tensor_shape();
  402. public:
  403. void unsafe_arena_set_allocated_tensor_shape(
  404. ::opencv_tensorflow::TensorShapeProto* tensor_shape);
  405. ::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
  406. // .opencv_tensorflow.DataType dtype = 1;
  407. void clear_dtype();
  408. ::opencv_tensorflow::DataType dtype() const;
  409. void set_dtype(::opencv_tensorflow::DataType value);
  410. private:
  411. ::opencv_tensorflow::DataType _internal_dtype() const;
  412. void _internal_set_dtype(::opencv_tensorflow::DataType value);
  413. public:
  414. // int32 version_number = 3;
  415. void clear_version_number();
  416. int32_t version_number() const;
  417. void set_version_number(int32_t value);
  418. private:
  419. int32_t _internal_version_number() const;
  420. void _internal_set_version_number(int32_t value);
  421. public:
  422. // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorProto)
  423. private:
  424. class _Internal;
  425. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  426. typedef void InternalArenaConstructable_;
  427. typedef void DestructorSkippable_;
  428. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_val_;
  429. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_val_;
  430. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > int_val_;
  431. mutable std::atomic<int> _int_val_cached_byte_size_;
  432. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> string_val_;
  433. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scomplex_val_;
  434. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > int64_val_;
  435. mutable std::atomic<int> _int64_val_cached_byte_size_;
  436. ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > bool_val_;
  437. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > dcomplex_val_;
  438. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > half_val_;
  439. mutable std::atomic<int> _half_val_cached_byte_size_;
  440. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tensor_content_;
  441. ::opencv_tensorflow::TensorShapeProto* tensor_shape_;
  442. int dtype_;
  443. int32_t version_number_;
  444. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  445. friend struct ::TableStruct_tensor_2eproto;
  446. };
  447. // ===================================================================
  448. // ===================================================================
  449. #ifdef __GNUC__
  450. #pragma GCC diagnostic push
  451. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  452. #endif // __GNUC__
  453. // TensorProto
  454. // .opencv_tensorflow.DataType dtype = 1;
  455. inline void TensorProto::clear_dtype() {
  456. dtype_ = 0;
  457. }
  458. inline ::opencv_tensorflow::DataType TensorProto::_internal_dtype() const {
  459. return static_cast< ::opencv_tensorflow::DataType >(dtype_);
  460. }
  461. inline ::opencv_tensorflow::DataType TensorProto::dtype() const {
  462. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dtype)
  463. return _internal_dtype();
  464. }
  465. inline void TensorProto::_internal_set_dtype(::opencv_tensorflow::DataType value) {
  466. dtype_ = value;
  467. }
  468. inline void TensorProto::set_dtype(::opencv_tensorflow::DataType value) {
  469. _internal_set_dtype(value);
  470. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dtype)
  471. }
  472. // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
  473. inline bool TensorProto::_internal_has_tensor_shape() const {
  474. return this != internal_default_instance() && tensor_shape_ != nullptr;
  475. }
  476. inline bool TensorProto::has_tensor_shape() const {
  477. return _internal_has_tensor_shape();
  478. }
  479. inline const ::opencv_tensorflow::TensorShapeProto& TensorProto::_internal_tensor_shape() const {
  480. const ::opencv_tensorflow::TensorShapeProto* p = tensor_shape_;
  481. return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::TensorShapeProto&>(
  482. ::opencv_tensorflow::_TensorShapeProto_default_instance_);
  483. }
  484. inline const ::opencv_tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
  485. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_shape)
  486. return _internal_tensor_shape();
  487. }
  488. inline void TensorProto::unsafe_arena_set_allocated_tensor_shape(
  489. ::opencv_tensorflow::TensorShapeProto* tensor_shape) {
  490. if (GetArenaForAllocation() == nullptr) {
  491. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_shape_);
  492. }
  493. tensor_shape_ = tensor_shape;
  494. if (tensor_shape) {
  495. } else {
  496. }
  497. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorProto.tensor_shape)
  498. }
  499. inline ::opencv_tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
  500. ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
  501. tensor_shape_ = nullptr;
  502. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  503. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  504. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  505. if (GetArenaForAllocation() == nullptr) { delete old; }
  506. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  507. if (GetArenaForAllocation() != nullptr) {
  508. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  509. }
  510. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  511. return temp;
  512. }
  513. inline ::opencv_tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() {
  514. // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_shape)
  515. ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
  516. tensor_shape_ = nullptr;
  517. return temp;
  518. }
  519. inline ::opencv_tensorflow::TensorShapeProto* TensorProto::_internal_mutable_tensor_shape() {
  520. if (tensor_shape_ == nullptr) {
  521. auto* p = CreateMaybeMessage<::opencv_tensorflow::TensorShapeProto>(GetArenaForAllocation());
  522. tensor_shape_ = p;
  523. }
  524. return tensor_shape_;
  525. }
  526. inline ::opencv_tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
  527. ::opencv_tensorflow::TensorShapeProto* _msg = _internal_mutable_tensor_shape();
  528. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_shape)
  529. return _msg;
  530. }
  531. inline void TensorProto::set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape) {
  532. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  533. if (message_arena == nullptr) {
  534. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_shape_);
  535. }
  536. if (tensor_shape) {
  537. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  538. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  539. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  540. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_shape));
  541. if (message_arena != submessage_arena) {
  542. tensor_shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  543. message_arena, tensor_shape, submessage_arena);
  544. }
  545. } else {
  546. }
  547. tensor_shape_ = tensor_shape;
  548. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_shape)
  549. }
  550. // int32 version_number = 3;
  551. inline void TensorProto::clear_version_number() {
  552. version_number_ = 0;
  553. }
  554. inline int32_t TensorProto::_internal_version_number() const {
  555. return version_number_;
  556. }
  557. inline int32_t TensorProto::version_number() const {
  558. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.version_number)
  559. return _internal_version_number();
  560. }
  561. inline void TensorProto::_internal_set_version_number(int32_t value) {
  562. version_number_ = value;
  563. }
  564. inline void TensorProto::set_version_number(int32_t value) {
  565. _internal_set_version_number(value);
  566. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.version_number)
  567. }
  568. // bytes tensor_content = 4;
  569. inline void TensorProto::clear_tensor_content() {
  570. tensor_content_.ClearToEmpty();
  571. }
  572. inline const std::string& TensorProto::tensor_content() const {
  573. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_content)
  574. return _internal_tensor_content();
  575. }
  576. template <typename ArgT0, typename... ArgT>
  577. inline PROTOBUF_ALWAYS_INLINE
  578. void TensorProto::set_tensor_content(ArgT0&& arg0, ArgT... args) {
  579. tensor_content_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  580. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.tensor_content)
  581. }
  582. inline std::string* TensorProto::mutable_tensor_content() {
  583. std::string* _s = _internal_mutable_tensor_content();
  584. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_content)
  585. return _s;
  586. }
  587. inline const std::string& TensorProto::_internal_tensor_content() const {
  588. return tensor_content_.Get();
  589. }
  590. inline void TensorProto::_internal_set_tensor_content(const std::string& value) {
  591. tensor_content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  592. }
  593. inline std::string* TensorProto::_internal_mutable_tensor_content() {
  594. return tensor_content_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  595. }
  596. inline std::string* TensorProto::release_tensor_content() {
  597. // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_content)
  598. return tensor_content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  599. }
  600. inline void TensorProto::set_allocated_tensor_content(std::string* tensor_content) {
  601. if (tensor_content != nullptr) {
  602. } else {
  603. }
  604. tensor_content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tensor_content,
  605. GetArenaForAllocation());
  606. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  607. if (tensor_content_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  608. tensor_content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  609. }
  610. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  611. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_content)
  612. }
  613. // repeated int32 half_val = 13 [packed = true];
  614. inline int TensorProto::_internal_half_val_size() const {
  615. return half_val_.size();
  616. }
  617. inline int TensorProto::half_val_size() const {
  618. return _internal_half_val_size();
  619. }
  620. inline void TensorProto::clear_half_val() {
  621. half_val_.Clear();
  622. }
  623. inline int32_t TensorProto::_internal_half_val(int index) const {
  624. return half_val_.Get(index);
  625. }
  626. inline int32_t TensorProto::half_val(int index) const {
  627. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.half_val)
  628. return _internal_half_val(index);
  629. }
  630. inline void TensorProto::set_half_val(int index, int32_t value) {
  631. half_val_.Set(index, value);
  632. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.half_val)
  633. }
  634. inline void TensorProto::_internal_add_half_val(int32_t value) {
  635. half_val_.Add(value);
  636. }
  637. inline void TensorProto::add_half_val(int32_t value) {
  638. _internal_add_half_val(value);
  639. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.half_val)
  640. }
  641. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  642. TensorProto::_internal_half_val() const {
  643. return half_val_;
  644. }
  645. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  646. TensorProto::half_val() const {
  647. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.half_val)
  648. return _internal_half_val();
  649. }
  650. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  651. TensorProto::_internal_mutable_half_val() {
  652. return &half_val_;
  653. }
  654. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  655. TensorProto::mutable_half_val() {
  656. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.half_val)
  657. return _internal_mutable_half_val();
  658. }
  659. // repeated float float_val = 5 [packed = true];
  660. inline int TensorProto::_internal_float_val_size() const {
  661. return float_val_.size();
  662. }
  663. inline int TensorProto::float_val_size() const {
  664. return _internal_float_val_size();
  665. }
  666. inline void TensorProto::clear_float_val() {
  667. float_val_.Clear();
  668. }
  669. inline float TensorProto::_internal_float_val(int index) const {
  670. return float_val_.Get(index);
  671. }
  672. inline float TensorProto::float_val(int index) const {
  673. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.float_val)
  674. return _internal_float_val(index);
  675. }
  676. inline void TensorProto::set_float_val(int index, float value) {
  677. float_val_.Set(index, value);
  678. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.float_val)
  679. }
  680. inline void TensorProto::_internal_add_float_val(float value) {
  681. float_val_.Add(value);
  682. }
  683. inline void TensorProto::add_float_val(float value) {
  684. _internal_add_float_val(value);
  685. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.float_val)
  686. }
  687. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  688. TensorProto::_internal_float_val() const {
  689. return float_val_;
  690. }
  691. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  692. TensorProto::float_val() const {
  693. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.float_val)
  694. return _internal_float_val();
  695. }
  696. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  697. TensorProto::_internal_mutable_float_val() {
  698. return &float_val_;
  699. }
  700. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  701. TensorProto::mutable_float_val() {
  702. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.float_val)
  703. return _internal_mutable_float_val();
  704. }
  705. // repeated double double_val = 6 [packed = true];
  706. inline int TensorProto::_internal_double_val_size() const {
  707. return double_val_.size();
  708. }
  709. inline int TensorProto::double_val_size() const {
  710. return _internal_double_val_size();
  711. }
  712. inline void TensorProto::clear_double_val() {
  713. double_val_.Clear();
  714. }
  715. inline double TensorProto::_internal_double_val(int index) const {
  716. return double_val_.Get(index);
  717. }
  718. inline double TensorProto::double_val(int index) const {
  719. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.double_val)
  720. return _internal_double_val(index);
  721. }
  722. inline void TensorProto::set_double_val(int index, double value) {
  723. double_val_.Set(index, value);
  724. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.double_val)
  725. }
  726. inline void TensorProto::_internal_add_double_val(double value) {
  727. double_val_.Add(value);
  728. }
  729. inline void TensorProto::add_double_val(double value) {
  730. _internal_add_double_val(value);
  731. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.double_val)
  732. }
  733. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  734. TensorProto::_internal_double_val() const {
  735. return double_val_;
  736. }
  737. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  738. TensorProto::double_val() const {
  739. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.double_val)
  740. return _internal_double_val();
  741. }
  742. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  743. TensorProto::_internal_mutable_double_val() {
  744. return &double_val_;
  745. }
  746. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  747. TensorProto::mutable_double_val() {
  748. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.double_val)
  749. return _internal_mutable_double_val();
  750. }
  751. // repeated int32 int_val = 7 [packed = true];
  752. inline int TensorProto::_internal_int_val_size() const {
  753. return int_val_.size();
  754. }
  755. inline int TensorProto::int_val_size() const {
  756. return _internal_int_val_size();
  757. }
  758. inline void TensorProto::clear_int_val() {
  759. int_val_.Clear();
  760. }
  761. inline int32_t TensorProto::_internal_int_val(int index) const {
  762. return int_val_.Get(index);
  763. }
  764. inline int32_t TensorProto::int_val(int index) const {
  765. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int_val)
  766. return _internal_int_val(index);
  767. }
  768. inline void TensorProto::set_int_val(int index, int32_t value) {
  769. int_val_.Set(index, value);
  770. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int_val)
  771. }
  772. inline void TensorProto::_internal_add_int_val(int32_t value) {
  773. int_val_.Add(value);
  774. }
  775. inline void TensorProto::add_int_val(int32_t value) {
  776. _internal_add_int_val(value);
  777. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int_val)
  778. }
  779. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  780. TensorProto::_internal_int_val() const {
  781. return int_val_;
  782. }
  783. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  784. TensorProto::int_val() const {
  785. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int_val)
  786. return _internal_int_val();
  787. }
  788. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  789. TensorProto::_internal_mutable_int_val() {
  790. return &int_val_;
  791. }
  792. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  793. TensorProto::mutable_int_val() {
  794. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int_val)
  795. return _internal_mutable_int_val();
  796. }
  797. // repeated bytes string_val = 8;
  798. inline int TensorProto::_internal_string_val_size() const {
  799. return string_val_.size();
  800. }
  801. inline int TensorProto::string_val_size() const {
  802. return _internal_string_val_size();
  803. }
  804. inline void TensorProto::clear_string_val() {
  805. string_val_.Clear();
  806. }
  807. inline std::string* TensorProto::add_string_val() {
  808. std::string* _s = _internal_add_string_val();
  809. // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.TensorProto.string_val)
  810. return _s;
  811. }
  812. inline const std::string& TensorProto::_internal_string_val(int index) const {
  813. return string_val_.Get(index);
  814. }
  815. inline const std::string& TensorProto::string_val(int index) const {
  816. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.string_val)
  817. return _internal_string_val(index);
  818. }
  819. inline std::string* TensorProto::mutable_string_val(int index) {
  820. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.string_val)
  821. return string_val_.Mutable(index);
  822. }
  823. inline void TensorProto::set_string_val(int index, const std::string& value) {
  824. string_val_.Mutable(index)->assign(value);
  825. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
  826. }
  827. inline void TensorProto::set_string_val(int index, std::string&& value) {
  828. string_val_.Mutable(index)->assign(std::move(value));
  829. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
  830. }
  831. inline void TensorProto::set_string_val(int index, const char* value) {
  832. GOOGLE_DCHECK(value != nullptr);
  833. string_val_.Mutable(index)->assign(value);
  834. // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorProto.string_val)
  835. }
  836. inline void TensorProto::set_string_val(int index, const void* value, size_t size) {
  837. string_val_.Mutable(index)->assign(
  838. reinterpret_cast<const char*>(value), size);
  839. // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorProto.string_val)
  840. }
  841. inline std::string* TensorProto::_internal_add_string_val() {
  842. return string_val_.Add();
  843. }
  844. inline void TensorProto::add_string_val(const std::string& value) {
  845. string_val_.Add()->assign(value);
  846. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
  847. }
  848. inline void TensorProto::add_string_val(std::string&& value) {
  849. string_val_.Add(std::move(value));
  850. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
  851. }
  852. inline void TensorProto::add_string_val(const char* value) {
  853. GOOGLE_DCHECK(value != nullptr);
  854. string_val_.Add()->assign(value);
  855. // @@protoc_insertion_point(field_add_char:opencv_tensorflow.TensorProto.string_val)
  856. }
  857. inline void TensorProto::add_string_val(const void* value, size_t size) {
  858. string_val_.Add()->assign(reinterpret_cast<const char*>(value), size);
  859. // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.TensorProto.string_val)
  860. }
  861. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  862. TensorProto::string_val() const {
  863. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.string_val)
  864. return string_val_;
  865. }
  866. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  867. TensorProto::mutable_string_val() {
  868. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.string_val)
  869. return &string_val_;
  870. }
  871. // repeated float scomplex_val = 9 [packed = true];
  872. inline int TensorProto::_internal_scomplex_val_size() const {
  873. return scomplex_val_.size();
  874. }
  875. inline int TensorProto::scomplex_val_size() const {
  876. return _internal_scomplex_val_size();
  877. }
  878. inline void TensorProto::clear_scomplex_val() {
  879. scomplex_val_.Clear();
  880. }
  881. inline float TensorProto::_internal_scomplex_val(int index) const {
  882. return scomplex_val_.Get(index);
  883. }
  884. inline float TensorProto::scomplex_val(int index) const {
  885. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.scomplex_val)
  886. return _internal_scomplex_val(index);
  887. }
  888. inline void TensorProto::set_scomplex_val(int index, float value) {
  889. scomplex_val_.Set(index, value);
  890. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.scomplex_val)
  891. }
  892. inline void TensorProto::_internal_add_scomplex_val(float value) {
  893. scomplex_val_.Add(value);
  894. }
  895. inline void TensorProto::add_scomplex_val(float value) {
  896. _internal_add_scomplex_val(value);
  897. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.scomplex_val)
  898. }
  899. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  900. TensorProto::_internal_scomplex_val() const {
  901. return scomplex_val_;
  902. }
  903. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  904. TensorProto::scomplex_val() const {
  905. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.scomplex_val)
  906. return _internal_scomplex_val();
  907. }
  908. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  909. TensorProto::_internal_mutable_scomplex_val() {
  910. return &scomplex_val_;
  911. }
  912. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  913. TensorProto::mutable_scomplex_val() {
  914. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.scomplex_val)
  915. return _internal_mutable_scomplex_val();
  916. }
  917. // repeated int64 int64_val = 10 [packed = true];
  918. inline int TensorProto::_internal_int64_val_size() const {
  919. return int64_val_.size();
  920. }
  921. inline int TensorProto::int64_val_size() const {
  922. return _internal_int64_val_size();
  923. }
  924. inline void TensorProto::clear_int64_val() {
  925. int64_val_.Clear();
  926. }
  927. inline int64_t TensorProto::_internal_int64_val(int index) const {
  928. return int64_val_.Get(index);
  929. }
  930. inline int64_t TensorProto::int64_val(int index) const {
  931. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int64_val)
  932. return _internal_int64_val(index);
  933. }
  934. inline void TensorProto::set_int64_val(int index, int64_t value) {
  935. int64_val_.Set(index, value);
  936. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int64_val)
  937. }
  938. inline void TensorProto::_internal_add_int64_val(int64_t value) {
  939. int64_val_.Add(value);
  940. }
  941. inline void TensorProto::add_int64_val(int64_t value) {
  942. _internal_add_int64_val(value);
  943. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int64_val)
  944. }
  945. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  946. TensorProto::_internal_int64_val() const {
  947. return int64_val_;
  948. }
  949. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  950. TensorProto::int64_val() const {
  951. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int64_val)
  952. return _internal_int64_val();
  953. }
  954. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  955. TensorProto::_internal_mutable_int64_val() {
  956. return &int64_val_;
  957. }
  958. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  959. TensorProto::mutable_int64_val() {
  960. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int64_val)
  961. return _internal_mutable_int64_val();
  962. }
  963. // repeated bool bool_val = 11 [packed = true];
  964. inline int TensorProto::_internal_bool_val_size() const {
  965. return bool_val_.size();
  966. }
  967. inline int TensorProto::bool_val_size() const {
  968. return _internal_bool_val_size();
  969. }
  970. inline void TensorProto::clear_bool_val() {
  971. bool_val_.Clear();
  972. }
  973. inline bool TensorProto::_internal_bool_val(int index) const {
  974. return bool_val_.Get(index);
  975. }
  976. inline bool TensorProto::bool_val(int index) const {
  977. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.bool_val)
  978. return _internal_bool_val(index);
  979. }
  980. inline void TensorProto::set_bool_val(int index, bool value) {
  981. bool_val_.Set(index, value);
  982. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.bool_val)
  983. }
  984. inline void TensorProto::_internal_add_bool_val(bool value) {
  985. bool_val_.Add(value);
  986. }
  987. inline void TensorProto::add_bool_val(bool value) {
  988. _internal_add_bool_val(value);
  989. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.bool_val)
  990. }
  991. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  992. TensorProto::_internal_bool_val() const {
  993. return bool_val_;
  994. }
  995. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
  996. TensorProto::bool_val() const {
  997. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.bool_val)
  998. return _internal_bool_val();
  999. }
  1000. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  1001. TensorProto::_internal_mutable_bool_val() {
  1002. return &bool_val_;
  1003. }
  1004. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
  1005. TensorProto::mutable_bool_val() {
  1006. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.bool_val)
  1007. return _internal_mutable_bool_val();
  1008. }
  1009. // repeated double dcomplex_val = 12 [packed = true];
  1010. inline int TensorProto::_internal_dcomplex_val_size() const {
  1011. return dcomplex_val_.size();
  1012. }
  1013. inline int TensorProto::dcomplex_val_size() const {
  1014. return _internal_dcomplex_val_size();
  1015. }
  1016. inline void TensorProto::clear_dcomplex_val() {
  1017. dcomplex_val_.Clear();
  1018. }
  1019. inline double TensorProto::_internal_dcomplex_val(int index) const {
  1020. return dcomplex_val_.Get(index);
  1021. }
  1022. inline double TensorProto::dcomplex_val(int index) const {
  1023. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dcomplex_val)
  1024. return _internal_dcomplex_val(index);
  1025. }
  1026. inline void TensorProto::set_dcomplex_val(int index, double value) {
  1027. dcomplex_val_.Set(index, value);
  1028. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dcomplex_val)
  1029. }
  1030. inline void TensorProto::_internal_add_dcomplex_val(double value) {
  1031. dcomplex_val_.Add(value);
  1032. }
  1033. inline void TensorProto::add_dcomplex_val(double value) {
  1034. _internal_add_dcomplex_val(value);
  1035. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.dcomplex_val)
  1036. }
  1037. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  1038. TensorProto::_internal_dcomplex_val() const {
  1039. return dcomplex_val_;
  1040. }
  1041. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  1042. TensorProto::dcomplex_val() const {
  1043. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.dcomplex_val)
  1044. return _internal_dcomplex_val();
  1045. }
  1046. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  1047. TensorProto::_internal_mutable_dcomplex_val() {
  1048. return &dcomplex_val_;
  1049. }
  1050. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  1051. TensorProto::mutable_dcomplex_val() {
  1052. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.dcomplex_val)
  1053. return _internal_mutable_dcomplex_val();
  1054. }
  1055. #ifdef __GNUC__
  1056. #pragma GCC diagnostic pop
  1057. #endif // __GNUC__
  1058. // @@protoc_insertion_point(namespace_scope)
  1059. } // namespace opencv_tensorflow
  1060. // @@protoc_insertion_point(global_scope)
  1061. #include <google/protobuf/port_undef.inc>
  1062. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensor_2eproto