Path: blob/master/modules/dnn/misc/onnx/opencv-onnx.pb.cc
16349 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: opencv-onnx.proto23#include "opencv-onnx.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_onnx {22class AttributeProtoDefaultTypeInternal {23public:24::google::protobuf::internal::ExplicitlyConstructed<AttributeProto>25_instance;26} _AttributeProto_default_instance_;27class ValueInfoProtoDefaultTypeInternal {28public:29::google::protobuf::internal::ExplicitlyConstructed<ValueInfoProto>30_instance;31} _ValueInfoProto_default_instance_;32class NodeProtoDefaultTypeInternal {33public:34::google::protobuf::internal::ExplicitlyConstructed<NodeProto>35_instance;36} _NodeProto_default_instance_;37class ModelProtoDefaultTypeInternal {38public:39::google::protobuf::internal::ExplicitlyConstructed<ModelProto>40_instance;41} _ModelProto_default_instance_;42class StringStringEntryProtoDefaultTypeInternal {43public:44::google::protobuf::internal::ExplicitlyConstructed<StringStringEntryProto>45_instance;46} _StringStringEntryProto_default_instance_;47class GraphProtoDefaultTypeInternal {48public:49::google::protobuf::internal::ExplicitlyConstructed<GraphProto>50_instance;51} _GraphProto_default_instance_;52class TensorProto_SegmentDefaultTypeInternal {53public:54::google::protobuf::internal::ExplicitlyConstructed<TensorProto_Segment>55_instance;56} _TensorProto_Segment_default_instance_;57class TensorProtoDefaultTypeInternal {58public:59::google::protobuf::internal::ExplicitlyConstructed<TensorProto>60_instance;61} _TensorProto_default_instance_;62class TensorShapeProto_DimensionDefaultTypeInternal {63public:64::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto_Dimension>65_instance;66::google::protobuf::int64 dim_value_;67::google::protobuf::internal::ArenaStringPtr dim_param_;68} _TensorShapeProto_Dimension_default_instance_;69class TensorShapeProtoDefaultTypeInternal {70public:71::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto>72_instance;73} _TensorShapeProto_default_instance_;74class TypeProto_TensorDefaultTypeInternal {75public:76::google::protobuf::internal::ExplicitlyConstructed<TypeProto_Tensor>77_instance;78} _TypeProto_Tensor_default_instance_;79class TypeProtoDefaultTypeInternal {80public:81::google::protobuf::internal::ExplicitlyConstructed<TypeProto>82_instance;83const ::opencv_onnx::TypeProto_Tensor* tensor_type_;84} _TypeProto_default_instance_;85class OperatorSetIdProtoDefaultTypeInternal {86public:87::google::protobuf::internal::ExplicitlyConstructed<OperatorSetIdProto>88_instance;89} _OperatorSetIdProto_default_instance_;90} // namespace opencv_onnx91namespace protobuf_opencv_2donnx_2eproto {92void InitDefaultsAttributeProtoImpl() {93GOOGLE_PROTOBUF_VERIFY_VERSION;9495#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS96::google::protobuf::internal::InitProtobufDefaultsForceUnique();97#else98::google::protobuf::internal::InitProtobufDefaults();99#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS100protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto();101protobuf_opencv_2donnx_2eproto::InitDefaultsValueInfoProto();102{103void* ptr = &::opencv_onnx::_AttributeProto_default_instance_;104new (ptr) ::opencv_onnx::AttributeProto();105::google::protobuf::internal::OnShutdownDestroyMessage(ptr);106}107{108void* ptr = &::opencv_onnx::_NodeProto_default_instance_;109new (ptr) ::opencv_onnx::NodeProto();110::google::protobuf::internal::OnShutdownDestroyMessage(ptr);111}112{113void* ptr = &::opencv_onnx::_GraphProto_default_instance_;114new (ptr) ::opencv_onnx::GraphProto();115::google::protobuf::internal::OnShutdownDestroyMessage(ptr);116}117::opencv_onnx::AttributeProto::InitAsDefaultInstance();118::opencv_onnx::NodeProto::InitAsDefaultInstance();119::opencv_onnx::GraphProto::InitAsDefaultInstance();120}121122void InitDefaultsAttributeProto() {123static GOOGLE_PROTOBUF_DECLARE_ONCE(once);124::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAttributeProtoImpl);125}126127void InitDefaultsValueInfoProtoImpl() {128GOOGLE_PROTOBUF_VERIFY_VERSION;129130#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS131::google::protobuf::internal::InitProtobufDefaultsForceUnique();132#else133::google::protobuf::internal::InitProtobufDefaults();134#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS135protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto();136{137void* ptr = &::opencv_onnx::_ValueInfoProto_default_instance_;138new (ptr) ::opencv_onnx::ValueInfoProto();139::google::protobuf::internal::OnShutdownDestroyMessage(ptr);140}141::opencv_onnx::ValueInfoProto::InitAsDefaultInstance();142}143144void InitDefaultsValueInfoProto() {145static GOOGLE_PROTOBUF_DECLARE_ONCE(once);146::google::protobuf::GoogleOnceInit(&once, &InitDefaultsValueInfoProtoImpl);147}148149void InitDefaultsModelProtoImpl() {150GOOGLE_PROTOBUF_VERIFY_VERSION;151152#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS153::google::protobuf::internal::InitProtobufDefaultsForceUnique();154#else155::google::protobuf::internal::InitProtobufDefaults();156#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS157protobuf_opencv_2donnx_2eproto::InitDefaultsOperatorSetIdProto();158protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();159protobuf_opencv_2donnx_2eproto::InitDefaultsStringStringEntryProto();160{161void* ptr = &::opencv_onnx::_ModelProto_default_instance_;162new (ptr) ::opencv_onnx::ModelProto();163::google::protobuf::internal::OnShutdownDestroyMessage(ptr);164}165::opencv_onnx::ModelProto::InitAsDefaultInstance();166}167168void InitDefaultsModelProto() {169static GOOGLE_PROTOBUF_DECLARE_ONCE(once);170::google::protobuf::GoogleOnceInit(&once, &InitDefaultsModelProtoImpl);171}172173void InitDefaultsStringStringEntryProtoImpl() {174GOOGLE_PROTOBUF_VERIFY_VERSION;175176#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS177::google::protobuf::internal::InitProtobufDefaultsForceUnique();178#else179::google::protobuf::internal::InitProtobufDefaults();180#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS181{182void* ptr = &::opencv_onnx::_StringStringEntryProto_default_instance_;183new (ptr) ::opencv_onnx::StringStringEntryProto();184::google::protobuf::internal::OnShutdownDestroyMessage(ptr);185}186::opencv_onnx::StringStringEntryProto::InitAsDefaultInstance();187}188189void InitDefaultsStringStringEntryProto() {190static GOOGLE_PROTOBUF_DECLARE_ONCE(once);191::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStringStringEntryProtoImpl);192}193194void InitDefaultsTensorProto_SegmentImpl() {195GOOGLE_PROTOBUF_VERIFY_VERSION;196197#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS198::google::protobuf::internal::InitProtobufDefaultsForceUnique();199#else200::google::protobuf::internal::InitProtobufDefaults();201#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS202{203void* ptr = &::opencv_onnx::_TensorProto_Segment_default_instance_;204new (ptr) ::opencv_onnx::TensorProto_Segment();205::google::protobuf::internal::OnShutdownDestroyMessage(ptr);206}207::opencv_onnx::TensorProto_Segment::InitAsDefaultInstance();208}209210void InitDefaultsTensorProto_Segment() {211static GOOGLE_PROTOBUF_DECLARE_ONCE(once);212::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorProto_SegmentImpl);213}214215void InitDefaultsTensorProtoImpl() {216GOOGLE_PROTOBUF_VERIFY_VERSION;217218#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS219::google::protobuf::internal::InitProtobufDefaultsForceUnique();220#else221::google::protobuf::internal::InitProtobufDefaults();222#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS223protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto_Segment();224{225void* ptr = &::opencv_onnx::_TensorProto_default_instance_;226new (ptr) ::opencv_onnx::TensorProto();227::google::protobuf::internal::OnShutdownDestroyMessage(ptr);228}229::opencv_onnx::TensorProto::InitAsDefaultInstance();230}231232void InitDefaultsTensorProto() {233static GOOGLE_PROTOBUF_DECLARE_ONCE(once);234::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorProtoImpl);235}236237void InitDefaultsTensorShapeProto_DimensionImpl() {238GOOGLE_PROTOBUF_VERIFY_VERSION;239240#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS241::google::protobuf::internal::InitProtobufDefaultsForceUnique();242#else243::google::protobuf::internal::InitProtobufDefaults();244#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS245{246void* ptr = &::opencv_onnx::_TensorShapeProto_Dimension_default_instance_;247new (ptr) ::opencv_onnx::TensorShapeProto_Dimension();248::google::protobuf::internal::OnShutdownDestroyMessage(ptr);249}250::opencv_onnx::TensorShapeProto_Dimension::InitAsDefaultInstance();251}252253void InitDefaultsTensorShapeProto_Dimension() {254static GOOGLE_PROTOBUF_DECLARE_ONCE(once);255::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorShapeProto_DimensionImpl);256}257258void InitDefaultsTensorShapeProtoImpl() {259GOOGLE_PROTOBUF_VERIFY_VERSION;260261#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS262::google::protobuf::internal::InitProtobufDefaultsForceUnique();263#else264::google::protobuf::internal::InitProtobufDefaults();265#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS266protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto_Dimension();267{268void* ptr = &::opencv_onnx::_TensorShapeProto_default_instance_;269new (ptr) ::opencv_onnx::TensorShapeProto();270::google::protobuf::internal::OnShutdownDestroyMessage(ptr);271}272::opencv_onnx::TensorShapeProto::InitAsDefaultInstance();273}274275void InitDefaultsTensorShapeProto() {276static GOOGLE_PROTOBUF_DECLARE_ONCE(once);277::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorShapeProtoImpl);278}279280void InitDefaultsTypeProto_TensorImpl() {281GOOGLE_PROTOBUF_VERIFY_VERSION;282283#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS284::google::protobuf::internal::InitProtobufDefaultsForceUnique();285#else286::google::protobuf::internal::InitProtobufDefaults();287#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS288protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto();289{290void* ptr = &::opencv_onnx::_TypeProto_Tensor_default_instance_;291new (ptr) ::opencv_onnx::TypeProto_Tensor();292::google::protobuf::internal::OnShutdownDestroyMessage(ptr);293}294::opencv_onnx::TypeProto_Tensor::InitAsDefaultInstance();295}296297void InitDefaultsTypeProto_Tensor() {298static GOOGLE_PROTOBUF_DECLARE_ONCE(once);299::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTypeProto_TensorImpl);300}301302void InitDefaultsTypeProtoImpl() {303GOOGLE_PROTOBUF_VERIFY_VERSION;304305#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS306::google::protobuf::internal::InitProtobufDefaultsForceUnique();307#else308::google::protobuf::internal::InitProtobufDefaults();309#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS310protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto_Tensor();311{312void* ptr = &::opencv_onnx::_TypeProto_default_instance_;313new (ptr) ::opencv_onnx::TypeProto();314::google::protobuf::internal::OnShutdownDestroyMessage(ptr);315}316::opencv_onnx::TypeProto::InitAsDefaultInstance();317}318319void InitDefaultsTypeProto() {320static GOOGLE_PROTOBUF_DECLARE_ONCE(once);321::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTypeProtoImpl);322}323324void InitDefaultsOperatorSetIdProtoImpl() {325GOOGLE_PROTOBUF_VERIFY_VERSION;326327#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS328::google::protobuf::internal::InitProtobufDefaultsForceUnique();329#else330::google::protobuf::internal::InitProtobufDefaults();331#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS332{333void* ptr = &::opencv_onnx::_OperatorSetIdProto_default_instance_;334new (ptr) ::opencv_onnx::OperatorSetIdProto();335::google::protobuf::internal::OnShutdownDestroyMessage(ptr);336}337::opencv_onnx::OperatorSetIdProto::InitAsDefaultInstance();338}339340void InitDefaultsOperatorSetIdProto() {341static GOOGLE_PROTOBUF_DECLARE_ONCE(once);342::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOperatorSetIdProtoImpl);343}344345::google::protobuf::Metadata file_level_metadata[13];346const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];347348const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {349GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, _has_bits_),350GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, _internal_metadata_),351~0u, // no _extensions_352~0u, // no _oneof_case_353~0u, // no _weak_field_map_354GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, name_),355GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, ref_attr_name_),356GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, doc_string_),357GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, type_),358GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, f_),359GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, i_),360GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, s_),361GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, t_),362GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, g_),363GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, floats_),364GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, ints_),365GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, strings_),366GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, tensors_),367GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::AttributeProto, graphs_),3680,3693,3702,3718,3727,3736,3741,3754,3765,377~0u,378~0u,379~0u,380~0u,381~0u,382GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ValueInfoProto, _has_bits_),383GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ValueInfoProto, _internal_metadata_),384~0u, // no _extensions_385~0u, // no _oneof_case_386~0u, // no _weak_field_map_387GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ValueInfoProto, name_),388GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ValueInfoProto, type_),389GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ValueInfoProto, doc_string_),3900,3912,3921,393GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, _has_bits_),394GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, _internal_metadata_),395~0u, // no _extensions_396~0u, // no _oneof_case_397~0u, // no _weak_field_map_398GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, input_),399GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, output_),400GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, name_),401GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, op_type_),402GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, domain_),403GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, attribute_),404GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::NodeProto, doc_string_),405~0u,406~0u,4070,4081,4093,410~0u,4112,412GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, _has_bits_),413GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, _internal_metadata_),414~0u, // no _extensions_415~0u, // no _oneof_case_416~0u, // no _weak_field_map_417GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, ir_version_),418GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, opset_import_),419GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, producer_name_),420GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, producer_version_),421GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, domain_),422GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, model_version_),423GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, doc_string_),424GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, graph_),425GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::ModelProto, metadata_props_),4265,427~0u,4280,4291,4302,4316,4323,4334,434~0u,435GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::StringStringEntryProto, _has_bits_),436GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::StringStringEntryProto, _internal_metadata_),437~0u, // no _extensions_438~0u, // no _oneof_case_439~0u, // no _weak_field_map_440GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::StringStringEntryProto, key_),441GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::StringStringEntryProto, value_),4420,4431,444GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, _has_bits_),445GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, _internal_metadata_),446~0u, // no _extensions_447~0u, // no _oneof_case_448~0u, // no _weak_field_map_449GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, node_),450GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, name_),451GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, initializer_),452GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, doc_string_),453GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, input_),454GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, output_),455GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::GraphProto, value_info_),456~0u,4570,458~0u,4591,460~0u,461~0u,462~0u,463GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto_Segment, _has_bits_),464GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto_Segment, _internal_metadata_),465~0u, // no _extensions_466~0u, // no _oneof_case_467~0u, // no _weak_field_map_468GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto_Segment, begin_),469GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto_Segment, end_),4700,4711,472GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, _has_bits_),473GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, _internal_metadata_),474~0u, // no _extensions_475~0u, // no _oneof_case_476~0u, // no _weak_field_map_477GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, dims_),478GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, data_type_),479GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, segment_),480GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, float_data_),481GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, int32_data_),482GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, string_data_),483GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, int64_data_),484GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, name_),485GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, doc_string_),486GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, raw_data_),487GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, double_data_),488GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorProto, uint64_data_),489~0u,4904,4913,492~0u,493~0u,494~0u,495~0u,4960,4972,4981,499~0u,500~0u,501GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto_Dimension, _has_bits_),502GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto_Dimension, _internal_metadata_),503~0u, // no _extensions_504GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto_Dimension, _oneof_case_[0]),505~0u, // no _weak_field_map_506offsetof(::opencv_onnx::TensorShapeProto_DimensionDefaultTypeInternal, dim_value_),507offsetof(::opencv_onnx::TensorShapeProto_DimensionDefaultTypeInternal, dim_param_),508GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto_Dimension, denotation_),509GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto_Dimension, value_),510~0u,511~0u,5120,513GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto, _has_bits_),514GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto, _internal_metadata_),515~0u, // no _extensions_516~0u, // no _oneof_case_517~0u, // no _weak_field_map_518GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TensorShapeProto, dim_),519~0u,520GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto_Tensor, _has_bits_),521GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto_Tensor, _internal_metadata_),522~0u, // no _extensions_523~0u, // no _oneof_case_524~0u, // no _weak_field_map_525GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto_Tensor, elem_type_),526GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto_Tensor, shape_),5271,5280,529GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto, _has_bits_),530GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto, _internal_metadata_),531~0u, // no _extensions_532GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto, _oneof_case_[0]),533~0u, // no _weak_field_map_534offsetof(::opencv_onnx::TypeProtoDefaultTypeInternal, tensor_type_),535GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto, denotation_),536GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::TypeProto, value_),537~0u,5380,539GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::OperatorSetIdProto, _has_bits_),540GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::OperatorSetIdProto, _internal_metadata_),541~0u, // no _extensions_542~0u, // no _oneof_case_543~0u, // no _weak_field_map_544GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::OperatorSetIdProto, domain_),545GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_onnx::OperatorSetIdProto, version_),5460,5471,548};549static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {550{ 0, 19, sizeof(::opencv_onnx::AttributeProto)},551{ 33, 41, sizeof(::opencv_onnx::ValueInfoProto)},552{ 44, 56, sizeof(::opencv_onnx::NodeProto)},553{ 63, 77, sizeof(::opencv_onnx::ModelProto)},554{ 86, 93, sizeof(::opencv_onnx::StringStringEntryProto)},555{ 95, 107, sizeof(::opencv_onnx::GraphProto)},556{ 114, 121, sizeof(::opencv_onnx::TensorProto_Segment)},557{ 123, 140, sizeof(::opencv_onnx::TensorProto)},558{ 152, 161, sizeof(::opencv_onnx::TensorShapeProto_Dimension)},559{ 164, 170, sizeof(::opencv_onnx::TensorShapeProto)},560{ 171, 178, sizeof(::opencv_onnx::TypeProto_Tensor)},561{ 180, 188, sizeof(::opencv_onnx::TypeProto)},562{ 190, 197, sizeof(::opencv_onnx::OperatorSetIdProto)},563};564565static ::google::protobuf::Message const * const file_default_instances[] = {566reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_AttributeProto_default_instance_),567reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_ValueInfoProto_default_instance_),568reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_NodeProto_default_instance_),569reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_ModelProto_default_instance_),570reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_StringStringEntryProto_default_instance_),571reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_GraphProto_default_instance_),572reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TensorProto_Segment_default_instance_),573reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TensorProto_default_instance_),574reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TensorShapeProto_Dimension_default_instance_),575reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TensorShapeProto_default_instance_),576reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TypeProto_Tensor_default_instance_),577reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_TypeProto_default_instance_),578reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_onnx::_OperatorSetIdProto_default_instance_),579};580581void protobuf_AssignDescriptors() {582AddDescriptors();583::google::protobuf::MessageFactory* factory = NULL;584AssignDescriptors(585"opencv-onnx.proto", schemas, file_default_instances, TableStruct::offsets, factory,586file_level_metadata, file_level_enum_descriptors, NULL);587}588589void protobuf_AssignDescriptorsOnce() {590static GOOGLE_PROTOBUF_DECLARE_ONCE(once);591::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);592}593594void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;595void protobuf_RegisterTypes(const ::std::string&) {596protobuf_AssignDescriptorsOnce();597::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 13);598}599600void AddDescriptorsImpl() {601InitDefaults();602static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {603"\n\021opencv-onnx.proto\022\013opencv_onnx\"\203\004\n\016Att"604"ributeProto\022\014\n\004name\030\001 \001(\t\022\025\n\rref_attr_na"605"me\030\025 \001(\t\022\022\n\ndoc_string\030\r \001(\t\0227\n\004type\030\024 \001"606"(\0162).opencv_onnx.AttributeProto.Attribut"607"eType\022\t\n\001f\030\002 \001(\002\022\t\n\001i\030\003 \001(\003\022\t\n\001s\030\004 \001(\014\022#"608"\n\001t\030\005 \001(\0132\030.opencv_onnx.TensorProto\022\"\n\001g"609"\030\006 \001(\0132\027.opencv_onnx.GraphProto\022\016\n\006float"610"s\030\007 \003(\002\022\014\n\004ints\030\010 \003(\003\022\017\n\007strings\030\t \003(\014\022)"611"\n\007tensors\030\n \003(\0132\030.opencv_onnx.TensorProt"612"o\022\'\n\006graphs\030\013 \003(\0132\027.opencv_onnx.GraphPro"613"to\"\221\001\n\rAttributeType\022\r\n\tUNDEFINED\020\000\022\t\n\005F"614"LOAT\020\001\022\007\n\003INT\020\002\022\n\n\006STRING\020\003\022\n\n\006TENSOR\020\004\022"615"\t\n\005GRAPH\020\005\022\n\n\006FLOATS\020\006\022\010\n\004INTS\020\007\022\013\n\007STRI"616"NGS\020\010\022\013\n\007TENSORS\020\t\022\n\n\006GRAPHS\020\n\"X\n\016ValueI"617"nfoProto\022\014\n\004name\030\001 \001(\t\022$\n\004type\030\002 \001(\0132\026.o"618"pencv_onnx.TypeProto\022\022\n\ndoc_string\030\003 \001(\t"619"\"\235\001\n\tNodeProto\022\r\n\005input\030\001 \003(\t\022\016\n\006output\030"620"\002 \003(\t\022\014\n\004name\030\003 \001(\t\022\017\n\007op_type\030\004 \001(\t\022\016\n\006"621"domain\030\007 \001(\t\022.\n\tattribute\030\005 \003(\0132\033.opencv"622"_onnx.AttributeProto\022\022\n\ndoc_string\030\006 \001(\t"623"\"\250\002\n\nModelProto\022\022\n\nir_version\030\001 \001(\003\0225\n\014o"624"pset_import\030\010 \003(\0132\037.opencv_onnx.Operator"625"SetIdProto\022\025\n\rproducer_name\030\002 \001(\t\022\030\n\020pro"626"ducer_version\030\003 \001(\t\022\016\n\006domain\030\004 \001(\t\022\025\n\rm"627"odel_version\030\005 \001(\003\022\022\n\ndoc_string\030\006 \001(\t\022&"628"\n\005graph\030\007 \001(\0132\027.opencv_onnx.GraphProto\022;"629"\n\016metadata_props\030\016 \003(\0132#.opencv_onnx.Str"630"ingStringEntryProto\"4\n\026StringStringEntry"631"Proto\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\215\002\n\nGr"632"aphProto\022$\n\004node\030\001 \003(\0132\026.opencv_onnx.Nod"633"eProto\022\014\n\004name\030\002 \001(\t\022-\n\013initializer\030\005 \003("634"\0132\030.opencv_onnx.TensorProto\022\022\n\ndoc_strin"635"g\030\n \001(\t\022*\n\005input\030\013 \003(\0132\033.opencv_onnx.Val"636"ueInfoProto\022+\n\006output\030\014 \003(\0132\033.opencv_onn"637"x.ValueInfoProto\022/\n\nvalue_info\030\r \003(\0132\033.o"638"pencv_onnx.ValueInfoProto\"\275\004\n\013TensorProt"639"o\022\014\n\004dims\030\001 \003(\003\0224\n\tdata_type\030\002 \001(\0162!.ope"640"ncv_onnx.TensorProto.DataType\0221\n\007segment"641"\030\003 \001(\0132 .opencv_onnx.TensorProto.Segment"642"\022\026\n\nfloat_data\030\004 \003(\002B\002\020\001\022\026\n\nint32_data\030\005"643" \003(\005B\002\020\001\022\023\n\013string_data\030\006 \003(\014\022\026\n\nint64_d"644"ata\030\007 \003(\003B\002\020\001\022\014\n\004name\030\010 \001(\t\022\022\n\ndoc_strin"645"g\030\014 \001(\t\022\020\n\010raw_data\030\t \001(\014\022\027\n\013double_data"646"\030\n \003(\001B\002\020\001\022\027\n\013uint64_data\030\013 \003(\004B\002\020\001\032%\n\007S"647"egment\022\r\n\005begin\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"\314\001\n\010D"648"ataType\022\r\n\tUNDEFINED\020\000\022\t\n\005FLOAT\020\001\022\t\n\005UIN"649"T8\020\002\022\010\n\004INT8\020\003\022\n\n\006UINT16\020\004\022\t\n\005INT16\020\005\022\t\n"650"\005INT32\020\006\022\t\n\005INT64\020\007\022\n\n\006STRING\020\010\022\010\n\004BOOL\020"651"\t\022\013\n\007FLOAT16\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006UINT32\020\014\022\n"652"\n\006UINT64\020\r\022\r\n\tCOMPLEX64\020\016\022\016\n\nCOMPLEX128\020"653"\017\"\234\001\n\020TensorShapeProto\0224\n\003dim\030\001 \003(\0132\'.op"654"encv_onnx.TensorShapeProto.Dimension\032R\n\t"655"Dimension\022\023\n\tdim_value\030\001 \001(\003H\000\022\023\n\tdim_pa"656"ram\030\002 \001(\tH\000\022\022\n\ndenotation\030\003 \001(\tB\007\n\005value"657"\"\314\001\n\tTypeProto\0224\n\013tensor_type\030\001 \001(\0132\035.op"658"encv_onnx.TypeProto.TensorH\000\022\022\n\ndenotati"659"on\030\006 \001(\t\032l\n\006Tensor\0224\n\telem_type\030\001 \001(\0162!."660"opencv_onnx.TensorProto.DataType\022,\n\005shap"661"e\030\002 \001(\0132\035.opencv_onnx.TensorShapeProtoB\007"662"\n\005value\"5\n\022OperatorSetIdProto\022\016\n\006domain\030"663"\001 \001(\t\022\017\n\007version\030\002 \001(\003*c\n\007Version\022\022\n\016_ST"664"ART_VERSION\020\000\022\031\n\025IR_VERSION_2017_10_10\020\001"665"\022\031\n\025IR_VERSION_2017_10_30\020\002\022\016\n\nIR_VERSIO"666"N\020\003"667};668::google::protobuf::DescriptorPool::InternalAddGeneratedFile(669descriptor, 2523);670::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(671"opencv-onnx.proto", &protobuf_RegisterTypes);672}673674void AddDescriptors() {675static GOOGLE_PROTOBUF_DECLARE_ONCE(once);676::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);677}678// Force AddDescriptors() to be called at dynamic initialization time.679struct StaticDescriptorInitializer {680StaticDescriptorInitializer() {681AddDescriptors();682}683} static_descriptor_initializer;684} // namespace protobuf_opencv_2donnx_2eproto685namespace opencv_onnx {686const ::google::protobuf::EnumDescriptor* AttributeProto_AttributeType_descriptor() {687protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();688return protobuf_opencv_2donnx_2eproto::file_level_enum_descriptors[0];689}690bool AttributeProto_AttributeType_IsValid(int value) {691switch (value) {692case 0:693case 1:694case 2:695case 3:696case 4:697case 5:698case 6:699case 7:700case 8:701case 9:702case 10:703return true;704default:705return false;706}707}708709#if !defined(_MSC_VER) || _MSC_VER >= 1900710const AttributeProto_AttributeType AttributeProto::UNDEFINED;711const AttributeProto_AttributeType AttributeProto::FLOAT;712const AttributeProto_AttributeType AttributeProto::INT;713const AttributeProto_AttributeType AttributeProto::STRING;714const AttributeProto_AttributeType AttributeProto::TENSOR;715const AttributeProto_AttributeType AttributeProto::GRAPH;716const AttributeProto_AttributeType AttributeProto::FLOATS;717const AttributeProto_AttributeType AttributeProto::INTS;718const AttributeProto_AttributeType AttributeProto::STRINGS;719const AttributeProto_AttributeType AttributeProto::TENSORS;720const AttributeProto_AttributeType AttributeProto::GRAPHS;721const AttributeProto_AttributeType AttributeProto::AttributeType_MIN;722const AttributeProto_AttributeType AttributeProto::AttributeType_MAX;723const int AttributeProto::AttributeType_ARRAYSIZE;724#endif // !defined(_MSC_VER) || _MSC_VER >= 1900725const ::google::protobuf::EnumDescriptor* TensorProto_DataType_descriptor() {726protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();727return protobuf_opencv_2donnx_2eproto::file_level_enum_descriptors[1];728}729bool TensorProto_DataType_IsValid(int value) {730switch (value) {731case 0:732case 1:733case 2:734case 3:735case 4:736case 5:737case 6:738case 7:739case 8:740case 9:741case 10:742case 11:743case 12:744case 13:745case 14:746case 15:747return true;748default:749return false;750}751}752753#if !defined(_MSC_VER) || _MSC_VER >= 1900754const TensorProto_DataType TensorProto::UNDEFINED;755const TensorProto_DataType TensorProto::FLOAT;756const TensorProto_DataType TensorProto::UINT8;757const TensorProto_DataType TensorProto::INT8;758const TensorProto_DataType TensorProto::UINT16;759const TensorProto_DataType TensorProto::INT16;760const TensorProto_DataType TensorProto::INT32;761const TensorProto_DataType TensorProto::INT64;762const TensorProto_DataType TensorProto::STRING;763const TensorProto_DataType TensorProto::BOOL;764const TensorProto_DataType TensorProto::FLOAT16;765const TensorProto_DataType TensorProto::DOUBLE;766const TensorProto_DataType TensorProto::UINT32;767const TensorProto_DataType TensorProto::UINT64;768const TensorProto_DataType TensorProto::COMPLEX64;769const TensorProto_DataType TensorProto::COMPLEX128;770const TensorProto_DataType TensorProto::DataType_MIN;771const TensorProto_DataType TensorProto::DataType_MAX;772const int TensorProto::DataType_ARRAYSIZE;773#endif // !defined(_MSC_VER) || _MSC_VER >= 1900774const ::google::protobuf::EnumDescriptor* Version_descriptor() {775protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();776return protobuf_opencv_2donnx_2eproto::file_level_enum_descriptors[2];777}778bool Version_IsValid(int value) {779switch (value) {780case 0:781case 1:782case 2:783case 3:784return true;785default:786return false;787}788}789790791// ===================================================================792793void AttributeProto::InitAsDefaultInstance() {794::opencv_onnx::_AttributeProto_default_instance_._instance.get_mutable()->t_ = const_cast< ::opencv_onnx::TensorProto*>(795::opencv_onnx::TensorProto::internal_default_instance());796::opencv_onnx::_AttributeProto_default_instance_._instance.get_mutable()->g_ = const_cast< ::opencv_onnx::GraphProto*>(797::opencv_onnx::GraphProto::internal_default_instance());798}799#if !defined(_MSC_VER) || _MSC_VER >= 1900800const int AttributeProto::kNameFieldNumber;801const int AttributeProto::kRefAttrNameFieldNumber;802const int AttributeProto::kDocStringFieldNumber;803const int AttributeProto::kTypeFieldNumber;804const int AttributeProto::kFFieldNumber;805const int AttributeProto::kIFieldNumber;806const int AttributeProto::kSFieldNumber;807const int AttributeProto::kTFieldNumber;808const int AttributeProto::kGFieldNumber;809const int AttributeProto::kFloatsFieldNumber;810const int AttributeProto::kIntsFieldNumber;811const int AttributeProto::kStringsFieldNumber;812const int AttributeProto::kTensorsFieldNumber;813const int AttributeProto::kGraphsFieldNumber;814#endif // !defined(_MSC_VER) || _MSC_VER >= 1900815816AttributeProto::AttributeProto()817: ::google::protobuf::Message(), _internal_metadata_(NULL) {818if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {819::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();820}821SharedCtor();822// @@protoc_insertion_point(constructor:opencv_onnx.AttributeProto)823}824AttributeProto::AttributeProto(const AttributeProto& from)825: ::google::protobuf::Message(),826_internal_metadata_(NULL),827_has_bits_(from._has_bits_),828_cached_size_(0),829floats_(from.floats_),830ints_(from.ints_),831strings_(from.strings_),832tensors_(from.tensors_),833graphs_(from.graphs_) {834_internal_metadata_.MergeFrom(from._internal_metadata_);835name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());836if (from.has_name()) {837name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);838}839s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());840if (from.has_s()) {841s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);842}843doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());844if (from.has_doc_string()) {845doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);846}847ref_attr_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());848if (from.has_ref_attr_name()) {849ref_attr_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_attr_name_);850}851if (from.has_t()) {852t_ = new ::opencv_onnx::TensorProto(*from.t_);853} else {854t_ = NULL;855}856if (from.has_g()) {857g_ = new ::opencv_onnx::GraphProto(*from.g_);858} else {859g_ = NULL;860}861::memcpy(&i_, &from.i_,862static_cast<size_t>(reinterpret_cast<char*>(&type_) -863reinterpret_cast<char*>(&i_)) + sizeof(type_));864// @@protoc_insertion_point(copy_constructor:opencv_onnx.AttributeProto)865}866867void AttributeProto::SharedCtor() {868_cached_size_ = 0;869name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());870s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());871doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());872ref_attr_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());873::memset(&t_, 0, static_cast<size_t>(874reinterpret_cast<char*>(&type_) -875reinterpret_cast<char*>(&t_)) + sizeof(type_));876}877878AttributeProto::~AttributeProto() {879// @@protoc_insertion_point(destructor:opencv_onnx.AttributeProto)880SharedDtor();881}882883void AttributeProto::SharedDtor() {884name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());885s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());886doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());887ref_attr_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());888if (this != internal_default_instance()) delete t_;889if (this != internal_default_instance()) delete g_;890}891892void AttributeProto::SetCachedSize(int size) const {893GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();894_cached_size_ = size;895GOOGLE_SAFE_CONCURRENT_WRITES_END();896}897const ::google::protobuf::Descriptor* AttributeProto::descriptor() {898::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();899return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;900}901902const AttributeProto& AttributeProto::default_instance() {903::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();904return *internal_default_instance();905}906907AttributeProto* AttributeProto::New(::google::protobuf::Arena* arena) const {908AttributeProto* n = new AttributeProto;909if (arena != NULL) {910arena->Own(n);911}912return n;913}914915void AttributeProto::Clear() {916// @@protoc_insertion_point(message_clear_start:opencv_onnx.AttributeProto)917::google::protobuf::uint32 cached_has_bits = 0;918// Prevent compiler warnings about cached_has_bits being unused919(void) cached_has_bits;920921floats_.Clear();922ints_.Clear();923strings_.Clear();924tensors_.Clear();925graphs_.Clear();926cached_has_bits = _has_bits_[0];927if (cached_has_bits & 63u) {928if (cached_has_bits & 0x00000001u) {929GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));930(*name_.UnsafeRawStringPointer())->clear();931}932if (cached_has_bits & 0x00000002u) {933GOOGLE_DCHECK(!s_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));934(*s_.UnsafeRawStringPointer())->clear();935}936if (cached_has_bits & 0x00000004u) {937GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));938(*doc_string_.UnsafeRawStringPointer())->clear();939}940if (cached_has_bits & 0x00000008u) {941GOOGLE_DCHECK(!ref_attr_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));942(*ref_attr_name_.UnsafeRawStringPointer())->clear();943}944if (cached_has_bits & 0x00000010u) {945GOOGLE_DCHECK(t_ != NULL);946t_->Clear();947}948if (cached_has_bits & 0x00000020u) {949GOOGLE_DCHECK(g_ != NULL);950g_->Clear();951}952}953if (cached_has_bits & 192u) {954::memset(&i_, 0, static_cast<size_t>(955reinterpret_cast<char*>(&f_) -956reinterpret_cast<char*>(&i_)) + sizeof(f_));957}958type_ = 0;959_has_bits_.Clear();960_internal_metadata_.Clear();961}962963bool AttributeProto::MergePartialFromCodedStream(964::google::protobuf::io::CodedInputStream* input) {965#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure966::google::protobuf::uint32 tag;967// @@protoc_insertion_point(parse_start:opencv_onnx.AttributeProto)968for (;;) {969::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);970tag = p.first;971if (!p.second) goto handle_unusual;972switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {973// optional string name = 1;974case 1: {975if (static_cast< ::google::protobuf::uint8>(tag) ==976static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {977DO_(::google::protobuf::internal::WireFormatLite::ReadString(978input, this->mutable_name()));979::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(980this->name().data(), static_cast<int>(this->name().length()),981::google::protobuf::internal::WireFormat::PARSE,982"opencv_onnx.AttributeProto.name");983} else {984goto handle_unusual;985}986break;987}988989// optional float f = 2;990case 2: {991if (static_cast< ::google::protobuf::uint8>(tag) ==992static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {993set_has_f();994DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<995float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(996input, &f_)));997} else {998goto handle_unusual;999}1000break;1001}10021003// optional int64 i = 3;1004case 3: {1005if (static_cast< ::google::protobuf::uint8>(tag) ==1006static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {1007set_has_i();1008DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1009::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(1010input, &i_)));1011} else {1012goto handle_unusual;1013}1014break;1015}10161017// optional bytes s = 4;1018case 4: {1019if (static_cast< ::google::protobuf::uint8>(tag) ==1020static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {1021DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(1022input, this->mutable_s()));1023} else {1024goto handle_unusual;1025}1026break;1027}10281029// optional .opencv_onnx.TensorProto t = 5;1030case 5: {1031if (static_cast< ::google::protobuf::uint8>(tag) ==1032static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {1033DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1034input, mutable_t()));1035} else {1036goto handle_unusual;1037}1038break;1039}10401041// optional .opencv_onnx.GraphProto g = 6;1042case 6: {1043if (static_cast< ::google::protobuf::uint8>(tag) ==1044static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {1045DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1046input, mutable_g()));1047} else {1048goto handle_unusual;1049}1050break;1051}10521053// repeated float floats = 7;1054case 7: {1055if (static_cast< ::google::protobuf::uint8>(tag) ==1056static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {1057DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<1058float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(10591, 61u, input, this->mutable_floats())));1060} else if (1061static_cast< ::google::protobuf::uint8>(tag) ==1062static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {1063DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<1064float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(1065input, this->mutable_floats())));1066} else {1067goto handle_unusual;1068}1069break;1070}10711072// repeated int64 ints = 8;1073case 8: {1074if (static_cast< ::google::protobuf::uint8>(tag) ==1075static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {1076DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<1077::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(10781, 64u, input, this->mutable_ints())));1079} else if (1080static_cast< ::google::protobuf::uint8>(tag) ==1081static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {1082DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<1083::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(1084input, this->mutable_ints())));1085} else {1086goto handle_unusual;1087}1088break;1089}10901091// repeated bytes strings = 9;1092case 9: {1093if (static_cast< ::google::protobuf::uint8>(tag) ==1094static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {1095DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(1096input, this->add_strings()));1097} else {1098goto handle_unusual;1099}1100break;1101}11021103// repeated .opencv_onnx.TensorProto tensors = 10;1104case 10: {1105if (static_cast< ::google::protobuf::uint8>(tag) ==1106static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {1107DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tensors()));1108} else {1109goto handle_unusual;1110}1111break;1112}11131114// repeated .opencv_onnx.GraphProto graphs = 11;1115case 11: {1116if (static_cast< ::google::protobuf::uint8>(tag) ==1117static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {1118DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_graphs()));1119} else {1120goto handle_unusual;1121}1122break;1123}11241125// optional string doc_string = 13;1126case 13: {1127if (static_cast< ::google::protobuf::uint8>(tag) ==1128static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {1129DO_(::google::protobuf::internal::WireFormatLite::ReadString(1130input, this->mutable_doc_string()));1131::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1132this->doc_string().data(), static_cast<int>(this->doc_string().length()),1133::google::protobuf::internal::WireFormat::PARSE,1134"opencv_onnx.AttributeProto.doc_string");1135} else {1136goto handle_unusual;1137}1138break;1139}11401141// optional .opencv_onnx.AttributeProto.AttributeType type = 20;1142case 20: {1143if (static_cast< ::google::protobuf::uint8>(tag) ==1144static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {1145int value;1146DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<1147int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(1148input, &value)));1149if (::opencv_onnx::AttributeProto_AttributeType_IsValid(value)) {1150set_type(static_cast< ::opencv_onnx::AttributeProto_AttributeType >(value));1151} else {1152mutable_unknown_fields()->AddVarint(115320, static_cast< ::google::protobuf::uint64>(value));1154}1155} else {1156goto handle_unusual;1157}1158break;1159}11601161// optional string ref_attr_name = 21;1162case 21: {1163if (static_cast< ::google::protobuf::uint8>(tag) ==1164static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {1165DO_(::google::protobuf::internal::WireFormatLite::ReadString(1166input, this->mutable_ref_attr_name()));1167::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1168this->ref_attr_name().data(), static_cast<int>(this->ref_attr_name().length()),1169::google::protobuf::internal::WireFormat::PARSE,1170"opencv_onnx.AttributeProto.ref_attr_name");1171} else {1172goto handle_unusual;1173}1174break;1175}11761177default: {1178handle_unusual:1179if (tag == 0) {1180goto success;1181}1182DO_(::google::protobuf::internal::WireFormat::SkipField(1183input, tag, _internal_metadata_.mutable_unknown_fields()));1184break;1185}1186}1187}1188success:1189// @@protoc_insertion_point(parse_success:opencv_onnx.AttributeProto)1190return true;1191failure:1192// @@protoc_insertion_point(parse_failure:opencv_onnx.AttributeProto)1193return false;1194#undef DO_1195}11961197void AttributeProto::SerializeWithCachedSizes(1198::google::protobuf::io::CodedOutputStream* output) const {1199// @@protoc_insertion_point(serialize_start:opencv_onnx.AttributeProto)1200::google::protobuf::uint32 cached_has_bits = 0;1201(void) cached_has_bits;12021203cached_has_bits = _has_bits_[0];1204// optional string name = 1;1205if (cached_has_bits & 0x00000001u) {1206::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1207this->name().data(), static_cast<int>(this->name().length()),1208::google::protobuf::internal::WireFormat::SERIALIZE,1209"opencv_onnx.AttributeProto.name");1210::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(12111, this->name(), output);1212}12131214// optional float f = 2;1215if (cached_has_bits & 0x00000080u) {1216::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->f(), output);1217}12181219// optional int64 i = 3;1220if (cached_has_bits & 0x00000040u) {1221::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->i(), output);1222}12231224// optional bytes s = 4;1225if (cached_has_bits & 0x00000002u) {1226::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(12274, this->s(), output);1228}12291230// optional .opencv_onnx.TensorProto t = 5;1231if (cached_has_bits & 0x00000010u) {1232::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(12335, *this->t_, output);1234}12351236// optional .opencv_onnx.GraphProto g = 6;1237if (cached_has_bits & 0x00000020u) {1238::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(12396, *this->g_, output);1240}12411242// repeated float floats = 7;1243for (int i = 0, n = this->floats_size(); i < n; i++) {1244::google::protobuf::internal::WireFormatLite::WriteFloat(12457, this->floats(i), output);1246}12471248// repeated int64 ints = 8;1249for (int i = 0, n = this->ints_size(); i < n; i++) {1250::google::protobuf::internal::WireFormatLite::WriteInt64(12518, this->ints(i), output);1252}12531254// repeated bytes strings = 9;1255for (int i = 0, n = this->strings_size(); i < n; i++) {1256::google::protobuf::internal::WireFormatLite::WriteBytes(12579, this->strings(i), output);1258}12591260// repeated .opencv_onnx.TensorProto tensors = 10;1261for (unsigned int i = 0,1262n = static_cast<unsigned int>(this->tensors_size()); i < n; i++) {1263::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(126410, this->tensors(static_cast<int>(i)), output);1265}12661267// repeated .opencv_onnx.GraphProto graphs = 11;1268for (unsigned int i = 0,1269n = static_cast<unsigned int>(this->graphs_size()); i < n; i++) {1270::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(127111, this->graphs(static_cast<int>(i)), output);1272}12731274// optional string doc_string = 13;1275if (cached_has_bits & 0x00000004u) {1276::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1277this->doc_string().data(), static_cast<int>(this->doc_string().length()),1278::google::protobuf::internal::WireFormat::SERIALIZE,1279"opencv_onnx.AttributeProto.doc_string");1280::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(128113, this->doc_string(), output);1282}12831284// optional .opencv_onnx.AttributeProto.AttributeType type = 20;1285if (cached_has_bits & 0x00000100u) {1286::google::protobuf::internal::WireFormatLite::WriteEnum(128720, this->type(), output);1288}12891290// optional string ref_attr_name = 21;1291if (cached_has_bits & 0x00000008u) {1292::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1293this->ref_attr_name().data(), static_cast<int>(this->ref_attr_name().length()),1294::google::protobuf::internal::WireFormat::SERIALIZE,1295"opencv_onnx.AttributeProto.ref_attr_name");1296::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(129721, this->ref_attr_name(), output);1298}12991300if (_internal_metadata_.have_unknown_fields()) {1301::google::protobuf::internal::WireFormat::SerializeUnknownFields(1302_internal_metadata_.unknown_fields(), output);1303}1304// @@protoc_insertion_point(serialize_end:opencv_onnx.AttributeProto)1305}13061307::google::protobuf::uint8* AttributeProto::InternalSerializeWithCachedSizesToArray(1308bool deterministic, ::google::protobuf::uint8* target) const {1309(void)deterministic; // Unused1310// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.AttributeProto)1311::google::protobuf::uint32 cached_has_bits = 0;1312(void) cached_has_bits;13131314cached_has_bits = _has_bits_[0];1315// optional string name = 1;1316if (cached_has_bits & 0x00000001u) {1317::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1318this->name().data(), static_cast<int>(this->name().length()),1319::google::protobuf::internal::WireFormat::SERIALIZE,1320"opencv_onnx.AttributeProto.name");1321target =1322::google::protobuf::internal::WireFormatLite::WriteStringToArray(13231, this->name(), target);1324}13251326// optional float f = 2;1327if (cached_has_bits & 0x00000080u) {1328target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->f(), target);1329}13301331// optional int64 i = 3;1332if (cached_has_bits & 0x00000040u) {1333target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->i(), target);1334}13351336// optional bytes s = 4;1337if (cached_has_bits & 0x00000002u) {1338target =1339::google::protobuf::internal::WireFormatLite::WriteBytesToArray(13404, this->s(), target);1341}13421343// optional .opencv_onnx.TensorProto t = 5;1344if (cached_has_bits & 0x00000010u) {1345target = ::google::protobuf::internal::WireFormatLite::1346InternalWriteMessageToArray(13475, *this->t_, deterministic, target);1348}13491350// optional .opencv_onnx.GraphProto g = 6;1351if (cached_has_bits & 0x00000020u) {1352target = ::google::protobuf::internal::WireFormatLite::1353InternalWriteMessageToArray(13546, *this->g_, deterministic, target);1355}13561357// repeated float floats = 7;1358target = ::google::protobuf::internal::WireFormatLite::1359WriteFloatToArray(7, this->floats_, target);13601361// repeated int64 ints = 8;1362target = ::google::protobuf::internal::WireFormatLite::1363WriteInt64ToArray(8, this->ints_, target);13641365// repeated bytes strings = 9;1366for (int i = 0, n = this->strings_size(); i < n; i++) {1367target = ::google::protobuf::internal::WireFormatLite::1368WriteBytesToArray(9, this->strings(i), target);1369}13701371// repeated .opencv_onnx.TensorProto tensors = 10;1372for (unsigned int i = 0,1373n = static_cast<unsigned int>(this->tensors_size()); i < n; i++) {1374target = ::google::protobuf::internal::WireFormatLite::1375InternalWriteMessageToArray(137610, this->tensors(static_cast<int>(i)), deterministic, target);1377}13781379// repeated .opencv_onnx.GraphProto graphs = 11;1380for (unsigned int i = 0,1381n = static_cast<unsigned int>(this->graphs_size()); i < n; i++) {1382target = ::google::protobuf::internal::WireFormatLite::1383InternalWriteMessageToArray(138411, this->graphs(static_cast<int>(i)), deterministic, target);1385}13861387// optional string doc_string = 13;1388if (cached_has_bits & 0x00000004u) {1389::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1390this->doc_string().data(), static_cast<int>(this->doc_string().length()),1391::google::protobuf::internal::WireFormat::SERIALIZE,1392"opencv_onnx.AttributeProto.doc_string");1393target =1394::google::protobuf::internal::WireFormatLite::WriteStringToArray(139513, this->doc_string(), target);1396}13971398// optional .opencv_onnx.AttributeProto.AttributeType type = 20;1399if (cached_has_bits & 0x00000100u) {1400target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(140120, this->type(), target);1402}14031404// optional string ref_attr_name = 21;1405if (cached_has_bits & 0x00000008u) {1406::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1407this->ref_attr_name().data(), static_cast<int>(this->ref_attr_name().length()),1408::google::protobuf::internal::WireFormat::SERIALIZE,1409"opencv_onnx.AttributeProto.ref_attr_name");1410target =1411::google::protobuf::internal::WireFormatLite::WriteStringToArray(141221, this->ref_attr_name(), target);1413}14141415if (_internal_metadata_.have_unknown_fields()) {1416target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1417_internal_metadata_.unknown_fields(), target);1418}1419// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.AttributeProto)1420return target;1421}14221423size_t AttributeProto::ByteSizeLong() const {1424// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.AttributeProto)1425size_t total_size = 0;14261427if (_internal_metadata_.have_unknown_fields()) {1428total_size +=1429::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1430_internal_metadata_.unknown_fields());1431}1432// repeated float floats = 7;1433{1434unsigned int count = static_cast<unsigned int>(this->floats_size());1435size_t data_size = 4UL * count;1436total_size += 1 *1437::google::protobuf::internal::FromIntSize(this->floats_size());1438total_size += data_size;1439}14401441// repeated int64 ints = 8;1442{1443size_t data_size = ::google::protobuf::internal::WireFormatLite::1444Int64Size(this->ints_);1445total_size += 1 *1446::google::protobuf::internal::FromIntSize(this->ints_size());1447total_size += data_size;1448}14491450// repeated bytes strings = 9;1451total_size += 1 *1452::google::protobuf::internal::FromIntSize(this->strings_size());1453for (int i = 0, n = this->strings_size(); i < n; i++) {1454total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(1455this->strings(i));1456}14571458// repeated .opencv_onnx.TensorProto tensors = 10;1459{1460unsigned int count = static_cast<unsigned int>(this->tensors_size());1461total_size += 1UL * count;1462for (unsigned int i = 0; i < count; i++) {1463total_size +=1464::google::protobuf::internal::WireFormatLite::MessageSize(1465this->tensors(static_cast<int>(i)));1466}1467}14681469// repeated .opencv_onnx.GraphProto graphs = 11;1470{1471unsigned int count = static_cast<unsigned int>(this->graphs_size());1472total_size += 1UL * count;1473for (unsigned int i = 0; i < count; i++) {1474total_size +=1475::google::protobuf::internal::WireFormatLite::MessageSize(1476this->graphs(static_cast<int>(i)));1477}1478}14791480if (_has_bits_[0 / 32] & 255u) {1481// optional string name = 1;1482if (has_name()) {1483total_size += 1 +1484::google::protobuf::internal::WireFormatLite::StringSize(1485this->name());1486}14871488// optional bytes s = 4;1489if (has_s()) {1490total_size += 1 +1491::google::protobuf::internal::WireFormatLite::BytesSize(1492this->s());1493}14941495// optional string doc_string = 13;1496if (has_doc_string()) {1497total_size += 1 +1498::google::protobuf::internal::WireFormatLite::StringSize(1499this->doc_string());1500}15011502// optional string ref_attr_name = 21;1503if (has_ref_attr_name()) {1504total_size += 2 +1505::google::protobuf::internal::WireFormatLite::StringSize(1506this->ref_attr_name());1507}15081509// optional .opencv_onnx.TensorProto t = 5;1510if (has_t()) {1511total_size += 1 +1512::google::protobuf::internal::WireFormatLite::MessageSize(1513*this->t_);1514}15151516// optional .opencv_onnx.GraphProto g = 6;1517if (has_g()) {1518total_size += 1 +1519::google::protobuf::internal::WireFormatLite::MessageSize(1520*this->g_);1521}15221523// optional int64 i = 3;1524if (has_i()) {1525total_size += 1 +1526::google::protobuf::internal::WireFormatLite::Int64Size(1527this->i());1528}15291530// optional float f = 2;1531if (has_f()) {1532total_size += 1 + 4;1533}15341535}1536// optional .opencv_onnx.AttributeProto.AttributeType type = 20;1537if (has_type()) {1538total_size += 2 +1539::google::protobuf::internal::WireFormatLite::EnumSize(this->type());1540}15411542int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1543GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1544_cached_size_ = cached_size;1545GOOGLE_SAFE_CONCURRENT_WRITES_END();1546return total_size;1547}15481549void AttributeProto::MergeFrom(const ::google::protobuf::Message& from) {1550// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.AttributeProto)1551GOOGLE_DCHECK_NE(&from, this);1552const AttributeProto* source =1553::google::protobuf::internal::DynamicCastToGenerated<const AttributeProto>(1554&from);1555if (source == NULL) {1556// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.AttributeProto)1557::google::protobuf::internal::ReflectionOps::Merge(from, this);1558} else {1559// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.AttributeProto)1560MergeFrom(*source);1561}1562}15631564void AttributeProto::MergeFrom(const AttributeProto& from) {1565// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.AttributeProto)1566GOOGLE_DCHECK_NE(&from, this);1567_internal_metadata_.MergeFrom(from._internal_metadata_);1568::google::protobuf::uint32 cached_has_bits = 0;1569(void) cached_has_bits;15701571floats_.MergeFrom(from.floats_);1572ints_.MergeFrom(from.ints_);1573strings_.MergeFrom(from.strings_);1574tensors_.MergeFrom(from.tensors_);1575graphs_.MergeFrom(from.graphs_);1576cached_has_bits = from._has_bits_[0];1577if (cached_has_bits & 255u) {1578if (cached_has_bits & 0x00000001u) {1579set_has_name();1580name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);1581}1582if (cached_has_bits & 0x00000002u) {1583set_has_s();1584s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);1585}1586if (cached_has_bits & 0x00000004u) {1587set_has_doc_string();1588doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);1589}1590if (cached_has_bits & 0x00000008u) {1591set_has_ref_attr_name();1592ref_attr_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_attr_name_);1593}1594if (cached_has_bits & 0x00000010u) {1595mutable_t()->::opencv_onnx::TensorProto::MergeFrom(from.t());1596}1597if (cached_has_bits & 0x00000020u) {1598mutable_g()->::opencv_onnx::GraphProto::MergeFrom(from.g());1599}1600if (cached_has_bits & 0x00000040u) {1601i_ = from.i_;1602}1603if (cached_has_bits & 0x00000080u) {1604f_ = from.f_;1605}1606_has_bits_[0] |= cached_has_bits;1607}1608if (cached_has_bits & 0x00000100u) {1609set_type(from.type());1610}1611}16121613void AttributeProto::CopyFrom(const ::google::protobuf::Message& from) {1614// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.AttributeProto)1615if (&from == this) return;1616Clear();1617MergeFrom(from);1618}16191620void AttributeProto::CopyFrom(const AttributeProto& from) {1621// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.AttributeProto)1622if (&from == this) return;1623Clear();1624MergeFrom(from);1625}16261627bool AttributeProto::IsInitialized() const {1628return true;1629}16301631void AttributeProto::Swap(AttributeProto* other) {1632if (other == this) return;1633InternalSwap(other);1634}1635void AttributeProto::InternalSwap(AttributeProto* other) {1636using std::swap;1637floats_.InternalSwap(&other->floats_);1638ints_.InternalSwap(&other->ints_);1639strings_.InternalSwap(&other->strings_);1640tensors_.InternalSwap(&other->tensors_);1641graphs_.InternalSwap(&other->graphs_);1642name_.Swap(&other->name_);1643s_.Swap(&other->s_);1644doc_string_.Swap(&other->doc_string_);1645ref_attr_name_.Swap(&other->ref_attr_name_);1646swap(t_, other->t_);1647swap(g_, other->g_);1648swap(i_, other->i_);1649swap(f_, other->f_);1650swap(type_, other->type_);1651swap(_has_bits_[0], other->_has_bits_[0]);1652_internal_metadata_.Swap(&other->_internal_metadata_);1653swap(_cached_size_, other->_cached_size_);1654}16551656::google::protobuf::Metadata AttributeProto::GetMetadata() const {1657protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();1658return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];1659}166016611662// ===================================================================16631664void ValueInfoProto::InitAsDefaultInstance() {1665::opencv_onnx::_ValueInfoProto_default_instance_._instance.get_mutable()->type_ = const_cast< ::opencv_onnx::TypeProto*>(1666::opencv_onnx::TypeProto::internal_default_instance());1667}1668#if !defined(_MSC_VER) || _MSC_VER >= 19001669const int ValueInfoProto::kNameFieldNumber;1670const int ValueInfoProto::kTypeFieldNumber;1671const int ValueInfoProto::kDocStringFieldNumber;1672#endif // !defined(_MSC_VER) || _MSC_VER >= 190016731674ValueInfoProto::ValueInfoProto()1675: ::google::protobuf::Message(), _internal_metadata_(NULL) {1676if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {1677::protobuf_opencv_2donnx_2eproto::InitDefaultsValueInfoProto();1678}1679SharedCtor();1680// @@protoc_insertion_point(constructor:opencv_onnx.ValueInfoProto)1681}1682ValueInfoProto::ValueInfoProto(const ValueInfoProto& from)1683: ::google::protobuf::Message(),1684_internal_metadata_(NULL),1685_has_bits_(from._has_bits_),1686_cached_size_(0) {1687_internal_metadata_.MergeFrom(from._internal_metadata_);1688name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1689if (from.has_name()) {1690name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);1691}1692doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1693if (from.has_doc_string()) {1694doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);1695}1696if (from.has_type()) {1697type_ = new ::opencv_onnx::TypeProto(*from.type_);1698} else {1699type_ = NULL;1700}1701// @@protoc_insertion_point(copy_constructor:opencv_onnx.ValueInfoProto)1702}17031704void ValueInfoProto::SharedCtor() {1705_cached_size_ = 0;1706name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1707doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1708type_ = NULL;1709}17101711ValueInfoProto::~ValueInfoProto() {1712// @@protoc_insertion_point(destructor:opencv_onnx.ValueInfoProto)1713SharedDtor();1714}17151716void ValueInfoProto::SharedDtor() {1717name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1718doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1719if (this != internal_default_instance()) delete type_;1720}17211722void ValueInfoProto::SetCachedSize(int size) const {1723GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1724_cached_size_ = size;1725GOOGLE_SAFE_CONCURRENT_WRITES_END();1726}1727const ::google::protobuf::Descriptor* ValueInfoProto::descriptor() {1728::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();1729return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;1730}17311732const ValueInfoProto& ValueInfoProto::default_instance() {1733::protobuf_opencv_2donnx_2eproto::InitDefaultsValueInfoProto();1734return *internal_default_instance();1735}17361737ValueInfoProto* ValueInfoProto::New(::google::protobuf::Arena* arena) const {1738ValueInfoProto* n = new ValueInfoProto;1739if (arena != NULL) {1740arena->Own(n);1741}1742return n;1743}17441745void ValueInfoProto::Clear() {1746// @@protoc_insertion_point(message_clear_start:opencv_onnx.ValueInfoProto)1747::google::protobuf::uint32 cached_has_bits = 0;1748// Prevent compiler warnings about cached_has_bits being unused1749(void) cached_has_bits;17501751cached_has_bits = _has_bits_[0];1752if (cached_has_bits & 7u) {1753if (cached_has_bits & 0x00000001u) {1754GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));1755(*name_.UnsafeRawStringPointer())->clear();1756}1757if (cached_has_bits & 0x00000002u) {1758GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));1759(*doc_string_.UnsafeRawStringPointer())->clear();1760}1761if (cached_has_bits & 0x00000004u) {1762GOOGLE_DCHECK(type_ != NULL);1763type_->Clear();1764}1765}1766_has_bits_.Clear();1767_internal_metadata_.Clear();1768}17691770bool ValueInfoProto::MergePartialFromCodedStream(1771::google::protobuf::io::CodedInputStream* input) {1772#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure1773::google::protobuf::uint32 tag;1774// @@protoc_insertion_point(parse_start:opencv_onnx.ValueInfoProto)1775for (;;) {1776::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);1777tag = p.first;1778if (!p.second) goto handle_unusual;1779switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {1780// optional string name = 1;1781case 1: {1782if (static_cast< ::google::protobuf::uint8>(tag) ==1783static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {1784DO_(::google::protobuf::internal::WireFormatLite::ReadString(1785input, this->mutable_name()));1786::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1787this->name().data(), static_cast<int>(this->name().length()),1788::google::protobuf::internal::WireFormat::PARSE,1789"opencv_onnx.ValueInfoProto.name");1790} else {1791goto handle_unusual;1792}1793break;1794}17951796// optional .opencv_onnx.TypeProto type = 2;1797case 2: {1798if (static_cast< ::google::protobuf::uint8>(tag) ==1799static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {1800DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1801input, mutable_type()));1802} else {1803goto handle_unusual;1804}1805break;1806}18071808// optional string doc_string = 3;1809case 3: {1810if (static_cast< ::google::protobuf::uint8>(tag) ==1811static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {1812DO_(::google::protobuf::internal::WireFormatLite::ReadString(1813input, this->mutable_doc_string()));1814::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1815this->doc_string().data(), static_cast<int>(this->doc_string().length()),1816::google::protobuf::internal::WireFormat::PARSE,1817"opencv_onnx.ValueInfoProto.doc_string");1818} else {1819goto handle_unusual;1820}1821break;1822}18231824default: {1825handle_unusual:1826if (tag == 0) {1827goto success;1828}1829DO_(::google::protobuf::internal::WireFormat::SkipField(1830input, tag, _internal_metadata_.mutable_unknown_fields()));1831break;1832}1833}1834}1835success:1836// @@protoc_insertion_point(parse_success:opencv_onnx.ValueInfoProto)1837return true;1838failure:1839// @@protoc_insertion_point(parse_failure:opencv_onnx.ValueInfoProto)1840return false;1841#undef DO_1842}18431844void ValueInfoProto::SerializeWithCachedSizes(1845::google::protobuf::io::CodedOutputStream* output) const {1846// @@protoc_insertion_point(serialize_start:opencv_onnx.ValueInfoProto)1847::google::protobuf::uint32 cached_has_bits = 0;1848(void) cached_has_bits;18491850cached_has_bits = _has_bits_[0];1851// optional string name = 1;1852if (cached_has_bits & 0x00000001u) {1853::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1854this->name().data(), static_cast<int>(this->name().length()),1855::google::protobuf::internal::WireFormat::SERIALIZE,1856"opencv_onnx.ValueInfoProto.name");1857::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(18581, this->name(), output);1859}18601861// optional .opencv_onnx.TypeProto type = 2;1862if (cached_has_bits & 0x00000004u) {1863::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(18642, *this->type_, output);1865}18661867// optional string doc_string = 3;1868if (cached_has_bits & 0x00000002u) {1869::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1870this->doc_string().data(), static_cast<int>(this->doc_string().length()),1871::google::protobuf::internal::WireFormat::SERIALIZE,1872"opencv_onnx.ValueInfoProto.doc_string");1873::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(18743, this->doc_string(), output);1875}18761877if (_internal_metadata_.have_unknown_fields()) {1878::google::protobuf::internal::WireFormat::SerializeUnknownFields(1879_internal_metadata_.unknown_fields(), output);1880}1881// @@protoc_insertion_point(serialize_end:opencv_onnx.ValueInfoProto)1882}18831884::google::protobuf::uint8* ValueInfoProto::InternalSerializeWithCachedSizesToArray(1885bool deterministic, ::google::protobuf::uint8* target) const {1886(void)deterministic; // Unused1887// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.ValueInfoProto)1888::google::protobuf::uint32 cached_has_bits = 0;1889(void) cached_has_bits;18901891cached_has_bits = _has_bits_[0];1892// optional string name = 1;1893if (cached_has_bits & 0x00000001u) {1894::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1895this->name().data(), static_cast<int>(this->name().length()),1896::google::protobuf::internal::WireFormat::SERIALIZE,1897"opencv_onnx.ValueInfoProto.name");1898target =1899::google::protobuf::internal::WireFormatLite::WriteStringToArray(19001, this->name(), target);1901}19021903// optional .opencv_onnx.TypeProto type = 2;1904if (cached_has_bits & 0x00000004u) {1905target = ::google::protobuf::internal::WireFormatLite::1906InternalWriteMessageToArray(19072, *this->type_, deterministic, target);1908}19091910// optional string doc_string = 3;1911if (cached_has_bits & 0x00000002u) {1912::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(1913this->doc_string().data(), static_cast<int>(this->doc_string().length()),1914::google::protobuf::internal::WireFormat::SERIALIZE,1915"opencv_onnx.ValueInfoProto.doc_string");1916target =1917::google::protobuf::internal::WireFormatLite::WriteStringToArray(19183, this->doc_string(), target);1919}19201921if (_internal_metadata_.have_unknown_fields()) {1922target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1923_internal_metadata_.unknown_fields(), target);1924}1925// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.ValueInfoProto)1926return target;1927}19281929size_t ValueInfoProto::ByteSizeLong() const {1930// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.ValueInfoProto)1931size_t total_size = 0;19321933if (_internal_metadata_.have_unknown_fields()) {1934total_size +=1935::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1936_internal_metadata_.unknown_fields());1937}1938if (_has_bits_[0 / 32] & 7u) {1939// optional string name = 1;1940if (has_name()) {1941total_size += 1 +1942::google::protobuf::internal::WireFormatLite::StringSize(1943this->name());1944}19451946// optional string doc_string = 3;1947if (has_doc_string()) {1948total_size += 1 +1949::google::protobuf::internal::WireFormatLite::StringSize(1950this->doc_string());1951}19521953// optional .opencv_onnx.TypeProto type = 2;1954if (has_type()) {1955total_size += 1 +1956::google::protobuf::internal::WireFormatLite::MessageSize(1957*this->type_);1958}19591960}1961int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1962GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1963_cached_size_ = cached_size;1964GOOGLE_SAFE_CONCURRENT_WRITES_END();1965return total_size;1966}19671968void ValueInfoProto::MergeFrom(const ::google::protobuf::Message& from) {1969// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.ValueInfoProto)1970GOOGLE_DCHECK_NE(&from, this);1971const ValueInfoProto* source =1972::google::protobuf::internal::DynamicCastToGenerated<const ValueInfoProto>(1973&from);1974if (source == NULL) {1975// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.ValueInfoProto)1976::google::protobuf::internal::ReflectionOps::Merge(from, this);1977} else {1978// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.ValueInfoProto)1979MergeFrom(*source);1980}1981}19821983void ValueInfoProto::MergeFrom(const ValueInfoProto& from) {1984// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.ValueInfoProto)1985GOOGLE_DCHECK_NE(&from, this);1986_internal_metadata_.MergeFrom(from._internal_metadata_);1987::google::protobuf::uint32 cached_has_bits = 0;1988(void) cached_has_bits;19891990cached_has_bits = from._has_bits_[0];1991if (cached_has_bits & 7u) {1992if (cached_has_bits & 0x00000001u) {1993set_has_name();1994name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);1995}1996if (cached_has_bits & 0x00000002u) {1997set_has_doc_string();1998doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);1999}2000if (cached_has_bits & 0x00000004u) {2001mutable_type()->::opencv_onnx::TypeProto::MergeFrom(from.type());2002}2003}2004}20052006void ValueInfoProto::CopyFrom(const ::google::protobuf::Message& from) {2007// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.ValueInfoProto)2008if (&from == this) return;2009Clear();2010MergeFrom(from);2011}20122013void ValueInfoProto::CopyFrom(const ValueInfoProto& from) {2014// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.ValueInfoProto)2015if (&from == this) return;2016Clear();2017MergeFrom(from);2018}20192020bool ValueInfoProto::IsInitialized() const {2021return true;2022}20232024void ValueInfoProto::Swap(ValueInfoProto* other) {2025if (other == this) return;2026InternalSwap(other);2027}2028void ValueInfoProto::InternalSwap(ValueInfoProto* other) {2029using std::swap;2030name_.Swap(&other->name_);2031doc_string_.Swap(&other->doc_string_);2032swap(type_, other->type_);2033swap(_has_bits_[0], other->_has_bits_[0]);2034_internal_metadata_.Swap(&other->_internal_metadata_);2035swap(_cached_size_, other->_cached_size_);2036}20372038::google::protobuf::Metadata ValueInfoProto::GetMetadata() const {2039protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();2040return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];2041}204220432044// ===================================================================20452046void NodeProto::InitAsDefaultInstance() {2047}2048#if !defined(_MSC_VER) || _MSC_VER >= 19002049const int NodeProto::kInputFieldNumber;2050const int NodeProto::kOutputFieldNumber;2051const int NodeProto::kNameFieldNumber;2052const int NodeProto::kOpTypeFieldNumber;2053const int NodeProto::kDomainFieldNumber;2054const int NodeProto::kAttributeFieldNumber;2055const int NodeProto::kDocStringFieldNumber;2056#endif // !defined(_MSC_VER) || _MSC_VER >= 190020572058NodeProto::NodeProto()2059: ::google::protobuf::Message(), _internal_metadata_(NULL) {2060if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {2061::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();2062}2063SharedCtor();2064// @@protoc_insertion_point(constructor:opencv_onnx.NodeProto)2065}2066NodeProto::NodeProto(const NodeProto& from)2067: ::google::protobuf::Message(),2068_internal_metadata_(NULL),2069_has_bits_(from._has_bits_),2070_cached_size_(0),2071input_(from.input_),2072output_(from.output_),2073attribute_(from.attribute_) {2074_internal_metadata_.MergeFrom(from._internal_metadata_);2075name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2076if (from.has_name()) {2077name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);2078}2079op_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2080if (from.has_op_type()) {2081op_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op_type_);2082}2083doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2084if (from.has_doc_string()) {2085doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);2086}2087domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2088if (from.has_domain()) {2089domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);2090}2091// @@protoc_insertion_point(copy_constructor:opencv_onnx.NodeProto)2092}20932094void NodeProto::SharedCtor() {2095_cached_size_ = 0;2096name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2097op_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2098doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2099domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2100}21012102NodeProto::~NodeProto() {2103// @@protoc_insertion_point(destructor:opencv_onnx.NodeProto)2104SharedDtor();2105}21062107void NodeProto::SharedDtor() {2108name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2109op_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2110doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2111domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2112}21132114void NodeProto::SetCachedSize(int size) const {2115GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();2116_cached_size_ = size;2117GOOGLE_SAFE_CONCURRENT_WRITES_END();2118}2119const ::google::protobuf::Descriptor* NodeProto::descriptor() {2120::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();2121return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;2122}21232124const NodeProto& NodeProto::default_instance() {2125::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();2126return *internal_default_instance();2127}21282129NodeProto* NodeProto::New(::google::protobuf::Arena* arena) const {2130NodeProto* n = new NodeProto;2131if (arena != NULL) {2132arena->Own(n);2133}2134return n;2135}21362137void NodeProto::Clear() {2138// @@protoc_insertion_point(message_clear_start:opencv_onnx.NodeProto)2139::google::protobuf::uint32 cached_has_bits = 0;2140// Prevent compiler warnings about cached_has_bits being unused2141(void) cached_has_bits;21422143input_.Clear();2144output_.Clear();2145attribute_.Clear();2146cached_has_bits = _has_bits_[0];2147if (cached_has_bits & 15u) {2148if (cached_has_bits & 0x00000001u) {2149GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2150(*name_.UnsafeRawStringPointer())->clear();2151}2152if (cached_has_bits & 0x00000002u) {2153GOOGLE_DCHECK(!op_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2154(*op_type_.UnsafeRawStringPointer())->clear();2155}2156if (cached_has_bits & 0x00000004u) {2157GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2158(*doc_string_.UnsafeRawStringPointer())->clear();2159}2160if (cached_has_bits & 0x00000008u) {2161GOOGLE_DCHECK(!domain_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2162(*domain_.UnsafeRawStringPointer())->clear();2163}2164}2165_has_bits_.Clear();2166_internal_metadata_.Clear();2167}21682169bool NodeProto::MergePartialFromCodedStream(2170::google::protobuf::io::CodedInputStream* input) {2171#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure2172::google::protobuf::uint32 tag;2173// @@protoc_insertion_point(parse_start:opencv_onnx.NodeProto)2174for (;;) {2175::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);2176tag = p.first;2177if (!p.second) goto handle_unusual;2178switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {2179// repeated string input = 1;2180case 1: {2181if (static_cast< ::google::protobuf::uint8>(tag) ==2182static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {2183DO_(::google::protobuf::internal::WireFormatLite::ReadString(2184input, this->add_input()));2185::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2186this->input(this->input_size() - 1).data(),2187static_cast<int>(this->input(this->input_size() - 1).length()),2188::google::protobuf::internal::WireFormat::PARSE,2189"opencv_onnx.NodeProto.input");2190} else {2191goto handle_unusual;2192}2193break;2194}21952196// repeated string output = 2;2197case 2: {2198if (static_cast< ::google::protobuf::uint8>(tag) ==2199static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {2200DO_(::google::protobuf::internal::WireFormatLite::ReadString(2201input, this->add_output()));2202::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2203this->output(this->output_size() - 1).data(),2204static_cast<int>(this->output(this->output_size() - 1).length()),2205::google::protobuf::internal::WireFormat::PARSE,2206"opencv_onnx.NodeProto.output");2207} else {2208goto handle_unusual;2209}2210break;2211}22122213// optional string name = 3;2214case 3: {2215if (static_cast< ::google::protobuf::uint8>(tag) ==2216static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {2217DO_(::google::protobuf::internal::WireFormatLite::ReadString(2218input, this->mutable_name()));2219::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2220this->name().data(), static_cast<int>(this->name().length()),2221::google::protobuf::internal::WireFormat::PARSE,2222"opencv_onnx.NodeProto.name");2223} else {2224goto handle_unusual;2225}2226break;2227}22282229// optional string op_type = 4;2230case 4: {2231if (static_cast< ::google::protobuf::uint8>(tag) ==2232static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {2233DO_(::google::protobuf::internal::WireFormatLite::ReadString(2234input, this->mutable_op_type()));2235::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2236this->op_type().data(), static_cast<int>(this->op_type().length()),2237::google::protobuf::internal::WireFormat::PARSE,2238"opencv_onnx.NodeProto.op_type");2239} else {2240goto handle_unusual;2241}2242break;2243}22442245// repeated .opencv_onnx.AttributeProto attribute = 5;2246case 5: {2247if (static_cast< ::google::protobuf::uint8>(tag) ==2248static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {2249DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_attribute()));2250} else {2251goto handle_unusual;2252}2253break;2254}22552256// optional string doc_string = 6;2257case 6: {2258if (static_cast< ::google::protobuf::uint8>(tag) ==2259static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {2260DO_(::google::protobuf::internal::WireFormatLite::ReadString(2261input, this->mutable_doc_string()));2262::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2263this->doc_string().data(), static_cast<int>(this->doc_string().length()),2264::google::protobuf::internal::WireFormat::PARSE,2265"opencv_onnx.NodeProto.doc_string");2266} else {2267goto handle_unusual;2268}2269break;2270}22712272// optional string domain = 7;2273case 7: {2274if (static_cast< ::google::protobuf::uint8>(tag) ==2275static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {2276DO_(::google::protobuf::internal::WireFormatLite::ReadString(2277input, this->mutable_domain()));2278::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2279this->domain().data(), static_cast<int>(this->domain().length()),2280::google::protobuf::internal::WireFormat::PARSE,2281"opencv_onnx.NodeProto.domain");2282} else {2283goto handle_unusual;2284}2285break;2286}22872288default: {2289handle_unusual:2290if (tag == 0) {2291goto success;2292}2293DO_(::google::protobuf::internal::WireFormat::SkipField(2294input, tag, _internal_metadata_.mutable_unknown_fields()));2295break;2296}2297}2298}2299success:2300// @@protoc_insertion_point(parse_success:opencv_onnx.NodeProto)2301return true;2302failure:2303// @@protoc_insertion_point(parse_failure:opencv_onnx.NodeProto)2304return false;2305#undef DO_2306}23072308void NodeProto::SerializeWithCachedSizes(2309::google::protobuf::io::CodedOutputStream* output) const {2310// @@protoc_insertion_point(serialize_start:opencv_onnx.NodeProto)2311::google::protobuf::uint32 cached_has_bits = 0;2312(void) cached_has_bits;23132314// repeated string input = 1;2315for (int i = 0, n = this->input_size(); i < n; i++) {2316::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2317this->input(i).data(), static_cast<int>(this->input(i).length()),2318::google::protobuf::internal::WireFormat::SERIALIZE,2319"opencv_onnx.NodeProto.input");2320::google::protobuf::internal::WireFormatLite::WriteString(23211, this->input(i), output);2322}23232324// repeated string output = 2;2325for (int i = 0, n = this->output_size(); i < n; i++) {2326::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2327this->output(i).data(), static_cast<int>(this->output(i).length()),2328::google::protobuf::internal::WireFormat::SERIALIZE,2329"opencv_onnx.NodeProto.output");2330::google::protobuf::internal::WireFormatLite::WriteString(23312, this->output(i), output);2332}23332334cached_has_bits = _has_bits_[0];2335// optional string name = 3;2336if (cached_has_bits & 0x00000001u) {2337::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2338this->name().data(), static_cast<int>(this->name().length()),2339::google::protobuf::internal::WireFormat::SERIALIZE,2340"opencv_onnx.NodeProto.name");2341::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(23423, this->name(), output);2343}23442345// optional string op_type = 4;2346if (cached_has_bits & 0x00000002u) {2347::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2348this->op_type().data(), static_cast<int>(this->op_type().length()),2349::google::protobuf::internal::WireFormat::SERIALIZE,2350"opencv_onnx.NodeProto.op_type");2351::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(23524, this->op_type(), output);2353}23542355// repeated .opencv_onnx.AttributeProto attribute = 5;2356for (unsigned int i = 0,2357n = static_cast<unsigned int>(this->attribute_size()); i < n; i++) {2358::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(23595, this->attribute(static_cast<int>(i)), output);2360}23612362// optional string doc_string = 6;2363if (cached_has_bits & 0x00000004u) {2364::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2365this->doc_string().data(), static_cast<int>(this->doc_string().length()),2366::google::protobuf::internal::WireFormat::SERIALIZE,2367"opencv_onnx.NodeProto.doc_string");2368::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(23696, this->doc_string(), output);2370}23712372// optional string domain = 7;2373if (cached_has_bits & 0x00000008u) {2374::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2375this->domain().data(), static_cast<int>(this->domain().length()),2376::google::protobuf::internal::WireFormat::SERIALIZE,2377"opencv_onnx.NodeProto.domain");2378::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(23797, this->domain(), output);2380}23812382if (_internal_metadata_.have_unknown_fields()) {2383::google::protobuf::internal::WireFormat::SerializeUnknownFields(2384_internal_metadata_.unknown_fields(), output);2385}2386// @@protoc_insertion_point(serialize_end:opencv_onnx.NodeProto)2387}23882389::google::protobuf::uint8* NodeProto::InternalSerializeWithCachedSizesToArray(2390bool deterministic, ::google::protobuf::uint8* target) const {2391(void)deterministic; // Unused2392// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.NodeProto)2393::google::protobuf::uint32 cached_has_bits = 0;2394(void) cached_has_bits;23952396// repeated string input = 1;2397for (int i = 0, n = this->input_size(); i < n; i++) {2398::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2399this->input(i).data(), static_cast<int>(this->input(i).length()),2400::google::protobuf::internal::WireFormat::SERIALIZE,2401"opencv_onnx.NodeProto.input");2402target = ::google::protobuf::internal::WireFormatLite::2403WriteStringToArray(1, this->input(i), target);2404}24052406// repeated string output = 2;2407for (int i = 0, n = this->output_size(); i < n; i++) {2408::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2409this->output(i).data(), static_cast<int>(this->output(i).length()),2410::google::protobuf::internal::WireFormat::SERIALIZE,2411"opencv_onnx.NodeProto.output");2412target = ::google::protobuf::internal::WireFormatLite::2413WriteStringToArray(2, this->output(i), target);2414}24152416cached_has_bits = _has_bits_[0];2417// optional string name = 3;2418if (cached_has_bits & 0x00000001u) {2419::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2420this->name().data(), static_cast<int>(this->name().length()),2421::google::protobuf::internal::WireFormat::SERIALIZE,2422"opencv_onnx.NodeProto.name");2423target =2424::google::protobuf::internal::WireFormatLite::WriteStringToArray(24253, this->name(), target);2426}24272428// optional string op_type = 4;2429if (cached_has_bits & 0x00000002u) {2430::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2431this->op_type().data(), static_cast<int>(this->op_type().length()),2432::google::protobuf::internal::WireFormat::SERIALIZE,2433"opencv_onnx.NodeProto.op_type");2434target =2435::google::protobuf::internal::WireFormatLite::WriteStringToArray(24364, this->op_type(), target);2437}24382439// repeated .opencv_onnx.AttributeProto attribute = 5;2440for (unsigned int i = 0,2441n = static_cast<unsigned int>(this->attribute_size()); i < n; i++) {2442target = ::google::protobuf::internal::WireFormatLite::2443InternalWriteMessageToArray(24445, this->attribute(static_cast<int>(i)), deterministic, target);2445}24462447// optional string doc_string = 6;2448if (cached_has_bits & 0x00000004u) {2449::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2450this->doc_string().data(), static_cast<int>(this->doc_string().length()),2451::google::protobuf::internal::WireFormat::SERIALIZE,2452"opencv_onnx.NodeProto.doc_string");2453target =2454::google::protobuf::internal::WireFormatLite::WriteStringToArray(24556, this->doc_string(), target);2456}24572458// optional string domain = 7;2459if (cached_has_bits & 0x00000008u) {2460::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2461this->domain().data(), static_cast<int>(this->domain().length()),2462::google::protobuf::internal::WireFormat::SERIALIZE,2463"opencv_onnx.NodeProto.domain");2464target =2465::google::protobuf::internal::WireFormatLite::WriteStringToArray(24667, this->domain(), target);2467}24682469if (_internal_metadata_.have_unknown_fields()) {2470target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(2471_internal_metadata_.unknown_fields(), target);2472}2473// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.NodeProto)2474return target;2475}24762477size_t NodeProto::ByteSizeLong() const {2478// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.NodeProto)2479size_t total_size = 0;24802481if (_internal_metadata_.have_unknown_fields()) {2482total_size +=2483::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(2484_internal_metadata_.unknown_fields());2485}2486// repeated string input = 1;2487total_size += 1 *2488::google::protobuf::internal::FromIntSize(this->input_size());2489for (int i = 0, n = this->input_size(); i < n; i++) {2490total_size += ::google::protobuf::internal::WireFormatLite::StringSize(2491this->input(i));2492}24932494// repeated string output = 2;2495total_size += 1 *2496::google::protobuf::internal::FromIntSize(this->output_size());2497for (int i = 0, n = this->output_size(); i < n; i++) {2498total_size += ::google::protobuf::internal::WireFormatLite::StringSize(2499this->output(i));2500}25012502// repeated .opencv_onnx.AttributeProto attribute = 5;2503{2504unsigned int count = static_cast<unsigned int>(this->attribute_size());2505total_size += 1UL * count;2506for (unsigned int i = 0; i < count; i++) {2507total_size +=2508::google::protobuf::internal::WireFormatLite::MessageSize(2509this->attribute(static_cast<int>(i)));2510}2511}25122513if (_has_bits_[0 / 32] & 15u) {2514// optional string name = 3;2515if (has_name()) {2516total_size += 1 +2517::google::protobuf::internal::WireFormatLite::StringSize(2518this->name());2519}25202521// optional string op_type = 4;2522if (has_op_type()) {2523total_size += 1 +2524::google::protobuf::internal::WireFormatLite::StringSize(2525this->op_type());2526}25272528// optional string doc_string = 6;2529if (has_doc_string()) {2530total_size += 1 +2531::google::protobuf::internal::WireFormatLite::StringSize(2532this->doc_string());2533}25342535// optional string domain = 7;2536if (has_domain()) {2537total_size += 1 +2538::google::protobuf::internal::WireFormatLite::StringSize(2539this->domain());2540}25412542}2543int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);2544GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();2545_cached_size_ = cached_size;2546GOOGLE_SAFE_CONCURRENT_WRITES_END();2547return total_size;2548}25492550void NodeProto::MergeFrom(const ::google::protobuf::Message& from) {2551// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.NodeProto)2552GOOGLE_DCHECK_NE(&from, this);2553const NodeProto* source =2554::google::protobuf::internal::DynamicCastToGenerated<const NodeProto>(2555&from);2556if (source == NULL) {2557// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.NodeProto)2558::google::protobuf::internal::ReflectionOps::Merge(from, this);2559} else {2560// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.NodeProto)2561MergeFrom(*source);2562}2563}25642565void NodeProto::MergeFrom(const NodeProto& from) {2566// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.NodeProto)2567GOOGLE_DCHECK_NE(&from, this);2568_internal_metadata_.MergeFrom(from._internal_metadata_);2569::google::protobuf::uint32 cached_has_bits = 0;2570(void) cached_has_bits;25712572input_.MergeFrom(from.input_);2573output_.MergeFrom(from.output_);2574attribute_.MergeFrom(from.attribute_);2575cached_has_bits = from._has_bits_[0];2576if (cached_has_bits & 15u) {2577if (cached_has_bits & 0x00000001u) {2578set_has_name();2579name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);2580}2581if (cached_has_bits & 0x00000002u) {2582set_has_op_type();2583op_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op_type_);2584}2585if (cached_has_bits & 0x00000004u) {2586set_has_doc_string();2587doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);2588}2589if (cached_has_bits & 0x00000008u) {2590set_has_domain();2591domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);2592}2593}2594}25952596void NodeProto::CopyFrom(const ::google::protobuf::Message& from) {2597// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.NodeProto)2598if (&from == this) return;2599Clear();2600MergeFrom(from);2601}26022603void NodeProto::CopyFrom(const NodeProto& from) {2604// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.NodeProto)2605if (&from == this) return;2606Clear();2607MergeFrom(from);2608}26092610bool NodeProto::IsInitialized() const {2611return true;2612}26132614void NodeProto::Swap(NodeProto* other) {2615if (other == this) return;2616InternalSwap(other);2617}2618void NodeProto::InternalSwap(NodeProto* other) {2619using std::swap;2620input_.InternalSwap(&other->input_);2621output_.InternalSwap(&other->output_);2622attribute_.InternalSwap(&other->attribute_);2623name_.Swap(&other->name_);2624op_type_.Swap(&other->op_type_);2625doc_string_.Swap(&other->doc_string_);2626domain_.Swap(&other->domain_);2627swap(_has_bits_[0], other->_has_bits_[0]);2628_internal_metadata_.Swap(&other->_internal_metadata_);2629swap(_cached_size_, other->_cached_size_);2630}26312632::google::protobuf::Metadata NodeProto::GetMetadata() const {2633protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();2634return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];2635}263626372638// ===================================================================26392640void ModelProto::InitAsDefaultInstance() {2641::opencv_onnx::_ModelProto_default_instance_._instance.get_mutable()->graph_ = const_cast< ::opencv_onnx::GraphProto*>(2642::opencv_onnx::GraphProto::internal_default_instance());2643}2644#if !defined(_MSC_VER) || _MSC_VER >= 19002645const int ModelProto::kIrVersionFieldNumber;2646const int ModelProto::kOpsetImportFieldNumber;2647const int ModelProto::kProducerNameFieldNumber;2648const int ModelProto::kProducerVersionFieldNumber;2649const int ModelProto::kDomainFieldNumber;2650const int ModelProto::kModelVersionFieldNumber;2651const int ModelProto::kDocStringFieldNumber;2652const int ModelProto::kGraphFieldNumber;2653const int ModelProto::kMetadataPropsFieldNumber;2654#endif // !defined(_MSC_VER) || _MSC_VER >= 190026552656ModelProto::ModelProto()2657: ::google::protobuf::Message(), _internal_metadata_(NULL) {2658if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {2659::protobuf_opencv_2donnx_2eproto::InitDefaultsModelProto();2660}2661SharedCtor();2662// @@protoc_insertion_point(constructor:opencv_onnx.ModelProto)2663}2664ModelProto::ModelProto(const ModelProto& from)2665: ::google::protobuf::Message(),2666_internal_metadata_(NULL),2667_has_bits_(from._has_bits_),2668_cached_size_(0),2669opset_import_(from.opset_import_),2670metadata_props_(from.metadata_props_) {2671_internal_metadata_.MergeFrom(from._internal_metadata_);2672producer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2673if (from.has_producer_name()) {2674producer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_name_);2675}2676producer_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2677if (from.has_producer_version()) {2678producer_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_version_);2679}2680domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2681if (from.has_domain()) {2682domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);2683}2684doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2685if (from.has_doc_string()) {2686doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);2687}2688if (from.has_graph()) {2689graph_ = new ::opencv_onnx::GraphProto(*from.graph_);2690} else {2691graph_ = NULL;2692}2693::memcpy(&ir_version_, &from.ir_version_,2694static_cast<size_t>(reinterpret_cast<char*>(&model_version_) -2695reinterpret_cast<char*>(&ir_version_)) + sizeof(model_version_));2696// @@protoc_insertion_point(copy_constructor:opencv_onnx.ModelProto)2697}26982699void ModelProto::SharedCtor() {2700_cached_size_ = 0;2701producer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2702producer_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2703domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2704doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2705::memset(&graph_, 0, static_cast<size_t>(2706reinterpret_cast<char*>(&model_version_) -2707reinterpret_cast<char*>(&graph_)) + sizeof(model_version_));2708}27092710ModelProto::~ModelProto() {2711// @@protoc_insertion_point(destructor:opencv_onnx.ModelProto)2712SharedDtor();2713}27142715void ModelProto::SharedDtor() {2716producer_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2717producer_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2718domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2719doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());2720if (this != internal_default_instance()) delete graph_;2721}27222723void ModelProto::SetCachedSize(int size) const {2724GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();2725_cached_size_ = size;2726GOOGLE_SAFE_CONCURRENT_WRITES_END();2727}2728const ::google::protobuf::Descriptor* ModelProto::descriptor() {2729::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();2730return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;2731}27322733const ModelProto& ModelProto::default_instance() {2734::protobuf_opencv_2donnx_2eproto::InitDefaultsModelProto();2735return *internal_default_instance();2736}27372738ModelProto* ModelProto::New(::google::protobuf::Arena* arena) const {2739ModelProto* n = new ModelProto;2740if (arena != NULL) {2741arena->Own(n);2742}2743return n;2744}27452746void ModelProto::Clear() {2747// @@protoc_insertion_point(message_clear_start:opencv_onnx.ModelProto)2748::google::protobuf::uint32 cached_has_bits = 0;2749// Prevent compiler warnings about cached_has_bits being unused2750(void) cached_has_bits;27512752opset_import_.Clear();2753metadata_props_.Clear();2754cached_has_bits = _has_bits_[0];2755if (cached_has_bits & 31u) {2756if (cached_has_bits & 0x00000001u) {2757GOOGLE_DCHECK(!producer_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2758(*producer_name_.UnsafeRawStringPointer())->clear();2759}2760if (cached_has_bits & 0x00000002u) {2761GOOGLE_DCHECK(!producer_version_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2762(*producer_version_.UnsafeRawStringPointer())->clear();2763}2764if (cached_has_bits & 0x00000004u) {2765GOOGLE_DCHECK(!domain_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2766(*domain_.UnsafeRawStringPointer())->clear();2767}2768if (cached_has_bits & 0x00000008u) {2769GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));2770(*doc_string_.UnsafeRawStringPointer())->clear();2771}2772if (cached_has_bits & 0x00000010u) {2773GOOGLE_DCHECK(graph_ != NULL);2774graph_->Clear();2775}2776}2777if (cached_has_bits & 96u) {2778::memset(&ir_version_, 0, static_cast<size_t>(2779reinterpret_cast<char*>(&model_version_) -2780reinterpret_cast<char*>(&ir_version_)) + sizeof(model_version_));2781}2782_has_bits_.Clear();2783_internal_metadata_.Clear();2784}27852786bool ModelProto::MergePartialFromCodedStream(2787::google::protobuf::io::CodedInputStream* input) {2788#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure2789::google::protobuf::uint32 tag;2790// @@protoc_insertion_point(parse_start:opencv_onnx.ModelProto)2791for (;;) {2792::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);2793tag = p.first;2794if (!p.second) goto handle_unusual;2795switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {2796// optional int64 ir_version = 1;2797case 1: {2798if (static_cast< ::google::protobuf::uint8>(tag) ==2799static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {2800set_has_ir_version();2801DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<2802::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(2803input, &ir_version_)));2804} else {2805goto handle_unusual;2806}2807break;2808}28092810// optional string producer_name = 2;2811case 2: {2812if (static_cast< ::google::protobuf::uint8>(tag) ==2813static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {2814DO_(::google::protobuf::internal::WireFormatLite::ReadString(2815input, this->mutable_producer_name()));2816::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2817this->producer_name().data(), static_cast<int>(this->producer_name().length()),2818::google::protobuf::internal::WireFormat::PARSE,2819"opencv_onnx.ModelProto.producer_name");2820} else {2821goto handle_unusual;2822}2823break;2824}28252826// optional string producer_version = 3;2827case 3: {2828if (static_cast< ::google::protobuf::uint8>(tag) ==2829static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {2830DO_(::google::protobuf::internal::WireFormatLite::ReadString(2831input, this->mutable_producer_version()));2832::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2833this->producer_version().data(), static_cast<int>(this->producer_version().length()),2834::google::protobuf::internal::WireFormat::PARSE,2835"opencv_onnx.ModelProto.producer_version");2836} else {2837goto handle_unusual;2838}2839break;2840}28412842// optional string domain = 4;2843case 4: {2844if (static_cast< ::google::protobuf::uint8>(tag) ==2845static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {2846DO_(::google::protobuf::internal::WireFormatLite::ReadString(2847input, this->mutable_domain()));2848::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2849this->domain().data(), static_cast<int>(this->domain().length()),2850::google::protobuf::internal::WireFormat::PARSE,2851"opencv_onnx.ModelProto.domain");2852} else {2853goto handle_unusual;2854}2855break;2856}28572858// optional int64 model_version = 5;2859case 5: {2860if (static_cast< ::google::protobuf::uint8>(tag) ==2861static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {2862set_has_model_version();2863DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<2864::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(2865input, &model_version_)));2866} else {2867goto handle_unusual;2868}2869break;2870}28712872// optional string doc_string = 6;2873case 6: {2874if (static_cast< ::google::protobuf::uint8>(tag) ==2875static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {2876DO_(::google::protobuf::internal::WireFormatLite::ReadString(2877input, this->mutable_doc_string()));2878::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2879this->doc_string().data(), static_cast<int>(this->doc_string().length()),2880::google::protobuf::internal::WireFormat::PARSE,2881"opencv_onnx.ModelProto.doc_string");2882} else {2883goto handle_unusual;2884}2885break;2886}28872888// optional .opencv_onnx.GraphProto graph = 7;2889case 7: {2890if (static_cast< ::google::protobuf::uint8>(tag) ==2891static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {2892DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(2893input, mutable_graph()));2894} else {2895goto handle_unusual;2896}2897break;2898}28992900// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;2901case 8: {2902if (static_cast< ::google::protobuf::uint8>(tag) ==2903static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {2904DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_opset_import()));2905} else {2906goto handle_unusual;2907}2908break;2909}29102911// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;2912case 14: {2913if (static_cast< ::google::protobuf::uint8>(tag) ==2914static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {2915DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_metadata_props()));2916} else {2917goto handle_unusual;2918}2919break;2920}29212922default: {2923handle_unusual:2924if (tag == 0) {2925goto success;2926}2927DO_(::google::protobuf::internal::WireFormat::SkipField(2928input, tag, _internal_metadata_.mutable_unknown_fields()));2929break;2930}2931}2932}2933success:2934// @@protoc_insertion_point(parse_success:opencv_onnx.ModelProto)2935return true;2936failure:2937// @@protoc_insertion_point(parse_failure:opencv_onnx.ModelProto)2938return false;2939#undef DO_2940}29412942void ModelProto::SerializeWithCachedSizes(2943::google::protobuf::io::CodedOutputStream* output) const {2944// @@protoc_insertion_point(serialize_start:opencv_onnx.ModelProto)2945::google::protobuf::uint32 cached_has_bits = 0;2946(void) cached_has_bits;29472948cached_has_bits = _has_bits_[0];2949// optional int64 ir_version = 1;2950if (cached_has_bits & 0x00000020u) {2951::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->ir_version(), output);2952}29532954// optional string producer_name = 2;2955if (cached_has_bits & 0x00000001u) {2956::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2957this->producer_name().data(), static_cast<int>(this->producer_name().length()),2958::google::protobuf::internal::WireFormat::SERIALIZE,2959"opencv_onnx.ModelProto.producer_name");2960::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(29612, this->producer_name(), output);2962}29632964// optional string producer_version = 3;2965if (cached_has_bits & 0x00000002u) {2966::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2967this->producer_version().data(), static_cast<int>(this->producer_version().length()),2968::google::protobuf::internal::WireFormat::SERIALIZE,2969"opencv_onnx.ModelProto.producer_version");2970::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(29713, this->producer_version(), output);2972}29732974// optional string domain = 4;2975if (cached_has_bits & 0x00000004u) {2976::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2977this->domain().data(), static_cast<int>(this->domain().length()),2978::google::protobuf::internal::WireFormat::SERIALIZE,2979"opencv_onnx.ModelProto.domain");2980::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(29814, this->domain(), output);2982}29832984// optional int64 model_version = 5;2985if (cached_has_bits & 0x00000040u) {2986::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->model_version(), output);2987}29882989// optional string doc_string = 6;2990if (cached_has_bits & 0x00000008u) {2991::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(2992this->doc_string().data(), static_cast<int>(this->doc_string().length()),2993::google::protobuf::internal::WireFormat::SERIALIZE,2994"opencv_onnx.ModelProto.doc_string");2995::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(29966, this->doc_string(), output);2997}29982999// optional .opencv_onnx.GraphProto graph = 7;3000if (cached_has_bits & 0x00000010u) {3001::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(30027, *this->graph_, output);3003}30043005// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;3006for (unsigned int i = 0,3007n = static_cast<unsigned int>(this->opset_import_size()); i < n; i++) {3008::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(30098, this->opset_import(static_cast<int>(i)), output);3010}30113012// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;3013for (unsigned int i = 0,3014n = static_cast<unsigned int>(this->metadata_props_size()); i < n; i++) {3015::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(301614, this->metadata_props(static_cast<int>(i)), output);3017}30183019if (_internal_metadata_.have_unknown_fields()) {3020::google::protobuf::internal::WireFormat::SerializeUnknownFields(3021_internal_metadata_.unknown_fields(), output);3022}3023// @@protoc_insertion_point(serialize_end:opencv_onnx.ModelProto)3024}30253026::google::protobuf::uint8* ModelProto::InternalSerializeWithCachedSizesToArray(3027bool deterministic, ::google::protobuf::uint8* target) const {3028(void)deterministic; // Unused3029// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.ModelProto)3030::google::protobuf::uint32 cached_has_bits = 0;3031(void) cached_has_bits;30323033cached_has_bits = _has_bits_[0];3034// optional int64 ir_version = 1;3035if (cached_has_bits & 0x00000020u) {3036target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->ir_version(), target);3037}30383039// optional string producer_name = 2;3040if (cached_has_bits & 0x00000001u) {3041::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3042this->producer_name().data(), static_cast<int>(this->producer_name().length()),3043::google::protobuf::internal::WireFormat::SERIALIZE,3044"opencv_onnx.ModelProto.producer_name");3045target =3046::google::protobuf::internal::WireFormatLite::WriteStringToArray(30472, this->producer_name(), target);3048}30493050// optional string producer_version = 3;3051if (cached_has_bits & 0x00000002u) {3052::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3053this->producer_version().data(), static_cast<int>(this->producer_version().length()),3054::google::protobuf::internal::WireFormat::SERIALIZE,3055"opencv_onnx.ModelProto.producer_version");3056target =3057::google::protobuf::internal::WireFormatLite::WriteStringToArray(30583, this->producer_version(), target);3059}30603061// optional string domain = 4;3062if (cached_has_bits & 0x00000004u) {3063::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3064this->domain().data(), static_cast<int>(this->domain().length()),3065::google::protobuf::internal::WireFormat::SERIALIZE,3066"opencv_onnx.ModelProto.domain");3067target =3068::google::protobuf::internal::WireFormatLite::WriteStringToArray(30694, this->domain(), target);3070}30713072// optional int64 model_version = 5;3073if (cached_has_bits & 0x00000040u) {3074target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->model_version(), target);3075}30763077// optional string doc_string = 6;3078if (cached_has_bits & 0x00000008u) {3079::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3080this->doc_string().data(), static_cast<int>(this->doc_string().length()),3081::google::protobuf::internal::WireFormat::SERIALIZE,3082"opencv_onnx.ModelProto.doc_string");3083target =3084::google::protobuf::internal::WireFormatLite::WriteStringToArray(30856, this->doc_string(), target);3086}30873088// optional .opencv_onnx.GraphProto graph = 7;3089if (cached_has_bits & 0x00000010u) {3090target = ::google::protobuf::internal::WireFormatLite::3091InternalWriteMessageToArray(30927, *this->graph_, deterministic, target);3093}30943095// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;3096for (unsigned int i = 0,3097n = static_cast<unsigned int>(this->opset_import_size()); i < n; i++) {3098target = ::google::protobuf::internal::WireFormatLite::3099InternalWriteMessageToArray(31008, this->opset_import(static_cast<int>(i)), deterministic, target);3101}31023103// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;3104for (unsigned int i = 0,3105n = static_cast<unsigned int>(this->metadata_props_size()); i < n; i++) {3106target = ::google::protobuf::internal::WireFormatLite::3107InternalWriteMessageToArray(310814, this->metadata_props(static_cast<int>(i)), deterministic, target);3109}31103111if (_internal_metadata_.have_unknown_fields()) {3112target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(3113_internal_metadata_.unknown_fields(), target);3114}3115// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.ModelProto)3116return target;3117}31183119size_t ModelProto::ByteSizeLong() const {3120// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.ModelProto)3121size_t total_size = 0;31223123if (_internal_metadata_.have_unknown_fields()) {3124total_size +=3125::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(3126_internal_metadata_.unknown_fields());3127}3128// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;3129{3130unsigned int count = static_cast<unsigned int>(this->opset_import_size());3131total_size += 1UL * count;3132for (unsigned int i = 0; i < count; i++) {3133total_size +=3134::google::protobuf::internal::WireFormatLite::MessageSize(3135this->opset_import(static_cast<int>(i)));3136}3137}31383139// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;3140{3141unsigned int count = static_cast<unsigned int>(this->metadata_props_size());3142total_size += 1UL * count;3143for (unsigned int i = 0; i < count; i++) {3144total_size +=3145::google::protobuf::internal::WireFormatLite::MessageSize(3146this->metadata_props(static_cast<int>(i)));3147}3148}31493150if (_has_bits_[0 / 32] & 127u) {3151// optional string producer_name = 2;3152if (has_producer_name()) {3153total_size += 1 +3154::google::protobuf::internal::WireFormatLite::StringSize(3155this->producer_name());3156}31573158// optional string producer_version = 3;3159if (has_producer_version()) {3160total_size += 1 +3161::google::protobuf::internal::WireFormatLite::StringSize(3162this->producer_version());3163}31643165// optional string domain = 4;3166if (has_domain()) {3167total_size += 1 +3168::google::protobuf::internal::WireFormatLite::StringSize(3169this->domain());3170}31713172// optional string doc_string = 6;3173if (has_doc_string()) {3174total_size += 1 +3175::google::protobuf::internal::WireFormatLite::StringSize(3176this->doc_string());3177}31783179// optional .opencv_onnx.GraphProto graph = 7;3180if (has_graph()) {3181total_size += 1 +3182::google::protobuf::internal::WireFormatLite::MessageSize(3183*this->graph_);3184}31853186// optional int64 ir_version = 1;3187if (has_ir_version()) {3188total_size += 1 +3189::google::protobuf::internal::WireFormatLite::Int64Size(3190this->ir_version());3191}31923193// optional int64 model_version = 5;3194if (has_model_version()) {3195total_size += 1 +3196::google::protobuf::internal::WireFormatLite::Int64Size(3197this->model_version());3198}31993200}3201int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);3202GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();3203_cached_size_ = cached_size;3204GOOGLE_SAFE_CONCURRENT_WRITES_END();3205return total_size;3206}32073208void ModelProto::MergeFrom(const ::google::protobuf::Message& from) {3209// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.ModelProto)3210GOOGLE_DCHECK_NE(&from, this);3211const ModelProto* source =3212::google::protobuf::internal::DynamicCastToGenerated<const ModelProto>(3213&from);3214if (source == NULL) {3215// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.ModelProto)3216::google::protobuf::internal::ReflectionOps::Merge(from, this);3217} else {3218// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.ModelProto)3219MergeFrom(*source);3220}3221}32223223void ModelProto::MergeFrom(const ModelProto& from) {3224// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.ModelProto)3225GOOGLE_DCHECK_NE(&from, this);3226_internal_metadata_.MergeFrom(from._internal_metadata_);3227::google::protobuf::uint32 cached_has_bits = 0;3228(void) cached_has_bits;32293230opset_import_.MergeFrom(from.opset_import_);3231metadata_props_.MergeFrom(from.metadata_props_);3232cached_has_bits = from._has_bits_[0];3233if (cached_has_bits & 127u) {3234if (cached_has_bits & 0x00000001u) {3235set_has_producer_name();3236producer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_name_);3237}3238if (cached_has_bits & 0x00000002u) {3239set_has_producer_version();3240producer_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_version_);3241}3242if (cached_has_bits & 0x00000004u) {3243set_has_domain();3244domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);3245}3246if (cached_has_bits & 0x00000008u) {3247set_has_doc_string();3248doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);3249}3250if (cached_has_bits & 0x00000010u) {3251mutable_graph()->::opencv_onnx::GraphProto::MergeFrom(from.graph());3252}3253if (cached_has_bits & 0x00000020u) {3254ir_version_ = from.ir_version_;3255}3256if (cached_has_bits & 0x00000040u) {3257model_version_ = from.model_version_;3258}3259_has_bits_[0] |= cached_has_bits;3260}3261}32623263void ModelProto::CopyFrom(const ::google::protobuf::Message& from) {3264// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.ModelProto)3265if (&from == this) return;3266Clear();3267MergeFrom(from);3268}32693270void ModelProto::CopyFrom(const ModelProto& from) {3271// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.ModelProto)3272if (&from == this) return;3273Clear();3274MergeFrom(from);3275}32763277bool ModelProto::IsInitialized() const {3278return true;3279}32803281void ModelProto::Swap(ModelProto* other) {3282if (other == this) return;3283InternalSwap(other);3284}3285void ModelProto::InternalSwap(ModelProto* other) {3286using std::swap;3287opset_import_.InternalSwap(&other->opset_import_);3288metadata_props_.InternalSwap(&other->metadata_props_);3289producer_name_.Swap(&other->producer_name_);3290producer_version_.Swap(&other->producer_version_);3291domain_.Swap(&other->domain_);3292doc_string_.Swap(&other->doc_string_);3293swap(graph_, other->graph_);3294swap(ir_version_, other->ir_version_);3295swap(model_version_, other->model_version_);3296swap(_has_bits_[0], other->_has_bits_[0]);3297_internal_metadata_.Swap(&other->_internal_metadata_);3298swap(_cached_size_, other->_cached_size_);3299}33003301::google::protobuf::Metadata ModelProto::GetMetadata() const {3302protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();3303return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];3304}330533063307// ===================================================================33083309void StringStringEntryProto::InitAsDefaultInstance() {3310}3311#if !defined(_MSC_VER) || _MSC_VER >= 19003312const int StringStringEntryProto::kKeyFieldNumber;3313const int StringStringEntryProto::kValueFieldNumber;3314#endif // !defined(_MSC_VER) || _MSC_VER >= 190033153316StringStringEntryProto::StringStringEntryProto()3317: ::google::protobuf::Message(), _internal_metadata_(NULL) {3318if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {3319::protobuf_opencv_2donnx_2eproto::InitDefaultsStringStringEntryProto();3320}3321SharedCtor();3322// @@protoc_insertion_point(constructor:opencv_onnx.StringStringEntryProto)3323}3324StringStringEntryProto::StringStringEntryProto(const StringStringEntryProto& from)3325: ::google::protobuf::Message(),3326_internal_metadata_(NULL),3327_has_bits_(from._has_bits_),3328_cached_size_(0) {3329_internal_metadata_.MergeFrom(from._internal_metadata_);3330key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3331if (from.has_key()) {3332key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);3333}3334value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3335if (from.has_value()) {3336value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);3337}3338// @@protoc_insertion_point(copy_constructor:opencv_onnx.StringStringEntryProto)3339}33403341void StringStringEntryProto::SharedCtor() {3342_cached_size_ = 0;3343key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3344value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3345}33463347StringStringEntryProto::~StringStringEntryProto() {3348// @@protoc_insertion_point(destructor:opencv_onnx.StringStringEntryProto)3349SharedDtor();3350}33513352void StringStringEntryProto::SharedDtor() {3353key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3354value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3355}33563357void StringStringEntryProto::SetCachedSize(int size) const {3358GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();3359_cached_size_ = size;3360GOOGLE_SAFE_CONCURRENT_WRITES_END();3361}3362const ::google::protobuf::Descriptor* StringStringEntryProto::descriptor() {3363::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();3364return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;3365}33663367const StringStringEntryProto& StringStringEntryProto::default_instance() {3368::protobuf_opencv_2donnx_2eproto::InitDefaultsStringStringEntryProto();3369return *internal_default_instance();3370}33713372StringStringEntryProto* StringStringEntryProto::New(::google::protobuf::Arena* arena) const {3373StringStringEntryProto* n = new StringStringEntryProto;3374if (arena != NULL) {3375arena->Own(n);3376}3377return n;3378}33793380void StringStringEntryProto::Clear() {3381// @@protoc_insertion_point(message_clear_start:opencv_onnx.StringStringEntryProto)3382::google::protobuf::uint32 cached_has_bits = 0;3383// Prevent compiler warnings about cached_has_bits being unused3384(void) cached_has_bits;33853386cached_has_bits = _has_bits_[0];3387if (cached_has_bits & 3u) {3388if (cached_has_bits & 0x00000001u) {3389GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));3390(*key_.UnsafeRawStringPointer())->clear();3391}3392if (cached_has_bits & 0x00000002u) {3393GOOGLE_DCHECK(!value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));3394(*value_.UnsafeRawStringPointer())->clear();3395}3396}3397_has_bits_.Clear();3398_internal_metadata_.Clear();3399}34003401bool StringStringEntryProto::MergePartialFromCodedStream(3402::google::protobuf::io::CodedInputStream* input) {3403#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure3404::google::protobuf::uint32 tag;3405// @@protoc_insertion_point(parse_start:opencv_onnx.StringStringEntryProto)3406for (;;) {3407::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);3408tag = p.first;3409if (!p.second) goto handle_unusual;3410switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {3411// optional string key = 1;3412case 1: {3413if (static_cast< ::google::protobuf::uint8>(tag) ==3414static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {3415DO_(::google::protobuf::internal::WireFormatLite::ReadString(3416input, this->mutable_key()));3417::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3418this->key().data(), static_cast<int>(this->key().length()),3419::google::protobuf::internal::WireFormat::PARSE,3420"opencv_onnx.StringStringEntryProto.key");3421} else {3422goto handle_unusual;3423}3424break;3425}34263427// optional string value = 2;3428case 2: {3429if (static_cast< ::google::protobuf::uint8>(tag) ==3430static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {3431DO_(::google::protobuf::internal::WireFormatLite::ReadString(3432input, this->mutable_value()));3433::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3434this->value().data(), static_cast<int>(this->value().length()),3435::google::protobuf::internal::WireFormat::PARSE,3436"opencv_onnx.StringStringEntryProto.value");3437} else {3438goto handle_unusual;3439}3440break;3441}34423443default: {3444handle_unusual:3445if (tag == 0) {3446goto success;3447}3448DO_(::google::protobuf::internal::WireFormat::SkipField(3449input, tag, _internal_metadata_.mutable_unknown_fields()));3450break;3451}3452}3453}3454success:3455// @@protoc_insertion_point(parse_success:opencv_onnx.StringStringEntryProto)3456return true;3457failure:3458// @@protoc_insertion_point(parse_failure:opencv_onnx.StringStringEntryProto)3459return false;3460#undef DO_3461}34623463void StringStringEntryProto::SerializeWithCachedSizes(3464::google::protobuf::io::CodedOutputStream* output) const {3465// @@protoc_insertion_point(serialize_start:opencv_onnx.StringStringEntryProto)3466::google::protobuf::uint32 cached_has_bits = 0;3467(void) cached_has_bits;34683469cached_has_bits = _has_bits_[0];3470// optional string key = 1;3471if (cached_has_bits & 0x00000001u) {3472::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3473this->key().data(), static_cast<int>(this->key().length()),3474::google::protobuf::internal::WireFormat::SERIALIZE,3475"opencv_onnx.StringStringEntryProto.key");3476::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(34771, this->key(), output);3478}34793480// optional string value = 2;3481if (cached_has_bits & 0x00000002u) {3482::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3483this->value().data(), static_cast<int>(this->value().length()),3484::google::protobuf::internal::WireFormat::SERIALIZE,3485"opencv_onnx.StringStringEntryProto.value");3486::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(34872, this->value(), output);3488}34893490if (_internal_metadata_.have_unknown_fields()) {3491::google::protobuf::internal::WireFormat::SerializeUnknownFields(3492_internal_metadata_.unknown_fields(), output);3493}3494// @@protoc_insertion_point(serialize_end:opencv_onnx.StringStringEntryProto)3495}34963497::google::protobuf::uint8* StringStringEntryProto::InternalSerializeWithCachedSizesToArray(3498bool deterministic, ::google::protobuf::uint8* target) const {3499(void)deterministic; // Unused3500// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.StringStringEntryProto)3501::google::protobuf::uint32 cached_has_bits = 0;3502(void) cached_has_bits;35033504cached_has_bits = _has_bits_[0];3505// optional string key = 1;3506if (cached_has_bits & 0x00000001u) {3507::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3508this->key().data(), static_cast<int>(this->key().length()),3509::google::protobuf::internal::WireFormat::SERIALIZE,3510"opencv_onnx.StringStringEntryProto.key");3511target =3512::google::protobuf::internal::WireFormatLite::WriteStringToArray(35131, this->key(), target);3514}35153516// optional string value = 2;3517if (cached_has_bits & 0x00000002u) {3518::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3519this->value().data(), static_cast<int>(this->value().length()),3520::google::protobuf::internal::WireFormat::SERIALIZE,3521"opencv_onnx.StringStringEntryProto.value");3522target =3523::google::protobuf::internal::WireFormatLite::WriteStringToArray(35242, this->value(), target);3525}35263527if (_internal_metadata_.have_unknown_fields()) {3528target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(3529_internal_metadata_.unknown_fields(), target);3530}3531// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.StringStringEntryProto)3532return target;3533}35343535size_t StringStringEntryProto::ByteSizeLong() const {3536// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.StringStringEntryProto)3537size_t total_size = 0;35383539if (_internal_metadata_.have_unknown_fields()) {3540total_size +=3541::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(3542_internal_metadata_.unknown_fields());3543}3544if (_has_bits_[0 / 32] & 3u) {3545// optional string key = 1;3546if (has_key()) {3547total_size += 1 +3548::google::protobuf::internal::WireFormatLite::StringSize(3549this->key());3550}35513552// optional string value = 2;3553if (has_value()) {3554total_size += 1 +3555::google::protobuf::internal::WireFormatLite::StringSize(3556this->value());3557}35583559}3560int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);3561GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();3562_cached_size_ = cached_size;3563GOOGLE_SAFE_CONCURRENT_WRITES_END();3564return total_size;3565}35663567void StringStringEntryProto::MergeFrom(const ::google::protobuf::Message& from) {3568// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.StringStringEntryProto)3569GOOGLE_DCHECK_NE(&from, this);3570const StringStringEntryProto* source =3571::google::protobuf::internal::DynamicCastToGenerated<const StringStringEntryProto>(3572&from);3573if (source == NULL) {3574// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.StringStringEntryProto)3575::google::protobuf::internal::ReflectionOps::Merge(from, this);3576} else {3577// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.StringStringEntryProto)3578MergeFrom(*source);3579}3580}35813582void StringStringEntryProto::MergeFrom(const StringStringEntryProto& from) {3583// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.StringStringEntryProto)3584GOOGLE_DCHECK_NE(&from, this);3585_internal_metadata_.MergeFrom(from._internal_metadata_);3586::google::protobuf::uint32 cached_has_bits = 0;3587(void) cached_has_bits;35883589cached_has_bits = from._has_bits_[0];3590if (cached_has_bits & 3u) {3591if (cached_has_bits & 0x00000001u) {3592set_has_key();3593key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);3594}3595if (cached_has_bits & 0x00000002u) {3596set_has_value();3597value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);3598}3599}3600}36013602void StringStringEntryProto::CopyFrom(const ::google::protobuf::Message& from) {3603// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.StringStringEntryProto)3604if (&from == this) return;3605Clear();3606MergeFrom(from);3607}36083609void StringStringEntryProto::CopyFrom(const StringStringEntryProto& from) {3610// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.StringStringEntryProto)3611if (&from == this) return;3612Clear();3613MergeFrom(from);3614}36153616bool StringStringEntryProto::IsInitialized() const {3617return true;3618}36193620void StringStringEntryProto::Swap(StringStringEntryProto* other) {3621if (other == this) return;3622InternalSwap(other);3623}3624void StringStringEntryProto::InternalSwap(StringStringEntryProto* other) {3625using std::swap;3626key_.Swap(&other->key_);3627value_.Swap(&other->value_);3628swap(_has_bits_[0], other->_has_bits_[0]);3629_internal_metadata_.Swap(&other->_internal_metadata_);3630swap(_cached_size_, other->_cached_size_);3631}36323633::google::protobuf::Metadata StringStringEntryProto::GetMetadata() const {3634protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();3635return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];3636}363736383639// ===================================================================36403641void GraphProto::InitAsDefaultInstance() {3642}3643#if !defined(_MSC_VER) || _MSC_VER >= 19003644const int GraphProto::kNodeFieldNumber;3645const int GraphProto::kNameFieldNumber;3646const int GraphProto::kInitializerFieldNumber;3647const int GraphProto::kDocStringFieldNumber;3648const int GraphProto::kInputFieldNumber;3649const int GraphProto::kOutputFieldNumber;3650const int GraphProto::kValueInfoFieldNumber;3651#endif // !defined(_MSC_VER) || _MSC_VER >= 190036523653GraphProto::GraphProto()3654: ::google::protobuf::Message(), _internal_metadata_(NULL) {3655if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {3656::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();3657}3658SharedCtor();3659// @@protoc_insertion_point(constructor:opencv_onnx.GraphProto)3660}3661GraphProto::GraphProto(const GraphProto& from)3662: ::google::protobuf::Message(),3663_internal_metadata_(NULL),3664_has_bits_(from._has_bits_),3665_cached_size_(0),3666node_(from.node_),3667initializer_(from.initializer_),3668input_(from.input_),3669output_(from.output_),3670value_info_(from.value_info_) {3671_internal_metadata_.MergeFrom(from._internal_metadata_);3672name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3673if (from.has_name()) {3674name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);3675}3676doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3677if (from.has_doc_string()) {3678doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);3679}3680// @@protoc_insertion_point(copy_constructor:opencv_onnx.GraphProto)3681}36823683void GraphProto::SharedCtor() {3684_cached_size_ = 0;3685name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3686doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3687}36883689GraphProto::~GraphProto() {3690// @@protoc_insertion_point(destructor:opencv_onnx.GraphProto)3691SharedDtor();3692}36933694void GraphProto::SharedDtor() {3695name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3696doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());3697}36983699void GraphProto::SetCachedSize(int size) const {3700GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();3701_cached_size_ = size;3702GOOGLE_SAFE_CONCURRENT_WRITES_END();3703}3704const ::google::protobuf::Descriptor* GraphProto::descriptor() {3705::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();3706return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;3707}37083709const GraphProto& GraphProto::default_instance() {3710::protobuf_opencv_2donnx_2eproto::InitDefaultsAttributeProto();3711return *internal_default_instance();3712}37133714GraphProto* GraphProto::New(::google::protobuf::Arena* arena) const {3715GraphProto* n = new GraphProto;3716if (arena != NULL) {3717arena->Own(n);3718}3719return n;3720}37213722void GraphProto::Clear() {3723// @@protoc_insertion_point(message_clear_start:opencv_onnx.GraphProto)3724::google::protobuf::uint32 cached_has_bits = 0;3725// Prevent compiler warnings about cached_has_bits being unused3726(void) cached_has_bits;37273728node_.Clear();3729initializer_.Clear();3730input_.Clear();3731output_.Clear();3732value_info_.Clear();3733cached_has_bits = _has_bits_[0];3734if (cached_has_bits & 3u) {3735if (cached_has_bits & 0x00000001u) {3736GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));3737(*name_.UnsafeRawStringPointer())->clear();3738}3739if (cached_has_bits & 0x00000002u) {3740GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));3741(*doc_string_.UnsafeRawStringPointer())->clear();3742}3743}3744_has_bits_.Clear();3745_internal_metadata_.Clear();3746}37473748bool GraphProto::MergePartialFromCodedStream(3749::google::protobuf::io::CodedInputStream* input) {3750#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure3751::google::protobuf::uint32 tag;3752// @@protoc_insertion_point(parse_start:opencv_onnx.GraphProto)3753for (;;) {3754::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);3755tag = p.first;3756if (!p.second) goto handle_unusual;3757switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {3758// repeated .opencv_onnx.NodeProto node = 1;3759case 1: {3760if (static_cast< ::google::protobuf::uint8>(tag) ==3761static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {3762DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node()));3763} else {3764goto handle_unusual;3765}3766break;3767}37683769// optional string name = 2;3770case 2: {3771if (static_cast< ::google::protobuf::uint8>(tag) ==3772static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {3773DO_(::google::protobuf::internal::WireFormatLite::ReadString(3774input, this->mutable_name()));3775::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3776this->name().data(), static_cast<int>(this->name().length()),3777::google::protobuf::internal::WireFormat::PARSE,3778"opencv_onnx.GraphProto.name");3779} else {3780goto handle_unusual;3781}3782break;3783}37843785// repeated .opencv_onnx.TensorProto initializer = 5;3786case 5: {3787if (static_cast< ::google::protobuf::uint8>(tag) ==3788static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {3789DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_initializer()));3790} else {3791goto handle_unusual;3792}3793break;3794}37953796// optional string doc_string = 10;3797case 10: {3798if (static_cast< ::google::protobuf::uint8>(tag) ==3799static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {3800DO_(::google::protobuf::internal::WireFormatLite::ReadString(3801input, this->mutable_doc_string()));3802::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3803this->doc_string().data(), static_cast<int>(this->doc_string().length()),3804::google::protobuf::internal::WireFormat::PARSE,3805"opencv_onnx.GraphProto.doc_string");3806} else {3807goto handle_unusual;3808}3809break;3810}38113812// repeated .opencv_onnx.ValueInfoProto input = 11;3813case 11: {3814if (static_cast< ::google::protobuf::uint8>(tag) ==3815static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {3816DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_input()));3817} else {3818goto handle_unusual;3819}3820break;3821}38223823// repeated .opencv_onnx.ValueInfoProto output = 12;3824case 12: {3825if (static_cast< ::google::protobuf::uint8>(tag) ==3826static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {3827DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_output()));3828} else {3829goto handle_unusual;3830}3831break;3832}38333834// repeated .opencv_onnx.ValueInfoProto value_info = 13;3835case 13: {3836if (static_cast< ::google::protobuf::uint8>(tag) ==3837static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {3838DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_value_info()));3839} else {3840goto handle_unusual;3841}3842break;3843}38443845default: {3846handle_unusual:3847if (tag == 0) {3848goto success;3849}3850DO_(::google::protobuf::internal::WireFormat::SkipField(3851input, tag, _internal_metadata_.mutable_unknown_fields()));3852break;3853}3854}3855}3856success:3857// @@protoc_insertion_point(parse_success:opencv_onnx.GraphProto)3858return true;3859failure:3860// @@protoc_insertion_point(parse_failure:opencv_onnx.GraphProto)3861return false;3862#undef DO_3863}38643865void GraphProto::SerializeWithCachedSizes(3866::google::protobuf::io::CodedOutputStream* output) const {3867// @@protoc_insertion_point(serialize_start:opencv_onnx.GraphProto)3868::google::protobuf::uint32 cached_has_bits = 0;3869(void) cached_has_bits;38703871// repeated .opencv_onnx.NodeProto node = 1;3872for (unsigned int i = 0,3873n = static_cast<unsigned int>(this->node_size()); i < n; i++) {3874::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(38751, this->node(static_cast<int>(i)), output);3876}38773878cached_has_bits = _has_bits_[0];3879// optional string name = 2;3880if (cached_has_bits & 0x00000001u) {3881::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3882this->name().data(), static_cast<int>(this->name().length()),3883::google::protobuf::internal::WireFormat::SERIALIZE,3884"opencv_onnx.GraphProto.name");3885::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(38862, this->name(), output);3887}38883889// repeated .opencv_onnx.TensorProto initializer = 5;3890for (unsigned int i = 0,3891n = static_cast<unsigned int>(this->initializer_size()); i < n; i++) {3892::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(38935, this->initializer(static_cast<int>(i)), output);3894}38953896// optional string doc_string = 10;3897if (cached_has_bits & 0x00000002u) {3898::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3899this->doc_string().data(), static_cast<int>(this->doc_string().length()),3900::google::protobuf::internal::WireFormat::SERIALIZE,3901"opencv_onnx.GraphProto.doc_string");3902::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(390310, this->doc_string(), output);3904}39053906// repeated .opencv_onnx.ValueInfoProto input = 11;3907for (unsigned int i = 0,3908n = static_cast<unsigned int>(this->input_size()); i < n; i++) {3909::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(391011, this->input(static_cast<int>(i)), output);3911}39123913// repeated .opencv_onnx.ValueInfoProto output = 12;3914for (unsigned int i = 0,3915n = static_cast<unsigned int>(this->output_size()); i < n; i++) {3916::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(391712, this->output(static_cast<int>(i)), output);3918}39193920// repeated .opencv_onnx.ValueInfoProto value_info = 13;3921for (unsigned int i = 0,3922n = static_cast<unsigned int>(this->value_info_size()); i < n; i++) {3923::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(392413, this->value_info(static_cast<int>(i)), output);3925}39263927if (_internal_metadata_.have_unknown_fields()) {3928::google::protobuf::internal::WireFormat::SerializeUnknownFields(3929_internal_metadata_.unknown_fields(), output);3930}3931// @@protoc_insertion_point(serialize_end:opencv_onnx.GraphProto)3932}39333934::google::protobuf::uint8* GraphProto::InternalSerializeWithCachedSizesToArray(3935bool deterministic, ::google::protobuf::uint8* target) const {3936(void)deterministic; // Unused3937// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.GraphProto)3938::google::protobuf::uint32 cached_has_bits = 0;3939(void) cached_has_bits;39403941// repeated .opencv_onnx.NodeProto node = 1;3942for (unsigned int i = 0,3943n = static_cast<unsigned int>(this->node_size()); i < n; i++) {3944target = ::google::protobuf::internal::WireFormatLite::3945InternalWriteMessageToArray(39461, this->node(static_cast<int>(i)), deterministic, target);3947}39483949cached_has_bits = _has_bits_[0];3950// optional string name = 2;3951if (cached_has_bits & 0x00000001u) {3952::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3953this->name().data(), static_cast<int>(this->name().length()),3954::google::protobuf::internal::WireFormat::SERIALIZE,3955"opencv_onnx.GraphProto.name");3956target =3957::google::protobuf::internal::WireFormatLite::WriteStringToArray(39582, this->name(), target);3959}39603961// repeated .opencv_onnx.TensorProto initializer = 5;3962for (unsigned int i = 0,3963n = static_cast<unsigned int>(this->initializer_size()); i < n; i++) {3964target = ::google::protobuf::internal::WireFormatLite::3965InternalWriteMessageToArray(39665, this->initializer(static_cast<int>(i)), deterministic, target);3967}39683969// optional string doc_string = 10;3970if (cached_has_bits & 0x00000002u) {3971::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(3972this->doc_string().data(), static_cast<int>(this->doc_string().length()),3973::google::protobuf::internal::WireFormat::SERIALIZE,3974"opencv_onnx.GraphProto.doc_string");3975target =3976::google::protobuf::internal::WireFormatLite::WriteStringToArray(397710, this->doc_string(), target);3978}39793980// repeated .opencv_onnx.ValueInfoProto input = 11;3981for (unsigned int i = 0,3982n = static_cast<unsigned int>(this->input_size()); i < n; i++) {3983target = ::google::protobuf::internal::WireFormatLite::3984InternalWriteMessageToArray(398511, this->input(static_cast<int>(i)), deterministic, target);3986}39873988// repeated .opencv_onnx.ValueInfoProto output = 12;3989for (unsigned int i = 0,3990n = static_cast<unsigned int>(this->output_size()); i < n; i++) {3991target = ::google::protobuf::internal::WireFormatLite::3992InternalWriteMessageToArray(399312, this->output(static_cast<int>(i)), deterministic, target);3994}39953996// repeated .opencv_onnx.ValueInfoProto value_info = 13;3997for (unsigned int i = 0,3998n = static_cast<unsigned int>(this->value_info_size()); i < n; i++) {3999target = ::google::protobuf::internal::WireFormatLite::4000InternalWriteMessageToArray(400113, this->value_info(static_cast<int>(i)), deterministic, target);4002}40034004if (_internal_metadata_.have_unknown_fields()) {4005target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(4006_internal_metadata_.unknown_fields(), target);4007}4008// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.GraphProto)4009return target;4010}40114012size_t GraphProto::ByteSizeLong() const {4013// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.GraphProto)4014size_t total_size = 0;40154016if (_internal_metadata_.have_unknown_fields()) {4017total_size +=4018::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(4019_internal_metadata_.unknown_fields());4020}4021// repeated .opencv_onnx.NodeProto node = 1;4022{4023unsigned int count = static_cast<unsigned int>(this->node_size());4024total_size += 1UL * count;4025for (unsigned int i = 0; i < count; i++) {4026total_size +=4027::google::protobuf::internal::WireFormatLite::MessageSize(4028this->node(static_cast<int>(i)));4029}4030}40314032// repeated .opencv_onnx.TensorProto initializer = 5;4033{4034unsigned int count = static_cast<unsigned int>(this->initializer_size());4035total_size += 1UL * count;4036for (unsigned int i = 0; i < count; i++) {4037total_size +=4038::google::protobuf::internal::WireFormatLite::MessageSize(4039this->initializer(static_cast<int>(i)));4040}4041}40424043// repeated .opencv_onnx.ValueInfoProto input = 11;4044{4045unsigned int count = static_cast<unsigned int>(this->input_size());4046total_size += 1UL * count;4047for (unsigned int i = 0; i < count; i++) {4048total_size +=4049::google::protobuf::internal::WireFormatLite::MessageSize(4050this->input(static_cast<int>(i)));4051}4052}40534054// repeated .opencv_onnx.ValueInfoProto output = 12;4055{4056unsigned int count = static_cast<unsigned int>(this->output_size());4057total_size += 1UL * count;4058for (unsigned int i = 0; i < count; i++) {4059total_size +=4060::google::protobuf::internal::WireFormatLite::MessageSize(4061this->output(static_cast<int>(i)));4062}4063}40644065// repeated .opencv_onnx.ValueInfoProto value_info = 13;4066{4067unsigned int count = static_cast<unsigned int>(this->value_info_size());4068total_size += 1UL * count;4069for (unsigned int i = 0; i < count; i++) {4070total_size +=4071::google::protobuf::internal::WireFormatLite::MessageSize(4072this->value_info(static_cast<int>(i)));4073}4074}40754076if (_has_bits_[0 / 32] & 3u) {4077// optional string name = 2;4078if (has_name()) {4079total_size += 1 +4080::google::protobuf::internal::WireFormatLite::StringSize(4081this->name());4082}40834084// optional string doc_string = 10;4085if (has_doc_string()) {4086total_size += 1 +4087::google::protobuf::internal::WireFormatLite::StringSize(4088this->doc_string());4089}40904091}4092int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);4093GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();4094_cached_size_ = cached_size;4095GOOGLE_SAFE_CONCURRENT_WRITES_END();4096return total_size;4097}40984099void GraphProto::MergeFrom(const ::google::protobuf::Message& from) {4100// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.GraphProto)4101GOOGLE_DCHECK_NE(&from, this);4102const GraphProto* source =4103::google::protobuf::internal::DynamicCastToGenerated<const GraphProto>(4104&from);4105if (source == NULL) {4106// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.GraphProto)4107::google::protobuf::internal::ReflectionOps::Merge(from, this);4108} else {4109// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.GraphProto)4110MergeFrom(*source);4111}4112}41134114void GraphProto::MergeFrom(const GraphProto& from) {4115// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.GraphProto)4116GOOGLE_DCHECK_NE(&from, this);4117_internal_metadata_.MergeFrom(from._internal_metadata_);4118::google::protobuf::uint32 cached_has_bits = 0;4119(void) cached_has_bits;41204121node_.MergeFrom(from.node_);4122initializer_.MergeFrom(from.initializer_);4123input_.MergeFrom(from.input_);4124output_.MergeFrom(from.output_);4125value_info_.MergeFrom(from.value_info_);4126cached_has_bits = from._has_bits_[0];4127if (cached_has_bits & 3u) {4128if (cached_has_bits & 0x00000001u) {4129set_has_name();4130name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);4131}4132if (cached_has_bits & 0x00000002u) {4133set_has_doc_string();4134doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);4135}4136}4137}41384139void GraphProto::CopyFrom(const ::google::protobuf::Message& from) {4140// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.GraphProto)4141if (&from == this) return;4142Clear();4143MergeFrom(from);4144}41454146void GraphProto::CopyFrom(const GraphProto& from) {4147// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.GraphProto)4148if (&from == this) return;4149Clear();4150MergeFrom(from);4151}41524153bool GraphProto::IsInitialized() const {4154return true;4155}41564157void GraphProto::Swap(GraphProto* other) {4158if (other == this) return;4159InternalSwap(other);4160}4161void GraphProto::InternalSwap(GraphProto* other) {4162using std::swap;4163node_.InternalSwap(&other->node_);4164initializer_.InternalSwap(&other->initializer_);4165input_.InternalSwap(&other->input_);4166output_.InternalSwap(&other->output_);4167value_info_.InternalSwap(&other->value_info_);4168name_.Swap(&other->name_);4169doc_string_.Swap(&other->doc_string_);4170swap(_has_bits_[0], other->_has_bits_[0]);4171_internal_metadata_.Swap(&other->_internal_metadata_);4172swap(_cached_size_, other->_cached_size_);4173}41744175::google::protobuf::Metadata GraphProto::GetMetadata() const {4176protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();4177return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];4178}417941804181// ===================================================================41824183void TensorProto_Segment::InitAsDefaultInstance() {4184}4185#if !defined(_MSC_VER) || _MSC_VER >= 19004186const int TensorProto_Segment::kBeginFieldNumber;4187const int TensorProto_Segment::kEndFieldNumber;4188#endif // !defined(_MSC_VER) || _MSC_VER >= 190041894190TensorProto_Segment::TensorProto_Segment()4191: ::google::protobuf::Message(), _internal_metadata_(NULL) {4192if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {4193::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto_Segment();4194}4195SharedCtor();4196// @@protoc_insertion_point(constructor:opencv_onnx.TensorProto.Segment)4197}4198TensorProto_Segment::TensorProto_Segment(const TensorProto_Segment& from)4199: ::google::protobuf::Message(),4200_internal_metadata_(NULL),4201_has_bits_(from._has_bits_),4202_cached_size_(0) {4203_internal_metadata_.MergeFrom(from._internal_metadata_);4204::memcpy(&begin_, &from.begin_,4205static_cast<size_t>(reinterpret_cast<char*>(&end_) -4206reinterpret_cast<char*>(&begin_)) + sizeof(end_));4207// @@protoc_insertion_point(copy_constructor:opencv_onnx.TensorProto.Segment)4208}42094210void TensorProto_Segment::SharedCtor() {4211_cached_size_ = 0;4212::memset(&begin_, 0, static_cast<size_t>(4213reinterpret_cast<char*>(&end_) -4214reinterpret_cast<char*>(&begin_)) + sizeof(end_));4215}42164217TensorProto_Segment::~TensorProto_Segment() {4218// @@protoc_insertion_point(destructor:opencv_onnx.TensorProto.Segment)4219SharedDtor();4220}42214222void TensorProto_Segment::SharedDtor() {4223}42244225void TensorProto_Segment::SetCachedSize(int size) const {4226GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();4227_cached_size_ = size;4228GOOGLE_SAFE_CONCURRENT_WRITES_END();4229}4230const ::google::protobuf::Descriptor* TensorProto_Segment::descriptor() {4231::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();4232return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;4233}42344235const TensorProto_Segment& TensorProto_Segment::default_instance() {4236::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto_Segment();4237return *internal_default_instance();4238}42394240TensorProto_Segment* TensorProto_Segment::New(::google::protobuf::Arena* arena) const {4241TensorProto_Segment* n = new TensorProto_Segment;4242if (arena != NULL) {4243arena->Own(n);4244}4245return n;4246}42474248void TensorProto_Segment::Clear() {4249// @@protoc_insertion_point(message_clear_start:opencv_onnx.TensorProto.Segment)4250::google::protobuf::uint32 cached_has_bits = 0;4251// Prevent compiler warnings about cached_has_bits being unused4252(void) cached_has_bits;42534254cached_has_bits = _has_bits_[0];4255if (cached_has_bits & 3u) {4256::memset(&begin_, 0, static_cast<size_t>(4257reinterpret_cast<char*>(&end_) -4258reinterpret_cast<char*>(&begin_)) + sizeof(end_));4259}4260_has_bits_.Clear();4261_internal_metadata_.Clear();4262}42634264bool TensorProto_Segment::MergePartialFromCodedStream(4265::google::protobuf::io::CodedInputStream* input) {4266#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure4267::google::protobuf::uint32 tag;4268// @@protoc_insertion_point(parse_start:opencv_onnx.TensorProto.Segment)4269for (;;) {4270::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);4271tag = p.first;4272if (!p.second) goto handle_unusual;4273switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {4274// optional int64 begin = 1;4275case 1: {4276if (static_cast< ::google::protobuf::uint8>(tag) ==4277static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {4278set_has_begin();4279DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<4280::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(4281input, &begin_)));4282} else {4283goto handle_unusual;4284}4285break;4286}42874288// optional int64 end = 2;4289case 2: {4290if (static_cast< ::google::protobuf::uint8>(tag) ==4291static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {4292set_has_end();4293DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<4294::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(4295input, &end_)));4296} else {4297goto handle_unusual;4298}4299break;4300}43014302default: {4303handle_unusual:4304if (tag == 0) {4305goto success;4306}4307DO_(::google::protobuf::internal::WireFormat::SkipField(4308input, tag, _internal_metadata_.mutable_unknown_fields()));4309break;4310}4311}4312}4313success:4314// @@protoc_insertion_point(parse_success:opencv_onnx.TensorProto.Segment)4315return true;4316failure:4317// @@protoc_insertion_point(parse_failure:opencv_onnx.TensorProto.Segment)4318return false;4319#undef DO_4320}43214322void TensorProto_Segment::SerializeWithCachedSizes(4323::google::protobuf::io::CodedOutputStream* output) const {4324// @@protoc_insertion_point(serialize_start:opencv_onnx.TensorProto.Segment)4325::google::protobuf::uint32 cached_has_bits = 0;4326(void) cached_has_bits;43274328cached_has_bits = _has_bits_[0];4329// optional int64 begin = 1;4330if (cached_has_bits & 0x00000001u) {4331::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->begin(), output);4332}43334334// optional int64 end = 2;4335if (cached_has_bits & 0x00000002u) {4336::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->end(), output);4337}43384339if (_internal_metadata_.have_unknown_fields()) {4340::google::protobuf::internal::WireFormat::SerializeUnknownFields(4341_internal_metadata_.unknown_fields(), output);4342}4343// @@protoc_insertion_point(serialize_end:opencv_onnx.TensorProto.Segment)4344}43454346::google::protobuf::uint8* TensorProto_Segment::InternalSerializeWithCachedSizesToArray(4347bool deterministic, ::google::protobuf::uint8* target) const {4348(void)deterministic; // Unused4349// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TensorProto.Segment)4350::google::protobuf::uint32 cached_has_bits = 0;4351(void) cached_has_bits;43524353cached_has_bits = _has_bits_[0];4354// optional int64 begin = 1;4355if (cached_has_bits & 0x00000001u) {4356target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->begin(), target);4357}43584359// optional int64 end = 2;4360if (cached_has_bits & 0x00000002u) {4361target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->end(), target);4362}43634364if (_internal_metadata_.have_unknown_fields()) {4365target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(4366_internal_metadata_.unknown_fields(), target);4367}4368// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TensorProto.Segment)4369return target;4370}43714372size_t TensorProto_Segment::ByteSizeLong() const {4373// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TensorProto.Segment)4374size_t total_size = 0;43754376if (_internal_metadata_.have_unknown_fields()) {4377total_size +=4378::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(4379_internal_metadata_.unknown_fields());4380}4381if (_has_bits_[0 / 32] & 3u) {4382// optional int64 begin = 1;4383if (has_begin()) {4384total_size += 1 +4385::google::protobuf::internal::WireFormatLite::Int64Size(4386this->begin());4387}43884389// optional int64 end = 2;4390if (has_end()) {4391total_size += 1 +4392::google::protobuf::internal::WireFormatLite::Int64Size(4393this->end());4394}43954396}4397int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);4398GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();4399_cached_size_ = cached_size;4400GOOGLE_SAFE_CONCURRENT_WRITES_END();4401return total_size;4402}44034404void TensorProto_Segment::MergeFrom(const ::google::protobuf::Message& from) {4405// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TensorProto.Segment)4406GOOGLE_DCHECK_NE(&from, this);4407const TensorProto_Segment* source =4408::google::protobuf::internal::DynamicCastToGenerated<const TensorProto_Segment>(4409&from);4410if (source == NULL) {4411// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TensorProto.Segment)4412::google::protobuf::internal::ReflectionOps::Merge(from, this);4413} else {4414// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TensorProto.Segment)4415MergeFrom(*source);4416}4417}44184419void TensorProto_Segment::MergeFrom(const TensorProto_Segment& from) {4420// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TensorProto.Segment)4421GOOGLE_DCHECK_NE(&from, this);4422_internal_metadata_.MergeFrom(from._internal_metadata_);4423::google::protobuf::uint32 cached_has_bits = 0;4424(void) cached_has_bits;44254426cached_has_bits = from._has_bits_[0];4427if (cached_has_bits & 3u) {4428if (cached_has_bits & 0x00000001u) {4429begin_ = from.begin_;4430}4431if (cached_has_bits & 0x00000002u) {4432end_ = from.end_;4433}4434_has_bits_[0] |= cached_has_bits;4435}4436}44374438void TensorProto_Segment::CopyFrom(const ::google::protobuf::Message& from) {4439// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TensorProto.Segment)4440if (&from == this) return;4441Clear();4442MergeFrom(from);4443}44444445void TensorProto_Segment::CopyFrom(const TensorProto_Segment& from) {4446// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TensorProto.Segment)4447if (&from == this) return;4448Clear();4449MergeFrom(from);4450}44514452bool TensorProto_Segment::IsInitialized() const {4453return true;4454}44554456void TensorProto_Segment::Swap(TensorProto_Segment* other) {4457if (other == this) return;4458InternalSwap(other);4459}4460void TensorProto_Segment::InternalSwap(TensorProto_Segment* other) {4461using std::swap;4462swap(begin_, other->begin_);4463swap(end_, other->end_);4464swap(_has_bits_[0], other->_has_bits_[0]);4465_internal_metadata_.Swap(&other->_internal_metadata_);4466swap(_cached_size_, other->_cached_size_);4467}44684469::google::protobuf::Metadata TensorProto_Segment::GetMetadata() const {4470protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();4471return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];4472}447344744475// ===================================================================44764477void TensorProto::InitAsDefaultInstance() {4478::opencv_onnx::_TensorProto_default_instance_._instance.get_mutable()->segment_ = const_cast< ::opencv_onnx::TensorProto_Segment*>(4479::opencv_onnx::TensorProto_Segment::internal_default_instance());4480}4481#if !defined(_MSC_VER) || _MSC_VER >= 19004482const int TensorProto::kDimsFieldNumber;4483const int TensorProto::kDataTypeFieldNumber;4484const int TensorProto::kSegmentFieldNumber;4485const int TensorProto::kFloatDataFieldNumber;4486const int TensorProto::kInt32DataFieldNumber;4487const int TensorProto::kStringDataFieldNumber;4488const int TensorProto::kInt64DataFieldNumber;4489const int TensorProto::kNameFieldNumber;4490const int TensorProto::kDocStringFieldNumber;4491const int TensorProto::kRawDataFieldNumber;4492const int TensorProto::kDoubleDataFieldNumber;4493const int TensorProto::kUint64DataFieldNumber;4494#endif // !defined(_MSC_VER) || _MSC_VER >= 190044954496TensorProto::TensorProto()4497: ::google::protobuf::Message(), _internal_metadata_(NULL) {4498if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {4499::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto();4500}4501SharedCtor();4502// @@protoc_insertion_point(constructor:opencv_onnx.TensorProto)4503}4504TensorProto::TensorProto(const TensorProto& from)4505: ::google::protobuf::Message(),4506_internal_metadata_(NULL),4507_has_bits_(from._has_bits_),4508_cached_size_(0),4509dims_(from.dims_),4510float_data_(from.float_data_),4511int32_data_(from.int32_data_),4512string_data_(from.string_data_),4513int64_data_(from.int64_data_),4514double_data_(from.double_data_),4515uint64_data_(from.uint64_data_) {4516_internal_metadata_.MergeFrom(from._internal_metadata_);4517name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4518if (from.has_name()) {4519name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);4520}4521raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4522if (from.has_raw_data()) {4523raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_);4524}4525doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4526if (from.has_doc_string()) {4527doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);4528}4529if (from.has_segment()) {4530segment_ = new ::opencv_onnx::TensorProto_Segment(*from.segment_);4531} else {4532segment_ = NULL;4533}4534data_type_ = from.data_type_;4535// @@protoc_insertion_point(copy_constructor:opencv_onnx.TensorProto)4536}45374538void TensorProto::SharedCtor() {4539_cached_size_ = 0;4540name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4541raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4542doc_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4543::memset(&segment_, 0, static_cast<size_t>(4544reinterpret_cast<char*>(&data_type_) -4545reinterpret_cast<char*>(&segment_)) + sizeof(data_type_));4546}45474548TensorProto::~TensorProto() {4549// @@protoc_insertion_point(destructor:opencv_onnx.TensorProto)4550SharedDtor();4551}45524553void TensorProto::SharedDtor() {4554name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4555raw_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4556doc_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());4557if (this != internal_default_instance()) delete segment_;4558}45594560void TensorProto::SetCachedSize(int size) const {4561GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();4562_cached_size_ = size;4563GOOGLE_SAFE_CONCURRENT_WRITES_END();4564}4565const ::google::protobuf::Descriptor* TensorProto::descriptor() {4566::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();4567return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;4568}45694570const TensorProto& TensorProto::default_instance() {4571::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorProto();4572return *internal_default_instance();4573}45744575TensorProto* TensorProto::New(::google::protobuf::Arena* arena) const {4576TensorProto* n = new TensorProto;4577if (arena != NULL) {4578arena->Own(n);4579}4580return n;4581}45824583void TensorProto::Clear() {4584// @@protoc_insertion_point(message_clear_start:opencv_onnx.TensorProto)4585::google::protobuf::uint32 cached_has_bits = 0;4586// Prevent compiler warnings about cached_has_bits being unused4587(void) cached_has_bits;45884589dims_.Clear();4590float_data_.Clear();4591int32_data_.Clear();4592string_data_.Clear();4593int64_data_.Clear();4594double_data_.Clear();4595uint64_data_.Clear();4596cached_has_bits = _has_bits_[0];4597if (cached_has_bits & 15u) {4598if (cached_has_bits & 0x00000001u) {4599GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));4600(*name_.UnsafeRawStringPointer())->clear();4601}4602if (cached_has_bits & 0x00000002u) {4603GOOGLE_DCHECK(!raw_data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));4604(*raw_data_.UnsafeRawStringPointer())->clear();4605}4606if (cached_has_bits & 0x00000004u) {4607GOOGLE_DCHECK(!doc_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));4608(*doc_string_.UnsafeRawStringPointer())->clear();4609}4610if (cached_has_bits & 0x00000008u) {4611GOOGLE_DCHECK(segment_ != NULL);4612segment_->Clear();4613}4614}4615data_type_ = 0;4616_has_bits_.Clear();4617_internal_metadata_.Clear();4618}46194620bool TensorProto::MergePartialFromCodedStream(4621::google::protobuf::io::CodedInputStream* input) {4622#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure4623::google::protobuf::uint32 tag;4624// @@protoc_insertion_point(parse_start:opencv_onnx.TensorProto)4625for (;;) {4626::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);4627tag = p.first;4628if (!p.second) goto handle_unusual;4629switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {4630// repeated int64 dims = 1;4631case 1: {4632if (static_cast< ::google::protobuf::uint8>(tag) ==4633static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {4634DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<4635::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(46361, 8u, input, this->mutable_dims())));4637} else if (4638static_cast< ::google::protobuf::uint8>(tag) ==4639static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {4640DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<4641::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(4642input, this->mutable_dims())));4643} else {4644goto handle_unusual;4645}4646break;4647}46484649// optional .opencv_onnx.TensorProto.DataType data_type = 2;4650case 2: {4651if (static_cast< ::google::protobuf::uint8>(tag) ==4652static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {4653int value;4654DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<4655int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(4656input, &value)));4657if (::opencv_onnx::TensorProto_DataType_IsValid(value)) {4658set_data_type(static_cast< ::opencv_onnx::TensorProto_DataType >(value));4659} else {4660mutable_unknown_fields()->AddVarint(46612, static_cast< ::google::protobuf::uint64>(value));4662}4663} else {4664goto handle_unusual;4665}4666break;4667}46684669// optional .opencv_onnx.TensorProto.Segment segment = 3;4670case 3: {4671if (static_cast< ::google::protobuf::uint8>(tag) ==4672static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {4673DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(4674input, mutable_segment()));4675} else {4676goto handle_unusual;4677}4678break;4679}46804681// repeated float float_data = 4 [packed = true];4682case 4: {4683if (static_cast< ::google::protobuf::uint8>(tag) ==4684static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {4685DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<4686float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(4687input, this->mutable_float_data())));4688} else if (4689static_cast< ::google::protobuf::uint8>(tag) ==4690static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {4691DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<4692float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(46931, 34u, input, this->mutable_float_data())));4694} else {4695goto handle_unusual;4696}4697break;4698}46994700// repeated int32 int32_data = 5 [packed = true];4701case 5: {4702if (static_cast< ::google::protobuf::uint8>(tag) ==4703static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {4704DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<4705::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(4706input, this->mutable_int32_data())));4707} else if (4708static_cast< ::google::protobuf::uint8>(tag) ==4709static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {4710DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<4711::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(47121, 42u, input, this->mutable_int32_data())));4713} else {4714goto handle_unusual;4715}4716break;4717}47184719// repeated bytes string_data = 6;4720case 6: {4721if (static_cast< ::google::protobuf::uint8>(tag) ==4722static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {4723DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(4724input, this->add_string_data()));4725} else {4726goto handle_unusual;4727}4728break;4729}47304731// repeated int64 int64_data = 7 [packed = true];4732case 7: {4733if (static_cast< ::google::protobuf::uint8>(tag) ==4734static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {4735DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<4736::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(4737input, this->mutable_int64_data())));4738} else if (4739static_cast< ::google::protobuf::uint8>(tag) ==4740static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {4741DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<4742::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(47431, 58u, input, this->mutable_int64_data())));4744} else {4745goto handle_unusual;4746}4747break;4748}47494750// optional string name = 8;4751case 8: {4752if (static_cast< ::google::protobuf::uint8>(tag) ==4753static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {4754DO_(::google::protobuf::internal::WireFormatLite::ReadString(4755input, this->mutable_name()));4756::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(4757this->name().data(), static_cast<int>(this->name().length()),4758::google::protobuf::internal::WireFormat::PARSE,4759"opencv_onnx.TensorProto.name");4760} else {4761goto handle_unusual;4762}4763break;4764}47654766// optional bytes raw_data = 9;4767case 9: {4768if (static_cast< ::google::protobuf::uint8>(tag) ==4769static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {4770DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(4771input, this->mutable_raw_data()));4772} else {4773goto handle_unusual;4774}4775break;4776}47774778// repeated double double_data = 10 [packed = true];4779case 10: {4780if (static_cast< ::google::protobuf::uint8>(tag) ==4781static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {4782DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<4783double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(4784input, this->mutable_double_data())));4785} else if (4786static_cast< ::google::protobuf::uint8>(tag) ==4787static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {4788DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<4789double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(47901, 82u, input, this->mutable_double_data())));4791} else {4792goto handle_unusual;4793}4794break;4795}47964797// repeated uint64 uint64_data = 11 [packed = true];4798case 11: {4799if (static_cast< ::google::protobuf::uint8>(tag) ==4800static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {4801DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<4802::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(4803input, this->mutable_uint64_data())));4804} else if (4805static_cast< ::google::protobuf::uint8>(tag) ==4806static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {4807DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<4808::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(48091, 90u, input, this->mutable_uint64_data())));4810} else {4811goto handle_unusual;4812}4813break;4814}48154816// optional string doc_string = 12;4817case 12: {4818if (static_cast< ::google::protobuf::uint8>(tag) ==4819static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {4820DO_(::google::protobuf::internal::WireFormatLite::ReadString(4821input, this->mutable_doc_string()));4822::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(4823this->doc_string().data(), static_cast<int>(this->doc_string().length()),4824::google::protobuf::internal::WireFormat::PARSE,4825"opencv_onnx.TensorProto.doc_string");4826} else {4827goto handle_unusual;4828}4829break;4830}48314832default: {4833handle_unusual:4834if (tag == 0) {4835goto success;4836}4837DO_(::google::protobuf::internal::WireFormat::SkipField(4838input, tag, _internal_metadata_.mutable_unknown_fields()));4839break;4840}4841}4842}4843success:4844// @@protoc_insertion_point(parse_success:opencv_onnx.TensorProto)4845return true;4846failure:4847// @@protoc_insertion_point(parse_failure:opencv_onnx.TensorProto)4848return false;4849#undef DO_4850}48514852void TensorProto::SerializeWithCachedSizes(4853::google::protobuf::io::CodedOutputStream* output) const {4854// @@protoc_insertion_point(serialize_start:opencv_onnx.TensorProto)4855::google::protobuf::uint32 cached_has_bits = 0;4856(void) cached_has_bits;48574858// repeated int64 dims = 1;4859for (int i = 0, n = this->dims_size(); i < n; i++) {4860::google::protobuf::internal::WireFormatLite::WriteInt64(48611, this->dims(i), output);4862}48634864cached_has_bits = _has_bits_[0];4865// optional .opencv_onnx.TensorProto.DataType data_type = 2;4866if (cached_has_bits & 0x00000010u) {4867::google::protobuf::internal::WireFormatLite::WriteEnum(48682, this->data_type(), output);4869}48704871// optional .opencv_onnx.TensorProto.Segment segment = 3;4872if (cached_has_bits & 0x00000008u) {4873::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(48743, *this->segment_, output);4875}48764877// repeated float float_data = 4 [packed = true];4878if (this->float_data_size() > 0) {4879::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);4880output->WriteVarint32(static_cast< ::google::protobuf::uint32>(4881_float_data_cached_byte_size_));4882::google::protobuf::internal::WireFormatLite::WriteFloatArray(4883this->float_data().data(), this->float_data_size(), output);4884}48854886// repeated int32 int32_data = 5 [packed = true];4887if (this->int32_data_size() > 0) {4888::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);4889output->WriteVarint32(static_cast< ::google::protobuf::uint32>(4890_int32_data_cached_byte_size_));4891}4892for (int i = 0, n = this->int32_data_size(); i < n; i++) {4893::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(4894this->int32_data(i), output);4895}48964897// repeated bytes string_data = 6;4898for (int i = 0, n = this->string_data_size(); i < n; i++) {4899::google::protobuf::internal::WireFormatLite::WriteBytes(49006, this->string_data(i), output);4901}49024903// repeated int64 int64_data = 7 [packed = true];4904if (this->int64_data_size() > 0) {4905::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);4906output->WriteVarint32(static_cast< ::google::protobuf::uint32>(4907_int64_data_cached_byte_size_));4908}4909for (int i = 0, n = this->int64_data_size(); i < n; i++) {4910::google::protobuf::internal::WireFormatLite::WriteInt64NoTag(4911this->int64_data(i), output);4912}49134914// optional string name = 8;4915if (cached_has_bits & 0x00000001u) {4916::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(4917this->name().data(), static_cast<int>(this->name().length()),4918::google::protobuf::internal::WireFormat::SERIALIZE,4919"opencv_onnx.TensorProto.name");4920::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(49218, this->name(), output);4922}49234924// optional bytes raw_data = 9;4925if (cached_has_bits & 0x00000002u) {4926::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(49279, this->raw_data(), output);4928}49294930// repeated double double_data = 10 [packed = true];4931if (this->double_data_size() > 0) {4932::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);4933output->WriteVarint32(static_cast< ::google::protobuf::uint32>(4934_double_data_cached_byte_size_));4935::google::protobuf::internal::WireFormatLite::WriteDoubleArray(4936this->double_data().data(), this->double_data_size(), output);4937}49384939// repeated uint64 uint64_data = 11 [packed = true];4940if (this->uint64_data_size() > 0) {4941::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);4942output->WriteVarint32(static_cast< ::google::protobuf::uint32>(4943_uint64_data_cached_byte_size_));4944}4945for (int i = 0, n = this->uint64_data_size(); i < n; i++) {4946::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(4947this->uint64_data(i), output);4948}49494950// optional string doc_string = 12;4951if (cached_has_bits & 0x00000004u) {4952::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(4953this->doc_string().data(), static_cast<int>(this->doc_string().length()),4954::google::protobuf::internal::WireFormat::SERIALIZE,4955"opencv_onnx.TensorProto.doc_string");4956::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(495712, this->doc_string(), output);4958}49594960if (_internal_metadata_.have_unknown_fields()) {4961::google::protobuf::internal::WireFormat::SerializeUnknownFields(4962_internal_metadata_.unknown_fields(), output);4963}4964// @@protoc_insertion_point(serialize_end:opencv_onnx.TensorProto)4965}49664967::google::protobuf::uint8* TensorProto::InternalSerializeWithCachedSizesToArray(4968bool deterministic, ::google::protobuf::uint8* target) const {4969(void)deterministic; // Unused4970// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TensorProto)4971::google::protobuf::uint32 cached_has_bits = 0;4972(void) cached_has_bits;49734974// repeated int64 dims = 1;4975target = ::google::protobuf::internal::WireFormatLite::4976WriteInt64ToArray(1, this->dims_, target);49774978cached_has_bits = _has_bits_[0];4979// optional .opencv_onnx.TensorProto.DataType data_type = 2;4980if (cached_has_bits & 0x00000010u) {4981target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(49822, this->data_type(), target);4983}49844985// optional .opencv_onnx.TensorProto.Segment segment = 3;4986if (cached_has_bits & 0x00000008u) {4987target = ::google::protobuf::internal::WireFormatLite::4988InternalWriteMessageToArray(49893, *this->segment_, deterministic, target);4990}49914992// repeated float float_data = 4 [packed = true];4993if (this->float_data_size() > 0) {4994target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(49954,4996::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,4997target);4998target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(4999static_cast< ::google::protobuf::int32>(5000_float_data_cached_byte_size_), target);5001target = ::google::protobuf::internal::WireFormatLite::5002WriteFloatNoTagToArray(this->float_data_, target);5003}50045005// repeated int32 int32_data = 5 [packed = true];5006if (this->int32_data_size() > 0) {5007target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(50085,5009::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,5010target);5011target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(5012static_cast< ::google::protobuf::int32>(5013_int32_data_cached_byte_size_), target);5014target = ::google::protobuf::internal::WireFormatLite::5015WriteInt32NoTagToArray(this->int32_data_, target);5016}50175018// repeated bytes string_data = 6;5019for (int i = 0, n = this->string_data_size(); i < n; i++) {5020target = ::google::protobuf::internal::WireFormatLite::5021WriteBytesToArray(6, this->string_data(i), target);5022}50235024// repeated int64 int64_data = 7 [packed = true];5025if (this->int64_data_size() > 0) {5026target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(50277,5028::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,5029target);5030target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(5031static_cast< ::google::protobuf::int32>(5032_int64_data_cached_byte_size_), target);5033target = ::google::protobuf::internal::WireFormatLite::5034WriteInt64NoTagToArray(this->int64_data_, target);5035}50365037// optional string name = 8;5038if (cached_has_bits & 0x00000001u) {5039::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5040this->name().data(), static_cast<int>(this->name().length()),5041::google::protobuf::internal::WireFormat::SERIALIZE,5042"opencv_onnx.TensorProto.name");5043target =5044::google::protobuf::internal::WireFormatLite::WriteStringToArray(50458, this->name(), target);5046}50475048// optional bytes raw_data = 9;5049if (cached_has_bits & 0x00000002u) {5050target =5051::google::protobuf::internal::WireFormatLite::WriteBytesToArray(50529, this->raw_data(), target);5053}50545055// repeated double double_data = 10 [packed = true];5056if (this->double_data_size() > 0) {5057target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(505810,5059::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,5060target);5061target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(5062static_cast< ::google::protobuf::int32>(5063_double_data_cached_byte_size_), target);5064target = ::google::protobuf::internal::WireFormatLite::5065WriteDoubleNoTagToArray(this->double_data_, target);5066}50675068// repeated uint64 uint64_data = 11 [packed = true];5069if (this->uint64_data_size() > 0) {5070target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(507111,5072::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,5073target);5074target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(5075static_cast< ::google::protobuf::int32>(5076_uint64_data_cached_byte_size_), target);5077target = ::google::protobuf::internal::WireFormatLite::5078WriteUInt64NoTagToArray(this->uint64_data_, target);5079}50805081// optional string doc_string = 12;5082if (cached_has_bits & 0x00000004u) {5083::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5084this->doc_string().data(), static_cast<int>(this->doc_string().length()),5085::google::protobuf::internal::WireFormat::SERIALIZE,5086"opencv_onnx.TensorProto.doc_string");5087target =5088::google::protobuf::internal::WireFormatLite::WriteStringToArray(508912, this->doc_string(), target);5090}50915092if (_internal_metadata_.have_unknown_fields()) {5093target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(5094_internal_metadata_.unknown_fields(), target);5095}5096// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TensorProto)5097return target;5098}50995100size_t TensorProto::ByteSizeLong() const {5101// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TensorProto)5102size_t total_size = 0;51035104if (_internal_metadata_.have_unknown_fields()) {5105total_size +=5106::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(5107_internal_metadata_.unknown_fields());5108}5109// repeated int64 dims = 1;5110{5111size_t data_size = ::google::protobuf::internal::WireFormatLite::5112Int64Size(this->dims_);5113total_size += 1 *5114::google::protobuf::internal::FromIntSize(this->dims_size());5115total_size += data_size;5116}51175118// repeated float float_data = 4 [packed = true];5119{5120unsigned int count = static_cast<unsigned int>(this->float_data_size());5121size_t data_size = 4UL * count;5122if (data_size > 0) {5123total_size += 1 +5124::google::protobuf::internal::WireFormatLite::Int32Size(5125static_cast< ::google::protobuf::int32>(data_size));5126}5127int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);5128GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5129_float_data_cached_byte_size_ = cached_size;5130GOOGLE_SAFE_CONCURRENT_WRITES_END();5131total_size += data_size;5132}51335134// repeated int32 int32_data = 5 [packed = true];5135{5136size_t data_size = ::google::protobuf::internal::WireFormatLite::5137Int32Size(this->int32_data_);5138if (data_size > 0) {5139total_size += 1 +5140::google::protobuf::internal::WireFormatLite::Int32Size(5141static_cast< ::google::protobuf::int32>(data_size));5142}5143int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);5144GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5145_int32_data_cached_byte_size_ = cached_size;5146GOOGLE_SAFE_CONCURRENT_WRITES_END();5147total_size += data_size;5148}51495150// repeated bytes string_data = 6;5151total_size += 1 *5152::google::protobuf::internal::FromIntSize(this->string_data_size());5153for (int i = 0, n = this->string_data_size(); i < n; i++) {5154total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(5155this->string_data(i));5156}51575158// repeated int64 int64_data = 7 [packed = true];5159{5160size_t data_size = ::google::protobuf::internal::WireFormatLite::5161Int64Size(this->int64_data_);5162if (data_size > 0) {5163total_size += 1 +5164::google::protobuf::internal::WireFormatLite::Int32Size(5165static_cast< ::google::protobuf::int32>(data_size));5166}5167int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);5168GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5169_int64_data_cached_byte_size_ = cached_size;5170GOOGLE_SAFE_CONCURRENT_WRITES_END();5171total_size += data_size;5172}51735174// repeated double double_data = 10 [packed = true];5175{5176unsigned int count = static_cast<unsigned int>(this->double_data_size());5177size_t data_size = 8UL * count;5178if (data_size > 0) {5179total_size += 1 +5180::google::protobuf::internal::WireFormatLite::Int32Size(5181static_cast< ::google::protobuf::int32>(data_size));5182}5183int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);5184GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5185_double_data_cached_byte_size_ = cached_size;5186GOOGLE_SAFE_CONCURRENT_WRITES_END();5187total_size += data_size;5188}51895190// repeated uint64 uint64_data = 11 [packed = true];5191{5192size_t data_size = ::google::protobuf::internal::WireFormatLite::5193UInt64Size(this->uint64_data_);5194if (data_size > 0) {5195total_size += 1 +5196::google::protobuf::internal::WireFormatLite::Int32Size(5197static_cast< ::google::protobuf::int32>(data_size));5198}5199int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);5200GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5201_uint64_data_cached_byte_size_ = cached_size;5202GOOGLE_SAFE_CONCURRENT_WRITES_END();5203total_size += data_size;5204}52055206if (_has_bits_[0 / 32] & 31u) {5207// optional string name = 8;5208if (has_name()) {5209total_size += 1 +5210::google::protobuf::internal::WireFormatLite::StringSize(5211this->name());5212}52135214// optional bytes raw_data = 9;5215if (has_raw_data()) {5216total_size += 1 +5217::google::protobuf::internal::WireFormatLite::BytesSize(5218this->raw_data());5219}52205221// optional string doc_string = 12;5222if (has_doc_string()) {5223total_size += 1 +5224::google::protobuf::internal::WireFormatLite::StringSize(5225this->doc_string());5226}52275228// optional .opencv_onnx.TensorProto.Segment segment = 3;5229if (has_segment()) {5230total_size += 1 +5231::google::protobuf::internal::WireFormatLite::MessageSize(5232*this->segment_);5233}52345235// optional .opencv_onnx.TensorProto.DataType data_type = 2;5236if (has_data_type()) {5237total_size += 1 +5238::google::protobuf::internal::WireFormatLite::EnumSize(this->data_type());5239}52405241}5242int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);5243GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5244_cached_size_ = cached_size;5245GOOGLE_SAFE_CONCURRENT_WRITES_END();5246return total_size;5247}52485249void TensorProto::MergeFrom(const ::google::protobuf::Message& from) {5250// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TensorProto)5251GOOGLE_DCHECK_NE(&from, this);5252const TensorProto* source =5253::google::protobuf::internal::DynamicCastToGenerated<const TensorProto>(5254&from);5255if (source == NULL) {5256// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TensorProto)5257::google::protobuf::internal::ReflectionOps::Merge(from, this);5258} else {5259// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TensorProto)5260MergeFrom(*source);5261}5262}52635264void TensorProto::MergeFrom(const TensorProto& from) {5265// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TensorProto)5266GOOGLE_DCHECK_NE(&from, this);5267_internal_metadata_.MergeFrom(from._internal_metadata_);5268::google::protobuf::uint32 cached_has_bits = 0;5269(void) cached_has_bits;52705271dims_.MergeFrom(from.dims_);5272float_data_.MergeFrom(from.float_data_);5273int32_data_.MergeFrom(from.int32_data_);5274string_data_.MergeFrom(from.string_data_);5275int64_data_.MergeFrom(from.int64_data_);5276double_data_.MergeFrom(from.double_data_);5277uint64_data_.MergeFrom(from.uint64_data_);5278cached_has_bits = from._has_bits_[0];5279if (cached_has_bits & 31u) {5280if (cached_has_bits & 0x00000001u) {5281set_has_name();5282name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);5283}5284if (cached_has_bits & 0x00000002u) {5285set_has_raw_data();5286raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_);5287}5288if (cached_has_bits & 0x00000004u) {5289set_has_doc_string();5290doc_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.doc_string_);5291}5292if (cached_has_bits & 0x00000008u) {5293mutable_segment()->::opencv_onnx::TensorProto_Segment::MergeFrom(from.segment());5294}5295if (cached_has_bits & 0x00000010u) {5296data_type_ = from.data_type_;5297}5298_has_bits_[0] |= cached_has_bits;5299}5300}53015302void TensorProto::CopyFrom(const ::google::protobuf::Message& from) {5303// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TensorProto)5304if (&from == this) return;5305Clear();5306MergeFrom(from);5307}53085309void TensorProto::CopyFrom(const TensorProto& from) {5310// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TensorProto)5311if (&from == this) return;5312Clear();5313MergeFrom(from);5314}53155316bool TensorProto::IsInitialized() const {5317return true;5318}53195320void TensorProto::Swap(TensorProto* other) {5321if (other == this) return;5322InternalSwap(other);5323}5324void TensorProto::InternalSwap(TensorProto* other) {5325using std::swap;5326dims_.InternalSwap(&other->dims_);5327float_data_.InternalSwap(&other->float_data_);5328int32_data_.InternalSwap(&other->int32_data_);5329string_data_.InternalSwap(&other->string_data_);5330int64_data_.InternalSwap(&other->int64_data_);5331double_data_.InternalSwap(&other->double_data_);5332uint64_data_.InternalSwap(&other->uint64_data_);5333name_.Swap(&other->name_);5334raw_data_.Swap(&other->raw_data_);5335doc_string_.Swap(&other->doc_string_);5336swap(segment_, other->segment_);5337swap(data_type_, other->data_type_);5338swap(_has_bits_[0], other->_has_bits_[0]);5339_internal_metadata_.Swap(&other->_internal_metadata_);5340swap(_cached_size_, other->_cached_size_);5341}53425343::google::protobuf::Metadata TensorProto::GetMetadata() const {5344protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();5345return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];5346}534753485349// ===================================================================53505351void TensorShapeProto_Dimension::InitAsDefaultInstance() {5352::opencv_onnx::_TensorShapeProto_Dimension_default_instance_.dim_value_ = GOOGLE_LONGLONG(0);5353::opencv_onnx::_TensorShapeProto_Dimension_default_instance_.dim_param_.UnsafeSetDefault(5354&::google::protobuf::internal::GetEmptyStringAlreadyInited());5355}5356#if !defined(_MSC_VER) || _MSC_VER >= 19005357const int TensorShapeProto_Dimension::kDimValueFieldNumber;5358const int TensorShapeProto_Dimension::kDimParamFieldNumber;5359const int TensorShapeProto_Dimension::kDenotationFieldNumber;5360#endif // !defined(_MSC_VER) || _MSC_VER >= 190053615362TensorShapeProto_Dimension::TensorShapeProto_Dimension()5363: ::google::protobuf::Message(), _internal_metadata_(NULL) {5364if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {5365::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto_Dimension();5366}5367SharedCtor();5368// @@protoc_insertion_point(constructor:opencv_onnx.TensorShapeProto.Dimension)5369}5370TensorShapeProto_Dimension::TensorShapeProto_Dimension(const TensorShapeProto_Dimension& from)5371: ::google::protobuf::Message(),5372_internal_metadata_(NULL),5373_has_bits_(from._has_bits_),5374_cached_size_(0) {5375_internal_metadata_.MergeFrom(from._internal_metadata_);5376denotation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());5377if (from.has_denotation()) {5378denotation_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.denotation_);5379}5380clear_has_value();5381switch (from.value_case()) {5382case kDimValue: {5383set_dim_value(from.dim_value());5384break;5385}5386case kDimParam: {5387set_dim_param(from.dim_param());5388break;5389}5390case VALUE_NOT_SET: {5391break;5392}5393}5394// @@protoc_insertion_point(copy_constructor:opencv_onnx.TensorShapeProto.Dimension)5395}53965397void TensorShapeProto_Dimension::SharedCtor() {5398_cached_size_ = 0;5399denotation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());5400clear_has_value();5401}54025403TensorShapeProto_Dimension::~TensorShapeProto_Dimension() {5404// @@protoc_insertion_point(destructor:opencv_onnx.TensorShapeProto.Dimension)5405SharedDtor();5406}54075408void TensorShapeProto_Dimension::SharedDtor() {5409denotation_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());5410if (has_value()) {5411clear_value();5412}5413}54145415void TensorShapeProto_Dimension::SetCachedSize(int size) const {5416GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5417_cached_size_ = size;5418GOOGLE_SAFE_CONCURRENT_WRITES_END();5419}5420const ::google::protobuf::Descriptor* TensorShapeProto_Dimension::descriptor() {5421::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();5422return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;5423}54245425const TensorShapeProto_Dimension& TensorShapeProto_Dimension::default_instance() {5426::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto_Dimension();5427return *internal_default_instance();5428}54295430TensorShapeProto_Dimension* TensorShapeProto_Dimension::New(::google::protobuf::Arena* arena) const {5431TensorShapeProto_Dimension* n = new TensorShapeProto_Dimension;5432if (arena != NULL) {5433arena->Own(n);5434}5435return n;5436}54375438void TensorShapeProto_Dimension::clear_value() {5439// @@protoc_insertion_point(one_of_clear_start:opencv_onnx.TensorShapeProto.Dimension)5440switch (value_case()) {5441case kDimValue: {5442// No need to clear5443break;5444}5445case kDimParam: {5446value_.dim_param_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());5447break;5448}5449case VALUE_NOT_SET: {5450break;5451}5452}5453_oneof_case_[0] = VALUE_NOT_SET;5454}545554565457void TensorShapeProto_Dimension::Clear() {5458// @@protoc_insertion_point(message_clear_start:opencv_onnx.TensorShapeProto.Dimension)5459::google::protobuf::uint32 cached_has_bits = 0;5460// Prevent compiler warnings about cached_has_bits being unused5461(void) cached_has_bits;54625463cached_has_bits = _has_bits_[0];5464if (cached_has_bits & 0x00000001u) {5465GOOGLE_DCHECK(!denotation_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));5466(*denotation_.UnsafeRawStringPointer())->clear();5467}5468clear_value();5469_has_bits_.Clear();5470_internal_metadata_.Clear();5471}54725473bool TensorShapeProto_Dimension::MergePartialFromCodedStream(5474::google::protobuf::io::CodedInputStream* input) {5475#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure5476::google::protobuf::uint32 tag;5477// @@protoc_insertion_point(parse_start:opencv_onnx.TensorShapeProto.Dimension)5478for (;;) {5479::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);5480tag = p.first;5481if (!p.second) goto handle_unusual;5482switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {5483// optional int64 dim_value = 1;5484case 1: {5485if (static_cast< ::google::protobuf::uint8>(tag) ==5486static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {5487clear_value();5488DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<5489::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(5490input, &value_.dim_value_)));5491set_has_dim_value();5492} else {5493goto handle_unusual;5494}5495break;5496}54975498// optional string dim_param = 2;5499case 2: {5500if (static_cast< ::google::protobuf::uint8>(tag) ==5501static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {5502DO_(::google::protobuf::internal::WireFormatLite::ReadString(5503input, this->mutable_dim_param()));5504::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5505this->dim_param().data(), static_cast<int>(this->dim_param().length()),5506::google::protobuf::internal::WireFormat::PARSE,5507"opencv_onnx.TensorShapeProto.Dimension.dim_param");5508} else {5509goto handle_unusual;5510}5511break;5512}55135514// optional string denotation = 3;5515case 3: {5516if (static_cast< ::google::protobuf::uint8>(tag) ==5517static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {5518DO_(::google::protobuf::internal::WireFormatLite::ReadString(5519input, this->mutable_denotation()));5520::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5521this->denotation().data(), static_cast<int>(this->denotation().length()),5522::google::protobuf::internal::WireFormat::PARSE,5523"opencv_onnx.TensorShapeProto.Dimension.denotation");5524} else {5525goto handle_unusual;5526}5527break;5528}55295530default: {5531handle_unusual:5532if (tag == 0) {5533goto success;5534}5535DO_(::google::protobuf::internal::WireFormat::SkipField(5536input, tag, _internal_metadata_.mutable_unknown_fields()));5537break;5538}5539}5540}5541success:5542// @@protoc_insertion_point(parse_success:opencv_onnx.TensorShapeProto.Dimension)5543return true;5544failure:5545// @@protoc_insertion_point(parse_failure:opencv_onnx.TensorShapeProto.Dimension)5546return false;5547#undef DO_5548}55495550void TensorShapeProto_Dimension::SerializeWithCachedSizes(5551::google::protobuf::io::CodedOutputStream* output) const {5552// @@protoc_insertion_point(serialize_start:opencv_onnx.TensorShapeProto.Dimension)5553::google::protobuf::uint32 cached_has_bits = 0;5554(void) cached_has_bits;55555556switch (value_case()) {5557case kDimValue:5558::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->dim_value(), output);5559break;5560case kDimParam:5561::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5562this->dim_param().data(), static_cast<int>(this->dim_param().length()),5563::google::protobuf::internal::WireFormat::SERIALIZE,5564"opencv_onnx.TensorShapeProto.Dimension.dim_param");5565::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(55662, this->dim_param(), output);5567break;5568default: ;5569}5570cached_has_bits = _has_bits_[0];5571// optional string denotation = 3;5572if (cached_has_bits & 0x00000001u) {5573::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5574this->denotation().data(), static_cast<int>(this->denotation().length()),5575::google::protobuf::internal::WireFormat::SERIALIZE,5576"opencv_onnx.TensorShapeProto.Dimension.denotation");5577::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(55783, this->denotation(), output);5579}55805581if (_internal_metadata_.have_unknown_fields()) {5582::google::protobuf::internal::WireFormat::SerializeUnknownFields(5583_internal_metadata_.unknown_fields(), output);5584}5585// @@protoc_insertion_point(serialize_end:opencv_onnx.TensorShapeProto.Dimension)5586}55875588::google::protobuf::uint8* TensorShapeProto_Dimension::InternalSerializeWithCachedSizesToArray(5589bool deterministic, ::google::protobuf::uint8* target) const {5590(void)deterministic; // Unused5591// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TensorShapeProto.Dimension)5592::google::protobuf::uint32 cached_has_bits = 0;5593(void) cached_has_bits;55945595switch (value_case()) {5596case kDimValue:5597target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->dim_value(), target);5598break;5599case kDimParam:5600::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5601this->dim_param().data(), static_cast<int>(this->dim_param().length()),5602::google::protobuf::internal::WireFormat::SERIALIZE,5603"opencv_onnx.TensorShapeProto.Dimension.dim_param");5604target =5605::google::protobuf::internal::WireFormatLite::WriteStringToArray(56062, this->dim_param(), target);5607break;5608default: ;5609}5610cached_has_bits = _has_bits_[0];5611// optional string denotation = 3;5612if (cached_has_bits & 0x00000001u) {5613::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(5614this->denotation().data(), static_cast<int>(this->denotation().length()),5615::google::protobuf::internal::WireFormat::SERIALIZE,5616"opencv_onnx.TensorShapeProto.Dimension.denotation");5617target =5618::google::protobuf::internal::WireFormatLite::WriteStringToArray(56193, this->denotation(), target);5620}56215622if (_internal_metadata_.have_unknown_fields()) {5623target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(5624_internal_metadata_.unknown_fields(), target);5625}5626// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TensorShapeProto.Dimension)5627return target;5628}56295630size_t TensorShapeProto_Dimension::ByteSizeLong() const {5631// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TensorShapeProto.Dimension)5632size_t total_size = 0;56335634if (_internal_metadata_.have_unknown_fields()) {5635total_size +=5636::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(5637_internal_metadata_.unknown_fields());5638}5639// optional string denotation = 3;5640if (has_denotation()) {5641total_size += 1 +5642::google::protobuf::internal::WireFormatLite::StringSize(5643this->denotation());5644}56455646switch (value_case()) {5647// optional int64 dim_value = 1;5648case kDimValue: {5649total_size += 1 +5650::google::protobuf::internal::WireFormatLite::Int64Size(5651this->dim_value());5652break;5653}5654// optional string dim_param = 2;5655case kDimParam: {5656total_size += 1 +5657::google::protobuf::internal::WireFormatLite::StringSize(5658this->dim_param());5659break;5660}5661case VALUE_NOT_SET: {5662break;5663}5664}5665int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);5666GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5667_cached_size_ = cached_size;5668GOOGLE_SAFE_CONCURRENT_WRITES_END();5669return total_size;5670}56715672void TensorShapeProto_Dimension::MergeFrom(const ::google::protobuf::Message& from) {5673// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TensorShapeProto.Dimension)5674GOOGLE_DCHECK_NE(&from, this);5675const TensorShapeProto_Dimension* source =5676::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto_Dimension>(5677&from);5678if (source == NULL) {5679// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TensorShapeProto.Dimension)5680::google::protobuf::internal::ReflectionOps::Merge(from, this);5681} else {5682// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TensorShapeProto.Dimension)5683MergeFrom(*source);5684}5685}56865687void TensorShapeProto_Dimension::MergeFrom(const TensorShapeProto_Dimension& from) {5688// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TensorShapeProto.Dimension)5689GOOGLE_DCHECK_NE(&from, this);5690_internal_metadata_.MergeFrom(from._internal_metadata_);5691::google::protobuf::uint32 cached_has_bits = 0;5692(void) cached_has_bits;56935694if (from.has_denotation()) {5695set_has_denotation();5696denotation_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.denotation_);5697}5698switch (from.value_case()) {5699case kDimValue: {5700set_dim_value(from.dim_value());5701break;5702}5703case kDimParam: {5704set_dim_param(from.dim_param());5705break;5706}5707case VALUE_NOT_SET: {5708break;5709}5710}5711}57125713void TensorShapeProto_Dimension::CopyFrom(const ::google::protobuf::Message& from) {5714// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TensorShapeProto.Dimension)5715if (&from == this) return;5716Clear();5717MergeFrom(from);5718}57195720void TensorShapeProto_Dimension::CopyFrom(const TensorShapeProto_Dimension& from) {5721// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TensorShapeProto.Dimension)5722if (&from == this) return;5723Clear();5724MergeFrom(from);5725}57265727bool TensorShapeProto_Dimension::IsInitialized() const {5728return true;5729}57305731void TensorShapeProto_Dimension::Swap(TensorShapeProto_Dimension* other) {5732if (other == this) return;5733InternalSwap(other);5734}5735void TensorShapeProto_Dimension::InternalSwap(TensorShapeProto_Dimension* other) {5736using std::swap;5737denotation_.Swap(&other->denotation_);5738swap(value_, other->value_);5739swap(_oneof_case_[0], other->_oneof_case_[0]);5740swap(_has_bits_[0], other->_has_bits_[0]);5741_internal_metadata_.Swap(&other->_internal_metadata_);5742swap(_cached_size_, other->_cached_size_);5743}57445745::google::protobuf::Metadata TensorShapeProto_Dimension::GetMetadata() const {5746protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();5747return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];5748}574957505751// ===================================================================57525753void TensorShapeProto::InitAsDefaultInstance() {5754}5755#if !defined(_MSC_VER) || _MSC_VER >= 19005756const int TensorShapeProto::kDimFieldNumber;5757#endif // !defined(_MSC_VER) || _MSC_VER >= 190057585759TensorShapeProto::TensorShapeProto()5760: ::google::protobuf::Message(), _internal_metadata_(NULL) {5761if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {5762::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto();5763}5764SharedCtor();5765// @@protoc_insertion_point(constructor:opencv_onnx.TensorShapeProto)5766}5767TensorShapeProto::TensorShapeProto(const TensorShapeProto& from)5768: ::google::protobuf::Message(),5769_internal_metadata_(NULL),5770_has_bits_(from._has_bits_),5771_cached_size_(0),5772dim_(from.dim_) {5773_internal_metadata_.MergeFrom(from._internal_metadata_);5774// @@protoc_insertion_point(copy_constructor:opencv_onnx.TensorShapeProto)5775}57765777void TensorShapeProto::SharedCtor() {5778_cached_size_ = 0;5779}57805781TensorShapeProto::~TensorShapeProto() {5782// @@protoc_insertion_point(destructor:opencv_onnx.TensorShapeProto)5783SharedDtor();5784}57855786void TensorShapeProto::SharedDtor() {5787}57885789void TensorShapeProto::SetCachedSize(int size) const {5790GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5791_cached_size_ = size;5792GOOGLE_SAFE_CONCURRENT_WRITES_END();5793}5794const ::google::protobuf::Descriptor* TensorShapeProto::descriptor() {5795::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();5796return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;5797}57985799const TensorShapeProto& TensorShapeProto::default_instance() {5800::protobuf_opencv_2donnx_2eproto::InitDefaultsTensorShapeProto();5801return *internal_default_instance();5802}58035804TensorShapeProto* TensorShapeProto::New(::google::protobuf::Arena* arena) const {5805TensorShapeProto* n = new TensorShapeProto;5806if (arena != NULL) {5807arena->Own(n);5808}5809return n;5810}58115812void TensorShapeProto::Clear() {5813// @@protoc_insertion_point(message_clear_start:opencv_onnx.TensorShapeProto)5814::google::protobuf::uint32 cached_has_bits = 0;5815// Prevent compiler warnings about cached_has_bits being unused5816(void) cached_has_bits;58175818dim_.Clear();5819_has_bits_.Clear();5820_internal_metadata_.Clear();5821}58225823bool TensorShapeProto::MergePartialFromCodedStream(5824::google::protobuf::io::CodedInputStream* input) {5825#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure5826::google::protobuf::uint32 tag;5827// @@protoc_insertion_point(parse_start:opencv_onnx.TensorShapeProto)5828for (;;) {5829::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);5830tag = p.first;5831if (!p.second) goto handle_unusual;5832switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {5833// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;5834case 1: {5835if (static_cast< ::google::protobuf::uint8>(tag) ==5836static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {5837DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_dim()));5838} else {5839goto handle_unusual;5840}5841break;5842}58435844default: {5845handle_unusual:5846if (tag == 0) {5847goto success;5848}5849DO_(::google::protobuf::internal::WireFormat::SkipField(5850input, tag, _internal_metadata_.mutable_unknown_fields()));5851break;5852}5853}5854}5855success:5856// @@protoc_insertion_point(parse_success:opencv_onnx.TensorShapeProto)5857return true;5858failure:5859// @@protoc_insertion_point(parse_failure:opencv_onnx.TensorShapeProto)5860return false;5861#undef DO_5862}58635864void TensorShapeProto::SerializeWithCachedSizes(5865::google::protobuf::io::CodedOutputStream* output) const {5866// @@protoc_insertion_point(serialize_start:opencv_onnx.TensorShapeProto)5867::google::protobuf::uint32 cached_has_bits = 0;5868(void) cached_has_bits;58695870// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;5871for (unsigned int i = 0,5872n = static_cast<unsigned int>(this->dim_size()); i < n; i++) {5873::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(58741, this->dim(static_cast<int>(i)), output);5875}58765877if (_internal_metadata_.have_unknown_fields()) {5878::google::protobuf::internal::WireFormat::SerializeUnknownFields(5879_internal_metadata_.unknown_fields(), output);5880}5881// @@protoc_insertion_point(serialize_end:opencv_onnx.TensorShapeProto)5882}58835884::google::protobuf::uint8* TensorShapeProto::InternalSerializeWithCachedSizesToArray(5885bool deterministic, ::google::protobuf::uint8* target) const {5886(void)deterministic; // Unused5887// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TensorShapeProto)5888::google::protobuf::uint32 cached_has_bits = 0;5889(void) cached_has_bits;58905891// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;5892for (unsigned int i = 0,5893n = static_cast<unsigned int>(this->dim_size()); i < n; i++) {5894target = ::google::protobuf::internal::WireFormatLite::5895InternalWriteMessageToArray(58961, this->dim(static_cast<int>(i)), deterministic, target);5897}58985899if (_internal_metadata_.have_unknown_fields()) {5900target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(5901_internal_metadata_.unknown_fields(), target);5902}5903// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TensorShapeProto)5904return target;5905}59065907size_t TensorShapeProto::ByteSizeLong() const {5908// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TensorShapeProto)5909size_t total_size = 0;59105911if (_internal_metadata_.have_unknown_fields()) {5912total_size +=5913::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(5914_internal_metadata_.unknown_fields());5915}5916// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;5917{5918unsigned int count = static_cast<unsigned int>(this->dim_size());5919total_size += 1UL * count;5920for (unsigned int i = 0; i < count; i++) {5921total_size +=5922::google::protobuf::internal::WireFormatLite::MessageSize(5923this->dim(static_cast<int>(i)));5924}5925}59265927int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);5928GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();5929_cached_size_ = cached_size;5930GOOGLE_SAFE_CONCURRENT_WRITES_END();5931return total_size;5932}59335934void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) {5935// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TensorShapeProto)5936GOOGLE_DCHECK_NE(&from, this);5937const TensorShapeProto* source =5938::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto>(5939&from);5940if (source == NULL) {5941// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TensorShapeProto)5942::google::protobuf::internal::ReflectionOps::Merge(from, this);5943} else {5944// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TensorShapeProto)5945MergeFrom(*source);5946}5947}59485949void TensorShapeProto::MergeFrom(const TensorShapeProto& from) {5950// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TensorShapeProto)5951GOOGLE_DCHECK_NE(&from, this);5952_internal_metadata_.MergeFrom(from._internal_metadata_);5953::google::protobuf::uint32 cached_has_bits = 0;5954(void) cached_has_bits;59555956dim_.MergeFrom(from.dim_);5957}59585959void TensorShapeProto::CopyFrom(const ::google::protobuf::Message& from) {5960// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TensorShapeProto)5961if (&from == this) return;5962Clear();5963MergeFrom(from);5964}59655966void TensorShapeProto::CopyFrom(const TensorShapeProto& from) {5967// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TensorShapeProto)5968if (&from == this) return;5969Clear();5970MergeFrom(from);5971}59725973bool TensorShapeProto::IsInitialized() const {5974return true;5975}59765977void TensorShapeProto::Swap(TensorShapeProto* other) {5978if (other == this) return;5979InternalSwap(other);5980}5981void TensorShapeProto::InternalSwap(TensorShapeProto* other) {5982using std::swap;5983dim_.InternalSwap(&other->dim_);5984swap(_has_bits_[0], other->_has_bits_[0]);5985_internal_metadata_.Swap(&other->_internal_metadata_);5986swap(_cached_size_, other->_cached_size_);5987}59885989::google::protobuf::Metadata TensorShapeProto::GetMetadata() const {5990protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();5991return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];5992}599359945995// ===================================================================59965997void TypeProto_Tensor::InitAsDefaultInstance() {5998::opencv_onnx::_TypeProto_Tensor_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_onnx::TensorShapeProto*>(5999::opencv_onnx::TensorShapeProto::internal_default_instance());6000}6001#if !defined(_MSC_VER) || _MSC_VER >= 19006002const int TypeProto_Tensor::kElemTypeFieldNumber;6003const int TypeProto_Tensor::kShapeFieldNumber;6004#endif // !defined(_MSC_VER) || _MSC_VER >= 190060056006TypeProto_Tensor::TypeProto_Tensor()6007: ::google::protobuf::Message(), _internal_metadata_(NULL) {6008if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {6009::protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto_Tensor();6010}6011SharedCtor();6012// @@protoc_insertion_point(constructor:opencv_onnx.TypeProto.Tensor)6013}6014TypeProto_Tensor::TypeProto_Tensor(const TypeProto_Tensor& from)6015: ::google::protobuf::Message(),6016_internal_metadata_(NULL),6017_has_bits_(from._has_bits_),6018_cached_size_(0) {6019_internal_metadata_.MergeFrom(from._internal_metadata_);6020if (from.has_shape()) {6021shape_ = new ::opencv_onnx::TensorShapeProto(*from.shape_);6022} else {6023shape_ = NULL;6024}6025elem_type_ = from.elem_type_;6026// @@protoc_insertion_point(copy_constructor:opencv_onnx.TypeProto.Tensor)6027}60286029void TypeProto_Tensor::SharedCtor() {6030_cached_size_ = 0;6031::memset(&shape_, 0, static_cast<size_t>(6032reinterpret_cast<char*>(&elem_type_) -6033reinterpret_cast<char*>(&shape_)) + sizeof(elem_type_));6034}60356036TypeProto_Tensor::~TypeProto_Tensor() {6037// @@protoc_insertion_point(destructor:opencv_onnx.TypeProto.Tensor)6038SharedDtor();6039}60406041void TypeProto_Tensor::SharedDtor() {6042if (this != internal_default_instance()) delete shape_;6043}60446045void TypeProto_Tensor::SetCachedSize(int size) const {6046GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6047_cached_size_ = size;6048GOOGLE_SAFE_CONCURRENT_WRITES_END();6049}6050const ::google::protobuf::Descriptor* TypeProto_Tensor::descriptor() {6051::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6052return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;6053}60546055const TypeProto_Tensor& TypeProto_Tensor::default_instance() {6056::protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto_Tensor();6057return *internal_default_instance();6058}60596060TypeProto_Tensor* TypeProto_Tensor::New(::google::protobuf::Arena* arena) const {6061TypeProto_Tensor* n = new TypeProto_Tensor;6062if (arena != NULL) {6063arena->Own(n);6064}6065return n;6066}60676068void TypeProto_Tensor::Clear() {6069// @@protoc_insertion_point(message_clear_start:opencv_onnx.TypeProto.Tensor)6070::google::protobuf::uint32 cached_has_bits = 0;6071// Prevent compiler warnings about cached_has_bits being unused6072(void) cached_has_bits;60736074cached_has_bits = _has_bits_[0];6075if (cached_has_bits & 0x00000001u) {6076GOOGLE_DCHECK(shape_ != NULL);6077shape_->Clear();6078}6079elem_type_ = 0;6080_has_bits_.Clear();6081_internal_metadata_.Clear();6082}60836084bool TypeProto_Tensor::MergePartialFromCodedStream(6085::google::protobuf::io::CodedInputStream* input) {6086#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure6087::google::protobuf::uint32 tag;6088// @@protoc_insertion_point(parse_start:opencv_onnx.TypeProto.Tensor)6089for (;;) {6090::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);6091tag = p.first;6092if (!p.second) goto handle_unusual;6093switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {6094// optional .opencv_onnx.TensorProto.DataType elem_type = 1;6095case 1: {6096if (static_cast< ::google::protobuf::uint8>(tag) ==6097static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {6098int value;6099DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<6100int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(6101input, &value)));6102if (::opencv_onnx::TensorProto_DataType_IsValid(value)) {6103set_elem_type(static_cast< ::opencv_onnx::TensorProto_DataType >(value));6104} else {6105mutable_unknown_fields()->AddVarint(61061, static_cast< ::google::protobuf::uint64>(value));6107}6108} else {6109goto handle_unusual;6110}6111break;6112}61136114// optional .opencv_onnx.TensorShapeProto shape = 2;6115case 2: {6116if (static_cast< ::google::protobuf::uint8>(tag) ==6117static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {6118DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(6119input, mutable_shape()));6120} else {6121goto handle_unusual;6122}6123break;6124}61256126default: {6127handle_unusual:6128if (tag == 0) {6129goto success;6130}6131DO_(::google::protobuf::internal::WireFormat::SkipField(6132input, tag, _internal_metadata_.mutable_unknown_fields()));6133break;6134}6135}6136}6137success:6138// @@protoc_insertion_point(parse_success:opencv_onnx.TypeProto.Tensor)6139return true;6140failure:6141// @@protoc_insertion_point(parse_failure:opencv_onnx.TypeProto.Tensor)6142return false;6143#undef DO_6144}61456146void TypeProto_Tensor::SerializeWithCachedSizes(6147::google::protobuf::io::CodedOutputStream* output) const {6148// @@protoc_insertion_point(serialize_start:opencv_onnx.TypeProto.Tensor)6149::google::protobuf::uint32 cached_has_bits = 0;6150(void) cached_has_bits;61516152cached_has_bits = _has_bits_[0];6153// optional .opencv_onnx.TensorProto.DataType elem_type = 1;6154if (cached_has_bits & 0x00000002u) {6155::google::protobuf::internal::WireFormatLite::WriteEnum(61561, this->elem_type(), output);6157}61586159// optional .opencv_onnx.TensorShapeProto shape = 2;6160if (cached_has_bits & 0x00000001u) {6161::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(61622, *this->shape_, output);6163}61646165if (_internal_metadata_.have_unknown_fields()) {6166::google::protobuf::internal::WireFormat::SerializeUnknownFields(6167_internal_metadata_.unknown_fields(), output);6168}6169// @@protoc_insertion_point(serialize_end:opencv_onnx.TypeProto.Tensor)6170}61716172::google::protobuf::uint8* TypeProto_Tensor::InternalSerializeWithCachedSizesToArray(6173bool deterministic, ::google::protobuf::uint8* target) const {6174(void)deterministic; // Unused6175// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TypeProto.Tensor)6176::google::protobuf::uint32 cached_has_bits = 0;6177(void) cached_has_bits;61786179cached_has_bits = _has_bits_[0];6180// optional .opencv_onnx.TensorProto.DataType elem_type = 1;6181if (cached_has_bits & 0x00000002u) {6182target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(61831, this->elem_type(), target);6184}61856186// optional .opencv_onnx.TensorShapeProto shape = 2;6187if (cached_has_bits & 0x00000001u) {6188target = ::google::protobuf::internal::WireFormatLite::6189InternalWriteMessageToArray(61902, *this->shape_, deterministic, target);6191}61926193if (_internal_metadata_.have_unknown_fields()) {6194target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(6195_internal_metadata_.unknown_fields(), target);6196}6197// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TypeProto.Tensor)6198return target;6199}62006201size_t TypeProto_Tensor::ByteSizeLong() const {6202// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TypeProto.Tensor)6203size_t total_size = 0;62046205if (_internal_metadata_.have_unknown_fields()) {6206total_size +=6207::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(6208_internal_metadata_.unknown_fields());6209}6210if (_has_bits_[0 / 32] & 3u) {6211// optional .opencv_onnx.TensorShapeProto shape = 2;6212if (has_shape()) {6213total_size += 1 +6214::google::protobuf::internal::WireFormatLite::MessageSize(6215*this->shape_);6216}62176218// optional .opencv_onnx.TensorProto.DataType elem_type = 1;6219if (has_elem_type()) {6220total_size += 1 +6221::google::protobuf::internal::WireFormatLite::EnumSize(this->elem_type());6222}62236224}6225int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);6226GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6227_cached_size_ = cached_size;6228GOOGLE_SAFE_CONCURRENT_WRITES_END();6229return total_size;6230}62316232void TypeProto_Tensor::MergeFrom(const ::google::protobuf::Message& from) {6233// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TypeProto.Tensor)6234GOOGLE_DCHECK_NE(&from, this);6235const TypeProto_Tensor* source =6236::google::protobuf::internal::DynamicCastToGenerated<const TypeProto_Tensor>(6237&from);6238if (source == NULL) {6239// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TypeProto.Tensor)6240::google::protobuf::internal::ReflectionOps::Merge(from, this);6241} else {6242// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TypeProto.Tensor)6243MergeFrom(*source);6244}6245}62466247void TypeProto_Tensor::MergeFrom(const TypeProto_Tensor& from) {6248// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TypeProto.Tensor)6249GOOGLE_DCHECK_NE(&from, this);6250_internal_metadata_.MergeFrom(from._internal_metadata_);6251::google::protobuf::uint32 cached_has_bits = 0;6252(void) cached_has_bits;62536254cached_has_bits = from._has_bits_[0];6255if (cached_has_bits & 3u) {6256if (cached_has_bits & 0x00000001u) {6257mutable_shape()->::opencv_onnx::TensorShapeProto::MergeFrom(from.shape());6258}6259if (cached_has_bits & 0x00000002u) {6260elem_type_ = from.elem_type_;6261}6262_has_bits_[0] |= cached_has_bits;6263}6264}62656266void TypeProto_Tensor::CopyFrom(const ::google::protobuf::Message& from) {6267// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TypeProto.Tensor)6268if (&from == this) return;6269Clear();6270MergeFrom(from);6271}62726273void TypeProto_Tensor::CopyFrom(const TypeProto_Tensor& from) {6274// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TypeProto.Tensor)6275if (&from == this) return;6276Clear();6277MergeFrom(from);6278}62796280bool TypeProto_Tensor::IsInitialized() const {6281return true;6282}62836284void TypeProto_Tensor::Swap(TypeProto_Tensor* other) {6285if (other == this) return;6286InternalSwap(other);6287}6288void TypeProto_Tensor::InternalSwap(TypeProto_Tensor* other) {6289using std::swap;6290swap(shape_, other->shape_);6291swap(elem_type_, other->elem_type_);6292swap(_has_bits_[0], other->_has_bits_[0]);6293_internal_metadata_.Swap(&other->_internal_metadata_);6294swap(_cached_size_, other->_cached_size_);6295}62966297::google::protobuf::Metadata TypeProto_Tensor::GetMetadata() const {6298protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6299return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];6300}630163026303// ===================================================================63046305void TypeProto::InitAsDefaultInstance() {6306::opencv_onnx::_TypeProto_default_instance_.tensor_type_ = const_cast< ::opencv_onnx::TypeProto_Tensor*>(6307::opencv_onnx::TypeProto_Tensor::internal_default_instance());6308}6309void TypeProto::set_allocated_tensor_type(::opencv_onnx::TypeProto_Tensor* tensor_type) {6310::google::protobuf::Arena* message_arena = GetArenaNoVirtual();6311clear_value();6312if (tensor_type) {6313::google::protobuf::Arena* submessage_arena = NULL;6314if (message_arena != submessage_arena) {6315tensor_type = ::google::protobuf::internal::GetOwnedMessage(6316message_arena, tensor_type, submessage_arena);6317}6318set_has_tensor_type();6319value_.tensor_type_ = tensor_type;6320}6321// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TypeProto.tensor_type)6322}6323#if !defined(_MSC_VER) || _MSC_VER >= 19006324const int TypeProto::kTensorTypeFieldNumber;6325const int TypeProto::kDenotationFieldNumber;6326#endif // !defined(_MSC_VER) || _MSC_VER >= 190063276328TypeProto::TypeProto()6329: ::google::protobuf::Message(), _internal_metadata_(NULL) {6330if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {6331::protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto();6332}6333SharedCtor();6334// @@protoc_insertion_point(constructor:opencv_onnx.TypeProto)6335}6336TypeProto::TypeProto(const TypeProto& from)6337: ::google::protobuf::Message(),6338_internal_metadata_(NULL),6339_has_bits_(from._has_bits_),6340_cached_size_(0) {6341_internal_metadata_.MergeFrom(from._internal_metadata_);6342denotation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6343if (from.has_denotation()) {6344denotation_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.denotation_);6345}6346clear_has_value();6347switch (from.value_case()) {6348case kTensorType: {6349mutable_tensor_type()->::opencv_onnx::TypeProto_Tensor::MergeFrom(from.tensor_type());6350break;6351}6352case VALUE_NOT_SET: {6353break;6354}6355}6356// @@protoc_insertion_point(copy_constructor:opencv_onnx.TypeProto)6357}63586359void TypeProto::SharedCtor() {6360_cached_size_ = 0;6361denotation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6362clear_has_value();6363}63646365TypeProto::~TypeProto() {6366// @@protoc_insertion_point(destructor:opencv_onnx.TypeProto)6367SharedDtor();6368}63696370void TypeProto::SharedDtor() {6371denotation_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6372if (has_value()) {6373clear_value();6374}6375}63766377void TypeProto::SetCachedSize(int size) const {6378GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6379_cached_size_ = size;6380GOOGLE_SAFE_CONCURRENT_WRITES_END();6381}6382const ::google::protobuf::Descriptor* TypeProto::descriptor() {6383::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6384return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;6385}63866387const TypeProto& TypeProto::default_instance() {6388::protobuf_opencv_2donnx_2eproto::InitDefaultsTypeProto();6389return *internal_default_instance();6390}63916392TypeProto* TypeProto::New(::google::protobuf::Arena* arena) const {6393TypeProto* n = new TypeProto;6394if (arena != NULL) {6395arena->Own(n);6396}6397return n;6398}63996400void TypeProto::clear_value() {6401// @@protoc_insertion_point(one_of_clear_start:opencv_onnx.TypeProto)6402switch (value_case()) {6403case kTensorType: {6404delete value_.tensor_type_;6405break;6406}6407case VALUE_NOT_SET: {6408break;6409}6410}6411_oneof_case_[0] = VALUE_NOT_SET;6412}641364146415void TypeProto::Clear() {6416// @@protoc_insertion_point(message_clear_start:opencv_onnx.TypeProto)6417::google::protobuf::uint32 cached_has_bits = 0;6418// Prevent compiler warnings about cached_has_bits being unused6419(void) cached_has_bits;64206421cached_has_bits = _has_bits_[0];6422if (cached_has_bits & 0x00000001u) {6423GOOGLE_DCHECK(!denotation_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));6424(*denotation_.UnsafeRawStringPointer())->clear();6425}6426clear_value();6427_has_bits_.Clear();6428_internal_metadata_.Clear();6429}64306431bool TypeProto::MergePartialFromCodedStream(6432::google::protobuf::io::CodedInputStream* input) {6433#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure6434::google::protobuf::uint32 tag;6435// @@protoc_insertion_point(parse_start:opencv_onnx.TypeProto)6436for (;;) {6437::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);6438tag = p.first;6439if (!p.second) goto handle_unusual;6440switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {6441// optional .opencv_onnx.TypeProto.Tensor tensor_type = 1;6442case 1: {6443if (static_cast< ::google::protobuf::uint8>(tag) ==6444static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {6445DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(6446input, mutable_tensor_type()));6447} else {6448goto handle_unusual;6449}6450break;6451}64526453// optional string denotation = 6;6454case 6: {6455if (static_cast< ::google::protobuf::uint8>(tag) ==6456static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {6457DO_(::google::protobuf::internal::WireFormatLite::ReadString(6458input, this->mutable_denotation()));6459::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6460this->denotation().data(), static_cast<int>(this->denotation().length()),6461::google::protobuf::internal::WireFormat::PARSE,6462"opencv_onnx.TypeProto.denotation");6463} else {6464goto handle_unusual;6465}6466break;6467}64686469default: {6470handle_unusual:6471if (tag == 0) {6472goto success;6473}6474DO_(::google::protobuf::internal::WireFormat::SkipField(6475input, tag, _internal_metadata_.mutable_unknown_fields()));6476break;6477}6478}6479}6480success:6481// @@protoc_insertion_point(parse_success:opencv_onnx.TypeProto)6482return true;6483failure:6484// @@protoc_insertion_point(parse_failure:opencv_onnx.TypeProto)6485return false;6486#undef DO_6487}64886489void TypeProto::SerializeWithCachedSizes(6490::google::protobuf::io::CodedOutputStream* output) const {6491// @@protoc_insertion_point(serialize_start:opencv_onnx.TypeProto)6492::google::protobuf::uint32 cached_has_bits = 0;6493(void) cached_has_bits;64946495// optional .opencv_onnx.TypeProto.Tensor tensor_type = 1;6496if (has_tensor_type()) {6497::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(64981, *value_.tensor_type_, output);6499}65006501cached_has_bits = _has_bits_[0];6502// optional string denotation = 6;6503if (cached_has_bits & 0x00000001u) {6504::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6505this->denotation().data(), static_cast<int>(this->denotation().length()),6506::google::protobuf::internal::WireFormat::SERIALIZE,6507"opencv_onnx.TypeProto.denotation");6508::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(65096, this->denotation(), output);6510}65116512if (_internal_metadata_.have_unknown_fields()) {6513::google::protobuf::internal::WireFormat::SerializeUnknownFields(6514_internal_metadata_.unknown_fields(), output);6515}6516// @@protoc_insertion_point(serialize_end:opencv_onnx.TypeProto)6517}65186519::google::protobuf::uint8* TypeProto::InternalSerializeWithCachedSizesToArray(6520bool deterministic, ::google::protobuf::uint8* target) const {6521(void)deterministic; // Unused6522// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.TypeProto)6523::google::protobuf::uint32 cached_has_bits = 0;6524(void) cached_has_bits;65256526// optional .opencv_onnx.TypeProto.Tensor tensor_type = 1;6527if (has_tensor_type()) {6528target = ::google::protobuf::internal::WireFormatLite::6529InternalWriteMessageToArray(65301, *value_.tensor_type_, deterministic, target);6531}65326533cached_has_bits = _has_bits_[0];6534// optional string denotation = 6;6535if (cached_has_bits & 0x00000001u) {6536::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6537this->denotation().data(), static_cast<int>(this->denotation().length()),6538::google::protobuf::internal::WireFormat::SERIALIZE,6539"opencv_onnx.TypeProto.denotation");6540target =6541::google::protobuf::internal::WireFormatLite::WriteStringToArray(65426, this->denotation(), target);6543}65446545if (_internal_metadata_.have_unknown_fields()) {6546target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(6547_internal_metadata_.unknown_fields(), target);6548}6549// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.TypeProto)6550return target;6551}65526553size_t TypeProto::ByteSizeLong() const {6554// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.TypeProto)6555size_t total_size = 0;65566557if (_internal_metadata_.have_unknown_fields()) {6558total_size +=6559::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(6560_internal_metadata_.unknown_fields());6561}6562// optional string denotation = 6;6563if (has_denotation()) {6564total_size += 1 +6565::google::protobuf::internal::WireFormatLite::StringSize(6566this->denotation());6567}65686569switch (value_case()) {6570// optional .opencv_onnx.TypeProto.Tensor tensor_type = 1;6571case kTensorType: {6572total_size += 1 +6573::google::protobuf::internal::WireFormatLite::MessageSize(6574*value_.tensor_type_);6575break;6576}6577case VALUE_NOT_SET: {6578break;6579}6580}6581int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);6582GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6583_cached_size_ = cached_size;6584GOOGLE_SAFE_CONCURRENT_WRITES_END();6585return total_size;6586}65876588void TypeProto::MergeFrom(const ::google::protobuf::Message& from) {6589// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.TypeProto)6590GOOGLE_DCHECK_NE(&from, this);6591const TypeProto* source =6592::google::protobuf::internal::DynamicCastToGenerated<const TypeProto>(6593&from);6594if (source == NULL) {6595// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.TypeProto)6596::google::protobuf::internal::ReflectionOps::Merge(from, this);6597} else {6598// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.TypeProto)6599MergeFrom(*source);6600}6601}66026603void TypeProto::MergeFrom(const TypeProto& from) {6604// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.TypeProto)6605GOOGLE_DCHECK_NE(&from, this);6606_internal_metadata_.MergeFrom(from._internal_metadata_);6607::google::protobuf::uint32 cached_has_bits = 0;6608(void) cached_has_bits;66096610if (from.has_denotation()) {6611set_has_denotation();6612denotation_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.denotation_);6613}6614switch (from.value_case()) {6615case kTensorType: {6616mutable_tensor_type()->::opencv_onnx::TypeProto_Tensor::MergeFrom(from.tensor_type());6617break;6618}6619case VALUE_NOT_SET: {6620break;6621}6622}6623}66246625void TypeProto::CopyFrom(const ::google::protobuf::Message& from) {6626// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.TypeProto)6627if (&from == this) return;6628Clear();6629MergeFrom(from);6630}66316632void TypeProto::CopyFrom(const TypeProto& from) {6633// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.TypeProto)6634if (&from == this) return;6635Clear();6636MergeFrom(from);6637}66386639bool TypeProto::IsInitialized() const {6640return true;6641}66426643void TypeProto::Swap(TypeProto* other) {6644if (other == this) return;6645InternalSwap(other);6646}6647void TypeProto::InternalSwap(TypeProto* other) {6648using std::swap;6649denotation_.Swap(&other->denotation_);6650swap(value_, other->value_);6651swap(_oneof_case_[0], other->_oneof_case_[0]);6652swap(_has_bits_[0], other->_has_bits_[0]);6653_internal_metadata_.Swap(&other->_internal_metadata_);6654swap(_cached_size_, other->_cached_size_);6655}66566657::google::protobuf::Metadata TypeProto::GetMetadata() const {6658protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6659return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];6660}666166626663// ===================================================================66646665void OperatorSetIdProto::InitAsDefaultInstance() {6666}6667#if !defined(_MSC_VER) || _MSC_VER >= 19006668const int OperatorSetIdProto::kDomainFieldNumber;6669const int OperatorSetIdProto::kVersionFieldNumber;6670#endif // !defined(_MSC_VER) || _MSC_VER >= 190066716672OperatorSetIdProto::OperatorSetIdProto()6673: ::google::protobuf::Message(), _internal_metadata_(NULL) {6674if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {6675::protobuf_opencv_2donnx_2eproto::InitDefaultsOperatorSetIdProto();6676}6677SharedCtor();6678// @@protoc_insertion_point(constructor:opencv_onnx.OperatorSetIdProto)6679}6680OperatorSetIdProto::OperatorSetIdProto(const OperatorSetIdProto& from)6681: ::google::protobuf::Message(),6682_internal_metadata_(NULL),6683_has_bits_(from._has_bits_),6684_cached_size_(0) {6685_internal_metadata_.MergeFrom(from._internal_metadata_);6686domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6687if (from.has_domain()) {6688domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);6689}6690version_ = from.version_;6691// @@protoc_insertion_point(copy_constructor:opencv_onnx.OperatorSetIdProto)6692}66936694void OperatorSetIdProto::SharedCtor() {6695_cached_size_ = 0;6696domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6697version_ = GOOGLE_LONGLONG(0);6698}66996700OperatorSetIdProto::~OperatorSetIdProto() {6701// @@protoc_insertion_point(destructor:opencv_onnx.OperatorSetIdProto)6702SharedDtor();6703}67046705void OperatorSetIdProto::SharedDtor() {6706domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());6707}67086709void OperatorSetIdProto::SetCachedSize(int size) const {6710GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6711_cached_size_ = size;6712GOOGLE_SAFE_CONCURRENT_WRITES_END();6713}6714const ::google::protobuf::Descriptor* OperatorSetIdProto::descriptor() {6715::protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6716return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;6717}67186719const OperatorSetIdProto& OperatorSetIdProto::default_instance() {6720::protobuf_opencv_2donnx_2eproto::InitDefaultsOperatorSetIdProto();6721return *internal_default_instance();6722}67236724OperatorSetIdProto* OperatorSetIdProto::New(::google::protobuf::Arena* arena) const {6725OperatorSetIdProto* n = new OperatorSetIdProto;6726if (arena != NULL) {6727arena->Own(n);6728}6729return n;6730}67316732void OperatorSetIdProto::Clear() {6733// @@protoc_insertion_point(message_clear_start:opencv_onnx.OperatorSetIdProto)6734::google::protobuf::uint32 cached_has_bits = 0;6735// Prevent compiler warnings about cached_has_bits being unused6736(void) cached_has_bits;67376738cached_has_bits = _has_bits_[0];6739if (cached_has_bits & 0x00000001u) {6740GOOGLE_DCHECK(!domain_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));6741(*domain_.UnsafeRawStringPointer())->clear();6742}6743version_ = GOOGLE_LONGLONG(0);6744_has_bits_.Clear();6745_internal_metadata_.Clear();6746}67476748bool OperatorSetIdProto::MergePartialFromCodedStream(6749::google::protobuf::io::CodedInputStream* input) {6750#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure6751::google::protobuf::uint32 tag;6752// @@protoc_insertion_point(parse_start:opencv_onnx.OperatorSetIdProto)6753for (;;) {6754::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);6755tag = p.first;6756if (!p.second) goto handle_unusual;6757switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {6758// optional string domain = 1;6759case 1: {6760if (static_cast< ::google::protobuf::uint8>(tag) ==6761static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {6762DO_(::google::protobuf::internal::WireFormatLite::ReadString(6763input, this->mutable_domain()));6764::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6765this->domain().data(), static_cast<int>(this->domain().length()),6766::google::protobuf::internal::WireFormat::PARSE,6767"opencv_onnx.OperatorSetIdProto.domain");6768} else {6769goto handle_unusual;6770}6771break;6772}67736774// optional int64 version = 2;6775case 2: {6776if (static_cast< ::google::protobuf::uint8>(tag) ==6777static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {6778set_has_version();6779DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<6780::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(6781input, &version_)));6782} else {6783goto handle_unusual;6784}6785break;6786}67876788default: {6789handle_unusual:6790if (tag == 0) {6791goto success;6792}6793DO_(::google::protobuf::internal::WireFormat::SkipField(6794input, tag, _internal_metadata_.mutable_unknown_fields()));6795break;6796}6797}6798}6799success:6800// @@protoc_insertion_point(parse_success:opencv_onnx.OperatorSetIdProto)6801return true;6802failure:6803// @@protoc_insertion_point(parse_failure:opencv_onnx.OperatorSetIdProto)6804return false;6805#undef DO_6806}68076808void OperatorSetIdProto::SerializeWithCachedSizes(6809::google::protobuf::io::CodedOutputStream* output) const {6810// @@protoc_insertion_point(serialize_start:opencv_onnx.OperatorSetIdProto)6811::google::protobuf::uint32 cached_has_bits = 0;6812(void) cached_has_bits;68136814cached_has_bits = _has_bits_[0];6815// optional string domain = 1;6816if (cached_has_bits & 0x00000001u) {6817::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6818this->domain().data(), static_cast<int>(this->domain().length()),6819::google::protobuf::internal::WireFormat::SERIALIZE,6820"opencv_onnx.OperatorSetIdProto.domain");6821::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(68221, this->domain(), output);6823}68246825// optional int64 version = 2;6826if (cached_has_bits & 0x00000002u) {6827::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->version(), output);6828}68296830if (_internal_metadata_.have_unknown_fields()) {6831::google::protobuf::internal::WireFormat::SerializeUnknownFields(6832_internal_metadata_.unknown_fields(), output);6833}6834// @@protoc_insertion_point(serialize_end:opencv_onnx.OperatorSetIdProto)6835}68366837::google::protobuf::uint8* OperatorSetIdProto::InternalSerializeWithCachedSizesToArray(6838bool deterministic, ::google::protobuf::uint8* target) const {6839(void)deterministic; // Unused6840// @@protoc_insertion_point(serialize_to_array_start:opencv_onnx.OperatorSetIdProto)6841::google::protobuf::uint32 cached_has_bits = 0;6842(void) cached_has_bits;68436844cached_has_bits = _has_bits_[0];6845// optional string domain = 1;6846if (cached_has_bits & 0x00000001u) {6847::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(6848this->domain().data(), static_cast<int>(this->domain().length()),6849::google::protobuf::internal::WireFormat::SERIALIZE,6850"opencv_onnx.OperatorSetIdProto.domain");6851target =6852::google::protobuf::internal::WireFormatLite::WriteStringToArray(68531, this->domain(), target);6854}68556856// optional int64 version = 2;6857if (cached_has_bits & 0x00000002u) {6858target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->version(), target);6859}68606861if (_internal_metadata_.have_unknown_fields()) {6862target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(6863_internal_metadata_.unknown_fields(), target);6864}6865// @@protoc_insertion_point(serialize_to_array_end:opencv_onnx.OperatorSetIdProto)6866return target;6867}68686869size_t OperatorSetIdProto::ByteSizeLong() const {6870// @@protoc_insertion_point(message_byte_size_start:opencv_onnx.OperatorSetIdProto)6871size_t total_size = 0;68726873if (_internal_metadata_.have_unknown_fields()) {6874total_size +=6875::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(6876_internal_metadata_.unknown_fields());6877}6878if (_has_bits_[0 / 32] & 3u) {6879// optional string domain = 1;6880if (has_domain()) {6881total_size += 1 +6882::google::protobuf::internal::WireFormatLite::StringSize(6883this->domain());6884}68856886// optional int64 version = 2;6887if (has_version()) {6888total_size += 1 +6889::google::protobuf::internal::WireFormatLite::Int64Size(6890this->version());6891}68926893}6894int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);6895GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();6896_cached_size_ = cached_size;6897GOOGLE_SAFE_CONCURRENT_WRITES_END();6898return total_size;6899}69006901void OperatorSetIdProto::MergeFrom(const ::google::protobuf::Message& from) {6902// @@protoc_insertion_point(generalized_merge_from_start:opencv_onnx.OperatorSetIdProto)6903GOOGLE_DCHECK_NE(&from, this);6904const OperatorSetIdProto* source =6905::google::protobuf::internal::DynamicCastToGenerated<const OperatorSetIdProto>(6906&from);6907if (source == NULL) {6908// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_onnx.OperatorSetIdProto)6909::google::protobuf::internal::ReflectionOps::Merge(from, this);6910} else {6911// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_onnx.OperatorSetIdProto)6912MergeFrom(*source);6913}6914}69156916void OperatorSetIdProto::MergeFrom(const OperatorSetIdProto& from) {6917// @@protoc_insertion_point(class_specific_merge_from_start:opencv_onnx.OperatorSetIdProto)6918GOOGLE_DCHECK_NE(&from, this);6919_internal_metadata_.MergeFrom(from._internal_metadata_);6920::google::protobuf::uint32 cached_has_bits = 0;6921(void) cached_has_bits;69226923cached_has_bits = from._has_bits_[0];6924if (cached_has_bits & 3u) {6925if (cached_has_bits & 0x00000001u) {6926set_has_domain();6927domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_);6928}6929if (cached_has_bits & 0x00000002u) {6930version_ = from.version_;6931}6932_has_bits_[0] |= cached_has_bits;6933}6934}69356936void OperatorSetIdProto::CopyFrom(const ::google::protobuf::Message& from) {6937// @@protoc_insertion_point(generalized_copy_from_start:opencv_onnx.OperatorSetIdProto)6938if (&from == this) return;6939Clear();6940MergeFrom(from);6941}69426943void OperatorSetIdProto::CopyFrom(const OperatorSetIdProto& from) {6944// @@protoc_insertion_point(class_specific_copy_from_start:opencv_onnx.OperatorSetIdProto)6945if (&from == this) return;6946Clear();6947MergeFrom(from);6948}69496950bool OperatorSetIdProto::IsInitialized() const {6951return true;6952}69536954void OperatorSetIdProto::Swap(OperatorSetIdProto* other) {6955if (other == this) return;6956InternalSwap(other);6957}6958void OperatorSetIdProto::InternalSwap(OperatorSetIdProto* other) {6959using std::swap;6960domain_.Swap(&other->domain_);6961swap(version_, other->version_);6962swap(_has_bits_[0], other->_has_bits_[0]);6963_internal_metadata_.Swap(&other->_internal_metadata_);6964swap(_cached_size_, other->_cached_size_);6965}69666967::google::protobuf::Metadata OperatorSetIdProto::GetMetadata() const {6968protobuf_opencv_2donnx_2eproto::protobuf_AssignDescriptorsOnce();6969return ::protobuf_opencv_2donnx_2eproto::file_level_metadata[kIndexInFileMessages];6970}697169726973// @@protoc_insertion_point(namespace_scope)6974} // namespace opencv_onnx69756976// @@protoc_insertion_point(global_scope)697769786979