versions.pb.cc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: versions.proto
  3. #include "versions.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace opencv_tensorflow {
  16. constexpr VersionDef::VersionDef(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : bad_consumers_()
  19. , _bad_consumers_cached_byte_size_(0)
  20. , producer_(0)
  21. , min_consumer_(0){}
  22. struct VersionDefDefaultTypeInternal {
  23. constexpr VersionDefDefaultTypeInternal()
  24. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  25. ~VersionDefDefaultTypeInternal() {}
  26. union {
  27. VersionDef _instance;
  28. };
  29. };
  30. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VersionDefDefaultTypeInternal _VersionDef_default_instance_;
  31. } // namespace opencv_tensorflow
  32. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_versions_2eproto[1];
  33. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_versions_2eproto = nullptr;
  34. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_versions_2eproto = nullptr;
  35. const uint32_t TableStruct_versions_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  36. ~0u, // no _has_bits_
  37. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::VersionDef, _internal_metadata_),
  38. ~0u, // no _extensions_
  39. ~0u, // no _oneof_case_
  40. ~0u, // no _weak_field_map_
  41. ~0u, // no _inlined_string_donated_
  42. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::VersionDef, producer_),
  43. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::VersionDef, min_consumer_),
  44. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::VersionDef, bad_consumers_),
  45. };
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  47. { 0, -1, -1, sizeof(::opencv_tensorflow::VersionDef)},
  48. };
  49. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  50. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_VersionDef_default_instance_),
  51. };
  52. const char descriptor_table_protodef_versions_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  53. "\n\016versions.proto\022\021opencv_tensorflow\"K\n\nV"
  54. "ersionDef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consu"
  55. "mer\030\002 \001(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org."
  56. "tensorflow.frameworkB\016VersionsProtosP\001\370\001"
  57. "\001b\006proto3"
  58. ;
  59. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_versions_2eproto_once;
  60. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_versions_2eproto = {
  61. false, false, 169, descriptor_table_protodef_versions_2eproto, "versions.proto",
  62. &descriptor_table_versions_2eproto_once, nullptr, 0, 1,
  63. schemas, file_default_instances, TableStruct_versions_2eproto::offsets,
  64. file_level_metadata_versions_2eproto, file_level_enum_descriptors_versions_2eproto, file_level_service_descriptors_versions_2eproto,
  65. };
  66. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_versions_2eproto_getter() {
  67. return &descriptor_table_versions_2eproto;
  68. }
  69. // Force running AddDescriptors() at dynamic initialization time.
  70. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_versions_2eproto(&descriptor_table_versions_2eproto);
  71. namespace opencv_tensorflow {
  72. // ===================================================================
  73. class VersionDef::_Internal {
  74. public:
  75. };
  76. VersionDef::VersionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  77. bool is_message_owned)
  78. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  79. bad_consumers_(arena) {
  80. SharedCtor();
  81. if (!is_message_owned) {
  82. RegisterArenaDtor(arena);
  83. }
  84. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.VersionDef)
  85. }
  86. VersionDef::VersionDef(const VersionDef& from)
  87. : ::PROTOBUF_NAMESPACE_ID::Message(),
  88. bad_consumers_(from.bad_consumers_) {
  89. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  90. ::memcpy(&producer_, &from.producer_,
  91. static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) -
  92. reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));
  93. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.VersionDef)
  94. }
  95. inline void VersionDef::SharedCtor() {
  96. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  97. reinterpret_cast<char*>(&producer_) - reinterpret_cast<char*>(this)),
  98. 0, static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) -
  99. reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));
  100. }
  101. VersionDef::~VersionDef() {
  102. // @@protoc_insertion_point(destructor:opencv_tensorflow.VersionDef)
  103. if (GetArenaForAllocation() != nullptr) return;
  104. SharedDtor();
  105. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  106. }
  107. inline void VersionDef::SharedDtor() {
  108. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  109. }
  110. void VersionDef::ArenaDtor(void* object) {
  111. VersionDef* _this = reinterpret_cast< VersionDef* >(object);
  112. (void)_this;
  113. }
  114. void VersionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  115. }
  116. void VersionDef::SetCachedSize(int size) const {
  117. _cached_size_.Set(size);
  118. }
  119. void VersionDef::Clear() {
  120. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.VersionDef)
  121. uint32_t cached_has_bits = 0;
  122. // Prevent compiler warnings about cached_has_bits being unused
  123. (void) cached_has_bits;
  124. bad_consumers_.Clear();
  125. ::memset(&producer_, 0, static_cast<size_t>(
  126. reinterpret_cast<char*>(&min_consumer_) -
  127. reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));
  128. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  129. }
  130. const char* VersionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  131. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  132. while (!ctx->Done(&ptr)) {
  133. uint32_t tag;
  134. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  135. switch (tag >> 3) {
  136. // int32 producer = 1;
  137. case 1:
  138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  139. producer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  140. CHK_(ptr);
  141. } else
  142. goto handle_unusual;
  143. continue;
  144. // int32 min_consumer = 2;
  145. case 2:
  146. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  147. min_consumer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  148. CHK_(ptr);
  149. } else
  150. goto handle_unusual;
  151. continue;
  152. // repeated int32 bad_consumers = 3;
  153. case 3:
  154. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  155. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_bad_consumers(), ptr, ctx);
  156. CHK_(ptr);
  157. } else if (static_cast<uint8_t>(tag) == 24) {
  158. _internal_add_bad_consumers(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
  159. CHK_(ptr);
  160. } else
  161. goto handle_unusual;
  162. continue;
  163. default:
  164. goto handle_unusual;
  165. } // switch
  166. handle_unusual:
  167. if ((tag == 0) || ((tag & 7) == 4)) {
  168. CHK_(ptr);
  169. ctx->SetLastTag(tag);
  170. goto message_done;
  171. }
  172. ptr = UnknownFieldParse(
  173. tag,
  174. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  175. ptr, ctx);
  176. CHK_(ptr != nullptr);
  177. } // while
  178. message_done:
  179. return ptr;
  180. failure:
  181. ptr = nullptr;
  182. goto message_done;
  183. #undef CHK_
  184. }
  185. uint8_t* VersionDef::_InternalSerialize(
  186. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  187. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.VersionDef)
  188. uint32_t cached_has_bits = 0;
  189. (void) cached_has_bits;
  190. // int32 producer = 1;
  191. if (this->_internal_producer() != 0) {
  192. target = stream->EnsureSpace(target);
  193. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_producer(), target);
  194. }
  195. // int32 min_consumer = 2;
  196. if (this->_internal_min_consumer() != 0) {
  197. target = stream->EnsureSpace(target);
  198. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_min_consumer(), target);
  199. }
  200. // repeated int32 bad_consumers = 3;
  201. {
  202. int byte_size = _bad_consumers_cached_byte_size_.load(std::memory_order_relaxed);
  203. if (byte_size > 0) {
  204. target = stream->WriteInt32Packed(
  205. 3, _internal_bad_consumers(), byte_size, target);
  206. }
  207. }
  208. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  209. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  210. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  211. }
  212. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.VersionDef)
  213. return target;
  214. }
  215. size_t VersionDef::ByteSizeLong() const {
  216. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.VersionDef)
  217. size_t total_size = 0;
  218. uint32_t cached_has_bits = 0;
  219. // Prevent compiler warnings about cached_has_bits being unused
  220. (void) cached_has_bits;
  221. // repeated int32 bad_consumers = 3;
  222. {
  223. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  224. Int32Size(this->bad_consumers_);
  225. if (data_size > 0) {
  226. total_size += 1 +
  227. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  228. static_cast<int32_t>(data_size));
  229. }
  230. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  231. _bad_consumers_cached_byte_size_.store(cached_size,
  232. std::memory_order_relaxed);
  233. total_size += data_size;
  234. }
  235. // int32 producer = 1;
  236. if (this->_internal_producer() != 0) {
  237. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_producer());
  238. }
  239. // int32 min_consumer = 2;
  240. if (this->_internal_min_consumer() != 0) {
  241. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_min_consumer());
  242. }
  243. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  244. }
  245. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VersionDef::_class_data_ = {
  246. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  247. VersionDef::MergeImpl
  248. };
  249. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VersionDef::GetClassData() const { return &_class_data_; }
  250. void VersionDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  251. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  252. static_cast<VersionDef *>(to)->MergeFrom(
  253. static_cast<const VersionDef &>(from));
  254. }
  255. void VersionDef::MergeFrom(const VersionDef& from) {
  256. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.VersionDef)
  257. GOOGLE_DCHECK_NE(&from, this);
  258. uint32_t cached_has_bits = 0;
  259. (void) cached_has_bits;
  260. bad_consumers_.MergeFrom(from.bad_consumers_);
  261. if (from._internal_producer() != 0) {
  262. _internal_set_producer(from._internal_producer());
  263. }
  264. if (from._internal_min_consumer() != 0) {
  265. _internal_set_min_consumer(from._internal_min_consumer());
  266. }
  267. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  268. }
  269. void VersionDef::CopyFrom(const VersionDef& from) {
  270. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.VersionDef)
  271. if (&from == this) return;
  272. Clear();
  273. MergeFrom(from);
  274. }
  275. bool VersionDef::IsInitialized() const {
  276. return true;
  277. }
  278. void VersionDef::InternalSwap(VersionDef* other) {
  279. using std::swap;
  280. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  281. bad_consumers_.InternalSwap(&other->bad_consumers_);
  282. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  283. PROTOBUF_FIELD_OFFSET(VersionDef, min_consumer_)
  284. + sizeof(VersionDef::min_consumer_)
  285. - PROTOBUF_FIELD_OFFSET(VersionDef, producer_)>(
  286. reinterpret_cast<char*>(&producer_),
  287. reinterpret_cast<char*>(&other->producer_));
  288. }
  289. ::PROTOBUF_NAMESPACE_ID::Metadata VersionDef::GetMetadata() const {
  290. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  291. &descriptor_table_versions_2eproto_getter, &descriptor_table_versions_2eproto_once,
  292. file_level_metadata_versions_2eproto[0]);
  293. }
  294. // @@protoc_insertion_point(namespace_scope)
  295. } // namespace opencv_tensorflow
  296. PROTOBUF_NAMESPACE_OPEN
  297. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::VersionDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::VersionDef >(Arena* arena) {
  298. return Arena::CreateMessageInternal< ::opencv_tensorflow::VersionDef >(arena);
  299. }
  300. PROTOBUF_NAMESPACE_CLOSE
  301. // @@protoc_insertion_point(global_scope)
  302. #include <google/protobuf/port_undef.inc>