versions.pb.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: versions.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_versions_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_versions_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_versions_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_versions_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[1]
  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_versions_2eproto;
  51. namespace opencv_tensorflow {
  52. class VersionDef;
  53. struct VersionDefDefaultTypeInternal;
  54. extern VersionDefDefaultTypeInternal _VersionDef_default_instance_;
  55. } // namespace opencv_tensorflow
  56. PROTOBUF_NAMESPACE_OPEN
  57. template<> ::opencv_tensorflow::VersionDef* Arena::CreateMaybeMessage<::opencv_tensorflow::VersionDef>(Arena*);
  58. PROTOBUF_NAMESPACE_CLOSE
  59. namespace opencv_tensorflow {
  60. // ===================================================================
  61. class VersionDef final :
  62. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.VersionDef) */ {
  63. public:
  64. inline VersionDef() : VersionDef(nullptr) {}
  65. ~VersionDef() override;
  66. explicit constexpr VersionDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  67. VersionDef(const VersionDef& from);
  68. VersionDef(VersionDef&& from) noexcept
  69. : VersionDef() {
  70. *this = ::std::move(from);
  71. }
  72. inline VersionDef& operator=(const VersionDef& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. inline VersionDef& operator=(VersionDef&& from) noexcept {
  77. if (this == &from) return *this;
  78. if (GetOwningArena() == from.GetOwningArena()
  79. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  80. && GetOwningArena() != nullptr
  81. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  82. ) {
  83. InternalSwap(&from);
  84. } else {
  85. CopyFrom(from);
  86. }
  87. return *this;
  88. }
  89. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  90. return GetDescriptor();
  91. }
  92. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  93. return default_instance().GetMetadata().descriptor;
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  96. return default_instance().GetMetadata().reflection;
  97. }
  98. static const VersionDef& default_instance() {
  99. return *internal_default_instance();
  100. }
  101. static inline const VersionDef* internal_default_instance() {
  102. return reinterpret_cast<const VersionDef*>(
  103. &_VersionDef_default_instance_);
  104. }
  105. static constexpr int kIndexInFileMessages =
  106. 0;
  107. friend void swap(VersionDef& a, VersionDef& b) {
  108. a.Swap(&b);
  109. }
  110. inline void Swap(VersionDef* other) {
  111. if (other == this) return;
  112. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  113. if (GetOwningArena() != nullptr &&
  114. GetOwningArena() == other->GetOwningArena()) {
  115. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  116. if (GetOwningArena() == other->GetOwningArena()) {
  117. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  118. InternalSwap(other);
  119. } else {
  120. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  121. }
  122. }
  123. void UnsafeArenaSwap(VersionDef* other) {
  124. if (other == this) return;
  125. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  126. InternalSwap(other);
  127. }
  128. // implements Message ----------------------------------------------
  129. VersionDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  130. return CreateMaybeMessage<VersionDef>(arena);
  131. }
  132. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  133. void CopyFrom(const VersionDef& from);
  134. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  135. void MergeFrom(const VersionDef& from);
  136. private:
  137. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  138. public:
  139. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  140. bool IsInitialized() const final;
  141. size_t ByteSizeLong() const final;
  142. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  143. uint8_t* _InternalSerialize(
  144. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  145. int GetCachedSize() const final { return _cached_size_.Get(); }
  146. private:
  147. void SharedCtor();
  148. void SharedDtor();
  149. void SetCachedSize(int size) const final;
  150. void InternalSwap(VersionDef* other);
  151. private:
  152. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  153. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  154. return "opencv_tensorflow.VersionDef";
  155. }
  156. protected:
  157. explicit VersionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  158. bool is_message_owned = false);
  159. private:
  160. static void ArenaDtor(void* object);
  161. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  162. public:
  163. static const ClassData _class_data_;
  164. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  165. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  166. // nested types ----------------------------------------------------
  167. // accessors -------------------------------------------------------
  168. enum : int {
  169. kBadConsumersFieldNumber = 3,
  170. kProducerFieldNumber = 1,
  171. kMinConsumerFieldNumber = 2,
  172. };
  173. // repeated int32 bad_consumers = 3;
  174. int bad_consumers_size() const;
  175. private:
  176. int _internal_bad_consumers_size() const;
  177. public:
  178. void clear_bad_consumers();
  179. private:
  180. int32_t _internal_bad_consumers(int index) const;
  181. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  182. _internal_bad_consumers() const;
  183. void _internal_add_bad_consumers(int32_t value);
  184. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  185. _internal_mutable_bad_consumers();
  186. public:
  187. int32_t bad_consumers(int index) const;
  188. void set_bad_consumers(int index, int32_t value);
  189. void add_bad_consumers(int32_t value);
  190. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  191. bad_consumers() const;
  192. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  193. mutable_bad_consumers();
  194. // int32 producer = 1;
  195. void clear_producer();
  196. int32_t producer() const;
  197. void set_producer(int32_t value);
  198. private:
  199. int32_t _internal_producer() const;
  200. void _internal_set_producer(int32_t value);
  201. public:
  202. // int32 min_consumer = 2;
  203. void clear_min_consumer();
  204. int32_t min_consumer() const;
  205. void set_min_consumer(int32_t value);
  206. private:
  207. int32_t _internal_min_consumer() const;
  208. void _internal_set_min_consumer(int32_t value);
  209. public:
  210. // @@protoc_insertion_point(class_scope:opencv_tensorflow.VersionDef)
  211. private:
  212. class _Internal;
  213. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  214. typedef void InternalArenaConstructable_;
  215. typedef void DestructorSkippable_;
  216. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > bad_consumers_;
  217. mutable std::atomic<int> _bad_consumers_cached_byte_size_;
  218. int32_t producer_;
  219. int32_t min_consumer_;
  220. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  221. friend struct ::TableStruct_versions_2eproto;
  222. };
  223. // ===================================================================
  224. // ===================================================================
  225. #ifdef __GNUC__
  226. #pragma GCC diagnostic push
  227. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  228. #endif // __GNUC__
  229. // VersionDef
  230. // int32 producer = 1;
  231. inline void VersionDef::clear_producer() {
  232. producer_ = 0;
  233. }
  234. inline int32_t VersionDef::_internal_producer() const {
  235. return producer_;
  236. }
  237. inline int32_t VersionDef::producer() const {
  238. // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.producer)
  239. return _internal_producer();
  240. }
  241. inline void VersionDef::_internal_set_producer(int32_t value) {
  242. producer_ = value;
  243. }
  244. inline void VersionDef::set_producer(int32_t value) {
  245. _internal_set_producer(value);
  246. // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.producer)
  247. }
  248. // int32 min_consumer = 2;
  249. inline void VersionDef::clear_min_consumer() {
  250. min_consumer_ = 0;
  251. }
  252. inline int32_t VersionDef::_internal_min_consumer() const {
  253. return min_consumer_;
  254. }
  255. inline int32_t VersionDef::min_consumer() const {
  256. // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.min_consumer)
  257. return _internal_min_consumer();
  258. }
  259. inline void VersionDef::_internal_set_min_consumer(int32_t value) {
  260. min_consumer_ = value;
  261. }
  262. inline void VersionDef::set_min_consumer(int32_t value) {
  263. _internal_set_min_consumer(value);
  264. // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.min_consumer)
  265. }
  266. // repeated int32 bad_consumers = 3;
  267. inline int VersionDef::_internal_bad_consumers_size() const {
  268. return bad_consumers_.size();
  269. }
  270. inline int VersionDef::bad_consumers_size() const {
  271. return _internal_bad_consumers_size();
  272. }
  273. inline void VersionDef::clear_bad_consumers() {
  274. bad_consumers_.Clear();
  275. }
  276. inline int32_t VersionDef::_internal_bad_consumers(int index) const {
  277. return bad_consumers_.Get(index);
  278. }
  279. inline int32_t VersionDef::bad_consumers(int index) const {
  280. // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.bad_consumers)
  281. return _internal_bad_consumers(index);
  282. }
  283. inline void VersionDef::set_bad_consumers(int index, int32_t value) {
  284. bad_consumers_.Set(index, value);
  285. // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.bad_consumers)
  286. }
  287. inline void VersionDef::_internal_add_bad_consumers(int32_t value) {
  288. bad_consumers_.Add(value);
  289. }
  290. inline void VersionDef::add_bad_consumers(int32_t value) {
  291. _internal_add_bad_consumers(value);
  292. // @@protoc_insertion_point(field_add:opencv_tensorflow.VersionDef.bad_consumers)
  293. }
  294. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  295. VersionDef::_internal_bad_consumers() const {
  296. return bad_consumers_;
  297. }
  298. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  299. VersionDef::bad_consumers() const {
  300. // @@protoc_insertion_point(field_list:opencv_tensorflow.VersionDef.bad_consumers)
  301. return _internal_bad_consumers();
  302. }
  303. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  304. VersionDef::_internal_mutable_bad_consumers() {
  305. return &bad_consumers_;
  306. }
  307. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  308. VersionDef::mutable_bad_consumers() {
  309. // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.VersionDef.bad_consumers)
  310. return _internal_mutable_bad_consumers();
  311. }
  312. #ifdef __GNUC__
  313. #pragma GCC diagnostic pop
  314. #endif // __GNUC__
  315. // @@protoc_insertion_point(namespace_scope)
  316. } // namespace opencv_tensorflow
  317. // @@protoc_insertion_point(global_scope)
  318. #include <google/protobuf/port_undef.inc>
  319. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_versions_2eproto