1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/framework/node_def.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_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/map.h> // IWYU pragma: export
35#include <google/protobuf/map_entry.h>
36#include <google/protobuf/map_field_inl.h>
37#include <google/protobuf/unknown_field_set.h>
38#include "tensorflow/core/framework/attr_value.pb.h"
39#include "tensorflow/core/framework/full_type.pb.h"
40// @@protoc_insertion_point(includes)
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto
43PROTOBUF_NAMESPACE_OPEN
44namespace internal {
45class AnyMetadata;
46} // namespace internal
47PROTOBUF_NAMESPACE_CLOSE
48
49// Internal implementation detail -- do not use these members.
50struct TableStruct_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto {
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
56 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
58 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
59 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
60};
61extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto;
62namespace tensorflow {
63class NodeDef;
64class NodeDefDefaultTypeInternal;
65extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;
66class NodeDef_AttrEntry_DoNotUse;
67class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;
68extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
69class NodeDef_ExperimentalDebugInfo;
70class NodeDef_ExperimentalDebugInfoDefaultTypeInternal;
71extern NodeDef_ExperimentalDebugInfoDefaultTypeInternal _NodeDef_ExperimentalDebugInfo_default_instance_;
72} // namespace tensorflow
73PROTOBUF_NAMESPACE_OPEN
74template<> ::tensorflow::NodeDef* Arena::CreateMaybeMessage<::tensorflow::NodeDef>(Arena*);
75template<> ::tensorflow::NodeDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::NodeDef_AttrEntry_DoNotUse>(Arena*);
76template<> ::tensorflow::NodeDef_ExperimentalDebugInfo* Arena::CreateMaybeMessage<::tensorflow::NodeDef_ExperimentalDebugInfo>(Arena*);
77PROTOBUF_NAMESPACE_CLOSE
78namespace tensorflow {
79
80// ===================================================================
81
82class NodeDef_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
83 std::string, ::tensorflow::AttrValue,
84 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
85 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
86 0 > {
87public:
88 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
89 std::string, ::tensorflow::AttrValue,
90 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
91 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
92 0 > SuperType;
93 NodeDef_AttrEntry_DoNotUse();
94 NodeDef_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
95 void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other);
96 static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); }
97 static bool ValidateKey(std::string* s) {
98 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.AttrEntry.key");
99 }
100 static bool ValidateValue(void*) { return true; }
101 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
102 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
103 private:
104 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
105 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto);
106 return ::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto.file_level_metadata[0];
107 }
108
109 public:
110};
111
112// -------------------------------------------------------------------
113
114class NodeDef_ExperimentalDebugInfo :
115 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeDef.ExperimentalDebugInfo) */ {
116 public:
117 NodeDef_ExperimentalDebugInfo();
118 virtual ~NodeDef_ExperimentalDebugInfo();
119
120 NodeDef_ExperimentalDebugInfo(const NodeDef_ExperimentalDebugInfo& from);
121 NodeDef_ExperimentalDebugInfo(NodeDef_ExperimentalDebugInfo&& from) noexcept
122 : NodeDef_ExperimentalDebugInfo() {
123 *this = ::std::move(from);
124 }
125
126 inline NodeDef_ExperimentalDebugInfo& operator=(const NodeDef_ExperimentalDebugInfo& from) {
127 CopyFrom(from);
128 return *this;
129 }
130 inline NodeDef_ExperimentalDebugInfo& operator=(NodeDef_ExperimentalDebugInfo&& from) noexcept {
131 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
132 if (this != &from) InternalSwap(&from);
133 } else {
134 CopyFrom(from);
135 }
136 return *this;
137 }
138
139 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
140 return GetArenaNoVirtual();
141 }
142 inline void* GetMaybeArenaPointer() const final {
143 return MaybeArenaPtr();
144 }
145 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
146 return GetDescriptor();
147 }
148 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
149 return GetMetadataStatic().descriptor;
150 }
151 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
152 return GetMetadataStatic().reflection;
153 }
154 static const NodeDef_ExperimentalDebugInfo& default_instance();
155
156 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
157 static inline const NodeDef_ExperimentalDebugInfo* internal_default_instance() {
158 return reinterpret_cast<const NodeDef_ExperimentalDebugInfo*>(
159 &_NodeDef_ExperimentalDebugInfo_default_instance_);
160 }
161 static constexpr int kIndexInFileMessages =
162 1;
163
164 friend void swap(NodeDef_ExperimentalDebugInfo& a, NodeDef_ExperimentalDebugInfo& b) {
165 a.Swap(&b);
166 }
167 inline void Swap(NodeDef_ExperimentalDebugInfo* other) {
168 if (other == this) return;
169 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
170 InternalSwap(other);
171 } else {
172 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
173 }
174 }
175 void UnsafeArenaSwap(NodeDef_ExperimentalDebugInfo* other) {
176 if (other == this) return;
177 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
178 InternalSwap(other);
179 }
180
181 // implements Message ----------------------------------------------
182
183 inline NodeDef_ExperimentalDebugInfo* New() const final {
184 return CreateMaybeMessage<NodeDef_ExperimentalDebugInfo>(nullptr);
185 }
186
187 NodeDef_ExperimentalDebugInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
188 return CreateMaybeMessage<NodeDef_ExperimentalDebugInfo>(arena);
189 }
190 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
191 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
192 void CopyFrom(const NodeDef_ExperimentalDebugInfo& from);
193 void MergeFrom(const NodeDef_ExperimentalDebugInfo& from);
194 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
195 bool IsInitialized() const final;
196
197 size_t ByteSizeLong() const final;
198 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
199 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
200 #else
201 bool MergePartialFromCodedStream(
202 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
203 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
204 void SerializeWithCachedSizes(
205 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
206 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
207 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
208 int GetCachedSize() const final { return _cached_size_.Get(); }
209
210 private:
211 inline void SharedCtor();
212 inline void SharedDtor();
213 void SetCachedSize(int size) const final;
214 void InternalSwap(NodeDef_ExperimentalDebugInfo* other);
215 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
216 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
217 return "tensorflow.NodeDef.ExperimentalDebugInfo";
218 }
219 protected:
220 explicit NodeDef_ExperimentalDebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena);
221 private:
222 static void ArenaDtor(void* object);
223 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
224 private:
225 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
226 return _internal_metadata_.arena();
227 }
228 inline void* MaybeArenaPtr() const {
229 return _internal_metadata_.raw_arena_ptr();
230 }
231 public:
232
233 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
234 private:
235 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
236 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto);
237 return ::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto.file_level_metadata[kIndexInFileMessages];
238 }
239
240 public:
241
242 // nested types ----------------------------------------------------
243
244 // accessors -------------------------------------------------------
245
246 enum : int {
247 kOriginalNodeNamesFieldNumber = 1,
248 kOriginalFuncNamesFieldNumber = 2,
249 };
250 // repeated string original_node_names = 1;
251 int original_node_names_size() const;
252 void clear_original_node_names();
253 const std::string& original_node_names(int index) const;
254 std::string* mutable_original_node_names(int index);
255 void set_original_node_names(int index, const std::string& value);
256 void set_original_node_names(int index, std::string&& value);
257 void set_original_node_names(int index, const char* value);
258 void set_original_node_names(int index, const char* value, size_t size);
259 std::string* add_original_node_names();
260 void add_original_node_names(const std::string& value);
261 void add_original_node_names(std::string&& value);
262 void add_original_node_names(const char* value);
263 void add_original_node_names(const char* value, size_t size);
264 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& original_node_names() const;
265 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_original_node_names();
266
267 // repeated string original_func_names = 2;
268 int original_func_names_size() const;
269 void clear_original_func_names();
270 const std::string& original_func_names(int index) const;
271 std::string* mutable_original_func_names(int index);
272 void set_original_func_names(int index, const std::string& value);
273 void set_original_func_names(int index, std::string&& value);
274 void set_original_func_names(int index, const char* value);
275 void set_original_func_names(int index, const char* value, size_t size);
276 std::string* add_original_func_names();
277 void add_original_func_names(const std::string& value);
278 void add_original_func_names(std::string&& value);
279 void add_original_func_names(const char* value);
280 void add_original_func_names(const char* value, size_t size);
281 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& original_func_names() const;
282 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_original_func_names();
283
284 // @@protoc_insertion_point(class_scope:tensorflow.NodeDef.ExperimentalDebugInfo)
285 private:
286 class _Internal;
287
288 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
289 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
290 typedef void InternalArenaConstructable_;
291 typedef void DestructorSkippable_;
292 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> original_node_names_;
293 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> original_func_names_;
294 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
295 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto;
296};
297// -------------------------------------------------------------------
298
299class NodeDef :
300 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeDef) */ {
301 public:
302 NodeDef();
303 virtual ~NodeDef();
304
305 NodeDef(const NodeDef& from);
306 NodeDef(NodeDef&& from) noexcept
307 : NodeDef() {
308 *this = ::std::move(from);
309 }
310
311 inline NodeDef& operator=(const NodeDef& from) {
312 CopyFrom(from);
313 return *this;
314 }
315 inline NodeDef& operator=(NodeDef&& from) noexcept {
316 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
317 if (this != &from) InternalSwap(&from);
318 } else {
319 CopyFrom(from);
320 }
321 return *this;
322 }
323
324 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
325 return GetArenaNoVirtual();
326 }
327 inline void* GetMaybeArenaPointer() const final {
328 return MaybeArenaPtr();
329 }
330 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
331 return GetDescriptor();
332 }
333 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
334 return GetMetadataStatic().descriptor;
335 }
336 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
337 return GetMetadataStatic().reflection;
338 }
339 static const NodeDef& default_instance();
340
341 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
342 static inline const NodeDef* internal_default_instance() {
343 return reinterpret_cast<const NodeDef*>(
344 &_NodeDef_default_instance_);
345 }
346 static constexpr int kIndexInFileMessages =
347 2;
348
349 friend void swap(NodeDef& a, NodeDef& b) {
350 a.Swap(&b);
351 }
352 inline void Swap(NodeDef* other) {
353 if (other == this) return;
354 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
355 InternalSwap(other);
356 } else {
357 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
358 }
359 }
360 void UnsafeArenaSwap(NodeDef* other) {
361 if (other == this) return;
362 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
363 InternalSwap(other);
364 }
365
366 // implements Message ----------------------------------------------
367
368 inline NodeDef* New() const final {
369 return CreateMaybeMessage<NodeDef>(nullptr);
370 }
371
372 NodeDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
373 return CreateMaybeMessage<NodeDef>(arena);
374 }
375 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
376 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
377 void CopyFrom(const NodeDef& from);
378 void MergeFrom(const NodeDef& from);
379 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
380 bool IsInitialized() const final;
381
382 size_t ByteSizeLong() const final;
383 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
384 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
385 #else
386 bool MergePartialFromCodedStream(
387 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
388 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
389 void SerializeWithCachedSizes(
390 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
391 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
392 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
393 int GetCachedSize() const final { return _cached_size_.Get(); }
394
395 private:
396 inline void SharedCtor();
397 inline void SharedDtor();
398 void SetCachedSize(int size) const final;
399 void InternalSwap(NodeDef* other);
400 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
401 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
402 return "tensorflow.NodeDef";
403 }
404 protected:
405 explicit NodeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena);
406 private:
407 static void ArenaDtor(void* object);
408 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
409 private:
410 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
411 return _internal_metadata_.arena();
412 }
413 inline void* MaybeArenaPtr() const {
414 return _internal_metadata_.raw_arena_ptr();
415 }
416 public:
417
418 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
419 private:
420 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
421 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto);
422 return ::descriptor_table_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto.file_level_metadata[kIndexInFileMessages];
423 }
424
425 public:
426
427 // nested types ----------------------------------------------------
428
429 typedef NodeDef_ExperimentalDebugInfo ExperimentalDebugInfo;
430
431 // accessors -------------------------------------------------------
432
433 enum : int {
434 kInputFieldNumber = 3,
435 kAttrFieldNumber = 5,
436 kNameFieldNumber = 1,
437 kOpFieldNumber = 2,
438 kDeviceFieldNumber = 4,
439 kExperimentalDebugInfoFieldNumber = 6,
440 kExperimentalTypeFieldNumber = 7,
441 };
442 // repeated string input = 3;
443 int input_size() const;
444 void clear_input();
445 const std::string& input(int index) const;
446 std::string* mutable_input(int index);
447 void set_input(int index, const std::string& value);
448 void set_input(int index, std::string&& value);
449 void set_input(int index, const char* value);
450 void set_input(int index, const char* value, size_t size);
451 std::string* add_input();
452 void add_input(const std::string& value);
453 void add_input(std::string&& value);
454 void add_input(const char* value);
455 void add_input(const char* value, size_t size);
456 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
457 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
458
459 // map<string, .tensorflow.AttrValue> attr = 5;
460 int attr_size() const;
461 void clear_attr();
462 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
463 attr() const;
464 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
465 mutable_attr();
466
467 // string name = 1;
468 void clear_name();
469 const std::string& name() const;
470 void set_name(const std::string& value);
471 void set_name(std::string&& value);
472 void set_name(const char* value);
473 void set_name(const char* value, size_t size);
474 std::string* mutable_name();
475 std::string* release_name();
476 void set_allocated_name(std::string* name);
477 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
478 " string fields are deprecated and will be removed in a"
479 " future release.")
480 std::string* unsafe_arena_release_name();
481 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
482 " string fields are deprecated and will be removed in a"
483 " future release.")
484 void unsafe_arena_set_allocated_name(
485 std::string* name);
486
487 // string op = 2;
488 void clear_op();
489 const std::string& op() const;
490 void set_op(const std::string& value);
491 void set_op(std::string&& value);
492 void set_op(const char* value);
493 void set_op(const char* value, size_t size);
494 std::string* mutable_op();
495 std::string* release_op();
496 void set_allocated_op(std::string* op);
497 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
498 " string fields are deprecated and will be removed in a"
499 " future release.")
500 std::string* unsafe_arena_release_op();
501 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
502 " string fields are deprecated and will be removed in a"
503 " future release.")
504 void unsafe_arena_set_allocated_op(
505 std::string* op);
506
507 // string device = 4;
508 void clear_device();
509 const std::string& device() const;
510 void set_device(const std::string& value);
511 void set_device(std::string&& value);
512 void set_device(const char* value);
513 void set_device(const char* value, size_t size);
514 std::string* mutable_device();
515 std::string* release_device();
516 void set_allocated_device(std::string* device);
517 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
518 " string fields are deprecated and will be removed in a"
519 " future release.")
520 std::string* unsafe_arena_release_device();
521 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
522 " string fields are deprecated and will be removed in a"
523 " future release.")
524 void unsafe_arena_set_allocated_device(
525 std::string* device);
526
527 // .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6;
528 bool has_experimental_debug_info() const;
529 void clear_experimental_debug_info();
530 const ::tensorflow::NodeDef_ExperimentalDebugInfo& experimental_debug_info() const;
531 ::tensorflow::NodeDef_ExperimentalDebugInfo* release_experimental_debug_info();
532 ::tensorflow::NodeDef_ExperimentalDebugInfo* mutable_experimental_debug_info();
533 void set_allocated_experimental_debug_info(::tensorflow::NodeDef_ExperimentalDebugInfo* experimental_debug_info);
534 void unsafe_arena_set_allocated_experimental_debug_info(
535 ::tensorflow::NodeDef_ExperimentalDebugInfo* experimental_debug_info);
536 ::tensorflow::NodeDef_ExperimentalDebugInfo* unsafe_arena_release_experimental_debug_info();
537
538 // .tensorflow.FullTypeDef experimental_type = 7;
539 bool has_experimental_type() const;
540 void clear_experimental_type();
541 const ::tensorflow::FullTypeDef& experimental_type() const;
542 ::tensorflow::FullTypeDef* release_experimental_type();
543 ::tensorflow::FullTypeDef* mutable_experimental_type();
544 void set_allocated_experimental_type(::tensorflow::FullTypeDef* experimental_type);
545 void unsafe_arena_set_allocated_experimental_type(
546 ::tensorflow::FullTypeDef* experimental_type);
547 ::tensorflow::FullTypeDef* unsafe_arena_release_experimental_type();
548
549 // @@protoc_insertion_point(class_scope:tensorflow.NodeDef)
550 private:
551 class _Internal;
552
553 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
554 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
555 typedef void InternalArenaConstructable_;
556 typedef void DestructorSkippable_;
557 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
558 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
559 NodeDef_AttrEntry_DoNotUse,
560 std::string, ::tensorflow::AttrValue,
561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
562 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
563 0 > attr_;
564 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
565 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_;
566 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
567 ::tensorflow::NodeDef_ExperimentalDebugInfo* experimental_debug_info_;
568 ::tensorflow::FullTypeDef* experimental_type_;
569 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
570 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto;
571};
572// ===================================================================
573
574
575// ===================================================================
576
577#ifdef __GNUC__
578 #pragma GCC diagnostic push
579 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
580#endif // __GNUC__
581// -------------------------------------------------------------------
582
583// NodeDef_ExperimentalDebugInfo
584
585// repeated string original_node_names = 1;
586inline int NodeDef_ExperimentalDebugInfo::original_node_names_size() const {
587 return original_node_names_.size();
588}
589inline void NodeDef_ExperimentalDebugInfo::clear_original_node_names() {
590 original_node_names_.Clear();
591}
592inline const std::string& NodeDef_ExperimentalDebugInfo::original_node_names(int index) const {
593 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
594 return original_node_names_.Get(index);
595}
596inline std::string* NodeDef_ExperimentalDebugInfo::mutable_original_node_names(int index) {
597 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
598 return original_node_names_.Mutable(index);
599}
600inline void NodeDef_ExperimentalDebugInfo::set_original_node_names(int index, const std::string& value) {
601 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
602 original_node_names_.Mutable(index)->assign(value);
603}
604inline void NodeDef_ExperimentalDebugInfo::set_original_node_names(int index, std::string&& value) {
605 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
606 original_node_names_.Mutable(index)->assign(std::move(value));
607}
608inline void NodeDef_ExperimentalDebugInfo::set_original_node_names(int index, const char* value) {
609 GOOGLE_DCHECK(value != nullptr);
610 original_node_names_.Mutable(index)->assign(value);
611 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
612}
613inline void NodeDef_ExperimentalDebugInfo::set_original_node_names(int index, const char* value, size_t size) {
614 original_node_names_.Mutable(index)->assign(
615 reinterpret_cast<const char*>(value), size);
616 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
617}
618inline std::string* NodeDef_ExperimentalDebugInfo::add_original_node_names() {
619 // @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
620 return original_node_names_.Add();
621}
622inline void NodeDef_ExperimentalDebugInfo::add_original_node_names(const std::string& value) {
623 original_node_names_.Add()->assign(value);
624 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
625}
626inline void NodeDef_ExperimentalDebugInfo::add_original_node_names(std::string&& value) {
627 original_node_names_.Add(std::move(value));
628 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
629}
630inline void NodeDef_ExperimentalDebugInfo::add_original_node_names(const char* value) {
631 GOOGLE_DCHECK(value != nullptr);
632 original_node_names_.Add()->assign(value);
633 // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
634}
635inline void NodeDef_ExperimentalDebugInfo::add_original_node_names(const char* value, size_t size) {
636 original_node_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
637 // @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
638}
639inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
640NodeDef_ExperimentalDebugInfo::original_node_names() const {
641 // @@protoc_insertion_point(field_list:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
642 return original_node_names_;
643}
644inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
645NodeDef_ExperimentalDebugInfo::mutable_original_node_names() {
646 // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.ExperimentalDebugInfo.original_node_names)
647 return &original_node_names_;
648}
649
650// repeated string original_func_names = 2;
651inline int NodeDef_ExperimentalDebugInfo::original_func_names_size() const {
652 return original_func_names_.size();
653}
654inline void NodeDef_ExperimentalDebugInfo::clear_original_func_names() {
655 original_func_names_.Clear();
656}
657inline const std::string& NodeDef_ExperimentalDebugInfo::original_func_names(int index) const {
658 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
659 return original_func_names_.Get(index);
660}
661inline std::string* NodeDef_ExperimentalDebugInfo::mutable_original_func_names(int index) {
662 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
663 return original_func_names_.Mutable(index);
664}
665inline void NodeDef_ExperimentalDebugInfo::set_original_func_names(int index, const std::string& value) {
666 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
667 original_func_names_.Mutable(index)->assign(value);
668}
669inline void NodeDef_ExperimentalDebugInfo::set_original_func_names(int index, std::string&& value) {
670 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
671 original_func_names_.Mutable(index)->assign(std::move(value));
672}
673inline void NodeDef_ExperimentalDebugInfo::set_original_func_names(int index, const char* value) {
674 GOOGLE_DCHECK(value != nullptr);
675 original_func_names_.Mutable(index)->assign(value);
676 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
677}
678inline void NodeDef_ExperimentalDebugInfo::set_original_func_names(int index, const char* value, size_t size) {
679 original_func_names_.Mutable(index)->assign(
680 reinterpret_cast<const char*>(value), size);
681 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
682}
683inline std::string* NodeDef_ExperimentalDebugInfo::add_original_func_names() {
684 // @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
685 return original_func_names_.Add();
686}
687inline void NodeDef_ExperimentalDebugInfo::add_original_func_names(const std::string& value) {
688 original_func_names_.Add()->assign(value);
689 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
690}
691inline void NodeDef_ExperimentalDebugInfo::add_original_func_names(std::string&& value) {
692 original_func_names_.Add(std::move(value));
693 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
694}
695inline void NodeDef_ExperimentalDebugInfo::add_original_func_names(const char* value) {
696 GOOGLE_DCHECK(value != nullptr);
697 original_func_names_.Add()->assign(value);
698 // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
699}
700inline void NodeDef_ExperimentalDebugInfo::add_original_func_names(const char* value, size_t size) {
701 original_func_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
702 // @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
703}
704inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
705NodeDef_ExperimentalDebugInfo::original_func_names() const {
706 // @@protoc_insertion_point(field_list:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
707 return original_func_names_;
708}
709inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
710NodeDef_ExperimentalDebugInfo::mutable_original_func_names() {
711 // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.ExperimentalDebugInfo.original_func_names)
712 return &original_func_names_;
713}
714
715// -------------------------------------------------------------------
716
717// NodeDef
718
719// string name = 1;
720inline void NodeDef::clear_name() {
721 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
722}
723inline const std::string& NodeDef::name() const {
724 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.name)
725 return name_.Get();
726}
727inline void NodeDef::set_name(const std::string& value) {
728
729 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
730 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.name)
731}
732inline void NodeDef::set_name(std::string&& value) {
733
734 name_.Set(
735 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
736 // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.name)
737}
738inline void NodeDef::set_name(const char* value) {
739 GOOGLE_DCHECK(value != nullptr);
740
741 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
742 GetArenaNoVirtual());
743 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.name)
744}
745inline void NodeDef::set_name(const char* value,
746 size_t size) {
747
748 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
749 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
750 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.name)
751}
752inline std::string* NodeDef::mutable_name() {
753
754 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.name)
755 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
756}
757inline std::string* NodeDef::release_name() {
758 // @@protoc_insertion_point(field_release:tensorflow.NodeDef.name)
759
760 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
761}
762inline void NodeDef::set_allocated_name(std::string* name) {
763 if (name != nullptr) {
764
765 } else {
766
767 }
768 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
769 GetArenaNoVirtual());
770 // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name)
771}
772inline std::string* NodeDef::unsafe_arena_release_name() {
773 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name)
774 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
775
776 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
777 GetArenaNoVirtual());
778}
779inline void NodeDef::unsafe_arena_set_allocated_name(
780 std::string* name) {
781 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
782 if (name != nullptr) {
783
784 } else {
785
786 }
787 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
788 name, GetArenaNoVirtual());
789 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name)
790}
791
792// string op = 2;
793inline void NodeDef::clear_op() {
794 op_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
795}
796inline const std::string& NodeDef::op() const {
797 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.op)
798 return op_.Get();
799}
800inline void NodeDef::set_op(const std::string& value) {
801
802 op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
803 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.op)
804}
805inline void NodeDef::set_op(std::string&& value) {
806
807 op_.Set(
808 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
809 // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.op)
810}
811inline void NodeDef::set_op(const char* value) {
812 GOOGLE_DCHECK(value != nullptr);
813
814 op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
815 GetArenaNoVirtual());
816 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.op)
817}
818inline void NodeDef::set_op(const char* value,
819 size_t size) {
820
821 op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
822 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
823 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.op)
824}
825inline std::string* NodeDef::mutable_op() {
826
827 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.op)
828 return op_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
829}
830inline std::string* NodeDef::release_op() {
831 // @@protoc_insertion_point(field_release:tensorflow.NodeDef.op)
832
833 return op_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
834}
835inline void NodeDef::set_allocated_op(std::string* op) {
836 if (op != nullptr) {
837
838 } else {
839
840 }
841 op_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op,
842 GetArenaNoVirtual());
843 // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op)
844}
845inline std::string* NodeDef::unsafe_arena_release_op() {
846 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op)
847 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
848
849 return op_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
850 GetArenaNoVirtual());
851}
852inline void NodeDef::unsafe_arena_set_allocated_op(
853 std::string* op) {
854 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
855 if (op != nullptr) {
856
857 } else {
858
859 }
860 op_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
861 op, GetArenaNoVirtual());
862 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.op)
863}
864
865// repeated string input = 3;
866inline int NodeDef::input_size() const {
867 return input_.size();
868}
869inline void NodeDef::clear_input() {
870 input_.Clear();
871}
872inline const std::string& NodeDef::input(int index) const {
873 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.input)
874 return input_.Get(index);
875}
876inline std::string* NodeDef::mutable_input(int index) {
877 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.input)
878 return input_.Mutable(index);
879}
880inline void NodeDef::set_input(int index, const std::string& value) {
881 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input)
882 input_.Mutable(index)->assign(value);
883}
884inline void NodeDef::set_input(int index, std::string&& value) {
885 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input)
886 input_.Mutable(index)->assign(std::move(value));
887}
888inline void NodeDef::set_input(int index, const char* value) {
889 GOOGLE_DCHECK(value != nullptr);
890 input_.Mutable(index)->assign(value);
891 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input)
892}
893inline void NodeDef::set_input(int index, const char* value, size_t size) {
894 input_.Mutable(index)->assign(
895 reinterpret_cast<const char*>(value), size);
896 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.input)
897}
898inline std::string* NodeDef::add_input() {
899 // @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input)
900 return input_.Add();
901}
902inline void NodeDef::add_input(const std::string& value) {
903 input_.Add()->assign(value);
904 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
905}
906inline void NodeDef::add_input(std::string&& value) {
907 input_.Add(std::move(value));
908 // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
909}
910inline void NodeDef::add_input(const char* value) {
911 GOOGLE_DCHECK(value != nullptr);
912 input_.Add()->assign(value);
913 // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input)
914}
915inline void NodeDef::add_input(const char* value, size_t size) {
916 input_.Add()->assign(reinterpret_cast<const char*>(value), size);
917 // @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.input)
918}
919inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
920NodeDef::input() const {
921 // @@protoc_insertion_point(field_list:tensorflow.NodeDef.input)
922 return input_;
923}
924inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
925NodeDef::mutable_input() {
926 // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input)
927 return &input_;
928}
929
930// string device = 4;
931inline void NodeDef::clear_device() {
932 device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
933}
934inline const std::string& NodeDef::device() const {
935 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.device)
936 return device_.Get();
937}
938inline void NodeDef::set_device(const std::string& value) {
939
940 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
941 // @@protoc_insertion_point(field_set:tensorflow.NodeDef.device)
942}
943inline void NodeDef::set_device(std::string&& value) {
944
945 device_.Set(
946 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
947 // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.device)
948}
949inline void NodeDef::set_device(const char* value) {
950 GOOGLE_DCHECK(value != nullptr);
951
952 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
953 GetArenaNoVirtual());
954 // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.device)
955}
956inline void NodeDef::set_device(const char* value,
957 size_t size) {
958
959 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
960 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
961 // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.device)
962}
963inline std::string* NodeDef::mutable_device() {
964
965 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.device)
966 return device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
967}
968inline std::string* NodeDef::release_device() {
969 // @@protoc_insertion_point(field_release:tensorflow.NodeDef.device)
970
971 return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
972}
973inline void NodeDef::set_allocated_device(std::string* device) {
974 if (device != nullptr) {
975
976 } else {
977
978 }
979 device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device,
980 GetArenaNoVirtual());
981 // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device)
982}
983inline std::string* NodeDef::unsafe_arena_release_device() {
984 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device)
985 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
986
987 return device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
988 GetArenaNoVirtual());
989}
990inline void NodeDef::unsafe_arena_set_allocated_device(
991 std::string* device) {
992 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
993 if (device != nullptr) {
994
995 } else {
996
997 }
998 device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
999 device, GetArenaNoVirtual());
1000 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.device)
1001}
1002
1003// map<string, .tensorflow.AttrValue> attr = 5;
1004inline int NodeDef::attr_size() const {
1005 return attr_.size();
1006}
1007inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
1008NodeDef::attr() const {
1009 // @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr)
1010 return attr_.GetMap();
1011}
1012inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
1013NodeDef::mutable_attr() {
1014 // @@protoc_insertion_point(field_mutable_map:tensorflow.NodeDef.attr)
1015 return attr_.MutableMap();
1016}
1017
1018// .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6;
1019inline bool NodeDef::has_experimental_debug_info() const {
1020 return this != internal_default_instance() && experimental_debug_info_ != nullptr;
1021}
1022inline void NodeDef::clear_experimental_debug_info() {
1023 if (GetArenaNoVirtual() == nullptr && experimental_debug_info_ != nullptr) {
1024 delete experimental_debug_info_;
1025 }
1026 experimental_debug_info_ = nullptr;
1027}
1028inline const ::tensorflow::NodeDef_ExperimentalDebugInfo& NodeDef::experimental_debug_info() const {
1029 const ::tensorflow::NodeDef_ExperimentalDebugInfo* p = experimental_debug_info_;
1030 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.experimental_debug_info)
1031 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::NodeDef_ExperimentalDebugInfo*>(
1032 &::tensorflow::_NodeDef_ExperimentalDebugInfo_default_instance_);
1033}
1034inline ::tensorflow::NodeDef_ExperimentalDebugInfo* NodeDef::release_experimental_debug_info() {
1035 // @@protoc_insertion_point(field_release:tensorflow.NodeDef.experimental_debug_info)
1036
1037 ::tensorflow::NodeDef_ExperimentalDebugInfo* temp = experimental_debug_info_;
1038 if (GetArenaNoVirtual() != nullptr) {
1039 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1040 }
1041 experimental_debug_info_ = nullptr;
1042 return temp;
1043}
1044inline ::tensorflow::NodeDef_ExperimentalDebugInfo* NodeDef::unsafe_arena_release_experimental_debug_info() {
1045 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.experimental_debug_info)
1046
1047 ::tensorflow::NodeDef_ExperimentalDebugInfo* temp = experimental_debug_info_;
1048 experimental_debug_info_ = nullptr;
1049 return temp;
1050}
1051inline ::tensorflow::NodeDef_ExperimentalDebugInfo* NodeDef::mutable_experimental_debug_info() {
1052
1053 if (experimental_debug_info_ == nullptr) {
1054 auto* p = CreateMaybeMessage<::tensorflow::NodeDef_ExperimentalDebugInfo>(GetArenaNoVirtual());
1055 experimental_debug_info_ = p;
1056 }
1057 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.experimental_debug_info)
1058 return experimental_debug_info_;
1059}
1060inline void NodeDef::set_allocated_experimental_debug_info(::tensorflow::NodeDef_ExperimentalDebugInfo* experimental_debug_info) {
1061 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1062 if (message_arena == nullptr) {
1063 delete experimental_debug_info_;
1064 }
1065 if (experimental_debug_info) {
1066 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1067 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(experimental_debug_info);
1068 if (message_arena != submessage_arena) {
1069 experimental_debug_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1070 message_arena, experimental_debug_info, submessage_arena);
1071 }
1072
1073 } else {
1074
1075 }
1076 experimental_debug_info_ = experimental_debug_info;
1077 // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.experimental_debug_info)
1078}
1079
1080// .tensorflow.FullTypeDef experimental_type = 7;
1081inline bool NodeDef::has_experimental_type() const {
1082 return this != internal_default_instance() && experimental_type_ != nullptr;
1083}
1084inline const ::tensorflow::FullTypeDef& NodeDef::experimental_type() const {
1085 const ::tensorflow::FullTypeDef* p = experimental_type_;
1086 // @@protoc_insertion_point(field_get:tensorflow.NodeDef.experimental_type)
1087 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FullTypeDef*>(
1088 &::tensorflow::_FullTypeDef_default_instance_);
1089}
1090inline ::tensorflow::FullTypeDef* NodeDef::release_experimental_type() {
1091 // @@protoc_insertion_point(field_release:tensorflow.NodeDef.experimental_type)
1092
1093 ::tensorflow::FullTypeDef* temp = experimental_type_;
1094 if (GetArenaNoVirtual() != nullptr) {
1095 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1096 }
1097 experimental_type_ = nullptr;
1098 return temp;
1099}
1100inline ::tensorflow::FullTypeDef* NodeDef::unsafe_arena_release_experimental_type() {
1101 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.experimental_type)
1102
1103 ::tensorflow::FullTypeDef* temp = experimental_type_;
1104 experimental_type_ = nullptr;
1105 return temp;
1106}
1107inline ::tensorflow::FullTypeDef* NodeDef::mutable_experimental_type() {
1108
1109 if (experimental_type_ == nullptr) {
1110 auto* p = CreateMaybeMessage<::tensorflow::FullTypeDef>(GetArenaNoVirtual());
1111 experimental_type_ = p;
1112 }
1113 // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.experimental_type)
1114 return experimental_type_;
1115}
1116inline void NodeDef::set_allocated_experimental_type(::tensorflow::FullTypeDef* experimental_type) {
1117 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1118 if (message_arena == nullptr) {
1119 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(experimental_type_);
1120 }
1121 if (experimental_type) {
1122 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1123 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(experimental_type)->GetArena();
1124 if (message_arena != submessage_arena) {
1125 experimental_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1126 message_arena, experimental_type, submessage_arena);
1127 }
1128
1129 } else {
1130
1131 }
1132 experimental_type_ = experimental_type;
1133 // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.experimental_type)
1134}
1135
1136#ifdef __GNUC__
1137 #pragma GCC diagnostic pop
1138#endif // __GNUC__
1139// -------------------------------------------------------------------
1140
1141// -------------------------------------------------------------------
1142
1143
1144// @@protoc_insertion_point(namespace_scope)
1145
1146} // namespace tensorflow
1147
1148// @@protoc_insertion_point(global_scope)
1149
1150#include <google/protobuf/port_undef.inc>
1151#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto
1152