Path: blob/master/modules/dnn/misc/tensorflow/attr_value.pb.cc
16358 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: attr_value.proto23#include "attr_value.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 AttrValue_ListValueDefaultTypeInternal {23public:24::google::protobuf::internal::ExplicitlyConstructed<AttrValue_ListValue>25_instance;26} _AttrValue_ListValue_default_instance_;27class AttrValueDefaultTypeInternal {28public:29::google::protobuf::internal::ExplicitlyConstructed<AttrValue>30_instance;31::google::protobuf::internal::ArenaStringPtr s_;32::google::protobuf::int64 i_;33float f_;34bool b_;35int type_;36const ::opencv_tensorflow::TensorShapeProto* shape_;37const ::opencv_tensorflow::TensorProto* tensor_;38const ::opencv_tensorflow::AttrValue_ListValue* list_;39const ::opencv_tensorflow::NameAttrList* func_;40::google::protobuf::internal::ArenaStringPtr placeholder_;41} _AttrValue_default_instance_;42class NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal {43public:44::google::protobuf::internal::ExplicitlyConstructed<NameAttrList_AttrEntry_DoNotUse>45_instance;46} _NameAttrList_AttrEntry_DoNotUse_default_instance_;47class NameAttrListDefaultTypeInternal {48public:49::google::protobuf::internal::ExplicitlyConstructed<NameAttrList>50_instance;51} _NameAttrList_default_instance_;52} // namespace opencv_tensorflow53namespace protobuf_attr_5fvalue_2eproto {54void InitDefaultsAttrValue_ListValueImpl() {55GOOGLE_PROTOBUF_VERIFY_VERSION;5657#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS58::google::protobuf::internal::InitProtobufDefaultsForceUnique();59#else60::google::protobuf::internal::InitProtobufDefaults();61#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS62protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();63protobuf_tensor_2eproto::InitDefaultsTensorProto();64{65void* ptr = &::opencv_tensorflow::_AttrValue_ListValue_default_instance_;66new (ptr) ::opencv_tensorflow::AttrValue_ListValue();67::google::protobuf::internal::OnShutdownDestroyMessage(ptr);68}69::opencv_tensorflow::AttrValue_ListValue::InitAsDefaultInstance();70}7172void InitDefaultsAttrValue_ListValue() {73static GOOGLE_PROTOBUF_DECLARE_ONCE(once);74::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAttrValue_ListValueImpl);75}7677void InitDefaultsAttrValueImpl() {78GOOGLE_PROTOBUF_VERIFY_VERSION;7980#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS81::google::protobuf::internal::InitProtobufDefaultsForceUnique();82#else83::google::protobuf::internal::InitProtobufDefaults();84#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS85protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();86protobuf_tensor_2eproto::InitDefaultsTensorProto();87protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue();88{89void* ptr = &::opencv_tensorflow::_AttrValue_default_instance_;90new (ptr) ::opencv_tensorflow::AttrValue();91::google::protobuf::internal::OnShutdownDestroyMessage(ptr);92}93{94void* ptr = &::opencv_tensorflow::_NameAttrList_AttrEntry_DoNotUse_default_instance_;95new (ptr) ::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse();96}97{98void* ptr = &::opencv_tensorflow::_NameAttrList_default_instance_;99new (ptr) ::opencv_tensorflow::NameAttrList();100::google::protobuf::internal::OnShutdownDestroyMessage(ptr);101}102::opencv_tensorflow::AttrValue::InitAsDefaultInstance();103::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse::InitAsDefaultInstance();104::opencv_tensorflow::NameAttrList::InitAsDefaultInstance();105}106107void InitDefaultsAttrValue() {108static GOOGLE_PROTOBUF_DECLARE_ONCE(once);109::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAttrValueImpl);110}111112::google::protobuf::Metadata file_level_metadata[4];113114const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {115~0u, // no _has_bits_116GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, _internal_metadata_),117~0u, // no _extensions_118~0u, // no _oneof_case_119~0u, // no _weak_field_map_120GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, s_),121GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, i_),122GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, f_),123GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, b_),124GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, type_),125GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, shape_),126GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue_ListValue, tensor_),127~0u, // no _has_bits_128GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue, _internal_metadata_),129~0u, // no _extensions_130GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue, _oneof_case_[0]),131~0u, // no _weak_field_map_132offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, s_),133offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, i_),134offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, f_),135offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, b_),136offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, type_),137offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, shape_),138offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, tensor_),139offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, list_),140offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, func_),141offsetof(::opencv_tensorflow::AttrValueDefaultTypeInternal, placeholder_),142GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::AttrValue, value_),143GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse, _has_bits_),144GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse, _internal_metadata_),145~0u, // no _extensions_146~0u, // no _oneof_case_147~0u, // no _weak_field_map_148GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse, key_),149GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse, value_),1500,1511,152~0u, // no _has_bits_153GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList, _internal_metadata_),154~0u, // no _extensions_155~0u, // no _oneof_case_156~0u, // no _weak_field_map_157GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList, name_),158GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NameAttrList, attr_),159};160static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {161{ 0, -1, sizeof(::opencv_tensorflow::AttrValue_ListValue)},162{ 12, -1, sizeof(::opencv_tensorflow::AttrValue)},163{ 28, 35, sizeof(::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse)},164{ 37, -1, sizeof(::opencv_tensorflow::NameAttrList)},165};166167static ::google::protobuf::Message const * const file_default_instances[] = {168reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_AttrValue_ListValue_default_instance_),169reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_AttrValue_default_instance_),170reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NameAttrList_AttrEntry_DoNotUse_default_instance_),171reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NameAttrList_default_instance_),172};173174void protobuf_AssignDescriptors() {175AddDescriptors();176::google::protobuf::MessageFactory* factory = NULL;177AssignDescriptors(178"attr_value.proto", schemas, file_default_instances, TableStruct::offsets, factory,179file_level_metadata, NULL, NULL);180}181182void protobuf_AssignDescriptorsOnce() {183static GOOGLE_PROTOBUF_DECLARE_ONCE(once);184::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);185}186187void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;188void protobuf_RegisterTypes(const ::std::string&) {189protobuf_AssignDescriptorsOnce();190::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);191}192193void AddDescriptorsImpl() {194InitDefaults();195static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {196"\n\020attr_value.proto\022\021opencv_tensorflow\032\014t"197"ensor.proto\032\022tensor_shape.proto\032\013types.p"198"roto\"\266\004\n\tAttrValue\022\013\n\001s\030\002 \001(\014H\000\022\013\n\001i\030\003 \001"199"(\003H\000\022\013\n\001f\030\004 \001(\002H\000\022\013\n\001b\030\005 \001(\010H\000\022+\n\004type\030\006"200" \001(\0162\033.opencv_tensorflow.DataTypeH\000\0224\n\005s"201"hape\030\007 \001(\0132#.opencv_tensorflow.TensorSha"202"peProtoH\000\0220\n\006tensor\030\010 \001(\0132\036.opencv_tenso"203"rflow.TensorProtoH\000\0226\n\004list\030\001 \001(\0132&.open"204"cv_tensorflow.AttrValue.ListValueH\000\022/\n\004f"205"unc\030\n \001(\0132\037.opencv_tensorflow.NameAttrLi"206"stH\000\022\025\n\013placeholder\030\t \001(\tH\000\032\326\001\n\tListValu"207"e\022\t\n\001s\030\002 \003(\014\022\r\n\001i\030\003 \003(\003B\002\020\001\022\r\n\001f\030\004 \003(\002B\002"208"\020\001\022\r\n\001b\030\005 \003(\010B\002\020\001\022-\n\004type\030\006 \003(\0162\033.opencv"209"_tensorflow.DataTypeB\002\020\001\0222\n\005shape\030\007 \003(\0132"210"#.opencv_tensorflow.TensorShapeProto\022.\n\006"211"tensor\030\010 \003(\0132\036.opencv_tensorflow.TensorP"212"rotoB\007\n\005value\"\240\001\n\014NameAttrList\022\014\n\004name\030\001"213" \001(\t\0227\n\004attr\030\002 \003(\0132).opencv_tensorflow.N"214"ameAttrList.AttrEntry\032I\n\tAttrEntry\022\013\n\003ke"215"y\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tensorfl"216"ow.AttrValue:\0028\001B0\n\030org.tensorflow.frame"217"workB\017AttrValueProtosP\001\370\001\001b\006proto3"218};219::google::protobuf::DescriptorPool::InternalAddGeneratedFile(220descriptor, 874);221::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(222"attr_value.proto", &protobuf_RegisterTypes);223::protobuf_tensor_2eproto::AddDescriptors();224::protobuf_tensor_5fshape_2eproto::AddDescriptors();225::protobuf_types_2eproto::AddDescriptors();226}227228void AddDescriptors() {229static GOOGLE_PROTOBUF_DECLARE_ONCE(once);230::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);231}232// Force AddDescriptors() to be called at dynamic initialization time.233struct StaticDescriptorInitializer {234StaticDescriptorInitializer() {235AddDescriptors();236}237} static_descriptor_initializer;238} // namespace protobuf_attr_5fvalue_2eproto239namespace opencv_tensorflow {240241// ===================================================================242243void AttrValue_ListValue::InitAsDefaultInstance() {244}245void AttrValue_ListValue::clear_shape() {246shape_.Clear();247}248void AttrValue_ListValue::clear_tensor() {249tensor_.Clear();250}251#if !defined(_MSC_VER) || _MSC_VER >= 1900252const int AttrValue_ListValue::kSFieldNumber;253const int AttrValue_ListValue::kIFieldNumber;254const int AttrValue_ListValue::kFFieldNumber;255const int AttrValue_ListValue::kBFieldNumber;256const int AttrValue_ListValue::kTypeFieldNumber;257const int AttrValue_ListValue::kShapeFieldNumber;258const int AttrValue_ListValue::kTensorFieldNumber;259#endif // !defined(_MSC_VER) || _MSC_VER >= 1900260261AttrValue_ListValue::AttrValue_ListValue()262: ::google::protobuf::Message(), _internal_metadata_(NULL) {263if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {264::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue();265}266SharedCtor();267// @@protoc_insertion_point(constructor:opencv_tensorflow.AttrValue.ListValue)268}269AttrValue_ListValue::AttrValue_ListValue(::google::protobuf::Arena* arena)270: ::google::protobuf::Message(),271_internal_metadata_(arena),272s_(arena),273i_(arena),274f_(arena),275b_(arena),276type_(arena),277shape_(arena),278tensor_(arena) {279::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue();280SharedCtor();281RegisterArenaDtor(arena);282// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.AttrValue.ListValue)283}284AttrValue_ListValue::AttrValue_ListValue(const AttrValue_ListValue& from)285: ::google::protobuf::Message(),286_internal_metadata_(NULL),287s_(from.s_),288i_(from.i_),289f_(from.f_),290b_(from.b_),291type_(from.type_),292shape_(from.shape_),293tensor_(from.tensor_),294_cached_size_(0) {295_internal_metadata_.MergeFrom(from._internal_metadata_);296// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.AttrValue.ListValue)297}298299void AttrValue_ListValue::SharedCtor() {300_cached_size_ = 0;301}302303AttrValue_ListValue::~AttrValue_ListValue() {304// @@protoc_insertion_point(destructor:opencv_tensorflow.AttrValue.ListValue)305SharedDtor();306}307308void AttrValue_ListValue::SharedDtor() {309GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);310}311312void AttrValue_ListValue::ArenaDtor(void* object) {313AttrValue_ListValue* _this = reinterpret_cast< AttrValue_ListValue* >(object);314(void)_this;315}316void AttrValue_ListValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {317}318void AttrValue_ListValue::SetCachedSize(int size) const {319GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();320_cached_size_ = size;321GOOGLE_SAFE_CONCURRENT_WRITES_END();322}323const ::google::protobuf::Descriptor* AttrValue_ListValue::descriptor() {324::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();325return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;326}327328const AttrValue_ListValue& AttrValue_ListValue::default_instance() {329::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue();330return *internal_default_instance();331}332333AttrValue_ListValue* AttrValue_ListValue::New(::google::protobuf::Arena* arena) const {334return ::google::protobuf::Arena::CreateMessage<AttrValue_ListValue>(arena);335}336337void AttrValue_ListValue::Clear() {338// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.AttrValue.ListValue)339::google::protobuf::uint32 cached_has_bits = 0;340// Prevent compiler warnings about cached_has_bits being unused341(void) cached_has_bits;342343s_.Clear();344i_.Clear();345f_.Clear();346b_.Clear();347type_.Clear();348shape_.Clear();349tensor_.Clear();350_internal_metadata_.Clear();351}352353bool AttrValue_ListValue::MergePartialFromCodedStream(354::google::protobuf::io::CodedInputStream* input) {355#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure356::google::protobuf::uint32 tag;357// @@protoc_insertion_point(parse_start:opencv_tensorflow.AttrValue.ListValue)358for (;;) {359::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);360tag = p.first;361if (!p.second) goto handle_unusual;362switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {363// repeated bytes s = 2;364case 2: {365if (static_cast< ::google::protobuf::uint8>(tag) ==366static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {367DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(368input, this->add_s()));369} else {370goto handle_unusual;371}372break;373}374375// repeated int64 i = 3 [packed = true];376case 3: {377if (static_cast< ::google::protobuf::uint8>(tag) ==378static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {379DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<380::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(381input, this->mutable_i())));382} else if (383static_cast< ::google::protobuf::uint8>(tag) ==384static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {385DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<386::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(3871, 26u, input, this->mutable_i())));388} else {389goto handle_unusual;390}391break;392}393394// repeated float f = 4 [packed = true];395case 4: {396if (static_cast< ::google::protobuf::uint8>(tag) ==397static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {398DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<399float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(400input, this->mutable_f())));401} else if (402static_cast< ::google::protobuf::uint8>(tag) ==403static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {404DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<405float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(4061, 34u, input, this->mutable_f())));407} else {408goto handle_unusual;409}410break;411}412413// repeated bool b = 5 [packed = true];414case 5: {415if (static_cast< ::google::protobuf::uint8>(tag) ==416static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {417DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<418bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(419input, this->mutable_b())));420} else if (421static_cast< ::google::protobuf::uint8>(tag) ==422static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {423DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<424bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(4251, 42u, input, this->mutable_b())));426} else {427goto handle_unusual;428}429break;430}431432// repeated .opencv_tensorflow.DataType type = 6 [packed = true];433case 6: {434if (static_cast< ::google::protobuf::uint8>(tag) ==435static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {436::google::protobuf::uint32 length;437DO_(input->ReadVarint32(&length));438::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length));439while (input->BytesUntilLimit() > 0) {440int value;441DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<442int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(443input, &value)));444add_type(static_cast< ::opencv_tensorflow::DataType >(value));445}446input->PopLimit(limit);447} else if (448static_cast< ::google::protobuf::uint8>(tag) ==449static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {450int value;451DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<452int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(453input, &value)));454add_type(static_cast< ::opencv_tensorflow::DataType >(value));455} else {456goto handle_unusual;457}458break;459}460461// repeated .opencv_tensorflow.TensorShapeProto shape = 7;462case 7: {463if (static_cast< ::google::protobuf::uint8>(tag) ==464static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {465DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape()));466} else {467goto handle_unusual;468}469break;470}471472// repeated .opencv_tensorflow.TensorProto tensor = 8;473case 8: {474if (static_cast< ::google::protobuf::uint8>(tag) ==475static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {476DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tensor()));477} else {478goto handle_unusual;479}480break;481}482483default: {484handle_unusual:485if (tag == 0) {486goto success;487}488DO_(::google::protobuf::internal::WireFormat::SkipField(489input, tag, _internal_metadata_.mutable_unknown_fields()));490break;491}492}493}494success:495// @@protoc_insertion_point(parse_success:opencv_tensorflow.AttrValue.ListValue)496return true;497failure:498// @@protoc_insertion_point(parse_failure:opencv_tensorflow.AttrValue.ListValue)499return false;500#undef DO_501}502503void AttrValue_ListValue::SerializeWithCachedSizes(504::google::protobuf::io::CodedOutputStream* output) const {505// @@protoc_insertion_point(serialize_start:opencv_tensorflow.AttrValue.ListValue)506::google::protobuf::uint32 cached_has_bits = 0;507(void) cached_has_bits;508509// repeated bytes s = 2;510for (int i = 0, n = this->s_size(); i < n; i++) {511::google::protobuf::internal::WireFormatLite::WriteBytes(5122, this->s(i), output);513}514515// repeated int64 i = 3 [packed = true];516if (this->i_size() > 0) {517::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);518output->WriteVarint32(static_cast< ::google::protobuf::uint32>(519_i_cached_byte_size_));520}521for (int i = 0, n = this->i_size(); i < n; i++) {522::google::protobuf::internal::WireFormatLite::WriteInt64NoTag(523this->i(i), output);524}525526// repeated float f = 4 [packed = true];527if (this->f_size() > 0) {528::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);529output->WriteVarint32(static_cast< ::google::protobuf::uint32>(530_f_cached_byte_size_));531::google::protobuf::internal::WireFormatLite::WriteFloatArray(532this->f().data(), this->f_size(), output);533}534535// repeated bool b = 5 [packed = true];536if (this->b_size() > 0) {537::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);538output->WriteVarint32(static_cast< ::google::protobuf::uint32>(539_b_cached_byte_size_));540::google::protobuf::internal::WireFormatLite::WriteBoolArray(541this->b().data(), this->b_size(), output);542}543544// repeated .opencv_tensorflow.DataType type = 6 [packed = true];545if (this->type_size() > 0) {546::google::protobuf::internal::WireFormatLite::WriteTag(5476,548::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,549output);550output->WriteVarint32(551static_cast< ::google::protobuf::uint32>(_type_cached_byte_size_));552}553for (int i = 0, n = this->type_size(); i < n; i++) {554::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(555this->type(i), output);556}557558// repeated .opencv_tensorflow.TensorShapeProto shape = 7;559for (unsigned int i = 0,560n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {561::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5627, this->shape(static_cast<int>(i)), output);563}564565// repeated .opencv_tensorflow.TensorProto tensor = 8;566for (unsigned int i = 0,567n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {568::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5698, this->tensor(static_cast<int>(i)), output);570}571572if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {573::google::protobuf::internal::WireFormat::SerializeUnknownFields(574(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);575}576// @@protoc_insertion_point(serialize_end:opencv_tensorflow.AttrValue.ListValue)577}578579::google::protobuf::uint8* AttrValue_ListValue::InternalSerializeWithCachedSizesToArray(580bool deterministic, ::google::protobuf::uint8* target) const {581(void)deterministic; // Unused582// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.AttrValue.ListValue)583::google::protobuf::uint32 cached_has_bits = 0;584(void) cached_has_bits;585586// repeated bytes s = 2;587for (int i = 0, n = this->s_size(); i < n; i++) {588target = ::google::protobuf::internal::WireFormatLite::589WriteBytesToArray(2, this->s(i), target);590}591592// repeated int64 i = 3 [packed = true];593if (this->i_size() > 0) {594target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(5953,596::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,597target);598target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(599static_cast< ::google::protobuf::int32>(600_i_cached_byte_size_), target);601target = ::google::protobuf::internal::WireFormatLite::602WriteInt64NoTagToArray(this->i_, target);603}604605// repeated float f = 4 [packed = true];606if (this->f_size() > 0) {607target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(6084,609::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,610target);611target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(612static_cast< ::google::protobuf::int32>(613_f_cached_byte_size_), target);614target = ::google::protobuf::internal::WireFormatLite::615WriteFloatNoTagToArray(this->f_, target);616}617618// repeated bool b = 5 [packed = true];619if (this->b_size() > 0) {620target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(6215,622::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,623target);624target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(625static_cast< ::google::protobuf::int32>(626_b_cached_byte_size_), target);627target = ::google::protobuf::internal::WireFormatLite::628WriteBoolNoTagToArray(this->b_, target);629}630631// repeated .opencv_tensorflow.DataType type = 6 [packed = true];632if (this->type_size() > 0) {633target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(6346,635::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,636target);637target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>(638_type_cached_byte_size_), target);639target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(640this->type_, target);641}642643// repeated .opencv_tensorflow.TensorShapeProto shape = 7;644for (unsigned int i = 0,645n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {646target = ::google::protobuf::internal::WireFormatLite::647InternalWriteMessageToArray(6487, this->shape(static_cast<int>(i)), deterministic, target);649}650651// repeated .opencv_tensorflow.TensorProto tensor = 8;652for (unsigned int i = 0,653n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {654target = ::google::protobuf::internal::WireFormatLite::655InternalWriteMessageToArray(6568, this->tensor(static_cast<int>(i)), deterministic, target);657}658659if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {660target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(661(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);662}663// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.AttrValue.ListValue)664return target;665}666667size_t AttrValue_ListValue::ByteSizeLong() const {668// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.AttrValue.ListValue)669size_t total_size = 0;670671if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {672total_size +=673::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(674(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));675}676// repeated bytes s = 2;677total_size += 1 *678::google::protobuf::internal::FromIntSize(this->s_size());679for (int i = 0, n = this->s_size(); i < n; i++) {680total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(681this->s(i));682}683684// repeated int64 i = 3 [packed = true];685{686size_t data_size = ::google::protobuf::internal::WireFormatLite::687Int64Size(this->i_);688if (data_size > 0) {689total_size += 1 +690::google::protobuf::internal::WireFormatLite::Int32Size(691static_cast< ::google::protobuf::int32>(data_size));692}693int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);694GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();695_i_cached_byte_size_ = cached_size;696GOOGLE_SAFE_CONCURRENT_WRITES_END();697total_size += data_size;698}699700// repeated float f = 4 [packed = true];701{702unsigned int count = static_cast<unsigned int>(this->f_size());703size_t data_size = 4UL * count;704if (data_size > 0) {705total_size += 1 +706::google::protobuf::internal::WireFormatLite::Int32Size(707static_cast< ::google::protobuf::int32>(data_size));708}709int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);710GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();711_f_cached_byte_size_ = cached_size;712GOOGLE_SAFE_CONCURRENT_WRITES_END();713total_size += data_size;714}715716// repeated bool b = 5 [packed = true];717{718unsigned int count = static_cast<unsigned int>(this->b_size());719size_t data_size = 1UL * count;720if (data_size > 0) {721total_size += 1 +722::google::protobuf::internal::WireFormatLite::Int32Size(723static_cast< ::google::protobuf::int32>(data_size));724}725int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);726GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();727_b_cached_byte_size_ = cached_size;728GOOGLE_SAFE_CONCURRENT_WRITES_END();729total_size += data_size;730}731732// repeated .opencv_tensorflow.DataType type = 6 [packed = true];733{734size_t data_size = 0;735unsigned int count = static_cast<unsigned int>(this->type_size());for (unsigned int i = 0; i < count; i++) {736data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(737this->type(static_cast<int>(i)));738}739if (data_size > 0) {740total_size += 1 +741::google::protobuf::internal::WireFormatLite::Int32Size(742static_cast< ::google::protobuf::int32>(data_size));743}744int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);745GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();746_type_cached_byte_size_ = cached_size;747GOOGLE_SAFE_CONCURRENT_WRITES_END();748total_size += data_size;749}750751// repeated .opencv_tensorflow.TensorShapeProto shape = 7;752{753unsigned int count = static_cast<unsigned int>(this->shape_size());754total_size += 1UL * count;755for (unsigned int i = 0; i < count; i++) {756total_size +=757::google::protobuf::internal::WireFormatLite::MessageSize(758this->shape(static_cast<int>(i)));759}760}761762// repeated .opencv_tensorflow.TensorProto tensor = 8;763{764unsigned int count = static_cast<unsigned int>(this->tensor_size());765total_size += 1UL * count;766for (unsigned int i = 0; i < count; i++) {767total_size +=768::google::protobuf::internal::WireFormatLite::MessageSize(769this->tensor(static_cast<int>(i)));770}771}772773int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);774GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();775_cached_size_ = cached_size;776GOOGLE_SAFE_CONCURRENT_WRITES_END();777return total_size;778}779780void AttrValue_ListValue::MergeFrom(const ::google::protobuf::Message& from) {781// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.AttrValue.ListValue)782GOOGLE_DCHECK_NE(&from, this);783const AttrValue_ListValue* source =784::google::protobuf::internal::DynamicCastToGenerated<const AttrValue_ListValue>(785&from);786if (source == NULL) {787// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.AttrValue.ListValue)788::google::protobuf::internal::ReflectionOps::Merge(from, this);789} else {790// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.AttrValue.ListValue)791MergeFrom(*source);792}793}794795void AttrValue_ListValue::MergeFrom(const AttrValue_ListValue& from) {796// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.AttrValue.ListValue)797GOOGLE_DCHECK_NE(&from, this);798_internal_metadata_.MergeFrom(from._internal_metadata_);799::google::protobuf::uint32 cached_has_bits = 0;800(void) cached_has_bits;801802s_.MergeFrom(from.s_);803i_.MergeFrom(from.i_);804f_.MergeFrom(from.f_);805b_.MergeFrom(from.b_);806type_.MergeFrom(from.type_);807shape_.MergeFrom(from.shape_);808tensor_.MergeFrom(from.tensor_);809}810811void AttrValue_ListValue::CopyFrom(const ::google::protobuf::Message& from) {812// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.AttrValue.ListValue)813if (&from == this) return;814Clear();815MergeFrom(from);816}817818void AttrValue_ListValue::CopyFrom(const AttrValue_ListValue& from) {819// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.AttrValue.ListValue)820if (&from == this) return;821Clear();822MergeFrom(from);823}824825bool AttrValue_ListValue::IsInitialized() const {826return true;827}828829void AttrValue_ListValue::Swap(AttrValue_ListValue* other) {830if (other == this) return;831if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {832InternalSwap(other);833} else {834AttrValue_ListValue* temp = New(GetArenaNoVirtual());835temp->MergeFrom(*other);836other->CopyFrom(*this);837InternalSwap(temp);838if (GetArenaNoVirtual() == NULL) {839delete temp;840}841}842}843void AttrValue_ListValue::UnsafeArenaSwap(AttrValue_ListValue* other) {844if (other == this) return;845GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());846InternalSwap(other);847}848void AttrValue_ListValue::InternalSwap(AttrValue_ListValue* other) {849using std::swap;850s_.InternalSwap(&other->s_);851i_.InternalSwap(&other->i_);852f_.InternalSwap(&other->f_);853b_.InternalSwap(&other->b_);854type_.InternalSwap(&other->type_);855shape_.InternalSwap(&other->shape_);856tensor_.InternalSwap(&other->tensor_);857_internal_metadata_.Swap(&other->_internal_metadata_);858swap(_cached_size_, other->_cached_size_);859}860861::google::protobuf::Metadata AttrValue_ListValue::GetMetadata() const {862protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();863return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];864}865866867// ===================================================================868869void AttrValue::InitAsDefaultInstance() {870::opencv_tensorflow::_AttrValue_default_instance_.s_.UnsafeSetDefault(871&::google::protobuf::internal::GetEmptyStringAlreadyInited());872::opencv_tensorflow::_AttrValue_default_instance_.i_ = GOOGLE_LONGLONG(0);873::opencv_tensorflow::_AttrValue_default_instance_.f_ = 0;874::opencv_tensorflow::_AttrValue_default_instance_.b_ = false;875::opencv_tensorflow::_AttrValue_default_instance_.type_ = 0;876::opencv_tensorflow::_AttrValue_default_instance_.shape_ = const_cast< ::opencv_tensorflow::TensorShapeProto*>(877::opencv_tensorflow::TensorShapeProto::internal_default_instance());878::opencv_tensorflow::_AttrValue_default_instance_.tensor_ = const_cast< ::opencv_tensorflow::TensorProto*>(879::opencv_tensorflow::TensorProto::internal_default_instance());880::opencv_tensorflow::_AttrValue_default_instance_.list_ = const_cast< ::opencv_tensorflow::AttrValue_ListValue*>(881::opencv_tensorflow::AttrValue_ListValue::internal_default_instance());882::opencv_tensorflow::_AttrValue_default_instance_.func_ = const_cast< ::opencv_tensorflow::NameAttrList*>(883::opencv_tensorflow::NameAttrList::internal_default_instance());884::opencv_tensorflow::_AttrValue_default_instance_.placeholder_.UnsafeSetDefault(885&::google::protobuf::internal::GetEmptyStringAlreadyInited());886}887void AttrValue::set_allocated_shape(::opencv_tensorflow::TensorShapeProto* shape) {888::google::protobuf::Arena* message_arena = GetArenaNoVirtual();889clear_value();890if (shape) {891::google::protobuf::Arena* submessage_arena =892reinterpret_cast< ::google::protobuf::MessageLite*>(shape)->GetArena();893if (message_arena != submessage_arena) {894shape = ::google::protobuf::internal::GetOwnedMessage(895message_arena, shape, submessage_arena);896}897set_has_shape();898value_.shape_ = shape;899}900// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.shape)901}902void AttrValue::clear_shape() {903if (has_shape()) {904if (GetArenaNoVirtual() == NULL) {905delete value_.shape_;906}907clear_has_value();908}909}910void AttrValue::set_allocated_tensor(::opencv_tensorflow::TensorProto* tensor) {911::google::protobuf::Arena* message_arena = GetArenaNoVirtual();912clear_value();913if (tensor) {914::google::protobuf::Arena* submessage_arena =915reinterpret_cast< ::google::protobuf::MessageLite*>(tensor)->GetArena();916if (message_arena != submessage_arena) {917tensor = ::google::protobuf::internal::GetOwnedMessage(918message_arena, tensor, submessage_arena);919}920set_has_tensor();921value_.tensor_ = tensor;922}923// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.tensor)924}925void AttrValue::clear_tensor() {926if (has_tensor()) {927if (GetArenaNoVirtual() == NULL) {928delete value_.tensor_;929}930clear_has_value();931}932}933void AttrValue::set_allocated_list(::opencv_tensorflow::AttrValue_ListValue* list) {934::google::protobuf::Arena* message_arena = GetArenaNoVirtual();935clear_value();936if (list) {937::google::protobuf::Arena* submessage_arena =938::google::protobuf::Arena::GetArena(list);939if (message_arena != submessage_arena) {940list = ::google::protobuf::internal::GetOwnedMessage(941message_arena, list, submessage_arena);942}943set_has_list();944value_.list_ = list;945}946// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.list)947}948void AttrValue::set_allocated_func(::opencv_tensorflow::NameAttrList* func) {949::google::protobuf::Arena* message_arena = GetArenaNoVirtual();950clear_value();951if (func) {952::google::protobuf::Arena* submessage_arena =953::google::protobuf::Arena::GetArena(func);954if (message_arena != submessage_arena) {955func = ::google::protobuf::internal::GetOwnedMessage(956message_arena, func, submessage_arena);957}958set_has_func();959value_.func_ = func;960}961// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.func)962}963#if !defined(_MSC_VER) || _MSC_VER >= 1900964const int AttrValue::kSFieldNumber;965const int AttrValue::kIFieldNumber;966const int AttrValue::kFFieldNumber;967const int AttrValue::kBFieldNumber;968const int AttrValue::kTypeFieldNumber;969const int AttrValue::kShapeFieldNumber;970const int AttrValue::kTensorFieldNumber;971const int AttrValue::kListFieldNumber;972const int AttrValue::kFuncFieldNumber;973const int AttrValue::kPlaceholderFieldNumber;974#endif // !defined(_MSC_VER) || _MSC_VER >= 1900975976AttrValue::AttrValue()977: ::google::protobuf::Message(), _internal_metadata_(NULL) {978if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {979::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();980}981SharedCtor();982// @@protoc_insertion_point(constructor:opencv_tensorflow.AttrValue)983}984AttrValue::AttrValue(::google::protobuf::Arena* arena)985: ::google::protobuf::Message(),986_internal_metadata_(arena) {987::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();988SharedCtor();989RegisterArenaDtor(arena);990// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.AttrValue)991}992AttrValue::AttrValue(const AttrValue& from)993: ::google::protobuf::Message(),994_internal_metadata_(NULL),995_cached_size_(0) {996_internal_metadata_.MergeFrom(from._internal_metadata_);997clear_has_value();998switch (from.value_case()) {999case kS: {1000set_s(from.s());1001break;1002}1003case kI: {1004set_i(from.i());1005break;1006}1007case kF: {1008set_f(from.f());1009break;1010}1011case kB: {1012set_b(from.b());1013break;1014}1015case kType: {1016set_type(from.type());1017break;1018}1019case kShape: {1020mutable_shape()->::opencv_tensorflow::TensorShapeProto::MergeFrom(from.shape());1021break;1022}1023case kTensor: {1024mutable_tensor()->::opencv_tensorflow::TensorProto::MergeFrom(from.tensor());1025break;1026}1027case kList: {1028mutable_list()->::opencv_tensorflow::AttrValue_ListValue::MergeFrom(from.list());1029break;1030}1031case kFunc: {1032mutable_func()->::opencv_tensorflow::NameAttrList::MergeFrom(from.func());1033break;1034}1035case kPlaceholder: {1036set_placeholder(from.placeholder());1037break;1038}1039case VALUE_NOT_SET: {1040break;1041}1042}1043// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.AttrValue)1044}10451046void AttrValue::SharedCtor() {1047clear_has_value();1048_cached_size_ = 0;1049}10501051AttrValue::~AttrValue() {1052// @@protoc_insertion_point(destructor:opencv_tensorflow.AttrValue)1053SharedDtor();1054}10551056void AttrValue::SharedDtor() {1057GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);1058if (has_value()) {1059clear_value();1060}1061}10621063void AttrValue::ArenaDtor(void* object) {1064AttrValue* _this = reinterpret_cast< AttrValue* >(object);1065(void)_this;1066}1067void AttrValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {1068}1069void AttrValue::SetCachedSize(int size) const {1070GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1071_cached_size_ = size;1072GOOGLE_SAFE_CONCURRENT_WRITES_END();1073}1074const ::google::protobuf::Descriptor* AttrValue::descriptor() {1075::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();1076return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;1077}10781079const AttrValue& AttrValue::default_instance() {1080::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();1081return *internal_default_instance();1082}10831084AttrValue* AttrValue::New(::google::protobuf::Arena* arena) const {1085return ::google::protobuf::Arena::CreateMessage<AttrValue>(arena);1086}10871088void AttrValue::clear_value() {1089// @@protoc_insertion_point(one_of_clear_start:opencv_tensorflow.AttrValue)1090switch (value_case()) {1091case kS: {1092value_.s_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),1093GetArenaNoVirtual());1094break;1095}1096case kI: {1097// No need to clear1098break;1099}1100case kF: {1101// No need to clear1102break;1103}1104case kB: {1105// No need to clear1106break;1107}1108case kType: {1109// No need to clear1110break;1111}1112case kShape: {1113if (GetArenaNoVirtual() == NULL) {1114delete value_.shape_;1115}1116break;1117}1118case kTensor: {1119if (GetArenaNoVirtual() == NULL) {1120delete value_.tensor_;1121}1122break;1123}1124case kList: {1125if (GetArenaNoVirtual() == NULL) {1126delete value_.list_;1127}1128break;1129}1130case kFunc: {1131if (GetArenaNoVirtual() == NULL) {1132delete value_.func_;1133}1134break;1135}1136case kPlaceholder: {1137value_.placeholder_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),1138GetArenaNoVirtual());1139break;1140}1141case VALUE_NOT_SET: {1142break;1143}1144}1145_oneof_case_[0] = VALUE_NOT_SET;1146}114711481149void AttrValue::Clear() {1150// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.AttrValue)1151::google::protobuf::uint32 cached_has_bits = 0;1152// Prevent compiler warnings about cached_has_bits being unused1153(void) cached_has_bits;11541155clear_value();1156_internal_metadata_.Clear();1157}11581159bool AttrValue::MergePartialFromCodedStream(1160::google::protobuf::io::CodedInputStream* input) {1161#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure1162::google::protobuf::uint32 tag;1163// @@protoc_insertion_point(parse_start:opencv_tensorflow.AttrValue)1164for (;;) {1165::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);1166tag = p.first;1167if (!p.second) goto handle_unusual;1168switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {1169// .opencv_tensorflow.AttrValue.ListValue list = 1;1170case 1: {1171if (static_cast< ::google::protobuf::uint8>(tag) ==1172static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {1173DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1174input, mutable_list()));1175} else {1176goto handle_unusual;1177}1178break;1179}11801181// bytes s = 2;1182case 2: {1183if (static_cast< ::google::protobuf::uint8>(tag) ==1184static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {1185DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(1186input, this->mutable_s()));1187} else {1188goto handle_unusual;1189}1190break;1191}11921193// int64 i = 3;1194case 3: {1195if (static_cast< ::google::protobuf::uint8>(tag) ==1196static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {1197clear_value();1198DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1199::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(1200input, &value_.i_)));1201set_has_i();1202} else {1203goto handle_unusual;1204}1205break;1206}12071208// float f = 4;1209case 4: {1210if (static_cast< ::google::protobuf::uint8>(tag) ==1211static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {1212clear_value();1213DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1214float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(1215input, &value_.f_)));1216set_has_f();1217} else {1218goto handle_unusual;1219}1220break;1221}12221223// bool b = 5;1224case 5: {1225if (static_cast< ::google::protobuf::uint8>(tag) ==1226static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {1227clear_value();1228DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1229bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(1230input, &value_.b_)));1231set_has_b();1232} else {1233goto handle_unusual;1234}1235break;1236}12371238// .opencv_tensorflow.DataType type = 6;1239case 6: {1240if (static_cast< ::google::protobuf::uint8>(tag) ==1241static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {1242int value;1243DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1244int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(1245input, &value)));1246set_type(static_cast< ::opencv_tensorflow::DataType >(value));1247} else {1248goto handle_unusual;1249}1250break;1251}12521253// .opencv_tensorflow.TensorShapeProto shape = 7;1254case 7: {1255if (static_cast< ::google::protobuf::uint8>(tag) ==1256static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {1257DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1258input, mutable_shape()));1259} else {1260goto handle_unusual;1261}1262break;1263}12641265// .opencv_tensorflow.TensorProto tensor = 8;1266case 8: {1267if (static_cast< ::google::protobuf::uint8>(tag) ==1268static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {1269DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1270input, mutable_tensor()));1271} else {1272goto handle_unusual;1273}1274break;1275}12761277// string placeholder = 9;1278case 9: {1279if (static_cast< ::google::protobuf::uint8>(tag) ==1280static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {1281DO_(::google::protobuf::internal::WireFormatLite::ReadString(1282input, this->mutable_placeholder()));1283DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1284this->placeholder().data(), static_cast<int>(this->placeholder().length()),1285::google::protobuf::internal::WireFormatLite::PARSE,1286"opencv_tensorflow.AttrValue.placeholder"));1287} else {1288goto handle_unusual;1289}1290break;1291}12921293// .opencv_tensorflow.NameAttrList func = 10;1294case 10: {1295if (static_cast< ::google::protobuf::uint8>(tag) ==1296static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {1297DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1298input, mutable_func()));1299} else {1300goto handle_unusual;1301}1302break;1303}13041305default: {1306handle_unusual:1307if (tag == 0) {1308goto success;1309}1310DO_(::google::protobuf::internal::WireFormat::SkipField(1311input, tag, _internal_metadata_.mutable_unknown_fields()));1312break;1313}1314}1315}1316success:1317// @@protoc_insertion_point(parse_success:opencv_tensorflow.AttrValue)1318return true;1319failure:1320// @@protoc_insertion_point(parse_failure:opencv_tensorflow.AttrValue)1321return false;1322#undef DO_1323}13241325void AttrValue::SerializeWithCachedSizes(1326::google::protobuf::io::CodedOutputStream* output) const {1327// @@protoc_insertion_point(serialize_start:opencv_tensorflow.AttrValue)1328::google::protobuf::uint32 cached_has_bits = 0;1329(void) cached_has_bits;13301331// .opencv_tensorflow.AttrValue.ListValue list = 1;1332if (has_list()) {1333::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(13341, *value_.list_, output);1335}13361337// bytes s = 2;1338if (has_s()) {1339::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(13402, this->s(), output);1341}13421343// int64 i = 3;1344if (has_i()) {1345::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->i(), output);1346}13471348// float f = 4;1349if (has_f()) {1350::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->f(), output);1351}13521353// bool b = 5;1354if (has_b()) {1355::google::protobuf::internal::WireFormatLite::WriteBool(5, this->b(), output);1356}13571358// .opencv_tensorflow.DataType type = 6;1359if (has_type()) {1360::google::protobuf::internal::WireFormatLite::WriteEnum(13616, this->type(), output);1362}13631364// .opencv_tensorflow.TensorShapeProto shape = 7;1365if (has_shape()) {1366::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(13677, *value_.shape_, output);1368}13691370// .opencv_tensorflow.TensorProto tensor = 8;1371if (has_tensor()) {1372::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(13738, *value_.tensor_, output);1374}13751376// string placeholder = 9;1377if (has_placeholder()) {1378::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1379this->placeholder().data(), static_cast<int>(this->placeholder().length()),1380::google::protobuf::internal::WireFormatLite::SERIALIZE,1381"opencv_tensorflow.AttrValue.placeholder");1382::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(13839, this->placeholder(), output);1384}13851386// .opencv_tensorflow.NameAttrList func = 10;1387if (has_func()) {1388::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(138910, *value_.func_, output);1390}13911392if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1393::google::protobuf::internal::WireFormat::SerializeUnknownFields(1394(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);1395}1396// @@protoc_insertion_point(serialize_end:opencv_tensorflow.AttrValue)1397}13981399::google::protobuf::uint8* AttrValue::InternalSerializeWithCachedSizesToArray(1400bool deterministic, ::google::protobuf::uint8* target) const {1401(void)deterministic; // Unused1402// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.AttrValue)1403::google::protobuf::uint32 cached_has_bits = 0;1404(void) cached_has_bits;14051406// .opencv_tensorflow.AttrValue.ListValue list = 1;1407if (has_list()) {1408target = ::google::protobuf::internal::WireFormatLite::1409InternalWriteMessageToArray(14101, *value_.list_, deterministic, target);1411}14121413// bytes s = 2;1414if (has_s()) {1415target =1416::google::protobuf::internal::WireFormatLite::WriteBytesToArray(14172, this->s(), target);1418}14191420// int64 i = 3;1421if (has_i()) {1422target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->i(), target);1423}14241425// float f = 4;1426if (has_f()) {1427target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->f(), target);1428}14291430// bool b = 5;1431if (has_b()) {1432target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->b(), target);1433}14341435// .opencv_tensorflow.DataType type = 6;1436if (has_type()) {1437target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(14386, this->type(), target);1439}14401441// .opencv_tensorflow.TensorShapeProto shape = 7;1442if (has_shape()) {1443target = ::google::protobuf::internal::WireFormatLite::1444InternalWriteMessageToArray(14457, *value_.shape_, deterministic, target);1446}14471448// .opencv_tensorflow.TensorProto tensor = 8;1449if (has_tensor()) {1450target = ::google::protobuf::internal::WireFormatLite::1451InternalWriteMessageToArray(14528, *value_.tensor_, deterministic, target);1453}14541455// string placeholder = 9;1456if (has_placeholder()) {1457::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1458this->placeholder().data(), static_cast<int>(this->placeholder().length()),1459::google::protobuf::internal::WireFormatLite::SERIALIZE,1460"opencv_tensorflow.AttrValue.placeholder");1461target =1462::google::protobuf::internal::WireFormatLite::WriteStringToArray(14639, this->placeholder(), target);1464}14651466// .opencv_tensorflow.NameAttrList func = 10;1467if (has_func()) {1468target = ::google::protobuf::internal::WireFormatLite::1469InternalWriteMessageToArray(147010, *value_.func_, deterministic, target);1471}14721473if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1474target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1475(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);1476}1477// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.AttrValue)1478return target;1479}14801481size_t AttrValue::ByteSizeLong() const {1482// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.AttrValue)1483size_t total_size = 0;14841485if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1486total_size +=1487::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1488(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));1489}1490switch (value_case()) {1491// bytes s = 2;1492case kS: {1493total_size += 1 +1494::google::protobuf::internal::WireFormatLite::BytesSize(1495this->s());1496break;1497}1498// int64 i = 3;1499case kI: {1500total_size += 1 +1501::google::protobuf::internal::WireFormatLite::Int64Size(1502this->i());1503break;1504}1505// float f = 4;1506case kF: {1507total_size += 1 + 4;1508break;1509}1510// bool b = 5;1511case kB: {1512total_size += 1 + 1;1513break;1514}1515// .opencv_tensorflow.DataType type = 6;1516case kType: {1517total_size += 1 +1518::google::protobuf::internal::WireFormatLite::EnumSize(this->type());1519break;1520}1521// .opencv_tensorflow.TensorShapeProto shape = 7;1522case kShape: {1523total_size += 1 +1524::google::protobuf::internal::WireFormatLite::MessageSize(1525*value_.shape_);1526break;1527}1528// .opencv_tensorflow.TensorProto tensor = 8;1529case kTensor: {1530total_size += 1 +1531::google::protobuf::internal::WireFormatLite::MessageSize(1532*value_.tensor_);1533break;1534}1535// .opencv_tensorflow.AttrValue.ListValue list = 1;1536case kList: {1537total_size += 1 +1538::google::protobuf::internal::WireFormatLite::MessageSize(1539*value_.list_);1540break;1541}1542// .opencv_tensorflow.NameAttrList func = 10;1543case kFunc: {1544total_size += 1 +1545::google::protobuf::internal::WireFormatLite::MessageSize(1546*value_.func_);1547break;1548}1549// string placeholder = 9;1550case kPlaceholder: {1551total_size += 1 +1552::google::protobuf::internal::WireFormatLite::StringSize(1553this->placeholder());1554break;1555}1556case VALUE_NOT_SET: {1557break;1558}1559}1560int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1561GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1562_cached_size_ = cached_size;1563GOOGLE_SAFE_CONCURRENT_WRITES_END();1564return total_size;1565}15661567void AttrValue::MergeFrom(const ::google::protobuf::Message& from) {1568// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.AttrValue)1569GOOGLE_DCHECK_NE(&from, this);1570const AttrValue* source =1571::google::protobuf::internal::DynamicCastToGenerated<const AttrValue>(1572&from);1573if (source == NULL) {1574// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.AttrValue)1575::google::protobuf::internal::ReflectionOps::Merge(from, this);1576} else {1577// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.AttrValue)1578MergeFrom(*source);1579}1580}15811582void AttrValue::MergeFrom(const AttrValue& from) {1583// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.AttrValue)1584GOOGLE_DCHECK_NE(&from, this);1585_internal_metadata_.MergeFrom(from._internal_metadata_);1586::google::protobuf::uint32 cached_has_bits = 0;1587(void) cached_has_bits;15881589switch (from.value_case()) {1590case kS: {1591set_s(from.s());1592break;1593}1594case kI: {1595set_i(from.i());1596break;1597}1598case kF: {1599set_f(from.f());1600break;1601}1602case kB: {1603set_b(from.b());1604break;1605}1606case kType: {1607set_type(from.type());1608break;1609}1610case kShape: {1611mutable_shape()->::opencv_tensorflow::TensorShapeProto::MergeFrom(from.shape());1612break;1613}1614case kTensor: {1615mutable_tensor()->::opencv_tensorflow::TensorProto::MergeFrom(from.tensor());1616break;1617}1618case kList: {1619mutable_list()->::opencv_tensorflow::AttrValue_ListValue::MergeFrom(from.list());1620break;1621}1622case kFunc: {1623mutable_func()->::opencv_tensorflow::NameAttrList::MergeFrom(from.func());1624break;1625}1626case kPlaceholder: {1627set_placeholder(from.placeholder());1628break;1629}1630case VALUE_NOT_SET: {1631break;1632}1633}1634}16351636void AttrValue::CopyFrom(const ::google::protobuf::Message& from) {1637// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.AttrValue)1638if (&from == this) return;1639Clear();1640MergeFrom(from);1641}16421643void AttrValue::CopyFrom(const AttrValue& from) {1644// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.AttrValue)1645if (&from == this) return;1646Clear();1647MergeFrom(from);1648}16491650bool AttrValue::IsInitialized() const {1651return true;1652}16531654void AttrValue::Swap(AttrValue* other) {1655if (other == this) return;1656if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {1657InternalSwap(other);1658} else {1659AttrValue* temp = New(GetArenaNoVirtual());1660temp->MergeFrom(*other);1661other->CopyFrom(*this);1662InternalSwap(temp);1663if (GetArenaNoVirtual() == NULL) {1664delete temp;1665}1666}1667}1668void AttrValue::UnsafeArenaSwap(AttrValue* other) {1669if (other == this) return;1670GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());1671InternalSwap(other);1672}1673void AttrValue::InternalSwap(AttrValue* other) {1674using std::swap;1675swap(value_, other->value_);1676swap(_oneof_case_[0], other->_oneof_case_[0]);1677_internal_metadata_.Swap(&other->_internal_metadata_);1678swap(_cached_size_, other->_cached_size_);1679}16801681::google::protobuf::Metadata AttrValue::GetMetadata() const {1682protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();1683return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];1684}168516861687// ===================================================================16881689NameAttrList_AttrEntry_DoNotUse::NameAttrList_AttrEntry_DoNotUse() {}1690NameAttrList_AttrEntry_DoNotUse::NameAttrList_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}1691void NameAttrList_AttrEntry_DoNotUse::MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other) {1692MergeFromInternal(other);1693}1694::google::protobuf::Metadata NameAttrList_AttrEntry_DoNotUse::GetMetadata() const {1695::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();1696return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[2];1697}1698void NameAttrList_AttrEntry_DoNotUse::MergeFrom(1699const ::google::protobuf::Message& other) {1700::google::protobuf::Message::MergeFrom(other);1701}170217031704// ===================================================================17051706void NameAttrList::InitAsDefaultInstance() {1707}1708#if !defined(_MSC_VER) || _MSC_VER >= 19001709const int NameAttrList::kNameFieldNumber;1710const int NameAttrList::kAttrFieldNumber;1711#endif // !defined(_MSC_VER) || _MSC_VER >= 190017121713NameAttrList::NameAttrList()1714: ::google::protobuf::Message(), _internal_metadata_(NULL) {1715if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {1716::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();1717}1718SharedCtor();1719// @@protoc_insertion_point(constructor:opencv_tensorflow.NameAttrList)1720}1721NameAttrList::NameAttrList(::google::protobuf::Arena* arena)1722: ::google::protobuf::Message(),1723_internal_metadata_(arena),1724attr_(arena) {1725::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();1726SharedCtor();1727RegisterArenaDtor(arena);1728// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.NameAttrList)1729}1730NameAttrList::NameAttrList(const NameAttrList& from)1731: ::google::protobuf::Message(),1732_internal_metadata_(NULL),1733_cached_size_(0) {1734_internal_metadata_.MergeFrom(from._internal_metadata_);1735attr_.MergeFrom(from.attr_);1736name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1737if (from.name().size() > 0) {1738name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),1739GetArenaNoVirtual());1740}1741// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.NameAttrList)1742}17431744void NameAttrList::SharedCtor() {1745name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1746_cached_size_ = 0;1747}17481749NameAttrList::~NameAttrList() {1750// @@protoc_insertion_point(destructor:opencv_tensorflow.NameAttrList)1751SharedDtor();1752}17531754void NameAttrList::SharedDtor() {1755GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);1756name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1757}17581759void NameAttrList::ArenaDtor(void* object) {1760NameAttrList* _this = reinterpret_cast< NameAttrList* >(object);1761(void)_this;1762}1763void NameAttrList::RegisterArenaDtor(::google::protobuf::Arena* arena) {1764}1765void NameAttrList::SetCachedSize(int size) const {1766GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1767_cached_size_ = size;1768GOOGLE_SAFE_CONCURRENT_WRITES_END();1769}1770const ::google::protobuf::Descriptor* NameAttrList::descriptor() {1771::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();1772return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;1773}17741775const NameAttrList& NameAttrList::default_instance() {1776::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();1777return *internal_default_instance();1778}17791780NameAttrList* NameAttrList::New(::google::protobuf::Arena* arena) const {1781return ::google::protobuf::Arena::CreateMessage<NameAttrList>(arena);1782}17831784void NameAttrList::Clear() {1785// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.NameAttrList)1786::google::protobuf::uint32 cached_has_bits = 0;1787// Prevent compiler warnings about cached_has_bits being unused1788(void) cached_has_bits;17891790attr_.Clear();1791name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());1792_internal_metadata_.Clear();1793}17941795bool NameAttrList::MergePartialFromCodedStream(1796::google::protobuf::io::CodedInputStream* input) {1797#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure1798::google::protobuf::uint32 tag;1799// @@protoc_insertion_point(parse_start:opencv_tensorflow.NameAttrList)1800for (;;) {1801::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);1802tag = p.first;1803if (!p.second) goto handle_unusual;1804switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {1805// string name = 1;1806case 1: {1807if (static_cast< ::google::protobuf::uint8>(tag) ==1808static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {1809DO_(::google::protobuf::internal::WireFormatLite::ReadString(1810input, this->mutable_name()));1811DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1812this->name().data(), static_cast<int>(this->name().length()),1813::google::protobuf::internal::WireFormatLite::PARSE,1814"opencv_tensorflow.NameAttrList.name"));1815} else {1816goto handle_unusual;1817}1818break;1819}18201821// map<string, .opencv_tensorflow.AttrValue> attr = 2;1822case 2: {1823if (static_cast< ::google::protobuf::uint8>(tag) ==1824static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {1825NameAttrList_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<1826NameAttrList_AttrEntry_DoNotUse,1827::std::string, ::opencv_tensorflow::AttrValue,1828::google::protobuf::internal::WireFormatLite::TYPE_STRING,1829::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,18300 >,1831::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue > > parser(&attr_);1832DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(1833input, &parser));1834DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1835parser.key().data(), static_cast<int>(parser.key().length()),1836::google::protobuf::internal::WireFormatLite::PARSE,1837"opencv_tensorflow.NameAttrList.AttrEntry.key"));1838} else {1839goto handle_unusual;1840}1841break;1842}18431844default: {1845handle_unusual:1846if (tag == 0) {1847goto success;1848}1849DO_(::google::protobuf::internal::WireFormat::SkipField(1850input, tag, _internal_metadata_.mutable_unknown_fields()));1851break;1852}1853}1854}1855success:1856// @@protoc_insertion_point(parse_success:opencv_tensorflow.NameAttrList)1857return true;1858failure:1859// @@protoc_insertion_point(parse_failure:opencv_tensorflow.NameAttrList)1860return false;1861#undef DO_1862}18631864void NameAttrList::SerializeWithCachedSizes(1865::google::protobuf::io::CodedOutputStream* output) const {1866// @@protoc_insertion_point(serialize_start:opencv_tensorflow.NameAttrList)1867::google::protobuf::uint32 cached_has_bits = 0;1868(void) cached_has_bits;18691870// string name = 1;1871if (this->name().size() > 0) {1872::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1873this->name().data(), static_cast<int>(this->name().length()),1874::google::protobuf::internal::WireFormatLite::SERIALIZE,1875"opencv_tensorflow.NameAttrList.name");1876::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(18771, this->name(), output);1878}18791880// map<string, .opencv_tensorflow.AttrValue> attr = 2;1881if (!this->attr().empty()) {1882typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer1883ConstPtr;1884typedef ConstPtr SortItem;1885typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;1886struct Utf8Check {1887static void Check(ConstPtr p) {1888::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1889p->first.data(), static_cast<int>(p->first.length()),1890::google::protobuf::internal::WireFormatLite::SERIALIZE,1891"opencv_tensorflow.NameAttrList.AttrEntry.key");1892}1893};18941895if (output->IsSerializationDeterministic() &&1896this->attr().size() > 1) {1897::google::protobuf::scoped_array<SortItem> items(1898new SortItem[this->attr().size()]);1899typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;1900size_type n = 0;1901for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1902it = this->attr().begin();1903it != this->attr().end(); ++it, ++n) {1904items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);1905}1906::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());1907::google::protobuf::scoped_ptr<NameAttrList_AttrEntry_DoNotUse> entry;1908for (size_type i = 0; i < n; i++) {1909entry.reset(attr_.NewEntryWrapper(1910items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));1911::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(19122, *entry, output);1913if (entry->GetArena() != NULL) {1914entry.release();1915}1916Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);1917}1918} else {1919::google::protobuf::scoped_ptr<NameAttrList_AttrEntry_DoNotUse> entry;1920for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1921it = this->attr().begin();1922it != this->attr().end(); ++it) {1923entry.reset(attr_.NewEntryWrapper(1924it->first, it->second));1925::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(19262, *entry, output);1927if (entry->GetArena() != NULL) {1928entry.release();1929}1930Utf8Check::Check(&*it);1931}1932}1933}19341935if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1936::google::protobuf::internal::WireFormat::SerializeUnknownFields(1937(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);1938}1939// @@protoc_insertion_point(serialize_end:opencv_tensorflow.NameAttrList)1940}19411942::google::protobuf::uint8* NameAttrList::InternalSerializeWithCachedSizesToArray(1943bool deterministic, ::google::protobuf::uint8* target) const {1944(void)deterministic; // Unused1945// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.NameAttrList)1946::google::protobuf::uint32 cached_has_bits = 0;1947(void) cached_has_bits;19481949// string name = 1;1950if (this->name().size() > 0) {1951::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1952this->name().data(), static_cast<int>(this->name().length()),1953::google::protobuf::internal::WireFormatLite::SERIALIZE,1954"opencv_tensorflow.NameAttrList.name");1955target =1956::google::protobuf::internal::WireFormatLite::WriteStringToArray(19571, this->name(), target);1958}19591960// map<string, .opencv_tensorflow.AttrValue> attr = 2;1961if (!this->attr().empty()) {1962typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer1963ConstPtr;1964typedef ConstPtr SortItem;1965typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;1966struct Utf8Check {1967static void Check(ConstPtr p) {1968::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1969p->first.data(), static_cast<int>(p->first.length()),1970::google::protobuf::internal::WireFormatLite::SERIALIZE,1971"opencv_tensorflow.NameAttrList.AttrEntry.key");1972}1973};19741975if (deterministic &&1976this->attr().size() > 1) {1977::google::protobuf::scoped_array<SortItem> items(1978new SortItem[this->attr().size()]);1979typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;1980size_type n = 0;1981for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1982it = this->attr().begin();1983it != this->attr().end(); ++it, ++n) {1984items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);1985}1986::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());1987::google::protobuf::scoped_ptr<NameAttrList_AttrEntry_DoNotUse> entry;1988for (size_type i = 0; i < n; i++) {1989entry.reset(attr_.NewEntryWrapper(1990items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));1991target = ::google::protobuf::internal::WireFormatLite::1992InternalWriteMessageNoVirtualToArray(19932, *entry, deterministic, target);1994;1995if (entry->GetArena() != NULL) {1996entry.release();1997}1998Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);1999}2000} else {2001::google::protobuf::scoped_ptr<NameAttrList_AttrEntry_DoNotUse> entry;2002for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator2003it = this->attr().begin();2004it != this->attr().end(); ++it) {2005entry.reset(attr_.NewEntryWrapper(2006it->first, it->second));2007target = ::google::protobuf::internal::WireFormatLite::2008InternalWriteMessageNoVirtualToArray(20092, *entry, deterministic, target);2010;2011if (entry->GetArena() != NULL) {2012entry.release();2013}2014Utf8Check::Check(&*it);2015}2016}2017}20182019if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {2020target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(2021(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);2022}2023// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.NameAttrList)2024return target;2025}20262027size_t NameAttrList::ByteSizeLong() const {2028// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.NameAttrList)2029size_t total_size = 0;20302031if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {2032total_size +=2033::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(2034(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));2035}2036// map<string, .opencv_tensorflow.AttrValue> attr = 2;2037total_size += 1 *2038::google::protobuf::internal::FromIntSize(this->attr_size());2039{2040::google::protobuf::scoped_ptr<NameAttrList_AttrEntry_DoNotUse> entry;2041for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator2042it = this->attr().begin();2043it != this->attr().end(); ++it) {2044if (entry.get() != NULL && entry->GetArena() != NULL) {2045entry.release();2046}2047entry.reset(attr_.NewEntryWrapper(it->first, it->second));2048total_size += ::google::protobuf::internal::WireFormatLite::2049MessageSizeNoVirtual(*entry);2050}2051if (entry.get() != NULL && entry->GetArena() != NULL) {2052entry.release();2053}2054}20552056// string name = 1;2057if (this->name().size() > 0) {2058total_size += 1 +2059::google::protobuf::internal::WireFormatLite::StringSize(2060this->name());2061}20622063int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);2064GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();2065_cached_size_ = cached_size;2066GOOGLE_SAFE_CONCURRENT_WRITES_END();2067return total_size;2068}20692070void NameAttrList::MergeFrom(const ::google::protobuf::Message& from) {2071// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.NameAttrList)2072GOOGLE_DCHECK_NE(&from, this);2073const NameAttrList* source =2074::google::protobuf::internal::DynamicCastToGenerated<const NameAttrList>(2075&from);2076if (source == NULL) {2077// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.NameAttrList)2078::google::protobuf::internal::ReflectionOps::Merge(from, this);2079} else {2080// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.NameAttrList)2081MergeFrom(*source);2082}2083}20842085void NameAttrList::MergeFrom(const NameAttrList& from) {2086// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.NameAttrList)2087GOOGLE_DCHECK_NE(&from, this);2088_internal_metadata_.MergeFrom(from._internal_metadata_);2089::google::protobuf::uint32 cached_has_bits = 0;2090(void) cached_has_bits;20912092attr_.MergeFrom(from.attr_);2093if (from.name().size() > 0) {2094set_name(from.name());2095}2096}20972098void NameAttrList::CopyFrom(const ::google::protobuf::Message& from) {2099// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.NameAttrList)2100if (&from == this) return;2101Clear();2102MergeFrom(from);2103}21042105void NameAttrList::CopyFrom(const NameAttrList& from) {2106// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.NameAttrList)2107if (&from == this) return;2108Clear();2109MergeFrom(from);2110}21112112bool NameAttrList::IsInitialized() const {2113return true;2114}21152116void NameAttrList::Swap(NameAttrList* other) {2117if (other == this) return;2118if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {2119InternalSwap(other);2120} else {2121NameAttrList* temp = New(GetArenaNoVirtual());2122temp->MergeFrom(*other);2123other->CopyFrom(*this);2124InternalSwap(temp);2125if (GetArenaNoVirtual() == NULL) {2126delete temp;2127}2128}2129}2130void NameAttrList::UnsafeArenaSwap(NameAttrList* other) {2131if (other == this) return;2132GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());2133InternalSwap(other);2134}2135void NameAttrList::InternalSwap(NameAttrList* other) {2136using std::swap;2137attr_.Swap(&other->attr_);2138name_.Swap(&other->name_);2139_internal_metadata_.Swap(&other->_internal_metadata_);2140swap(_cached_size_, other->_cached_size_);2141}21422143::google::protobuf::Metadata NameAttrList::GetMetadata() const {2144protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();2145return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];2146}214721482149// @@protoc_insertion_point(namespace_scope)2150} // namespace opencv_tensorflow21512152// @@protoc_insertion_point(global_scope)215321542155