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 <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/unknown_field_set.h> |
35 | #include "tensorflow/core/framework/function.pb.h" |
36 | #include "tensorflow/core/framework/node_def.pb.h" |
37 | #include "tensorflow/core/framework/versions.pb.h" |
38 | // @@protoc_insertion_point(includes) |
39 | #include <google/protobuf/port_def.inc> |
40 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fgraph_2eproto |
41 | PROTOBUF_NAMESPACE_OPEN |
42 | namespace internal { |
43 | class AnyMetadata; |
44 | } // namespace internal |
45 | PROTOBUF_NAMESPACE_CLOSE |
46 | |
47 | // Internal implementation detail -- do not use these members. |
48 | struct TableStruct_tensorflow_2fcore_2fframework_2fgraph_2eproto { |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
54 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
56 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
57 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
58 | }; |
59 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto; |
60 | namespace tensorflow { |
61 | class GraphDef; |
62 | class GraphDefDefaultTypeInternal; |
63 | extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; |
64 | } // namespace tensorflow |
65 | PROTOBUF_NAMESPACE_OPEN |
66 | template<> ::tensorflow::GraphDef* Arena::CreateMaybeMessage<::tensorflow::GraphDef>(Arena*); |
67 | PROTOBUF_NAMESPACE_CLOSE |
68 | namespace tensorflow { |
69 | |
70 | // =================================================================== |
71 | |
72 | class GraphDef : |
73 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphDef) */ { |
74 | public: |
75 | GraphDef(); |
76 | virtual ~GraphDef(); |
77 | |
78 | GraphDef(const GraphDef& from); |
79 | GraphDef(GraphDef&& from) noexcept |
80 | : GraphDef() { |
81 | *this = ::std::move(from); |
82 | } |
83 | |
84 | inline GraphDef& operator=(const GraphDef& from) { |
85 | CopyFrom(from); |
86 | return *this; |
87 | } |
88 | inline GraphDef& operator=(GraphDef&& from) noexcept { |
89 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
90 | if (this != &from) InternalSwap(&from); |
91 | } else { |
92 | CopyFrom(from); |
93 | } |
94 | return *this; |
95 | } |
96 | |
97 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
98 | return GetArenaNoVirtual(); |
99 | } |
100 | inline void* GetMaybeArenaPointer() const final { |
101 | return MaybeArenaPtr(); |
102 | } |
103 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
104 | return GetDescriptor(); |
105 | } |
106 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
107 | return GetMetadataStatic().descriptor; |
108 | } |
109 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
110 | return GetMetadataStatic().reflection; |
111 | } |
112 | static const GraphDef& default_instance(); |
113 | |
114 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
115 | static inline const GraphDef* internal_default_instance() { |
116 | return reinterpret_cast<const GraphDef*>( |
117 | &_GraphDef_default_instance_); |
118 | } |
119 | static constexpr int kIndexInFileMessages = |
120 | 0; |
121 | |
122 | friend void swap(GraphDef& a, GraphDef& b) { |
123 | a.Swap(&b); |
124 | } |
125 | inline void Swap(GraphDef* other) { |
126 | if (other == this) return; |
127 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
128 | InternalSwap(other); |
129 | } else { |
130 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
131 | } |
132 | } |
133 | void UnsafeArenaSwap(GraphDef* other) { |
134 | if (other == this) return; |
135 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
136 | InternalSwap(other); |
137 | } |
138 | |
139 | // implements Message ---------------------------------------------- |
140 | |
141 | inline GraphDef* New() const final { |
142 | return CreateMaybeMessage<GraphDef>(nullptr); |
143 | } |
144 | |
145 | GraphDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
146 | return CreateMaybeMessage<GraphDef>(arena); |
147 | } |
148 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
149 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
150 | void CopyFrom(const GraphDef& from); |
151 | void MergeFrom(const GraphDef& from); |
152 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
153 | bool IsInitialized() const final; |
154 | |
155 | size_t ByteSizeLong() const final; |
156 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
157 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
158 | #else |
159 | bool MergePartialFromCodedStream( |
160 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
161 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
162 | void SerializeWithCachedSizes( |
163 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
164 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
165 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
166 | int GetCachedSize() const final { return _cached_size_.Get(); } |
167 | |
168 | private: |
169 | inline void SharedCtor(); |
170 | inline void SharedDtor(); |
171 | void SetCachedSize(int size) const final; |
172 | void InternalSwap(GraphDef* other); |
173 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
174 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
175 | return "tensorflow.GraphDef" ; |
176 | } |
177 | protected: |
178 | explicit GraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
179 | private: |
180 | static void ArenaDtor(void* object); |
181 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
182 | private: |
183 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
184 | return _internal_metadata_.arena(); |
185 | } |
186 | inline void* MaybeArenaPtr() const { |
187 | return _internal_metadata_.raw_arena_ptr(); |
188 | } |
189 | public: |
190 | |
191 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
192 | private: |
193 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
194 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto); |
195 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
196 | } |
197 | |
198 | public: |
199 | |
200 | // nested types ---------------------------------------------------- |
201 | |
202 | // accessors ------------------------------------------------------- |
203 | |
204 | enum : int { |
205 | kNodeFieldNumber = 1, |
206 | kLibraryFieldNumber = 2, |
207 | kVersionsFieldNumber = 4, |
208 | kVersionFieldNumber = 3, |
209 | }; |
210 | // repeated .tensorflow.NodeDef node = 1; |
211 | int node_size() const; |
212 | void clear_node(); |
213 | ::tensorflow::NodeDef* mutable_node(int index); |
214 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >* |
215 | mutable_node(); |
216 | const ::tensorflow::NodeDef& node(int index) const; |
217 | ::tensorflow::NodeDef* add_node(); |
218 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >& |
219 | node() const; |
220 | |
221 | // .tensorflow.FunctionDefLibrary library = 2; |
222 | bool has_library() const; |
223 | void clear_library(); |
224 | const ::tensorflow::FunctionDefLibrary& library() const; |
225 | ::tensorflow::FunctionDefLibrary* release_library(); |
226 | ::tensorflow::FunctionDefLibrary* mutable_library(); |
227 | void set_allocated_library(::tensorflow::FunctionDefLibrary* library); |
228 | void unsafe_arena_set_allocated_library( |
229 | ::tensorflow::FunctionDefLibrary* library); |
230 | ::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); |
231 | |
232 | // .tensorflow.VersionDef versions = 4; |
233 | bool has_versions() const; |
234 | void clear_versions(); |
235 | const ::tensorflow::VersionDef& versions() const; |
236 | ::tensorflow::VersionDef* release_versions(); |
237 | ::tensorflow::VersionDef* mutable_versions(); |
238 | void set_allocated_versions(::tensorflow::VersionDef* versions); |
239 | void unsafe_arena_set_allocated_versions( |
240 | ::tensorflow::VersionDef* versions); |
241 | ::tensorflow::VersionDef* unsafe_arena_release_versions(); |
242 | |
243 | // int32 version = 3 [deprecated = true]; |
244 | PROTOBUF_DEPRECATED void clear_version(); |
245 | PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::int32 version() const; |
246 | PROTOBUF_DEPRECATED void set_version(::PROTOBUF_NAMESPACE_ID::int32 value); |
247 | |
248 | // @@protoc_insertion_point(class_scope:tensorflow.GraphDef) |
249 | private: |
250 | class _Internal; |
251 | |
252 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
253 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
254 | typedef void InternalArenaConstructable_; |
255 | typedef void DestructorSkippable_; |
256 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef > node_; |
257 | ::tensorflow::FunctionDefLibrary* library_; |
258 | ::tensorflow::VersionDef* versions_; |
259 | ::PROTOBUF_NAMESPACE_ID::int32 version_; |
260 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
261 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fgraph_2eproto; |
262 | }; |
263 | // =================================================================== |
264 | |
265 | |
266 | // =================================================================== |
267 | |
268 | #ifdef __GNUC__ |
269 | #pragma GCC diagnostic push |
270 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
271 | #endif // __GNUC__ |
272 | // GraphDef |
273 | |
274 | // repeated .tensorflow.NodeDef node = 1; |
275 | inline int GraphDef::node_size() const { |
276 | return node_.size(); |
277 | } |
278 | inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) { |
279 | // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node) |
280 | return node_.Mutable(index); |
281 | } |
282 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >* |
283 | GraphDef::mutable_node() { |
284 | // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node) |
285 | return &node_; |
286 | } |
287 | inline const ::tensorflow::NodeDef& GraphDef::node(int index) const { |
288 | // @@protoc_insertion_point(field_get:tensorflow.GraphDef.node) |
289 | return node_.Get(index); |
290 | } |
291 | inline ::tensorflow::NodeDef* GraphDef::add_node() { |
292 | // @@protoc_insertion_point(field_add:tensorflow.GraphDef.node) |
293 | return node_.Add(); |
294 | } |
295 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >& |
296 | GraphDef::node() const { |
297 | // @@protoc_insertion_point(field_list:tensorflow.GraphDef.node) |
298 | return node_; |
299 | } |
300 | |
301 | // .tensorflow.VersionDef versions = 4; |
302 | inline bool GraphDef::has_versions() const { |
303 | return this != internal_default_instance() && versions_ != nullptr; |
304 | } |
305 | inline const ::tensorflow::VersionDef& GraphDef::versions() const { |
306 | const ::tensorflow::VersionDef* p = versions_; |
307 | // @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions) |
308 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( |
309 | &::tensorflow::_VersionDef_default_instance_); |
310 | } |
311 | inline ::tensorflow::VersionDef* GraphDef::release_versions() { |
312 | // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) |
313 | |
314 | ::tensorflow::VersionDef* temp = versions_; |
315 | if (GetArenaNoVirtual() != nullptr) { |
316 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
317 | } |
318 | versions_ = nullptr; |
319 | return temp; |
320 | } |
321 | inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { |
322 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions) |
323 | |
324 | ::tensorflow::VersionDef* temp = versions_; |
325 | versions_ = nullptr; |
326 | return temp; |
327 | } |
328 | inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { |
329 | |
330 | if (versions_ == nullptr) { |
331 | auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaNoVirtual()); |
332 | versions_ = p; |
333 | } |
334 | // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions) |
335 | return versions_; |
336 | } |
337 | inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { |
338 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
339 | if (message_arena == nullptr) { |
340 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_); |
341 | } |
342 | if (versions) { |
343 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
344 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions)->GetArena(); |
345 | if (message_arena != submessage_arena) { |
346 | versions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
347 | message_arena, versions, submessage_arena); |
348 | } |
349 | |
350 | } else { |
351 | |
352 | } |
353 | versions_ = versions; |
354 | // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions) |
355 | } |
356 | |
357 | // int32 version = 3 [deprecated = true]; |
358 | inline void GraphDef::clear_version() { |
359 | version_ = 0; |
360 | } |
361 | inline ::PROTOBUF_NAMESPACE_ID::int32 GraphDef::version() const { |
362 | // @@protoc_insertion_point(field_get:tensorflow.GraphDef.version) |
363 | return version_; |
364 | } |
365 | inline void GraphDef::set_version(::PROTOBUF_NAMESPACE_ID::int32 value) { |
366 | |
367 | version_ = value; |
368 | // @@protoc_insertion_point(field_set:tensorflow.GraphDef.version) |
369 | } |
370 | |
371 | // .tensorflow.FunctionDefLibrary library = 2; |
372 | inline bool GraphDef::has_library() const { |
373 | return this != internal_default_instance() && library_ != nullptr; |
374 | } |
375 | inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { |
376 | const ::tensorflow::FunctionDefLibrary* p = library_; |
377 | // @@protoc_insertion_point(field_get:tensorflow.GraphDef.library) |
378 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FunctionDefLibrary*>( |
379 | &::tensorflow::_FunctionDefLibrary_default_instance_); |
380 | } |
381 | inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { |
382 | // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) |
383 | |
384 | ::tensorflow::FunctionDefLibrary* temp = library_; |
385 | if (GetArenaNoVirtual() != nullptr) { |
386 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
387 | } |
388 | library_ = nullptr; |
389 | return temp; |
390 | } |
391 | inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { |
392 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library) |
393 | |
394 | ::tensorflow::FunctionDefLibrary* temp = library_; |
395 | library_ = nullptr; |
396 | return temp; |
397 | } |
398 | inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { |
399 | |
400 | if (library_ == nullptr) { |
401 | auto* p = CreateMaybeMessage<::tensorflow::FunctionDefLibrary>(GetArenaNoVirtual()); |
402 | library_ = p; |
403 | } |
404 | // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library) |
405 | return library_; |
406 | } |
407 | inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { |
408 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
409 | if (message_arena == nullptr) { |
410 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(library_); |
411 | } |
412 | if (library) { |
413 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
414 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library)->GetArena(); |
415 | if (message_arena != submessage_arena) { |
416 | library = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
417 | message_arena, library, submessage_arena); |
418 | } |
419 | |
420 | } else { |
421 | |
422 | } |
423 | library_ = library; |
424 | // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library) |
425 | } |
426 | |
427 | #ifdef __GNUC__ |
428 | #pragma GCC diagnostic pop |
429 | #endif // __GNUC__ |
430 | |
431 | // @@protoc_insertion_point(namespace_scope) |
432 | |
433 | } // namespace tensorflow |
434 | |
435 | // @@protoc_insertion_point(global_scope) |
436 | |
437 | #include <google/protobuf/port_undef.inc> |
438 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto |
439 | |