Path: blob/master/modules/dnn/misc/tensorflow/graph.pb.h
16358 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: graph.proto23#ifndef PROTOBUF_graph_2eproto__INCLUDED4#define PROTOBUF_graph_2eproto__INCLUDED56#include <string>78#include <google/protobuf/stubs/common.h>910#if GOOGLE_PROTOBUF_VERSION < 300500011#error This file was generated by a newer version of protoc which is12#error incompatible with your Protocol Buffer headers. Please update13#error your headers.14#endif15#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION16#error This file was generated by an older version of protoc which is17#error incompatible with your Protocol Buffer headers. Please18#error regenerate this file with a newer version of protoc.19#endif2021#include <google/protobuf/io/coded_stream.h>22#include <google/protobuf/arena.h>23#include <google/protobuf/arenastring.h>24#include <google/protobuf/generated_message_table_driven.h>25#include <google/protobuf/generated_message_util.h>26#include <google/protobuf/metadata.h>27#include <google/protobuf/message.h>28#include <google/protobuf/repeated_field.h> // IWYU pragma: export29#include <google/protobuf/extension_set.h> // IWYU pragma: export30#include <google/protobuf/map.h> // IWYU pragma: export31#include <google/protobuf/map_entry.h>32#include <google/protobuf/map_field_inl.h>33#include <google/protobuf/unknown_field_set.h>34#include "attr_value.pb.h"35#include "function.pb.h"36#include "versions.pb.h"37// @@protoc_insertion_point(includes)3839namespace protobuf_graph_2eproto {40// Internal implementation detail -- do not use these members.41struct TableStruct {42static const ::google::protobuf::internal::ParseTableField entries[];43static const ::google::protobuf::internal::AuxillaryParseTableField aux[];44static const ::google::protobuf::internal::ParseTable schema[3];45static const ::google::protobuf::internal::FieldMetadata field_metadata[];46static const ::google::protobuf::internal::SerializationTable serialization_table[];47static const ::google::protobuf::uint32 offsets[];48};49void AddDescriptors();50void InitDefaultsGraphDefImpl();51void InitDefaultsGraphDef();52void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl();53void InitDefaultsNodeDef_AttrEntry_DoNotUse();54void InitDefaultsNodeDefImpl();55void InitDefaultsNodeDef();56inline void InitDefaults() {57InitDefaultsGraphDef();58InitDefaultsNodeDef_AttrEntry_DoNotUse();59InitDefaultsNodeDef();60}61} // namespace protobuf_graph_2eproto62namespace opencv_tensorflow {63class GraphDef;64class GraphDefDefaultTypeInternal;65extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;66class NodeDef;67class NodeDefDefaultTypeInternal;68extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;69class NodeDef_AttrEntry_DoNotUse;70class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;71extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;72} // namespace opencv_tensorflow73namespace opencv_tensorflow {7475// ===================================================================7677class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GraphDef) */ {78public:79GraphDef();80virtual ~GraphDef();8182GraphDef(const GraphDef& from);8384inline GraphDef& operator=(const GraphDef& from) {85CopyFrom(from);86return *this;87}88#if LANG_CXX1189GraphDef(GraphDef&& from) noexcept90: GraphDef() {91*this = ::std::move(from);92}9394inline GraphDef& operator=(GraphDef&& from) noexcept {95if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {96if (this != &from) InternalSwap(&from);97} else {98CopyFrom(from);99}100return *this;101}102#endif103inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {104return GetArenaNoVirtual();105}106inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {107return MaybeArenaPtr();108}109static const ::google::protobuf::Descriptor* descriptor();110static const GraphDef& default_instance();111112static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY113static inline const GraphDef* internal_default_instance() {114return reinterpret_cast<const GraphDef*>(115&_GraphDef_default_instance_);116}117static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =1180;119120void UnsafeArenaSwap(GraphDef* other);121void Swap(GraphDef* other);122friend void swap(GraphDef& a, GraphDef& b) {123a.Swap(&b);124}125126// implements Message ----------------------------------------------127128inline GraphDef* New() const PROTOBUF_FINAL { return New(NULL); }129130GraphDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;131void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;132void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;133void CopyFrom(const GraphDef& from);134void MergeFrom(const GraphDef& from);135void Clear() PROTOBUF_FINAL;136bool IsInitialized() const PROTOBUF_FINAL;137138size_t ByteSizeLong() const PROTOBUF_FINAL;139bool MergePartialFromCodedStream(140::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;141void SerializeWithCachedSizes(142::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;143::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(144bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;145int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }146private:147void SharedCtor();148void SharedDtor();149void SetCachedSize(int size) const PROTOBUF_FINAL;150void InternalSwap(GraphDef* other);151protected:152explicit GraphDef(::google::protobuf::Arena* arena);153private:154static void ArenaDtor(void* object);155inline void RegisterArenaDtor(::google::protobuf::Arena* arena);156private:157inline ::google::protobuf::Arena* GetArenaNoVirtual() const {158return _internal_metadata_.arena();159}160inline void* MaybeArenaPtr() const {161return _internal_metadata_.raw_arena_ptr();162}163public:164165::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;166167// nested types ----------------------------------------------------168169// accessors -------------------------------------------------------170171// repeated .opencv_tensorflow.NodeDef node = 1;172int node_size() const;173void clear_node();174static const int kNodeFieldNumber = 1;175const ::opencv_tensorflow::NodeDef& node(int index) const;176::opencv_tensorflow::NodeDef* mutable_node(int index);177::opencv_tensorflow::NodeDef* add_node();178::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*179mutable_node();180const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&181node() const;182183// .opencv_tensorflow.FunctionDefLibrary library = 2;184bool has_library() const;185void clear_library();186static const int kLibraryFieldNumber = 2;187private:188void _slow_mutable_library();189public:190const ::opencv_tensorflow::FunctionDefLibrary& library() const;191::opencv_tensorflow::FunctionDefLibrary* release_library();192::opencv_tensorflow::FunctionDefLibrary* mutable_library();193void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library);194void unsafe_arena_set_allocated_library(195::opencv_tensorflow::FunctionDefLibrary* library);196::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library();197198// .opencv_tensorflow.VersionDef versions = 4;199bool has_versions() const;200void clear_versions();201static const int kVersionsFieldNumber = 4;202private:203void _slow_mutable_versions();204public:205const ::opencv_tensorflow::VersionDef& versions() const;206::opencv_tensorflow::VersionDef* release_versions();207::opencv_tensorflow::VersionDef* mutable_versions();208void set_allocated_versions(::opencv_tensorflow::VersionDef* versions);209void unsafe_arena_set_allocated_versions(210::opencv_tensorflow::VersionDef* versions);211::opencv_tensorflow::VersionDef* unsafe_arena_release_versions();212213// int32 version = 3 [deprecated = true];214GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version();215GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3;216GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const;217GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value);218219// @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef)220private:221222::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;223template <typename T> friend class ::google::protobuf::Arena::InternalHelper;224typedef void InternalArenaConstructable_;225typedef void DestructorSkippable_;226::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_;227::opencv_tensorflow::FunctionDefLibrary* library_;228::opencv_tensorflow::VersionDef* versions_;229::google::protobuf::int32 version_;230mutable int _cached_size_;231friend struct ::protobuf_graph_2eproto::TableStruct;232friend void ::protobuf_graph_2eproto::InitDefaultsGraphDefImpl();233};234// -------------------------------------------------------------------235236class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,237::std::string, ::opencv_tensorflow::AttrValue,238::google::protobuf::internal::WireFormatLite::TYPE_STRING,239::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,2400 > {241public:242typedef ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,243::std::string, ::opencv_tensorflow::AttrValue,244::google::protobuf::internal::WireFormatLite::TYPE_STRING,245::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,2460 > SuperType;247NodeDef_AttrEntry_DoNotUse();248NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena);249void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other);250static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); }251void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;252::google::protobuf::Metadata GetMetadata() const;253};254255// -------------------------------------------------------------------256257class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NodeDef) */ {258public:259NodeDef();260virtual ~NodeDef();261262NodeDef(const NodeDef& from);263264inline NodeDef& operator=(const NodeDef& from) {265CopyFrom(from);266return *this;267}268#if LANG_CXX11269NodeDef(NodeDef&& from) noexcept270: NodeDef() {271*this = ::std::move(from);272}273274inline NodeDef& operator=(NodeDef&& from) noexcept {275if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {276if (this != &from) InternalSwap(&from);277} else {278CopyFrom(from);279}280return *this;281}282#endif283inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {284return GetArenaNoVirtual();285}286inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {287return MaybeArenaPtr();288}289static const ::google::protobuf::Descriptor* descriptor();290static const NodeDef& default_instance();291292static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY293static inline const NodeDef* internal_default_instance() {294return reinterpret_cast<const NodeDef*>(295&_NodeDef_default_instance_);296}297static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =2982;299300void UnsafeArenaSwap(NodeDef* other);301void Swap(NodeDef* other);302friend void swap(NodeDef& a, NodeDef& b) {303a.Swap(&b);304}305306// implements Message ----------------------------------------------307308inline NodeDef* New() const PROTOBUF_FINAL { return New(NULL); }309310NodeDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;311void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;312void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;313void CopyFrom(const NodeDef& from);314void MergeFrom(const NodeDef& from);315void Clear() PROTOBUF_FINAL;316bool IsInitialized() const PROTOBUF_FINAL;317318size_t ByteSizeLong() const PROTOBUF_FINAL;319bool MergePartialFromCodedStream(320::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;321void SerializeWithCachedSizes(322::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;323::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(324bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;325int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }326private:327void SharedCtor();328void SharedDtor();329void SetCachedSize(int size) const PROTOBUF_FINAL;330void InternalSwap(NodeDef* other);331protected:332explicit NodeDef(::google::protobuf::Arena* arena);333private:334static void ArenaDtor(void* object);335inline void RegisterArenaDtor(::google::protobuf::Arena* arena);336private:337inline ::google::protobuf::Arena* GetArenaNoVirtual() const {338return _internal_metadata_.arena();339}340inline void* MaybeArenaPtr() const {341return _internal_metadata_.raw_arena_ptr();342}343public:344345::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;346347// nested types ----------------------------------------------------348349350// accessors -------------------------------------------------------351352// repeated string input = 3;353int input_size() const;354void clear_input();355static const int kInputFieldNumber = 3;356const ::std::string& input(int index) const;357::std::string* mutable_input(int index);358void set_input(int index, const ::std::string& value);359#if LANG_CXX11360void set_input(int index, ::std::string&& value);361#endif362void set_input(int index, const char* value);363void set_input(int index, const char* value, size_t size);364::std::string* add_input();365void add_input(const ::std::string& value);366#if LANG_CXX11367void add_input(::std::string&& value);368#endif369void add_input(const char* value);370void add_input(const char* value, size_t size);371const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const;372::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();373374// map<string, .opencv_tensorflow.AttrValue> attr = 5;375int attr_size() const;376void clear_attr();377static const int kAttrFieldNumber = 5;378const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&379attr() const;380::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*381mutable_attr();382383// string name = 1;384void clear_name();385static const int kNameFieldNumber = 1;386const ::std::string& name() const;387void set_name(const ::std::string& value);388#if LANG_CXX11389void set_name(::std::string&& value);390#endif391void set_name(const char* value);392void set_name(const char* value, size_t size);393::std::string* mutable_name();394::std::string* release_name();395void set_allocated_name(::std::string* name);396PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"397" string fields are deprecated and will be removed in a"398" future release.")399::std::string* unsafe_arena_release_name();400PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"401" string fields are deprecated and will be removed in a"402" future release.")403void unsafe_arena_set_allocated_name(404::std::string* name);405406// string op = 2;407void clear_op();408static const int kOpFieldNumber = 2;409const ::std::string& op() const;410void set_op(const ::std::string& value);411#if LANG_CXX11412void set_op(::std::string&& value);413#endif414void set_op(const char* value);415void set_op(const char* value, size_t size);416::std::string* mutable_op();417::std::string* release_op();418void set_allocated_op(::std::string* op);419PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"420" string fields are deprecated and will be removed in a"421" future release.")422::std::string* unsafe_arena_release_op();423PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"424" string fields are deprecated and will be removed in a"425" future release.")426void unsafe_arena_set_allocated_op(427::std::string* op);428429// string device = 4;430void clear_device();431static const int kDeviceFieldNumber = 4;432const ::std::string& device() const;433void set_device(const ::std::string& value);434#if LANG_CXX11435void set_device(::std::string&& value);436#endif437void set_device(const char* value);438void set_device(const char* value, size_t size);439::std::string* mutable_device();440::std::string* release_device();441void set_allocated_device(::std::string* device);442PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"443" string fields are deprecated and will be removed in a"444" future release.")445::std::string* unsafe_arena_release_device();446PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"447" string fields are deprecated and will be removed in a"448" future release.")449void unsafe_arena_set_allocated_device(450::std::string* device);451452// @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef)453private:454455::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;456template <typename T> friend class ::google::protobuf::Arena::InternalHelper;457typedef void InternalArenaConstructable_;458typedef void DestructorSkippable_;459::google::protobuf::RepeatedPtrField< ::std::string> input_;460::google::protobuf::internal::MapField<461NodeDef_AttrEntry_DoNotUse,462::std::string, ::opencv_tensorflow::AttrValue,463::google::protobuf::internal::WireFormatLite::TYPE_STRING,464::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,4650 > attr_;466::google::protobuf::internal::ArenaStringPtr name_;467::google::protobuf::internal::ArenaStringPtr op_;468::google::protobuf::internal::ArenaStringPtr device_;469mutable int _cached_size_;470friend struct ::protobuf_graph_2eproto::TableStruct;471friend void ::protobuf_graph_2eproto::InitDefaultsNodeDefImpl();472};473// ===================================================================474475476// ===================================================================477478#ifdef __GNUC__479#pragma GCC diagnostic push480#pragma GCC diagnostic ignored "-Wstrict-aliasing"481#endif // __GNUC__482// GraphDef483484// repeated .opencv_tensorflow.NodeDef node = 1;485inline int GraphDef::node_size() const {486return node_.size();487}488inline void GraphDef::clear_node() {489node_.Clear();490}491inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const {492// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node)493return node_.Get(index);494}495inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) {496// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node)497return node_.Mutable(index);498}499inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() {500// @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node)501return node_.Add();502}503inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*504GraphDef::mutable_node() {505// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node)506return &node_;507}508inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&509GraphDef::node() const {510// @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node)511return node_;512}513514// .opencv_tensorflow.VersionDef versions = 4;515inline bool GraphDef::has_versions() const {516return this != internal_default_instance() && versions_ != NULL;517}518inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const {519const ::opencv_tensorflow::VersionDef* p = versions_;520// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions)521return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::VersionDef*>(522&::opencv_tensorflow::_VersionDef_default_instance_);523}524inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() {525// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions)526527::opencv_tensorflow::VersionDef* temp = versions_;528if (GetArenaNoVirtual() != NULL) {529temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);530}531versions_ = NULL;532return temp;533}534inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {535// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.versions)536537::opencv_tensorflow::VersionDef* temp = versions_;538versions_ = NULL;539return temp;540}541inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() {542543if (versions_ == NULL) {544_slow_mutable_versions();545}546// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.versions)547return versions_;548}549inline void GraphDef::set_allocated_versions(::opencv_tensorflow::VersionDef* versions) {550::google::protobuf::Arena* message_arena = GetArenaNoVirtual();551if (message_arena == NULL) {552delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_);553}554if (versions) {555::google::protobuf::Arena* submessage_arena =556reinterpret_cast< ::google::protobuf::MessageLite*>(versions)->GetArena();557if (message_arena != submessage_arena) {558versions = ::google::protobuf::internal::GetOwnedMessage(559message_arena, versions, submessage_arena);560}561562} else {563564}565versions_ = versions;566// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.versions)567}568569// int32 version = 3 [deprecated = true];570inline void GraphDef::clear_version() {571version_ = 0;572}573inline ::google::protobuf::int32 GraphDef::version() const {574// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.version)575return version_;576}577inline void GraphDef::set_version(::google::protobuf::int32 value) {578579version_ = value;580// @@protoc_insertion_point(field_set:opencv_tensorflow.GraphDef.version)581}582583// .opencv_tensorflow.FunctionDefLibrary library = 2;584inline bool GraphDef::has_library() const {585return this != internal_default_instance() && library_ != NULL;586}587inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const {588const ::opencv_tensorflow::FunctionDefLibrary* p = library_;589// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library)590return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary*>(591&::opencv_tensorflow::_FunctionDefLibrary_default_instance_);592}593inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() {594// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library)595596::opencv_tensorflow::FunctionDefLibrary* temp = library_;597if (GetArenaNoVirtual() != NULL) {598temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);599}600library_ = NULL;601return temp;602}603inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {604// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.library)605606::opencv_tensorflow::FunctionDefLibrary* temp = library_;607library_ = NULL;608return temp;609}610inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {611612if (library_ == NULL) {613_slow_mutable_library();614}615// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.library)616return library_;617}618inline void GraphDef::set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library) {619::google::protobuf::Arena* message_arena = GetArenaNoVirtual();620if (message_arena == NULL) {621delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_);622}623if (library) {624::google::protobuf::Arena* submessage_arena =625reinterpret_cast< ::google::protobuf::MessageLite*>(library)->GetArena();626if (message_arena != submessage_arena) {627library = ::google::protobuf::internal::GetOwnedMessage(628message_arena, library, submessage_arena);629}630631} else {632633}634library_ = library;635// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.library)636}637638// -------------------------------------------------------------------639640// -------------------------------------------------------------------641642// NodeDef643644// string name = 1;645inline void NodeDef::clear_name() {646name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());647}648inline const ::std::string& NodeDef::name() const {649// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.name)650return name_.Get();651}652inline void NodeDef::set_name(const ::std::string& value) {653654name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());655// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.name)656}657#if LANG_CXX11658inline void NodeDef::set_name(::std::string&& value) {659660name_.Set(661&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());662// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.name)663}664#endif665inline void NodeDef::set_name(const char* value) {666GOOGLE_DCHECK(value != NULL);667668name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),669GetArenaNoVirtual());670// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.name)671}672inline void NodeDef::set_name(const char* value,673size_t size) {674675name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(676reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());677// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.name)678}679inline ::std::string* NodeDef::mutable_name() {680681// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.name)682return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());683}684inline ::std::string* NodeDef::release_name() {685// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.name)686687return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());688}689inline void NodeDef::set_allocated_name(::std::string* name) {690if (name != NULL) {691692} else {693694}695name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,696GetArenaNoVirtual());697// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.name)698}699inline ::std::string* NodeDef::unsafe_arena_release_name() {700// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.name)701GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);702703return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),704GetArenaNoVirtual());705}706inline void NodeDef::unsafe_arena_set_allocated_name(707::std::string* name) {708GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);709if (name != NULL) {710711} else {712713}714name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),715name, GetArenaNoVirtual());716// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.name)717}718719// string op = 2;720inline void NodeDef::clear_op() {721op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());722}723inline const ::std::string& NodeDef::op() const {724// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.op)725return op_.Get();726}727inline void NodeDef::set_op(const ::std::string& value) {728729op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());730// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.op)731}732#if LANG_CXX11733inline void NodeDef::set_op(::std::string&& value) {734735op_.Set(736&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());737// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.op)738}739#endif740inline void NodeDef::set_op(const char* value) {741GOOGLE_DCHECK(value != NULL);742743op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),744GetArenaNoVirtual());745// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.op)746}747inline void NodeDef::set_op(const char* value,748size_t size) {749750op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(751reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());752// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.op)753}754inline ::std::string* NodeDef::mutable_op() {755756// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.op)757return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());758}759inline ::std::string* NodeDef::release_op() {760// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.op)761762return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());763}764inline void NodeDef::set_allocated_op(::std::string* op) {765if (op != NULL) {766767} else {768769}770op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,771GetArenaNoVirtual());772// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.op)773}774inline ::std::string* NodeDef::unsafe_arena_release_op() {775// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.op)776GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);777778return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),779GetArenaNoVirtual());780}781inline void NodeDef::unsafe_arena_set_allocated_op(782::std::string* op) {783GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);784if (op != NULL) {785786} else {787788}789op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),790op, GetArenaNoVirtual());791// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.op)792}793794// repeated string input = 3;795inline int NodeDef::input_size() const {796return input_.size();797}798inline void NodeDef::clear_input() {799input_.Clear();800}801inline const ::std::string& NodeDef::input(int index) const {802// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.input)803return input_.Get(index);804}805inline ::std::string* NodeDef::mutable_input(int index) {806// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.input)807return input_.Mutable(index);808}809inline void NodeDef::set_input(int index, const ::std::string& value) {810// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)811input_.Mutable(index)->assign(value);812}813#if LANG_CXX11814inline void NodeDef::set_input(int index, ::std::string&& value) {815// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)816input_.Mutable(index)->assign(std::move(value));817}818#endif819inline void NodeDef::set_input(int index, const char* value) {820GOOGLE_DCHECK(value != NULL);821input_.Mutable(index)->assign(value);822// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.input)823}824inline void NodeDef::set_input(int index, const char* value, size_t size) {825input_.Mutable(index)->assign(826reinterpret_cast<const char*>(value), size);827// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.input)828}829inline ::std::string* NodeDef::add_input() {830// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input)831return input_.Add();832}833inline void NodeDef::add_input(const ::std::string& value) {834input_.Add()->assign(value);835// @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)836}837#if LANG_CXX11838inline void NodeDef::add_input(::std::string&& value) {839input_.Add(std::move(value));840// @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)841}842#endif843inline void NodeDef::add_input(const char* value) {844GOOGLE_DCHECK(value != NULL);845input_.Add()->assign(value);846// @@protoc_insertion_point(field_add_char:opencv_tensorflow.NodeDef.input)847}848inline void NodeDef::add_input(const char* value, size_t size) {849input_.Add()->assign(reinterpret_cast<const char*>(value), size);850// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.NodeDef.input)851}852inline const ::google::protobuf::RepeatedPtrField< ::std::string>&853NodeDef::input() const {854// @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input)855return input_;856}857inline ::google::protobuf::RepeatedPtrField< ::std::string>*858NodeDef::mutable_input() {859// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input)860return &input_;861}862863// string device = 4;864inline void NodeDef::clear_device() {865device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());866}867inline const ::std::string& NodeDef::device() const {868// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.device)869return device_.Get();870}871inline void NodeDef::set_device(const ::std::string& value) {872873device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());874// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.device)875}876#if LANG_CXX11877inline void NodeDef::set_device(::std::string&& value) {878879device_.Set(880&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());881// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.device)882}883#endif884inline void NodeDef::set_device(const char* value) {885GOOGLE_DCHECK(value != NULL);886887device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),888GetArenaNoVirtual());889// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.device)890}891inline void NodeDef::set_device(const char* value,892size_t size) {893894device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(895reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());896// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.device)897}898inline ::std::string* NodeDef::mutable_device() {899900// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.device)901return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());902}903inline ::std::string* NodeDef::release_device() {904// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.device)905906return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());907}908inline void NodeDef::set_allocated_device(::std::string* device) {909if (device != NULL) {910911} else {912913}914device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device,915GetArenaNoVirtual());916// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.device)917}918inline ::std::string* NodeDef::unsafe_arena_release_device() {919// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.device)920GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);921922return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),923GetArenaNoVirtual());924}925inline void NodeDef::unsafe_arena_set_allocated_device(926::std::string* device) {927GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);928if (device != NULL) {929930} else {931932}933device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),934device, GetArenaNoVirtual());935// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.device)936}937938// map<string, .opencv_tensorflow.AttrValue> attr = 5;939inline int NodeDef::attr_size() const {940return attr_.size();941}942inline const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&943NodeDef::attr() const {944// @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr)945return attr_.GetMap();946}947inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*948NodeDef::mutable_attr() {949// @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NodeDef.attr)950return attr_.MutableMap();951}952953#ifdef __GNUC__954#pragma GCC diagnostic pop955#endif // __GNUC__956// -------------------------------------------------------------------957958// -------------------------------------------------------------------959960961// @@protoc_insertion_point(namespace_scope)962963} // namespace opencv_tensorflow964965// @@protoc_insertion_point(global_scope)966967#endif // PROTOBUF_graph_2eproto__INCLUDED968969970