tensor_shape.pb.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: tensor_shape.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_tensor_5fshape_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_tensor_5fshape_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. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_tensor_5fshape_2eproto
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal {
  35. class AnyMetadata;
  36. } // namespace internal
  37. PROTOBUF_NAMESPACE_CLOSE
  38. // Internal implementation detail -- do not use these members.
  39. struct TableStruct_tensor_5fshape_2eproto {
  40. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  41. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  48. static const uint32_t offsets[];
  49. };
  50. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensor_5fshape_2eproto;
  51. namespace opencv_tensorflow {
  52. class TensorShapeProto;
  53. struct TensorShapeProtoDefaultTypeInternal;
  54. extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
  55. class TensorShapeProto_Dim;
  56. struct TensorShapeProto_DimDefaultTypeInternal;
  57. extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_;
  58. } // namespace opencv_tensorflow
  59. PROTOBUF_NAMESPACE_OPEN
  60. template<> ::opencv_tensorflow::TensorShapeProto* Arena::CreateMaybeMessage<::opencv_tensorflow::TensorShapeProto>(Arena*);
  61. template<> ::opencv_tensorflow::TensorShapeProto_Dim* Arena::CreateMaybeMessage<::opencv_tensorflow::TensorShapeProto_Dim>(Arena*);
  62. PROTOBUF_NAMESPACE_CLOSE
  63. namespace opencv_tensorflow {
  64. // ===================================================================
  65. class TensorShapeProto_Dim final :
  66. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto.Dim) */ {
  67. public:
  68. inline TensorShapeProto_Dim() : TensorShapeProto_Dim(nullptr) {}
  69. ~TensorShapeProto_Dim() override;
  70. explicit constexpr TensorShapeProto_Dim(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  71. TensorShapeProto_Dim(const TensorShapeProto_Dim& from);
  72. TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept
  73. : TensorShapeProto_Dim() {
  74. *this = ::std::move(from);
  75. }
  76. inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) {
  77. CopyFrom(from);
  78. return *this;
  79. }
  80. inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept {
  81. if (this == &from) return *this;
  82. if (GetOwningArena() == from.GetOwningArena()
  83. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  84. && GetOwningArena() != nullptr
  85. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  86. ) {
  87. InternalSwap(&from);
  88. } else {
  89. CopyFrom(from);
  90. }
  91. return *this;
  92. }
  93. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  94. return GetDescriptor();
  95. }
  96. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  97. return default_instance().GetMetadata().descriptor;
  98. }
  99. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  100. return default_instance().GetMetadata().reflection;
  101. }
  102. static const TensorShapeProto_Dim& default_instance() {
  103. return *internal_default_instance();
  104. }
  105. static inline const TensorShapeProto_Dim* internal_default_instance() {
  106. return reinterpret_cast<const TensorShapeProto_Dim*>(
  107. &_TensorShapeProto_Dim_default_instance_);
  108. }
  109. static constexpr int kIndexInFileMessages =
  110. 0;
  111. friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) {
  112. a.Swap(&b);
  113. }
  114. inline void Swap(TensorShapeProto_Dim* other) {
  115. if (other == this) return;
  116. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  117. if (GetOwningArena() != nullptr &&
  118. GetOwningArena() == other->GetOwningArena()) {
  119. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  120. if (GetOwningArena() == other->GetOwningArena()) {
  121. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  122. InternalSwap(other);
  123. } else {
  124. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  125. }
  126. }
  127. void UnsafeArenaSwap(TensorShapeProto_Dim* other) {
  128. if (other == this) return;
  129. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  130. InternalSwap(other);
  131. }
  132. // implements Message ----------------------------------------------
  133. TensorShapeProto_Dim* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  134. return CreateMaybeMessage<TensorShapeProto_Dim>(arena);
  135. }
  136. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  137. void CopyFrom(const TensorShapeProto_Dim& from);
  138. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  139. void MergeFrom(const TensorShapeProto_Dim& from);
  140. private:
  141. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  142. public:
  143. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  144. bool IsInitialized() const final;
  145. size_t ByteSizeLong() const final;
  146. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  147. uint8_t* _InternalSerialize(
  148. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  149. int GetCachedSize() const final { return _cached_size_.Get(); }
  150. private:
  151. void SharedCtor();
  152. void SharedDtor();
  153. void SetCachedSize(int size) const final;
  154. void InternalSwap(TensorShapeProto_Dim* other);
  155. private:
  156. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  157. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  158. return "opencv_tensorflow.TensorShapeProto.Dim";
  159. }
  160. protected:
  161. explicit TensorShapeProto_Dim(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  162. bool is_message_owned = false);
  163. private:
  164. static void ArenaDtor(void* object);
  165. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  166. public:
  167. static const ClassData _class_data_;
  168. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  169. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  170. // nested types ----------------------------------------------------
  171. // accessors -------------------------------------------------------
  172. enum : int {
  173. kNameFieldNumber = 2,
  174. kSizeFieldNumber = 1,
  175. };
  176. // string name = 2;
  177. void clear_name();
  178. const std::string& name() const;
  179. template <typename ArgT0 = const std::string&, typename... ArgT>
  180. void set_name(ArgT0&& arg0, ArgT... args);
  181. std::string* mutable_name();
  182. PROTOBUF_NODISCARD std::string* release_name();
  183. void set_allocated_name(std::string* name);
  184. private:
  185. const std::string& _internal_name() const;
  186. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  187. std::string* _internal_mutable_name();
  188. public:
  189. // int64 size = 1;
  190. void clear_size();
  191. int64_t size() const;
  192. void set_size(int64_t value);
  193. private:
  194. int64_t _internal_size() const;
  195. void _internal_set_size(int64_t value);
  196. public:
  197. // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto.Dim)
  198. private:
  199. class _Internal;
  200. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  201. typedef void InternalArenaConstructable_;
  202. typedef void DestructorSkippable_;
  203. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  204. int64_t size_;
  205. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  206. friend struct ::TableStruct_tensor_5fshape_2eproto;
  207. };
  208. // -------------------------------------------------------------------
  209. class TensorShapeProto final :
  210. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto) */ {
  211. public:
  212. inline TensorShapeProto() : TensorShapeProto(nullptr) {}
  213. ~TensorShapeProto() override;
  214. explicit constexpr TensorShapeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  215. TensorShapeProto(const TensorShapeProto& from);
  216. TensorShapeProto(TensorShapeProto&& from) noexcept
  217. : TensorShapeProto() {
  218. *this = ::std::move(from);
  219. }
  220. inline TensorShapeProto& operator=(const TensorShapeProto& from) {
  221. CopyFrom(from);
  222. return *this;
  223. }
  224. inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {
  225. if (this == &from) return *this;
  226. if (GetOwningArena() == from.GetOwningArena()
  227. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  228. && GetOwningArena() != nullptr
  229. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  230. ) {
  231. InternalSwap(&from);
  232. } else {
  233. CopyFrom(from);
  234. }
  235. return *this;
  236. }
  237. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  238. return GetDescriptor();
  239. }
  240. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  241. return default_instance().GetMetadata().descriptor;
  242. }
  243. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  244. return default_instance().GetMetadata().reflection;
  245. }
  246. static const TensorShapeProto& default_instance() {
  247. return *internal_default_instance();
  248. }
  249. static inline const TensorShapeProto* internal_default_instance() {
  250. return reinterpret_cast<const TensorShapeProto*>(
  251. &_TensorShapeProto_default_instance_);
  252. }
  253. static constexpr int kIndexInFileMessages =
  254. 1;
  255. friend void swap(TensorShapeProto& a, TensorShapeProto& b) {
  256. a.Swap(&b);
  257. }
  258. inline void Swap(TensorShapeProto* other) {
  259. if (other == this) return;
  260. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  261. if (GetOwningArena() != nullptr &&
  262. GetOwningArena() == other->GetOwningArena()) {
  263. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  264. if (GetOwningArena() == other->GetOwningArena()) {
  265. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  266. InternalSwap(other);
  267. } else {
  268. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  269. }
  270. }
  271. void UnsafeArenaSwap(TensorShapeProto* other) {
  272. if (other == this) return;
  273. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  274. InternalSwap(other);
  275. }
  276. // implements Message ----------------------------------------------
  277. TensorShapeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  278. return CreateMaybeMessage<TensorShapeProto>(arena);
  279. }
  280. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  281. void CopyFrom(const TensorShapeProto& from);
  282. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  283. void MergeFrom(const TensorShapeProto& from);
  284. private:
  285. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  286. public:
  287. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  288. bool IsInitialized() const final;
  289. size_t ByteSizeLong() const final;
  290. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  291. uint8_t* _InternalSerialize(
  292. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  293. int GetCachedSize() const final { return _cached_size_.Get(); }
  294. private:
  295. void SharedCtor();
  296. void SharedDtor();
  297. void SetCachedSize(int size) const final;
  298. void InternalSwap(TensorShapeProto* other);
  299. private:
  300. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  301. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  302. return "opencv_tensorflow.TensorShapeProto";
  303. }
  304. protected:
  305. explicit TensorShapeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  306. bool is_message_owned = false);
  307. private:
  308. static void ArenaDtor(void* object);
  309. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  310. public:
  311. static const ClassData _class_data_;
  312. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  313. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  314. // nested types ----------------------------------------------------
  315. typedef TensorShapeProto_Dim Dim;
  316. // accessors -------------------------------------------------------
  317. enum : int {
  318. kDimFieldNumber = 2,
  319. kUnknownRankFieldNumber = 3,
  320. };
  321. // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
  322. int dim_size() const;
  323. private:
  324. int _internal_dim_size() const;
  325. public:
  326. void clear_dim();
  327. ::opencv_tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
  328. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
  329. mutable_dim();
  330. private:
  331. const ::opencv_tensorflow::TensorShapeProto_Dim& _internal_dim(int index) const;
  332. ::opencv_tensorflow::TensorShapeProto_Dim* _internal_add_dim();
  333. public:
  334. const ::opencv_tensorflow::TensorShapeProto_Dim& dim(int index) const;
  335. ::opencv_tensorflow::TensorShapeProto_Dim* add_dim();
  336. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
  337. dim() const;
  338. // bool unknown_rank = 3;
  339. void clear_unknown_rank();
  340. bool unknown_rank() const;
  341. void set_unknown_rank(bool value);
  342. private:
  343. bool _internal_unknown_rank() const;
  344. void _internal_set_unknown_rank(bool value);
  345. public:
  346. // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto)
  347. private:
  348. class _Internal;
  349. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  350. typedef void InternalArenaConstructable_;
  351. typedef void DestructorSkippable_;
  352. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim > dim_;
  353. bool unknown_rank_;
  354. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  355. friend struct ::TableStruct_tensor_5fshape_2eproto;
  356. };
  357. // ===================================================================
  358. // ===================================================================
  359. #ifdef __GNUC__
  360. #pragma GCC diagnostic push
  361. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  362. #endif // __GNUC__
  363. // TensorShapeProto_Dim
  364. // int64 size = 1;
  365. inline void TensorShapeProto_Dim::clear_size() {
  366. size_ = int64_t{0};
  367. }
  368. inline int64_t TensorShapeProto_Dim::_internal_size() const {
  369. return size_;
  370. }
  371. inline int64_t TensorShapeProto_Dim::size() const {
  372. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.size)
  373. return _internal_size();
  374. }
  375. inline void TensorShapeProto_Dim::_internal_set_size(int64_t value) {
  376. size_ = value;
  377. }
  378. inline void TensorShapeProto_Dim::set_size(int64_t value) {
  379. _internal_set_size(value);
  380. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.size)
  381. }
  382. // string name = 2;
  383. inline void TensorShapeProto_Dim::clear_name() {
  384. name_.ClearToEmpty();
  385. }
  386. inline const std::string& TensorShapeProto_Dim::name() const {
  387. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.name)
  388. return _internal_name();
  389. }
  390. template <typename ArgT0, typename... ArgT>
  391. inline PROTOBUF_ALWAYS_INLINE
  392. void TensorShapeProto_Dim::set_name(ArgT0&& arg0, ArgT... args) {
  393. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  394. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.name)
  395. }
  396. inline std::string* TensorShapeProto_Dim::mutable_name() {
  397. std::string* _s = _internal_mutable_name();
  398. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.Dim.name)
  399. return _s;
  400. }
  401. inline const std::string& TensorShapeProto_Dim::_internal_name() const {
  402. return name_.Get();
  403. }
  404. inline void TensorShapeProto_Dim::_internal_set_name(const std::string& value) {
  405. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  406. }
  407. inline std::string* TensorShapeProto_Dim::_internal_mutable_name() {
  408. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  409. }
  410. inline std::string* TensorShapeProto_Dim::release_name() {
  411. // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorShapeProto.Dim.name)
  412. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  413. }
  414. inline void TensorShapeProto_Dim::set_allocated_name(std::string* name) {
  415. if (name != nullptr) {
  416. } else {
  417. }
  418. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  419. GetArenaForAllocation());
  420. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  421. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  422. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  423. }
  424. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  425. // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)
  426. }
  427. // -------------------------------------------------------------------
  428. // TensorShapeProto
  429. // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
  430. inline int TensorShapeProto::_internal_dim_size() const {
  431. return dim_.size();
  432. }
  433. inline int TensorShapeProto::dim_size() const {
  434. return _internal_dim_size();
  435. }
  436. inline void TensorShapeProto::clear_dim() {
  437. dim_.Clear();
  438. }
  439. inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
  440. // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.dim)
  441. return dim_.Mutable(index);
  442. }
  443. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
  444. TensorShapeProto::mutable_dim() {
  445. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorShapeProto.dim)
  446. return &dim_;
  447. }
  448. inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::_internal_dim(int index) const {
  449. return dim_.Get(index);
  450. }
  451. inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
  452. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.dim)
  453. return _internal_dim(index);
  454. }
  455. inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::_internal_add_dim() {
  456. return dim_.Add();
  457. }
  458. inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
  459. ::opencv_tensorflow::TensorShapeProto_Dim* _add = _internal_add_dim();
  460. // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorShapeProto.dim)
  461. return _add;
  462. }
  463. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
  464. TensorShapeProto::dim() const {
  465. // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorShapeProto.dim)
  466. return dim_;
  467. }
  468. // bool unknown_rank = 3;
  469. inline void TensorShapeProto::clear_unknown_rank() {
  470. unknown_rank_ = false;
  471. }
  472. inline bool TensorShapeProto::_internal_unknown_rank() const {
  473. return unknown_rank_;
  474. }
  475. inline bool TensorShapeProto::unknown_rank() const {
  476. // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.unknown_rank)
  477. return _internal_unknown_rank();
  478. }
  479. inline void TensorShapeProto::_internal_set_unknown_rank(bool value) {
  480. unknown_rank_ = value;
  481. }
  482. inline void TensorShapeProto::set_unknown_rank(bool value) {
  483. _internal_set_unknown_rank(value);
  484. // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.unknown_rank)
  485. }
  486. #ifdef __GNUC__
  487. #pragma GCC diagnostic pop
  488. #endif // __GNUC__
  489. // -------------------------------------------------------------------
  490. // @@protoc_insertion_point(namespace_scope)
  491. } // namespace opencv_tensorflow
  492. // @@protoc_insertion_point(global_scope)
  493. #include <google/protobuf/port_undef.inc>
  494. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensor_5fshape_2eproto