1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/graph_debug_info.proto
3
4#include "tensorflow/core/protobuf/graph_debug_info.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto;
21namespace tensorflow {
22class GraphDebugInfo_FileLineColDefaultTypeInternal {
23 public:
24 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphDebugInfo_FileLineCol> _instance;
25} _GraphDebugInfo_FileLineCol_default_instance_;
26class GraphDebugInfo_StackTraceDefaultTypeInternal {
27 public:
28 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphDebugInfo_StackTrace> _instance;
29} _GraphDebugInfo_StackTrace_default_instance_;
30class GraphDebugInfo_TracesEntry_DoNotUseDefaultTypeInternal {
31 public:
32 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphDebugInfo_TracesEntry_DoNotUse> _instance;
33} _GraphDebugInfo_TracesEntry_DoNotUse_default_instance_;
34class GraphDebugInfoDefaultTypeInternal {
35 public:
36 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphDebugInfo> _instance;
37} _GraphDebugInfo_default_instance_;
38} // namespace tensorflow
39static void InitDefaultsscc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto() {
40 GOOGLE_PROTOBUF_VERIFY_VERSION;
41
42 {
43 void* ptr = &::tensorflow::_GraphDebugInfo_default_instance_;
44 new (ptr) ::tensorflow::GraphDebugInfo();
45 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
46 }
47 ::tensorflow::GraphDebugInfo::InitAsDefaultInstance();
48}
49
50::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto =
51 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto}, {
52 &scc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,}};
53
54static void InitDefaultsscc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto() {
55 GOOGLE_PROTOBUF_VERIFY_VERSION;
56
57 {
58 void* ptr = &::tensorflow::_GraphDebugInfo_FileLineCol_default_instance_;
59 new (ptr) ::tensorflow::GraphDebugInfo_FileLineCol();
60 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
61 }
62 ::tensorflow::GraphDebugInfo_FileLineCol::InitAsDefaultInstance();
63}
64
65::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto =
66 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto}, {}};
67
68static void InitDefaultsscc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto() {
69 GOOGLE_PROTOBUF_VERIFY_VERSION;
70
71 {
72 void* ptr = &::tensorflow::_GraphDebugInfo_StackTrace_default_instance_;
73 new (ptr) ::tensorflow::GraphDebugInfo_StackTrace();
74 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
75 }
76 ::tensorflow::GraphDebugInfo_StackTrace::InitAsDefaultInstance();
77}
78
79::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto =
80 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto}, {
81 &scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,}};
82
83static void InitDefaultsscc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto() {
84 GOOGLE_PROTOBUF_VERIFY_VERSION;
85
86 {
87 void* ptr = &::tensorflow::_GraphDebugInfo_TracesEntry_DoNotUse_default_instance_;
88 new (ptr) ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse();
89 }
90 ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse::InitAsDefaultInstance();
91}
92
93::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto =
94 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto}, {
95 &scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,}};
96
97static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto[4];
98static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto = nullptr;
99static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto = nullptr;
100
101const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
102 ~0u, // no _has_bits_
103 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, _internal_metadata_),
104 ~0u, // no _extensions_
105 ~0u, // no _oneof_case_
106 ~0u, // no _weak_field_map_
107 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, file_index_),
108 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, line_),
109 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, col_),
110 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, func_),
111 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_FileLineCol, code_),
112 ~0u, // no _has_bits_
113 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_StackTrace, _internal_metadata_),
114 ~0u, // no _extensions_
115 ~0u, // no _oneof_case_
116 ~0u, // no _weak_field_map_
117 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_StackTrace, file_line_cols_),
118 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse, _has_bits_),
119 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse, _internal_metadata_),
120 ~0u, // no _extensions_
121 ~0u, // no _oneof_case_
122 ~0u, // no _weak_field_map_
123 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse, key_),
124 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse, value_),
125 0,
126 1,
127 ~0u, // no _has_bits_
128 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo, _internal_metadata_),
129 ~0u, // no _extensions_
130 ~0u, // no _oneof_case_
131 ~0u, // no _weak_field_map_
132 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo, files_),
133 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphDebugInfo, traces_),
134};
135static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
136 { 0, -1, sizeof(::tensorflow::GraphDebugInfo_FileLineCol)},
137 { 10, -1, sizeof(::tensorflow::GraphDebugInfo_StackTrace)},
138 { 16, 23, sizeof(::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse)},
139 { 25, -1, sizeof(::tensorflow::GraphDebugInfo)},
140};
141
142static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
143 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphDebugInfo_FileLineCol_default_instance_),
144 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphDebugInfo_StackTrace_default_instance_),
145 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphDebugInfo_TracesEntry_DoNotUse_default_instance_),
146 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphDebugInfo_default_instance_),
147};
148
149const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
150 "\n/tensorflow/core/protobuf/graph_debug_i"
151 "nfo.proto\022\ntensorflow\"\325\002\n\016GraphDebugInfo"
152 "\022\r\n\005files\030\001 \003(\t\0226\n\006traces\030\002 \003(\0132&.tensor"
153 "flow.GraphDebugInfo.TracesEntry\032X\n\013FileL"
154 "ineCol\022\022\n\nfile_index\030\001 \001(\005\022\014\n\004line\030\002 \001(\005"
155 "\022\013\n\003col\030\003 \001(\005\022\014\n\004func\030\004 \001(\t\022\014\n\004code\030\005 \001("
156 "\t\032L\n\nStackTrace\022>\n\016file_line_cols\030\001 \003(\0132"
157 "&.tensorflow.GraphDebugInfo.FileLineCol\032"
158 "T\n\013TracesEntry\022\013\n\003key\030\001 \001(\t\0224\n\005value\030\002 \001"
159 "(\0132%.tensorflow.GraphDebugInfo.StackTrac"
160 "e:\0028\001B\214\001\n\030org.tensorflow.frameworkB\024Grap"
161 "hDebugInfoProtosP\001ZUgithub.com/tensorflo"
162 "w/tensorflow/tensorflow/go/core/protobuf"
163 "/for_core_protos_go_proto\370\001\001b\006proto3"
164 ;
165static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_deps[1] = {
166};
167static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_sccs[4] = {
168 &scc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,
169 &scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,
170 &scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,
171 &scc_info_GraphDebugInfo_TracesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,
172};
173static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_once;
174static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_initialized = false;
175const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto = {
176 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto, "tensorflow/core/protobuf/graph_debug_info.proto", 556,
177 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto_deps, 4, 0,
178 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto::offsets,
179 file_level_metadata_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto, 4, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto,
180};
181
182// Force running AddDescriptors() at dynamic initialization time.
183static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto), true);
184namespace tensorflow {
185
186// ===================================================================
187
188void GraphDebugInfo_FileLineCol::InitAsDefaultInstance() {
189}
190class GraphDebugInfo_FileLineCol::_Internal {
191 public:
192};
193
194GraphDebugInfo_FileLineCol::GraphDebugInfo_FileLineCol()
195 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
196 SharedCtor();
197 // @@protoc_insertion_point(constructor:tensorflow.GraphDebugInfo.FileLineCol)
198}
199GraphDebugInfo_FileLineCol::GraphDebugInfo_FileLineCol(::PROTOBUF_NAMESPACE_ID::Arena* arena)
200 : ::PROTOBUF_NAMESPACE_ID::Message(),
201 _internal_metadata_(arena) {
202 SharedCtor();
203 RegisterArenaDtor(arena);
204 // @@protoc_insertion_point(arena_constructor:tensorflow.GraphDebugInfo.FileLineCol)
205}
206GraphDebugInfo_FileLineCol::GraphDebugInfo_FileLineCol(const GraphDebugInfo_FileLineCol& from)
207 : ::PROTOBUF_NAMESPACE_ID::Message(),
208 _internal_metadata_(nullptr) {
209 _internal_metadata_.MergeFrom(from._internal_metadata_);
210 func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
211 if (!from.func().empty()) {
212 func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.func(),
213 GetArenaNoVirtual());
214 }
215 code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
216 if (!from.code().empty()) {
217 code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.code(),
218 GetArenaNoVirtual());
219 }
220 ::memcpy(&file_index_, &from.file_index_,
221 static_cast<size_t>(reinterpret_cast<char*>(&col_) -
222 reinterpret_cast<char*>(&file_index_)) + sizeof(col_));
223 // @@protoc_insertion_point(copy_constructor:tensorflow.GraphDebugInfo.FileLineCol)
224}
225
226void GraphDebugInfo_FileLineCol::SharedCtor() {
227 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
228 func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
229 code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
230 ::memset(&file_index_, 0, static_cast<size_t>(
231 reinterpret_cast<char*>(&col_) -
232 reinterpret_cast<char*>(&file_index_)) + sizeof(col_));
233}
234
235GraphDebugInfo_FileLineCol::~GraphDebugInfo_FileLineCol() {
236 // @@protoc_insertion_point(destructor:tensorflow.GraphDebugInfo.FileLineCol)
237 SharedDtor();
238}
239
240void GraphDebugInfo_FileLineCol::SharedDtor() {
241 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
242 func_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
243 code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
244}
245
246void GraphDebugInfo_FileLineCol::ArenaDtor(void* object) {
247 GraphDebugInfo_FileLineCol* _this = reinterpret_cast< GraphDebugInfo_FileLineCol* >(object);
248 (void)_this;
249}
250void GraphDebugInfo_FileLineCol::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
251}
252void GraphDebugInfo_FileLineCol::SetCachedSize(int size) const {
253 _cached_size_.Set(size);
254}
255const GraphDebugInfo_FileLineCol& GraphDebugInfo_FileLineCol::default_instance() {
256 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
257 return *internal_default_instance();
258}
259
260
261void GraphDebugInfo_FileLineCol::Clear() {
262// @@protoc_insertion_point(message_clear_start:tensorflow.GraphDebugInfo.FileLineCol)
263 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
264 // Prevent compiler warnings about cached_has_bits being unused
265 (void) cached_has_bits;
266
267 func_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
268 code_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
269 ::memset(&file_index_, 0, static_cast<size_t>(
270 reinterpret_cast<char*>(&col_) -
271 reinterpret_cast<char*>(&file_index_)) + sizeof(col_));
272 _internal_metadata_.Clear();
273}
274
275#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
276const char* GraphDebugInfo_FileLineCol::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
277#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
278 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
279 while (!ctx->Done(&ptr)) {
280 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
281 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
282 CHK_(ptr);
283 switch (tag >> 3) {
284 // int32 file_index = 1;
285 case 1:
286 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
287 file_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
288 CHK_(ptr);
289 } else goto handle_unusual;
290 continue;
291 // int32 line = 2;
292 case 2:
293 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
294 line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
295 CHK_(ptr);
296 } else goto handle_unusual;
297 continue;
298 // int32 col = 3;
299 case 3:
300 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
301 col_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
302 CHK_(ptr);
303 } else goto handle_unusual;
304 continue;
305 // string func = 4;
306 case 4:
307 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
308 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_func(), ptr, ctx, "tensorflow.GraphDebugInfo.FileLineCol.func");
309 CHK_(ptr);
310 } else goto handle_unusual;
311 continue;
312 // string code = 5;
313 case 5:
314 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
315 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_code(), ptr, ctx, "tensorflow.GraphDebugInfo.FileLineCol.code");
316 CHK_(ptr);
317 } else goto handle_unusual;
318 continue;
319 default: {
320 handle_unusual:
321 if ((tag & 7) == 4 || tag == 0) {
322 ctx->SetLastTag(tag);
323 goto success;
324 }
325 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
326 CHK_(ptr != nullptr);
327 continue;
328 }
329 } // switch
330 } // while
331success:
332 return ptr;
333failure:
334 ptr = nullptr;
335 goto success;
336#undef CHK_
337}
338#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
339bool GraphDebugInfo_FileLineCol::MergePartialFromCodedStream(
340 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
341#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
342 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
343 // @@protoc_insertion_point(parse_start:tensorflow.GraphDebugInfo.FileLineCol)
344 for (;;) {
345 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
346 tag = p.first;
347 if (!p.second) goto handle_unusual;
348 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
349 // int32 file_index = 1;
350 case 1: {
351 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
352
353 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
354 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
355 input, &file_index_)));
356 } else {
357 goto handle_unusual;
358 }
359 break;
360 }
361
362 // int32 line = 2;
363 case 2: {
364 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
365
366 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
367 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
368 input, &line_)));
369 } else {
370 goto handle_unusual;
371 }
372 break;
373 }
374
375 // int32 col = 3;
376 case 3: {
377 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
378
379 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
380 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
381 input, &col_)));
382 } else {
383 goto handle_unusual;
384 }
385 break;
386 }
387
388 // string func = 4;
389 case 4: {
390 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
391 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
392 input, this->mutable_func()));
393 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
394 this->func().data(), static_cast<int>(this->func().length()),
395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
396 "tensorflow.GraphDebugInfo.FileLineCol.func"));
397 } else {
398 goto handle_unusual;
399 }
400 break;
401 }
402
403 // string code = 5;
404 case 5: {
405 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
406 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
407 input, this->mutable_code()));
408 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
409 this->code().data(), static_cast<int>(this->code().length()),
410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
411 "tensorflow.GraphDebugInfo.FileLineCol.code"));
412 } else {
413 goto handle_unusual;
414 }
415 break;
416 }
417
418 default: {
419 handle_unusual:
420 if (tag == 0) {
421 goto success;
422 }
423 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
424 input, tag, _internal_metadata_.mutable_unknown_fields()));
425 break;
426 }
427 }
428 }
429success:
430 // @@protoc_insertion_point(parse_success:tensorflow.GraphDebugInfo.FileLineCol)
431 return true;
432failure:
433 // @@protoc_insertion_point(parse_failure:tensorflow.GraphDebugInfo.FileLineCol)
434 return false;
435#undef DO_
436}
437#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
438
439void GraphDebugInfo_FileLineCol::SerializeWithCachedSizes(
440 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
441 // @@protoc_insertion_point(serialize_start:tensorflow.GraphDebugInfo.FileLineCol)
442 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
443 (void) cached_has_bits;
444
445 // int32 file_index = 1;
446 if (this->file_index() != 0) {
447 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->file_index(), output);
448 }
449
450 // int32 line = 2;
451 if (this->line() != 0) {
452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->line(), output);
453 }
454
455 // int32 col = 3;
456 if (this->col() != 0) {
457 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->col(), output);
458 }
459
460 // string func = 4;
461 if (this->func().size() > 0) {
462 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
463 this->func().data(), static_cast<int>(this->func().length()),
464 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
465 "tensorflow.GraphDebugInfo.FileLineCol.func");
466 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
467 4, this->func(), output);
468 }
469
470 // string code = 5;
471 if (this->code().size() > 0) {
472 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
473 this->code().data(), static_cast<int>(this->code().length()),
474 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
475 "tensorflow.GraphDebugInfo.FileLineCol.code");
476 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
477 5, this->code(), output);
478 }
479
480 if (_internal_metadata_.have_unknown_fields()) {
481 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
482 _internal_metadata_.unknown_fields(), output);
483 }
484 // @@protoc_insertion_point(serialize_end:tensorflow.GraphDebugInfo.FileLineCol)
485}
486
487::PROTOBUF_NAMESPACE_ID::uint8* GraphDebugInfo_FileLineCol::InternalSerializeWithCachedSizesToArray(
488 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
489 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphDebugInfo.FileLineCol)
490 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
491 (void) cached_has_bits;
492
493 // int32 file_index = 1;
494 if (this->file_index() != 0) {
495 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->file_index(), target);
496 }
497
498 // int32 line = 2;
499 if (this->line() != 0) {
500 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->line(), target);
501 }
502
503 // int32 col = 3;
504 if (this->col() != 0) {
505 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->col(), target);
506 }
507
508 // string func = 4;
509 if (this->func().size() > 0) {
510 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
511 this->func().data(), static_cast<int>(this->func().length()),
512 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
513 "tensorflow.GraphDebugInfo.FileLineCol.func");
514 target =
515 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
516 4, this->func(), target);
517 }
518
519 // string code = 5;
520 if (this->code().size() > 0) {
521 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
522 this->code().data(), static_cast<int>(this->code().length()),
523 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
524 "tensorflow.GraphDebugInfo.FileLineCol.code");
525 target =
526 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
527 5, this->code(), target);
528 }
529
530 if (_internal_metadata_.have_unknown_fields()) {
531 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
532 _internal_metadata_.unknown_fields(), target);
533 }
534 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphDebugInfo.FileLineCol)
535 return target;
536}
537
538size_t GraphDebugInfo_FileLineCol::ByteSizeLong() const {
539// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphDebugInfo.FileLineCol)
540 size_t total_size = 0;
541
542 if (_internal_metadata_.have_unknown_fields()) {
543 total_size +=
544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
545 _internal_metadata_.unknown_fields());
546 }
547 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
548 // Prevent compiler warnings about cached_has_bits being unused
549 (void) cached_has_bits;
550
551 // string func = 4;
552 if (this->func().size() > 0) {
553 total_size += 1 +
554 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
555 this->func());
556 }
557
558 // string code = 5;
559 if (this->code().size() > 0) {
560 total_size += 1 +
561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
562 this->code());
563 }
564
565 // int32 file_index = 1;
566 if (this->file_index() != 0) {
567 total_size += 1 +
568 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
569 this->file_index());
570 }
571
572 // int32 line = 2;
573 if (this->line() != 0) {
574 total_size += 1 +
575 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
576 this->line());
577 }
578
579 // int32 col = 3;
580 if (this->col() != 0) {
581 total_size += 1 +
582 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
583 this->col());
584 }
585
586 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
587 SetCachedSize(cached_size);
588 return total_size;
589}
590
591void GraphDebugInfo_FileLineCol::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
592// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphDebugInfo.FileLineCol)
593 GOOGLE_DCHECK_NE(&from, this);
594 const GraphDebugInfo_FileLineCol* source =
595 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphDebugInfo_FileLineCol>(
596 &from);
597 if (source == nullptr) {
598 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphDebugInfo.FileLineCol)
599 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
600 } else {
601 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphDebugInfo.FileLineCol)
602 MergeFrom(*source);
603 }
604}
605
606void GraphDebugInfo_FileLineCol::MergeFrom(const GraphDebugInfo_FileLineCol& from) {
607// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphDebugInfo.FileLineCol)
608 GOOGLE_DCHECK_NE(&from, this);
609 _internal_metadata_.MergeFrom(from._internal_metadata_);
610 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
611 (void) cached_has_bits;
612
613 if (from.func().size() > 0) {
614 set_func(from.func());
615 }
616 if (from.code().size() > 0) {
617 set_code(from.code());
618 }
619 if (from.file_index() != 0) {
620 set_file_index(from.file_index());
621 }
622 if (from.line() != 0) {
623 set_line(from.line());
624 }
625 if (from.col() != 0) {
626 set_col(from.col());
627 }
628}
629
630void GraphDebugInfo_FileLineCol::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
631// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphDebugInfo.FileLineCol)
632 if (&from == this) return;
633 Clear();
634 MergeFrom(from);
635}
636
637void GraphDebugInfo_FileLineCol::CopyFrom(const GraphDebugInfo_FileLineCol& from) {
638// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphDebugInfo.FileLineCol)
639 if (&from == this) return;
640 Clear();
641 MergeFrom(from);
642}
643
644bool GraphDebugInfo_FileLineCol::IsInitialized() const {
645 return true;
646}
647
648void GraphDebugInfo_FileLineCol::InternalSwap(GraphDebugInfo_FileLineCol* other) {
649 using std::swap;
650 _internal_metadata_.Swap(&other->_internal_metadata_);
651 func_.Swap(&other->func_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
652 GetArenaNoVirtual());
653 code_.Swap(&other->code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
654 GetArenaNoVirtual());
655 swap(file_index_, other->file_index_);
656 swap(line_, other->line_);
657 swap(col_, other->col_);
658}
659
660::PROTOBUF_NAMESPACE_ID::Metadata GraphDebugInfo_FileLineCol::GetMetadata() const {
661 return GetMetadataStatic();
662}
663
664
665// ===================================================================
666
667void GraphDebugInfo_StackTrace::InitAsDefaultInstance() {
668}
669class GraphDebugInfo_StackTrace::_Internal {
670 public:
671};
672
673GraphDebugInfo_StackTrace::GraphDebugInfo_StackTrace()
674 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
675 SharedCtor();
676 // @@protoc_insertion_point(constructor:tensorflow.GraphDebugInfo.StackTrace)
677}
678GraphDebugInfo_StackTrace::GraphDebugInfo_StackTrace(::PROTOBUF_NAMESPACE_ID::Arena* arena)
679 : ::PROTOBUF_NAMESPACE_ID::Message(),
680 _internal_metadata_(arena),
681 file_line_cols_(arena) {
682 SharedCtor();
683 RegisterArenaDtor(arena);
684 // @@protoc_insertion_point(arena_constructor:tensorflow.GraphDebugInfo.StackTrace)
685}
686GraphDebugInfo_StackTrace::GraphDebugInfo_StackTrace(const GraphDebugInfo_StackTrace& from)
687 : ::PROTOBUF_NAMESPACE_ID::Message(),
688 _internal_metadata_(nullptr),
689 file_line_cols_(from.file_line_cols_) {
690 _internal_metadata_.MergeFrom(from._internal_metadata_);
691 // @@protoc_insertion_point(copy_constructor:tensorflow.GraphDebugInfo.StackTrace)
692}
693
694void GraphDebugInfo_StackTrace::SharedCtor() {
695 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
696}
697
698GraphDebugInfo_StackTrace::~GraphDebugInfo_StackTrace() {
699 // @@protoc_insertion_point(destructor:tensorflow.GraphDebugInfo.StackTrace)
700 SharedDtor();
701}
702
703void GraphDebugInfo_StackTrace::SharedDtor() {
704 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
705}
706
707void GraphDebugInfo_StackTrace::ArenaDtor(void* object) {
708 GraphDebugInfo_StackTrace* _this = reinterpret_cast< GraphDebugInfo_StackTrace* >(object);
709 (void)_this;
710}
711void GraphDebugInfo_StackTrace::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
712}
713void GraphDebugInfo_StackTrace::SetCachedSize(int size) const {
714 _cached_size_.Set(size);
715}
716const GraphDebugInfo_StackTrace& GraphDebugInfo_StackTrace::default_instance() {
717 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphDebugInfo_StackTrace_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
718 return *internal_default_instance();
719}
720
721
722void GraphDebugInfo_StackTrace::Clear() {
723// @@protoc_insertion_point(message_clear_start:tensorflow.GraphDebugInfo.StackTrace)
724 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
725 // Prevent compiler warnings about cached_has_bits being unused
726 (void) cached_has_bits;
727
728 file_line_cols_.Clear();
729 _internal_metadata_.Clear();
730}
731
732#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
733const char* GraphDebugInfo_StackTrace::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
734#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
735 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
736 while (!ctx->Done(&ptr)) {
737 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
738 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
739 CHK_(ptr);
740 switch (tag >> 3) {
741 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
742 case 1:
743 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
744 ptr -= 1;
745 do {
746 ptr += 1;
747 ptr = ctx->ParseMessage(add_file_line_cols(), ptr);
748 CHK_(ptr);
749 if (!ctx->DataAvailable(ptr)) break;
750 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
751 } else goto handle_unusual;
752 continue;
753 default: {
754 handle_unusual:
755 if ((tag & 7) == 4 || tag == 0) {
756 ctx->SetLastTag(tag);
757 goto success;
758 }
759 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
760 CHK_(ptr != nullptr);
761 continue;
762 }
763 } // switch
764 } // while
765success:
766 return ptr;
767failure:
768 ptr = nullptr;
769 goto success;
770#undef CHK_
771}
772#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
773bool GraphDebugInfo_StackTrace::MergePartialFromCodedStream(
774 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
775#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
776 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
777 // @@protoc_insertion_point(parse_start:tensorflow.GraphDebugInfo.StackTrace)
778 for (;;) {
779 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
780 tag = p.first;
781 if (!p.second) goto handle_unusual;
782 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
783 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
784 case 1: {
785 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
786 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
787 input, add_file_line_cols()));
788 } else {
789 goto handle_unusual;
790 }
791 break;
792 }
793
794 default: {
795 handle_unusual:
796 if (tag == 0) {
797 goto success;
798 }
799 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
800 input, tag, _internal_metadata_.mutable_unknown_fields()));
801 break;
802 }
803 }
804 }
805success:
806 // @@protoc_insertion_point(parse_success:tensorflow.GraphDebugInfo.StackTrace)
807 return true;
808failure:
809 // @@protoc_insertion_point(parse_failure:tensorflow.GraphDebugInfo.StackTrace)
810 return false;
811#undef DO_
812}
813#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
814
815void GraphDebugInfo_StackTrace::SerializeWithCachedSizes(
816 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
817 // @@protoc_insertion_point(serialize_start:tensorflow.GraphDebugInfo.StackTrace)
818 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
819 (void) cached_has_bits;
820
821 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
822 for (unsigned int i = 0,
823 n = static_cast<unsigned int>(this->file_line_cols_size()); i < n; i++) {
824 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
825 1,
826 this->file_line_cols(static_cast<int>(i)),
827 output);
828 }
829
830 if (_internal_metadata_.have_unknown_fields()) {
831 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
832 _internal_metadata_.unknown_fields(), output);
833 }
834 // @@protoc_insertion_point(serialize_end:tensorflow.GraphDebugInfo.StackTrace)
835}
836
837::PROTOBUF_NAMESPACE_ID::uint8* GraphDebugInfo_StackTrace::InternalSerializeWithCachedSizesToArray(
838 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
839 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphDebugInfo.StackTrace)
840 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
841 (void) cached_has_bits;
842
843 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
844 for (unsigned int i = 0,
845 n = static_cast<unsigned int>(this->file_line_cols_size()); i < n; i++) {
846 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
847 InternalWriteMessageToArray(
848 1, this->file_line_cols(static_cast<int>(i)), target);
849 }
850
851 if (_internal_metadata_.have_unknown_fields()) {
852 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
853 _internal_metadata_.unknown_fields(), target);
854 }
855 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphDebugInfo.StackTrace)
856 return target;
857}
858
859size_t GraphDebugInfo_StackTrace::ByteSizeLong() const {
860// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphDebugInfo.StackTrace)
861 size_t total_size = 0;
862
863 if (_internal_metadata_.have_unknown_fields()) {
864 total_size +=
865 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
866 _internal_metadata_.unknown_fields());
867 }
868 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
869 // Prevent compiler warnings about cached_has_bits being unused
870 (void) cached_has_bits;
871
872 // repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1;
873 {
874 unsigned int count = static_cast<unsigned int>(this->file_line_cols_size());
875 total_size += 1UL * count;
876 for (unsigned int i = 0; i < count; i++) {
877 total_size +=
878 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
879 this->file_line_cols(static_cast<int>(i)));
880 }
881 }
882
883 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
884 SetCachedSize(cached_size);
885 return total_size;
886}
887
888void GraphDebugInfo_StackTrace::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
889// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphDebugInfo.StackTrace)
890 GOOGLE_DCHECK_NE(&from, this);
891 const GraphDebugInfo_StackTrace* source =
892 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphDebugInfo_StackTrace>(
893 &from);
894 if (source == nullptr) {
895 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphDebugInfo.StackTrace)
896 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
897 } else {
898 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphDebugInfo.StackTrace)
899 MergeFrom(*source);
900 }
901}
902
903void GraphDebugInfo_StackTrace::MergeFrom(const GraphDebugInfo_StackTrace& from) {
904// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphDebugInfo.StackTrace)
905 GOOGLE_DCHECK_NE(&from, this);
906 _internal_metadata_.MergeFrom(from._internal_metadata_);
907 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
908 (void) cached_has_bits;
909
910 file_line_cols_.MergeFrom(from.file_line_cols_);
911}
912
913void GraphDebugInfo_StackTrace::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
914// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphDebugInfo.StackTrace)
915 if (&from == this) return;
916 Clear();
917 MergeFrom(from);
918}
919
920void GraphDebugInfo_StackTrace::CopyFrom(const GraphDebugInfo_StackTrace& from) {
921// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphDebugInfo.StackTrace)
922 if (&from == this) return;
923 Clear();
924 MergeFrom(from);
925}
926
927bool GraphDebugInfo_StackTrace::IsInitialized() const {
928 return true;
929}
930
931void GraphDebugInfo_StackTrace::InternalSwap(GraphDebugInfo_StackTrace* other) {
932 using std::swap;
933 _internal_metadata_.Swap(&other->_internal_metadata_);
934 CastToBase(&file_line_cols_)->InternalSwap(CastToBase(&other->file_line_cols_));
935}
936
937::PROTOBUF_NAMESPACE_ID::Metadata GraphDebugInfo_StackTrace::GetMetadata() const {
938 return GetMetadataStatic();
939}
940
941
942// ===================================================================
943
944GraphDebugInfo_TracesEntry_DoNotUse::GraphDebugInfo_TracesEntry_DoNotUse() {}
945GraphDebugInfo_TracesEntry_DoNotUse::GraphDebugInfo_TracesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
946 : SuperType(arena) {}
947void GraphDebugInfo_TracesEntry_DoNotUse::MergeFrom(const GraphDebugInfo_TracesEntry_DoNotUse& other) {
948 MergeFromInternal(other);
949}
950::PROTOBUF_NAMESPACE_ID::Metadata GraphDebugInfo_TracesEntry_DoNotUse::GetMetadata() const {
951 return GetMetadataStatic();
952}
953void GraphDebugInfo_TracesEntry_DoNotUse::MergeFrom(
954 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
955 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
956}
957
958
959// ===================================================================
960
961void GraphDebugInfo::InitAsDefaultInstance() {
962}
963class GraphDebugInfo::_Internal {
964 public:
965};
966
967GraphDebugInfo::GraphDebugInfo()
968 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
969 SharedCtor();
970 // @@protoc_insertion_point(constructor:tensorflow.GraphDebugInfo)
971}
972GraphDebugInfo::GraphDebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
973 : ::PROTOBUF_NAMESPACE_ID::Message(),
974 _internal_metadata_(arena),
975 files_(arena),
976 traces_(arena) {
977 SharedCtor();
978 RegisterArenaDtor(arena);
979 // @@protoc_insertion_point(arena_constructor:tensorflow.GraphDebugInfo)
980}
981GraphDebugInfo::GraphDebugInfo(const GraphDebugInfo& from)
982 : ::PROTOBUF_NAMESPACE_ID::Message(),
983 _internal_metadata_(nullptr),
984 files_(from.files_) {
985 _internal_metadata_.MergeFrom(from._internal_metadata_);
986 traces_.MergeFrom(from.traces_);
987 // @@protoc_insertion_point(copy_constructor:tensorflow.GraphDebugInfo)
988}
989
990void GraphDebugInfo::SharedCtor() {
991 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
992}
993
994GraphDebugInfo::~GraphDebugInfo() {
995 // @@protoc_insertion_point(destructor:tensorflow.GraphDebugInfo)
996 SharedDtor();
997}
998
999void GraphDebugInfo::SharedDtor() {
1000 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1001}
1002
1003void GraphDebugInfo::ArenaDtor(void* object) {
1004 GraphDebugInfo* _this = reinterpret_cast< GraphDebugInfo* >(object);
1005 (void)_this;
1006}
1007void GraphDebugInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1008}
1009void GraphDebugInfo::SetCachedSize(int size) const {
1010 _cached_size_.Set(size);
1011}
1012const GraphDebugInfo& GraphDebugInfo::default_instance() {
1013 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphDebugInfo_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base);
1014 return *internal_default_instance();
1015}
1016
1017
1018void GraphDebugInfo::Clear() {
1019// @@protoc_insertion_point(message_clear_start:tensorflow.GraphDebugInfo)
1020 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1021 // Prevent compiler warnings about cached_has_bits being unused
1022 (void) cached_has_bits;
1023
1024 files_.Clear();
1025 traces_.Clear();
1026 _internal_metadata_.Clear();
1027}
1028
1029#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1030const char* GraphDebugInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1031#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1032 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1033 while (!ctx->Done(&ptr)) {
1034 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1035 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1036 CHK_(ptr);
1037 switch (tag >> 3) {
1038 // repeated string files = 1;
1039 case 1:
1040 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1041 ptr -= 1;
1042 do {
1043 ptr += 1;
1044 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_files(), ptr, ctx, "tensorflow.GraphDebugInfo.files");
1045 CHK_(ptr);
1046 if (!ctx->DataAvailable(ptr)) break;
1047 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1048 } else goto handle_unusual;
1049 continue;
1050 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
1051 case 2:
1052 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1053 ptr -= 1;
1054 do {
1055 ptr += 1;
1056 ptr = ctx->ParseMessage(&traces_, ptr);
1057 CHK_(ptr);
1058 if (!ctx->DataAvailable(ptr)) break;
1059 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
1060 } else goto handle_unusual;
1061 continue;
1062 default: {
1063 handle_unusual:
1064 if ((tag & 7) == 4 || tag == 0) {
1065 ctx->SetLastTag(tag);
1066 goto success;
1067 }
1068 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1069 CHK_(ptr != nullptr);
1070 continue;
1071 }
1072 } // switch
1073 } // while
1074success:
1075 return ptr;
1076failure:
1077 ptr = nullptr;
1078 goto success;
1079#undef CHK_
1080}
1081#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1082bool GraphDebugInfo::MergePartialFromCodedStream(
1083 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1084#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1085 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1086 // @@protoc_insertion_point(parse_start:tensorflow.GraphDebugInfo)
1087 for (;;) {
1088 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1089 tag = p.first;
1090 if (!p.second) goto handle_unusual;
1091 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1092 // repeated string files = 1;
1093 case 1: {
1094 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1095 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1096 input, this->add_files()));
1097 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1098 this->files(this->files_size() - 1).data(),
1099 static_cast<int>(this->files(this->files_size() - 1).length()),
1100 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1101 "tensorflow.GraphDebugInfo.files"));
1102 } else {
1103 goto handle_unusual;
1104 }
1105 break;
1106 }
1107
1108 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
1109 case 2: {
1110 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1111 GraphDebugInfo_TracesEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
1112 GraphDebugInfo_TracesEntry_DoNotUse,
1113 std::string, ::tensorflow::GraphDebugInfo_StackTrace,
1114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1115 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
1116 0 >,
1117 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace > > parser(&traces_);
1118 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
1119 input, &parser));
1120 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1121 parser.key().data(), static_cast<int>(parser.key().length()),
1122 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1123 "tensorflow.GraphDebugInfo.TracesEntry.key"));
1124 } else {
1125 goto handle_unusual;
1126 }
1127 break;
1128 }
1129
1130 default: {
1131 handle_unusual:
1132 if (tag == 0) {
1133 goto success;
1134 }
1135 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1136 input, tag, _internal_metadata_.mutable_unknown_fields()));
1137 break;
1138 }
1139 }
1140 }
1141success:
1142 // @@protoc_insertion_point(parse_success:tensorflow.GraphDebugInfo)
1143 return true;
1144failure:
1145 // @@protoc_insertion_point(parse_failure:tensorflow.GraphDebugInfo)
1146 return false;
1147#undef DO_
1148}
1149#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1150
1151void GraphDebugInfo::SerializeWithCachedSizes(
1152 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1153 // @@protoc_insertion_point(serialize_start:tensorflow.GraphDebugInfo)
1154 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1155 (void) cached_has_bits;
1156
1157 // repeated string files = 1;
1158 for (int i = 0, n = this->files_size(); i < n; i++) {
1159 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1160 this->files(i).data(), static_cast<int>(this->files(i).length()),
1161 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1162 "tensorflow.GraphDebugInfo.files");
1163 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
1164 1, this->files(i), output);
1165 }
1166
1167 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
1168 if (!this->traces().empty()) {
1169 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_pointer
1170 ConstPtr;
1171 typedef ConstPtr SortItem;
1172 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1173 struct Utf8Check {
1174 static void Check(ConstPtr p) {
1175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1176 p->first.data(), static_cast<int>(p->first.length()),
1177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1178 "tensorflow.GraphDebugInfo.TracesEntry.key");
1179 }
1180 };
1181
1182 if (output->IsSerializationDeterministic() &&
1183 this->traces().size() > 1) {
1184 ::std::unique_ptr<SortItem[]> items(
1185 new SortItem[this->traces().size()]);
1186 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::size_type size_type;
1187 size_type n = 0;
1188 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_iterator
1189 it = this->traces().begin();
1190 it != this->traces().end(); ++it, ++n) {
1191 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1192 }
1193 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1194 for (size_type i = 0; i < n; i++) {
1195 GraphDebugInfo_TracesEntry_DoNotUse::Funcs::SerializeToCodedStream(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
1196 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1197 }
1198 } else {
1199 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_iterator
1200 it = this->traces().begin();
1201 it != this->traces().end(); ++it) {
1202 GraphDebugInfo_TracesEntry_DoNotUse::Funcs::SerializeToCodedStream(2, it->first, it->second, output);
1203 Utf8Check::Check(&(*it));
1204 }
1205 }
1206 }
1207
1208 if (_internal_metadata_.have_unknown_fields()) {
1209 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1210 _internal_metadata_.unknown_fields(), output);
1211 }
1212 // @@protoc_insertion_point(serialize_end:tensorflow.GraphDebugInfo)
1213}
1214
1215::PROTOBUF_NAMESPACE_ID::uint8* GraphDebugInfo::InternalSerializeWithCachedSizesToArray(
1216 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1217 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphDebugInfo)
1218 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1219 (void) cached_has_bits;
1220
1221 // repeated string files = 1;
1222 for (int i = 0, n = this->files_size(); i < n; i++) {
1223 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1224 this->files(i).data(), static_cast<int>(this->files(i).length()),
1225 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1226 "tensorflow.GraphDebugInfo.files");
1227 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1228 WriteStringToArray(1, this->files(i), target);
1229 }
1230
1231 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
1232 if (!this->traces().empty()) {
1233 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_pointer
1234 ConstPtr;
1235 typedef ConstPtr SortItem;
1236 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1237 struct Utf8Check {
1238 static void Check(ConstPtr p) {
1239 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1240 p->first.data(), static_cast<int>(p->first.length()),
1241 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1242 "tensorflow.GraphDebugInfo.TracesEntry.key");
1243 }
1244 };
1245
1246 if (false &&
1247 this->traces().size() > 1) {
1248 ::std::unique_ptr<SortItem[]> items(
1249 new SortItem[this->traces().size()]);
1250 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::size_type size_type;
1251 size_type n = 0;
1252 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_iterator
1253 it = this->traces().begin();
1254 it != this->traces().end(); ++it, ++n) {
1255 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1256 }
1257 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1258 for (size_type i = 0; i < n; i++) {
1259 target = GraphDebugInfo_TracesEntry_DoNotUse::Funcs::SerializeToArray(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
1260 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1261 }
1262 } else {
1263 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_iterator
1264 it = this->traces().begin();
1265 it != this->traces().end(); ++it) {
1266 target = GraphDebugInfo_TracesEntry_DoNotUse::Funcs::SerializeToArray(2, it->first, it->second, target);
1267 Utf8Check::Check(&(*it));
1268 }
1269 }
1270 }
1271
1272 if (_internal_metadata_.have_unknown_fields()) {
1273 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1274 _internal_metadata_.unknown_fields(), target);
1275 }
1276 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphDebugInfo)
1277 return target;
1278}
1279
1280size_t GraphDebugInfo::ByteSizeLong() const {
1281// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphDebugInfo)
1282 size_t total_size = 0;
1283
1284 if (_internal_metadata_.have_unknown_fields()) {
1285 total_size +=
1286 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1287 _internal_metadata_.unknown_fields());
1288 }
1289 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1290 // Prevent compiler warnings about cached_has_bits being unused
1291 (void) cached_has_bits;
1292
1293 // repeated string files = 1;
1294 total_size += 1 *
1295 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->files_size());
1296 for (int i = 0, n = this->files_size(); i < n; i++) {
1297 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1298 this->files(i));
1299 }
1300
1301 // map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;
1302 total_size += 1 *
1303 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->traces_size());
1304 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::GraphDebugInfo_StackTrace >::const_iterator
1305 it = this->traces().begin();
1306 it != this->traces().end(); ++it) {
1307 total_size += GraphDebugInfo_TracesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1308 }
1309
1310 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1311 SetCachedSize(cached_size);
1312 return total_size;
1313}
1314
1315void GraphDebugInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1316// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphDebugInfo)
1317 GOOGLE_DCHECK_NE(&from, this);
1318 const GraphDebugInfo* source =
1319 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphDebugInfo>(
1320 &from);
1321 if (source == nullptr) {
1322 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphDebugInfo)
1323 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1324 } else {
1325 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphDebugInfo)
1326 MergeFrom(*source);
1327 }
1328}
1329
1330void GraphDebugInfo::MergeFrom(const GraphDebugInfo& from) {
1331// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphDebugInfo)
1332 GOOGLE_DCHECK_NE(&from, this);
1333 _internal_metadata_.MergeFrom(from._internal_metadata_);
1334 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1335 (void) cached_has_bits;
1336
1337 files_.MergeFrom(from.files_);
1338 traces_.MergeFrom(from.traces_);
1339}
1340
1341void GraphDebugInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1342// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphDebugInfo)
1343 if (&from == this) return;
1344 Clear();
1345 MergeFrom(from);
1346}
1347
1348void GraphDebugInfo::CopyFrom(const GraphDebugInfo& from) {
1349// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphDebugInfo)
1350 if (&from == this) return;
1351 Clear();
1352 MergeFrom(from);
1353}
1354
1355bool GraphDebugInfo::IsInitialized() const {
1356 return true;
1357}
1358
1359void GraphDebugInfo::InternalSwap(GraphDebugInfo* other) {
1360 using std::swap;
1361 _internal_metadata_.Swap(&other->_internal_metadata_);
1362 files_.InternalSwap(CastToBase(&other->files_));
1363 traces_.Swap(&other->traces_);
1364}
1365
1366::PROTOBUF_NAMESPACE_ID::Metadata GraphDebugInfo::GetMetadata() const {
1367 return GetMetadataStatic();
1368}
1369
1370
1371// @@protoc_insertion_point(namespace_scope)
1372} // namespace tensorflow
1373PROTOBUF_NAMESPACE_OPEN
1374template<> PROTOBUF_NOINLINE ::tensorflow::GraphDebugInfo_FileLineCol* Arena::CreateMaybeMessage< ::tensorflow::GraphDebugInfo_FileLineCol >(Arena* arena) {
1375 return Arena::CreateMessageInternal< ::tensorflow::GraphDebugInfo_FileLineCol >(arena);
1376}
1377template<> PROTOBUF_NOINLINE ::tensorflow::GraphDebugInfo_StackTrace* Arena::CreateMaybeMessage< ::tensorflow::GraphDebugInfo_StackTrace >(Arena* arena) {
1378 return Arena::CreateMessageInternal< ::tensorflow::GraphDebugInfo_StackTrace >(arena);
1379}
1380template<> PROTOBUF_NOINLINE ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse >(Arena* arena) {
1381 return Arena::CreateMessageInternal< ::tensorflow::GraphDebugInfo_TracesEntry_DoNotUse >(arena);
1382}
1383template<> PROTOBUF_NOINLINE ::tensorflow::GraphDebugInfo* Arena::CreateMaybeMessage< ::tensorflow::GraphDebugInfo >(Arena* arena) {
1384 return Arena::CreateMessageInternal< ::tensorflow::GraphDebugInfo >(arena);
1385}
1386PROTOBUF_NAMESPACE_CLOSE
1387
1388// @@protoc_insertion_point(global_scope)
1389#include <google/protobuf/port_undef.inc>
1390