Path: blob/master/modules/dnn/misc/tensorflow/versions.pb.cc
16358 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: versions.proto23#include "versions.pb.h"45#include <algorithm>67#include <google/protobuf/stubs/common.h>8#include <google/protobuf/stubs/port.h>9#include <google/protobuf/stubs/once.h>10#include <google/protobuf/io/coded_stream.h>11#include <google/protobuf/wire_format_lite_inl.h>12#include <google/protobuf/descriptor.h>13#include <google/protobuf/generated_message_reflection.h>14#include <google/protobuf/reflection_ops.h>15#include <google/protobuf/wire_format.h>16// This is a temporary google only hack17#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS18#include "third_party/protobuf/version.h"19#endif20// @@protoc_insertion_point(includes)21namespace opencv_tensorflow {22class VersionDefDefaultTypeInternal {23public:24::google::protobuf::internal::ExplicitlyConstructed<VersionDef>25_instance;26} _VersionDef_default_instance_;27} // namespace opencv_tensorflow28namespace protobuf_versions_2eproto {29void InitDefaultsVersionDefImpl() {30GOOGLE_PROTOBUF_VERIFY_VERSION;3132#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS33::google::protobuf::internal::InitProtobufDefaultsForceUnique();34#else35::google::protobuf::internal::InitProtobufDefaults();36#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS37{38void* ptr = &::opencv_tensorflow::_VersionDef_default_instance_;39new (ptr) ::opencv_tensorflow::VersionDef();40::google::protobuf::internal::OnShutdownDestroyMessage(ptr);41}42::opencv_tensorflow::VersionDef::InitAsDefaultInstance();43}4445void InitDefaultsVersionDef() {46static GOOGLE_PROTOBUF_DECLARE_ONCE(once);47::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVersionDefImpl);48}4950::google::protobuf::Metadata file_level_metadata[1];5152const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {53~0u, // no _has_bits_54GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, _internal_metadata_),55~0u, // no _extensions_56~0u, // no _oneof_case_57~0u, // no _weak_field_map_58GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, producer_),59GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, min_consumer_),60GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, bad_consumers_),61};62static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {63{ 0, -1, sizeof(::opencv_tensorflow::VersionDef)},64};6566static ::google::protobuf::Message const * const file_default_instances[] = {67reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_VersionDef_default_instance_),68};6970void protobuf_AssignDescriptors() {71AddDescriptors();72::google::protobuf::MessageFactory* factory = NULL;73AssignDescriptors(74"versions.proto", schemas, file_default_instances, TableStruct::offsets, factory,75file_level_metadata, NULL, NULL);76}7778void protobuf_AssignDescriptorsOnce() {79static GOOGLE_PROTOBUF_DECLARE_ONCE(once);80::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);81}8283void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;84void protobuf_RegisterTypes(const ::std::string&) {85protobuf_AssignDescriptorsOnce();86::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);87}8889void AddDescriptorsImpl() {90InitDefaults();91static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {92"\n\016versions.proto\022\021opencv_tensorflow\"K\n\nV"93"ersionDef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consu"94"mer\030\002 \001(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org."95"tensorflow.frameworkB\016VersionsProtosP\001\370\001"96"\001b\006proto3"97};98::google::protobuf::DescriptorPool::InternalAddGeneratedFile(99descriptor, 169);100::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(101"versions.proto", &protobuf_RegisterTypes);102}103104void AddDescriptors() {105static GOOGLE_PROTOBUF_DECLARE_ONCE(once);106::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);107}108// Force AddDescriptors() to be called at dynamic initialization time.109struct StaticDescriptorInitializer {110StaticDescriptorInitializer() {111AddDescriptors();112}113} static_descriptor_initializer;114} // namespace protobuf_versions_2eproto115namespace opencv_tensorflow {116117// ===================================================================118119void VersionDef::InitAsDefaultInstance() {120}121#if !defined(_MSC_VER) || _MSC_VER >= 1900122const int VersionDef::kProducerFieldNumber;123const int VersionDef::kMinConsumerFieldNumber;124const int VersionDef::kBadConsumersFieldNumber;125#endif // !defined(_MSC_VER) || _MSC_VER >= 1900126127VersionDef::VersionDef()128: ::google::protobuf::Message(), _internal_metadata_(NULL) {129if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {130::protobuf_versions_2eproto::InitDefaultsVersionDef();131}132SharedCtor();133// @@protoc_insertion_point(constructor:opencv_tensorflow.VersionDef)134}135VersionDef::VersionDef(::google::protobuf::Arena* arena)136: ::google::protobuf::Message(),137_internal_metadata_(arena),138bad_consumers_(arena) {139::protobuf_versions_2eproto::InitDefaultsVersionDef();140SharedCtor();141RegisterArenaDtor(arena);142// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.VersionDef)143}144VersionDef::VersionDef(const VersionDef& from)145: ::google::protobuf::Message(),146_internal_metadata_(NULL),147bad_consumers_(from.bad_consumers_),148_cached_size_(0) {149_internal_metadata_.MergeFrom(from._internal_metadata_);150::memcpy(&producer_, &from.producer_,151static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) -152reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));153// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.VersionDef)154}155156void VersionDef::SharedCtor() {157::memset(&producer_, 0, static_cast<size_t>(158reinterpret_cast<char*>(&min_consumer_) -159reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));160_cached_size_ = 0;161}162163VersionDef::~VersionDef() {164// @@protoc_insertion_point(destructor:opencv_tensorflow.VersionDef)165SharedDtor();166}167168void VersionDef::SharedDtor() {169GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);170}171172void VersionDef::ArenaDtor(void* object) {173VersionDef* _this = reinterpret_cast< VersionDef* >(object);174(void)_this;175}176void VersionDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {177}178void VersionDef::SetCachedSize(int size) const {179GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();180_cached_size_ = size;181GOOGLE_SAFE_CONCURRENT_WRITES_END();182}183const ::google::protobuf::Descriptor* VersionDef::descriptor() {184::protobuf_versions_2eproto::protobuf_AssignDescriptorsOnce();185return ::protobuf_versions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;186}187188const VersionDef& VersionDef::default_instance() {189::protobuf_versions_2eproto::InitDefaultsVersionDef();190return *internal_default_instance();191}192193VersionDef* VersionDef::New(::google::protobuf::Arena* arena) const {194return ::google::protobuf::Arena::CreateMessage<VersionDef>(arena);195}196197void VersionDef::Clear() {198// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.VersionDef)199::google::protobuf::uint32 cached_has_bits = 0;200// Prevent compiler warnings about cached_has_bits being unused201(void) cached_has_bits;202203bad_consumers_.Clear();204::memset(&producer_, 0, static_cast<size_t>(205reinterpret_cast<char*>(&min_consumer_) -206reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));207_internal_metadata_.Clear();208}209210bool VersionDef::MergePartialFromCodedStream(211::google::protobuf::io::CodedInputStream* input) {212#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure213::google::protobuf::uint32 tag;214// @@protoc_insertion_point(parse_start:opencv_tensorflow.VersionDef)215for (;;) {216::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);217tag = p.first;218if (!p.second) goto handle_unusual;219switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {220// int32 producer = 1;221case 1: {222if (static_cast< ::google::protobuf::uint8>(tag) ==223static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {224225DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<226::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(227input, &producer_)));228} else {229goto handle_unusual;230}231break;232}233234// int32 min_consumer = 2;235case 2: {236if (static_cast< ::google::protobuf::uint8>(tag) ==237static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {238239DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<240::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(241input, &min_consumer_)));242} else {243goto handle_unusual;244}245break;246}247248// repeated int32 bad_consumers = 3;249case 3: {250if (static_cast< ::google::protobuf::uint8>(tag) ==251static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {252DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<253::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(254input, this->mutable_bad_consumers())));255} else if (256static_cast< ::google::protobuf::uint8>(tag) ==257static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {258DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<259::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(2601, 26u, input, this->mutable_bad_consumers())));261} else {262goto handle_unusual;263}264break;265}266267default: {268handle_unusual:269if (tag == 0) {270goto success;271}272DO_(::google::protobuf::internal::WireFormat::SkipField(273input, tag, _internal_metadata_.mutable_unknown_fields()));274break;275}276}277}278success:279// @@protoc_insertion_point(parse_success:opencv_tensorflow.VersionDef)280return true;281failure:282// @@protoc_insertion_point(parse_failure:opencv_tensorflow.VersionDef)283return false;284#undef DO_285}286287void VersionDef::SerializeWithCachedSizes(288::google::protobuf::io::CodedOutputStream* output) const {289// @@protoc_insertion_point(serialize_start:opencv_tensorflow.VersionDef)290::google::protobuf::uint32 cached_has_bits = 0;291(void) cached_has_bits;292293// int32 producer = 1;294if (this->producer() != 0) {295::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->producer(), output);296}297298// int32 min_consumer = 2;299if (this->min_consumer() != 0) {300::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_consumer(), output);301}302303// repeated int32 bad_consumers = 3;304if (this->bad_consumers_size() > 0) {305::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);306output->WriteVarint32(static_cast< ::google::protobuf::uint32>(307_bad_consumers_cached_byte_size_));308}309for (int i = 0, n = this->bad_consumers_size(); i < n; i++) {310::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(311this->bad_consumers(i), output);312}313314if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {315::google::protobuf::internal::WireFormat::SerializeUnknownFields(316(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);317}318// @@protoc_insertion_point(serialize_end:opencv_tensorflow.VersionDef)319}320321::google::protobuf::uint8* VersionDef::InternalSerializeWithCachedSizesToArray(322bool deterministic, ::google::protobuf::uint8* target) const {323(void)deterministic; // Unused324// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.VersionDef)325::google::protobuf::uint32 cached_has_bits = 0;326(void) cached_has_bits;327328// int32 producer = 1;329if (this->producer() != 0) {330target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->producer(), target);331}332333// int32 min_consumer = 2;334if (this->min_consumer() != 0) {335target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_consumer(), target);336}337338// repeated int32 bad_consumers = 3;339if (this->bad_consumers_size() > 0) {340target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(3413,342::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,343target);344target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(345static_cast< ::google::protobuf::int32>(346_bad_consumers_cached_byte_size_), target);347target = ::google::protobuf::internal::WireFormatLite::348WriteInt32NoTagToArray(this->bad_consumers_, target);349}350351if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {352target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(353(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);354}355// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.VersionDef)356return target;357}358359size_t VersionDef::ByteSizeLong() const {360// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.VersionDef)361size_t total_size = 0;362363if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {364total_size +=365::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(366(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));367}368// repeated int32 bad_consumers = 3;369{370size_t data_size = ::google::protobuf::internal::WireFormatLite::371Int32Size(this->bad_consumers_);372if (data_size > 0) {373total_size += 1 +374::google::protobuf::internal::WireFormatLite::Int32Size(375static_cast< ::google::protobuf::int32>(data_size));376}377int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);378GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();379_bad_consumers_cached_byte_size_ = cached_size;380GOOGLE_SAFE_CONCURRENT_WRITES_END();381total_size += data_size;382}383384// int32 producer = 1;385if (this->producer() != 0) {386total_size += 1 +387::google::protobuf::internal::WireFormatLite::Int32Size(388this->producer());389}390391// int32 min_consumer = 2;392if (this->min_consumer() != 0) {393total_size += 1 +394::google::protobuf::internal::WireFormatLite::Int32Size(395this->min_consumer());396}397398int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);399GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();400_cached_size_ = cached_size;401GOOGLE_SAFE_CONCURRENT_WRITES_END();402return total_size;403}404405void VersionDef::MergeFrom(const ::google::protobuf::Message& from) {406// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.VersionDef)407GOOGLE_DCHECK_NE(&from, this);408const VersionDef* source =409::google::protobuf::internal::DynamicCastToGenerated<const VersionDef>(410&from);411if (source == NULL) {412// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.VersionDef)413::google::protobuf::internal::ReflectionOps::Merge(from, this);414} else {415// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.VersionDef)416MergeFrom(*source);417}418}419420void VersionDef::MergeFrom(const VersionDef& from) {421// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.VersionDef)422GOOGLE_DCHECK_NE(&from, this);423_internal_metadata_.MergeFrom(from._internal_metadata_);424::google::protobuf::uint32 cached_has_bits = 0;425(void) cached_has_bits;426427bad_consumers_.MergeFrom(from.bad_consumers_);428if (from.producer() != 0) {429set_producer(from.producer());430}431if (from.min_consumer() != 0) {432set_min_consumer(from.min_consumer());433}434}435436void VersionDef::CopyFrom(const ::google::protobuf::Message& from) {437// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.VersionDef)438if (&from == this) return;439Clear();440MergeFrom(from);441}442443void VersionDef::CopyFrom(const VersionDef& from) {444// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.VersionDef)445if (&from == this) return;446Clear();447MergeFrom(from);448}449450bool VersionDef::IsInitialized() const {451return true;452}453454void VersionDef::Swap(VersionDef* other) {455if (other == this) return;456if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {457InternalSwap(other);458} else {459VersionDef* temp = New(GetArenaNoVirtual());460temp->MergeFrom(*other);461other->CopyFrom(*this);462InternalSwap(temp);463if (GetArenaNoVirtual() == NULL) {464delete temp;465}466}467}468void VersionDef::UnsafeArenaSwap(VersionDef* other) {469if (other == this) return;470GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());471InternalSwap(other);472}473void VersionDef::InternalSwap(VersionDef* other) {474using std::swap;475bad_consumers_.InternalSwap(&other->bad_consumers_);476swap(producer_, other->producer_);477swap(min_consumer_, other->min_consumer_);478_internal_metadata_.Swap(&other->_internal_metadata_);479swap(_cached_size_, other->_cached_size_);480}481482::google::protobuf::Metadata VersionDef::GetMetadata() const {483protobuf_versions_2eproto::protobuf_AssignDescriptorsOnce();484return ::protobuf_versions_2eproto::file_level_metadata[kIndexInFileMessages];485}486487488// @@protoc_insertion_point(namespace_scope)489} // namespace opencv_tensorflow490491// @@protoc_insertion_point(global_scope)492493494