1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/protobuf/graph_debug_info.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_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 <google/protobuf/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry_lite.h>
34 #include <google/protobuf/map_field_lite.h>
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_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_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto {
46 static const ::uint32_t offsets[];
47 };
48 namespace tensorflow {
49 class GraphDebugInfo;
50 struct GraphDebugInfoDefaultTypeInternal;
51 extern GraphDebugInfoDefaultTypeInternal _GraphDebugInfo_default_instance_;
52 class GraphDebugInfo_FileLineCol;
53 struct GraphDebugInfo_FileLineColDefaultTypeInternal;
54 extern GraphDebugInfo_FileLineColDefaultTypeInternal _GraphDebugInfo_FileLineCol_default_instance_;
55 class GraphDebugInfo_StackTrace;
56 struct GraphDebugInfo_StackTraceDefaultTypeInternal;
57 extern GraphDebugInfo_StackTraceDefaultTypeInternal _GraphDebugInfo_StackTrace_default_instance_;
58 class GraphDebugInfo_TracesEntry_DoNotUse;
59 struct GraphDebugInfo_TracesEntry_DoNotUseDefaultTypeInternal;
60 extern GraphDebugInfo_TracesEntry_DoNotUseDefaultTypeInternal _GraphDebugInfo_TracesEntry_DoNotUse_default_instance_;
61 } // namespace tensorflow
62 PROTOBUF_NAMESPACE_OPEN
63 template<> ::tensorflow::GraphDebugInfo* Arena::CreateMaybeMessage<::tensorflow::GraphDebugInfo>(Arena*);
64 template<> ::tensorflow::GraphDebugInfo_FileLineCol* Arena::CreateMaybeMessage<::tensorflow::GraphDebugInfo_FileLineCol>(Arena*);
65 template<> ::tensorflow::GraphDebugInfo_StackTrace* Arena::CreateMaybeMessage<::tensorflow::GraphDebugInfo_StackTrace>(Arena*);
66 template<> ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse>(Arena*);
67 PROTOBUF_NAMESPACE_CLOSE
68 namespace tensorflow {
69
70 // ===================================================================
71
72 class GraphDebugInfo_FileLineCol final :
73 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.GraphDebugInfo.FileLineCol) */ {
74 public:
GraphDebugInfo_FileLineCol()75 inline GraphDebugInfo_FileLineCol() : GraphDebugInfo_FileLineCol(nullptr) {}
76 ~GraphDebugInfo_FileLineCol() override;
77 explicit PROTOBUF_CONSTEXPR GraphDebugInfo_FileLineCol(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
78
79 GraphDebugInfo_FileLineCol(const GraphDebugInfo_FileLineCol& from);
GraphDebugInfo_FileLineCol(GraphDebugInfo_FileLineCol && from)80 GraphDebugInfo_FileLineCol(GraphDebugInfo_FileLineCol&& from) noexcept
81 : GraphDebugInfo_FileLineCol() {
82 *this = ::std::move(from);
83 }
84
85 inline GraphDebugInfo_FileLineCol& operator=(const GraphDebugInfo_FileLineCol& from) {
86 if (this == &from) return *this;
87 CopyFrom(from);
88 return *this;
89 }
90 inline GraphDebugInfo_FileLineCol& operator=(GraphDebugInfo_FileLineCol&& from) noexcept {
91 if (this == &from) return *this;
92 if (GetOwningArena() == from.GetOwningArena()
93 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
94 && GetOwningArena() != nullptr
95 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
96 ) {
97 InternalSwap(&from);
98 } else {
99 CopyFrom(from);
100 }
101 return *this;
102 }
103
default_instance()104 static const GraphDebugInfo_FileLineCol& default_instance() {
105 return *internal_default_instance();
106 }
internal_default_instance()107 static inline const GraphDebugInfo_FileLineCol* internal_default_instance() {
108 return reinterpret_cast<const GraphDebugInfo_FileLineCol*>(
109 &_GraphDebugInfo_FileLineCol_default_instance_);
110 }
111 static constexpr int kIndexInFileMessages =
112 0;
113
swap(GraphDebugInfo_FileLineCol & a,GraphDebugInfo_FileLineCol & b)114 friend void swap(GraphDebugInfo_FileLineCol& a, GraphDebugInfo_FileLineCol& b) {
115 a.Swap(&b);
116 }
Swap(GraphDebugInfo_FileLineCol * other)117 inline void Swap(GraphDebugInfo_FileLineCol* other) {
118 if (other == this) return;
119 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
120 if (GetOwningArena() != nullptr &&
121 GetOwningArena() == other->GetOwningArena()) {
122 #else // PROTOBUF_FORCE_COPY_IN_SWAP
123 if (GetOwningArena() == other->GetOwningArena()) {
124 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
125 InternalSwap(other);
126 } else {
127 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
128 }
129 }
130 void UnsafeArenaSwap(GraphDebugInfo_FileLineCol* other) {
131 if (other == this) return;
132 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
133 InternalSwap(other);
134 }
135
136 // implements Message ----------------------------------------------
137
138 GraphDebugInfo_FileLineCol* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
139 return CreateMaybeMessage<GraphDebugInfo_FileLineCol>(arena);
140 }
141 GraphDebugInfo_FileLineCol* New() const {
142 return New(nullptr);
143 }
144 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
145 void CopyFrom(const GraphDebugInfo_FileLineCol& from);
146 void MergeFrom(const GraphDebugInfo_FileLineCol& from);
147 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
148 bool IsInitialized() const final;
149
150 size_t ByteSizeLong() const final;
151 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
152 ::uint8_t* _InternalSerialize(
153 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
154 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
155
156 private:
157 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
158 void SharedDtor();
159 void SetCachedSize(int size) const;
160 void InternalSwap(GraphDebugInfo_FileLineCol* other);
161
162 private:
163 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
164 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
165 return "tensorflow.GraphDebugInfo.FileLineCol";
166 }
167 protected:
168 explicit GraphDebugInfo_FileLineCol(::PROTOBUF_NAMESPACE_ID::Arena* arena,
169 bool is_message_owned = false);
170 public:
171
172 std::string GetTypeName() const final;
173
174 // nested types ----------------------------------------------------
175
176 // accessors -------------------------------------------------------
177
178 enum : int {
179 kFuncFieldNumber = 4,
180 kCodeFieldNumber = 5,
181 kFileIndexFieldNumber = 1,
182 kLineFieldNumber = 2,
183 kColFieldNumber = 3,
184 };
185 // string func = 4;
186 void clear_func();
187 const std::string& func() const;
188 template <typename ArgT0 = const std::string&, typename... ArgT>
189 void set_func(ArgT0&& arg0, ArgT... args);
190 std::string* mutable_func();
191 PROTOBUF_NODISCARD std::string* release_func();
192 void set_allocated_func(std::string* func);
193 private:
194 const std::string& _internal_func() const;
195 inline PROTOBUF_ALWAYS_INLINE void _internal_set_func(const std::string& value);
196 std::string* _internal_mutable_func();
197 public:
198
199 // string code = 5;
200 void clear_code();
201 const std::string& code() const;
202 template <typename ArgT0 = const std::string&, typename... ArgT>
203 void set_code(ArgT0&& arg0, ArgT... args);
204 std::string* mutable_code();
205 PROTOBUF_NODISCARD std::string* release_code();
206 void set_allocated_code(std::string* code);
207 private:
208 const std::string& _internal_code() const;
209 inline PROTOBUF_ALWAYS_INLINE void _internal_set_code(const std::string& value);
210 std::string* _internal_mutable_code();
211 public:
212
213 // int32 file_index = 1;
214 void clear_file_index();
215 ::int32_t file_index() const;
216 void set_file_index(::int32_t value);
217 private:
218 ::int32_t _internal_file_index() const;
219 void _internal_set_file_index(::int32_t value);
220 public:
221
222 // int32 line = 2;
223 void clear_line();
224 ::int32_t line() const;
225 void set_line(::int32_t value);
226 private:
227 ::int32_t _internal_line() const;
228 void _internal_set_line(::int32_t value);
229 public:
230
231 // int32 col = 3;
232 void clear_col();
233 ::int32_t col() const;
234 void set_col(::int32_t value);
235 private:
236 ::int32_t _internal_col() const;
237 void _internal_set_col(::int32_t value);
238 public:
239
240 // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.FileLineCol)
241 private:
242 class _Internal;
243
244 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245 typedef void InternalArenaConstructable_;
246 typedef void DestructorSkippable_;
247 struct Impl_ {
248 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr func_;
249 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr code_;
250 ::int32_t file_index_;
251 ::int32_t line_;
252 ::int32_t col_;
253 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
254 };
255 union { Impl_ _impl_; };
256 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
257 };
258 // -------------------------------------------------------------------
259
260 class GraphDebugInfo_StackTrace final :
261 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.GraphDebugInfo.StackTrace) */ {
262 public:
GraphDebugInfo_StackTrace()263 inline GraphDebugInfo_StackTrace() : GraphDebugInfo_StackTrace(nullptr) {}
264 ~GraphDebugInfo_StackTrace() override;
265 explicit PROTOBUF_CONSTEXPR GraphDebugInfo_StackTrace(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
266
267 GraphDebugInfo_StackTrace(const GraphDebugInfo_StackTrace& from);
GraphDebugInfo_StackTrace(GraphDebugInfo_StackTrace && from)268 GraphDebugInfo_StackTrace(GraphDebugInfo_StackTrace&& from) noexcept
269 : GraphDebugInfo_StackTrace() {
270 *this = ::std::move(from);
271 }
272
273 inline GraphDebugInfo_StackTrace& operator=(const GraphDebugInfo_StackTrace& from) {
274 if (this == &from) return *this;
275 CopyFrom(from);
276 return *this;
277 }
278 inline GraphDebugInfo_StackTrace& operator=(GraphDebugInfo_StackTrace&& from) noexcept {
279 if (this == &from) return *this;
280 if (GetOwningArena() == from.GetOwningArena()
281 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
282 && GetOwningArena() != nullptr
283 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
284 ) {
285 InternalSwap(&from);
286 } else {
287 CopyFrom(from);
288 }
289 return *this;
290 }
291
default_instance()292 static const GraphDebugInfo_StackTrace& default_instance() {
293 return *internal_default_instance();
294 }
internal_default_instance()295 static inline const GraphDebugInfo_StackTrace* internal_default_instance() {
296 return reinterpret_cast<const GraphDebugInfo_StackTrace*>(
297 &_GraphDebugInfo_StackTrace_default_instance_);
298 }
299 static constexpr int kIndexInFileMessages =
300 1;
301
swap(GraphDebugInfo_StackTrace & a,GraphDebugInfo_StackTrace & b)302 friend void swap(GraphDebugInfo_StackTrace& a, GraphDebugInfo_StackTrace& b) {
303 a.Swap(&b);
304 }
Swap(GraphDebugInfo_StackTrace * other)305 inline void Swap(GraphDebugInfo_StackTrace* other) {
306 if (other == this) return;
307 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
308 if (GetOwningArena() != nullptr &&
309 GetOwningArena() == other->GetOwningArena()) {
310 #else // PROTOBUF_FORCE_COPY_IN_SWAP
311 if (GetOwningArena() == other->GetOwningArena()) {
312 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
313 InternalSwap(other);
314 } else {
315 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
316 }
317 }
318 void UnsafeArenaSwap(GraphDebugInfo_StackTrace* other) {
319 if (other == this) return;
320 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
321 InternalSwap(other);
322 }
323
324 // implements Message ----------------------------------------------
325
326 GraphDebugInfo_StackTrace* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
327 return CreateMaybeMessage<GraphDebugInfo_StackTrace>(arena);
328 }
329 GraphDebugInfo_StackTrace* New() const {
330 return New(nullptr);
331 }
332 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
333 void CopyFrom(const GraphDebugInfo_StackTrace& from);
334 void MergeFrom(const GraphDebugInfo_StackTrace& from);
335 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
336 bool IsInitialized() const final;
337
338 size_t ByteSizeLong() const final;
339 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
340 ::uint8_t* _InternalSerialize(
341 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
342 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
343
344 private:
345 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
346 void SharedDtor();
347 void SetCachedSize(int size) const;
348 void InternalSwap(GraphDebugInfo_StackTrace* other);
349
350 private:
351 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
352 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
353 return "tensorflow.GraphDebugInfo.StackTrace";
354 }
355 protected:
356 explicit GraphDebugInfo_StackTrace(::PROTOBUF_NAMESPACE_ID::Arena* arena,
357 bool is_message_owned = false);
358 public:
359
360 std::string GetTypeName() const final;
361
362 // nested types ----------------------------------------------------
363
364 // accessors -------------------------------------------------------
365
366 enum : int {
367 kFileLineColsFieldNumber = 1,
368 };
369 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
370 int file_line_cols_size() const;
371 private:
372 int _internal_file_line_cols_size() const;
373 public:
374 void clear_file_line_cols();
375 ::tensorflow::GraphDebugInfo_FileLineCol* mutable_file_line_cols(int index);
376 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GraphDebugInfo_FileLineCol >*
377 mutable_file_line_cols();
378 private:
379 const ::tensorflow::GraphDebugInfo_FileLineCol& _internal_file_line_cols(int index) const;
380 ::tensorflow::GraphDebugInfo_FileLineCol* _internal_add_file_line_cols();
381 public:
382 const ::tensorflow::GraphDebugInfo_FileLineCol& file_line_cols(int index) const;
383 ::tensorflow::GraphDebugInfo_FileLineCol* add_file_line_cols();
384 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GraphDebugInfo_FileLineCol >&
385 file_line_cols() const;
386
387 // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.StackTrace)
388 private:
389 class _Internal;
390
391 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
392 typedef void InternalArenaConstructable_;
393 typedef void DestructorSkippable_;
394 struct Impl_ {
395 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GraphDebugInfo_FileLineCol > file_line_cols_;
396 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
397 };
398 union { Impl_ _impl_; };
399 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
400 };
401 // -------------------------------------------------------------------
402
403 class GraphDebugInfo_TracesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<GraphDebugInfo_TracesEntry_DoNotUse,
404 std::string, ::tensorflow::GraphDebugInfo_StackTrace,
405 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
406 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
407 public:
408 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<GraphDebugInfo_TracesEntry_DoNotUse,
409 std::string, ::tensorflow::GraphDebugInfo_StackTrace,
410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
411 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
412 GraphDebugInfo_TracesEntry_DoNotUse();
413 explicit PROTOBUF_CONSTEXPR GraphDebugInfo_TracesEntry_DoNotUse(
414 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
415 explicit GraphDebugInfo_TracesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
416 void MergeFrom(const GraphDebugInfo_TracesEntry_DoNotUse& other);
internal_default_instance()417 static const GraphDebugInfo_TracesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const GraphDebugInfo_TracesEntry_DoNotUse*>(&_GraphDebugInfo_TracesEntry_DoNotUse_default_instance_); }
ValidateKey(std::string * s)418 static bool ValidateKey(std::string* s) {
419 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.GraphDebugInfo.TracesEntry.key");
420 }
ValidateValue(void *)421 static bool ValidateValue(void*) { return true; }
422 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
423 };
424
425 // -------------------------------------------------------------------
426
427 class GraphDebugInfo final :
428 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.GraphDebugInfo) */ {
429 public:
GraphDebugInfo()430 inline GraphDebugInfo() : GraphDebugInfo(nullptr) {}
431 ~GraphDebugInfo() override;
432 explicit PROTOBUF_CONSTEXPR GraphDebugInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
433
434 GraphDebugInfo(const GraphDebugInfo& from);
GraphDebugInfo(GraphDebugInfo && from)435 GraphDebugInfo(GraphDebugInfo&& from) noexcept
436 : GraphDebugInfo() {
437 *this = ::std::move(from);
438 }
439
440 inline GraphDebugInfo& operator=(const GraphDebugInfo& from) {
441 if (this == &from) return *this;
442 CopyFrom(from);
443 return *this;
444 }
445 inline GraphDebugInfo& operator=(GraphDebugInfo&& from) noexcept {
446 if (this == &from) return *this;
447 if (GetOwningArena() == from.GetOwningArena()
448 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
449 && GetOwningArena() != nullptr
450 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
451 ) {
452 InternalSwap(&from);
453 } else {
454 CopyFrom(from);
455 }
456 return *this;
457 }
458
default_instance()459 static const GraphDebugInfo& default_instance() {
460 return *internal_default_instance();
461 }
internal_default_instance()462 static inline const GraphDebugInfo* internal_default_instance() {
463 return reinterpret_cast<const GraphDebugInfo*>(
464 &_GraphDebugInfo_default_instance_);
465 }
466 static constexpr int kIndexInFileMessages =
467 3;
468
swap(GraphDebugInfo & a,GraphDebugInfo & b)469 friend void swap(GraphDebugInfo& a, GraphDebugInfo& b) {
470 a.Swap(&b);
471 }
Swap(GraphDebugInfo * other)472 inline void Swap(GraphDebugInfo* other) {
473 if (other == this) return;
474 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
475 if (GetOwningArena() != nullptr &&
476 GetOwningArena() == other->GetOwningArena()) {
477 #else // PROTOBUF_FORCE_COPY_IN_SWAP
478 if (GetOwningArena() == other->GetOwningArena()) {
479 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
480 InternalSwap(other);
481 } else {
482 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
483 }
484 }
485 void UnsafeArenaSwap(GraphDebugInfo* other) {
486 if (other == this) return;
487 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
488 InternalSwap(other);
489 }
490
491 // implements Message ----------------------------------------------
492
493 GraphDebugInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
494 return CreateMaybeMessage<GraphDebugInfo>(arena);
495 }
496 GraphDebugInfo* New() const {
497 return New(nullptr);
498 }
499 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
500 void CopyFrom(const GraphDebugInfo& from);
501 void MergeFrom(const GraphDebugInfo& from);
502 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
503 bool IsInitialized() const final;
504
505 size_t ByteSizeLong() const final;
506 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
507 ::uint8_t* _InternalSerialize(
508 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
509 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
510
511 private:
512 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
513 void SharedDtor();
514 void SetCachedSize(int size) const;
515 void InternalSwap(GraphDebugInfo* other);
516
517 private:
518 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
519 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
520 return "tensorflow.GraphDebugInfo";
521 }
522 protected:
523 explicit GraphDebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
524 bool is_message_owned = false);
525 public:
526
527 std::string GetTypeName() const final;
528
529 // nested types ----------------------------------------------------
530
531 typedef GraphDebugInfo_FileLineCol FileLineCol;
532 typedef GraphDebugInfo_StackTrace StackTrace;
533
534 // accessors -------------------------------------------------------
535
536 enum : int {
537 kFilesFieldNumber = 1,
538 kTracesFieldNumber = 2,
539 };
540 // repeated string files = 1;
541 int files_size() const;
542 private:
543 int _internal_files_size() const;
544 public:
545 void clear_files();
546 const std::string& files(int index) const;
547 std::string* mutable_files(int index);
548 void set_files(int index, const std::string& value);
549 void set_files(int index, std::string&& value);
550 void set_files(int index, const char* value);
551 void set_files(int index, const char* value, size_t size);
552 std::string* add_files();
553 void add_files(const std::string& value);
554 void add_files(std::string&& value);
555 void add_files(const char* value);
556 void add_files(const char* value, size_t size);
557 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& files() const;
558 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_files();
559 private:
560 const std::string& _internal_files(int index) const;
561 std::string* _internal_add_files();
562 public:
563
564 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
565 int traces_size() const;
566 private:
567 int _internal_traces_size() const;
568 public:
569 void clear_traces();
570 private:
571 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >&
572 _internal_traces() const;
573 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >*
574 _internal_mutable_traces();
575 public:
576 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >&
577 traces() const;
578 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >*
579 mutable_traces();
580
581 // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo)
582 private:
583 class _Internal;
584
585 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
586 typedef void InternalArenaConstructable_;
587 typedef void DestructorSkippable_;
588 struct Impl_ {
589 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> files_;
590 ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
591 GraphDebugInfo_TracesEntry_DoNotUse,
592 std::string, ::tensorflow::GraphDebugInfo_StackTrace,
593 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
594 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> traces_;
595 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
596 };
597 union { Impl_ _impl_; };
598 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
599 };
600 // ===================================================================
601
602
603 // ===================================================================
604
605 #ifdef __GNUC__
606 #pragma GCC diagnostic push
607 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
608 #endif // __GNUC__
609 // GraphDebugInfo_FileLineCol
610
611 // int32 file_index = 1;
clear_file_index()612 inline void GraphDebugInfo_FileLineCol::clear_file_index() {
613 _impl_.file_index_ = 0;
614 }
_internal_file_index()615 inline ::int32_t GraphDebugInfo_FileLineCol::_internal_file_index() const {
616 return _impl_.file_index_;
617 }
file_index()618 inline ::int32_t GraphDebugInfo_FileLineCol::file_index() const {
619 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.FileLineCol.file_index)
620 return _internal_file_index();
621 }
_internal_set_file_index(::int32_t value)622 inline void GraphDebugInfo_FileLineCol::_internal_set_file_index(::int32_t value) {
623
624 _impl_.file_index_ = value;
625 }
set_file_index(::int32_t value)626 inline void GraphDebugInfo_FileLineCol::set_file_index(::int32_t value) {
627 _internal_set_file_index(value);
628 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.FileLineCol.file_index)
629 }
630
631 // int32 line = 2;
clear_line()632 inline void GraphDebugInfo_FileLineCol::clear_line() {
633 _impl_.line_ = 0;
634 }
_internal_line()635 inline ::int32_t GraphDebugInfo_FileLineCol::_internal_line() const {
636 return _impl_.line_;
637 }
line()638 inline ::int32_t GraphDebugInfo_FileLineCol::line() const {
639 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.FileLineCol.line)
640 return _internal_line();
641 }
_internal_set_line(::int32_t value)642 inline void GraphDebugInfo_FileLineCol::_internal_set_line(::int32_t value) {
643
644 _impl_.line_ = value;
645 }
set_line(::int32_t value)646 inline void GraphDebugInfo_FileLineCol::set_line(::int32_t value) {
647 _internal_set_line(value);
648 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.FileLineCol.line)
649 }
650
651 // int32 col = 3;
clear_col()652 inline void GraphDebugInfo_FileLineCol::clear_col() {
653 _impl_.col_ = 0;
654 }
_internal_col()655 inline ::int32_t GraphDebugInfo_FileLineCol::_internal_col() const {
656 return _impl_.col_;
657 }
col()658 inline ::int32_t GraphDebugInfo_FileLineCol::col() const {
659 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.FileLineCol.col)
660 return _internal_col();
661 }
_internal_set_col(::int32_t value)662 inline void GraphDebugInfo_FileLineCol::_internal_set_col(::int32_t value) {
663
664 _impl_.col_ = value;
665 }
set_col(::int32_t value)666 inline void GraphDebugInfo_FileLineCol::set_col(::int32_t value) {
667 _internal_set_col(value);
668 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.FileLineCol.col)
669 }
670
671 // string func = 4;
clear_func()672 inline void GraphDebugInfo_FileLineCol::clear_func() {
673 _impl_.func_.ClearToEmpty();
674 }
func()675 inline const std::string& GraphDebugInfo_FileLineCol::func() const {
676 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.FileLineCol.func)
677 return _internal_func();
678 }
679 template <typename ArgT0, typename... ArgT>
680 inline PROTOBUF_ALWAYS_INLINE
set_func(ArgT0 && arg0,ArgT...args)681 void GraphDebugInfo_FileLineCol::set_func(ArgT0&& arg0, ArgT... args) {
682
683 _impl_.func_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
684 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.FileLineCol.func)
685 }
mutable_func()686 inline std::string* GraphDebugInfo_FileLineCol::mutable_func() {
687 std::string* _s = _internal_mutable_func();
688 // @@protoc_insertion_point(field_mutable:tensorflow.GraphDebugInfo.FileLineCol.func)
689 return _s;
690 }
_internal_func()691 inline const std::string& GraphDebugInfo_FileLineCol::_internal_func() const {
692 return _impl_.func_.Get();
693 }
_internal_set_func(const std::string & value)694 inline void GraphDebugInfo_FileLineCol::_internal_set_func(const std::string& value) {
695
696 _impl_.func_.Set(value, GetArenaForAllocation());
697 }
_internal_mutable_func()698 inline std::string* GraphDebugInfo_FileLineCol::_internal_mutable_func() {
699
700 return _impl_.func_.Mutable(GetArenaForAllocation());
701 }
release_func()702 inline std::string* GraphDebugInfo_FileLineCol::release_func() {
703 // @@protoc_insertion_point(field_release:tensorflow.GraphDebugInfo.FileLineCol.func)
704 return _impl_.func_.Release();
705 }
set_allocated_func(std::string * func)706 inline void GraphDebugInfo_FileLineCol::set_allocated_func(std::string* func) {
707 _impl_.func_.SetAllocated(func, GetArenaForAllocation());
708 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
709 if (_impl_.func_.IsDefault()) {
710 _impl_.func_.Set("", GetArenaForAllocation());
711 }
712 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
713 // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDebugInfo.FileLineCol.func)
714 }
715
716 // string code = 5;
clear_code()717 inline void GraphDebugInfo_FileLineCol::clear_code() {
718 _impl_.code_.ClearToEmpty();
719 }
code()720 inline const std::string& GraphDebugInfo_FileLineCol::code() const {
721 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.FileLineCol.code)
722 return _internal_code();
723 }
724 template <typename ArgT0, typename... ArgT>
725 inline PROTOBUF_ALWAYS_INLINE
set_code(ArgT0 && arg0,ArgT...args)726 void GraphDebugInfo_FileLineCol::set_code(ArgT0&& arg0, ArgT... args) {
727
728 _impl_.code_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
729 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.FileLineCol.code)
730 }
mutable_code()731 inline std::string* GraphDebugInfo_FileLineCol::mutable_code() {
732 std::string* _s = _internal_mutable_code();
733 // @@protoc_insertion_point(field_mutable:tensorflow.GraphDebugInfo.FileLineCol.code)
734 return _s;
735 }
_internal_code()736 inline const std::string& GraphDebugInfo_FileLineCol::_internal_code() const {
737 return _impl_.code_.Get();
738 }
_internal_set_code(const std::string & value)739 inline void GraphDebugInfo_FileLineCol::_internal_set_code(const std::string& value) {
740
741 _impl_.code_.Set(value, GetArenaForAllocation());
742 }
_internal_mutable_code()743 inline std::string* GraphDebugInfo_FileLineCol::_internal_mutable_code() {
744
745 return _impl_.code_.Mutable(GetArenaForAllocation());
746 }
release_code()747 inline std::string* GraphDebugInfo_FileLineCol::release_code() {
748 // @@protoc_insertion_point(field_release:tensorflow.GraphDebugInfo.FileLineCol.code)
749 return _impl_.code_.Release();
750 }
set_allocated_code(std::string * code)751 inline void GraphDebugInfo_FileLineCol::set_allocated_code(std::string* code) {
752 _impl_.code_.SetAllocated(code, GetArenaForAllocation());
753 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
754 if (_impl_.code_.IsDefault()) {
755 _impl_.code_.Set("", GetArenaForAllocation());
756 }
757 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
758 // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDebugInfo.FileLineCol.code)
759 }
760
761 // -------------------------------------------------------------------
762
763 // GraphDebugInfo_StackTrace
764
765 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
_internal_file_line_cols_size()766 inline int GraphDebugInfo_StackTrace::_internal_file_line_cols_size() const {
767 return _impl_.file_line_cols_.size();
768 }
file_line_cols_size()769 inline int GraphDebugInfo_StackTrace::file_line_cols_size() const {
770 return _internal_file_line_cols_size();
771 }
clear_file_line_cols()772 inline void GraphDebugInfo_StackTrace::clear_file_line_cols() {
773 _impl_.file_line_cols_.Clear();
774 }
mutable_file_line_cols(int index)775 inline ::tensorflow::GraphDebugInfo_FileLineCol* GraphDebugInfo_StackTrace::mutable_file_line_cols(int index) {
776 // @@protoc_insertion_point(field_mutable:tensorflow.GraphDebugInfo.StackTrace.file_line_cols)
777 return _impl_.file_line_cols_.Mutable(index);
778 }
779 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GraphDebugInfo_FileLineCol >*
mutable_file_line_cols()780 GraphDebugInfo_StackTrace::mutable_file_line_cols() {
781 // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDebugInfo.StackTrace.file_line_cols)
782 return &_impl_.file_line_cols_;
783 }
_internal_file_line_cols(int index)784 inline const ::tensorflow::GraphDebugInfo_FileLineCol& GraphDebugInfo_StackTrace::_internal_file_line_cols(int index) const {
785 return _impl_.file_line_cols_.Get(index);
786 }
file_line_cols(int index)787 inline const ::tensorflow::GraphDebugInfo_FileLineCol& GraphDebugInfo_StackTrace::file_line_cols(int index) const {
788 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.StackTrace.file_line_cols)
789 return _internal_file_line_cols(index);
790 }
_internal_add_file_line_cols()791 inline ::tensorflow::GraphDebugInfo_FileLineCol* GraphDebugInfo_StackTrace::_internal_add_file_line_cols() {
792 return _impl_.file_line_cols_.Add();
793 }
add_file_line_cols()794 inline ::tensorflow::GraphDebugInfo_FileLineCol* GraphDebugInfo_StackTrace::add_file_line_cols() {
795 ::tensorflow::GraphDebugInfo_FileLineCol* _add = _internal_add_file_line_cols();
796 // @@protoc_insertion_point(field_add:tensorflow.GraphDebugInfo.StackTrace.file_line_cols)
797 return _add;
798 }
799 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GraphDebugInfo_FileLineCol >&
file_line_cols()800 GraphDebugInfo_StackTrace::file_line_cols() const {
801 // @@protoc_insertion_point(field_list:tensorflow.GraphDebugInfo.StackTrace.file_line_cols)
802 return _impl_.file_line_cols_;
803 }
804
805 // -------------------------------------------------------------------
806
807 // -------------------------------------------------------------------
808
809 // GraphDebugInfo
810
811 // repeated string files = 1;
_internal_files_size()812 inline int GraphDebugInfo::_internal_files_size() const {
813 return _impl_.files_.size();
814 }
files_size()815 inline int GraphDebugInfo::files_size() const {
816 return _internal_files_size();
817 }
clear_files()818 inline void GraphDebugInfo::clear_files() {
819 _impl_.files_.Clear();
820 }
add_files()821 inline std::string* GraphDebugInfo::add_files() {
822 std::string* _s = _internal_add_files();
823 // @@protoc_insertion_point(field_add_mutable:tensorflow.GraphDebugInfo.files)
824 return _s;
825 }
_internal_files(int index)826 inline const std::string& GraphDebugInfo::_internal_files(int index) const {
827 return _impl_.files_.Get(index);
828 }
files(int index)829 inline const std::string& GraphDebugInfo::files(int index) const {
830 // @@protoc_insertion_point(field_get:tensorflow.GraphDebugInfo.files)
831 return _internal_files(index);
832 }
mutable_files(int index)833 inline std::string* GraphDebugInfo::mutable_files(int index) {
834 // @@protoc_insertion_point(field_mutable:tensorflow.GraphDebugInfo.files)
835 return _impl_.files_.Mutable(index);
836 }
set_files(int index,const std::string & value)837 inline void GraphDebugInfo::set_files(int index, const std::string& value) {
838 _impl_.files_.Mutable(index)->assign(value);
839 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.files)
840 }
set_files(int index,std::string && value)841 inline void GraphDebugInfo::set_files(int index, std::string&& value) {
842 _impl_.files_.Mutable(index)->assign(std::move(value));
843 // @@protoc_insertion_point(field_set:tensorflow.GraphDebugInfo.files)
844 }
set_files(int index,const char * value)845 inline void GraphDebugInfo::set_files(int index, const char* value) {
846 GOOGLE_DCHECK(value != nullptr);
847 _impl_.files_.Mutable(index)->assign(value);
848 // @@protoc_insertion_point(field_set_char:tensorflow.GraphDebugInfo.files)
849 }
set_files(int index,const char * value,size_t size)850 inline void GraphDebugInfo::set_files(int index, const char* value, size_t size) {
851 _impl_.files_.Mutable(index)->assign(
852 reinterpret_cast<const char*>(value), size);
853 // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphDebugInfo.files)
854 }
_internal_add_files()855 inline std::string* GraphDebugInfo::_internal_add_files() {
856 return _impl_.files_.Add();
857 }
add_files(const std::string & value)858 inline void GraphDebugInfo::add_files(const std::string& value) {
859 _impl_.files_.Add()->assign(value);
860 // @@protoc_insertion_point(field_add:tensorflow.GraphDebugInfo.files)
861 }
add_files(std::string && value)862 inline void GraphDebugInfo::add_files(std::string&& value) {
863 _impl_.files_.Add(std::move(value));
864 // @@protoc_insertion_point(field_add:tensorflow.GraphDebugInfo.files)
865 }
add_files(const char * value)866 inline void GraphDebugInfo::add_files(const char* value) {
867 GOOGLE_DCHECK(value != nullptr);
868 _impl_.files_.Add()->assign(value);
869 // @@protoc_insertion_point(field_add_char:tensorflow.GraphDebugInfo.files)
870 }
add_files(const char * value,size_t size)871 inline void GraphDebugInfo::add_files(const char* value, size_t size) {
872 _impl_.files_.Add()->assign(reinterpret_cast<const char*>(value), size);
873 // @@protoc_insertion_point(field_add_pointer:tensorflow.GraphDebugInfo.files)
874 }
875 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
files()876 GraphDebugInfo::files() const {
877 // @@protoc_insertion_point(field_list:tensorflow.GraphDebugInfo.files)
878 return _impl_.files_;
879 }
880 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_files()881 GraphDebugInfo::mutable_files() {
882 // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDebugInfo.files)
883 return &_impl_.files_;
884 }
885
886 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
_internal_traces_size()887 inline int GraphDebugInfo::_internal_traces_size() const {
888 return _impl_.traces_.size();
889 }
traces_size()890 inline int GraphDebugInfo::traces_size() const {
891 return _internal_traces_size();
892 }
clear_traces()893 inline void GraphDebugInfo::clear_traces() {
894 _impl_.traces_.Clear();
895 }
896 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >&
_internal_traces()897 GraphDebugInfo::_internal_traces() const {
898 return _impl_.traces_.GetMap();
899 }
900 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >&
traces()901 GraphDebugInfo::traces() const {
902 // @@protoc_insertion_point(field_map:tensorflow.GraphDebugInfo.traces)
903 return _internal_traces();
904 }
905 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >*
_internal_mutable_traces()906 GraphDebugInfo::_internal_mutable_traces() {
907 return _impl_.traces_.MutableMap();
908 }
909 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >*
mutable_traces()910 GraphDebugInfo::mutable_traces() {
911 // @@protoc_insertion_point(field_mutable_map:tensorflow.GraphDebugInfo.traces)
912 return _internal_mutable_traces();
913 }
914
915 #ifdef __GNUC__
916 #pragma GCC diagnostic pop
917 #endif // __GNUC__
918 // -------------------------------------------------------------------
919
920 // -------------------------------------------------------------------
921
922 // -------------------------------------------------------------------
923
924
925 // @@protoc_insertion_point(namespace_scope)
926
927 } // namespace tensorflow
928
929 // @@protoc_insertion_point(global_scope)
930
931 #include <google/protobuf/port_undef.inc>
932 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto
933