1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: op_def.proto
- #include "op_def.pb.h"
- #include <algorithm>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- PROTOBUF_PRAGMA_INIT_SEG
- namespace opencv_tensorflow {
- constexpr OpDef_ArgDef::OpDef_ArgDef(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , type_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , number_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , type_list_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , type_(0)
- , is_ref_(false){}
- struct OpDef_ArgDefDefaultTypeInternal {
- constexpr OpDef_ArgDefDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OpDef_ArgDefDefaultTypeInternal() {}
- union {
- OpDef_ArgDef _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_;
- constexpr OpDef_AttrDef::OpDef_AttrDef(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , default_value_(nullptr)
- , allowed_values_(nullptr)
- , minimum_(int64_t{0})
- , has_minimum_(false){}
- struct OpDef_AttrDefDefaultTypeInternal {
- constexpr OpDef_AttrDefDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OpDef_AttrDefDefaultTypeInternal() {}
- union {
- OpDef_AttrDef _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_;
- constexpr OpDef::OpDef(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : input_arg_()
- , output_arg_()
- , attr_()
- , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , summary_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , deprecation_(nullptr)
- , is_commutative_(false)
- , is_aggregate_(false)
- , is_stateful_(false)
- , allows_uninitialized_input_(false){}
- struct OpDefDefaultTypeInternal {
- constexpr OpDefDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OpDefDefaultTypeInternal() {}
- union {
- OpDef _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDefDefaultTypeInternal _OpDef_default_instance_;
- constexpr OpDeprecation::OpDeprecation(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : explanation_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , version_(0){}
- struct OpDeprecationDefaultTypeInternal {
- constexpr OpDeprecationDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OpDeprecationDefaultTypeInternal() {}
- union {
- OpDeprecation _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_;
- constexpr OpList::OpList(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : op_(){}
- struct OpListDefaultTypeInternal {
- constexpr OpListDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OpListDefaultTypeInternal() {}
- union {
- OpList _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpListDefaultTypeInternal _OpList_default_instance_;
- } // namespace opencv_tensorflow
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_op_5fdef_2eproto[5];
- static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_op_5fdef_2eproto = nullptr;
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_op_5fdef_2eproto = nullptr;
- const uint32_t TableStruct_op_5fdef_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, name_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, description_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_attr_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, number_attr_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_list_attr_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, is_ref_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, name_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, type_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, default_value_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, description_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, has_minimum_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, minimum_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, allowed_values_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, name_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, input_arg_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, output_arg_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, attr_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, deprecation_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, summary_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, description_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_commutative_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_aggregate_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_stateful_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, allows_uninitialized_input_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, version_),
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, explanation_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpList, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpList, op_),
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::opencv_tensorflow::OpDef_ArgDef)},
- { 13, -1, -1, sizeof(::opencv_tensorflow::OpDef_AttrDef)},
- { 26, -1, -1, sizeof(::opencv_tensorflow::OpDef)},
- { 43, -1, -1, sizeof(::opencv_tensorflow::OpDeprecation)},
- { 51, -1, -1, sizeof(::opencv_tensorflow::OpList)},
- };
- static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_ArgDef_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_AttrDef_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDeprecation_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpList_default_instance_),
- };
- const char descriptor_table_protodef_op_5fdef_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\014op_def.proto\022\021opencv_tensorflow\032\020attr_"
- "value.proto\032\013types.proto\"\351\005\n\005OpDef\022\014\n\004na"
- "me\030\001 \001(\t\0222\n\tinput_arg\030\002 \003(\0132\037.opencv_ten"
- "sorflow.OpDef.ArgDef\0223\n\noutput_arg\030\003 \003(\013"
- "2\037.opencv_tensorflow.OpDef.ArgDef\022.\n\004att"
- "r\030\004 \003(\0132 .opencv_tensorflow.OpDef.AttrDe"
- "f\0225\n\013deprecation\030\010 \001(\0132 .opencv_tensorfl"
- "ow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013des"
- "cription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024"
- "\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001("
- "\010\022\"\n\032allows_uninitialized_input\030\023 \001(\010\032\246\001"
- "\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 "
- "\001(\t\022)\n\004type\030\003 \001(\0162\033.opencv_tensorflow.Da"
- "taType\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr"
- "\030\005 \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref"
- "\030\020 \001(\010\032\313\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type"
- "\030\002 \001(\t\0223\n\rdefault_value\030\003 \001(\0132\034.opencv_t"
- "ensorflow.AttrValue\022\023\n\013description\030\004 \001(\t"
- "\022\023\n\013has_minimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\0224"
- "\n\016allowed_values\030\007 \001(\0132\034.opencv_tensorfl"
- "ow.AttrValue\"5\n\rOpDeprecation\022\017\n\007version"
- "\030\001 \001(\005\022\023\n\013explanation\030\002 \001(\t\".\n\006OpList\022$\n"
- "\002op\030\001 \003(\0132\030.opencv_tensorflow.OpDefB,\n\030o"
- "rg.tensorflow.frameworkB\013OpDefProtosP\001\370\001"
- "\001b\006proto3"
- ;
- static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_op_5fdef_2eproto_deps[2] = {
- &::descriptor_table_attr_5fvalue_2eproto,
- &::descriptor_table_types_2eproto,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_op_5fdef_2eproto_once;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_op_5fdef_2eproto = {
- false, false, 969, descriptor_table_protodef_op_5fdef_2eproto, "op_def.proto",
- &descriptor_table_op_5fdef_2eproto_once, descriptor_table_op_5fdef_2eproto_deps, 2, 5,
- schemas, file_default_instances, TableStruct_op_5fdef_2eproto::offsets,
- file_level_metadata_op_5fdef_2eproto, file_level_enum_descriptors_op_5fdef_2eproto, file_level_service_descriptors_op_5fdef_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_op_5fdef_2eproto_getter() {
- return &descriptor_table_op_5fdef_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_op_5fdef_2eproto(&descriptor_table_op_5fdef_2eproto);
- namespace opencv_tensorflow {
- // ===================================================================
- class OpDef_ArgDef::_Internal {
- public:
- };
- OpDef_ArgDef::OpDef_ArgDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.ArgDef)
- }
- OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_description().empty()) {
- description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
- GetArenaForAllocation());
- }
- type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type_attr().empty()) {
- type_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_attr(),
- GetArenaForAllocation());
- }
- number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_number_attr().empty()) {
- number_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_number_attr(),
- GetArenaForAllocation());
- }
- type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type_list_attr().empty()) {
- type_list_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_list_attr(),
- GetArenaForAllocation());
- }
- ::memcpy(&type_, &from.type_,
- static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
- reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
- // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.ArgDef)
- }
- inline void OpDef_ArgDef::SharedCtor() {
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
- reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
- }
- OpDef_ArgDef::~OpDef_ArgDef() {
- // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.ArgDef)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void OpDef_ArgDef::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- type_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- number_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- type_list_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void OpDef_ArgDef::ArenaDtor(void* object) {
- OpDef_ArgDef* _this = reinterpret_cast< OpDef_ArgDef* >(object);
- (void)_this;
- }
- void OpDef_ArgDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void OpDef_ArgDef::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void OpDef_ArgDef::Clear() {
- // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.ArgDef)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- name_.ClearToEmpty();
- description_.ClearToEmpty();
- type_attr_.ClearToEmpty();
- number_attr_.ClearToEmpty();
- type_list_attr_.ClearToEmpty();
- ::memset(&type_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&is_ref_) -
- reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* OpDef_ArgDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string description = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_description();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.description"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // .opencv_tensorflow.DataType type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::opencv_tensorflow::DataType>(val));
- } else
- goto handle_unusual;
- continue;
- // string type_attr = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_type_attr();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.type_attr"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string number_attr = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
- auto str = _internal_mutable_number_attr();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.number_attr"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string type_list_attr = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
- auto str = _internal_mutable_type_list_attr();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.type_list_attr"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool is_ref = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
- is_ref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* OpDef_ArgDef::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.ArgDef)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.ArgDef.name");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_name(), target);
- }
- // string description = 2;
- if (!this->_internal_description().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.ArgDef.description");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_description(), target);
- }
- // .opencv_tensorflow.DataType type = 3;
- if (this->_internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 3, this->_internal_type(), target);
- }
- // string type_attr = 4;
- if (!this->_internal_type_attr().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type_attr().data(), static_cast<int>(this->_internal_type_attr().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.ArgDef.type_attr");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_type_attr(), target);
- }
- // string number_attr = 5;
- if (!this->_internal_number_attr().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_number_attr().data(), static_cast<int>(this->_internal_number_attr().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.ArgDef.number_attr");
- target = stream->WriteStringMaybeAliased(
- 5, this->_internal_number_attr(), target);
- }
- // string type_list_attr = 6;
- if (!this->_internal_type_list_attr().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type_list_attr().data(), static_cast<int>(this->_internal_type_list_attr().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.ArgDef.type_list_attr");
- target = stream->WriteStringMaybeAliased(
- 6, this->_internal_type_list_attr(), target);
- }
- // bool is_ref = 16;
- if (this->_internal_is_ref() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_ref(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.ArgDef)
- return target;
- }
- size_t OpDef_ArgDef::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.ArgDef)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string description = 2;
- if (!this->_internal_description().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_description());
- }
- // string type_attr = 4;
- if (!this->_internal_type_attr().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type_attr());
- }
- // string number_attr = 5;
- if (!this->_internal_number_attr().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_number_attr());
- }
- // string type_list_attr = 6;
- if (!this->_internal_type_list_attr().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type_list_attr());
- }
- // .opencv_tensorflow.DataType type = 3;
- if (this->_internal_type() != 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
- }
- // bool is_ref = 16;
- if (this->_internal_is_ref() != 0) {
- total_size += 2 + 1;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef_ArgDef::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- OpDef_ArgDef::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef_ArgDef::GetClassData() const { return &_class_data_; }
- void OpDef_ArgDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<OpDef_ArgDef *>(to)->MergeFrom(
- static_cast<const OpDef_ArgDef &>(from));
- }
- void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.ArgDef)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (!from._internal_description().empty()) {
- _internal_set_description(from._internal_description());
- }
- if (!from._internal_type_attr().empty()) {
- _internal_set_type_attr(from._internal_type_attr());
- }
- if (!from._internal_number_attr().empty()) {
- _internal_set_number_attr(from._internal_number_attr());
- }
- if (!from._internal_type_list_attr().empty()) {
- _internal_set_type_list_attr(from._internal_type_list_attr());
- }
- if (from._internal_type() != 0) {
- _internal_set_type(from._internal_type());
- }
- if (from._internal_is_ref() != 0) {
- _internal_set_is_ref(from._internal_is_ref());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.ArgDef)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OpDef_ArgDef::IsInitialized() const {
- return true;
- }
- void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &description_, lhs_arena,
- &other->description_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_attr_, lhs_arena,
- &other->type_attr_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &number_attr_, lhs_arena,
- &other->number_attr_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_list_attr_, lhs_arena,
- &other->type_list_attr_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(OpDef_ArgDef, is_ref_)
- + sizeof(OpDef_ArgDef::is_ref_)
- - PROTOBUF_FIELD_OFFSET(OpDef_ArgDef, type_)>(
- reinterpret_cast<char*>(&type_),
- reinterpret_cast<char*>(&other->type_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata OpDef_ArgDef::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
- file_level_metadata_op_5fdef_2eproto[0]);
- }
- // ===================================================================
- class OpDef_AttrDef::_Internal {
- public:
- static const ::opencv_tensorflow::AttrValue& default_value(const OpDef_AttrDef* msg);
- static const ::opencv_tensorflow::AttrValue& allowed_values(const OpDef_AttrDef* msg);
- };
- const ::opencv_tensorflow::AttrValue&
- OpDef_AttrDef::_Internal::default_value(const OpDef_AttrDef* msg) {
- return *msg->default_value_;
- }
- const ::opencv_tensorflow::AttrValue&
- OpDef_AttrDef::_Internal::allowed_values(const OpDef_AttrDef* msg) {
- return *msg->allowed_values_;
- }
- void OpDef_AttrDef::clear_default_value() {
- if (GetArenaForAllocation() == nullptr && default_value_ != nullptr) {
- delete default_value_;
- }
- default_value_ = nullptr;
- }
- void OpDef_AttrDef::clear_allowed_values() {
- if (GetArenaForAllocation() == nullptr && allowed_values_ != nullptr) {
- delete allowed_values_;
- }
- allowed_values_ = nullptr;
- }
- OpDef_AttrDef::OpDef_AttrDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.AttrDef)
- }
- OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type().empty()) {
- type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
- GetArenaForAllocation());
- }
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_description().empty()) {
- description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
- GetArenaForAllocation());
- }
- if (from._internal_has_default_value()) {
- default_value_ = new ::opencv_tensorflow::AttrValue(*from.default_value_);
- } else {
- default_value_ = nullptr;
- }
- if (from._internal_has_allowed_values()) {
- allowed_values_ = new ::opencv_tensorflow::AttrValue(*from.allowed_values_);
- } else {
- allowed_values_ = nullptr;
- }
- ::memcpy(&minimum_, &from.minimum_,
- static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
- reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
- // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.AttrDef)
- }
- inline void OpDef_AttrDef::SharedCtor() {
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&default_value_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
- reinterpret_cast<char*>(&default_value_)) + sizeof(has_minimum_));
- }
- OpDef_AttrDef::~OpDef_AttrDef() {
- // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.AttrDef)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void OpDef_AttrDef::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete default_value_;
- if (this != internal_default_instance()) delete allowed_values_;
- }
- void OpDef_AttrDef::ArenaDtor(void* object) {
- OpDef_AttrDef* _this = reinterpret_cast< OpDef_AttrDef* >(object);
- (void)_this;
- }
- void OpDef_AttrDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void OpDef_AttrDef::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void OpDef_AttrDef::Clear() {
- // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.AttrDef)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- name_.ClearToEmpty();
- type_.ClearToEmpty();
- description_.ClearToEmpty();
- if (GetArenaForAllocation() == nullptr && default_value_ != nullptr) {
- delete default_value_;
- }
- default_value_ = nullptr;
- if (GetArenaForAllocation() == nullptr && allowed_values_ != nullptr) {
- delete allowed_values_;
- }
- allowed_values_ = nullptr;
- ::memset(&minimum_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&has_minimum_) -
- reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* OpDef_AttrDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_type();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.type"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // .opencv_tensorflow.AttrValue default_value = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_default_value(), ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string description = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_description();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.description"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool has_minimum = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
- has_minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int64 minimum = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
- minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // .opencv_tensorflow.AttrValue allowed_values = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
- ptr = ctx->ParseMessage(_internal_mutable_allowed_values(), ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* OpDef_AttrDef::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.AttrDef)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.AttrDef.name");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_name(), target);
- }
- // string type = 2;
- if (!this->_internal_type().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.AttrDef.type");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_type(), target);
- }
- // .opencv_tensorflow.AttrValue default_value = 3;
- if (this->_internal_has_default_value()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 3, _Internal::default_value(this), target, stream);
- }
- // string description = 4;
- if (!this->_internal_description().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.AttrDef.description");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_description(), target);
- }
- // bool has_minimum = 5;
- if (this->_internal_has_minimum() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_has_minimum(), target);
- }
- // int64 minimum = 6;
- if (this->_internal_minimum() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_minimum(), target);
- }
- // .opencv_tensorflow.AttrValue allowed_values = 7;
- if (this->_internal_has_allowed_values()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 7, _Internal::allowed_values(this), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.AttrDef)
- return target;
- }
- size_t OpDef_AttrDef::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.AttrDef)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string type = 2;
- if (!this->_internal_type().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type());
- }
- // string description = 4;
- if (!this->_internal_description().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_description());
- }
- // .opencv_tensorflow.AttrValue default_value = 3;
- if (this->_internal_has_default_value()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *default_value_);
- }
- // .opencv_tensorflow.AttrValue allowed_values = 7;
- if (this->_internal_has_allowed_values()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *allowed_values_);
- }
- // int64 minimum = 6;
- if (this->_internal_minimum() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_minimum());
- }
- // bool has_minimum = 5;
- if (this->_internal_has_minimum() != 0) {
- total_size += 1 + 1;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef_AttrDef::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- OpDef_AttrDef::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef_AttrDef::GetClassData() const { return &_class_data_; }
- void OpDef_AttrDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<OpDef_AttrDef *>(to)->MergeFrom(
- static_cast<const OpDef_AttrDef &>(from));
- }
- void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.AttrDef)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (!from._internal_type().empty()) {
- _internal_set_type(from._internal_type());
- }
- if (!from._internal_description().empty()) {
- _internal_set_description(from._internal_description());
- }
- if (from._internal_has_default_value()) {
- _internal_mutable_default_value()->::opencv_tensorflow::AttrValue::MergeFrom(from._internal_default_value());
- }
- if (from._internal_has_allowed_values()) {
- _internal_mutable_allowed_values()->::opencv_tensorflow::AttrValue::MergeFrom(from._internal_allowed_values());
- }
- if (from._internal_minimum() != 0) {
- _internal_set_minimum(from._internal_minimum());
- }
- if (from._internal_has_minimum() != 0) {
- _internal_set_has_minimum(from._internal_has_minimum());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.AttrDef)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OpDef_AttrDef::IsInitialized() const {
- return true;
- }
- void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_, lhs_arena,
- &other->type_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &description_, lhs_arena,
- &other->description_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(OpDef_AttrDef, has_minimum_)
- + sizeof(OpDef_AttrDef::has_minimum_)
- - PROTOBUF_FIELD_OFFSET(OpDef_AttrDef, default_value_)>(
- reinterpret_cast<char*>(&default_value_),
- reinterpret_cast<char*>(&other->default_value_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata OpDef_AttrDef::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
- file_level_metadata_op_5fdef_2eproto[1]);
- }
- // ===================================================================
- class OpDef::_Internal {
- public:
- static const ::opencv_tensorflow::OpDeprecation& deprecation(const OpDef* msg);
- };
- const ::opencv_tensorflow::OpDeprecation&
- OpDef::_Internal::deprecation(const OpDef* msg) {
- return *msg->deprecation_;
- }
- OpDef::OpDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- input_arg_(arena),
- output_arg_(arena),
- attr_(arena) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef)
- }
- OpDef::OpDef(const OpDef& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- input_arg_(from.input_arg_),
- output_arg_(from.output_arg_),
- attr_(from.attr_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_summary().empty()) {
- summary_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_summary(),
- GetArenaForAllocation());
- }
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_description().empty()) {
- description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
- GetArenaForAllocation());
- }
- if (from._internal_has_deprecation()) {
- deprecation_ = new ::opencv_tensorflow::OpDeprecation(*from.deprecation_);
- } else {
- deprecation_ = nullptr;
- }
- ::memcpy(&is_commutative_, &from.is_commutative_,
- static_cast<size_t>(reinterpret_cast<char*>(&allows_uninitialized_input_) -
- reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
- // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef)
- }
- inline void OpDef::SharedCtor() {
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&deprecation_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&allows_uninitialized_input_) -
- reinterpret_cast<char*>(&deprecation_)) + sizeof(allows_uninitialized_input_));
- }
- OpDef::~OpDef() {
- // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void OpDef::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- summary_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete deprecation_;
- }
- void OpDef::ArenaDtor(void* object) {
- OpDef* _this = reinterpret_cast< OpDef* >(object);
- (void)_this;
- }
- void OpDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void OpDef::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void OpDef::Clear() {
- // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- input_arg_.Clear();
- output_arg_.Clear();
- attr_.Clear();
- name_.ClearToEmpty();
- summary_.ClearToEmpty();
- description_.ClearToEmpty();
- if (GetArenaForAllocation() == nullptr && deprecation_ != nullptr) {
- delete deprecation_;
- }
- deprecation_ = nullptr;
- ::memset(&is_commutative_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&allows_uninitialized_input_) -
- reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* OpDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_input_arg(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- } else
- goto handle_unusual;
- continue;
- // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_output_arg(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
- } else
- goto handle_unusual;
- continue;
- // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_attr(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
- } else
- goto handle_unusual;
- continue;
- // string summary = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
- auto str = _internal_mutable_summary();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.summary"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string description = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
- auto str = _internal_mutable_description();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.description"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // .opencv_tensorflow.OpDeprecation deprecation = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
- ptr = ctx->ParseMessage(_internal_mutable_deprecation(), ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool is_aggregate = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
- is_aggregate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool is_stateful = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
- is_stateful_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool is_commutative = 18;
- case 18:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
- is_commutative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // bool allows_uninitialized_input = 19;
- case 19:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
- allows_uninitialized_input_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* OpDef::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.name");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_name(), target);
- }
- // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_input_arg_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, this->_internal_input_arg(i), target, stream);
- }
- // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_output_arg_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, this->_internal_output_arg(i), target, stream);
- }
- // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_attr_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, this->_internal_attr(i), target, stream);
- }
- // string summary = 5;
- if (!this->_internal_summary().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_summary().data(), static_cast<int>(this->_internal_summary().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.summary");
- target = stream->WriteStringMaybeAliased(
- 5, this->_internal_summary(), target);
- }
- // string description = 6;
- if (!this->_internal_description().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDef.description");
- target = stream->WriteStringMaybeAliased(
- 6, this->_internal_description(), target);
- }
- // .opencv_tensorflow.OpDeprecation deprecation = 8;
- if (this->_internal_has_deprecation()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 8, _Internal::deprecation(this), target, stream);
- }
- // bool is_aggregate = 16;
- if (this->_internal_is_aggregate() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_aggregate(), target);
- }
- // bool is_stateful = 17;
- if (this->_internal_is_stateful() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_is_stateful(), target);
- }
- // bool is_commutative = 18;
- if (this->_internal_is_commutative() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->_internal_is_commutative(), target);
- }
- // bool allows_uninitialized_input = 19;
- if (this->_internal_allows_uninitialized_input() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(19, this->_internal_allows_uninitialized_input(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef)
- return target;
- }
- size_t OpDef::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
- total_size += 1UL * this->_internal_input_arg_size();
- for (const auto& msg : this->input_arg_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
- total_size += 1UL * this->_internal_output_arg_size();
- for (const auto& msg : this->output_arg_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
- total_size += 1UL * this->_internal_attr_size();
- for (const auto& msg : this->attr_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string summary = 5;
- if (!this->_internal_summary().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_summary());
- }
- // string description = 6;
- if (!this->_internal_description().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_description());
- }
- // .opencv_tensorflow.OpDeprecation deprecation = 8;
- if (this->_internal_has_deprecation()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *deprecation_);
- }
- // bool is_commutative = 18;
- if (this->_internal_is_commutative() != 0) {
- total_size += 2 + 1;
- }
- // bool is_aggregate = 16;
- if (this->_internal_is_aggregate() != 0) {
- total_size += 2 + 1;
- }
- // bool is_stateful = 17;
- if (this->_internal_is_stateful() != 0) {
- total_size += 2 + 1;
- }
- // bool allows_uninitialized_input = 19;
- if (this->_internal_allows_uninitialized_input() != 0) {
- total_size += 2 + 1;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- OpDef::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef::GetClassData() const { return &_class_data_; }
- void OpDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<OpDef *>(to)->MergeFrom(
- static_cast<const OpDef &>(from));
- }
- void OpDef::MergeFrom(const OpDef& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- input_arg_.MergeFrom(from.input_arg_);
- output_arg_.MergeFrom(from.output_arg_);
- attr_.MergeFrom(from.attr_);
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (!from._internal_summary().empty()) {
- _internal_set_summary(from._internal_summary());
- }
- if (!from._internal_description().empty()) {
- _internal_set_description(from._internal_description());
- }
- if (from._internal_has_deprecation()) {
- _internal_mutable_deprecation()->::opencv_tensorflow::OpDeprecation::MergeFrom(from._internal_deprecation());
- }
- if (from._internal_is_commutative() != 0) {
- _internal_set_is_commutative(from._internal_is_commutative());
- }
- if (from._internal_is_aggregate() != 0) {
- _internal_set_is_aggregate(from._internal_is_aggregate());
- }
- if (from._internal_is_stateful() != 0) {
- _internal_set_is_stateful(from._internal_is_stateful());
- }
- if (from._internal_allows_uninitialized_input() != 0) {
- _internal_set_allows_uninitialized_input(from._internal_allows_uninitialized_input());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpDef::CopyFrom(const OpDef& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OpDef::IsInitialized() const {
- return true;
- }
- void OpDef::InternalSwap(OpDef* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- input_arg_.InternalSwap(&other->input_arg_);
- output_arg_.InternalSwap(&other->output_arg_);
- attr_.InternalSwap(&other->attr_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &summary_, lhs_arena,
- &other->summary_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &description_, lhs_arena,
- &other->description_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(OpDef, allows_uninitialized_input_)
- + sizeof(OpDef::allows_uninitialized_input_)
- - PROTOBUF_FIELD_OFFSET(OpDef, deprecation_)>(
- reinterpret_cast<char*>(&deprecation_),
- reinterpret_cast<char*>(&other->deprecation_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata OpDef::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
- file_level_metadata_op_5fdef_2eproto[2]);
- }
- // ===================================================================
- class OpDeprecation::_Internal {
- public:
- };
- OpDeprecation::OpDeprecation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDeprecation)
- }
- OpDeprecation::OpDeprecation(const OpDeprecation& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_explanation().empty()) {
- explanation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_explanation(),
- GetArenaForAllocation());
- }
- version_ = from.version_;
- // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDeprecation)
- }
- inline void OpDeprecation::SharedCtor() {
- explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- version_ = 0;
- }
- OpDeprecation::~OpDeprecation() {
- // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDeprecation)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void OpDeprecation::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- explanation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void OpDeprecation::ArenaDtor(void* object) {
- OpDeprecation* _this = reinterpret_cast< OpDeprecation* >(object);
- (void)_this;
- }
- void OpDeprecation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void OpDeprecation::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void OpDeprecation::Clear() {
- // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDeprecation)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- explanation_.ClearToEmpty();
- version_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* OpDeprecation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 version = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string explanation = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_explanation();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDeprecation.explanation"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* OpDeprecation::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDeprecation)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 version = 1;
- if (this->_internal_version() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_version(), target);
- }
- // string explanation = 2;
- if (!this->_internal_explanation().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_explanation().data(), static_cast<int>(this->_internal_explanation().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "opencv_tensorflow.OpDeprecation.explanation");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_explanation(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDeprecation)
- return target;
- }
- size_t OpDeprecation::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDeprecation)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string explanation = 2;
- if (!this->_internal_explanation().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_explanation());
- }
- // int32 version = 1;
- if (this->_internal_version() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDeprecation::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- OpDeprecation::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDeprecation::GetClassData() const { return &_class_data_; }
- void OpDeprecation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<OpDeprecation *>(to)->MergeFrom(
- static_cast<const OpDeprecation &>(from));
- }
- void OpDeprecation::MergeFrom(const OpDeprecation& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDeprecation)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_explanation().empty()) {
- _internal_set_explanation(from._internal_explanation());
- }
- if (from._internal_version() != 0) {
- _internal_set_version(from._internal_version());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpDeprecation::CopyFrom(const OpDeprecation& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDeprecation)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OpDeprecation::IsInitialized() const {
- return true;
- }
- void OpDeprecation::InternalSwap(OpDeprecation* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &explanation_, lhs_arena,
- &other->explanation_, rhs_arena
- );
- swap(version_, other->version_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata OpDeprecation::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
- file_level_metadata_op_5fdef_2eproto[3]);
- }
- // ===================================================================
- class OpList::_Internal {
- public:
- };
- OpList::OpList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- op_(arena) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpList)
- }
- OpList::OpList(const OpList& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- op_(from.op_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpList)
- }
- inline void OpList::SharedCtor() {
- }
- OpList::~OpList() {
- // @@protoc_insertion_point(destructor:opencv_tensorflow.OpList)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void OpList::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void OpList::ArenaDtor(void* object) {
- OpList* _this = reinterpret_cast< OpList* >(object);
- (void)_this;
- }
- void OpList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void OpList::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void OpList::Clear() {
- // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpList)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- op_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* OpList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // repeated .opencv_tensorflow.OpDef op = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_op(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* OpList::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpList)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .opencv_tensorflow.OpDef op = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_op_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_op(i), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpList)
- return target;
- }
- size_t OpList::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpList)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .opencv_tensorflow.OpDef op = 1;
- total_size += 1UL * this->_internal_op_size();
- for (const auto& msg : this->op_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpList::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- OpList::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpList::GetClassData() const { return &_class_data_; }
- void OpList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<OpList *>(to)->MergeFrom(
- static_cast<const OpList &>(from));
- }
- void OpList::MergeFrom(const OpList& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpList)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- op_.MergeFrom(from.op_);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpList::CopyFrom(const OpList& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpList)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OpList::IsInitialized() const {
- return true;
- }
- void OpList::InternalSwap(OpList* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- op_.InternalSwap(&other->op_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata OpList::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
- file_level_metadata_op_5fdef_2eproto[4]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace opencv_tensorflow
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef_ArgDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef_ArgDef >(Arena* arena) {
- return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef_ArgDef >(arena);
- }
- template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef_AttrDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef_AttrDef >(Arena* arena) {
- return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef_AttrDef >(arena);
- }
- template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef >(Arena* arena) {
- return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef >(arena);
- }
- template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDeprecation* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDeprecation >(Arena* arena) {
- return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDeprecation >(arena);
- }
- template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpList* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpList >(Arena* arena) {
- return Arena::CreateMessageInternal< ::opencv_tensorflow::OpList >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|