Path: blob/master/modules/dnn/misc/tensorflow/tensor_shape.pb.h
16358 views
// Generated by the protocol buffer compiler. DO NOT EDIT!1// source: tensor_shape.proto23#ifndef PROTOBUF_tensor_5fshape_2eproto__INCLUDED4#define PROTOBUF_tensor_5fshape_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/unknown_field_set.h>31// @@protoc_insertion_point(includes)3233namespace protobuf_tensor_5fshape_2eproto {34// Internal implementation detail -- do not use these members.35struct TableStruct {36static const ::google::protobuf::internal::ParseTableField entries[];37static const ::google::protobuf::internal::AuxillaryParseTableField aux[];38static const ::google::protobuf::internal::ParseTable schema[2];39static const ::google::protobuf::internal::FieldMetadata field_metadata[];40static const ::google::protobuf::internal::SerializationTable serialization_table[];41static const ::google::protobuf::uint32 offsets[];42};43void AddDescriptors();44void InitDefaultsTensorShapeProto_DimImpl();45void InitDefaultsTensorShapeProto_Dim();46void InitDefaultsTensorShapeProtoImpl();47void InitDefaultsTensorShapeProto();48inline void InitDefaults() {49InitDefaultsTensorShapeProto_Dim();50InitDefaultsTensorShapeProto();51}52} // namespace protobuf_tensor_5fshape_2eproto53namespace opencv_tensorflow {54class TensorShapeProto;55class TensorShapeProtoDefaultTypeInternal;56extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;57class TensorShapeProto_Dim;58class TensorShapeProto_DimDefaultTypeInternal;59extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_;60} // namespace opencv_tensorflow61namespace opencv_tensorflow {6263// ===================================================================6465class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto.Dim) */ {66public:67TensorShapeProto_Dim();68virtual ~TensorShapeProto_Dim();6970TensorShapeProto_Dim(const TensorShapeProto_Dim& from);7172inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) {73CopyFrom(from);74return *this;75}76#if LANG_CXX1177TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept78: TensorShapeProto_Dim() {79*this = ::std::move(from);80}8182inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept {83if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {84if (this != &from) InternalSwap(&from);85} else {86CopyFrom(from);87}88return *this;89}90#endif91inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {92return GetArenaNoVirtual();93}94inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {95return MaybeArenaPtr();96}97static const ::google::protobuf::Descriptor* descriptor();98static const TensorShapeProto_Dim& default_instance();99100static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY101static inline const TensorShapeProto_Dim* internal_default_instance() {102return reinterpret_cast<const TensorShapeProto_Dim*>(103&_TensorShapeProto_Dim_default_instance_);104}105static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =1060;107108void UnsafeArenaSwap(TensorShapeProto_Dim* other);109void Swap(TensorShapeProto_Dim* other);110friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) {111a.Swap(&b);112}113114// implements Message ----------------------------------------------115116inline TensorShapeProto_Dim* New() const PROTOBUF_FINAL { return New(NULL); }117118TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;119void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;120void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;121void CopyFrom(const TensorShapeProto_Dim& from);122void MergeFrom(const TensorShapeProto_Dim& from);123void Clear() PROTOBUF_FINAL;124bool IsInitialized() const PROTOBUF_FINAL;125126size_t ByteSizeLong() const PROTOBUF_FINAL;127bool MergePartialFromCodedStream(128::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;129void SerializeWithCachedSizes(130::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;131::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(132bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;133int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }134private:135void SharedCtor();136void SharedDtor();137void SetCachedSize(int size) const PROTOBUF_FINAL;138void InternalSwap(TensorShapeProto_Dim* other);139protected:140explicit TensorShapeProto_Dim(::google::protobuf::Arena* arena);141private:142static void ArenaDtor(void* object);143inline void RegisterArenaDtor(::google::protobuf::Arena* arena);144private:145inline ::google::protobuf::Arena* GetArenaNoVirtual() const {146return _internal_metadata_.arena();147}148inline void* MaybeArenaPtr() const {149return _internal_metadata_.raw_arena_ptr();150}151public:152153::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;154155// nested types ----------------------------------------------------156157// accessors -------------------------------------------------------158159// string name = 2;160void clear_name();161static const int kNameFieldNumber = 2;162const ::std::string& name() const;163void set_name(const ::std::string& value);164#if LANG_CXX11165void set_name(::std::string&& value);166#endif167void set_name(const char* value);168void set_name(const char* value, size_t size);169::std::string* mutable_name();170::std::string* release_name();171void set_allocated_name(::std::string* name);172PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"173" string fields are deprecated and will be removed in a"174" future release.")175::std::string* unsafe_arena_release_name();176PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"177" string fields are deprecated and will be removed in a"178" future release.")179void unsafe_arena_set_allocated_name(180::std::string* name);181182// int64 size = 1;183void clear_size();184static const int kSizeFieldNumber = 1;185::google::protobuf::int64 size() const;186void set_size(::google::protobuf::int64 value);187188// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto.Dim)189private:190191::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;192template <typename T> friend class ::google::protobuf::Arena::InternalHelper;193typedef void InternalArenaConstructable_;194typedef void DestructorSkippable_;195::google::protobuf::internal::ArenaStringPtr name_;196::google::protobuf::int64 size_;197mutable int _cached_size_;198friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;199friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_DimImpl();200};201// -------------------------------------------------------------------202203class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto) */ {204public:205TensorShapeProto();206virtual ~TensorShapeProto();207208TensorShapeProto(const TensorShapeProto& from);209210inline TensorShapeProto& operator=(const TensorShapeProto& from) {211CopyFrom(from);212return *this;213}214#if LANG_CXX11215TensorShapeProto(TensorShapeProto&& from) noexcept216: TensorShapeProto() {217*this = ::std::move(from);218}219220inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {221if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {222if (this != &from) InternalSwap(&from);223} else {224CopyFrom(from);225}226return *this;227}228#endif229inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {230return GetArenaNoVirtual();231}232inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {233return MaybeArenaPtr();234}235static const ::google::protobuf::Descriptor* descriptor();236static const TensorShapeProto& default_instance();237238static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY239static inline const TensorShapeProto* internal_default_instance() {240return reinterpret_cast<const TensorShapeProto*>(241&_TensorShapeProto_default_instance_);242}243static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =2441;245246void UnsafeArenaSwap(TensorShapeProto* other);247void Swap(TensorShapeProto* other);248friend void swap(TensorShapeProto& a, TensorShapeProto& b) {249a.Swap(&b);250}251252// implements Message ----------------------------------------------253254inline TensorShapeProto* New() const PROTOBUF_FINAL { return New(NULL); }255256TensorShapeProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;257void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;258void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;259void CopyFrom(const TensorShapeProto& from);260void MergeFrom(const TensorShapeProto& from);261void Clear() PROTOBUF_FINAL;262bool IsInitialized() const PROTOBUF_FINAL;263264size_t ByteSizeLong() const PROTOBUF_FINAL;265bool MergePartialFromCodedStream(266::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;267void SerializeWithCachedSizes(268::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;269::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(270bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;271int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }272private:273void SharedCtor();274void SharedDtor();275void SetCachedSize(int size) const PROTOBUF_FINAL;276void InternalSwap(TensorShapeProto* other);277protected:278explicit TensorShapeProto(::google::protobuf::Arena* arena);279private:280static void ArenaDtor(void* object);281inline void RegisterArenaDtor(::google::protobuf::Arena* arena);282private:283inline ::google::protobuf::Arena* GetArenaNoVirtual() const {284return _internal_metadata_.arena();285}286inline void* MaybeArenaPtr() const {287return _internal_metadata_.raw_arena_ptr();288}289public:290291::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;292293// nested types ----------------------------------------------------294295typedef TensorShapeProto_Dim Dim;296297// accessors -------------------------------------------------------298299// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;300int dim_size() const;301void clear_dim();302static const int kDimFieldNumber = 2;303const ::opencv_tensorflow::TensorShapeProto_Dim& dim(int index) const;304::opencv_tensorflow::TensorShapeProto_Dim* mutable_dim(int index);305::opencv_tensorflow::TensorShapeProto_Dim* add_dim();306::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*307mutable_dim();308const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&309dim() const;310311// bool unknown_rank = 3;312void clear_unknown_rank();313static const int kUnknownRankFieldNumber = 3;314bool unknown_rank() const;315void set_unknown_rank(bool value);316317// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto)318private:319320::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;321template <typename T> friend class ::google::protobuf::Arena::InternalHelper;322typedef void InternalArenaConstructable_;323typedef void DestructorSkippable_;324::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim > dim_;325bool unknown_rank_;326mutable int _cached_size_;327friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;328friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProtoImpl();329};330// ===================================================================331332333// ===================================================================334335#ifdef __GNUC__336#pragma GCC diagnostic push337#pragma GCC diagnostic ignored "-Wstrict-aliasing"338#endif // __GNUC__339// TensorShapeProto_Dim340341// int64 size = 1;342inline void TensorShapeProto_Dim::clear_size() {343size_ = GOOGLE_LONGLONG(0);344}345inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const {346// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.size)347return size_;348}349inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) {350351size_ = value;352// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.size)353}354355// string name = 2;356inline void TensorShapeProto_Dim::clear_name() {357name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());358}359inline const ::std::string& TensorShapeProto_Dim::name() const {360// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.name)361return name_.Get();362}363inline void TensorShapeProto_Dim::set_name(const ::std::string& value) {364365name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());366// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.name)367}368#if LANG_CXX11369inline void TensorShapeProto_Dim::set_name(::std::string&& value) {370371name_.Set(372&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());373// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.TensorShapeProto.Dim.name)374}375#endif376inline void TensorShapeProto_Dim::set_name(const char* value) {377GOOGLE_DCHECK(value != NULL);378379name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),380GetArenaNoVirtual());381// @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorShapeProto.Dim.name)382}383inline void TensorShapeProto_Dim::set_name(const char* value,384size_t size) {385386name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(387reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());388// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorShapeProto.Dim.name)389}390inline ::std::string* TensorShapeProto_Dim::mutable_name() {391392// @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.Dim.name)393return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());394}395inline ::std::string* TensorShapeProto_Dim::release_name() {396// @@protoc_insertion_point(field_release:opencv_tensorflow.TensorShapeProto.Dim.name)397398return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());399}400inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {401if (name != NULL) {402403} else {404405}406name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,407GetArenaNoVirtual());408// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)409}410inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() {411// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorShapeProto.Dim.name)412GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);413414return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),415GetArenaNoVirtual());416}417inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name(418::std::string* name) {419GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);420if (name != NULL) {421422} else {423424}425name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),426name, GetArenaNoVirtual());427// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)428}429430// -------------------------------------------------------------------431432// TensorShapeProto433434// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;435inline int TensorShapeProto::dim_size() const {436return dim_.size();437}438inline void TensorShapeProto::clear_dim() {439dim_.Clear();440}441inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {442// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.dim)443return dim_.Get(index);444}445inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {446// @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.dim)447return dim_.Mutable(index);448}449inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {450// @@protoc_insertion_point(field_add:opencv_tensorflow.TensorShapeProto.dim)451return dim_.Add();452}453inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*454TensorShapeProto::mutable_dim() {455// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorShapeProto.dim)456return &dim_;457}458inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&459TensorShapeProto::dim() const {460// @@protoc_insertion_point(field_list:opencv_tensorflow.TensorShapeProto.dim)461return dim_;462}463464// bool unknown_rank = 3;465inline void TensorShapeProto::clear_unknown_rank() {466unknown_rank_ = false;467}468inline bool TensorShapeProto::unknown_rank() const {469// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.unknown_rank)470return unknown_rank_;471}472inline void TensorShapeProto::set_unknown_rank(bool value) {473474unknown_rank_ = value;475// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.unknown_rank)476}477478#ifdef __GNUC__479#pragma GCC diagnostic pop480#endif // __GNUC__481// -------------------------------------------------------------------482483484// @@protoc_insertion_point(namespace_scope)485486} // namespace opencv_tensorflow487488// @@protoc_insertion_point(global_scope)489490#endif // PROTOBUF_tensor_5fshape_2eproto__INCLUDED491492493