Path: blob/master/modules/dnn/misc/tensorflow/function.pb.cc
16358 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: function.proto23#include "function.pb.h"45#include <algorithm>67#include <google/protobuf/stubs/common.h>8#include <google/protobuf/stubs/port.h>9#include <google/protobuf/stubs/once.h>10#include <google/protobuf/io/coded_stream.h>11#include <google/protobuf/wire_format_lite_inl.h>12#include <google/protobuf/descriptor.h>13#include <google/protobuf/generated_message_reflection.h>14#include <google/protobuf/reflection_ops.h>15#include <google/protobuf/wire_format.h>16// This is a temporary google only hack17#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS18#include "third_party/protobuf/version.h"19#endif20// @@protoc_insertion_point(includes)21namespace opencv_tensorflow {22class FunctionDefLibraryDefaultTypeInternal {23public:24::google::protobuf::internal::ExplicitlyConstructed<FunctionDefLibrary>25_instance;26} _FunctionDefLibrary_default_instance_;27class FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal {28public:29::google::protobuf::internal::ExplicitlyConstructed<FunctionDef_Node_AttrEntry_DoNotUse>30_instance;31} _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;32class FunctionDef_NodeDefaultTypeInternal {33public:34::google::protobuf::internal::ExplicitlyConstructed<FunctionDef_Node>35_instance;36} _FunctionDef_Node_default_instance_;37class FunctionDefDefaultTypeInternal {38public:39::google::protobuf::internal::ExplicitlyConstructed<FunctionDef>40_instance;41} _FunctionDef_default_instance_;42class GradientDefDefaultTypeInternal {43public:44::google::protobuf::internal::ExplicitlyConstructed<GradientDef>45_instance;46} _GradientDef_default_instance_;47} // namespace opencv_tensorflow48namespace protobuf_function_2eproto {49void InitDefaultsFunctionDefLibraryImpl() {50GOOGLE_PROTOBUF_VERIFY_VERSION;5152#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS53::google::protobuf::internal::InitProtobufDefaultsForceUnique();54#else55::google::protobuf::internal::InitProtobufDefaults();56#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS57protobuf_function_2eproto::InitDefaultsFunctionDef();58protobuf_function_2eproto::InitDefaultsGradientDef();59{60void* ptr = &::opencv_tensorflow::_FunctionDefLibrary_default_instance_;61new (ptr) ::opencv_tensorflow::FunctionDefLibrary();62::google::protobuf::internal::OnShutdownDestroyMessage(ptr);63}64::opencv_tensorflow::FunctionDefLibrary::InitAsDefaultInstance();65}6667void InitDefaultsFunctionDefLibrary() {68static GOOGLE_PROTOBUF_DECLARE_ONCE(once);69::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDefLibraryImpl);70}7172void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl() {73GOOGLE_PROTOBUF_VERIFY_VERSION;7475#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS76::google::protobuf::internal::InitProtobufDefaultsForceUnique();77#else78::google::protobuf::internal::InitProtobufDefaults();79#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS80protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();81{82void* ptr = &::opencv_tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;83new (ptr) ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse();84}85::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse::InitAsDefaultInstance();86}8788void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse() {89static GOOGLE_PROTOBUF_DECLARE_ONCE(once);90::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl);91}9293void InitDefaultsFunctionDef_NodeImpl() {94GOOGLE_PROTOBUF_VERIFY_VERSION;9596#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS97::google::protobuf::internal::InitProtobufDefaultsForceUnique();98#else99::google::protobuf::internal::InitProtobufDefaults();100#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS101protobuf_function_2eproto::InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse();102{103void* ptr = &::opencv_tensorflow::_FunctionDef_Node_default_instance_;104new (ptr) ::opencv_tensorflow::FunctionDef_Node();105::google::protobuf::internal::OnShutdownDestroyMessage(ptr);106}107::opencv_tensorflow::FunctionDef_Node::InitAsDefaultInstance();108}109110void InitDefaultsFunctionDef_Node() {111static GOOGLE_PROTOBUF_DECLARE_ONCE(once);112::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDef_NodeImpl);113}114115void InitDefaultsFunctionDefImpl() {116GOOGLE_PROTOBUF_VERIFY_VERSION;117118#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS119::google::protobuf::internal::InitProtobufDefaultsForceUnique();120#else121::google::protobuf::internal::InitProtobufDefaults();122#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS123protobuf_op_5fdef_2eproto::InitDefaultsOpDef();124protobuf_function_2eproto::InitDefaultsFunctionDef_Node();125{126void* ptr = &::opencv_tensorflow::_FunctionDef_default_instance_;127new (ptr) ::opencv_tensorflow::FunctionDef();128::google::protobuf::internal::OnShutdownDestroyMessage(ptr);129}130::opencv_tensorflow::FunctionDef::InitAsDefaultInstance();131}132133void InitDefaultsFunctionDef() {134static GOOGLE_PROTOBUF_DECLARE_ONCE(once);135::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDefImpl);136}137138void InitDefaultsGradientDefImpl() {139GOOGLE_PROTOBUF_VERIFY_VERSION;140141#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS142::google::protobuf::internal::InitProtobufDefaultsForceUnique();143#else144::google::protobuf::internal::InitProtobufDefaults();145#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS146{147void* ptr = &::opencv_tensorflow::_GradientDef_default_instance_;148new (ptr) ::opencv_tensorflow::GradientDef();149::google::protobuf::internal::OnShutdownDestroyMessage(ptr);150}151::opencv_tensorflow::GradientDef::InitAsDefaultInstance();152}153154void InitDefaultsGradientDef() {155static GOOGLE_PROTOBUF_DECLARE_ONCE(once);156::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGradientDefImpl);157}158159::google::protobuf::Metadata file_level_metadata[5];160161const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {162~0u, // no _has_bits_163GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, _internal_metadata_),164~0u, // no _extensions_165~0u, // no _oneof_case_166~0u, // no _weak_field_map_167GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, function_),168GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, gradient_),169GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _has_bits_),170GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _internal_metadata_),171~0u, // no _extensions_172~0u, // no _oneof_case_173~0u, // no _weak_field_map_174GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, key_),175GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, value_),1760,1771,178~0u, // no _has_bits_179GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, _internal_metadata_),180~0u, // no _extensions_181~0u, // no _oneof_case_182~0u, // no _weak_field_map_183GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, ret_),184GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, op_),185GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, arg_),186GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, dep_),187GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, attr_),188~0u, // no _has_bits_189GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, _internal_metadata_),190~0u, // no _extensions_191~0u, // no _oneof_case_192~0u, // no _weak_field_map_193GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, signature_),194GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, node_),195~0u, // no _has_bits_196GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GradientDef, _internal_metadata_),197~0u, // no _extensions_198~0u, // no _oneof_case_199~0u, // no _weak_field_map_200GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GradientDef, function_name_),201GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GradientDef, gradient_func_),202};203static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {204{ 0, -1, sizeof(::opencv_tensorflow::FunctionDefLibrary)},205{ 7, 14, sizeof(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse)},206{ 16, -1, sizeof(::opencv_tensorflow::FunctionDef_Node)},207{ 26, -1, sizeof(::opencv_tensorflow::FunctionDef)},208{ 33, -1, sizeof(::opencv_tensorflow::GradientDef)},209};210211static ::google::protobuf::Message const * const file_default_instances[] = {212reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_FunctionDefLibrary_default_instance_),213reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_),214reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_FunctionDef_Node_default_instance_),215reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_FunctionDef_default_instance_),216reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_GradientDef_default_instance_),217};218219void protobuf_AssignDescriptors() {220AddDescriptors();221::google::protobuf::MessageFactory* factory = NULL;222AssignDescriptors(223"function.proto", schemas, file_default_instances, TableStruct::offsets, factory,224file_level_metadata, NULL, NULL);225}226227void protobuf_AssignDescriptorsOnce() {228static GOOGLE_PROTOBUF_DECLARE_ONCE(once);229::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);230}231232void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;233void protobuf_RegisterTypes(const ::std::string&) {234protobuf_AssignDescriptorsOnce();235::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);236}237238void AddDescriptorsImpl() {239InitDefaults();240static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {241"\n\016function.proto\022\021opencv_tensorflow\032\020att"242"r_value.proto\032\014op_def.proto\"x\n\022FunctionD"243"efLibrary\0220\n\010function\030\001 \003(\0132\036.opencv_ten"244"sorflow.FunctionDef\0220\n\010gradient\030\002 \003(\0132\036."245"opencv_tensorflow.GradientDef\"\261\002\n\013Functi"246"onDef\022+\n\tsignature\030\001 \001(\0132\030.opencv_tensor"247"flow.OpDef\0221\n\004node\030\002 \003(\0132#.opencv_tensor"248"flow.FunctionDef.Node\032\301\001\n\004Node\022\013\n\003ret\030\001 "249"\003(\t\022\n\n\002op\030\002 \001(\t\022\013\n\003arg\030\003 \003(\t\022\013\n\003dep\030\004 \003("250"\t\022;\n\004attr\030\005 \003(\0132-.opencv_tensorflow.Func"251"tionDef.Node.AttrEntry\032I\n\tAttrEntry\022\013\n\003k"252"ey\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tensorf"253"low.AttrValue:\0028\001\";\n\013GradientDef\022\025\n\rfunc"254"tion_name\030\001 \001(\t\022\025\n\rgradient_func\030\002 \001(\tB/"255"\n\030org.tensorflow.frameworkB\016FunctionProt"256"osP\001\370\001\001b\006proto3"257};258::google::protobuf::DescriptorPool::InternalAddGeneratedFile(259descriptor, 615);260::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(261"function.proto", &protobuf_RegisterTypes);262::protobuf_attr_5fvalue_2eproto::AddDescriptors();263::protobuf_op_5fdef_2eproto::AddDescriptors();264}265266void AddDescriptors() {267static GOOGLE_PROTOBUF_DECLARE_ONCE(once);268::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);269}270// Force AddDescriptors() to be called at dynamic initialization time.271struct StaticDescriptorInitializer {272StaticDescriptorInitializer() {273AddDescriptors();274}275} static_descriptor_initializer;276} // namespace protobuf_function_2eproto277namespace opencv_tensorflow {278279// ===================================================================280281void FunctionDefLibrary::InitAsDefaultInstance() {282}283#if !defined(_MSC_VER) || _MSC_VER >= 1900284const int FunctionDefLibrary::kFunctionFieldNumber;285const int FunctionDefLibrary::kGradientFieldNumber;286#endif // !defined(_MSC_VER) || _MSC_VER >= 1900287288FunctionDefLibrary::FunctionDefLibrary()289: ::google::protobuf::Message(), _internal_metadata_(NULL) {290if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {291::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary();292}293SharedCtor();294// @@protoc_insertion_point(constructor:opencv_tensorflow.FunctionDefLibrary)295}296FunctionDefLibrary::FunctionDefLibrary(::google::protobuf::Arena* arena)297: ::google::protobuf::Message(),298_internal_metadata_(arena),299function_(arena),300gradient_(arena) {301::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary();302SharedCtor();303RegisterArenaDtor(arena);304// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDefLibrary)305}306FunctionDefLibrary::FunctionDefLibrary(const FunctionDefLibrary& from)307: ::google::protobuf::Message(),308_internal_metadata_(NULL),309function_(from.function_),310gradient_(from.gradient_),311_cached_size_(0) {312_internal_metadata_.MergeFrom(from._internal_metadata_);313// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDefLibrary)314}315316void FunctionDefLibrary::SharedCtor() {317_cached_size_ = 0;318}319320FunctionDefLibrary::~FunctionDefLibrary() {321// @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDefLibrary)322SharedDtor();323}324325void FunctionDefLibrary::SharedDtor() {326GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);327}328329void FunctionDefLibrary::ArenaDtor(void* object) {330FunctionDefLibrary* _this = reinterpret_cast< FunctionDefLibrary* >(object);331(void)_this;332}333void FunctionDefLibrary::RegisterArenaDtor(::google::protobuf::Arena* arena) {334}335void FunctionDefLibrary::SetCachedSize(int size) const {336GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();337_cached_size_ = size;338GOOGLE_SAFE_CONCURRENT_WRITES_END();339}340const ::google::protobuf::Descriptor* FunctionDefLibrary::descriptor() {341::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();342return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;343}344345const FunctionDefLibrary& FunctionDefLibrary::default_instance() {346::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary();347return *internal_default_instance();348}349350FunctionDefLibrary* FunctionDefLibrary::New(::google::protobuf::Arena* arena) const {351return ::google::protobuf::Arena::CreateMessage<FunctionDefLibrary>(arena);352}353354void FunctionDefLibrary::Clear() {355// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDefLibrary)356::google::protobuf::uint32 cached_has_bits = 0;357// Prevent compiler warnings about cached_has_bits being unused358(void) cached_has_bits;359360function_.Clear();361gradient_.Clear();362_internal_metadata_.Clear();363}364365bool FunctionDefLibrary::MergePartialFromCodedStream(366::google::protobuf::io::CodedInputStream* input) {367#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure368::google::protobuf::uint32 tag;369// @@protoc_insertion_point(parse_start:opencv_tensorflow.FunctionDefLibrary)370for (;;) {371::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);372tag = p.first;373if (!p.second) goto handle_unusual;374switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {375// repeated .opencv_tensorflow.FunctionDef function = 1;376case 1: {377if (static_cast< ::google::protobuf::uint8>(tag) ==378static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {379DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_function()));380} else {381goto handle_unusual;382}383break;384}385386// repeated .opencv_tensorflow.GradientDef gradient = 2;387case 2: {388if (static_cast< ::google::protobuf::uint8>(tag) ==389static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {390DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_gradient()));391} else {392goto handle_unusual;393}394break;395}396397default: {398handle_unusual:399if (tag == 0) {400goto success;401}402DO_(::google::protobuf::internal::WireFormat::SkipField(403input, tag, _internal_metadata_.mutable_unknown_fields()));404break;405}406}407}408success:409// @@protoc_insertion_point(parse_success:opencv_tensorflow.FunctionDefLibrary)410return true;411failure:412// @@protoc_insertion_point(parse_failure:opencv_tensorflow.FunctionDefLibrary)413return false;414#undef DO_415}416417void FunctionDefLibrary::SerializeWithCachedSizes(418::google::protobuf::io::CodedOutputStream* output) const {419// @@protoc_insertion_point(serialize_start:opencv_tensorflow.FunctionDefLibrary)420::google::protobuf::uint32 cached_has_bits = 0;421(void) cached_has_bits;422423// repeated .opencv_tensorflow.FunctionDef function = 1;424for (unsigned int i = 0,425n = static_cast<unsigned int>(this->function_size()); i < n; i++) {426::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4271, this->function(static_cast<int>(i)), output);428}429430// repeated .opencv_tensorflow.GradientDef gradient = 2;431for (unsigned int i = 0,432n = static_cast<unsigned int>(this->gradient_size()); i < n; i++) {433::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4342, this->gradient(static_cast<int>(i)), output);435}436437if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {438::google::protobuf::internal::WireFormat::SerializeUnknownFields(439(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);440}441// @@protoc_insertion_point(serialize_end:opencv_tensorflow.FunctionDefLibrary)442}443444::google::protobuf::uint8* FunctionDefLibrary::InternalSerializeWithCachedSizesToArray(445bool deterministic, ::google::protobuf::uint8* target) const {446(void)deterministic; // Unused447// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDefLibrary)448::google::protobuf::uint32 cached_has_bits = 0;449(void) cached_has_bits;450451// repeated .opencv_tensorflow.FunctionDef function = 1;452for (unsigned int i = 0,453n = static_cast<unsigned int>(this->function_size()); i < n; i++) {454target = ::google::protobuf::internal::WireFormatLite::455InternalWriteMessageToArray(4561, this->function(static_cast<int>(i)), deterministic, target);457}458459// repeated .opencv_tensorflow.GradientDef gradient = 2;460for (unsigned int i = 0,461n = static_cast<unsigned int>(this->gradient_size()); i < n; i++) {462target = ::google::protobuf::internal::WireFormatLite::463InternalWriteMessageToArray(4642, this->gradient(static_cast<int>(i)), deterministic, target);465}466467if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {468target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(469(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);470}471// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDefLibrary)472return target;473}474475size_t FunctionDefLibrary::ByteSizeLong() const {476// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDefLibrary)477size_t total_size = 0;478479if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {480total_size +=481::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(482(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));483}484// repeated .opencv_tensorflow.FunctionDef function = 1;485{486unsigned int count = static_cast<unsigned int>(this->function_size());487total_size += 1UL * count;488for (unsigned int i = 0; i < count; i++) {489total_size +=490::google::protobuf::internal::WireFormatLite::MessageSize(491this->function(static_cast<int>(i)));492}493}494495// repeated .opencv_tensorflow.GradientDef gradient = 2;496{497unsigned int count = static_cast<unsigned int>(this->gradient_size());498total_size += 1UL * count;499for (unsigned int i = 0; i < count; i++) {500total_size +=501::google::protobuf::internal::WireFormatLite::MessageSize(502this->gradient(static_cast<int>(i)));503}504}505506int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);507GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();508_cached_size_ = cached_size;509GOOGLE_SAFE_CONCURRENT_WRITES_END();510return total_size;511}512513void FunctionDefLibrary::MergeFrom(const ::google::protobuf::Message& from) {514// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.FunctionDefLibrary)515GOOGLE_DCHECK_NE(&from, this);516const FunctionDefLibrary* source =517::google::protobuf::internal::DynamicCastToGenerated<const FunctionDefLibrary>(518&from);519if (source == NULL) {520// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.FunctionDefLibrary)521::google::protobuf::internal::ReflectionOps::Merge(from, this);522} else {523// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.FunctionDefLibrary)524MergeFrom(*source);525}526}527528void FunctionDefLibrary::MergeFrom(const FunctionDefLibrary& from) {529// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDefLibrary)530GOOGLE_DCHECK_NE(&from, this);531_internal_metadata_.MergeFrom(from._internal_metadata_);532::google::protobuf::uint32 cached_has_bits = 0;533(void) cached_has_bits;534535function_.MergeFrom(from.function_);536gradient_.MergeFrom(from.gradient_);537}538539void FunctionDefLibrary::CopyFrom(const ::google::protobuf::Message& from) {540// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.FunctionDefLibrary)541if (&from == this) return;542Clear();543MergeFrom(from);544}545546void FunctionDefLibrary::CopyFrom(const FunctionDefLibrary& from) {547// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDefLibrary)548if (&from == this) return;549Clear();550MergeFrom(from);551}552553bool FunctionDefLibrary::IsInitialized() const {554return true;555}556557void FunctionDefLibrary::Swap(FunctionDefLibrary* other) {558if (other == this) return;559if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {560InternalSwap(other);561} else {562FunctionDefLibrary* temp = New(GetArenaNoVirtual());563temp->MergeFrom(*other);564other->CopyFrom(*this);565InternalSwap(temp);566if (GetArenaNoVirtual() == NULL) {567delete temp;568}569}570}571void FunctionDefLibrary::UnsafeArenaSwap(FunctionDefLibrary* other) {572if (other == this) return;573GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());574InternalSwap(other);575}576void FunctionDefLibrary::InternalSwap(FunctionDefLibrary* other) {577using std::swap;578function_.InternalSwap(&other->function_);579gradient_.InternalSwap(&other->gradient_);580_internal_metadata_.Swap(&other->_internal_metadata_);581swap(_cached_size_, other->_cached_size_);582}583584::google::protobuf::Metadata FunctionDefLibrary::GetMetadata() const {585protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();586return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages];587}588589590// ===================================================================591592FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse() {}593FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}594void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other) {595MergeFromInternal(other);596}597::google::protobuf::Metadata FunctionDef_Node_AttrEntry_DoNotUse::GetMetadata() const {598::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();599return ::protobuf_function_2eproto::file_level_metadata[1];600}601void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom(602const ::google::protobuf::Message& other) {603::google::protobuf::Message::MergeFrom(other);604}605606607// ===================================================================608609void FunctionDef_Node::InitAsDefaultInstance() {610}611void FunctionDef_Node::clear_attr() {612attr_.Clear();613}614#if !defined(_MSC_VER) || _MSC_VER >= 1900615const int FunctionDef_Node::kRetFieldNumber;616const int FunctionDef_Node::kOpFieldNumber;617const int FunctionDef_Node::kArgFieldNumber;618const int FunctionDef_Node::kDepFieldNumber;619const int FunctionDef_Node::kAttrFieldNumber;620#endif // !defined(_MSC_VER) || _MSC_VER >= 1900621622FunctionDef_Node::FunctionDef_Node()623: ::google::protobuf::Message(), _internal_metadata_(NULL) {624if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {625::protobuf_function_2eproto::InitDefaultsFunctionDef_Node();626}627SharedCtor();628// @@protoc_insertion_point(constructor:opencv_tensorflow.FunctionDef.Node)629}630FunctionDef_Node::FunctionDef_Node(::google::protobuf::Arena* arena)631: ::google::protobuf::Message(),632_internal_metadata_(arena),633ret_(arena),634arg_(arena),635dep_(arena),636attr_(arena) {637::protobuf_function_2eproto::InitDefaultsFunctionDef_Node();638SharedCtor();639RegisterArenaDtor(arena);640// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef.Node)641}642FunctionDef_Node::FunctionDef_Node(const FunctionDef_Node& from)643: ::google::protobuf::Message(),644_internal_metadata_(NULL),645ret_(from.ret_),646arg_(from.arg_),647dep_(from.dep_),648_cached_size_(0) {649_internal_metadata_.MergeFrom(from._internal_metadata_);650attr_.MergeFrom(from.attr_);651op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());652if (from.op().size() > 0) {653op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op(),654GetArenaNoVirtual());655}656// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef.Node)657}658659void FunctionDef_Node::SharedCtor() {660op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());661_cached_size_ = 0;662}663664FunctionDef_Node::~FunctionDef_Node() {665// @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef.Node)666SharedDtor();667}668669void FunctionDef_Node::SharedDtor() {670GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);671op_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());672}673674void FunctionDef_Node::ArenaDtor(void* object) {675FunctionDef_Node* _this = reinterpret_cast< FunctionDef_Node* >(object);676(void)_this;677}678void FunctionDef_Node::RegisterArenaDtor(::google::protobuf::Arena* arena) {679}680void FunctionDef_Node::SetCachedSize(int size) const {681GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();682_cached_size_ = size;683GOOGLE_SAFE_CONCURRENT_WRITES_END();684}685const ::google::protobuf::Descriptor* FunctionDef_Node::descriptor() {686::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();687return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;688}689690const FunctionDef_Node& FunctionDef_Node::default_instance() {691::protobuf_function_2eproto::InitDefaultsFunctionDef_Node();692return *internal_default_instance();693}694695FunctionDef_Node* FunctionDef_Node::New(::google::protobuf::Arena* arena) const {696return ::google::protobuf::Arena::CreateMessage<FunctionDef_Node>(arena);697}698699void FunctionDef_Node::Clear() {700// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef.Node)701::google::protobuf::uint32 cached_has_bits = 0;702// Prevent compiler warnings about cached_has_bits being unused703(void) cached_has_bits;704705ret_.Clear();706arg_.Clear();707dep_.Clear();708attr_.Clear();709op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());710_internal_metadata_.Clear();711}712713bool FunctionDef_Node::MergePartialFromCodedStream(714::google::protobuf::io::CodedInputStream* input) {715#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure716::google::protobuf::uint32 tag;717// @@protoc_insertion_point(parse_start:opencv_tensorflow.FunctionDef.Node)718for (;;) {719::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);720tag = p.first;721if (!p.second) goto handle_unusual;722switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {723// repeated string ret = 1;724case 1: {725if (static_cast< ::google::protobuf::uint8>(tag) ==726static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {727DO_(::google::protobuf::internal::WireFormatLite::ReadString(728input, this->add_ret()));729DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(730this->ret(this->ret_size() - 1).data(),731static_cast<int>(this->ret(this->ret_size() - 1).length()),732::google::protobuf::internal::WireFormatLite::PARSE,733"opencv_tensorflow.FunctionDef.Node.ret"));734} else {735goto handle_unusual;736}737break;738}739740// string op = 2;741case 2: {742if (static_cast< ::google::protobuf::uint8>(tag) ==743static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {744DO_(::google::protobuf::internal::WireFormatLite::ReadString(745input, this->mutable_op()));746DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(747this->op().data(), static_cast<int>(this->op().length()),748::google::protobuf::internal::WireFormatLite::PARSE,749"opencv_tensorflow.FunctionDef.Node.op"));750} else {751goto handle_unusual;752}753break;754}755756// repeated string arg = 3;757case 3: {758if (static_cast< ::google::protobuf::uint8>(tag) ==759static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {760DO_(::google::protobuf::internal::WireFormatLite::ReadString(761input, this->add_arg()));762DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(763this->arg(this->arg_size() - 1).data(),764static_cast<int>(this->arg(this->arg_size() - 1).length()),765::google::protobuf::internal::WireFormatLite::PARSE,766"opencv_tensorflow.FunctionDef.Node.arg"));767} else {768goto handle_unusual;769}770break;771}772773// repeated string dep = 4;774case 4: {775if (static_cast< ::google::protobuf::uint8>(tag) ==776static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {777DO_(::google::protobuf::internal::WireFormatLite::ReadString(778input, this->add_dep()));779DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(780this->dep(this->dep_size() - 1).data(),781static_cast<int>(this->dep(this->dep_size() - 1).length()),782::google::protobuf::internal::WireFormatLite::PARSE,783"opencv_tensorflow.FunctionDef.Node.dep"));784} else {785goto handle_unusual;786}787break;788}789790// map<string, .opencv_tensorflow.AttrValue> attr = 5;791case 5: {792if (static_cast< ::google::protobuf::uint8>(tag) ==793static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {794FunctionDef_Node_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<795FunctionDef_Node_AttrEntry_DoNotUse,796::std::string, ::opencv_tensorflow::AttrValue,797::google::protobuf::internal::WireFormatLite::TYPE_STRING,798::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,7990 >,800::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue > > parser(&attr_);801DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(802input, &parser));803DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(804parser.key().data(), static_cast<int>(parser.key().length()),805::google::protobuf::internal::WireFormatLite::PARSE,806"opencv_tensorflow.FunctionDef.Node.AttrEntry.key"));807} else {808goto handle_unusual;809}810break;811}812813default: {814handle_unusual:815if (tag == 0) {816goto success;817}818DO_(::google::protobuf::internal::WireFormat::SkipField(819input, tag, _internal_metadata_.mutable_unknown_fields()));820break;821}822}823}824success:825// @@protoc_insertion_point(parse_success:opencv_tensorflow.FunctionDef.Node)826return true;827failure:828// @@protoc_insertion_point(parse_failure:opencv_tensorflow.FunctionDef.Node)829return false;830#undef DO_831}832833void FunctionDef_Node::SerializeWithCachedSizes(834::google::protobuf::io::CodedOutputStream* output) const {835// @@protoc_insertion_point(serialize_start:opencv_tensorflow.FunctionDef.Node)836::google::protobuf::uint32 cached_has_bits = 0;837(void) cached_has_bits;838839// repeated string ret = 1;840for (int i = 0, n = this->ret_size(); i < n; i++) {841::google::protobuf::internal::WireFormatLite::VerifyUtf8String(842this->ret(i).data(), static_cast<int>(this->ret(i).length()),843::google::protobuf::internal::WireFormatLite::SERIALIZE,844"opencv_tensorflow.FunctionDef.Node.ret");845::google::protobuf::internal::WireFormatLite::WriteString(8461, this->ret(i), output);847}848849// string op = 2;850if (this->op().size() > 0) {851::google::protobuf::internal::WireFormatLite::VerifyUtf8String(852this->op().data(), static_cast<int>(this->op().length()),853::google::protobuf::internal::WireFormatLite::SERIALIZE,854"opencv_tensorflow.FunctionDef.Node.op");855::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(8562, this->op(), output);857}858859// repeated string arg = 3;860for (int i = 0, n = this->arg_size(); i < n; i++) {861::google::protobuf::internal::WireFormatLite::VerifyUtf8String(862this->arg(i).data(), static_cast<int>(this->arg(i).length()),863::google::protobuf::internal::WireFormatLite::SERIALIZE,864"opencv_tensorflow.FunctionDef.Node.arg");865::google::protobuf::internal::WireFormatLite::WriteString(8663, this->arg(i), output);867}868869// repeated string dep = 4;870for (int i = 0, n = this->dep_size(); i < n; i++) {871::google::protobuf::internal::WireFormatLite::VerifyUtf8String(872this->dep(i).data(), static_cast<int>(this->dep(i).length()),873::google::protobuf::internal::WireFormatLite::SERIALIZE,874"opencv_tensorflow.FunctionDef.Node.dep");875::google::protobuf::internal::WireFormatLite::WriteString(8764, this->dep(i), output);877}878879// map<string, .opencv_tensorflow.AttrValue> attr = 5;880if (!this->attr().empty()) {881typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer882ConstPtr;883typedef ConstPtr SortItem;884typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;885struct Utf8Check {886static void Check(ConstPtr p) {887::google::protobuf::internal::WireFormatLite::VerifyUtf8String(888p->first.data(), static_cast<int>(p->first.length()),889::google::protobuf::internal::WireFormatLite::SERIALIZE,890"opencv_tensorflow.FunctionDef.Node.AttrEntry.key");891}892};893894if (output->IsSerializationDeterministic() &&895this->attr().size() > 1) {896::google::protobuf::scoped_array<SortItem> items(897new SortItem[this->attr().size()]);898typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;899size_type n = 0;900for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator901it = this->attr().begin();902it != this->attr().end(); ++it, ++n) {903items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);904}905::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());906::google::protobuf::scoped_ptr<FunctionDef_Node_AttrEntry_DoNotUse> entry;907for (size_type i = 0; i < n; i++) {908entry.reset(attr_.NewEntryWrapper(909items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));910::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(9115, *entry, output);912if (entry->GetArena() != NULL) {913entry.release();914}915Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);916}917} else {918::google::protobuf::scoped_ptr<FunctionDef_Node_AttrEntry_DoNotUse> entry;919for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator920it = this->attr().begin();921it != this->attr().end(); ++it) {922entry.reset(attr_.NewEntryWrapper(923it->first, it->second));924::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(9255, *entry, output);926if (entry->GetArena() != NULL) {927entry.release();928}929Utf8Check::Check(&*it);930}931}932}933934if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {935::google::protobuf::internal::WireFormat::SerializeUnknownFields(936(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);937}938// @@protoc_insertion_point(serialize_end:opencv_tensorflow.FunctionDef.Node)939}940941::google::protobuf::uint8* FunctionDef_Node::InternalSerializeWithCachedSizesToArray(942bool deterministic, ::google::protobuf::uint8* target) const {943(void)deterministic; // Unused944// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef.Node)945::google::protobuf::uint32 cached_has_bits = 0;946(void) cached_has_bits;947948// repeated string ret = 1;949for (int i = 0, n = this->ret_size(); i < n; i++) {950::google::protobuf::internal::WireFormatLite::VerifyUtf8String(951this->ret(i).data(), static_cast<int>(this->ret(i).length()),952::google::protobuf::internal::WireFormatLite::SERIALIZE,953"opencv_tensorflow.FunctionDef.Node.ret");954target = ::google::protobuf::internal::WireFormatLite::955WriteStringToArray(1, this->ret(i), target);956}957958// string op = 2;959if (this->op().size() > 0) {960::google::protobuf::internal::WireFormatLite::VerifyUtf8String(961this->op().data(), static_cast<int>(this->op().length()),962::google::protobuf::internal::WireFormatLite::SERIALIZE,963"opencv_tensorflow.FunctionDef.Node.op");964target =965::google::protobuf::internal::WireFormatLite::WriteStringToArray(9662, this->op(), target);967}968969// repeated string arg = 3;970for (int i = 0, n = this->arg_size(); i < n; i++) {971::google::protobuf::internal::WireFormatLite::VerifyUtf8String(972this->arg(i).data(), static_cast<int>(this->arg(i).length()),973::google::protobuf::internal::WireFormatLite::SERIALIZE,974"opencv_tensorflow.FunctionDef.Node.arg");975target = ::google::protobuf::internal::WireFormatLite::976WriteStringToArray(3, this->arg(i), target);977}978979// repeated string dep = 4;980for (int i = 0, n = this->dep_size(); i < n; i++) {981::google::protobuf::internal::WireFormatLite::VerifyUtf8String(982this->dep(i).data(), static_cast<int>(this->dep(i).length()),983::google::protobuf::internal::WireFormatLite::SERIALIZE,984"opencv_tensorflow.FunctionDef.Node.dep");985target = ::google::protobuf::internal::WireFormatLite::986WriteStringToArray(4, this->dep(i), target);987}988989// map<string, .opencv_tensorflow.AttrValue> attr = 5;990if (!this->attr().empty()) {991typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer992ConstPtr;993typedef ConstPtr SortItem;994typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;995struct Utf8Check {996static void Check(ConstPtr p) {997::google::protobuf::internal::WireFormatLite::VerifyUtf8String(998p->first.data(), static_cast<int>(p->first.length()),999::google::protobuf::internal::WireFormatLite::SERIALIZE,1000"opencv_tensorflow.FunctionDef.Node.AttrEntry.key");1001}1002};10031004if (deterministic &&1005this->attr().size() > 1) {1006::google::protobuf::scoped_array<SortItem> items(1007new SortItem[this->attr().size()]);1008typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;1009size_type n = 0;1010for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1011it = this->attr().begin();1012it != this->attr().end(); ++it, ++n) {1013items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);1014}1015::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());1016::google::protobuf::scoped_ptr<FunctionDef_Node_AttrEntry_DoNotUse> entry;1017for (size_type i = 0; i < n; i++) {1018entry.reset(attr_.NewEntryWrapper(1019items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));1020target = ::google::protobuf::internal::WireFormatLite::1021InternalWriteMessageNoVirtualToArray(10225, *entry, deterministic, target);1023;1024if (entry->GetArena() != NULL) {1025entry.release();1026}1027Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);1028}1029} else {1030::google::protobuf::scoped_ptr<FunctionDef_Node_AttrEntry_DoNotUse> entry;1031for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1032it = this->attr().begin();1033it != this->attr().end(); ++it) {1034entry.reset(attr_.NewEntryWrapper(1035it->first, it->second));1036target = ::google::protobuf::internal::WireFormatLite::1037InternalWriteMessageNoVirtualToArray(10385, *entry, deterministic, target);1039;1040if (entry->GetArena() != NULL) {1041entry.release();1042}1043Utf8Check::Check(&*it);1044}1045}1046}10471048if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1049target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1050(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);1051}1052// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef.Node)1053return target;1054}10551056size_t FunctionDef_Node::ByteSizeLong() const {1057// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef.Node)1058size_t total_size = 0;10591060if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1061total_size +=1062::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1063(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));1064}1065// repeated string ret = 1;1066total_size += 1 *1067::google::protobuf::internal::FromIntSize(this->ret_size());1068for (int i = 0, n = this->ret_size(); i < n; i++) {1069total_size += ::google::protobuf::internal::WireFormatLite::StringSize(1070this->ret(i));1071}10721073// repeated string arg = 3;1074total_size += 1 *1075::google::protobuf::internal::FromIntSize(this->arg_size());1076for (int i = 0, n = this->arg_size(); i < n; i++) {1077total_size += ::google::protobuf::internal::WireFormatLite::StringSize(1078this->arg(i));1079}10801081// repeated string dep = 4;1082total_size += 1 *1083::google::protobuf::internal::FromIntSize(this->dep_size());1084for (int i = 0, n = this->dep_size(); i < n; i++) {1085total_size += ::google::protobuf::internal::WireFormatLite::StringSize(1086this->dep(i));1087}10881089// map<string, .opencv_tensorflow.AttrValue> attr = 5;1090total_size += 1 *1091::google::protobuf::internal::FromIntSize(this->attr_size());1092{1093::google::protobuf::scoped_ptr<FunctionDef_Node_AttrEntry_DoNotUse> entry;1094for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator1095it = this->attr().begin();1096it != this->attr().end(); ++it) {1097if (entry.get() != NULL && entry->GetArena() != NULL) {1098entry.release();1099}1100entry.reset(attr_.NewEntryWrapper(it->first, it->second));1101total_size += ::google::protobuf::internal::WireFormatLite::1102MessageSizeNoVirtual(*entry);1103}1104if (entry.get() != NULL && entry->GetArena() != NULL) {1105entry.release();1106}1107}11081109// string op = 2;1110if (this->op().size() > 0) {1111total_size += 1 +1112::google::protobuf::internal::WireFormatLite::StringSize(1113this->op());1114}11151116int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1117GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1118_cached_size_ = cached_size;1119GOOGLE_SAFE_CONCURRENT_WRITES_END();1120return total_size;1121}11221123void FunctionDef_Node::MergeFrom(const ::google::protobuf::Message& from) {1124// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.FunctionDef.Node)1125GOOGLE_DCHECK_NE(&from, this);1126const FunctionDef_Node* source =1127::google::protobuf::internal::DynamicCastToGenerated<const FunctionDef_Node>(1128&from);1129if (source == NULL) {1130// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.FunctionDef.Node)1131::google::protobuf::internal::ReflectionOps::Merge(from, this);1132} else {1133// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.FunctionDef.Node)1134MergeFrom(*source);1135}1136}11371138void FunctionDef_Node::MergeFrom(const FunctionDef_Node& from) {1139// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef.Node)1140GOOGLE_DCHECK_NE(&from, this);1141_internal_metadata_.MergeFrom(from._internal_metadata_);1142::google::protobuf::uint32 cached_has_bits = 0;1143(void) cached_has_bits;11441145ret_.MergeFrom(from.ret_);1146arg_.MergeFrom(from.arg_);1147dep_.MergeFrom(from.dep_);1148attr_.MergeFrom(from.attr_);1149if (from.op().size() > 0) {1150set_op(from.op());1151}1152}11531154void FunctionDef_Node::CopyFrom(const ::google::protobuf::Message& from) {1155// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.FunctionDef.Node)1156if (&from == this) return;1157Clear();1158MergeFrom(from);1159}11601161void FunctionDef_Node::CopyFrom(const FunctionDef_Node& from) {1162// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef.Node)1163if (&from == this) return;1164Clear();1165MergeFrom(from);1166}11671168bool FunctionDef_Node::IsInitialized() const {1169return true;1170}11711172void FunctionDef_Node::Swap(FunctionDef_Node* other) {1173if (other == this) return;1174if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {1175InternalSwap(other);1176} else {1177FunctionDef_Node* temp = New(GetArenaNoVirtual());1178temp->MergeFrom(*other);1179other->CopyFrom(*this);1180InternalSwap(temp);1181if (GetArenaNoVirtual() == NULL) {1182delete temp;1183}1184}1185}1186void FunctionDef_Node::UnsafeArenaSwap(FunctionDef_Node* other) {1187if (other == this) return;1188GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());1189InternalSwap(other);1190}1191void FunctionDef_Node::InternalSwap(FunctionDef_Node* other) {1192using std::swap;1193ret_.InternalSwap(&other->ret_);1194arg_.InternalSwap(&other->arg_);1195dep_.InternalSwap(&other->dep_);1196attr_.Swap(&other->attr_);1197op_.Swap(&other->op_);1198_internal_metadata_.Swap(&other->_internal_metadata_);1199swap(_cached_size_, other->_cached_size_);1200}12011202::google::protobuf::Metadata FunctionDef_Node::GetMetadata() const {1203protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();1204return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages];1205}120612071208// ===================================================================12091210void FunctionDef::InitAsDefaultInstance() {1211::opencv_tensorflow::_FunctionDef_default_instance_._instance.get_mutable()->signature_ = const_cast< ::opencv_tensorflow::OpDef*>(1212::opencv_tensorflow::OpDef::internal_default_instance());1213}1214void FunctionDef::_slow_mutable_signature() {1215signature_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::OpDef >(1216GetArenaNoVirtual());1217}1218void FunctionDef::unsafe_arena_set_allocated_signature(1219::opencv_tensorflow::OpDef* signature) {1220if (GetArenaNoVirtual() == NULL) {1221delete signature_;1222}1223signature_ = signature;1224if (signature) {12251226} else {12271228}1229// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.FunctionDef.signature)1230}1231void FunctionDef::clear_signature() {1232if (GetArenaNoVirtual() == NULL && signature_ != NULL) {1233delete signature_;1234}1235signature_ = NULL;1236}1237#if !defined(_MSC_VER) || _MSC_VER >= 19001238const int FunctionDef::kSignatureFieldNumber;1239const int FunctionDef::kNodeFieldNumber;1240#endif // !defined(_MSC_VER) || _MSC_VER >= 190012411242FunctionDef::FunctionDef()1243: ::google::protobuf::Message(), _internal_metadata_(NULL) {1244if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {1245::protobuf_function_2eproto::InitDefaultsFunctionDef();1246}1247SharedCtor();1248// @@protoc_insertion_point(constructor:opencv_tensorflow.FunctionDef)1249}1250FunctionDef::FunctionDef(::google::protobuf::Arena* arena)1251: ::google::protobuf::Message(),1252_internal_metadata_(arena),1253node_(arena) {1254::protobuf_function_2eproto::InitDefaultsFunctionDef();1255SharedCtor();1256RegisterArenaDtor(arena);1257// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef)1258}1259FunctionDef::FunctionDef(const FunctionDef& from)1260: ::google::protobuf::Message(),1261_internal_metadata_(NULL),1262node_(from.node_),1263_cached_size_(0) {1264_internal_metadata_.MergeFrom(from._internal_metadata_);1265if (from.has_signature()) {1266signature_ = new ::opencv_tensorflow::OpDef(*from.signature_);1267} else {1268signature_ = NULL;1269}1270// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef)1271}12721273void FunctionDef::SharedCtor() {1274signature_ = NULL;1275_cached_size_ = 0;1276}12771278FunctionDef::~FunctionDef() {1279// @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef)1280SharedDtor();1281}12821283void FunctionDef::SharedDtor() {1284GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);1285if (this != internal_default_instance()) delete signature_;1286}12871288void FunctionDef::ArenaDtor(void* object) {1289FunctionDef* _this = reinterpret_cast< FunctionDef* >(object);1290(void)_this;1291}1292void FunctionDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {1293}1294void FunctionDef::SetCachedSize(int size) const {1295GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1296_cached_size_ = size;1297GOOGLE_SAFE_CONCURRENT_WRITES_END();1298}1299const ::google::protobuf::Descriptor* FunctionDef::descriptor() {1300::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();1301return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;1302}13031304const FunctionDef& FunctionDef::default_instance() {1305::protobuf_function_2eproto::InitDefaultsFunctionDef();1306return *internal_default_instance();1307}13081309FunctionDef* FunctionDef::New(::google::protobuf::Arena* arena) const {1310return ::google::protobuf::Arena::CreateMessage<FunctionDef>(arena);1311}13121313void FunctionDef::Clear() {1314// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef)1315::google::protobuf::uint32 cached_has_bits = 0;1316// Prevent compiler warnings about cached_has_bits being unused1317(void) cached_has_bits;13181319node_.Clear();1320if (GetArenaNoVirtual() == NULL && signature_ != NULL) {1321delete signature_;1322}1323signature_ = NULL;1324_internal_metadata_.Clear();1325}13261327bool FunctionDef::MergePartialFromCodedStream(1328::google::protobuf::io::CodedInputStream* input) {1329#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure1330::google::protobuf::uint32 tag;1331// @@protoc_insertion_point(parse_start:opencv_tensorflow.FunctionDef)1332for (;;) {1333::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);1334tag = p.first;1335if (!p.second) goto handle_unusual;1336switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {1337// .opencv_tensorflow.OpDef signature = 1;1338case 1: {1339if (static_cast< ::google::protobuf::uint8>(tag) ==1340static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {1341DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(1342input, mutable_signature()));1343} else {1344goto handle_unusual;1345}1346break;1347}13481349// repeated .opencv_tensorflow.FunctionDef.Node node = 2;1350case 2: {1351if (static_cast< ::google::protobuf::uint8>(tag) ==1352static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {1353DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node()));1354} else {1355goto handle_unusual;1356}1357break;1358}13591360default: {1361handle_unusual:1362if (tag == 0) {1363goto success;1364}1365DO_(::google::protobuf::internal::WireFormat::SkipField(1366input, tag, _internal_metadata_.mutable_unknown_fields()));1367break;1368}1369}1370}1371success:1372// @@protoc_insertion_point(parse_success:opencv_tensorflow.FunctionDef)1373return true;1374failure:1375// @@protoc_insertion_point(parse_failure:opencv_tensorflow.FunctionDef)1376return false;1377#undef DO_1378}13791380void FunctionDef::SerializeWithCachedSizes(1381::google::protobuf::io::CodedOutputStream* output) const {1382// @@protoc_insertion_point(serialize_start:opencv_tensorflow.FunctionDef)1383::google::protobuf::uint32 cached_has_bits = 0;1384(void) cached_has_bits;13851386// .opencv_tensorflow.OpDef signature = 1;1387if (this->has_signature()) {1388::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(13891, *this->signature_, output);1390}13911392// repeated .opencv_tensorflow.FunctionDef.Node node = 2;1393for (unsigned int i = 0,1394n = static_cast<unsigned int>(this->node_size()); i < n; i++) {1395::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(13962, this->node(static_cast<int>(i)), output);1397}13981399if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1400::google::protobuf::internal::WireFormat::SerializeUnknownFields(1401(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);1402}1403// @@protoc_insertion_point(serialize_end:opencv_tensorflow.FunctionDef)1404}14051406::google::protobuf::uint8* FunctionDef::InternalSerializeWithCachedSizesToArray(1407bool deterministic, ::google::protobuf::uint8* target) const {1408(void)deterministic; // Unused1409// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef)1410::google::protobuf::uint32 cached_has_bits = 0;1411(void) cached_has_bits;14121413// .opencv_tensorflow.OpDef signature = 1;1414if (this->has_signature()) {1415target = ::google::protobuf::internal::WireFormatLite::1416InternalWriteMessageToArray(14171, *this->signature_, deterministic, target);1418}14191420// repeated .opencv_tensorflow.FunctionDef.Node node = 2;1421for (unsigned int i = 0,1422n = static_cast<unsigned int>(this->node_size()); i < n; i++) {1423target = ::google::protobuf::internal::WireFormatLite::1424InternalWriteMessageToArray(14252, this->node(static_cast<int>(i)), deterministic, target);1426}14271428if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1429target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1430(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);1431}1432// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef)1433return target;1434}14351436size_t FunctionDef::ByteSizeLong() const {1437// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef)1438size_t total_size = 0;14391440if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1441total_size +=1442::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1443(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));1444}1445// repeated .opencv_tensorflow.FunctionDef.Node node = 2;1446{1447unsigned int count = static_cast<unsigned int>(this->node_size());1448total_size += 1UL * count;1449for (unsigned int i = 0; i < count; i++) {1450total_size +=1451::google::protobuf::internal::WireFormatLite::MessageSize(1452this->node(static_cast<int>(i)));1453}1454}14551456// .opencv_tensorflow.OpDef signature = 1;1457if (this->has_signature()) {1458total_size += 1 +1459::google::protobuf::internal::WireFormatLite::MessageSize(1460*this->signature_);1461}14621463int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1464GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1465_cached_size_ = cached_size;1466GOOGLE_SAFE_CONCURRENT_WRITES_END();1467return total_size;1468}14691470void FunctionDef::MergeFrom(const ::google::protobuf::Message& from) {1471// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.FunctionDef)1472GOOGLE_DCHECK_NE(&from, this);1473const FunctionDef* source =1474::google::protobuf::internal::DynamicCastToGenerated<const FunctionDef>(1475&from);1476if (source == NULL) {1477// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.FunctionDef)1478::google::protobuf::internal::ReflectionOps::Merge(from, this);1479} else {1480// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.FunctionDef)1481MergeFrom(*source);1482}1483}14841485void FunctionDef::MergeFrom(const FunctionDef& from) {1486// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef)1487GOOGLE_DCHECK_NE(&from, this);1488_internal_metadata_.MergeFrom(from._internal_metadata_);1489::google::protobuf::uint32 cached_has_bits = 0;1490(void) cached_has_bits;14911492node_.MergeFrom(from.node_);1493if (from.has_signature()) {1494mutable_signature()->::opencv_tensorflow::OpDef::MergeFrom(from.signature());1495}1496}14971498void FunctionDef::CopyFrom(const ::google::protobuf::Message& from) {1499// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.FunctionDef)1500if (&from == this) return;1501Clear();1502MergeFrom(from);1503}15041505void FunctionDef::CopyFrom(const FunctionDef& from) {1506// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef)1507if (&from == this) return;1508Clear();1509MergeFrom(from);1510}15111512bool FunctionDef::IsInitialized() const {1513return true;1514}15151516void FunctionDef::Swap(FunctionDef* other) {1517if (other == this) return;1518if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {1519InternalSwap(other);1520} else {1521FunctionDef* temp = New(GetArenaNoVirtual());1522temp->MergeFrom(*other);1523other->CopyFrom(*this);1524InternalSwap(temp);1525if (GetArenaNoVirtual() == NULL) {1526delete temp;1527}1528}1529}1530void FunctionDef::UnsafeArenaSwap(FunctionDef* other) {1531if (other == this) return;1532GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());1533InternalSwap(other);1534}1535void FunctionDef::InternalSwap(FunctionDef* other) {1536using std::swap;1537node_.InternalSwap(&other->node_);1538swap(signature_, other->signature_);1539_internal_metadata_.Swap(&other->_internal_metadata_);1540swap(_cached_size_, other->_cached_size_);1541}15421543::google::protobuf::Metadata FunctionDef::GetMetadata() const {1544protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();1545return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages];1546}154715481549// ===================================================================15501551void GradientDef::InitAsDefaultInstance() {1552}1553#if !defined(_MSC_VER) || _MSC_VER >= 19001554const int GradientDef::kFunctionNameFieldNumber;1555const int GradientDef::kGradientFuncFieldNumber;1556#endif // !defined(_MSC_VER) || _MSC_VER >= 190015571558GradientDef::GradientDef()1559: ::google::protobuf::Message(), _internal_metadata_(NULL) {1560if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {1561::protobuf_function_2eproto::InitDefaultsGradientDef();1562}1563SharedCtor();1564// @@protoc_insertion_point(constructor:opencv_tensorflow.GradientDef)1565}1566GradientDef::GradientDef(::google::protobuf::Arena* arena)1567: ::google::protobuf::Message(),1568_internal_metadata_(arena) {1569::protobuf_function_2eproto::InitDefaultsGradientDef();1570SharedCtor();1571RegisterArenaDtor(arena);1572// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GradientDef)1573}1574GradientDef::GradientDef(const GradientDef& from)1575: ::google::protobuf::Message(),1576_internal_metadata_(NULL),1577_cached_size_(0) {1578_internal_metadata_.MergeFrom(from._internal_metadata_);1579function_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1580if (from.function_name().size() > 0) {1581function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.function_name(),1582GetArenaNoVirtual());1583}1584gradient_func_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1585if (from.gradient_func().size() > 0) {1586gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gradient_func(),1587GetArenaNoVirtual());1588}1589// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GradientDef)1590}15911592void GradientDef::SharedCtor() {1593function_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1594gradient_func_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1595_cached_size_ = 0;1596}15971598GradientDef::~GradientDef() {1599// @@protoc_insertion_point(destructor:opencv_tensorflow.GradientDef)1600SharedDtor();1601}16021603void GradientDef::SharedDtor() {1604GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);1605function_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1606gradient_func_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());1607}16081609void GradientDef::ArenaDtor(void* object) {1610GradientDef* _this = reinterpret_cast< GradientDef* >(object);1611(void)_this;1612}1613void GradientDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {1614}1615void GradientDef::SetCachedSize(int size) const {1616GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1617_cached_size_ = size;1618GOOGLE_SAFE_CONCURRENT_WRITES_END();1619}1620const ::google::protobuf::Descriptor* GradientDef::descriptor() {1621::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();1622return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;1623}16241625const GradientDef& GradientDef::default_instance() {1626::protobuf_function_2eproto::InitDefaultsGradientDef();1627return *internal_default_instance();1628}16291630GradientDef* GradientDef::New(::google::protobuf::Arena* arena) const {1631return ::google::protobuf::Arena::CreateMessage<GradientDef>(arena);1632}16331634void GradientDef::Clear() {1635// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GradientDef)1636::google::protobuf::uint32 cached_has_bits = 0;1637// Prevent compiler warnings about cached_has_bits being unused1638(void) cached_has_bits;16391640function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());1641gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());1642_internal_metadata_.Clear();1643}16441645bool GradientDef::MergePartialFromCodedStream(1646::google::protobuf::io::CodedInputStream* input) {1647#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure1648::google::protobuf::uint32 tag;1649// @@protoc_insertion_point(parse_start:opencv_tensorflow.GradientDef)1650for (;;) {1651::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);1652tag = p.first;1653if (!p.second) goto handle_unusual;1654switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {1655// string function_name = 1;1656case 1: {1657if (static_cast< ::google::protobuf::uint8>(tag) ==1658static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {1659DO_(::google::protobuf::internal::WireFormatLite::ReadString(1660input, this->mutable_function_name()));1661DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1662this->function_name().data(), static_cast<int>(this->function_name().length()),1663::google::protobuf::internal::WireFormatLite::PARSE,1664"opencv_tensorflow.GradientDef.function_name"));1665} else {1666goto handle_unusual;1667}1668break;1669}16701671// string gradient_func = 2;1672case 2: {1673if (static_cast< ::google::protobuf::uint8>(tag) ==1674static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {1675DO_(::google::protobuf::internal::WireFormatLite::ReadString(1676input, this->mutable_gradient_func()));1677DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1678this->gradient_func().data(), static_cast<int>(this->gradient_func().length()),1679::google::protobuf::internal::WireFormatLite::PARSE,1680"opencv_tensorflow.GradientDef.gradient_func"));1681} else {1682goto handle_unusual;1683}1684break;1685}16861687default: {1688handle_unusual:1689if (tag == 0) {1690goto success;1691}1692DO_(::google::protobuf::internal::WireFormat::SkipField(1693input, tag, _internal_metadata_.mutable_unknown_fields()));1694break;1695}1696}1697}1698success:1699// @@protoc_insertion_point(parse_success:opencv_tensorflow.GradientDef)1700return true;1701failure:1702// @@protoc_insertion_point(parse_failure:opencv_tensorflow.GradientDef)1703return false;1704#undef DO_1705}17061707void GradientDef::SerializeWithCachedSizes(1708::google::protobuf::io::CodedOutputStream* output) const {1709// @@protoc_insertion_point(serialize_start:opencv_tensorflow.GradientDef)1710::google::protobuf::uint32 cached_has_bits = 0;1711(void) cached_has_bits;17121713// string function_name = 1;1714if (this->function_name().size() > 0) {1715::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1716this->function_name().data(), static_cast<int>(this->function_name().length()),1717::google::protobuf::internal::WireFormatLite::SERIALIZE,1718"opencv_tensorflow.GradientDef.function_name");1719::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(17201, this->function_name(), output);1721}17221723// string gradient_func = 2;1724if (this->gradient_func().size() > 0) {1725::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1726this->gradient_func().data(), static_cast<int>(this->gradient_func().length()),1727::google::protobuf::internal::WireFormatLite::SERIALIZE,1728"opencv_tensorflow.GradientDef.gradient_func");1729::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(17302, this->gradient_func(), output);1731}17321733if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1734::google::protobuf::internal::WireFormat::SerializeUnknownFields(1735(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);1736}1737// @@protoc_insertion_point(serialize_end:opencv_tensorflow.GradientDef)1738}17391740::google::protobuf::uint8* GradientDef::InternalSerializeWithCachedSizesToArray(1741bool deterministic, ::google::protobuf::uint8* target) const {1742(void)deterministic; // Unused1743// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GradientDef)1744::google::protobuf::uint32 cached_has_bits = 0;1745(void) cached_has_bits;17461747// string function_name = 1;1748if (this->function_name().size() > 0) {1749::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1750this->function_name().data(), static_cast<int>(this->function_name().length()),1751::google::protobuf::internal::WireFormatLite::SERIALIZE,1752"opencv_tensorflow.GradientDef.function_name");1753target =1754::google::protobuf::internal::WireFormatLite::WriteStringToArray(17551, this->function_name(), target);1756}17571758// string gradient_func = 2;1759if (this->gradient_func().size() > 0) {1760::google::protobuf::internal::WireFormatLite::VerifyUtf8String(1761this->gradient_func().data(), static_cast<int>(this->gradient_func().length()),1762::google::protobuf::internal::WireFormatLite::SERIALIZE,1763"opencv_tensorflow.GradientDef.gradient_func");1764target =1765::google::protobuf::internal::WireFormatLite::WriteStringToArray(17662, this->gradient_func(), target);1767}17681769if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1770target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(1771(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);1772}1773// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GradientDef)1774return target;1775}17761777size_t GradientDef::ByteSizeLong() const {1778// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GradientDef)1779size_t total_size = 0;17801781if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {1782total_size +=1783::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(1784(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));1785}1786// string function_name = 1;1787if (this->function_name().size() > 0) {1788total_size += 1 +1789::google::protobuf::internal::WireFormatLite::StringSize(1790this->function_name());1791}17921793// string gradient_func = 2;1794if (this->gradient_func().size() > 0) {1795total_size += 1 +1796::google::protobuf::internal::WireFormatLite::StringSize(1797this->gradient_func());1798}17991800int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);1801GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();1802_cached_size_ = cached_size;1803GOOGLE_SAFE_CONCURRENT_WRITES_END();1804return total_size;1805}18061807void GradientDef::MergeFrom(const ::google::protobuf::Message& from) {1808// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.GradientDef)1809GOOGLE_DCHECK_NE(&from, this);1810const GradientDef* source =1811::google::protobuf::internal::DynamicCastToGenerated<const GradientDef>(1812&from);1813if (source == NULL) {1814// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.GradientDef)1815::google::protobuf::internal::ReflectionOps::Merge(from, this);1816} else {1817// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.GradientDef)1818MergeFrom(*source);1819}1820}18211822void GradientDef::MergeFrom(const GradientDef& from) {1823// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GradientDef)1824GOOGLE_DCHECK_NE(&from, this);1825_internal_metadata_.MergeFrom(from._internal_metadata_);1826::google::protobuf::uint32 cached_has_bits = 0;1827(void) cached_has_bits;18281829if (from.function_name().size() > 0) {1830set_function_name(from.function_name());1831}1832if (from.gradient_func().size() > 0) {1833set_gradient_func(from.gradient_func());1834}1835}18361837void GradientDef::CopyFrom(const ::google::protobuf::Message& from) {1838// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.GradientDef)1839if (&from == this) return;1840Clear();1841MergeFrom(from);1842}18431844void GradientDef::CopyFrom(const GradientDef& from) {1845// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GradientDef)1846if (&from == this) return;1847Clear();1848MergeFrom(from);1849}18501851bool GradientDef::IsInitialized() const {1852return true;1853}18541855void GradientDef::Swap(GradientDef* other) {1856if (other == this) return;1857if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {1858InternalSwap(other);1859} else {1860GradientDef* temp = New(GetArenaNoVirtual());1861temp->MergeFrom(*other);1862other->CopyFrom(*this);1863InternalSwap(temp);1864if (GetArenaNoVirtual() == NULL) {1865delete temp;1866}1867}1868}1869void GradientDef::UnsafeArenaSwap(GradientDef* other) {1870if (other == this) return;1871GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());1872InternalSwap(other);1873}1874void GradientDef::InternalSwap(GradientDef* other) {1875using std::swap;1876function_name_.Swap(&other->function_name_);1877gradient_func_.Swap(&other->gradient_func_);1878_internal_metadata_.Swap(&other->_internal_metadata_);1879swap(_cached_size_, other->_cached_size_);1880}18811882::google::protobuf::Metadata GradientDef::GetMetadata() const {1883protobuf_function_2eproto::protobuf_AssignDescriptorsOnce();1884return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages];1885}188618871888// @@protoc_insertion_point(namespace_scope)1889} // namespace opencv_tensorflow18901891// @@protoc_insertion_point(global_scope)189218931894