1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/framework/graph.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include "tensorflow/core/framework/function.pb.h"
33 #include "tensorflow/core/framework/node_def.pb.h"
34 #include "tensorflow/core/framework/versions.pb.h"
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fgraph_2eproto
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 }  // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43 
44 // Internal implementation detail -- do not use these members.
45 struct TableStruct_tensorflow_2fcore_2fframework_2fgraph_2eproto {
46   static const ::uint32_t offsets[];
47 };
48 namespace tensorflow {
49 class GraphDef;
50 struct GraphDefDefaultTypeInternal;
51 extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;
52 }  // namespace tensorflow
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::tensorflow::GraphDef* Arena::CreateMaybeMessage<::tensorflow::GraphDef>(Arena*);
55 PROTOBUF_NAMESPACE_CLOSE
56 namespace tensorflow {
57 
58 // ===================================================================
59 
60 class GraphDef final :
61     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.GraphDef) */ {
62  public:
GraphDef()63   inline GraphDef() : GraphDef(nullptr) {}
64   ~GraphDef() override;
65   explicit PROTOBUF_CONSTEXPR GraphDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 
67   GraphDef(const GraphDef& from);
GraphDef(GraphDef && from)68   GraphDef(GraphDef&& from) noexcept
69     : GraphDef() {
70     *this = ::std::move(from);
71   }
72 
73   inline GraphDef& operator=(const GraphDef& from) {
74     if (this == &from) return *this;
75     CopyFrom(from);
76     return *this;
77   }
78   inline GraphDef& operator=(GraphDef&& from) noexcept {
79     if (this == &from) return *this;
80     if (GetOwningArena() == from.GetOwningArena()
81   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82         && GetOwningArena() != nullptr
83   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
84     ) {
85       InternalSwap(&from);
86     } else {
87       CopyFrom(from);
88     }
89     return *this;
90   }
91 
default_instance()92   static const GraphDef& default_instance() {
93     return *internal_default_instance();
94   }
internal_default_instance()95   static inline const GraphDef* internal_default_instance() {
96     return reinterpret_cast<const GraphDef*>(
97                &_GraphDef_default_instance_);
98   }
99   static constexpr int kIndexInFileMessages =
100     0;
101 
swap(GraphDef & a,GraphDef & b)102   friend void swap(GraphDef& a, GraphDef& b) {
103     a.Swap(&b);
104   }
Swap(GraphDef * other)105   inline void Swap(GraphDef* other) {
106     if (other == this) return;
107   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
108     if (GetOwningArena() != nullptr &&
109         GetOwningArena() == other->GetOwningArena()) {
110    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
111     if (GetOwningArena() == other->GetOwningArena()) {
112   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
113       InternalSwap(other);
114     } else {
115       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
116     }
117   }
118   void UnsafeArenaSwap(GraphDef* other) {
119     if (other == this) return;
120     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
121     InternalSwap(other);
122   }
123 
124   // implements Message ----------------------------------------------
125 
126   GraphDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
127     return CreateMaybeMessage<GraphDef>(arena);
128   }
129   GraphDef* New() const {
130     return New(nullptr);
131   }
132   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
133   void CopyFrom(const GraphDef& from);
134   void MergeFrom(const GraphDef& from);
135   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
136   bool IsInitialized() const final;
137 
138   size_t ByteSizeLong() const final;
139   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
140   ::uint8_t* _InternalSerialize(
141       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
142   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
143 
144   private:
145   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
146   void SharedDtor();
147   void SetCachedSize(int size) const;
148   void InternalSwap(GraphDef* other);
149 
150   private:
151   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
152   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
153     return "tensorflow.GraphDef";
154   }
155   protected:
156   explicit GraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
157                        bool is_message_owned = false);
158   public:
159 
160   std::string GetTypeName() const final;
161 
162   // nested types ----------------------------------------------------
163 
164   // accessors -------------------------------------------------------
165 
166   enum : int {
167     kNodeFieldNumber = 1,
168     kLibraryFieldNumber = 2,
169     kVersionsFieldNumber = 4,
170     kVersionFieldNumber = 3,
171   };
172   // repeated .tensorflow.NodeDef node = 1;
173   int node_size() const;
174   private:
175   int _internal_node_size() const;
176   public:
177   void clear_node();
178   ::tensorflow::NodeDef* mutable_node(int index);
179   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >*
180       mutable_node();
181   private:
182   const ::tensorflow::NodeDef& _internal_node(int index) const;
183   ::tensorflow::NodeDef* _internal_add_node();
184   public:
185   const ::tensorflow::NodeDef& node(int index) const;
186   ::tensorflow::NodeDef* add_node();
187   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >&
188       node() const;
189 
190   // .tensorflow.FunctionDefLibrary library = 2;
191   bool has_library() const;
192   private:
193   bool _internal_has_library() const;
194   public:
195   void clear_library();
196   const ::tensorflow::FunctionDefLibrary& library() const;
197   PROTOBUF_NODISCARD ::tensorflow::FunctionDefLibrary* release_library();
198   ::tensorflow::FunctionDefLibrary* mutable_library();
199   void set_allocated_library(::tensorflow::FunctionDefLibrary* library);
200   private:
201   const ::tensorflow::FunctionDefLibrary& _internal_library() const;
202   ::tensorflow::FunctionDefLibrary* _internal_mutable_library();
203   public:
204   void unsafe_arena_set_allocated_library(
205       ::tensorflow::FunctionDefLibrary* library);
206   ::tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
207 
208   // .tensorflow.VersionDef versions = 4;
209   bool has_versions() const;
210   private:
211   bool _internal_has_versions() const;
212   public:
213   void clear_versions();
214   const ::tensorflow::VersionDef& versions() const;
215   PROTOBUF_NODISCARD ::tensorflow::VersionDef* release_versions();
216   ::tensorflow::VersionDef* mutable_versions();
217   void set_allocated_versions(::tensorflow::VersionDef* versions);
218   private:
219   const ::tensorflow::VersionDef& _internal_versions() const;
220   ::tensorflow::VersionDef* _internal_mutable_versions();
221   public:
222   void unsafe_arena_set_allocated_versions(
223       ::tensorflow::VersionDef* versions);
224   ::tensorflow::VersionDef* unsafe_arena_release_versions();
225 
226   // int32 version = 3 [deprecated = true];
227   PROTOBUF_DEPRECATED void clear_version();
228   PROTOBUF_DEPRECATED ::int32_t version() const;
229   PROTOBUF_DEPRECATED void set_version(::int32_t value);
230   private:
231   ::int32_t _internal_version() const;
232   void _internal_set_version(::int32_t value);
233   public:
234 
235   // @@protoc_insertion_point(class_scope:tensorflow.GraphDef)
236  private:
237   class _Internal;
238 
239   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240   typedef void InternalArenaConstructable_;
241   typedef void DestructorSkippable_;
242   struct Impl_ {
243     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef > node_;
244     ::tensorflow::FunctionDefLibrary* library_;
245     ::tensorflow::VersionDef* versions_;
246     ::int32_t version_;
247     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
248   };
249   union { Impl_ _impl_; };
250   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fgraph_2eproto;
251 };
252 // ===================================================================
253 
254 
255 // ===================================================================
256 
257 #ifdef __GNUC__
258   #pragma GCC diagnostic push
259   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
260 #endif  // __GNUC__
261 // GraphDef
262 
263 // repeated .tensorflow.NodeDef node = 1;
_internal_node_size()264 inline int GraphDef::_internal_node_size() const {
265   return _impl_.node_.size();
266 }
node_size()267 inline int GraphDef::node_size() const {
268   return _internal_node_size();
269 }
mutable_node(int index)270 inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) {
271   // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node)
272   return _impl_.node_.Mutable(index);
273 }
274 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >*
mutable_node()275 GraphDef::mutable_node() {
276   // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node)
277   return &_impl_.node_;
278 }
_internal_node(int index)279 inline const ::tensorflow::NodeDef& GraphDef::_internal_node(int index) const {
280   return _impl_.node_.Get(index);
281 }
node(int index)282 inline const ::tensorflow::NodeDef& GraphDef::node(int index) const {
283   // @@protoc_insertion_point(field_get:tensorflow.GraphDef.node)
284   return _internal_node(index);
285 }
_internal_add_node()286 inline ::tensorflow::NodeDef* GraphDef::_internal_add_node() {
287   return _impl_.node_.Add();
288 }
add_node()289 inline ::tensorflow::NodeDef* GraphDef::add_node() {
290   ::tensorflow::NodeDef* _add = _internal_add_node();
291   // @@protoc_insertion_point(field_add:tensorflow.GraphDef.node)
292   return _add;
293 }
294 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >&
node()295 GraphDef::node() const {
296   // @@protoc_insertion_point(field_list:tensorflow.GraphDef.node)
297   return _impl_.node_;
298 }
299 
300 // .tensorflow.VersionDef versions = 4;
_internal_has_versions()301 inline bool GraphDef::_internal_has_versions() const {
302   return this != internal_default_instance() && _impl_.versions_ != nullptr;
303 }
has_versions()304 inline bool GraphDef::has_versions() const {
305   return _internal_has_versions();
306 }
_internal_versions()307 inline const ::tensorflow::VersionDef& GraphDef::_internal_versions() const {
308   const ::tensorflow::VersionDef* p = _impl_.versions_;
309   return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::VersionDef&>(
310       ::tensorflow::_VersionDef_default_instance_);
311 }
versions()312 inline const ::tensorflow::VersionDef& GraphDef::versions() const {
313   // @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions)
314   return _internal_versions();
315 }
unsafe_arena_set_allocated_versions(::tensorflow::VersionDef * versions)316 inline void GraphDef::unsafe_arena_set_allocated_versions(
317     ::tensorflow::VersionDef* versions) {
318   if (GetArenaForAllocation() == nullptr) {
319     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.versions_);
320   }
321   _impl_.versions_ = versions;
322   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.versions)
323 }
release_versions()324 inline ::tensorflow::VersionDef* GraphDef::release_versions() {
325 
326   ::tensorflow::VersionDef* temp = _impl_.versions_;
327   _impl_.versions_ = nullptr;
328 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
329   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
330   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
331   if (GetArenaForAllocation() == nullptr) { delete old; }
332 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
333   if (GetArenaForAllocation() != nullptr) {
334     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
335   }
336 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
337   return temp;
338 }
unsafe_arena_release_versions()339 inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
340   // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions)
341 
342   ::tensorflow::VersionDef* temp = _impl_.versions_;
343   _impl_.versions_ = nullptr;
344   return temp;
345 }
_internal_mutable_versions()346 inline ::tensorflow::VersionDef* GraphDef::_internal_mutable_versions() {
347 
348   if (_impl_.versions_ == nullptr) {
349     auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaForAllocation());
350     _impl_.versions_ = p;
351   }
352   return _impl_.versions_;
353 }
mutable_versions()354 inline ::tensorflow::VersionDef* GraphDef::mutable_versions() {
355   ::tensorflow::VersionDef* _msg = _internal_mutable_versions();
356   // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions)
357   return _msg;
358 }
set_allocated_versions(::tensorflow::VersionDef * versions)359 inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) {
360   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
361   if (message_arena == nullptr) {
362     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.versions_);
363   }
364   if (versions) {
365     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
366         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
367                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions));
368     if (message_arena != submessage_arena) {
369       versions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
370           message_arena, versions, submessage_arena);
371     }
372 
373   } else {
374 
375   }
376   _impl_.versions_ = versions;
377   // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions)
378 }
379 
380 // int32 version = 3 [deprecated = true];
clear_version()381 inline void GraphDef::clear_version() {
382   _impl_.version_ = 0;
383 }
_internal_version()384 inline ::int32_t GraphDef::_internal_version() const {
385   return _impl_.version_;
386 }
version()387 inline ::int32_t GraphDef::version() const {
388   // @@protoc_insertion_point(field_get:tensorflow.GraphDef.version)
389   return _internal_version();
390 }
_internal_set_version(::int32_t value)391 inline void GraphDef::_internal_set_version(::int32_t value) {
392 
393   _impl_.version_ = value;
394 }
set_version(::int32_t value)395 inline void GraphDef::set_version(::int32_t value) {
396   _internal_set_version(value);
397   // @@protoc_insertion_point(field_set:tensorflow.GraphDef.version)
398 }
399 
400 // .tensorflow.FunctionDefLibrary library = 2;
_internal_has_library()401 inline bool GraphDef::_internal_has_library() const {
402   return this != internal_default_instance() && _impl_.library_ != nullptr;
403 }
has_library()404 inline bool GraphDef::has_library() const {
405   return _internal_has_library();
406 }
_internal_library()407 inline const ::tensorflow::FunctionDefLibrary& GraphDef::_internal_library() const {
408   const ::tensorflow::FunctionDefLibrary* p = _impl_.library_;
409   return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::FunctionDefLibrary&>(
410       ::tensorflow::_FunctionDefLibrary_default_instance_);
411 }
library()412 inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const {
413   // @@protoc_insertion_point(field_get:tensorflow.GraphDef.library)
414   return _internal_library();
415 }
unsafe_arena_set_allocated_library(::tensorflow::FunctionDefLibrary * library)416 inline void GraphDef::unsafe_arena_set_allocated_library(
417     ::tensorflow::FunctionDefLibrary* library) {
418   if (GetArenaForAllocation() == nullptr) {
419     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.library_);
420   }
421   _impl_.library_ = library;
422   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.library)
423 }
release_library()424 inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() {
425 
426   ::tensorflow::FunctionDefLibrary* temp = _impl_.library_;
427   _impl_.library_ = nullptr;
428 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
429   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
430   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
431   if (GetArenaForAllocation() == nullptr) { delete old; }
432 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
433   if (GetArenaForAllocation() != nullptr) {
434     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
435   }
436 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
437   return temp;
438 }
unsafe_arena_release_library()439 inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
440   // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library)
441 
442   ::tensorflow::FunctionDefLibrary* temp = _impl_.library_;
443   _impl_.library_ = nullptr;
444   return temp;
445 }
_internal_mutable_library()446 inline ::tensorflow::FunctionDefLibrary* GraphDef::_internal_mutable_library() {
447 
448   if (_impl_.library_ == nullptr) {
449     auto* p = CreateMaybeMessage<::tensorflow::FunctionDefLibrary>(GetArenaForAllocation());
450     _impl_.library_ = p;
451   }
452   return _impl_.library_;
453 }
mutable_library()454 inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
455   ::tensorflow::FunctionDefLibrary* _msg = _internal_mutable_library();
456   // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library)
457   return _msg;
458 }
set_allocated_library(::tensorflow::FunctionDefLibrary * library)459 inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) {
460   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
461   if (message_arena == nullptr) {
462     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.library_);
463   }
464   if (library) {
465     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
466         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
467                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library));
468     if (message_arena != submessage_arena) {
469       library = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470           message_arena, library, submessage_arena);
471     }
472 
473   } else {
474 
475   }
476   _impl_.library_ = library;
477   // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library)
478 }
479 
480 #ifdef __GNUC__
481   #pragma GCC diagnostic pop
482 #endif  // __GNUC__
483 
484 // @@protoc_insertion_point(namespace_scope)
485 
486 }  // namespace tensorflow
487 
488 // @@protoc_insertion_point(global_scope)
489 
490 #include <google/protobuf/port_undef.inc>
491 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto
492