1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/debug_event.proto
3
4#include "tensorflow/core/protobuf/debug_event.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_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
23extern 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;
24extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
29namespace tensorflow {
30class DebugEventDefaultTypeInternal {
31 public:
32 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebugEvent> _instance;
33 const ::tensorflow::DebugMetadata* debug_metadata_;
34 const ::tensorflow::SourceFile* source_file_;
35 const ::tensorflow::StackFrameWithId* stack_frame_with_id_;
36 const ::tensorflow::GraphOpCreation* graph_op_creation_;
37 const ::tensorflow::DebuggedGraph* debugged_graph_;
38 const ::tensorflow::Execution* execution_;
39 const ::tensorflow::GraphExecutionTrace* graph_execution_trace_;
40 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr graph_id_;
41 const ::tensorflow::DebuggedDevice* debugged_device_;
42} _DebugEvent_default_instance_;
43class DebugMetadataDefaultTypeInternal {
44 public:
45 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebugMetadata> _instance;
46} _DebugMetadata_default_instance_;
47class SourceFileDefaultTypeInternal {
48 public:
49 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SourceFile> _instance;
50} _SourceFile_default_instance_;
51class StackFrameWithIdDefaultTypeInternal {
52 public:
53 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StackFrameWithId> _instance;
54} _StackFrameWithId_default_instance_;
55class CodeLocationDefaultTypeInternal {
56 public:
57 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeLocation> _instance;
58} _CodeLocation_default_instance_;
59class GraphOpCreationDefaultTypeInternal {
60 public:
61 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphOpCreation> _instance;
62} _GraphOpCreation_default_instance_;
63class DebuggedGraphDefaultTypeInternal {
64 public:
65 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebuggedGraph> _instance;
66} _DebuggedGraph_default_instance_;
67class DebuggedDeviceDefaultTypeInternal {
68 public:
69 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebuggedDevice> _instance;
70} _DebuggedDevice_default_instance_;
71class ExecutionDefaultTypeInternal {
72 public:
73 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Execution> _instance;
74} _Execution_default_instance_;
75class GraphExecutionTraceDefaultTypeInternal {
76 public:
77 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphExecutionTrace> _instance;
78} _GraphExecutionTrace_default_instance_;
79} // namespace tensorflow
80static void InitDefaultsscc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
81 GOOGLE_PROTOBUF_VERIFY_VERSION;
82
83 {
84 void* ptr = &::tensorflow::_CodeLocation_default_instance_;
85 new (ptr) ::tensorflow::CodeLocation();
86 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
87 }
88 ::tensorflow::CodeLocation::InitAsDefaultInstance();
89}
90
91::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
92 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {}};
93
94static void InitDefaultsscc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
95 GOOGLE_PROTOBUF_VERIFY_VERSION;
96
97 {
98 void* ptr = &::tensorflow::_DebugEvent_default_instance_;
99 new (ptr) ::tensorflow::DebugEvent();
100 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
101 }
102 ::tensorflow::DebugEvent::InitAsDefaultInstance();
103}
104
105::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
106 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsscc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {
107 &scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
108 &scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
109 &scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
110 &scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
111 &scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
112 &scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
113 &scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
114 &scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,}};
115
116static void InitDefaultsscc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
117 GOOGLE_PROTOBUF_VERIFY_VERSION;
118
119 {
120 void* ptr = &::tensorflow::_DebugMetadata_default_instance_;
121 new (ptr) ::tensorflow::DebugMetadata();
122 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
123 }
124 ::tensorflow::DebugMetadata::InitAsDefaultInstance();
125}
126
127::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
128 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {}};
129
130static void InitDefaultsscc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
131 GOOGLE_PROTOBUF_VERIFY_VERSION;
132
133 {
134 void* ptr = &::tensorflow::_DebuggedDevice_default_instance_;
135 new (ptr) ::tensorflow::DebuggedDevice();
136 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
137 }
138 ::tensorflow::DebuggedDevice::InitAsDefaultInstance();
139}
140
141::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
142 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {}};
143
144static void InitDefaultsscc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
145 GOOGLE_PROTOBUF_VERIFY_VERSION;
146
147 {
148 void* ptr = &::tensorflow::_DebuggedGraph_default_instance_;
149 new (ptr) ::tensorflow::DebuggedGraph();
150 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
151 }
152 ::tensorflow::DebuggedGraph::InitAsDefaultInstance();
153}
154
155::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
156 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {}};
157
158static void InitDefaultsscc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
159 GOOGLE_PROTOBUF_VERIFY_VERSION;
160
161 {
162 void* ptr = &::tensorflow::_Execution_default_instance_;
163 new (ptr) ::tensorflow::Execution();
164 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
165 }
166 ::tensorflow::Execution::InitAsDefaultInstance();
167}
168
169::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
170 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {
171 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,
172 &scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,}};
173
174static void InitDefaultsscc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
175 GOOGLE_PROTOBUF_VERIFY_VERSION;
176
177 {
178 void* ptr = &::tensorflow::_GraphExecutionTrace_default_instance_;
179 new (ptr) ::tensorflow::GraphExecutionTrace();
180 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
181 }
182 ::tensorflow::GraphExecutionTrace::InitAsDefaultInstance();
183}
184
185::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
186 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {
187 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
188
189static void InitDefaultsscc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
190 GOOGLE_PROTOBUF_VERIFY_VERSION;
191
192 {
193 void* ptr = &::tensorflow::_GraphOpCreation_default_instance_;
194 new (ptr) ::tensorflow::GraphOpCreation();
195 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
196 }
197 ::tensorflow::GraphOpCreation::InitAsDefaultInstance();
198}
199
200::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
201 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {
202 &scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,}};
203
204static void InitDefaultsscc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
205 GOOGLE_PROTOBUF_VERIFY_VERSION;
206
207 {
208 void* ptr = &::tensorflow::_SourceFile_default_instance_;
209 new (ptr) ::tensorflow::SourceFile();
210 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
211 }
212 ::tensorflow::SourceFile::InitAsDefaultInstance();
213}
214
215::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
216 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {}};
217
218static void InitDefaultsscc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto() {
219 GOOGLE_PROTOBUF_VERIFY_VERSION;
220
221 {
222 void* ptr = &::tensorflow::_StackFrameWithId_default_instance_;
223 new (ptr) ::tensorflow::StackFrameWithId();
224 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
225 }
226 ::tensorflow::StackFrameWithId::InitAsDefaultInstance();
227}
228
229::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto =
230 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto}, {
231 &scc_info_GraphDebugInfo_FileLineCol_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto.base,}};
232
233static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto[10];
234static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto[1];
235static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto = nullptr;
236
237const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
238 ~0u, // no _has_bits_
239 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugEvent, _internal_metadata_),
240 ~0u, // no _extensions_
241 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugEvent, _oneof_case_[0]),
242 ~0u, // no _weak_field_map_
243 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugEvent, wall_time_),
244 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugEvent, step_),
245 offsetof(::tensorflow::DebugEventDefaultTypeInternal, debug_metadata_),
246 offsetof(::tensorflow::DebugEventDefaultTypeInternal, source_file_),
247 offsetof(::tensorflow::DebugEventDefaultTypeInternal, stack_frame_with_id_),
248 offsetof(::tensorflow::DebugEventDefaultTypeInternal, graph_op_creation_),
249 offsetof(::tensorflow::DebugEventDefaultTypeInternal, debugged_graph_),
250 offsetof(::tensorflow::DebugEventDefaultTypeInternal, execution_),
251 offsetof(::tensorflow::DebugEventDefaultTypeInternal, graph_execution_trace_),
252 offsetof(::tensorflow::DebugEventDefaultTypeInternal, graph_id_),
253 offsetof(::tensorflow::DebugEventDefaultTypeInternal, debugged_device_),
254 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugEvent, what_),
255 ~0u, // no _has_bits_
256 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugMetadata, _internal_metadata_),
257 ~0u, // no _extensions_
258 ~0u, // no _oneof_case_
259 ~0u, // no _weak_field_map_
260 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugMetadata, tensorflow_version_),
261 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugMetadata, file_version_),
262 PROTOBUF_FIELD_OFFSET(::tensorflow::DebugMetadata, tfdbg_run_id_),
263 ~0u, // no _has_bits_
264 PROTOBUF_FIELD_OFFSET(::tensorflow::SourceFile, _internal_metadata_),
265 ~0u, // no _extensions_
266 ~0u, // no _oneof_case_
267 ~0u, // no _weak_field_map_
268 PROTOBUF_FIELD_OFFSET(::tensorflow::SourceFile, file_path_),
269 PROTOBUF_FIELD_OFFSET(::tensorflow::SourceFile, host_name_),
270 PROTOBUF_FIELD_OFFSET(::tensorflow::SourceFile, lines_),
271 ~0u, // no _has_bits_
272 PROTOBUF_FIELD_OFFSET(::tensorflow::StackFrameWithId, _internal_metadata_),
273 ~0u, // no _extensions_
274 ~0u, // no _oneof_case_
275 ~0u, // no _weak_field_map_
276 PROTOBUF_FIELD_OFFSET(::tensorflow::StackFrameWithId, id_),
277 PROTOBUF_FIELD_OFFSET(::tensorflow::StackFrameWithId, file_line_col_),
278 ~0u, // no _has_bits_
279 PROTOBUF_FIELD_OFFSET(::tensorflow::CodeLocation, _internal_metadata_),
280 ~0u, // no _extensions_
281 ~0u, // no _oneof_case_
282 ~0u, // no _weak_field_map_
283 PROTOBUF_FIELD_OFFSET(::tensorflow::CodeLocation, host_name_),
284 PROTOBUF_FIELD_OFFSET(::tensorflow::CodeLocation, stack_frame_ids_),
285 ~0u, // no _has_bits_
286 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, _internal_metadata_),
287 ~0u, // no _extensions_
288 ~0u, // no _oneof_case_
289 ~0u, // no _weak_field_map_
290 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, op_type_),
291 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, op_name_),
292 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, graph_name_),
293 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, graph_id_),
294 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, device_name_),
295 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, input_names_),
296 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, num_outputs_),
297 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, code_location_),
298 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphOpCreation, output_tensor_ids_),
299 ~0u, // no _has_bits_
300 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, _internal_metadata_),
301 ~0u, // no _extensions_
302 ~0u, // no _oneof_case_
303 ~0u, // no _weak_field_map_
304 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, graph_id_),
305 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, graph_name_),
306 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, instrumented_ops_),
307 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, original_graph_def_),
308 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, instrumented_graph_def_),
309 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedGraph, outer_context_id_),
310 ~0u, // no _has_bits_
311 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedDevice, _internal_metadata_),
312 ~0u, // no _extensions_
313 ~0u, // no _oneof_case_
314 ~0u, // no _weak_field_map_
315 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedDevice, device_name_),
316 PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedDevice, device_id_),
317 ~0u, // no _has_bits_
318 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, _internal_metadata_),
319 ~0u, // no _extensions_
320 ~0u, // no _oneof_case_
321 ~0u, // no _weak_field_map_
322 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, op_type_),
323 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, num_outputs_),
324 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, graph_id_),
325 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, input_tensor_ids_),
326 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, output_tensor_ids_),
327 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, tensor_debug_mode_),
328 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, tensor_protos_),
329 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, code_location_),
330 PROTOBUF_FIELD_OFFSET(::tensorflow::Execution, output_tensor_device_ids_),
331 ~0u, // no _has_bits_
332 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, _internal_metadata_),
333 ~0u, // no _extensions_
334 ~0u, // no _oneof_case_
335 ~0u, // no _weak_field_map_
336 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, tfdbg_context_id_),
337 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, op_name_),
338 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, output_slot_),
339 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, tensor_debug_mode_),
340 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, tensor_proto_),
341 PROTOBUF_FIELD_OFFSET(::tensorflow::GraphExecutionTrace, device_name_),
342};
343static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
344 { 0, -1, sizeof(::tensorflow::DebugEvent)},
345 { 17, -1, sizeof(::tensorflow::DebugMetadata)},
346 { 25, -1, sizeof(::tensorflow::SourceFile)},
347 { 33, -1, sizeof(::tensorflow::StackFrameWithId)},
348 { 40, -1, sizeof(::tensorflow::CodeLocation)},
349 { 47, -1, sizeof(::tensorflow::GraphOpCreation)},
350 { 61, -1, sizeof(::tensorflow::DebuggedGraph)},
351 { 72, -1, sizeof(::tensorflow::DebuggedDevice)},
352 { 79, -1, sizeof(::tensorflow::Execution)},
353 { 93, -1, sizeof(::tensorflow::GraphExecutionTrace)},
354};
355
356static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
357 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebugEvent_default_instance_),
358 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebugMetadata_default_instance_),
359 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SourceFile_default_instance_),
360 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_StackFrameWithId_default_instance_),
361 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CodeLocation_default_instance_),
362 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphOpCreation_default_instance_),
363 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebuggedGraph_default_instance_),
364 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebuggedDevice_default_instance_),
365 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_Execution_default_instance_),
366 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GraphExecutionTrace_default_instance_),
367};
368
369const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
370 "\n*tensorflow/core/protobuf/debug_event.p"
371 "roto\022\ntensorflow\032&tensorflow/core/framew"
372 "ork/tensor.proto\032/tensorflow/core/protob"
373 "uf/graph_debug_info.proto\"\376\003\n\nDebugEvent"
374 "\022\021\n\twall_time\030\001 \001(\001\022\014\n\004step\030\002 \001(\003\0223\n\016deb"
375 "ug_metadata\030\003 \001(\0132\031.tensorflow.DebugMeta"
376 "dataH\000\022-\n\013source_file\030\004 \001(\0132\026.tensorflow"
377 ".SourceFileH\000\022;\n\023stack_frame_with_id\030\006 \001"
378 "(\0132\034.tensorflow.StackFrameWithIdH\000\0228\n\021gr"
379 "aph_op_creation\030\007 \001(\0132\033.tensorflow.Graph"
380 "OpCreationH\000\0223\n\016debugged_graph\030\010 \001(\0132\031.t"
381 "ensorflow.DebuggedGraphH\000\022*\n\texecution\030\t"
382 " \001(\0132\025.tensorflow.ExecutionH\000\022@\n\025graph_e"
383 "xecution_trace\030\n \001(\0132\037.tensorflow.GraphE"
384 "xecutionTraceH\000\022\022\n\010graph_id\030\013 \001(\tH\000\0225\n\017d"
385 "ebugged_device\030\014 \001(\0132\032.tensorflow.Debugg"
386 "edDeviceH\000B\006\n\004what\"W\n\rDebugMetadata\022\032\n\022t"
387 "ensorflow_version\030\001 \001(\t\022\024\n\014file_version\030"
388 "\002 \001(\t\022\024\n\014tfdbg_run_id\030\003 \001(\t\"A\n\nSourceFil"
389 "e\022\021\n\tfile_path\030\001 \001(\t\022\021\n\thost_name\030\002 \001(\t\022"
390 "\r\n\005lines\030\003 \003(\t\"]\n\020StackFrameWithId\022\n\n\002id"
391 "\030\001 \001(\t\022=\n\rfile_line_col\030\002 \001(\0132&.tensorfl"
392 "ow.GraphDebugInfo.FileLineCol\":\n\014CodeLoc"
393 "ation\022\021\n\thost_name\030\001 \001(\t\022\027\n\017stack_frame_"
394 "ids\030\002 \003(\t\"\344\001\n\017GraphOpCreation\022\017\n\007op_type"
395 "\030\001 \001(\t\022\017\n\007op_name\030\002 \001(\t\022\022\n\ngraph_name\030\003 "
396 "\001(\t\022\020\n\010graph_id\030\004 \001(\t\022\023\n\013device_name\030\005 \001"
397 "(\t\022\023\n\013input_names\030\006 \003(\t\022\023\n\013num_outputs\030\007"
398 " \001(\005\022/\n\rcode_location\030\010 \001(\0132\030.tensorflow"
399 ".CodeLocation\022\031\n\021output_tensor_ids\030\t \003(\005"
400 "\"\245\001\n\rDebuggedGraph\022\020\n\010graph_id\030\001 \001(\t\022\022\n\n"
401 "graph_name\030\002 \001(\t\022\030\n\020instrumented_ops\030\003 \003"
402 "(\t\022\032\n\022original_graph_def\030\004 \001(\014\022\036\n\026instru"
403 "mented_graph_def\030\005 \001(\014\022\030\n\020outer_context_"
404 "id\030\006 \001(\t\"8\n\016DebuggedDevice\022\023\n\013device_nam"
405 "e\030\001 \001(\t\022\021\n\tdevice_id\030\002 \001(\005\"\263\002\n\tExecution"
406 "\022\017\n\007op_type\030\001 \001(\t\022\023\n\013num_outputs\030\002 \001(\005\022\020"
407 "\n\010graph_id\030\003 \001(\t\022\030\n\020input_tensor_ids\030\004 \003"
408 "(\003\022\031\n\021output_tensor_ids\030\005 \003(\003\0226\n\021tensor_"
409 "debug_mode\030\006 \001(\0162\033.tensorflow.TensorDebu"
410 "gMode\022.\n\rtensor_protos\030\007 \003(\0132\027.tensorflo"
411 "w.TensorProto\022/\n\rcode_location\030\010 \001(\0132\030.t"
412 "ensorflow.CodeLocation\022 \n\030output_tensor_"
413 "device_ids\030\t \003(\005\"\321\001\n\023GraphExecutionTrace"
414 "\022\030\n\020tfdbg_context_id\030\001 \001(\t\022\017\n\007op_name\030\002 "
415 "\001(\t\022\023\n\013output_slot\030\003 \001(\005\0226\n\021tensor_debug"
416 "_mode\030\004 \001(\0162\033.tensorflow.TensorDebugMode"
417 "\022-\n\014tensor_proto\030\005 \001(\0132\027.tensorflow.Tens"
418 "orProto\022\023\n\013device_name\030\006 \001(\t*\266\001\n\017TensorD"
419 "ebugMode\022\017\n\013UNSPECIFIED\020\000\022\r\n\tNO_TENSOR\020\001"
420 "\022\017\n\013CURT_HEALTH\020\002\022\022\n\016CONCISE_HEALTH\020\003\022\017\n"
421 "\013FULL_HEALTH\020\004\022\t\n\005SHAPE\020\005\022\021\n\rFULL_NUMERI"
422 "CS\020\006\022\017\n\013FULL_TENSOR\020\007\022\036\n\032REDUCE_INF_NAN_"
423 "THREE_SLOTS\020\010B\203\001\n\023org.tensorflow.utilB\020D"
424 "ebugEventProtosP\001ZUgithub.com/tensorflow"
425 "/tensorflow/tensorflow/go/core/protobuf/"
426 "for_core_protos_go_proto\370\001\001b\006proto3"
427 ;
428static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_deps[2] = {
429 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
430 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fgraph_5fdebug_5finfo_2eproto,
431};
432static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_sccs[10] = {
433 &scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
434 &scc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
435 &scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
436 &scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
437 &scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
438 &scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
439 &scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
440 &scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
441 &scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
442 &scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base,
443};
444static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_once;
445static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_initialized = false;
446const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto = {
447 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto, "tensorflow/core/protobuf/debug_event.proto", 2275,
448 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto_deps, 10, 2,
449 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto::offsets,
450 file_level_metadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto, 10, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto,
451};
452
453// Force running AddDescriptors() at dynamic initialization time.
454static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto), true);
455namespace tensorflow {
456const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TensorDebugMode_descriptor() {
457 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto);
458 return file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto[0];
459}
460bool TensorDebugMode_IsValid(int value) {
461 switch (value) {
462 case 0:
463 case 1:
464 case 2:
465 case 3:
466 case 4:
467 case 5:
468 case 6:
469 case 7:
470 case 8:
471 return true;
472 default:
473 return false;
474 }
475}
476
477
478// ===================================================================
479
480void DebugEvent::InitAsDefaultInstance() {
481 ::tensorflow::_DebugEvent_default_instance_.debug_metadata_ = const_cast< ::tensorflow::DebugMetadata*>(
482 ::tensorflow::DebugMetadata::internal_default_instance());
483 ::tensorflow::_DebugEvent_default_instance_.source_file_ = const_cast< ::tensorflow::SourceFile*>(
484 ::tensorflow::SourceFile::internal_default_instance());
485 ::tensorflow::_DebugEvent_default_instance_.stack_frame_with_id_ = const_cast< ::tensorflow::StackFrameWithId*>(
486 ::tensorflow::StackFrameWithId::internal_default_instance());
487 ::tensorflow::_DebugEvent_default_instance_.graph_op_creation_ = const_cast< ::tensorflow::GraphOpCreation*>(
488 ::tensorflow::GraphOpCreation::internal_default_instance());
489 ::tensorflow::_DebugEvent_default_instance_.debugged_graph_ = const_cast< ::tensorflow::DebuggedGraph*>(
490 ::tensorflow::DebuggedGraph::internal_default_instance());
491 ::tensorflow::_DebugEvent_default_instance_.execution_ = const_cast< ::tensorflow::Execution*>(
492 ::tensorflow::Execution::internal_default_instance());
493 ::tensorflow::_DebugEvent_default_instance_.graph_execution_trace_ = const_cast< ::tensorflow::GraphExecutionTrace*>(
494 ::tensorflow::GraphExecutionTrace::internal_default_instance());
495 ::tensorflow::_DebugEvent_default_instance_.graph_id_.UnsafeSetDefault(
496 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
497 ::tensorflow::_DebugEvent_default_instance_.debugged_device_ = const_cast< ::tensorflow::DebuggedDevice*>(
498 ::tensorflow::DebuggedDevice::internal_default_instance());
499}
500class DebugEvent::_Internal {
501 public:
502 static const ::tensorflow::DebugMetadata& debug_metadata(const DebugEvent* msg);
503 static const ::tensorflow::SourceFile& source_file(const DebugEvent* msg);
504 static const ::tensorflow::StackFrameWithId& stack_frame_with_id(const DebugEvent* msg);
505 static const ::tensorflow::GraphOpCreation& graph_op_creation(const DebugEvent* msg);
506 static const ::tensorflow::DebuggedGraph& debugged_graph(const DebugEvent* msg);
507 static const ::tensorflow::Execution& execution(const DebugEvent* msg);
508 static const ::tensorflow::GraphExecutionTrace& graph_execution_trace(const DebugEvent* msg);
509 static const ::tensorflow::DebuggedDevice& debugged_device(const DebugEvent* msg);
510};
511
512const ::tensorflow::DebugMetadata&
513DebugEvent::_Internal::debug_metadata(const DebugEvent* msg) {
514 return *msg->what_.debug_metadata_;
515}
516const ::tensorflow::SourceFile&
517DebugEvent::_Internal::source_file(const DebugEvent* msg) {
518 return *msg->what_.source_file_;
519}
520const ::tensorflow::StackFrameWithId&
521DebugEvent::_Internal::stack_frame_with_id(const DebugEvent* msg) {
522 return *msg->what_.stack_frame_with_id_;
523}
524const ::tensorflow::GraphOpCreation&
525DebugEvent::_Internal::graph_op_creation(const DebugEvent* msg) {
526 return *msg->what_.graph_op_creation_;
527}
528const ::tensorflow::DebuggedGraph&
529DebugEvent::_Internal::debugged_graph(const DebugEvent* msg) {
530 return *msg->what_.debugged_graph_;
531}
532const ::tensorflow::Execution&
533DebugEvent::_Internal::execution(const DebugEvent* msg) {
534 return *msg->what_.execution_;
535}
536const ::tensorflow::GraphExecutionTrace&
537DebugEvent::_Internal::graph_execution_trace(const DebugEvent* msg) {
538 return *msg->what_.graph_execution_trace_;
539}
540const ::tensorflow::DebuggedDevice&
541DebugEvent::_Internal::debugged_device(const DebugEvent* msg) {
542 return *msg->what_.debugged_device_;
543}
544void DebugEvent::set_allocated_debug_metadata(::tensorflow::DebugMetadata* debug_metadata) {
545 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
546 clear_what();
547 if (debug_metadata) {
548 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
549 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(debug_metadata);
550 if (message_arena != submessage_arena) {
551 debug_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
552 message_arena, debug_metadata, submessage_arena);
553 }
554 set_has_debug_metadata();
555 what_.debug_metadata_ = debug_metadata;
556 }
557 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.debug_metadata)
558}
559void DebugEvent::set_allocated_source_file(::tensorflow::SourceFile* source_file) {
560 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
561 clear_what();
562 if (source_file) {
563 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
564 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(source_file);
565 if (message_arena != submessage_arena) {
566 source_file = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
567 message_arena, source_file, submessage_arena);
568 }
569 set_has_source_file();
570 what_.source_file_ = source_file;
571 }
572 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.source_file)
573}
574void DebugEvent::set_allocated_stack_frame_with_id(::tensorflow::StackFrameWithId* stack_frame_with_id) {
575 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
576 clear_what();
577 if (stack_frame_with_id) {
578 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
579 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stack_frame_with_id);
580 if (message_arena != submessage_arena) {
581 stack_frame_with_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
582 message_arena, stack_frame_with_id, submessage_arena);
583 }
584 set_has_stack_frame_with_id();
585 what_.stack_frame_with_id_ = stack_frame_with_id;
586 }
587 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.stack_frame_with_id)
588}
589void DebugEvent::set_allocated_graph_op_creation(::tensorflow::GraphOpCreation* graph_op_creation) {
590 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
591 clear_what();
592 if (graph_op_creation) {
593 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
594 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(graph_op_creation);
595 if (message_arena != submessage_arena) {
596 graph_op_creation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
597 message_arena, graph_op_creation, submessage_arena);
598 }
599 set_has_graph_op_creation();
600 what_.graph_op_creation_ = graph_op_creation;
601 }
602 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.graph_op_creation)
603}
604void DebugEvent::set_allocated_debugged_graph(::tensorflow::DebuggedGraph* debugged_graph) {
605 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
606 clear_what();
607 if (debugged_graph) {
608 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
609 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(debugged_graph);
610 if (message_arena != submessage_arena) {
611 debugged_graph = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
612 message_arena, debugged_graph, submessage_arena);
613 }
614 set_has_debugged_graph();
615 what_.debugged_graph_ = debugged_graph;
616 }
617 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.debugged_graph)
618}
619void DebugEvent::set_allocated_execution(::tensorflow::Execution* execution) {
620 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
621 clear_what();
622 if (execution) {
623 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
624 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(execution);
625 if (message_arena != submessage_arena) {
626 execution = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
627 message_arena, execution, submessage_arena);
628 }
629 set_has_execution();
630 what_.execution_ = execution;
631 }
632 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.execution)
633}
634void DebugEvent::set_allocated_graph_execution_trace(::tensorflow::GraphExecutionTrace* graph_execution_trace) {
635 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
636 clear_what();
637 if (graph_execution_trace) {
638 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
639 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(graph_execution_trace);
640 if (message_arena != submessage_arena) {
641 graph_execution_trace = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
642 message_arena, graph_execution_trace, submessage_arena);
643 }
644 set_has_graph_execution_trace();
645 what_.graph_execution_trace_ = graph_execution_trace;
646 }
647 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.graph_execution_trace)
648}
649void DebugEvent::set_allocated_debugged_device(::tensorflow::DebuggedDevice* debugged_device) {
650 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
651 clear_what();
652 if (debugged_device) {
653 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
654 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(debugged_device);
655 if (message_arena != submessage_arena) {
656 debugged_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
657 message_arena, debugged_device, submessage_arena);
658 }
659 set_has_debugged_device();
660 what_.debugged_device_ = debugged_device;
661 }
662 // @@protoc_insertion_point(field_set_allocated:tensorflow.DebugEvent.debugged_device)
663}
664DebugEvent::DebugEvent()
665 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
666 SharedCtor();
667 // @@protoc_insertion_point(constructor:tensorflow.DebugEvent)
668}
669DebugEvent::DebugEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena)
670 : ::PROTOBUF_NAMESPACE_ID::Message(),
671 _internal_metadata_(arena) {
672 SharedCtor();
673 RegisterArenaDtor(arena);
674 // @@protoc_insertion_point(arena_constructor:tensorflow.DebugEvent)
675}
676DebugEvent::DebugEvent(const DebugEvent& from)
677 : ::PROTOBUF_NAMESPACE_ID::Message(),
678 _internal_metadata_(nullptr) {
679 _internal_metadata_.MergeFrom(from._internal_metadata_);
680 ::memcpy(&wall_time_, &from.wall_time_,
681 static_cast<size_t>(reinterpret_cast<char*>(&step_) -
682 reinterpret_cast<char*>(&wall_time_)) + sizeof(step_));
683 clear_has_what();
684 switch (from.what_case()) {
685 case kDebugMetadata: {
686 mutable_debug_metadata()->::tensorflow::DebugMetadata::MergeFrom(from.debug_metadata());
687 break;
688 }
689 case kSourceFile: {
690 mutable_source_file()->::tensorflow::SourceFile::MergeFrom(from.source_file());
691 break;
692 }
693 case kStackFrameWithId: {
694 mutable_stack_frame_with_id()->::tensorflow::StackFrameWithId::MergeFrom(from.stack_frame_with_id());
695 break;
696 }
697 case kGraphOpCreation: {
698 mutable_graph_op_creation()->::tensorflow::GraphOpCreation::MergeFrom(from.graph_op_creation());
699 break;
700 }
701 case kDebuggedGraph: {
702 mutable_debugged_graph()->::tensorflow::DebuggedGraph::MergeFrom(from.debugged_graph());
703 break;
704 }
705 case kExecution: {
706 mutable_execution()->::tensorflow::Execution::MergeFrom(from.execution());
707 break;
708 }
709 case kGraphExecutionTrace: {
710 mutable_graph_execution_trace()->::tensorflow::GraphExecutionTrace::MergeFrom(from.graph_execution_trace());
711 break;
712 }
713 case kGraphId: {
714 set_graph_id(from.graph_id());
715 break;
716 }
717 case kDebuggedDevice: {
718 mutable_debugged_device()->::tensorflow::DebuggedDevice::MergeFrom(from.debugged_device());
719 break;
720 }
721 case WHAT_NOT_SET: {
722 break;
723 }
724 }
725 // @@protoc_insertion_point(copy_constructor:tensorflow.DebugEvent)
726}
727
728void DebugEvent::SharedCtor() {
729 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
730 ::memset(&wall_time_, 0, static_cast<size_t>(
731 reinterpret_cast<char*>(&step_) -
732 reinterpret_cast<char*>(&wall_time_)) + sizeof(step_));
733 clear_has_what();
734}
735
736DebugEvent::~DebugEvent() {
737 // @@protoc_insertion_point(destructor:tensorflow.DebugEvent)
738 SharedDtor();
739}
740
741void DebugEvent::SharedDtor() {
742 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
743 if (has_what()) {
744 clear_what();
745 }
746}
747
748void DebugEvent::ArenaDtor(void* object) {
749 DebugEvent* _this = reinterpret_cast< DebugEvent* >(object);
750 (void)_this;
751}
752void DebugEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
753}
754void DebugEvent::SetCachedSize(int size) const {
755 _cached_size_.Set(size);
756}
757const DebugEvent& DebugEvent::default_instance() {
758 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebugEvent_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
759 return *internal_default_instance();
760}
761
762
763void DebugEvent::clear_what() {
764// @@protoc_insertion_point(one_of_clear_start:tensorflow.DebugEvent)
765 switch (what_case()) {
766 case kDebugMetadata: {
767 if (GetArenaNoVirtual() == nullptr) {
768 delete what_.debug_metadata_;
769 }
770 break;
771 }
772 case kSourceFile: {
773 if (GetArenaNoVirtual() == nullptr) {
774 delete what_.source_file_;
775 }
776 break;
777 }
778 case kStackFrameWithId: {
779 if (GetArenaNoVirtual() == nullptr) {
780 delete what_.stack_frame_with_id_;
781 }
782 break;
783 }
784 case kGraphOpCreation: {
785 if (GetArenaNoVirtual() == nullptr) {
786 delete what_.graph_op_creation_;
787 }
788 break;
789 }
790 case kDebuggedGraph: {
791 if (GetArenaNoVirtual() == nullptr) {
792 delete what_.debugged_graph_;
793 }
794 break;
795 }
796 case kExecution: {
797 if (GetArenaNoVirtual() == nullptr) {
798 delete what_.execution_;
799 }
800 break;
801 }
802 case kGraphExecutionTrace: {
803 if (GetArenaNoVirtual() == nullptr) {
804 delete what_.graph_execution_trace_;
805 }
806 break;
807 }
808 case kGraphId: {
809 what_.graph_id_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
810 GetArenaNoVirtual());
811 break;
812 }
813 case kDebuggedDevice: {
814 if (GetArenaNoVirtual() == nullptr) {
815 delete what_.debugged_device_;
816 }
817 break;
818 }
819 case WHAT_NOT_SET: {
820 break;
821 }
822 }
823 _oneof_case_[0] = WHAT_NOT_SET;
824}
825
826
827void DebugEvent::Clear() {
828// @@protoc_insertion_point(message_clear_start:tensorflow.DebugEvent)
829 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
830 // Prevent compiler warnings about cached_has_bits being unused
831 (void) cached_has_bits;
832
833 ::memset(&wall_time_, 0, static_cast<size_t>(
834 reinterpret_cast<char*>(&step_) -
835 reinterpret_cast<char*>(&wall_time_)) + sizeof(step_));
836 clear_what();
837 _internal_metadata_.Clear();
838}
839
840#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
841const char* DebugEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
842#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
843 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
844 while (!ctx->Done(&ptr)) {
845 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
846 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
847 CHK_(ptr);
848 switch (tag >> 3) {
849 // double wall_time = 1;
850 case 1:
851 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
852 wall_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
853 ptr += sizeof(double);
854 } else goto handle_unusual;
855 continue;
856 // int64 step = 2;
857 case 2:
858 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
859 step_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
860 CHK_(ptr);
861 } else goto handle_unusual;
862 continue;
863 // .tensorflow.DebugMetadata debug_metadata = 3;
864 case 3:
865 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
866 ptr = ctx->ParseMessage(mutable_debug_metadata(), ptr);
867 CHK_(ptr);
868 } else goto handle_unusual;
869 continue;
870 // .tensorflow.SourceFile source_file = 4;
871 case 4:
872 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
873 ptr = ctx->ParseMessage(mutable_source_file(), ptr);
874 CHK_(ptr);
875 } else goto handle_unusual;
876 continue;
877 // .tensorflow.StackFrameWithId stack_frame_with_id = 6;
878 case 6:
879 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
880 ptr = ctx->ParseMessage(mutable_stack_frame_with_id(), ptr);
881 CHK_(ptr);
882 } else goto handle_unusual;
883 continue;
884 // .tensorflow.GraphOpCreation graph_op_creation = 7;
885 case 7:
886 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
887 ptr = ctx->ParseMessage(mutable_graph_op_creation(), ptr);
888 CHK_(ptr);
889 } else goto handle_unusual;
890 continue;
891 // .tensorflow.DebuggedGraph debugged_graph = 8;
892 case 8:
893 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
894 ptr = ctx->ParseMessage(mutable_debugged_graph(), ptr);
895 CHK_(ptr);
896 } else goto handle_unusual;
897 continue;
898 // .tensorflow.Execution execution = 9;
899 case 9:
900 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
901 ptr = ctx->ParseMessage(mutable_execution(), ptr);
902 CHK_(ptr);
903 } else goto handle_unusual;
904 continue;
905 // .tensorflow.GraphExecutionTrace graph_execution_trace = 10;
906 case 10:
907 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
908 ptr = ctx->ParseMessage(mutable_graph_execution_trace(), ptr);
909 CHK_(ptr);
910 } else goto handle_unusual;
911 continue;
912 // string graph_id = 11;
913 case 11:
914 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
915 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_id(), ptr, ctx, "tensorflow.DebugEvent.graph_id");
916 CHK_(ptr);
917 } else goto handle_unusual;
918 continue;
919 // .tensorflow.DebuggedDevice debugged_device = 12;
920 case 12:
921 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
922 ptr = ctx->ParseMessage(mutable_debugged_device(), ptr);
923 CHK_(ptr);
924 } else goto handle_unusual;
925 continue;
926 default: {
927 handle_unusual:
928 if ((tag & 7) == 4 || tag == 0) {
929 ctx->SetLastTag(tag);
930 goto success;
931 }
932 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
933 CHK_(ptr != nullptr);
934 continue;
935 }
936 } // switch
937 } // while
938success:
939 return ptr;
940failure:
941 ptr = nullptr;
942 goto success;
943#undef CHK_
944}
945#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
946bool DebugEvent::MergePartialFromCodedStream(
947 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
948#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
949 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
950 // @@protoc_insertion_point(parse_start:tensorflow.DebugEvent)
951 for (;;) {
952 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
953 tag = p.first;
954 if (!p.second) goto handle_unusual;
955 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
956 // double wall_time = 1;
957 case 1: {
958 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
959
960 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
961 double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
962 input, &wall_time_)));
963 } else {
964 goto handle_unusual;
965 }
966 break;
967 }
968
969 // int64 step = 2;
970 case 2: {
971 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
972
973 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
974 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
975 input, &step_)));
976 } else {
977 goto handle_unusual;
978 }
979 break;
980 }
981
982 // .tensorflow.DebugMetadata debug_metadata = 3;
983 case 3: {
984 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
985 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
986 input, mutable_debug_metadata()));
987 } else {
988 goto handle_unusual;
989 }
990 break;
991 }
992
993 // .tensorflow.SourceFile source_file = 4;
994 case 4: {
995 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
996 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
997 input, mutable_source_file()));
998 } else {
999 goto handle_unusual;
1000 }
1001 break;
1002 }
1003
1004 // .tensorflow.StackFrameWithId stack_frame_with_id = 6;
1005 case 6: {
1006 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
1007 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1008 input, mutable_stack_frame_with_id()));
1009 } else {
1010 goto handle_unusual;
1011 }
1012 break;
1013 }
1014
1015 // .tensorflow.GraphOpCreation graph_op_creation = 7;
1016 case 7: {
1017 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
1018 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1019 input, mutable_graph_op_creation()));
1020 } else {
1021 goto handle_unusual;
1022 }
1023 break;
1024 }
1025
1026 // .tensorflow.DebuggedGraph debugged_graph = 8;
1027 case 8: {
1028 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
1029 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1030 input, mutable_debugged_graph()));
1031 } else {
1032 goto handle_unusual;
1033 }
1034 break;
1035 }
1036
1037 // .tensorflow.Execution execution = 9;
1038 case 9: {
1039 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
1040 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1041 input, mutable_execution()));
1042 } else {
1043 goto handle_unusual;
1044 }
1045 break;
1046 }
1047
1048 // .tensorflow.GraphExecutionTrace graph_execution_trace = 10;
1049 case 10: {
1050 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
1051 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1052 input, mutable_graph_execution_trace()));
1053 } else {
1054 goto handle_unusual;
1055 }
1056 break;
1057 }
1058
1059 // string graph_id = 11;
1060 case 11: {
1061 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) {
1062 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1063 input, this->mutable_graph_id()));
1064 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1065 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
1066 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1067 "tensorflow.DebugEvent.graph_id"));
1068 } else {
1069 goto handle_unusual;
1070 }
1071 break;
1072 }
1073
1074 // .tensorflow.DebuggedDevice debugged_device = 12;
1075 case 12: {
1076 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) {
1077 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1078 input, mutable_debugged_device()));
1079 } else {
1080 goto handle_unusual;
1081 }
1082 break;
1083 }
1084
1085 default: {
1086 handle_unusual:
1087 if (tag == 0) {
1088 goto success;
1089 }
1090 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1091 input, tag, _internal_metadata_.mutable_unknown_fields()));
1092 break;
1093 }
1094 }
1095 }
1096success:
1097 // @@protoc_insertion_point(parse_success:tensorflow.DebugEvent)
1098 return true;
1099failure:
1100 // @@protoc_insertion_point(parse_failure:tensorflow.DebugEvent)
1101 return false;
1102#undef DO_
1103}
1104#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1105
1106void DebugEvent::SerializeWithCachedSizes(
1107 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1108 // @@protoc_insertion_point(serialize_start:tensorflow.DebugEvent)
1109 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1110 (void) cached_has_bits;
1111
1112 // double wall_time = 1;
1113 if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) {
1114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(1, this->wall_time(), output);
1115 }
1116
1117 // int64 step = 2;
1118 if (this->step() != 0) {
1119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->step(), output);
1120 }
1121
1122 // .tensorflow.DebugMetadata debug_metadata = 3;
1123 if (has_debug_metadata()) {
1124 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1125 3, _Internal::debug_metadata(this), output);
1126 }
1127
1128 // .tensorflow.SourceFile source_file = 4;
1129 if (has_source_file()) {
1130 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1131 4, _Internal::source_file(this), output);
1132 }
1133
1134 // .tensorflow.StackFrameWithId stack_frame_with_id = 6;
1135 if (has_stack_frame_with_id()) {
1136 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1137 6, _Internal::stack_frame_with_id(this), output);
1138 }
1139
1140 // .tensorflow.GraphOpCreation graph_op_creation = 7;
1141 if (has_graph_op_creation()) {
1142 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1143 7, _Internal::graph_op_creation(this), output);
1144 }
1145
1146 // .tensorflow.DebuggedGraph debugged_graph = 8;
1147 if (has_debugged_graph()) {
1148 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1149 8, _Internal::debugged_graph(this), output);
1150 }
1151
1152 // .tensorflow.Execution execution = 9;
1153 if (has_execution()) {
1154 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1155 9, _Internal::execution(this), output);
1156 }
1157
1158 // .tensorflow.GraphExecutionTrace graph_execution_trace = 10;
1159 if (has_graph_execution_trace()) {
1160 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1161 10, _Internal::graph_execution_trace(this), output);
1162 }
1163
1164 // string graph_id = 11;
1165 if (has_graph_id()) {
1166 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1167 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
1168 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1169 "tensorflow.DebugEvent.graph_id");
1170 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1171 11, this->graph_id(), output);
1172 }
1173
1174 // .tensorflow.DebuggedDevice debugged_device = 12;
1175 if (has_debugged_device()) {
1176 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1177 12, _Internal::debugged_device(this), output);
1178 }
1179
1180 if (_internal_metadata_.have_unknown_fields()) {
1181 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1182 _internal_metadata_.unknown_fields(), output);
1183 }
1184 // @@protoc_insertion_point(serialize_end:tensorflow.DebugEvent)
1185}
1186
1187::PROTOBUF_NAMESPACE_ID::uint8* DebugEvent::InternalSerializeWithCachedSizesToArray(
1188 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1189 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebugEvent)
1190 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1191 (void) cached_has_bits;
1192
1193 // double wall_time = 1;
1194 if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) {
1195 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->wall_time(), target);
1196 }
1197
1198 // int64 step = 2;
1199 if (this->step() != 0) {
1200 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->step(), target);
1201 }
1202
1203 // .tensorflow.DebugMetadata debug_metadata = 3;
1204 if (has_debug_metadata()) {
1205 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1206 InternalWriteMessageToArray(
1207 3, _Internal::debug_metadata(this), target);
1208 }
1209
1210 // .tensorflow.SourceFile source_file = 4;
1211 if (has_source_file()) {
1212 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1213 InternalWriteMessageToArray(
1214 4, _Internal::source_file(this), target);
1215 }
1216
1217 // .tensorflow.StackFrameWithId stack_frame_with_id = 6;
1218 if (has_stack_frame_with_id()) {
1219 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1220 InternalWriteMessageToArray(
1221 6, _Internal::stack_frame_with_id(this), target);
1222 }
1223
1224 // .tensorflow.GraphOpCreation graph_op_creation = 7;
1225 if (has_graph_op_creation()) {
1226 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1227 InternalWriteMessageToArray(
1228 7, _Internal::graph_op_creation(this), target);
1229 }
1230
1231 // .tensorflow.DebuggedGraph debugged_graph = 8;
1232 if (has_debugged_graph()) {
1233 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1234 InternalWriteMessageToArray(
1235 8, _Internal::debugged_graph(this), target);
1236 }
1237
1238 // .tensorflow.Execution execution = 9;
1239 if (has_execution()) {
1240 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1241 InternalWriteMessageToArray(
1242 9, _Internal::execution(this), target);
1243 }
1244
1245 // .tensorflow.GraphExecutionTrace graph_execution_trace = 10;
1246 if (has_graph_execution_trace()) {
1247 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1248 InternalWriteMessageToArray(
1249 10, _Internal::graph_execution_trace(this), target);
1250 }
1251
1252 // string graph_id = 11;
1253 if (has_graph_id()) {
1254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1255 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
1256 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1257 "tensorflow.DebugEvent.graph_id");
1258 target =
1259 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1260 11, this->graph_id(), target);
1261 }
1262
1263 // .tensorflow.DebuggedDevice debugged_device = 12;
1264 if (has_debugged_device()) {
1265 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1266 InternalWriteMessageToArray(
1267 12, _Internal::debugged_device(this), target);
1268 }
1269
1270 if (_internal_metadata_.have_unknown_fields()) {
1271 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1272 _internal_metadata_.unknown_fields(), target);
1273 }
1274 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebugEvent)
1275 return target;
1276}
1277
1278size_t DebugEvent::ByteSizeLong() const {
1279// @@protoc_insertion_point(message_byte_size_start:tensorflow.DebugEvent)
1280 size_t total_size = 0;
1281
1282 if (_internal_metadata_.have_unknown_fields()) {
1283 total_size +=
1284 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1285 _internal_metadata_.unknown_fields());
1286 }
1287 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1288 // Prevent compiler warnings about cached_has_bits being unused
1289 (void) cached_has_bits;
1290
1291 // double wall_time = 1;
1292 if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) {
1293 total_size += 1 + 8;
1294 }
1295
1296 // int64 step = 2;
1297 if (this->step() != 0) {
1298 total_size += 1 +
1299 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1300 this->step());
1301 }
1302
1303 switch (what_case()) {
1304 // .tensorflow.DebugMetadata debug_metadata = 3;
1305 case kDebugMetadata: {
1306 total_size += 1 +
1307 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1308 *what_.debug_metadata_);
1309 break;
1310 }
1311 // .tensorflow.SourceFile source_file = 4;
1312 case kSourceFile: {
1313 total_size += 1 +
1314 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1315 *what_.source_file_);
1316 break;
1317 }
1318 // .tensorflow.StackFrameWithId stack_frame_with_id = 6;
1319 case kStackFrameWithId: {
1320 total_size += 1 +
1321 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1322 *what_.stack_frame_with_id_);
1323 break;
1324 }
1325 // .tensorflow.GraphOpCreation graph_op_creation = 7;
1326 case kGraphOpCreation: {
1327 total_size += 1 +
1328 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1329 *what_.graph_op_creation_);
1330 break;
1331 }
1332 // .tensorflow.DebuggedGraph debugged_graph = 8;
1333 case kDebuggedGraph: {
1334 total_size += 1 +
1335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1336 *what_.debugged_graph_);
1337 break;
1338 }
1339 // .tensorflow.Execution execution = 9;
1340 case kExecution: {
1341 total_size += 1 +
1342 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1343 *what_.execution_);
1344 break;
1345 }
1346 // .tensorflow.GraphExecutionTrace graph_execution_trace = 10;
1347 case kGraphExecutionTrace: {
1348 total_size += 1 +
1349 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1350 *what_.graph_execution_trace_);
1351 break;
1352 }
1353 // string graph_id = 11;
1354 case kGraphId: {
1355 total_size += 1 +
1356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1357 this->graph_id());
1358 break;
1359 }
1360 // .tensorflow.DebuggedDevice debugged_device = 12;
1361 case kDebuggedDevice: {
1362 total_size += 1 +
1363 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1364 *what_.debugged_device_);
1365 break;
1366 }
1367 case WHAT_NOT_SET: {
1368 break;
1369 }
1370 }
1371 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1372 SetCachedSize(cached_size);
1373 return total_size;
1374}
1375
1376void DebugEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1377// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebugEvent)
1378 GOOGLE_DCHECK_NE(&from, this);
1379 const DebugEvent* source =
1380 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebugEvent>(
1381 &from);
1382 if (source == nullptr) {
1383 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebugEvent)
1384 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1385 } else {
1386 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebugEvent)
1387 MergeFrom(*source);
1388 }
1389}
1390
1391void DebugEvent::MergeFrom(const DebugEvent& from) {
1392// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebugEvent)
1393 GOOGLE_DCHECK_NE(&from, this);
1394 _internal_metadata_.MergeFrom(from._internal_metadata_);
1395 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1396 (void) cached_has_bits;
1397
1398 if (!(from.wall_time() <= 0 && from.wall_time() >= 0)) {
1399 set_wall_time(from.wall_time());
1400 }
1401 if (from.step() != 0) {
1402 set_step(from.step());
1403 }
1404 switch (from.what_case()) {
1405 case kDebugMetadata: {
1406 mutable_debug_metadata()->::tensorflow::DebugMetadata::MergeFrom(from.debug_metadata());
1407 break;
1408 }
1409 case kSourceFile: {
1410 mutable_source_file()->::tensorflow::SourceFile::MergeFrom(from.source_file());
1411 break;
1412 }
1413 case kStackFrameWithId: {
1414 mutable_stack_frame_with_id()->::tensorflow::StackFrameWithId::MergeFrom(from.stack_frame_with_id());
1415 break;
1416 }
1417 case kGraphOpCreation: {
1418 mutable_graph_op_creation()->::tensorflow::GraphOpCreation::MergeFrom(from.graph_op_creation());
1419 break;
1420 }
1421 case kDebuggedGraph: {
1422 mutable_debugged_graph()->::tensorflow::DebuggedGraph::MergeFrom(from.debugged_graph());
1423 break;
1424 }
1425 case kExecution: {
1426 mutable_execution()->::tensorflow::Execution::MergeFrom(from.execution());
1427 break;
1428 }
1429 case kGraphExecutionTrace: {
1430 mutable_graph_execution_trace()->::tensorflow::GraphExecutionTrace::MergeFrom(from.graph_execution_trace());
1431 break;
1432 }
1433 case kGraphId: {
1434 set_graph_id(from.graph_id());
1435 break;
1436 }
1437 case kDebuggedDevice: {
1438 mutable_debugged_device()->::tensorflow::DebuggedDevice::MergeFrom(from.debugged_device());
1439 break;
1440 }
1441 case WHAT_NOT_SET: {
1442 break;
1443 }
1444 }
1445}
1446
1447void DebugEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1448// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebugEvent)
1449 if (&from == this) return;
1450 Clear();
1451 MergeFrom(from);
1452}
1453
1454void DebugEvent::CopyFrom(const DebugEvent& from) {
1455// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebugEvent)
1456 if (&from == this) return;
1457 Clear();
1458 MergeFrom(from);
1459}
1460
1461bool DebugEvent::IsInitialized() const {
1462 return true;
1463}
1464
1465void DebugEvent::InternalSwap(DebugEvent* other) {
1466 using std::swap;
1467 _internal_metadata_.Swap(&other->_internal_metadata_);
1468 swap(wall_time_, other->wall_time_);
1469 swap(step_, other->step_);
1470 swap(what_, other->what_);
1471 swap(_oneof_case_[0], other->_oneof_case_[0]);
1472}
1473
1474::PROTOBUF_NAMESPACE_ID::Metadata DebugEvent::GetMetadata() const {
1475 return GetMetadataStatic();
1476}
1477
1478
1479// ===================================================================
1480
1481void DebugMetadata::InitAsDefaultInstance() {
1482}
1483class DebugMetadata::_Internal {
1484 public:
1485};
1486
1487DebugMetadata::DebugMetadata()
1488 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1489 SharedCtor();
1490 // @@protoc_insertion_point(constructor:tensorflow.DebugMetadata)
1491}
1492DebugMetadata::DebugMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1493 : ::PROTOBUF_NAMESPACE_ID::Message(),
1494 _internal_metadata_(arena) {
1495 SharedCtor();
1496 RegisterArenaDtor(arena);
1497 // @@protoc_insertion_point(arena_constructor:tensorflow.DebugMetadata)
1498}
1499DebugMetadata::DebugMetadata(const DebugMetadata& from)
1500 : ::PROTOBUF_NAMESPACE_ID::Message(),
1501 _internal_metadata_(nullptr) {
1502 _internal_metadata_.MergeFrom(from._internal_metadata_);
1503 tensorflow_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1504 if (!from.tensorflow_version().empty()) {
1505 tensorflow_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tensorflow_version(),
1506 GetArenaNoVirtual());
1507 }
1508 file_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1509 if (!from.file_version().empty()) {
1510 file_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_version(),
1511 GetArenaNoVirtual());
1512 }
1513 tfdbg_run_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1514 if (!from.tfdbg_run_id().empty()) {
1515 tfdbg_run_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tfdbg_run_id(),
1516 GetArenaNoVirtual());
1517 }
1518 // @@protoc_insertion_point(copy_constructor:tensorflow.DebugMetadata)
1519}
1520
1521void DebugMetadata::SharedCtor() {
1522 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
1523 tensorflow_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1524 file_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1525 tfdbg_run_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1526}
1527
1528DebugMetadata::~DebugMetadata() {
1529 // @@protoc_insertion_point(destructor:tensorflow.DebugMetadata)
1530 SharedDtor();
1531}
1532
1533void DebugMetadata::SharedDtor() {
1534 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1535 tensorflow_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1536 file_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1537 tfdbg_run_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1538}
1539
1540void DebugMetadata::ArenaDtor(void* object) {
1541 DebugMetadata* _this = reinterpret_cast< DebugMetadata* >(object);
1542 (void)_this;
1543}
1544void DebugMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1545}
1546void DebugMetadata::SetCachedSize(int size) const {
1547 _cached_size_.Set(size);
1548}
1549const DebugMetadata& DebugMetadata::default_instance() {
1550 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebugMetadata_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
1551 return *internal_default_instance();
1552}
1553
1554
1555void DebugMetadata::Clear() {
1556// @@protoc_insertion_point(message_clear_start:tensorflow.DebugMetadata)
1557 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1558 // Prevent compiler warnings about cached_has_bits being unused
1559 (void) cached_has_bits;
1560
1561 tensorflow_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1562 file_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1563 tfdbg_run_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1564 _internal_metadata_.Clear();
1565}
1566
1567#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1568const char* DebugMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1569#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1570 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1571 while (!ctx->Done(&ptr)) {
1572 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1573 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1574 CHK_(ptr);
1575 switch (tag >> 3) {
1576 // string tensorflow_version = 1;
1577 case 1:
1578 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1579 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tensorflow_version(), ptr, ctx, "tensorflow.DebugMetadata.tensorflow_version");
1580 CHK_(ptr);
1581 } else goto handle_unusual;
1582 continue;
1583 // string file_version = 2;
1584 case 2:
1585 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1586 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_file_version(), ptr, ctx, "tensorflow.DebugMetadata.file_version");
1587 CHK_(ptr);
1588 } else goto handle_unusual;
1589 continue;
1590 // string tfdbg_run_id = 3;
1591 case 3:
1592 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1593 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tfdbg_run_id(), ptr, ctx, "tensorflow.DebugMetadata.tfdbg_run_id");
1594 CHK_(ptr);
1595 } else goto handle_unusual;
1596 continue;
1597 default: {
1598 handle_unusual:
1599 if ((tag & 7) == 4 || tag == 0) {
1600 ctx->SetLastTag(tag);
1601 goto success;
1602 }
1603 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1604 CHK_(ptr != nullptr);
1605 continue;
1606 }
1607 } // switch
1608 } // while
1609success:
1610 return ptr;
1611failure:
1612 ptr = nullptr;
1613 goto success;
1614#undef CHK_
1615}
1616#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1617bool DebugMetadata::MergePartialFromCodedStream(
1618 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1619#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1620 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1621 // @@protoc_insertion_point(parse_start:tensorflow.DebugMetadata)
1622 for (;;) {
1623 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1624 tag = p.first;
1625 if (!p.second) goto handle_unusual;
1626 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1627 // string tensorflow_version = 1;
1628 case 1: {
1629 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1630 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1631 input, this->mutable_tensorflow_version()));
1632 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1633 this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()),
1634 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1635 "tensorflow.DebugMetadata.tensorflow_version"));
1636 } else {
1637 goto handle_unusual;
1638 }
1639 break;
1640 }
1641
1642 // string file_version = 2;
1643 case 2: {
1644 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1645 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1646 input, this->mutable_file_version()));
1647 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1648 this->file_version().data(), static_cast<int>(this->file_version().length()),
1649 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1650 "tensorflow.DebugMetadata.file_version"));
1651 } else {
1652 goto handle_unusual;
1653 }
1654 break;
1655 }
1656
1657 // string tfdbg_run_id = 3;
1658 case 3: {
1659 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1660 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1661 input, this->mutable_tfdbg_run_id()));
1662 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1663 this->tfdbg_run_id().data(), static_cast<int>(this->tfdbg_run_id().length()),
1664 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1665 "tensorflow.DebugMetadata.tfdbg_run_id"));
1666 } else {
1667 goto handle_unusual;
1668 }
1669 break;
1670 }
1671
1672 default: {
1673 handle_unusual:
1674 if (tag == 0) {
1675 goto success;
1676 }
1677 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1678 input, tag, _internal_metadata_.mutable_unknown_fields()));
1679 break;
1680 }
1681 }
1682 }
1683success:
1684 // @@protoc_insertion_point(parse_success:tensorflow.DebugMetadata)
1685 return true;
1686failure:
1687 // @@protoc_insertion_point(parse_failure:tensorflow.DebugMetadata)
1688 return false;
1689#undef DO_
1690}
1691#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1692
1693void DebugMetadata::SerializeWithCachedSizes(
1694 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1695 // @@protoc_insertion_point(serialize_start:tensorflow.DebugMetadata)
1696 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1697 (void) cached_has_bits;
1698
1699 // string tensorflow_version = 1;
1700 if (this->tensorflow_version().size() > 0) {
1701 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1702 this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()),
1703 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1704 "tensorflow.DebugMetadata.tensorflow_version");
1705 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1706 1, this->tensorflow_version(), output);
1707 }
1708
1709 // string file_version = 2;
1710 if (this->file_version().size() > 0) {
1711 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1712 this->file_version().data(), static_cast<int>(this->file_version().length()),
1713 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1714 "tensorflow.DebugMetadata.file_version");
1715 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1716 2, this->file_version(), output);
1717 }
1718
1719 // string tfdbg_run_id = 3;
1720 if (this->tfdbg_run_id().size() > 0) {
1721 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1722 this->tfdbg_run_id().data(), static_cast<int>(this->tfdbg_run_id().length()),
1723 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1724 "tensorflow.DebugMetadata.tfdbg_run_id");
1725 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1726 3, this->tfdbg_run_id(), output);
1727 }
1728
1729 if (_internal_metadata_.have_unknown_fields()) {
1730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1731 _internal_metadata_.unknown_fields(), output);
1732 }
1733 // @@protoc_insertion_point(serialize_end:tensorflow.DebugMetadata)
1734}
1735
1736::PROTOBUF_NAMESPACE_ID::uint8* DebugMetadata::InternalSerializeWithCachedSizesToArray(
1737 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1738 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebugMetadata)
1739 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1740 (void) cached_has_bits;
1741
1742 // string tensorflow_version = 1;
1743 if (this->tensorflow_version().size() > 0) {
1744 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1745 this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()),
1746 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1747 "tensorflow.DebugMetadata.tensorflow_version");
1748 target =
1749 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1750 1, this->tensorflow_version(), target);
1751 }
1752
1753 // string file_version = 2;
1754 if (this->file_version().size() > 0) {
1755 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1756 this->file_version().data(), static_cast<int>(this->file_version().length()),
1757 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1758 "tensorflow.DebugMetadata.file_version");
1759 target =
1760 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1761 2, this->file_version(), target);
1762 }
1763
1764 // string tfdbg_run_id = 3;
1765 if (this->tfdbg_run_id().size() > 0) {
1766 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1767 this->tfdbg_run_id().data(), static_cast<int>(this->tfdbg_run_id().length()),
1768 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1769 "tensorflow.DebugMetadata.tfdbg_run_id");
1770 target =
1771 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1772 3, this->tfdbg_run_id(), target);
1773 }
1774
1775 if (_internal_metadata_.have_unknown_fields()) {
1776 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1777 _internal_metadata_.unknown_fields(), target);
1778 }
1779 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebugMetadata)
1780 return target;
1781}
1782
1783size_t DebugMetadata::ByteSizeLong() const {
1784// @@protoc_insertion_point(message_byte_size_start:tensorflow.DebugMetadata)
1785 size_t total_size = 0;
1786
1787 if (_internal_metadata_.have_unknown_fields()) {
1788 total_size +=
1789 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1790 _internal_metadata_.unknown_fields());
1791 }
1792 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1793 // Prevent compiler warnings about cached_has_bits being unused
1794 (void) cached_has_bits;
1795
1796 // string tensorflow_version = 1;
1797 if (this->tensorflow_version().size() > 0) {
1798 total_size += 1 +
1799 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1800 this->tensorflow_version());
1801 }
1802
1803 // string file_version = 2;
1804 if (this->file_version().size() > 0) {
1805 total_size += 1 +
1806 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1807 this->file_version());
1808 }
1809
1810 // string tfdbg_run_id = 3;
1811 if (this->tfdbg_run_id().size() > 0) {
1812 total_size += 1 +
1813 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1814 this->tfdbg_run_id());
1815 }
1816
1817 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1818 SetCachedSize(cached_size);
1819 return total_size;
1820}
1821
1822void DebugMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1823// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebugMetadata)
1824 GOOGLE_DCHECK_NE(&from, this);
1825 const DebugMetadata* source =
1826 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebugMetadata>(
1827 &from);
1828 if (source == nullptr) {
1829 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebugMetadata)
1830 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1831 } else {
1832 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebugMetadata)
1833 MergeFrom(*source);
1834 }
1835}
1836
1837void DebugMetadata::MergeFrom(const DebugMetadata& from) {
1838// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebugMetadata)
1839 GOOGLE_DCHECK_NE(&from, this);
1840 _internal_metadata_.MergeFrom(from._internal_metadata_);
1841 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1842 (void) cached_has_bits;
1843
1844 if (from.tensorflow_version().size() > 0) {
1845 set_tensorflow_version(from.tensorflow_version());
1846 }
1847 if (from.file_version().size() > 0) {
1848 set_file_version(from.file_version());
1849 }
1850 if (from.tfdbg_run_id().size() > 0) {
1851 set_tfdbg_run_id(from.tfdbg_run_id());
1852 }
1853}
1854
1855void DebugMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1856// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebugMetadata)
1857 if (&from == this) return;
1858 Clear();
1859 MergeFrom(from);
1860}
1861
1862void DebugMetadata::CopyFrom(const DebugMetadata& from) {
1863// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebugMetadata)
1864 if (&from == this) return;
1865 Clear();
1866 MergeFrom(from);
1867}
1868
1869bool DebugMetadata::IsInitialized() const {
1870 return true;
1871}
1872
1873void DebugMetadata::InternalSwap(DebugMetadata* other) {
1874 using std::swap;
1875 _internal_metadata_.Swap(&other->_internal_metadata_);
1876 tensorflow_version_.Swap(&other->tensorflow_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1877 GetArenaNoVirtual());
1878 file_version_.Swap(&other->file_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1879 GetArenaNoVirtual());
1880 tfdbg_run_id_.Swap(&other->tfdbg_run_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1881 GetArenaNoVirtual());
1882}
1883
1884::PROTOBUF_NAMESPACE_ID::Metadata DebugMetadata::GetMetadata() const {
1885 return GetMetadataStatic();
1886}
1887
1888
1889// ===================================================================
1890
1891void SourceFile::InitAsDefaultInstance() {
1892}
1893class SourceFile::_Internal {
1894 public:
1895};
1896
1897SourceFile::SourceFile()
1898 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1899 SharedCtor();
1900 // @@protoc_insertion_point(constructor:tensorflow.SourceFile)
1901}
1902SourceFile::SourceFile(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1903 : ::PROTOBUF_NAMESPACE_ID::Message(),
1904 _internal_metadata_(arena),
1905 lines_(arena) {
1906 SharedCtor();
1907 RegisterArenaDtor(arena);
1908 // @@protoc_insertion_point(arena_constructor:tensorflow.SourceFile)
1909}
1910SourceFile::SourceFile(const SourceFile& from)
1911 : ::PROTOBUF_NAMESPACE_ID::Message(),
1912 _internal_metadata_(nullptr),
1913 lines_(from.lines_) {
1914 _internal_metadata_.MergeFrom(from._internal_metadata_);
1915 file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1916 if (!from.file_path().empty()) {
1917 file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_path(),
1918 GetArenaNoVirtual());
1919 }
1920 host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1921 if (!from.host_name().empty()) {
1922 host_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_name(),
1923 GetArenaNoVirtual());
1924 }
1925 // @@protoc_insertion_point(copy_constructor:tensorflow.SourceFile)
1926}
1927
1928void SourceFile::SharedCtor() {
1929 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
1930 file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1931 host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1932}
1933
1934SourceFile::~SourceFile() {
1935 // @@protoc_insertion_point(destructor:tensorflow.SourceFile)
1936 SharedDtor();
1937}
1938
1939void SourceFile::SharedDtor() {
1940 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1941 file_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1942 host_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1943}
1944
1945void SourceFile::ArenaDtor(void* object) {
1946 SourceFile* _this = reinterpret_cast< SourceFile* >(object);
1947 (void)_this;
1948}
1949void SourceFile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1950}
1951void SourceFile::SetCachedSize(int size) const {
1952 _cached_size_.Set(size);
1953}
1954const SourceFile& SourceFile::default_instance() {
1955 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
1956 return *internal_default_instance();
1957}
1958
1959
1960void SourceFile::Clear() {
1961// @@protoc_insertion_point(message_clear_start:tensorflow.SourceFile)
1962 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1963 // Prevent compiler warnings about cached_has_bits being unused
1964 (void) cached_has_bits;
1965
1966 lines_.Clear();
1967 file_path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1968 host_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1969 _internal_metadata_.Clear();
1970}
1971
1972#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1973const char* SourceFile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1974#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1975 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1976 while (!ctx->Done(&ptr)) {
1977 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1978 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1979 CHK_(ptr);
1980 switch (tag >> 3) {
1981 // string file_path = 1;
1982 case 1:
1983 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1984 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_file_path(), ptr, ctx, "tensorflow.SourceFile.file_path");
1985 CHK_(ptr);
1986 } else goto handle_unusual;
1987 continue;
1988 // string host_name = 2;
1989 case 2:
1990 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1991 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_host_name(), ptr, ctx, "tensorflow.SourceFile.host_name");
1992 CHK_(ptr);
1993 } else goto handle_unusual;
1994 continue;
1995 // repeated string lines = 3;
1996 case 3:
1997 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1998 ptr -= 1;
1999 do {
2000 ptr += 1;
2001 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_lines(), ptr, ctx, "tensorflow.SourceFile.lines");
2002 CHK_(ptr);
2003 if (!ctx->DataAvailable(ptr)) break;
2004 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
2005 } else goto handle_unusual;
2006 continue;
2007 default: {
2008 handle_unusual:
2009 if ((tag & 7) == 4 || tag == 0) {
2010 ctx->SetLastTag(tag);
2011 goto success;
2012 }
2013 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2014 CHK_(ptr != nullptr);
2015 continue;
2016 }
2017 } // switch
2018 } // while
2019success:
2020 return ptr;
2021failure:
2022 ptr = nullptr;
2023 goto success;
2024#undef CHK_
2025}
2026#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2027bool SourceFile::MergePartialFromCodedStream(
2028 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2029#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2030 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2031 // @@protoc_insertion_point(parse_start:tensorflow.SourceFile)
2032 for (;;) {
2033 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2034 tag = p.first;
2035 if (!p.second) goto handle_unusual;
2036 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2037 // string file_path = 1;
2038 case 1: {
2039 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2040 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2041 input, this->mutable_file_path()));
2042 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2043 this->file_path().data(), static_cast<int>(this->file_path().length()),
2044 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2045 "tensorflow.SourceFile.file_path"));
2046 } else {
2047 goto handle_unusual;
2048 }
2049 break;
2050 }
2051
2052 // string host_name = 2;
2053 case 2: {
2054 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2055 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2056 input, this->mutable_host_name()));
2057 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2058 this->host_name().data(), static_cast<int>(this->host_name().length()),
2059 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2060 "tensorflow.SourceFile.host_name"));
2061 } else {
2062 goto handle_unusual;
2063 }
2064 break;
2065 }
2066
2067 // repeated string lines = 3;
2068 case 3: {
2069 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2070 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2071 input, this->add_lines()));
2072 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2073 this->lines(this->lines_size() - 1).data(),
2074 static_cast<int>(this->lines(this->lines_size() - 1).length()),
2075 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2076 "tensorflow.SourceFile.lines"));
2077 } else {
2078 goto handle_unusual;
2079 }
2080 break;
2081 }
2082
2083 default: {
2084 handle_unusual:
2085 if (tag == 0) {
2086 goto success;
2087 }
2088 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2089 input, tag, _internal_metadata_.mutable_unknown_fields()));
2090 break;
2091 }
2092 }
2093 }
2094success:
2095 // @@protoc_insertion_point(parse_success:tensorflow.SourceFile)
2096 return true;
2097failure:
2098 // @@protoc_insertion_point(parse_failure:tensorflow.SourceFile)
2099 return false;
2100#undef DO_
2101}
2102#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2103
2104void SourceFile::SerializeWithCachedSizes(
2105 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2106 // @@protoc_insertion_point(serialize_start:tensorflow.SourceFile)
2107 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2108 (void) cached_has_bits;
2109
2110 // string file_path = 1;
2111 if (this->file_path().size() > 0) {
2112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2113 this->file_path().data(), static_cast<int>(this->file_path().length()),
2114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2115 "tensorflow.SourceFile.file_path");
2116 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2117 1, this->file_path(), output);
2118 }
2119
2120 // string host_name = 2;
2121 if (this->host_name().size() > 0) {
2122 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2123 this->host_name().data(), static_cast<int>(this->host_name().length()),
2124 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2125 "tensorflow.SourceFile.host_name");
2126 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2127 2, this->host_name(), output);
2128 }
2129
2130 // repeated string lines = 3;
2131 for (int i = 0, n = this->lines_size(); i < n; i++) {
2132 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2133 this->lines(i).data(), static_cast<int>(this->lines(i).length()),
2134 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2135 "tensorflow.SourceFile.lines");
2136 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2137 3, this->lines(i), output);
2138 }
2139
2140 if (_internal_metadata_.have_unknown_fields()) {
2141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2142 _internal_metadata_.unknown_fields(), output);
2143 }
2144 // @@protoc_insertion_point(serialize_end:tensorflow.SourceFile)
2145}
2146
2147::PROTOBUF_NAMESPACE_ID::uint8* SourceFile::InternalSerializeWithCachedSizesToArray(
2148 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2149 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.SourceFile)
2150 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2151 (void) cached_has_bits;
2152
2153 // string file_path = 1;
2154 if (this->file_path().size() > 0) {
2155 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2156 this->file_path().data(), static_cast<int>(this->file_path().length()),
2157 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2158 "tensorflow.SourceFile.file_path");
2159 target =
2160 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2161 1, this->file_path(), target);
2162 }
2163
2164 // string host_name = 2;
2165 if (this->host_name().size() > 0) {
2166 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2167 this->host_name().data(), static_cast<int>(this->host_name().length()),
2168 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2169 "tensorflow.SourceFile.host_name");
2170 target =
2171 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2172 2, this->host_name(), target);
2173 }
2174
2175 // repeated string lines = 3;
2176 for (int i = 0, n = this->lines_size(); i < n; i++) {
2177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2178 this->lines(i).data(), static_cast<int>(this->lines(i).length()),
2179 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2180 "tensorflow.SourceFile.lines");
2181 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2182 WriteStringToArray(3, this->lines(i), target);
2183 }
2184
2185 if (_internal_metadata_.have_unknown_fields()) {
2186 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2187 _internal_metadata_.unknown_fields(), target);
2188 }
2189 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.SourceFile)
2190 return target;
2191}
2192
2193size_t SourceFile::ByteSizeLong() const {
2194// @@protoc_insertion_point(message_byte_size_start:tensorflow.SourceFile)
2195 size_t total_size = 0;
2196
2197 if (_internal_metadata_.have_unknown_fields()) {
2198 total_size +=
2199 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2200 _internal_metadata_.unknown_fields());
2201 }
2202 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2203 // Prevent compiler warnings about cached_has_bits being unused
2204 (void) cached_has_bits;
2205
2206 // repeated string lines = 3;
2207 total_size += 1 *
2208 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->lines_size());
2209 for (int i = 0, n = this->lines_size(); i < n; i++) {
2210 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2211 this->lines(i));
2212 }
2213
2214 // string file_path = 1;
2215 if (this->file_path().size() > 0) {
2216 total_size += 1 +
2217 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2218 this->file_path());
2219 }
2220
2221 // string host_name = 2;
2222 if (this->host_name().size() > 0) {
2223 total_size += 1 +
2224 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2225 this->host_name());
2226 }
2227
2228 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2229 SetCachedSize(cached_size);
2230 return total_size;
2231}
2232
2233void SourceFile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2234// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.SourceFile)
2235 GOOGLE_DCHECK_NE(&from, this);
2236 const SourceFile* source =
2237 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SourceFile>(
2238 &from);
2239 if (source == nullptr) {
2240 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.SourceFile)
2241 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2242 } else {
2243 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.SourceFile)
2244 MergeFrom(*source);
2245 }
2246}
2247
2248void SourceFile::MergeFrom(const SourceFile& from) {
2249// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.SourceFile)
2250 GOOGLE_DCHECK_NE(&from, this);
2251 _internal_metadata_.MergeFrom(from._internal_metadata_);
2252 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2253 (void) cached_has_bits;
2254
2255 lines_.MergeFrom(from.lines_);
2256 if (from.file_path().size() > 0) {
2257 set_file_path(from.file_path());
2258 }
2259 if (from.host_name().size() > 0) {
2260 set_host_name(from.host_name());
2261 }
2262}
2263
2264void SourceFile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2265// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.SourceFile)
2266 if (&from == this) return;
2267 Clear();
2268 MergeFrom(from);
2269}
2270
2271void SourceFile::CopyFrom(const SourceFile& from) {
2272// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.SourceFile)
2273 if (&from == this) return;
2274 Clear();
2275 MergeFrom(from);
2276}
2277
2278bool SourceFile::IsInitialized() const {
2279 return true;
2280}
2281
2282void SourceFile::InternalSwap(SourceFile* other) {
2283 using std::swap;
2284 _internal_metadata_.Swap(&other->_internal_metadata_);
2285 lines_.InternalSwap(CastToBase(&other->lines_));
2286 file_path_.Swap(&other->file_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2287 GetArenaNoVirtual());
2288 host_name_.Swap(&other->host_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2289 GetArenaNoVirtual());
2290}
2291
2292::PROTOBUF_NAMESPACE_ID::Metadata SourceFile::GetMetadata() const {
2293 return GetMetadataStatic();
2294}
2295
2296
2297// ===================================================================
2298
2299void StackFrameWithId::InitAsDefaultInstance() {
2300 ::tensorflow::_StackFrameWithId_default_instance_._instance.get_mutable()->file_line_col_ = const_cast< ::tensorflow::GraphDebugInfo_FileLineCol*>(
2301 ::tensorflow::GraphDebugInfo_FileLineCol::internal_default_instance());
2302}
2303class StackFrameWithId::_Internal {
2304 public:
2305 static const ::tensorflow::GraphDebugInfo_FileLineCol& file_line_col(const StackFrameWithId* msg);
2306};
2307
2308const ::tensorflow::GraphDebugInfo_FileLineCol&
2309StackFrameWithId::_Internal::file_line_col(const StackFrameWithId* msg) {
2310 return *msg->file_line_col_;
2311}
2312void StackFrameWithId::unsafe_arena_set_allocated_file_line_col(
2313 ::tensorflow::GraphDebugInfo_FileLineCol* file_line_col) {
2314 if (GetArenaNoVirtual() == nullptr) {
2315 delete file_line_col_;
2316 }
2317 file_line_col_ = file_line_col;
2318 if (file_line_col) {
2319
2320 } else {
2321
2322 }
2323 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.StackFrameWithId.file_line_col)
2324}
2325void StackFrameWithId::clear_file_line_col() {
2326 if (GetArenaNoVirtual() == nullptr && file_line_col_ != nullptr) {
2327 delete file_line_col_;
2328 }
2329 file_line_col_ = nullptr;
2330}
2331StackFrameWithId::StackFrameWithId()
2332 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2333 SharedCtor();
2334 // @@protoc_insertion_point(constructor:tensorflow.StackFrameWithId)
2335}
2336StackFrameWithId::StackFrameWithId(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2337 : ::PROTOBUF_NAMESPACE_ID::Message(),
2338 _internal_metadata_(arena) {
2339 SharedCtor();
2340 RegisterArenaDtor(arena);
2341 // @@protoc_insertion_point(arena_constructor:tensorflow.StackFrameWithId)
2342}
2343StackFrameWithId::StackFrameWithId(const StackFrameWithId& from)
2344 : ::PROTOBUF_NAMESPACE_ID::Message(),
2345 _internal_metadata_(nullptr) {
2346 _internal_metadata_.MergeFrom(from._internal_metadata_);
2347 id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2348 if (!from.id().empty()) {
2349 id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id(),
2350 GetArenaNoVirtual());
2351 }
2352 if (from.has_file_line_col()) {
2353 file_line_col_ = new ::tensorflow::GraphDebugInfo_FileLineCol(*from.file_line_col_);
2354 } else {
2355 file_line_col_ = nullptr;
2356 }
2357 // @@protoc_insertion_point(copy_constructor:tensorflow.StackFrameWithId)
2358}
2359
2360void StackFrameWithId::SharedCtor() {
2361 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
2362 id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2363 file_line_col_ = nullptr;
2364}
2365
2366StackFrameWithId::~StackFrameWithId() {
2367 // @@protoc_insertion_point(destructor:tensorflow.StackFrameWithId)
2368 SharedDtor();
2369}
2370
2371void StackFrameWithId::SharedDtor() {
2372 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2373 id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2374 if (this != internal_default_instance()) delete file_line_col_;
2375}
2376
2377void StackFrameWithId::ArenaDtor(void* object) {
2378 StackFrameWithId* _this = reinterpret_cast< StackFrameWithId* >(object);
2379 (void)_this;
2380}
2381void StackFrameWithId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2382}
2383void StackFrameWithId::SetCachedSize(int size) const {
2384 _cached_size_.Set(size);
2385}
2386const StackFrameWithId& StackFrameWithId::default_instance() {
2387 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StackFrameWithId_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
2388 return *internal_default_instance();
2389}
2390
2391
2392void StackFrameWithId::Clear() {
2393// @@protoc_insertion_point(message_clear_start:tensorflow.StackFrameWithId)
2394 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2395 // Prevent compiler warnings about cached_has_bits being unused
2396 (void) cached_has_bits;
2397
2398 id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2399 if (GetArenaNoVirtual() == nullptr && file_line_col_ != nullptr) {
2400 delete file_line_col_;
2401 }
2402 file_line_col_ = nullptr;
2403 _internal_metadata_.Clear();
2404}
2405
2406#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2407const char* StackFrameWithId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2408#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2409 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2410 while (!ctx->Done(&ptr)) {
2411 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2412 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2413 CHK_(ptr);
2414 switch (tag >> 3) {
2415 // string id = 1;
2416 case 1:
2417 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2418 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_id(), ptr, ctx, "tensorflow.StackFrameWithId.id");
2419 CHK_(ptr);
2420 } else goto handle_unusual;
2421 continue;
2422 // .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
2423 case 2:
2424 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2425 ptr = ctx->ParseMessage(mutable_file_line_col(), ptr);
2426 CHK_(ptr);
2427 } else goto handle_unusual;
2428 continue;
2429 default: {
2430 handle_unusual:
2431 if ((tag & 7) == 4 || tag == 0) {
2432 ctx->SetLastTag(tag);
2433 goto success;
2434 }
2435 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2436 CHK_(ptr != nullptr);
2437 continue;
2438 }
2439 } // switch
2440 } // while
2441success:
2442 return ptr;
2443failure:
2444 ptr = nullptr;
2445 goto success;
2446#undef CHK_
2447}
2448#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2449bool StackFrameWithId::MergePartialFromCodedStream(
2450 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2451#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2452 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2453 // @@protoc_insertion_point(parse_start:tensorflow.StackFrameWithId)
2454 for (;;) {
2455 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2456 tag = p.first;
2457 if (!p.second) goto handle_unusual;
2458 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2459 // string id = 1;
2460 case 1: {
2461 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2462 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2463 input, this->mutable_id()));
2464 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2465 this->id().data(), static_cast<int>(this->id().length()),
2466 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2467 "tensorflow.StackFrameWithId.id"));
2468 } else {
2469 goto handle_unusual;
2470 }
2471 break;
2472 }
2473
2474 // .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
2475 case 2: {
2476 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2477 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2478 input, mutable_file_line_col()));
2479 } else {
2480 goto handle_unusual;
2481 }
2482 break;
2483 }
2484
2485 default: {
2486 handle_unusual:
2487 if (tag == 0) {
2488 goto success;
2489 }
2490 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2491 input, tag, _internal_metadata_.mutable_unknown_fields()));
2492 break;
2493 }
2494 }
2495 }
2496success:
2497 // @@protoc_insertion_point(parse_success:tensorflow.StackFrameWithId)
2498 return true;
2499failure:
2500 // @@protoc_insertion_point(parse_failure:tensorflow.StackFrameWithId)
2501 return false;
2502#undef DO_
2503}
2504#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2505
2506void StackFrameWithId::SerializeWithCachedSizes(
2507 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2508 // @@protoc_insertion_point(serialize_start:tensorflow.StackFrameWithId)
2509 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2510 (void) cached_has_bits;
2511
2512 // string id = 1;
2513 if (this->id().size() > 0) {
2514 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2515 this->id().data(), static_cast<int>(this->id().length()),
2516 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2517 "tensorflow.StackFrameWithId.id");
2518 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2519 1, this->id(), output);
2520 }
2521
2522 // .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
2523 if (this->has_file_line_col()) {
2524 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2525 2, _Internal::file_line_col(this), output);
2526 }
2527
2528 if (_internal_metadata_.have_unknown_fields()) {
2529 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2530 _internal_metadata_.unknown_fields(), output);
2531 }
2532 // @@protoc_insertion_point(serialize_end:tensorflow.StackFrameWithId)
2533}
2534
2535::PROTOBUF_NAMESPACE_ID::uint8* StackFrameWithId::InternalSerializeWithCachedSizesToArray(
2536 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2537 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.StackFrameWithId)
2538 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2539 (void) cached_has_bits;
2540
2541 // string id = 1;
2542 if (this->id().size() > 0) {
2543 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2544 this->id().data(), static_cast<int>(this->id().length()),
2545 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2546 "tensorflow.StackFrameWithId.id");
2547 target =
2548 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2549 1, this->id(), target);
2550 }
2551
2552 // .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
2553 if (this->has_file_line_col()) {
2554 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2555 InternalWriteMessageToArray(
2556 2, _Internal::file_line_col(this), target);
2557 }
2558
2559 if (_internal_metadata_.have_unknown_fields()) {
2560 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2561 _internal_metadata_.unknown_fields(), target);
2562 }
2563 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.StackFrameWithId)
2564 return target;
2565}
2566
2567size_t StackFrameWithId::ByteSizeLong() const {
2568// @@protoc_insertion_point(message_byte_size_start:tensorflow.StackFrameWithId)
2569 size_t total_size = 0;
2570
2571 if (_internal_metadata_.have_unknown_fields()) {
2572 total_size +=
2573 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2574 _internal_metadata_.unknown_fields());
2575 }
2576 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2577 // Prevent compiler warnings about cached_has_bits being unused
2578 (void) cached_has_bits;
2579
2580 // string id = 1;
2581 if (this->id().size() > 0) {
2582 total_size += 1 +
2583 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2584 this->id());
2585 }
2586
2587 // .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
2588 if (this->has_file_line_col()) {
2589 total_size += 1 +
2590 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2591 *file_line_col_);
2592 }
2593
2594 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2595 SetCachedSize(cached_size);
2596 return total_size;
2597}
2598
2599void StackFrameWithId::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2600// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.StackFrameWithId)
2601 GOOGLE_DCHECK_NE(&from, this);
2602 const StackFrameWithId* source =
2603 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StackFrameWithId>(
2604 &from);
2605 if (source == nullptr) {
2606 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.StackFrameWithId)
2607 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2608 } else {
2609 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.StackFrameWithId)
2610 MergeFrom(*source);
2611 }
2612}
2613
2614void StackFrameWithId::MergeFrom(const StackFrameWithId& from) {
2615// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.StackFrameWithId)
2616 GOOGLE_DCHECK_NE(&from, this);
2617 _internal_metadata_.MergeFrom(from._internal_metadata_);
2618 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2619 (void) cached_has_bits;
2620
2621 if (from.id().size() > 0) {
2622 set_id(from.id());
2623 }
2624 if (from.has_file_line_col()) {
2625 mutable_file_line_col()->::tensorflow::GraphDebugInfo_FileLineCol::MergeFrom(from.file_line_col());
2626 }
2627}
2628
2629void StackFrameWithId::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2630// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.StackFrameWithId)
2631 if (&from == this) return;
2632 Clear();
2633 MergeFrom(from);
2634}
2635
2636void StackFrameWithId::CopyFrom(const StackFrameWithId& from) {
2637// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.StackFrameWithId)
2638 if (&from == this) return;
2639 Clear();
2640 MergeFrom(from);
2641}
2642
2643bool StackFrameWithId::IsInitialized() const {
2644 return true;
2645}
2646
2647void StackFrameWithId::InternalSwap(StackFrameWithId* other) {
2648 using std::swap;
2649 _internal_metadata_.Swap(&other->_internal_metadata_);
2650 id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2651 GetArenaNoVirtual());
2652 swap(file_line_col_, other->file_line_col_);
2653}
2654
2655::PROTOBUF_NAMESPACE_ID::Metadata StackFrameWithId::GetMetadata() const {
2656 return GetMetadataStatic();
2657}
2658
2659
2660// ===================================================================
2661
2662void CodeLocation::InitAsDefaultInstance() {
2663}
2664class CodeLocation::_Internal {
2665 public:
2666};
2667
2668CodeLocation::CodeLocation()
2669 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2670 SharedCtor();
2671 // @@protoc_insertion_point(constructor:tensorflow.CodeLocation)
2672}
2673CodeLocation::CodeLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2674 : ::PROTOBUF_NAMESPACE_ID::Message(),
2675 _internal_metadata_(arena),
2676 stack_frame_ids_(arena) {
2677 SharedCtor();
2678 RegisterArenaDtor(arena);
2679 // @@protoc_insertion_point(arena_constructor:tensorflow.CodeLocation)
2680}
2681CodeLocation::CodeLocation(const CodeLocation& from)
2682 : ::PROTOBUF_NAMESPACE_ID::Message(),
2683 _internal_metadata_(nullptr),
2684 stack_frame_ids_(from.stack_frame_ids_) {
2685 _internal_metadata_.MergeFrom(from._internal_metadata_);
2686 host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2687 if (!from.host_name().empty()) {
2688 host_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_name(),
2689 GetArenaNoVirtual());
2690 }
2691 // @@protoc_insertion_point(copy_constructor:tensorflow.CodeLocation)
2692}
2693
2694void CodeLocation::SharedCtor() {
2695 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
2696 host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2697}
2698
2699CodeLocation::~CodeLocation() {
2700 // @@protoc_insertion_point(destructor:tensorflow.CodeLocation)
2701 SharedDtor();
2702}
2703
2704void CodeLocation::SharedDtor() {
2705 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2706 host_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2707}
2708
2709void CodeLocation::ArenaDtor(void* object) {
2710 CodeLocation* _this = reinterpret_cast< CodeLocation* >(object);
2711 (void)_this;
2712}
2713void CodeLocation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2714}
2715void CodeLocation::SetCachedSize(int size) const {
2716 _cached_size_.Set(size);
2717}
2718const CodeLocation& CodeLocation::default_instance() {
2719 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeLocation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
2720 return *internal_default_instance();
2721}
2722
2723
2724void CodeLocation::Clear() {
2725// @@protoc_insertion_point(message_clear_start:tensorflow.CodeLocation)
2726 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2727 // Prevent compiler warnings about cached_has_bits being unused
2728 (void) cached_has_bits;
2729
2730 stack_frame_ids_.Clear();
2731 host_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2732 _internal_metadata_.Clear();
2733}
2734
2735#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2736const char* CodeLocation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2737#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2738 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2739 while (!ctx->Done(&ptr)) {
2740 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2741 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2742 CHK_(ptr);
2743 switch (tag >> 3) {
2744 // string host_name = 1;
2745 case 1:
2746 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2747 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_host_name(), ptr, ctx, "tensorflow.CodeLocation.host_name");
2748 CHK_(ptr);
2749 } else goto handle_unusual;
2750 continue;
2751 // repeated string stack_frame_ids = 2;
2752 case 2:
2753 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2754 ptr -= 1;
2755 do {
2756 ptr += 1;
2757 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_stack_frame_ids(), ptr, ctx, "tensorflow.CodeLocation.stack_frame_ids");
2758 CHK_(ptr);
2759 if (!ctx->DataAvailable(ptr)) break;
2760 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
2761 } else goto handle_unusual;
2762 continue;
2763 default: {
2764 handle_unusual:
2765 if ((tag & 7) == 4 || tag == 0) {
2766 ctx->SetLastTag(tag);
2767 goto success;
2768 }
2769 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2770 CHK_(ptr != nullptr);
2771 continue;
2772 }
2773 } // switch
2774 } // while
2775success:
2776 return ptr;
2777failure:
2778 ptr = nullptr;
2779 goto success;
2780#undef CHK_
2781}
2782#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2783bool CodeLocation::MergePartialFromCodedStream(
2784 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2785#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2786 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2787 // @@protoc_insertion_point(parse_start:tensorflow.CodeLocation)
2788 for (;;) {
2789 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2790 tag = p.first;
2791 if (!p.second) goto handle_unusual;
2792 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2793 // string host_name = 1;
2794 case 1: {
2795 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2796 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2797 input, this->mutable_host_name()));
2798 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2799 this->host_name().data(), static_cast<int>(this->host_name().length()),
2800 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2801 "tensorflow.CodeLocation.host_name"));
2802 } else {
2803 goto handle_unusual;
2804 }
2805 break;
2806 }
2807
2808 // repeated string stack_frame_ids = 2;
2809 case 2: {
2810 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2811 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2812 input, this->add_stack_frame_ids()));
2813 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2814 this->stack_frame_ids(this->stack_frame_ids_size() - 1).data(),
2815 static_cast<int>(this->stack_frame_ids(this->stack_frame_ids_size() - 1).length()),
2816 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2817 "tensorflow.CodeLocation.stack_frame_ids"));
2818 } else {
2819 goto handle_unusual;
2820 }
2821 break;
2822 }
2823
2824 default: {
2825 handle_unusual:
2826 if (tag == 0) {
2827 goto success;
2828 }
2829 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2830 input, tag, _internal_metadata_.mutable_unknown_fields()));
2831 break;
2832 }
2833 }
2834 }
2835success:
2836 // @@protoc_insertion_point(parse_success:tensorflow.CodeLocation)
2837 return true;
2838failure:
2839 // @@protoc_insertion_point(parse_failure:tensorflow.CodeLocation)
2840 return false;
2841#undef DO_
2842}
2843#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2844
2845void CodeLocation::SerializeWithCachedSizes(
2846 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2847 // @@protoc_insertion_point(serialize_start:tensorflow.CodeLocation)
2848 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2849 (void) cached_has_bits;
2850
2851 // string host_name = 1;
2852 if (this->host_name().size() > 0) {
2853 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2854 this->host_name().data(), static_cast<int>(this->host_name().length()),
2855 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2856 "tensorflow.CodeLocation.host_name");
2857 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2858 1, this->host_name(), output);
2859 }
2860
2861 // repeated string stack_frame_ids = 2;
2862 for (int i = 0, n = this->stack_frame_ids_size(); i < n; i++) {
2863 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2864 this->stack_frame_ids(i).data(), static_cast<int>(this->stack_frame_ids(i).length()),
2865 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2866 "tensorflow.CodeLocation.stack_frame_ids");
2867 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2868 2, this->stack_frame_ids(i), output);
2869 }
2870
2871 if (_internal_metadata_.have_unknown_fields()) {
2872 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2873 _internal_metadata_.unknown_fields(), output);
2874 }
2875 // @@protoc_insertion_point(serialize_end:tensorflow.CodeLocation)
2876}
2877
2878::PROTOBUF_NAMESPACE_ID::uint8* CodeLocation::InternalSerializeWithCachedSizesToArray(
2879 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2880 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CodeLocation)
2881 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2882 (void) cached_has_bits;
2883
2884 // string host_name = 1;
2885 if (this->host_name().size() > 0) {
2886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2887 this->host_name().data(), static_cast<int>(this->host_name().length()),
2888 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2889 "tensorflow.CodeLocation.host_name");
2890 target =
2891 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2892 1, this->host_name(), target);
2893 }
2894
2895 // repeated string stack_frame_ids = 2;
2896 for (int i = 0, n = this->stack_frame_ids_size(); i < n; i++) {
2897 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2898 this->stack_frame_ids(i).data(), static_cast<int>(this->stack_frame_ids(i).length()),
2899 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2900 "tensorflow.CodeLocation.stack_frame_ids");
2901 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2902 WriteStringToArray(2, this->stack_frame_ids(i), target);
2903 }
2904
2905 if (_internal_metadata_.have_unknown_fields()) {
2906 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2907 _internal_metadata_.unknown_fields(), target);
2908 }
2909 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CodeLocation)
2910 return target;
2911}
2912
2913size_t CodeLocation::ByteSizeLong() const {
2914// @@protoc_insertion_point(message_byte_size_start:tensorflow.CodeLocation)
2915 size_t total_size = 0;
2916
2917 if (_internal_metadata_.have_unknown_fields()) {
2918 total_size +=
2919 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2920 _internal_metadata_.unknown_fields());
2921 }
2922 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2923 // Prevent compiler warnings about cached_has_bits being unused
2924 (void) cached_has_bits;
2925
2926 // repeated string stack_frame_ids = 2;
2927 total_size += 1 *
2928 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->stack_frame_ids_size());
2929 for (int i = 0, n = this->stack_frame_ids_size(); i < n; i++) {
2930 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2931 this->stack_frame_ids(i));
2932 }
2933
2934 // string host_name = 1;
2935 if (this->host_name().size() > 0) {
2936 total_size += 1 +
2937 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2938 this->host_name());
2939 }
2940
2941 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2942 SetCachedSize(cached_size);
2943 return total_size;
2944}
2945
2946void CodeLocation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2947// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CodeLocation)
2948 GOOGLE_DCHECK_NE(&from, this);
2949 const CodeLocation* source =
2950 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeLocation>(
2951 &from);
2952 if (source == nullptr) {
2953 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CodeLocation)
2954 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2955 } else {
2956 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CodeLocation)
2957 MergeFrom(*source);
2958 }
2959}
2960
2961void CodeLocation::MergeFrom(const CodeLocation& from) {
2962// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CodeLocation)
2963 GOOGLE_DCHECK_NE(&from, this);
2964 _internal_metadata_.MergeFrom(from._internal_metadata_);
2965 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2966 (void) cached_has_bits;
2967
2968 stack_frame_ids_.MergeFrom(from.stack_frame_ids_);
2969 if (from.host_name().size() > 0) {
2970 set_host_name(from.host_name());
2971 }
2972}
2973
2974void CodeLocation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2975// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CodeLocation)
2976 if (&from == this) return;
2977 Clear();
2978 MergeFrom(from);
2979}
2980
2981void CodeLocation::CopyFrom(const CodeLocation& from) {
2982// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CodeLocation)
2983 if (&from == this) return;
2984 Clear();
2985 MergeFrom(from);
2986}
2987
2988bool CodeLocation::IsInitialized() const {
2989 return true;
2990}
2991
2992void CodeLocation::InternalSwap(CodeLocation* other) {
2993 using std::swap;
2994 _internal_metadata_.Swap(&other->_internal_metadata_);
2995 stack_frame_ids_.InternalSwap(CastToBase(&other->stack_frame_ids_));
2996 host_name_.Swap(&other->host_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2997 GetArenaNoVirtual());
2998}
2999
3000::PROTOBUF_NAMESPACE_ID::Metadata CodeLocation::GetMetadata() const {
3001 return GetMetadataStatic();
3002}
3003
3004
3005// ===================================================================
3006
3007void GraphOpCreation::InitAsDefaultInstance() {
3008 ::tensorflow::_GraphOpCreation_default_instance_._instance.get_mutable()->code_location_ = const_cast< ::tensorflow::CodeLocation*>(
3009 ::tensorflow::CodeLocation::internal_default_instance());
3010}
3011class GraphOpCreation::_Internal {
3012 public:
3013 static const ::tensorflow::CodeLocation& code_location(const GraphOpCreation* msg);
3014};
3015
3016const ::tensorflow::CodeLocation&
3017GraphOpCreation::_Internal::code_location(const GraphOpCreation* msg) {
3018 return *msg->code_location_;
3019}
3020void GraphOpCreation::unsafe_arena_set_allocated_code_location(
3021 ::tensorflow::CodeLocation* code_location) {
3022 if (GetArenaNoVirtual() == nullptr) {
3023 delete code_location_;
3024 }
3025 code_location_ = code_location;
3026 if (code_location) {
3027
3028 } else {
3029
3030 }
3031 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphOpCreation.code_location)
3032}
3033GraphOpCreation::GraphOpCreation()
3034 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3035 SharedCtor();
3036 // @@protoc_insertion_point(constructor:tensorflow.GraphOpCreation)
3037}
3038GraphOpCreation::GraphOpCreation(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3039 : ::PROTOBUF_NAMESPACE_ID::Message(),
3040 _internal_metadata_(arena),
3041 input_names_(arena),
3042 output_tensor_ids_(arena) {
3043 SharedCtor();
3044 RegisterArenaDtor(arena);
3045 // @@protoc_insertion_point(arena_constructor:tensorflow.GraphOpCreation)
3046}
3047GraphOpCreation::GraphOpCreation(const GraphOpCreation& from)
3048 : ::PROTOBUF_NAMESPACE_ID::Message(),
3049 _internal_metadata_(nullptr),
3050 input_names_(from.input_names_),
3051 output_tensor_ids_(from.output_tensor_ids_) {
3052 _internal_metadata_.MergeFrom(from._internal_metadata_);
3053 op_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3054 if (!from.op_type().empty()) {
3055 op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_type(),
3056 GetArenaNoVirtual());
3057 }
3058 op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3059 if (!from.op_name().empty()) {
3060 op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_name(),
3061 GetArenaNoVirtual());
3062 }
3063 graph_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3064 if (!from.graph_name().empty()) {
3065 graph_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_name(),
3066 GetArenaNoVirtual());
3067 }
3068 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3069 if (!from.graph_id().empty()) {
3070 graph_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_id(),
3071 GetArenaNoVirtual());
3072 }
3073 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3074 if (!from.device_name().empty()) {
3075 device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name(),
3076 GetArenaNoVirtual());
3077 }
3078 if (from.has_code_location()) {
3079 code_location_ = new ::tensorflow::CodeLocation(*from.code_location_);
3080 } else {
3081 code_location_ = nullptr;
3082 }
3083 num_outputs_ = from.num_outputs_;
3084 // @@protoc_insertion_point(copy_constructor:tensorflow.GraphOpCreation)
3085}
3086
3087void GraphOpCreation::SharedCtor() {
3088 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
3089 op_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3090 op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3091 graph_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3092 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3093 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3094 ::memset(&code_location_, 0, static_cast<size_t>(
3095 reinterpret_cast<char*>(&num_outputs_) -
3096 reinterpret_cast<char*>(&code_location_)) + sizeof(num_outputs_));
3097}
3098
3099GraphOpCreation::~GraphOpCreation() {
3100 // @@protoc_insertion_point(destructor:tensorflow.GraphOpCreation)
3101 SharedDtor();
3102}
3103
3104void GraphOpCreation::SharedDtor() {
3105 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3106 op_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3107 op_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3108 graph_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3109 graph_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3110 device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3111 if (this != internal_default_instance()) delete code_location_;
3112}
3113
3114void GraphOpCreation::ArenaDtor(void* object) {
3115 GraphOpCreation* _this = reinterpret_cast< GraphOpCreation* >(object);
3116 (void)_this;
3117}
3118void GraphOpCreation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3119}
3120void GraphOpCreation::SetCachedSize(int size) const {
3121 _cached_size_.Set(size);
3122}
3123const GraphOpCreation& GraphOpCreation::default_instance() {
3124 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphOpCreation_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
3125 return *internal_default_instance();
3126}
3127
3128
3129void GraphOpCreation::Clear() {
3130// @@protoc_insertion_point(message_clear_start:tensorflow.GraphOpCreation)
3131 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3132 // Prevent compiler warnings about cached_has_bits being unused
3133 (void) cached_has_bits;
3134
3135 input_names_.Clear();
3136 output_tensor_ids_.Clear();
3137 op_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3138 op_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3139 graph_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3140 graph_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3141 device_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3142 if (GetArenaNoVirtual() == nullptr && code_location_ != nullptr) {
3143 delete code_location_;
3144 }
3145 code_location_ = nullptr;
3146 num_outputs_ = 0;
3147 _internal_metadata_.Clear();
3148}
3149
3150#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3151const char* GraphOpCreation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3152#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3153 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3154 while (!ctx->Done(&ptr)) {
3155 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3156 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3157 CHK_(ptr);
3158 switch (tag >> 3) {
3159 // string op_type = 1;
3160 case 1:
3161 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3162 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_op_type(), ptr, ctx, "tensorflow.GraphOpCreation.op_type");
3163 CHK_(ptr);
3164 } else goto handle_unusual;
3165 continue;
3166 // string op_name = 2;
3167 case 2:
3168 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3169 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_op_name(), ptr, ctx, "tensorflow.GraphOpCreation.op_name");
3170 CHK_(ptr);
3171 } else goto handle_unusual;
3172 continue;
3173 // string graph_name = 3;
3174 case 3:
3175 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
3176 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_name(), ptr, ctx, "tensorflow.GraphOpCreation.graph_name");
3177 CHK_(ptr);
3178 } else goto handle_unusual;
3179 continue;
3180 // string graph_id = 4;
3181 case 4:
3182 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3183 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_id(), ptr, ctx, "tensorflow.GraphOpCreation.graph_id");
3184 CHK_(ptr);
3185 } else goto handle_unusual;
3186 continue;
3187 // string device_name = 5;
3188 case 5:
3189 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
3190 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_name(), ptr, ctx, "tensorflow.GraphOpCreation.device_name");
3191 CHK_(ptr);
3192 } else goto handle_unusual;
3193 continue;
3194 // repeated string input_names = 6;
3195 case 6:
3196 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
3197 ptr -= 1;
3198 do {
3199 ptr += 1;
3200 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_input_names(), ptr, ctx, "tensorflow.GraphOpCreation.input_names");
3201 CHK_(ptr);
3202 if (!ctx->DataAvailable(ptr)) break;
3203 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
3204 } else goto handle_unusual;
3205 continue;
3206 // int32 num_outputs = 7;
3207 case 7:
3208 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
3209 num_outputs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3210 CHK_(ptr);
3211 } else goto handle_unusual;
3212 continue;
3213 // .tensorflow.CodeLocation code_location = 8;
3214 case 8:
3215 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
3216 ptr = ctx->ParseMessage(mutable_code_location(), ptr);
3217 CHK_(ptr);
3218 } else goto handle_unusual;
3219 continue;
3220 // repeated int32 output_tensor_ids = 9;
3221 case 9:
3222 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
3223 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_output_tensor_ids(), ptr, ctx);
3224 CHK_(ptr);
3225 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72) {
3226 add_output_tensor_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
3227 CHK_(ptr);
3228 } else goto handle_unusual;
3229 continue;
3230 default: {
3231 handle_unusual:
3232 if ((tag & 7) == 4 || tag == 0) {
3233 ctx->SetLastTag(tag);
3234 goto success;
3235 }
3236 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3237 CHK_(ptr != nullptr);
3238 continue;
3239 }
3240 } // switch
3241 } // while
3242success:
3243 return ptr;
3244failure:
3245 ptr = nullptr;
3246 goto success;
3247#undef CHK_
3248}
3249#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3250bool GraphOpCreation::MergePartialFromCodedStream(
3251 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3252#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3253 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3254 // @@protoc_insertion_point(parse_start:tensorflow.GraphOpCreation)
3255 for (;;) {
3256 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3257 tag = p.first;
3258 if (!p.second) goto handle_unusual;
3259 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3260 // string op_type = 1;
3261 case 1: {
3262 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3263 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3264 input, this->mutable_op_type()));
3265 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3266 this->op_type().data(), static_cast<int>(this->op_type().length()),
3267 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3268 "tensorflow.GraphOpCreation.op_type"));
3269 } else {
3270 goto handle_unusual;
3271 }
3272 break;
3273 }
3274
3275 // string op_name = 2;
3276 case 2: {
3277 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3278 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3279 input, this->mutable_op_name()));
3280 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3281 this->op_name().data(), static_cast<int>(this->op_name().length()),
3282 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3283 "tensorflow.GraphOpCreation.op_name"));
3284 } else {
3285 goto handle_unusual;
3286 }
3287 break;
3288 }
3289
3290 // string graph_name = 3;
3291 case 3: {
3292 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
3293 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3294 input, this->mutable_graph_name()));
3295 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3296 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
3297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3298 "tensorflow.GraphOpCreation.graph_name"));
3299 } else {
3300 goto handle_unusual;
3301 }
3302 break;
3303 }
3304
3305 // string graph_id = 4;
3306 case 4: {
3307 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3308 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3309 input, this->mutable_graph_id()));
3310 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3311 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
3312 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3313 "tensorflow.GraphOpCreation.graph_id"));
3314 } else {
3315 goto handle_unusual;
3316 }
3317 break;
3318 }
3319
3320 // string device_name = 5;
3321 case 5: {
3322 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
3323 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3324 input, this->mutable_device_name()));
3325 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3326 this->device_name().data(), static_cast<int>(this->device_name().length()),
3327 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3328 "tensorflow.GraphOpCreation.device_name"));
3329 } else {
3330 goto handle_unusual;
3331 }
3332 break;
3333 }
3334
3335 // repeated string input_names = 6;
3336 case 6: {
3337 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
3338 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3339 input, this->add_input_names()));
3340 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3341 this->input_names(this->input_names_size() - 1).data(),
3342 static_cast<int>(this->input_names(this->input_names_size() - 1).length()),
3343 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3344 "tensorflow.GraphOpCreation.input_names"));
3345 } else {
3346 goto handle_unusual;
3347 }
3348 break;
3349 }
3350
3351 // int32 num_outputs = 7;
3352 case 7: {
3353 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
3354
3355 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3356 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
3357 input, &num_outputs_)));
3358 } else {
3359 goto handle_unusual;
3360 }
3361 break;
3362 }
3363
3364 // .tensorflow.CodeLocation code_location = 8;
3365 case 8: {
3366 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
3367 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3368 input, mutable_code_location()));
3369 } else {
3370 goto handle_unusual;
3371 }
3372 break;
3373 }
3374
3375 // repeated int32 output_tensor_ids = 9;
3376 case 9: {
3377 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
3378 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
3379 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
3380 input, this->mutable_output_tensor_ids())));
3381 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
3382 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
3383 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
3384 1, 74u, input, this->mutable_output_tensor_ids())));
3385 } else {
3386 goto handle_unusual;
3387 }
3388 break;
3389 }
3390
3391 default: {
3392 handle_unusual:
3393 if (tag == 0) {
3394 goto success;
3395 }
3396 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3397 input, tag, _internal_metadata_.mutable_unknown_fields()));
3398 break;
3399 }
3400 }
3401 }
3402success:
3403 // @@protoc_insertion_point(parse_success:tensorflow.GraphOpCreation)
3404 return true;
3405failure:
3406 // @@protoc_insertion_point(parse_failure:tensorflow.GraphOpCreation)
3407 return false;
3408#undef DO_
3409}
3410#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3411
3412void GraphOpCreation::SerializeWithCachedSizes(
3413 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3414 // @@protoc_insertion_point(serialize_start:tensorflow.GraphOpCreation)
3415 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3416 (void) cached_has_bits;
3417
3418 // string op_type = 1;
3419 if (this->op_type().size() > 0) {
3420 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3421 this->op_type().data(), static_cast<int>(this->op_type().length()),
3422 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3423 "tensorflow.GraphOpCreation.op_type");
3424 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3425 1, this->op_type(), output);
3426 }
3427
3428 // string op_name = 2;
3429 if (this->op_name().size() > 0) {
3430 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3431 this->op_name().data(), static_cast<int>(this->op_name().length()),
3432 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3433 "tensorflow.GraphOpCreation.op_name");
3434 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3435 2, this->op_name(), output);
3436 }
3437
3438 // string graph_name = 3;
3439 if (this->graph_name().size() > 0) {
3440 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3441 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
3442 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3443 "tensorflow.GraphOpCreation.graph_name");
3444 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3445 3, this->graph_name(), output);
3446 }
3447
3448 // string graph_id = 4;
3449 if (this->graph_id().size() > 0) {
3450 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3451 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
3452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3453 "tensorflow.GraphOpCreation.graph_id");
3454 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3455 4, this->graph_id(), output);
3456 }
3457
3458 // string device_name = 5;
3459 if (this->device_name().size() > 0) {
3460 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3461 this->device_name().data(), static_cast<int>(this->device_name().length()),
3462 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3463 "tensorflow.GraphOpCreation.device_name");
3464 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3465 5, this->device_name(), output);
3466 }
3467
3468 // repeated string input_names = 6;
3469 for (int i = 0, n = this->input_names_size(); i < n; i++) {
3470 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3471 this->input_names(i).data(), static_cast<int>(this->input_names(i).length()),
3472 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3473 "tensorflow.GraphOpCreation.input_names");
3474 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3475 6, this->input_names(i), output);
3476 }
3477
3478 // int32 num_outputs = 7;
3479 if (this->num_outputs() != 0) {
3480 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(7, this->num_outputs(), output);
3481 }
3482
3483 // .tensorflow.CodeLocation code_location = 8;
3484 if (this->has_code_location()) {
3485 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3486 8, _Internal::code_location(this), output);
3487 }
3488
3489 // repeated int32 output_tensor_ids = 9;
3490 if (this->output_tensor_ids_size() > 0) {
3491 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(9, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
3492 output->WriteVarint32(_output_tensor_ids_cached_byte_size_.load(
3493 std::memory_order_relaxed));
3494 }
3495 for (int i = 0, n = this->output_tensor_ids_size(); i < n; i++) {
3496 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
3497 this->output_tensor_ids(i), output);
3498 }
3499
3500 if (_internal_metadata_.have_unknown_fields()) {
3501 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3502 _internal_metadata_.unknown_fields(), output);
3503 }
3504 // @@protoc_insertion_point(serialize_end:tensorflow.GraphOpCreation)
3505}
3506
3507::PROTOBUF_NAMESPACE_ID::uint8* GraphOpCreation::InternalSerializeWithCachedSizesToArray(
3508 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3509 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphOpCreation)
3510 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3511 (void) cached_has_bits;
3512
3513 // string op_type = 1;
3514 if (this->op_type().size() > 0) {
3515 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3516 this->op_type().data(), static_cast<int>(this->op_type().length()),
3517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3518 "tensorflow.GraphOpCreation.op_type");
3519 target =
3520 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3521 1, this->op_type(), target);
3522 }
3523
3524 // string op_name = 2;
3525 if (this->op_name().size() > 0) {
3526 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3527 this->op_name().data(), static_cast<int>(this->op_name().length()),
3528 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3529 "tensorflow.GraphOpCreation.op_name");
3530 target =
3531 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3532 2, this->op_name(), target);
3533 }
3534
3535 // string graph_name = 3;
3536 if (this->graph_name().size() > 0) {
3537 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3538 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
3539 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3540 "tensorflow.GraphOpCreation.graph_name");
3541 target =
3542 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3543 3, this->graph_name(), target);
3544 }
3545
3546 // string graph_id = 4;
3547 if (this->graph_id().size() > 0) {
3548 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3549 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
3550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3551 "tensorflow.GraphOpCreation.graph_id");
3552 target =
3553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3554 4, this->graph_id(), target);
3555 }
3556
3557 // string device_name = 5;
3558 if (this->device_name().size() > 0) {
3559 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3560 this->device_name().data(), static_cast<int>(this->device_name().length()),
3561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3562 "tensorflow.GraphOpCreation.device_name");
3563 target =
3564 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3565 5, this->device_name(), target);
3566 }
3567
3568 // repeated string input_names = 6;
3569 for (int i = 0, n = this->input_names_size(); i < n; i++) {
3570 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3571 this->input_names(i).data(), static_cast<int>(this->input_names(i).length()),
3572 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3573 "tensorflow.GraphOpCreation.input_names");
3574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3575 WriteStringToArray(6, this->input_names(i), target);
3576 }
3577
3578 // int32 num_outputs = 7;
3579 if (this->num_outputs() != 0) {
3580 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->num_outputs(), target);
3581 }
3582
3583 // .tensorflow.CodeLocation code_location = 8;
3584 if (this->has_code_location()) {
3585 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3586 InternalWriteMessageToArray(
3587 8, _Internal::code_location(this), target);
3588 }
3589
3590 // repeated int32 output_tensor_ids = 9;
3591 if (this->output_tensor_ids_size() > 0) {
3592 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
3593 9,
3594 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
3595 target);
3596 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
3597 _output_tensor_ids_cached_byte_size_.load(std::memory_order_relaxed),
3598 target);
3599 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3600 WriteInt32NoTagToArray(this->output_tensor_ids_, target);
3601 }
3602
3603 if (_internal_metadata_.have_unknown_fields()) {
3604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3605 _internal_metadata_.unknown_fields(), target);
3606 }
3607 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphOpCreation)
3608 return target;
3609}
3610
3611size_t GraphOpCreation::ByteSizeLong() const {
3612// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphOpCreation)
3613 size_t total_size = 0;
3614
3615 if (_internal_metadata_.have_unknown_fields()) {
3616 total_size +=
3617 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3618 _internal_metadata_.unknown_fields());
3619 }
3620 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3621 // Prevent compiler warnings about cached_has_bits being unused
3622 (void) cached_has_bits;
3623
3624 // repeated string input_names = 6;
3625 total_size += 1 *
3626 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->input_names_size());
3627 for (int i = 0, n = this->input_names_size(); i < n; i++) {
3628 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3629 this->input_names(i));
3630 }
3631
3632 // repeated int32 output_tensor_ids = 9;
3633 {
3634 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3635 Int32Size(this->output_tensor_ids_);
3636 if (data_size > 0) {
3637 total_size += 1 +
3638 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
3639 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
3640 }
3641 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
3642 _output_tensor_ids_cached_byte_size_.store(cached_size,
3643 std::memory_order_relaxed);
3644 total_size += data_size;
3645 }
3646
3647 // string op_type = 1;
3648 if (this->op_type().size() > 0) {
3649 total_size += 1 +
3650 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3651 this->op_type());
3652 }
3653
3654 // string op_name = 2;
3655 if (this->op_name().size() > 0) {
3656 total_size += 1 +
3657 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3658 this->op_name());
3659 }
3660
3661 // string graph_name = 3;
3662 if (this->graph_name().size() > 0) {
3663 total_size += 1 +
3664 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3665 this->graph_name());
3666 }
3667
3668 // string graph_id = 4;
3669 if (this->graph_id().size() > 0) {
3670 total_size += 1 +
3671 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3672 this->graph_id());
3673 }
3674
3675 // string device_name = 5;
3676 if (this->device_name().size() > 0) {
3677 total_size += 1 +
3678 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3679 this->device_name());
3680 }
3681
3682 // .tensorflow.CodeLocation code_location = 8;
3683 if (this->has_code_location()) {
3684 total_size += 1 +
3685 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3686 *code_location_);
3687 }
3688
3689 // int32 num_outputs = 7;
3690 if (this->num_outputs() != 0) {
3691 total_size += 1 +
3692 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
3693 this->num_outputs());
3694 }
3695
3696 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3697 SetCachedSize(cached_size);
3698 return total_size;
3699}
3700
3701void GraphOpCreation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3702// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphOpCreation)
3703 GOOGLE_DCHECK_NE(&from, this);
3704 const GraphOpCreation* source =
3705 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphOpCreation>(
3706 &from);
3707 if (source == nullptr) {
3708 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphOpCreation)
3709 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3710 } else {
3711 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphOpCreation)
3712 MergeFrom(*source);
3713 }
3714}
3715
3716void GraphOpCreation::MergeFrom(const GraphOpCreation& from) {
3717// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphOpCreation)
3718 GOOGLE_DCHECK_NE(&from, this);
3719 _internal_metadata_.MergeFrom(from._internal_metadata_);
3720 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3721 (void) cached_has_bits;
3722
3723 input_names_.MergeFrom(from.input_names_);
3724 output_tensor_ids_.MergeFrom(from.output_tensor_ids_);
3725 if (from.op_type().size() > 0) {
3726 set_op_type(from.op_type());
3727 }
3728 if (from.op_name().size() > 0) {
3729 set_op_name(from.op_name());
3730 }
3731 if (from.graph_name().size() > 0) {
3732 set_graph_name(from.graph_name());
3733 }
3734 if (from.graph_id().size() > 0) {
3735 set_graph_id(from.graph_id());
3736 }
3737 if (from.device_name().size() > 0) {
3738 set_device_name(from.device_name());
3739 }
3740 if (from.has_code_location()) {
3741 mutable_code_location()->::tensorflow::CodeLocation::MergeFrom(from.code_location());
3742 }
3743 if (from.num_outputs() != 0) {
3744 set_num_outputs(from.num_outputs());
3745 }
3746}
3747
3748void GraphOpCreation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3749// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphOpCreation)
3750 if (&from == this) return;
3751 Clear();
3752 MergeFrom(from);
3753}
3754
3755void GraphOpCreation::CopyFrom(const GraphOpCreation& from) {
3756// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphOpCreation)
3757 if (&from == this) return;
3758 Clear();
3759 MergeFrom(from);
3760}
3761
3762bool GraphOpCreation::IsInitialized() const {
3763 return true;
3764}
3765
3766void GraphOpCreation::InternalSwap(GraphOpCreation* other) {
3767 using std::swap;
3768 _internal_metadata_.Swap(&other->_internal_metadata_);
3769 input_names_.InternalSwap(CastToBase(&other->input_names_));
3770 output_tensor_ids_.InternalSwap(&other->output_tensor_ids_);
3771 op_type_.Swap(&other->op_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3772 GetArenaNoVirtual());
3773 op_name_.Swap(&other->op_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3774 GetArenaNoVirtual());
3775 graph_name_.Swap(&other->graph_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3776 GetArenaNoVirtual());
3777 graph_id_.Swap(&other->graph_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3778 GetArenaNoVirtual());
3779 device_name_.Swap(&other->device_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3780 GetArenaNoVirtual());
3781 swap(code_location_, other->code_location_);
3782 swap(num_outputs_, other->num_outputs_);
3783}
3784
3785::PROTOBUF_NAMESPACE_ID::Metadata GraphOpCreation::GetMetadata() const {
3786 return GetMetadataStatic();
3787}
3788
3789
3790// ===================================================================
3791
3792void DebuggedGraph::InitAsDefaultInstance() {
3793}
3794class DebuggedGraph::_Internal {
3795 public:
3796};
3797
3798DebuggedGraph::DebuggedGraph()
3799 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3800 SharedCtor();
3801 // @@protoc_insertion_point(constructor:tensorflow.DebuggedGraph)
3802}
3803DebuggedGraph::DebuggedGraph(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3804 : ::PROTOBUF_NAMESPACE_ID::Message(),
3805 _internal_metadata_(arena),
3806 instrumented_ops_(arena) {
3807 SharedCtor();
3808 RegisterArenaDtor(arena);
3809 // @@protoc_insertion_point(arena_constructor:tensorflow.DebuggedGraph)
3810}
3811DebuggedGraph::DebuggedGraph(const DebuggedGraph& from)
3812 : ::PROTOBUF_NAMESPACE_ID::Message(),
3813 _internal_metadata_(nullptr),
3814 instrumented_ops_(from.instrumented_ops_) {
3815 _internal_metadata_.MergeFrom(from._internal_metadata_);
3816 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3817 if (!from.graph_id().empty()) {
3818 graph_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_id(),
3819 GetArenaNoVirtual());
3820 }
3821 graph_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3822 if (!from.graph_name().empty()) {
3823 graph_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_name(),
3824 GetArenaNoVirtual());
3825 }
3826 original_graph_def_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3827 if (!from.original_graph_def().empty()) {
3828 original_graph_def_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.original_graph_def(),
3829 GetArenaNoVirtual());
3830 }
3831 instrumented_graph_def_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3832 if (!from.instrumented_graph_def().empty()) {
3833 instrumented_graph_def_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.instrumented_graph_def(),
3834 GetArenaNoVirtual());
3835 }
3836 outer_context_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3837 if (!from.outer_context_id().empty()) {
3838 outer_context_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.outer_context_id(),
3839 GetArenaNoVirtual());
3840 }
3841 // @@protoc_insertion_point(copy_constructor:tensorflow.DebuggedGraph)
3842}
3843
3844void DebuggedGraph::SharedCtor() {
3845 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
3846 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3847 graph_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3848 original_graph_def_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3849 instrumented_graph_def_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3850 outer_context_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3851}
3852
3853DebuggedGraph::~DebuggedGraph() {
3854 // @@protoc_insertion_point(destructor:tensorflow.DebuggedGraph)
3855 SharedDtor();
3856}
3857
3858void DebuggedGraph::SharedDtor() {
3859 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3860 graph_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3861 graph_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3862 original_graph_def_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3863 instrumented_graph_def_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3864 outer_context_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3865}
3866
3867void DebuggedGraph::ArenaDtor(void* object) {
3868 DebuggedGraph* _this = reinterpret_cast< DebuggedGraph* >(object);
3869 (void)_this;
3870}
3871void DebuggedGraph::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3872}
3873void DebuggedGraph::SetCachedSize(int size) const {
3874 _cached_size_.Set(size);
3875}
3876const DebuggedGraph& DebuggedGraph::default_instance() {
3877 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebuggedGraph_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
3878 return *internal_default_instance();
3879}
3880
3881
3882void DebuggedGraph::Clear() {
3883// @@protoc_insertion_point(message_clear_start:tensorflow.DebuggedGraph)
3884 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3885 // Prevent compiler warnings about cached_has_bits being unused
3886 (void) cached_has_bits;
3887
3888 instrumented_ops_.Clear();
3889 graph_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3890 graph_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3891 original_graph_def_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3892 instrumented_graph_def_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3893 outer_context_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3894 _internal_metadata_.Clear();
3895}
3896
3897#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3898const char* DebuggedGraph::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3899#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3900 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3901 while (!ctx->Done(&ptr)) {
3902 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3903 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3904 CHK_(ptr);
3905 switch (tag >> 3) {
3906 // string graph_id = 1;
3907 case 1:
3908 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3909 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_id(), ptr, ctx, "tensorflow.DebuggedGraph.graph_id");
3910 CHK_(ptr);
3911 } else goto handle_unusual;
3912 continue;
3913 // string graph_name = 2;
3914 case 2:
3915 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3916 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_name(), ptr, ctx, "tensorflow.DebuggedGraph.graph_name");
3917 CHK_(ptr);
3918 } else goto handle_unusual;
3919 continue;
3920 // repeated string instrumented_ops = 3;
3921 case 3:
3922 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
3923 ptr -= 1;
3924 do {
3925 ptr += 1;
3926 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_instrumented_ops(), ptr, ctx, "tensorflow.DebuggedGraph.instrumented_ops");
3927 CHK_(ptr);
3928 if (!ctx->DataAvailable(ptr)) break;
3929 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
3930 } else goto handle_unusual;
3931 continue;
3932 // bytes original_graph_def = 4;
3933 case 4:
3934 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3935 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_original_graph_def(), ptr, ctx);
3936 CHK_(ptr);
3937 } else goto handle_unusual;
3938 continue;
3939 // bytes instrumented_graph_def = 5;
3940 case 5:
3941 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
3942 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_instrumented_graph_def(), ptr, ctx);
3943 CHK_(ptr);
3944 } else goto handle_unusual;
3945 continue;
3946 // string outer_context_id = 6;
3947 case 6:
3948 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
3949 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_outer_context_id(), ptr, ctx, "tensorflow.DebuggedGraph.outer_context_id");
3950 CHK_(ptr);
3951 } else goto handle_unusual;
3952 continue;
3953 default: {
3954 handle_unusual:
3955 if ((tag & 7) == 4 || tag == 0) {
3956 ctx->SetLastTag(tag);
3957 goto success;
3958 }
3959 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3960 CHK_(ptr != nullptr);
3961 continue;
3962 }
3963 } // switch
3964 } // while
3965success:
3966 return ptr;
3967failure:
3968 ptr = nullptr;
3969 goto success;
3970#undef CHK_
3971}
3972#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3973bool DebuggedGraph::MergePartialFromCodedStream(
3974 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3975#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3976 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3977 // @@protoc_insertion_point(parse_start:tensorflow.DebuggedGraph)
3978 for (;;) {
3979 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3980 tag = p.first;
3981 if (!p.second) goto handle_unusual;
3982 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3983 // string graph_id = 1;
3984 case 1: {
3985 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3986 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3987 input, this->mutable_graph_id()));
3988 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3989 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
3990 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3991 "tensorflow.DebuggedGraph.graph_id"));
3992 } else {
3993 goto handle_unusual;
3994 }
3995 break;
3996 }
3997
3998 // string graph_name = 2;
3999 case 2: {
4000 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
4001 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4002 input, this->mutable_graph_name()));
4003 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4004 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
4005 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4006 "tensorflow.DebuggedGraph.graph_name"));
4007 } else {
4008 goto handle_unusual;
4009 }
4010 break;
4011 }
4012
4013 // repeated string instrumented_ops = 3;
4014 case 3: {
4015 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
4016 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4017 input, this->add_instrumented_ops()));
4018 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4019 this->instrumented_ops(this->instrumented_ops_size() - 1).data(),
4020 static_cast<int>(this->instrumented_ops(this->instrumented_ops_size() - 1).length()),
4021 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4022 "tensorflow.DebuggedGraph.instrumented_ops"));
4023 } else {
4024 goto handle_unusual;
4025 }
4026 break;
4027 }
4028
4029 // bytes original_graph_def = 4;
4030 case 4: {
4031 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
4032 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
4033 input, this->mutable_original_graph_def()));
4034 } else {
4035 goto handle_unusual;
4036 }
4037 break;
4038 }
4039
4040 // bytes instrumented_graph_def = 5;
4041 case 5: {
4042 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
4043 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
4044 input, this->mutable_instrumented_graph_def()));
4045 } else {
4046 goto handle_unusual;
4047 }
4048 break;
4049 }
4050
4051 // string outer_context_id = 6;
4052 case 6: {
4053 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
4054 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4055 input, this->mutable_outer_context_id()));
4056 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4057 this->outer_context_id().data(), static_cast<int>(this->outer_context_id().length()),
4058 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4059 "tensorflow.DebuggedGraph.outer_context_id"));
4060 } else {
4061 goto handle_unusual;
4062 }
4063 break;
4064 }
4065
4066 default: {
4067 handle_unusual:
4068 if (tag == 0) {
4069 goto success;
4070 }
4071 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4072 input, tag, _internal_metadata_.mutable_unknown_fields()));
4073 break;
4074 }
4075 }
4076 }
4077success:
4078 // @@protoc_insertion_point(parse_success:tensorflow.DebuggedGraph)
4079 return true;
4080failure:
4081 // @@protoc_insertion_point(parse_failure:tensorflow.DebuggedGraph)
4082 return false;
4083#undef DO_
4084}
4085#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4086
4087void DebuggedGraph::SerializeWithCachedSizes(
4088 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4089 // @@protoc_insertion_point(serialize_start:tensorflow.DebuggedGraph)
4090 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4091 (void) cached_has_bits;
4092
4093 // string graph_id = 1;
4094 if (this->graph_id().size() > 0) {
4095 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4096 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
4097 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4098 "tensorflow.DebuggedGraph.graph_id");
4099 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4100 1, this->graph_id(), output);
4101 }
4102
4103 // string graph_name = 2;
4104 if (this->graph_name().size() > 0) {
4105 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4106 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
4107 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4108 "tensorflow.DebuggedGraph.graph_name");
4109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4110 2, this->graph_name(), output);
4111 }
4112
4113 // repeated string instrumented_ops = 3;
4114 for (int i = 0, n = this->instrumented_ops_size(); i < n; i++) {
4115 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4116 this->instrumented_ops(i).data(), static_cast<int>(this->instrumented_ops(i).length()),
4117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4118 "tensorflow.DebuggedGraph.instrumented_ops");
4119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
4120 3, this->instrumented_ops(i), output);
4121 }
4122
4123 // bytes original_graph_def = 4;
4124 if (this->original_graph_def().size() > 0) {
4125 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
4126 4, this->original_graph_def(), output);
4127 }
4128
4129 // bytes instrumented_graph_def = 5;
4130 if (this->instrumented_graph_def().size() > 0) {
4131 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
4132 5, this->instrumented_graph_def(), output);
4133 }
4134
4135 // string outer_context_id = 6;
4136 if (this->outer_context_id().size() > 0) {
4137 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4138 this->outer_context_id().data(), static_cast<int>(this->outer_context_id().length()),
4139 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4140 "tensorflow.DebuggedGraph.outer_context_id");
4141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4142 6, this->outer_context_id(), output);
4143 }
4144
4145 if (_internal_metadata_.have_unknown_fields()) {
4146 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4147 _internal_metadata_.unknown_fields(), output);
4148 }
4149 // @@protoc_insertion_point(serialize_end:tensorflow.DebuggedGraph)
4150}
4151
4152::PROTOBUF_NAMESPACE_ID::uint8* DebuggedGraph::InternalSerializeWithCachedSizesToArray(
4153 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4154 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebuggedGraph)
4155 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4156 (void) cached_has_bits;
4157
4158 // string graph_id = 1;
4159 if (this->graph_id().size() > 0) {
4160 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4161 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
4162 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4163 "tensorflow.DebuggedGraph.graph_id");
4164 target =
4165 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4166 1, this->graph_id(), target);
4167 }
4168
4169 // string graph_name = 2;
4170 if (this->graph_name().size() > 0) {
4171 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4172 this->graph_name().data(), static_cast<int>(this->graph_name().length()),
4173 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4174 "tensorflow.DebuggedGraph.graph_name");
4175 target =
4176 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4177 2, this->graph_name(), target);
4178 }
4179
4180 // repeated string instrumented_ops = 3;
4181 for (int i = 0, n = this->instrumented_ops_size(); i < n; i++) {
4182 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4183 this->instrumented_ops(i).data(), static_cast<int>(this->instrumented_ops(i).length()),
4184 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4185 "tensorflow.DebuggedGraph.instrumented_ops");
4186 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4187 WriteStringToArray(3, this->instrumented_ops(i), target);
4188 }
4189
4190 // bytes original_graph_def = 4;
4191 if (this->original_graph_def().size() > 0) {
4192 target =
4193 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
4194 4, this->original_graph_def(), target);
4195 }
4196
4197 // bytes instrumented_graph_def = 5;
4198 if (this->instrumented_graph_def().size() > 0) {
4199 target =
4200 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
4201 5, this->instrumented_graph_def(), target);
4202 }
4203
4204 // string outer_context_id = 6;
4205 if (this->outer_context_id().size() > 0) {
4206 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4207 this->outer_context_id().data(), static_cast<int>(this->outer_context_id().length()),
4208 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4209 "tensorflow.DebuggedGraph.outer_context_id");
4210 target =
4211 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4212 6, this->outer_context_id(), target);
4213 }
4214
4215 if (_internal_metadata_.have_unknown_fields()) {
4216 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4217 _internal_metadata_.unknown_fields(), target);
4218 }
4219 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebuggedGraph)
4220 return target;
4221}
4222
4223size_t DebuggedGraph::ByteSizeLong() const {
4224// @@protoc_insertion_point(message_byte_size_start:tensorflow.DebuggedGraph)
4225 size_t total_size = 0;
4226
4227 if (_internal_metadata_.have_unknown_fields()) {
4228 total_size +=
4229 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4230 _internal_metadata_.unknown_fields());
4231 }
4232 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4233 // Prevent compiler warnings about cached_has_bits being unused
4234 (void) cached_has_bits;
4235
4236 // repeated string instrumented_ops = 3;
4237 total_size += 1 *
4238 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->instrumented_ops_size());
4239 for (int i = 0, n = this->instrumented_ops_size(); i < n; i++) {
4240 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4241 this->instrumented_ops(i));
4242 }
4243
4244 // string graph_id = 1;
4245 if (this->graph_id().size() > 0) {
4246 total_size += 1 +
4247 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4248 this->graph_id());
4249 }
4250
4251 // string graph_name = 2;
4252 if (this->graph_name().size() > 0) {
4253 total_size += 1 +
4254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4255 this->graph_name());
4256 }
4257
4258 // bytes original_graph_def = 4;
4259 if (this->original_graph_def().size() > 0) {
4260 total_size += 1 +
4261 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
4262 this->original_graph_def());
4263 }
4264
4265 // bytes instrumented_graph_def = 5;
4266 if (this->instrumented_graph_def().size() > 0) {
4267 total_size += 1 +
4268 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
4269 this->instrumented_graph_def());
4270 }
4271
4272 // string outer_context_id = 6;
4273 if (this->outer_context_id().size() > 0) {
4274 total_size += 1 +
4275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4276 this->outer_context_id());
4277 }
4278
4279 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4280 SetCachedSize(cached_size);
4281 return total_size;
4282}
4283
4284void DebuggedGraph::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4285// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebuggedGraph)
4286 GOOGLE_DCHECK_NE(&from, this);
4287 const DebuggedGraph* source =
4288 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebuggedGraph>(
4289 &from);
4290 if (source == nullptr) {
4291 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebuggedGraph)
4292 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4293 } else {
4294 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebuggedGraph)
4295 MergeFrom(*source);
4296 }
4297}
4298
4299void DebuggedGraph::MergeFrom(const DebuggedGraph& from) {
4300// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebuggedGraph)
4301 GOOGLE_DCHECK_NE(&from, this);
4302 _internal_metadata_.MergeFrom(from._internal_metadata_);
4303 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4304 (void) cached_has_bits;
4305
4306 instrumented_ops_.MergeFrom(from.instrumented_ops_);
4307 if (from.graph_id().size() > 0) {
4308 set_graph_id(from.graph_id());
4309 }
4310 if (from.graph_name().size() > 0) {
4311 set_graph_name(from.graph_name());
4312 }
4313 if (from.original_graph_def().size() > 0) {
4314 set_original_graph_def(from.original_graph_def());
4315 }
4316 if (from.instrumented_graph_def().size() > 0) {
4317 set_instrumented_graph_def(from.instrumented_graph_def());
4318 }
4319 if (from.outer_context_id().size() > 0) {
4320 set_outer_context_id(from.outer_context_id());
4321 }
4322}
4323
4324void DebuggedGraph::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4325// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebuggedGraph)
4326 if (&from == this) return;
4327 Clear();
4328 MergeFrom(from);
4329}
4330
4331void DebuggedGraph::CopyFrom(const DebuggedGraph& from) {
4332// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebuggedGraph)
4333 if (&from == this) return;
4334 Clear();
4335 MergeFrom(from);
4336}
4337
4338bool DebuggedGraph::IsInitialized() const {
4339 return true;
4340}
4341
4342void DebuggedGraph::InternalSwap(DebuggedGraph* other) {
4343 using std::swap;
4344 _internal_metadata_.Swap(&other->_internal_metadata_);
4345 instrumented_ops_.InternalSwap(CastToBase(&other->instrumented_ops_));
4346 graph_id_.Swap(&other->graph_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4347 GetArenaNoVirtual());
4348 graph_name_.Swap(&other->graph_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4349 GetArenaNoVirtual());
4350 original_graph_def_.Swap(&other->original_graph_def_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4351 GetArenaNoVirtual());
4352 instrumented_graph_def_.Swap(&other->instrumented_graph_def_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4353 GetArenaNoVirtual());
4354 outer_context_id_.Swap(&other->outer_context_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4355 GetArenaNoVirtual());
4356}
4357
4358::PROTOBUF_NAMESPACE_ID::Metadata DebuggedGraph::GetMetadata() const {
4359 return GetMetadataStatic();
4360}
4361
4362
4363// ===================================================================
4364
4365void DebuggedDevice::InitAsDefaultInstance() {
4366}
4367class DebuggedDevice::_Internal {
4368 public:
4369};
4370
4371DebuggedDevice::DebuggedDevice()
4372 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4373 SharedCtor();
4374 // @@protoc_insertion_point(constructor:tensorflow.DebuggedDevice)
4375}
4376DebuggedDevice::DebuggedDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4377 : ::PROTOBUF_NAMESPACE_ID::Message(),
4378 _internal_metadata_(arena) {
4379 SharedCtor();
4380 RegisterArenaDtor(arena);
4381 // @@protoc_insertion_point(arena_constructor:tensorflow.DebuggedDevice)
4382}
4383DebuggedDevice::DebuggedDevice(const DebuggedDevice& from)
4384 : ::PROTOBUF_NAMESPACE_ID::Message(),
4385 _internal_metadata_(nullptr) {
4386 _internal_metadata_.MergeFrom(from._internal_metadata_);
4387 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4388 if (!from.device_name().empty()) {
4389 device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name(),
4390 GetArenaNoVirtual());
4391 }
4392 device_id_ = from.device_id_;
4393 // @@protoc_insertion_point(copy_constructor:tensorflow.DebuggedDevice)
4394}
4395
4396void DebuggedDevice::SharedCtor() {
4397 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
4398 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4399 device_id_ = 0;
4400}
4401
4402DebuggedDevice::~DebuggedDevice() {
4403 // @@protoc_insertion_point(destructor:tensorflow.DebuggedDevice)
4404 SharedDtor();
4405}
4406
4407void DebuggedDevice::SharedDtor() {
4408 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4409 device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4410}
4411
4412void DebuggedDevice::ArenaDtor(void* object) {
4413 DebuggedDevice* _this = reinterpret_cast< DebuggedDevice* >(object);
4414 (void)_this;
4415}
4416void DebuggedDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4417}
4418void DebuggedDevice::SetCachedSize(int size) const {
4419 _cached_size_.Set(size);
4420}
4421const DebuggedDevice& DebuggedDevice::default_instance() {
4422 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebuggedDevice_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
4423 return *internal_default_instance();
4424}
4425
4426
4427void DebuggedDevice::Clear() {
4428// @@protoc_insertion_point(message_clear_start:tensorflow.DebuggedDevice)
4429 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4430 // Prevent compiler warnings about cached_has_bits being unused
4431 (void) cached_has_bits;
4432
4433 device_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4434 device_id_ = 0;
4435 _internal_metadata_.Clear();
4436}
4437
4438#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4439const char* DebuggedDevice::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4440#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4441 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4442 while (!ctx->Done(&ptr)) {
4443 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4444 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4445 CHK_(ptr);
4446 switch (tag >> 3) {
4447 // string device_name = 1;
4448 case 1:
4449 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4450 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_name(), ptr, ctx, "tensorflow.DebuggedDevice.device_name");
4451 CHK_(ptr);
4452 } else goto handle_unusual;
4453 continue;
4454 // int32 device_id = 2;
4455 case 2:
4456 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
4457 device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4458 CHK_(ptr);
4459 } else goto handle_unusual;
4460 continue;
4461 default: {
4462 handle_unusual:
4463 if ((tag & 7) == 4 || tag == 0) {
4464 ctx->SetLastTag(tag);
4465 goto success;
4466 }
4467 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4468 CHK_(ptr != nullptr);
4469 continue;
4470 }
4471 } // switch
4472 } // while
4473success:
4474 return ptr;
4475failure:
4476 ptr = nullptr;
4477 goto success;
4478#undef CHK_
4479}
4480#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4481bool DebuggedDevice::MergePartialFromCodedStream(
4482 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4483#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4484 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4485 // @@protoc_insertion_point(parse_start:tensorflow.DebuggedDevice)
4486 for (;;) {
4487 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4488 tag = p.first;
4489 if (!p.second) goto handle_unusual;
4490 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4491 // string device_name = 1;
4492 case 1: {
4493 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4494 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4495 input, this->mutable_device_name()));
4496 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4497 this->device_name().data(), static_cast<int>(this->device_name().length()),
4498 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4499 "tensorflow.DebuggedDevice.device_name"));
4500 } else {
4501 goto handle_unusual;
4502 }
4503 break;
4504 }
4505
4506 // int32 device_id = 2;
4507 case 2: {
4508 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
4509
4510 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4511 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
4512 input, &device_id_)));
4513 } else {
4514 goto handle_unusual;
4515 }
4516 break;
4517 }
4518
4519 default: {
4520 handle_unusual:
4521 if (tag == 0) {
4522 goto success;
4523 }
4524 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4525 input, tag, _internal_metadata_.mutable_unknown_fields()));
4526 break;
4527 }
4528 }
4529 }
4530success:
4531 // @@protoc_insertion_point(parse_success:tensorflow.DebuggedDevice)
4532 return true;
4533failure:
4534 // @@protoc_insertion_point(parse_failure:tensorflow.DebuggedDevice)
4535 return false;
4536#undef DO_
4537}
4538#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4539
4540void DebuggedDevice::SerializeWithCachedSizes(
4541 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4542 // @@protoc_insertion_point(serialize_start:tensorflow.DebuggedDevice)
4543 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4544 (void) cached_has_bits;
4545
4546 // string device_name = 1;
4547 if (this->device_name().size() > 0) {
4548 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4549 this->device_name().data(), static_cast<int>(this->device_name().length()),
4550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4551 "tensorflow.DebuggedDevice.device_name");
4552 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4553 1, this->device_name(), output);
4554 }
4555
4556 // int32 device_id = 2;
4557 if (this->device_id() != 0) {
4558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->device_id(), output);
4559 }
4560
4561 if (_internal_metadata_.have_unknown_fields()) {
4562 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4563 _internal_metadata_.unknown_fields(), output);
4564 }
4565 // @@protoc_insertion_point(serialize_end:tensorflow.DebuggedDevice)
4566}
4567
4568::PROTOBUF_NAMESPACE_ID::uint8* DebuggedDevice::InternalSerializeWithCachedSizesToArray(
4569 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4570 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebuggedDevice)
4571 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4572 (void) cached_has_bits;
4573
4574 // string device_name = 1;
4575 if (this->device_name().size() > 0) {
4576 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4577 this->device_name().data(), static_cast<int>(this->device_name().length()),
4578 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4579 "tensorflow.DebuggedDevice.device_name");
4580 target =
4581 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4582 1, this->device_name(), target);
4583 }
4584
4585 // int32 device_id = 2;
4586 if (this->device_id() != 0) {
4587 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->device_id(), target);
4588 }
4589
4590 if (_internal_metadata_.have_unknown_fields()) {
4591 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4592 _internal_metadata_.unknown_fields(), target);
4593 }
4594 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebuggedDevice)
4595 return target;
4596}
4597
4598size_t DebuggedDevice::ByteSizeLong() const {
4599// @@protoc_insertion_point(message_byte_size_start:tensorflow.DebuggedDevice)
4600 size_t total_size = 0;
4601
4602 if (_internal_metadata_.have_unknown_fields()) {
4603 total_size +=
4604 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4605 _internal_metadata_.unknown_fields());
4606 }
4607 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4608 // Prevent compiler warnings about cached_has_bits being unused
4609 (void) cached_has_bits;
4610
4611 // string device_name = 1;
4612 if (this->device_name().size() > 0) {
4613 total_size += 1 +
4614 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4615 this->device_name());
4616 }
4617
4618 // int32 device_id = 2;
4619 if (this->device_id() != 0) {
4620 total_size += 1 +
4621 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
4622 this->device_id());
4623 }
4624
4625 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4626 SetCachedSize(cached_size);
4627 return total_size;
4628}
4629
4630void DebuggedDevice::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4631// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebuggedDevice)
4632 GOOGLE_DCHECK_NE(&from, this);
4633 const DebuggedDevice* source =
4634 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebuggedDevice>(
4635 &from);
4636 if (source == nullptr) {
4637 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebuggedDevice)
4638 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4639 } else {
4640 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebuggedDevice)
4641 MergeFrom(*source);
4642 }
4643}
4644
4645void DebuggedDevice::MergeFrom(const DebuggedDevice& from) {
4646// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebuggedDevice)
4647 GOOGLE_DCHECK_NE(&from, this);
4648 _internal_metadata_.MergeFrom(from._internal_metadata_);
4649 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4650 (void) cached_has_bits;
4651
4652 if (from.device_name().size() > 0) {
4653 set_device_name(from.device_name());
4654 }
4655 if (from.device_id() != 0) {
4656 set_device_id(from.device_id());
4657 }
4658}
4659
4660void DebuggedDevice::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4661// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebuggedDevice)
4662 if (&from == this) return;
4663 Clear();
4664 MergeFrom(from);
4665}
4666
4667void DebuggedDevice::CopyFrom(const DebuggedDevice& from) {
4668// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebuggedDevice)
4669 if (&from == this) return;
4670 Clear();
4671 MergeFrom(from);
4672}
4673
4674bool DebuggedDevice::IsInitialized() const {
4675 return true;
4676}
4677
4678void DebuggedDevice::InternalSwap(DebuggedDevice* other) {
4679 using std::swap;
4680 _internal_metadata_.Swap(&other->_internal_metadata_);
4681 device_name_.Swap(&other->device_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4682 GetArenaNoVirtual());
4683 swap(device_id_, other->device_id_);
4684}
4685
4686::PROTOBUF_NAMESPACE_ID::Metadata DebuggedDevice::GetMetadata() const {
4687 return GetMetadataStatic();
4688}
4689
4690
4691// ===================================================================
4692
4693void Execution::InitAsDefaultInstance() {
4694 ::tensorflow::_Execution_default_instance_._instance.get_mutable()->code_location_ = const_cast< ::tensorflow::CodeLocation*>(
4695 ::tensorflow::CodeLocation::internal_default_instance());
4696}
4697class Execution::_Internal {
4698 public:
4699 static const ::tensorflow::CodeLocation& code_location(const Execution* msg);
4700};
4701
4702const ::tensorflow::CodeLocation&
4703Execution::_Internal::code_location(const Execution* msg) {
4704 return *msg->code_location_;
4705}
4706void Execution::clear_tensor_protos() {
4707 tensor_protos_.Clear();
4708}
4709void Execution::unsafe_arena_set_allocated_code_location(
4710 ::tensorflow::CodeLocation* code_location) {
4711 if (GetArenaNoVirtual() == nullptr) {
4712 delete code_location_;
4713 }
4714 code_location_ = code_location;
4715 if (code_location) {
4716
4717 } else {
4718
4719 }
4720 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Execution.code_location)
4721}
4722Execution::Execution()
4723 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4724 SharedCtor();
4725 // @@protoc_insertion_point(constructor:tensorflow.Execution)
4726}
4727Execution::Execution(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4728 : ::PROTOBUF_NAMESPACE_ID::Message(),
4729 _internal_metadata_(arena),
4730 input_tensor_ids_(arena),
4731 output_tensor_ids_(arena),
4732 tensor_protos_(arena),
4733 output_tensor_device_ids_(arena) {
4734 SharedCtor();
4735 RegisterArenaDtor(arena);
4736 // @@protoc_insertion_point(arena_constructor:tensorflow.Execution)
4737}
4738Execution::Execution(const Execution& from)
4739 : ::PROTOBUF_NAMESPACE_ID::Message(),
4740 _internal_metadata_(nullptr),
4741 input_tensor_ids_(from.input_tensor_ids_),
4742 output_tensor_ids_(from.output_tensor_ids_),
4743 tensor_protos_(from.tensor_protos_),
4744 output_tensor_device_ids_(from.output_tensor_device_ids_) {
4745 _internal_metadata_.MergeFrom(from._internal_metadata_);
4746 op_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4747 if (!from.op_type().empty()) {
4748 op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_type(),
4749 GetArenaNoVirtual());
4750 }
4751 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4752 if (!from.graph_id().empty()) {
4753 graph_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_id(),
4754 GetArenaNoVirtual());
4755 }
4756 if (from.has_code_location()) {
4757 code_location_ = new ::tensorflow::CodeLocation(*from.code_location_);
4758 } else {
4759 code_location_ = nullptr;
4760 }
4761 ::memcpy(&num_outputs_, &from.num_outputs_,
4762 static_cast<size_t>(reinterpret_cast<char*>(&tensor_debug_mode_) -
4763 reinterpret_cast<char*>(&num_outputs_)) + sizeof(tensor_debug_mode_));
4764 // @@protoc_insertion_point(copy_constructor:tensorflow.Execution)
4765}
4766
4767void Execution::SharedCtor() {
4768 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
4769 op_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4770 graph_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4771 ::memset(&code_location_, 0, static_cast<size_t>(
4772 reinterpret_cast<char*>(&tensor_debug_mode_) -
4773 reinterpret_cast<char*>(&code_location_)) + sizeof(tensor_debug_mode_));
4774}
4775
4776Execution::~Execution() {
4777 // @@protoc_insertion_point(destructor:tensorflow.Execution)
4778 SharedDtor();
4779}
4780
4781void Execution::SharedDtor() {
4782 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4783 op_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4784 graph_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4785 if (this != internal_default_instance()) delete code_location_;
4786}
4787
4788void Execution::ArenaDtor(void* object) {
4789 Execution* _this = reinterpret_cast< Execution* >(object);
4790 (void)_this;
4791}
4792void Execution::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4793}
4794void Execution::SetCachedSize(int size) const {
4795 _cached_size_.Set(size);
4796}
4797const Execution& Execution::default_instance() {
4798 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Execution_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
4799 return *internal_default_instance();
4800}
4801
4802
4803void Execution::Clear() {
4804// @@protoc_insertion_point(message_clear_start:tensorflow.Execution)
4805 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4806 // Prevent compiler warnings about cached_has_bits being unused
4807 (void) cached_has_bits;
4808
4809 input_tensor_ids_.Clear();
4810 output_tensor_ids_.Clear();
4811 tensor_protos_.Clear();
4812 output_tensor_device_ids_.Clear();
4813 op_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4814 graph_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4815 if (GetArenaNoVirtual() == nullptr && code_location_ != nullptr) {
4816 delete code_location_;
4817 }
4818 code_location_ = nullptr;
4819 ::memset(&num_outputs_, 0, static_cast<size_t>(
4820 reinterpret_cast<char*>(&tensor_debug_mode_) -
4821 reinterpret_cast<char*>(&num_outputs_)) + sizeof(tensor_debug_mode_));
4822 _internal_metadata_.Clear();
4823}
4824
4825#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4826const char* Execution::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4827#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4828 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4829 while (!ctx->Done(&ptr)) {
4830 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4831 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4832 CHK_(ptr);
4833 switch (tag >> 3) {
4834 // string op_type = 1;
4835 case 1:
4836 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4837 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_op_type(), ptr, ctx, "tensorflow.Execution.op_type");
4838 CHK_(ptr);
4839 } else goto handle_unusual;
4840 continue;
4841 // int32 num_outputs = 2;
4842 case 2:
4843 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
4844 num_outputs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4845 CHK_(ptr);
4846 } else goto handle_unusual;
4847 continue;
4848 // string graph_id = 3;
4849 case 3:
4850 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
4851 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_id(), ptr, ctx, "tensorflow.Execution.graph_id");
4852 CHK_(ptr);
4853 } else goto handle_unusual;
4854 continue;
4855 // repeated int64 input_tensor_ids = 4;
4856 case 4:
4857 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
4858 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_input_tensor_ids(), ptr, ctx);
4859 CHK_(ptr);
4860 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) {
4861 add_input_tensor_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
4862 CHK_(ptr);
4863 } else goto handle_unusual;
4864 continue;
4865 // repeated int64 output_tensor_ids = 5;
4866 case 5:
4867 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
4868 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_output_tensor_ids(), ptr, ctx);
4869 CHK_(ptr);
4870 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) {
4871 add_output_tensor_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
4872 CHK_(ptr);
4873 } else goto handle_unusual;
4874 continue;
4875 // .tensorflow.TensorDebugMode tensor_debug_mode = 6;
4876 case 6:
4877 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
4878 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4879 CHK_(ptr);
4880 set_tensor_debug_mode(static_cast<::tensorflow::TensorDebugMode>(val));
4881 } else goto handle_unusual;
4882 continue;
4883 // repeated .tensorflow.TensorProto tensor_protos = 7;
4884 case 7:
4885 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
4886 ptr -= 1;
4887 do {
4888 ptr += 1;
4889 ptr = ctx->ParseMessage(add_tensor_protos(), ptr);
4890 CHK_(ptr);
4891 if (!ctx->DataAvailable(ptr)) break;
4892 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58);
4893 } else goto handle_unusual;
4894 continue;
4895 // .tensorflow.CodeLocation code_location = 8;
4896 case 8:
4897 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
4898 ptr = ctx->ParseMessage(mutable_code_location(), ptr);
4899 CHK_(ptr);
4900 } else goto handle_unusual;
4901 continue;
4902 // repeated int32 output_tensor_device_ids = 9;
4903 case 9:
4904 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
4905 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_output_tensor_device_ids(), ptr, ctx);
4906 CHK_(ptr);
4907 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72) {
4908 add_output_tensor_device_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
4909 CHK_(ptr);
4910 } else goto handle_unusual;
4911 continue;
4912 default: {
4913 handle_unusual:
4914 if ((tag & 7) == 4 || tag == 0) {
4915 ctx->SetLastTag(tag);
4916 goto success;
4917 }
4918 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4919 CHK_(ptr != nullptr);
4920 continue;
4921 }
4922 } // switch
4923 } // while
4924success:
4925 return ptr;
4926failure:
4927 ptr = nullptr;
4928 goto success;
4929#undef CHK_
4930}
4931#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4932bool Execution::MergePartialFromCodedStream(
4933 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4934#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4935 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4936 // @@protoc_insertion_point(parse_start:tensorflow.Execution)
4937 for (;;) {
4938 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4939 tag = p.first;
4940 if (!p.second) goto handle_unusual;
4941 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4942 // string op_type = 1;
4943 case 1: {
4944 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4945 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4946 input, this->mutable_op_type()));
4947 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4948 this->op_type().data(), static_cast<int>(this->op_type().length()),
4949 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4950 "tensorflow.Execution.op_type"));
4951 } else {
4952 goto handle_unusual;
4953 }
4954 break;
4955 }
4956
4957 // int32 num_outputs = 2;
4958 case 2: {
4959 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
4960
4961 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4962 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
4963 input, &num_outputs_)));
4964 } else {
4965 goto handle_unusual;
4966 }
4967 break;
4968 }
4969
4970 // string graph_id = 3;
4971 case 3: {
4972 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
4973 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4974 input, this->mutable_graph_id()));
4975 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4976 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
4977 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4978 "tensorflow.Execution.graph_id"));
4979 } else {
4980 goto handle_unusual;
4981 }
4982 break;
4983 }
4984
4985 // repeated int64 input_tensor_ids = 4;
4986 case 4: {
4987 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
4988 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
4989 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
4990 input, this->mutable_input_tensor_ids())));
4991 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
4992 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
4993 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
4994 1, 34u, input, this->mutable_input_tensor_ids())));
4995 } else {
4996 goto handle_unusual;
4997 }
4998 break;
4999 }
5000
5001 // repeated int64 output_tensor_ids = 5;
5002 case 5: {
5003 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
5004 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
5005 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5006 input, this->mutable_output_tensor_ids())));
5007 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
5008 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5009 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5010 1, 42u, input, this->mutable_output_tensor_ids())));
5011 } else {
5012 goto handle_unusual;
5013 }
5014 break;
5015 }
5016
5017 // .tensorflow.TensorDebugMode tensor_debug_mode = 6;
5018 case 6: {
5019 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
5020 int value = 0;
5021 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5022 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
5023 input, &value)));
5024 set_tensor_debug_mode(static_cast< ::tensorflow::TensorDebugMode >(value));
5025 } else {
5026 goto handle_unusual;
5027 }
5028 break;
5029 }
5030
5031 // repeated .tensorflow.TensorProto tensor_protos = 7;
5032 case 7: {
5033 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
5034 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5035 input, add_tensor_protos()));
5036 } else {
5037 goto handle_unusual;
5038 }
5039 break;
5040 }
5041
5042 // .tensorflow.CodeLocation code_location = 8;
5043 case 8: {
5044 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
5045 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5046 input, mutable_code_location()));
5047 } else {
5048 goto handle_unusual;
5049 }
5050 break;
5051 }
5052
5053 // repeated int32 output_tensor_device_ids = 9;
5054 case 9: {
5055 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
5056 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
5057 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5058 input, this->mutable_output_tensor_device_ids())));
5059 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
5060 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5061 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5062 1, 74u, input, this->mutable_output_tensor_device_ids())));
5063 } else {
5064 goto handle_unusual;
5065 }
5066 break;
5067 }
5068
5069 default: {
5070 handle_unusual:
5071 if (tag == 0) {
5072 goto success;
5073 }
5074 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5075 input, tag, _internal_metadata_.mutable_unknown_fields()));
5076 break;
5077 }
5078 }
5079 }
5080success:
5081 // @@protoc_insertion_point(parse_success:tensorflow.Execution)
5082 return true;
5083failure:
5084 // @@protoc_insertion_point(parse_failure:tensorflow.Execution)
5085 return false;
5086#undef DO_
5087}
5088#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5089
5090void Execution::SerializeWithCachedSizes(
5091 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5092 // @@protoc_insertion_point(serialize_start:tensorflow.Execution)
5093 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5094 (void) cached_has_bits;
5095
5096 // string op_type = 1;
5097 if (this->op_type().size() > 0) {
5098 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5099 this->op_type().data(), static_cast<int>(this->op_type().length()),
5100 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5101 "tensorflow.Execution.op_type");
5102 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5103 1, this->op_type(), output);
5104 }
5105
5106 // int32 num_outputs = 2;
5107 if (this->num_outputs() != 0) {
5108 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->num_outputs(), output);
5109 }
5110
5111 // string graph_id = 3;
5112 if (this->graph_id().size() > 0) {
5113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5114 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
5115 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5116 "tensorflow.Execution.graph_id");
5117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5118 3, this->graph_id(), output);
5119 }
5120
5121 // repeated int64 input_tensor_ids = 4;
5122 if (this->input_tensor_ids_size() > 0) {
5123 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5124 output->WriteVarint32(_input_tensor_ids_cached_byte_size_.load(
5125 std::memory_order_relaxed));
5126 }
5127 for (int i = 0, n = this->input_tensor_ids_size(); i < n; i++) {
5128 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
5129 this->input_tensor_ids(i), output);
5130 }
5131
5132 // repeated int64 output_tensor_ids = 5;
5133 if (this->output_tensor_ids_size() > 0) {
5134 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(5, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5135 output->WriteVarint32(_output_tensor_ids_cached_byte_size_.load(
5136 std::memory_order_relaxed));
5137 }
5138 for (int i = 0, n = this->output_tensor_ids_size(); i < n; i++) {
5139 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
5140 this->output_tensor_ids(i), output);
5141 }
5142
5143 // .tensorflow.TensorDebugMode tensor_debug_mode = 6;
5144 if (this->tensor_debug_mode() != 0) {
5145 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
5146 6, this->tensor_debug_mode(), output);
5147 }
5148
5149 // repeated .tensorflow.TensorProto tensor_protos = 7;
5150 for (unsigned int i = 0,
5151 n = static_cast<unsigned int>(this->tensor_protos_size()); i < n; i++) {
5152 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5153 7,
5154 this->tensor_protos(static_cast<int>(i)),
5155 output);
5156 }
5157
5158 // .tensorflow.CodeLocation code_location = 8;
5159 if (this->has_code_location()) {
5160 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5161 8, _Internal::code_location(this), output);
5162 }
5163
5164 // repeated int32 output_tensor_device_ids = 9;
5165 if (this->output_tensor_device_ids_size() > 0) {
5166 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(9, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5167 output->WriteVarint32(_output_tensor_device_ids_cached_byte_size_.load(
5168 std::memory_order_relaxed));
5169 }
5170 for (int i = 0, n = this->output_tensor_device_ids_size(); i < n; i++) {
5171 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
5172 this->output_tensor_device_ids(i), output);
5173 }
5174
5175 if (_internal_metadata_.have_unknown_fields()) {
5176 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5177 _internal_metadata_.unknown_fields(), output);
5178 }
5179 // @@protoc_insertion_point(serialize_end:tensorflow.Execution)
5180}
5181
5182::PROTOBUF_NAMESPACE_ID::uint8* Execution::InternalSerializeWithCachedSizesToArray(
5183 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5184 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.Execution)
5185 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5186 (void) cached_has_bits;
5187
5188 // string op_type = 1;
5189 if (this->op_type().size() > 0) {
5190 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5191 this->op_type().data(), static_cast<int>(this->op_type().length()),
5192 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5193 "tensorflow.Execution.op_type");
5194 target =
5195 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5196 1, this->op_type(), target);
5197 }
5198
5199 // int32 num_outputs = 2;
5200 if (this->num_outputs() != 0) {
5201 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->num_outputs(), target);
5202 }
5203
5204 // string graph_id = 3;
5205 if (this->graph_id().size() > 0) {
5206 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5207 this->graph_id().data(), static_cast<int>(this->graph_id().length()),
5208 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5209 "tensorflow.Execution.graph_id");
5210 target =
5211 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5212 3, this->graph_id(), target);
5213 }
5214
5215 // repeated int64 input_tensor_ids = 4;
5216 if (this->input_tensor_ids_size() > 0) {
5217 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
5218 4,
5219 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5220 target);
5221 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
5222 _input_tensor_ids_cached_byte_size_.load(std::memory_order_relaxed),
5223 target);
5224 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5225 WriteInt64NoTagToArray(this->input_tensor_ids_, target);
5226 }
5227
5228 // repeated int64 output_tensor_ids = 5;
5229 if (this->output_tensor_ids_size() > 0) {
5230 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
5231 5,
5232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5233 target);
5234 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
5235 _output_tensor_ids_cached_byte_size_.load(std::memory_order_relaxed),
5236 target);
5237 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5238 WriteInt64NoTagToArray(this->output_tensor_ids_, target);
5239 }
5240
5241 // .tensorflow.TensorDebugMode tensor_debug_mode = 6;
5242 if (this->tensor_debug_mode() != 0) {
5243 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5244 6, this->tensor_debug_mode(), target);
5245 }
5246
5247 // repeated .tensorflow.TensorProto tensor_protos = 7;
5248 for (unsigned int i = 0,
5249 n = static_cast<unsigned int>(this->tensor_protos_size()); i < n; i++) {
5250 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5251 InternalWriteMessageToArray(
5252 7, this->tensor_protos(static_cast<int>(i)), target);
5253 }
5254
5255 // .tensorflow.CodeLocation code_location = 8;
5256 if (this->has_code_location()) {
5257 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5258 InternalWriteMessageToArray(
5259 8, _Internal::code_location(this), target);
5260 }
5261
5262 // repeated int32 output_tensor_device_ids = 9;
5263 if (this->output_tensor_device_ids_size() > 0) {
5264 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
5265 9,
5266 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5267 target);
5268 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
5269 _output_tensor_device_ids_cached_byte_size_.load(std::memory_order_relaxed),
5270 target);
5271 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5272 WriteInt32NoTagToArray(this->output_tensor_device_ids_, target);
5273 }
5274
5275 if (_internal_metadata_.have_unknown_fields()) {
5276 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5277 _internal_metadata_.unknown_fields(), target);
5278 }
5279 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.Execution)
5280 return target;
5281}
5282
5283size_t Execution::ByteSizeLong() const {
5284// @@protoc_insertion_point(message_byte_size_start:tensorflow.Execution)
5285 size_t total_size = 0;
5286
5287 if (_internal_metadata_.have_unknown_fields()) {
5288 total_size +=
5289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5290 _internal_metadata_.unknown_fields());
5291 }
5292 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5293 // Prevent compiler warnings about cached_has_bits being unused
5294 (void) cached_has_bits;
5295
5296 // repeated int64 input_tensor_ids = 4;
5297 {
5298 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5299 Int64Size(this->input_tensor_ids_);
5300 if (data_size > 0) {
5301 total_size += 1 +
5302 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5303 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
5304 }
5305 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
5306 _input_tensor_ids_cached_byte_size_.store(cached_size,
5307 std::memory_order_relaxed);
5308 total_size += data_size;
5309 }
5310
5311 // repeated int64 output_tensor_ids = 5;
5312 {
5313 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5314 Int64Size(this->output_tensor_ids_);
5315 if (data_size > 0) {
5316 total_size += 1 +
5317 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5318 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
5319 }
5320 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
5321 _output_tensor_ids_cached_byte_size_.store(cached_size,
5322 std::memory_order_relaxed);
5323 total_size += data_size;
5324 }
5325
5326 // repeated .tensorflow.TensorProto tensor_protos = 7;
5327 {
5328 unsigned int count = static_cast<unsigned int>(this->tensor_protos_size());
5329 total_size += 1UL * count;
5330 for (unsigned int i = 0; i < count; i++) {
5331 total_size +=
5332 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5333 this->tensor_protos(static_cast<int>(i)));
5334 }
5335 }
5336
5337 // repeated int32 output_tensor_device_ids = 9;
5338 {
5339 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5340 Int32Size(this->output_tensor_device_ids_);
5341 if (data_size > 0) {
5342 total_size += 1 +
5343 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5344 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
5345 }
5346 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
5347 _output_tensor_device_ids_cached_byte_size_.store(cached_size,
5348 std::memory_order_relaxed);
5349 total_size += data_size;
5350 }
5351
5352 // string op_type = 1;
5353 if (this->op_type().size() > 0) {
5354 total_size += 1 +
5355 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5356 this->op_type());
5357 }
5358
5359 // string graph_id = 3;
5360 if (this->graph_id().size() > 0) {
5361 total_size += 1 +
5362 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5363 this->graph_id());
5364 }
5365
5366 // .tensorflow.CodeLocation code_location = 8;
5367 if (this->has_code_location()) {
5368 total_size += 1 +
5369 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5370 *code_location_);
5371 }
5372
5373 // int32 num_outputs = 2;
5374 if (this->num_outputs() != 0) {
5375 total_size += 1 +
5376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5377 this->num_outputs());
5378 }
5379
5380 // .tensorflow.TensorDebugMode tensor_debug_mode = 6;
5381 if (this->tensor_debug_mode() != 0) {
5382 total_size += 1 +
5383 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->tensor_debug_mode());
5384 }
5385
5386 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5387 SetCachedSize(cached_size);
5388 return total_size;
5389}
5390
5391void Execution::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5392// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.Execution)
5393 GOOGLE_DCHECK_NE(&from, this);
5394 const Execution* source =
5395 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Execution>(
5396 &from);
5397 if (source == nullptr) {
5398 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.Execution)
5399 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5400 } else {
5401 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.Execution)
5402 MergeFrom(*source);
5403 }
5404}
5405
5406void Execution::MergeFrom(const Execution& from) {
5407// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.Execution)
5408 GOOGLE_DCHECK_NE(&from, this);
5409 _internal_metadata_.MergeFrom(from._internal_metadata_);
5410 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5411 (void) cached_has_bits;
5412
5413 input_tensor_ids_.MergeFrom(from.input_tensor_ids_);
5414 output_tensor_ids_.MergeFrom(from.output_tensor_ids_);
5415 tensor_protos_.MergeFrom(from.tensor_protos_);
5416 output_tensor_device_ids_.MergeFrom(from.output_tensor_device_ids_);
5417 if (from.op_type().size() > 0) {
5418 set_op_type(from.op_type());
5419 }
5420 if (from.graph_id().size() > 0) {
5421 set_graph_id(from.graph_id());
5422 }
5423 if (from.has_code_location()) {
5424 mutable_code_location()->::tensorflow::CodeLocation::MergeFrom(from.code_location());
5425 }
5426 if (from.num_outputs() != 0) {
5427 set_num_outputs(from.num_outputs());
5428 }
5429 if (from.tensor_debug_mode() != 0) {
5430 set_tensor_debug_mode(from.tensor_debug_mode());
5431 }
5432}
5433
5434void Execution::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5435// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.Execution)
5436 if (&from == this) return;
5437 Clear();
5438 MergeFrom(from);
5439}
5440
5441void Execution::CopyFrom(const Execution& from) {
5442// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.Execution)
5443 if (&from == this) return;
5444 Clear();
5445 MergeFrom(from);
5446}
5447
5448bool Execution::IsInitialized() const {
5449 return true;
5450}
5451
5452void Execution::InternalSwap(Execution* other) {
5453 using std::swap;
5454 _internal_metadata_.Swap(&other->_internal_metadata_);
5455 input_tensor_ids_.InternalSwap(&other->input_tensor_ids_);
5456 output_tensor_ids_.InternalSwap(&other->output_tensor_ids_);
5457 CastToBase(&tensor_protos_)->InternalSwap(CastToBase(&other->tensor_protos_));
5458 output_tensor_device_ids_.InternalSwap(&other->output_tensor_device_ids_);
5459 op_type_.Swap(&other->op_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5460 GetArenaNoVirtual());
5461 graph_id_.Swap(&other->graph_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5462 GetArenaNoVirtual());
5463 swap(code_location_, other->code_location_);
5464 swap(num_outputs_, other->num_outputs_);
5465 swap(tensor_debug_mode_, other->tensor_debug_mode_);
5466}
5467
5468::PROTOBUF_NAMESPACE_ID::Metadata Execution::GetMetadata() const {
5469 return GetMetadataStatic();
5470}
5471
5472
5473// ===================================================================
5474
5475void GraphExecutionTrace::InitAsDefaultInstance() {
5476 ::tensorflow::_GraphExecutionTrace_default_instance_._instance.get_mutable()->tensor_proto_ = const_cast< ::tensorflow::TensorProto*>(
5477 ::tensorflow::TensorProto::internal_default_instance());
5478}
5479class GraphExecutionTrace::_Internal {
5480 public:
5481 static const ::tensorflow::TensorProto& tensor_proto(const GraphExecutionTrace* msg);
5482};
5483
5484const ::tensorflow::TensorProto&
5485GraphExecutionTrace::_Internal::tensor_proto(const GraphExecutionTrace* msg) {
5486 return *msg->tensor_proto_;
5487}
5488void GraphExecutionTrace::unsafe_arena_set_allocated_tensor_proto(
5489 ::tensorflow::TensorProto* tensor_proto) {
5490 if (GetArenaNoVirtual() == nullptr) {
5491 delete tensor_proto_;
5492 }
5493 tensor_proto_ = tensor_proto;
5494 if (tensor_proto) {
5495
5496 } else {
5497
5498 }
5499 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphExecutionTrace.tensor_proto)
5500}
5501void GraphExecutionTrace::clear_tensor_proto() {
5502 if (GetArenaNoVirtual() == nullptr && tensor_proto_ != nullptr) {
5503 delete tensor_proto_;
5504 }
5505 tensor_proto_ = nullptr;
5506}
5507GraphExecutionTrace::GraphExecutionTrace()
5508 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5509 SharedCtor();
5510 // @@protoc_insertion_point(constructor:tensorflow.GraphExecutionTrace)
5511}
5512GraphExecutionTrace::GraphExecutionTrace(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5513 : ::PROTOBUF_NAMESPACE_ID::Message(),
5514 _internal_metadata_(arena) {
5515 SharedCtor();
5516 RegisterArenaDtor(arena);
5517 // @@protoc_insertion_point(arena_constructor:tensorflow.GraphExecutionTrace)
5518}
5519GraphExecutionTrace::GraphExecutionTrace(const GraphExecutionTrace& from)
5520 : ::PROTOBUF_NAMESPACE_ID::Message(),
5521 _internal_metadata_(nullptr) {
5522 _internal_metadata_.MergeFrom(from._internal_metadata_);
5523 tfdbg_context_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5524 if (!from.tfdbg_context_id().empty()) {
5525 tfdbg_context_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tfdbg_context_id(),
5526 GetArenaNoVirtual());
5527 }
5528 op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5529 if (!from.op_name().empty()) {
5530 op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.op_name(),
5531 GetArenaNoVirtual());
5532 }
5533 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5534 if (!from.device_name().empty()) {
5535 device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name(),
5536 GetArenaNoVirtual());
5537 }
5538 if (from.has_tensor_proto()) {
5539 tensor_proto_ = new ::tensorflow::TensorProto(*from.tensor_proto_);
5540 } else {
5541 tensor_proto_ = nullptr;
5542 }
5543 ::memcpy(&output_slot_, &from.output_slot_,
5544 static_cast<size_t>(reinterpret_cast<char*>(&tensor_debug_mode_) -
5545 reinterpret_cast<char*>(&output_slot_)) + sizeof(tensor_debug_mode_));
5546 // @@protoc_insertion_point(copy_constructor:tensorflow.GraphExecutionTrace)
5547}
5548
5549void GraphExecutionTrace::SharedCtor() {
5550 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
5551 tfdbg_context_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5552 op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5553 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5554 ::memset(&tensor_proto_, 0, static_cast<size_t>(
5555 reinterpret_cast<char*>(&tensor_debug_mode_) -
5556 reinterpret_cast<char*>(&tensor_proto_)) + sizeof(tensor_debug_mode_));
5557}
5558
5559GraphExecutionTrace::~GraphExecutionTrace() {
5560 // @@protoc_insertion_point(destructor:tensorflow.GraphExecutionTrace)
5561 SharedDtor();
5562}
5563
5564void GraphExecutionTrace::SharedDtor() {
5565 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5566 tfdbg_context_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5567 op_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5568 device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5569 if (this != internal_default_instance()) delete tensor_proto_;
5570}
5571
5572void GraphExecutionTrace::ArenaDtor(void* object) {
5573 GraphExecutionTrace* _this = reinterpret_cast< GraphExecutionTrace* >(object);
5574 (void)_this;
5575}
5576void GraphExecutionTrace::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5577}
5578void GraphExecutionTrace::SetCachedSize(int size) const {
5579 _cached_size_.Set(size);
5580}
5581const GraphExecutionTrace& GraphExecutionTrace::default_instance() {
5582 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphExecutionTrace_tensorflow_2fcore_2fprotobuf_2fdebug_5fevent_2eproto.base);
5583 return *internal_default_instance();
5584}
5585
5586
5587void GraphExecutionTrace::Clear() {
5588// @@protoc_insertion_point(message_clear_start:tensorflow.GraphExecutionTrace)
5589 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5590 // Prevent compiler warnings about cached_has_bits being unused
5591 (void) cached_has_bits;
5592
5593 tfdbg_context_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5594 op_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5595 device_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5596 if (GetArenaNoVirtual() == nullptr && tensor_proto_ != nullptr) {
5597 delete tensor_proto_;
5598 }
5599 tensor_proto_ = nullptr;
5600 ::memset(&output_slot_, 0, static_cast<size_t>(
5601 reinterpret_cast<char*>(&tensor_debug_mode_) -
5602 reinterpret_cast<char*>(&output_slot_)) + sizeof(tensor_debug_mode_));
5603 _internal_metadata_.Clear();
5604}
5605
5606#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5607const char* GraphExecutionTrace::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5608#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5609 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5610 while (!ctx->Done(&ptr)) {
5611 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5612 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5613 CHK_(ptr);
5614 switch (tag >> 3) {
5615 // string tfdbg_context_id = 1;
5616 case 1:
5617 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5618 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tfdbg_context_id(), ptr, ctx, "tensorflow.GraphExecutionTrace.tfdbg_context_id");
5619 CHK_(ptr);
5620 } else goto handle_unusual;
5621 continue;
5622 // string op_name = 2;
5623 case 2:
5624 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5625 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_op_name(), ptr, ctx, "tensorflow.GraphExecutionTrace.op_name");
5626 CHK_(ptr);
5627 } else goto handle_unusual;
5628 continue;
5629 // int32 output_slot = 3;
5630 case 3:
5631 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
5632 output_slot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5633 CHK_(ptr);
5634 } else goto handle_unusual;
5635 continue;
5636 // .tensorflow.TensorDebugMode tensor_debug_mode = 4;
5637 case 4:
5638 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
5639 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5640 CHK_(ptr);
5641 set_tensor_debug_mode(static_cast<::tensorflow::TensorDebugMode>(val));
5642 } else goto handle_unusual;
5643 continue;
5644 // .tensorflow.TensorProto tensor_proto = 5;
5645 case 5:
5646 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
5647 ptr = ctx->ParseMessage(mutable_tensor_proto(), ptr);
5648 CHK_(ptr);
5649 } else goto handle_unusual;
5650 continue;
5651 // string device_name = 6;
5652 case 6:
5653 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
5654 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_name(), ptr, ctx, "tensorflow.GraphExecutionTrace.device_name");
5655 CHK_(ptr);
5656 } else goto handle_unusual;
5657 continue;
5658 default: {
5659 handle_unusual:
5660 if ((tag & 7) == 4 || tag == 0) {
5661 ctx->SetLastTag(tag);
5662 goto success;
5663 }
5664 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5665 CHK_(ptr != nullptr);
5666 continue;
5667 }
5668 } // switch
5669 } // while
5670success:
5671 return ptr;
5672failure:
5673 ptr = nullptr;
5674 goto success;
5675#undef CHK_
5676}
5677#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5678bool GraphExecutionTrace::MergePartialFromCodedStream(
5679 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5680#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5681 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5682 // @@protoc_insertion_point(parse_start:tensorflow.GraphExecutionTrace)
5683 for (;;) {
5684 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5685 tag = p.first;
5686 if (!p.second) goto handle_unusual;
5687 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5688 // string tfdbg_context_id = 1;
5689 case 1: {
5690 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5691 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5692 input, this->mutable_tfdbg_context_id()));
5693 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5694 this->tfdbg_context_id().data(), static_cast<int>(this->tfdbg_context_id().length()),
5695 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5696 "tensorflow.GraphExecutionTrace.tfdbg_context_id"));
5697 } else {
5698 goto handle_unusual;
5699 }
5700 break;
5701 }
5702
5703 // string op_name = 2;
5704 case 2: {
5705 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
5706 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5707 input, this->mutable_op_name()));
5708 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5709 this->op_name().data(), static_cast<int>(this->op_name().length()),
5710 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5711 "tensorflow.GraphExecutionTrace.op_name"));
5712 } else {
5713 goto handle_unusual;
5714 }
5715 break;
5716 }
5717
5718 // int32 output_slot = 3;
5719 case 3: {
5720 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
5721
5722 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5723 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5724 input, &output_slot_)));
5725 } else {
5726 goto handle_unusual;
5727 }
5728 break;
5729 }
5730
5731 // .tensorflow.TensorDebugMode tensor_debug_mode = 4;
5732 case 4: {
5733 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
5734 int value = 0;
5735 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5736 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
5737 input, &value)));
5738 set_tensor_debug_mode(static_cast< ::tensorflow::TensorDebugMode >(value));
5739 } else {
5740 goto handle_unusual;
5741 }
5742 break;
5743 }
5744
5745 // .tensorflow.TensorProto tensor_proto = 5;
5746 case 5: {
5747 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
5748 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5749 input, mutable_tensor_proto()));
5750 } else {
5751 goto handle_unusual;
5752 }
5753 break;
5754 }
5755
5756 // string device_name = 6;
5757 case 6: {
5758 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
5759 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5760 input, this->mutable_device_name()));
5761 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5762 this->device_name().data(), static_cast<int>(this->device_name().length()),
5763 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5764 "tensorflow.GraphExecutionTrace.device_name"));
5765 } else {
5766 goto handle_unusual;
5767 }
5768 break;
5769 }
5770
5771 default: {
5772 handle_unusual:
5773 if (tag == 0) {
5774 goto success;
5775 }
5776 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5777 input, tag, _internal_metadata_.mutable_unknown_fields()));
5778 break;
5779 }
5780 }
5781 }
5782success:
5783 // @@protoc_insertion_point(parse_success:tensorflow.GraphExecutionTrace)
5784 return true;
5785failure:
5786 // @@protoc_insertion_point(parse_failure:tensorflow.GraphExecutionTrace)
5787 return false;
5788#undef DO_
5789}
5790#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5791
5792void GraphExecutionTrace::SerializeWithCachedSizes(
5793 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5794 // @@protoc_insertion_point(serialize_start:tensorflow.GraphExecutionTrace)
5795 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5796 (void) cached_has_bits;
5797
5798 // string tfdbg_context_id = 1;
5799 if (this->tfdbg_context_id().size() > 0) {
5800 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5801 this->tfdbg_context_id().data(), static_cast<int>(this->tfdbg_context_id().length()),
5802 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5803 "tensorflow.GraphExecutionTrace.tfdbg_context_id");
5804 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5805 1, this->tfdbg_context_id(), output);
5806 }
5807
5808 // string op_name = 2;
5809 if (this->op_name().size() > 0) {
5810 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5811 this->op_name().data(), static_cast<int>(this->op_name().length()),
5812 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5813 "tensorflow.GraphExecutionTrace.op_name");
5814 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5815 2, this->op_name(), output);
5816 }
5817
5818 // int32 output_slot = 3;
5819 if (this->output_slot() != 0) {
5820 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->output_slot(), output);
5821 }
5822
5823 // .tensorflow.TensorDebugMode tensor_debug_mode = 4;
5824 if (this->tensor_debug_mode() != 0) {
5825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
5826 4, this->tensor_debug_mode(), output);
5827 }
5828
5829 // .tensorflow.TensorProto tensor_proto = 5;
5830 if (this->has_tensor_proto()) {
5831 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5832 5, _Internal::tensor_proto(this), output);
5833 }
5834
5835 // string device_name = 6;
5836 if (this->device_name().size() > 0) {
5837 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5838 this->device_name().data(), static_cast<int>(this->device_name().length()),
5839 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5840 "tensorflow.GraphExecutionTrace.device_name");
5841 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5842 6, this->device_name(), output);
5843 }
5844
5845 if (_internal_metadata_.have_unknown_fields()) {
5846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5847 _internal_metadata_.unknown_fields(), output);
5848 }
5849 // @@protoc_insertion_point(serialize_end:tensorflow.GraphExecutionTrace)
5850}
5851
5852::PROTOBUF_NAMESPACE_ID::uint8* GraphExecutionTrace::InternalSerializeWithCachedSizesToArray(
5853 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5854 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphExecutionTrace)
5855 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5856 (void) cached_has_bits;
5857
5858 // string tfdbg_context_id = 1;
5859 if (this->tfdbg_context_id().size() > 0) {
5860 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5861 this->tfdbg_context_id().data(), static_cast<int>(this->tfdbg_context_id().length()),
5862 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5863 "tensorflow.GraphExecutionTrace.tfdbg_context_id");
5864 target =
5865 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5866 1, this->tfdbg_context_id(), target);
5867 }
5868
5869 // string op_name = 2;
5870 if (this->op_name().size() > 0) {
5871 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5872 this->op_name().data(), static_cast<int>(this->op_name().length()),
5873 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5874 "tensorflow.GraphExecutionTrace.op_name");
5875 target =
5876 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5877 2, this->op_name(), target);
5878 }
5879
5880 // int32 output_slot = 3;
5881 if (this->output_slot() != 0) {
5882 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->output_slot(), target);
5883 }
5884
5885 // .tensorflow.TensorDebugMode tensor_debug_mode = 4;
5886 if (this->tensor_debug_mode() != 0) {
5887 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5888 4, this->tensor_debug_mode(), target);
5889 }
5890
5891 // .tensorflow.TensorProto tensor_proto = 5;
5892 if (this->has_tensor_proto()) {
5893 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5894 InternalWriteMessageToArray(
5895 5, _Internal::tensor_proto(this), target);
5896 }
5897
5898 // string device_name = 6;
5899 if (this->device_name().size() > 0) {
5900 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5901 this->device_name().data(), static_cast<int>(this->device_name().length()),
5902 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5903 "tensorflow.GraphExecutionTrace.device_name");
5904 target =
5905 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5906 6, this->device_name(), target);
5907 }
5908
5909 if (_internal_metadata_.have_unknown_fields()) {
5910 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5911 _internal_metadata_.unknown_fields(), target);
5912 }
5913 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphExecutionTrace)
5914 return target;
5915}
5916
5917size_t GraphExecutionTrace::ByteSizeLong() const {
5918// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphExecutionTrace)
5919 size_t total_size = 0;
5920
5921 if (_internal_metadata_.have_unknown_fields()) {
5922 total_size +=
5923 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5924 _internal_metadata_.unknown_fields());
5925 }
5926 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5927 // Prevent compiler warnings about cached_has_bits being unused
5928 (void) cached_has_bits;
5929
5930 // string tfdbg_context_id = 1;
5931 if (this->tfdbg_context_id().size() > 0) {
5932 total_size += 1 +
5933 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5934 this->tfdbg_context_id());
5935 }
5936
5937 // string op_name = 2;
5938 if (this->op_name().size() > 0) {
5939 total_size += 1 +
5940 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5941 this->op_name());
5942 }
5943
5944 // string device_name = 6;
5945 if (this->device_name().size() > 0) {
5946 total_size += 1 +
5947 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5948 this->device_name());
5949 }
5950
5951 // .tensorflow.TensorProto tensor_proto = 5;
5952 if (this->has_tensor_proto()) {
5953 total_size += 1 +
5954 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5955 *tensor_proto_);
5956 }
5957
5958 // int32 output_slot = 3;
5959 if (this->output_slot() != 0) {
5960 total_size += 1 +
5961 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5962 this->output_slot());
5963 }
5964
5965 // .tensorflow.TensorDebugMode tensor_debug_mode = 4;
5966 if (this->tensor_debug_mode() != 0) {
5967 total_size += 1 +
5968 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->tensor_debug_mode());
5969 }
5970
5971 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5972 SetCachedSize(cached_size);
5973 return total_size;
5974}
5975
5976void GraphExecutionTrace::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5977// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphExecutionTrace)
5978 GOOGLE_DCHECK_NE(&from, this);
5979 const GraphExecutionTrace* source =
5980 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphExecutionTrace>(
5981 &from);
5982 if (source == nullptr) {
5983 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphExecutionTrace)
5984 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5985 } else {
5986 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphExecutionTrace)
5987 MergeFrom(*source);
5988 }
5989}
5990
5991void GraphExecutionTrace::MergeFrom(const GraphExecutionTrace& from) {
5992// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphExecutionTrace)
5993 GOOGLE_DCHECK_NE(&from, this);
5994 _internal_metadata_.MergeFrom(from._internal_metadata_);
5995 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5996 (void) cached_has_bits;
5997
5998 if (from.tfdbg_context_id().size() > 0) {
5999 set_tfdbg_context_id(from.tfdbg_context_id());
6000 }
6001 if (from.op_name().size() > 0) {
6002 set_op_name(from.op_name());
6003 }
6004 if (from.device_name().size() > 0) {
6005 set_device_name(from.device_name());
6006 }
6007 if (from.has_tensor_proto()) {
6008 mutable_tensor_proto()->::tensorflow::TensorProto::MergeFrom(from.tensor_proto());
6009 }
6010 if (from.output_slot() != 0) {
6011 set_output_slot(from.output_slot());
6012 }
6013 if (from.tensor_debug_mode() != 0) {
6014 set_tensor_debug_mode(from.tensor_debug_mode());
6015 }
6016}
6017
6018void GraphExecutionTrace::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6019// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphExecutionTrace)
6020 if (&from == this) return;
6021 Clear();
6022 MergeFrom(from);
6023}
6024
6025void GraphExecutionTrace::CopyFrom(const GraphExecutionTrace& from) {
6026// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphExecutionTrace)
6027 if (&from == this) return;
6028 Clear();
6029 MergeFrom(from);
6030}
6031
6032bool GraphExecutionTrace::IsInitialized() const {
6033 return true;
6034}
6035
6036void GraphExecutionTrace::InternalSwap(GraphExecutionTrace* other) {
6037 using std::swap;
6038 _internal_metadata_.Swap(&other->_internal_metadata_);
6039 tfdbg_context_id_.Swap(&other->tfdbg_context_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6040 GetArenaNoVirtual());
6041 op_name_.Swap(&other->op_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6042 GetArenaNoVirtual());
6043 device_name_.Swap(&other->device_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6044 GetArenaNoVirtual());
6045 swap(tensor_proto_, other->tensor_proto_);
6046 swap(output_slot_, other->output_slot_);
6047 swap(tensor_debug_mode_, other->tensor_debug_mode_);
6048}
6049
6050::PROTOBUF_NAMESPACE_ID::Metadata GraphExecutionTrace::GetMetadata() const {
6051 return GetMetadataStatic();
6052}
6053
6054
6055// @@protoc_insertion_point(namespace_scope)
6056} // namespace tensorflow
6057PROTOBUF_NAMESPACE_OPEN
6058template<> PROTOBUF_NOINLINE ::tensorflow::DebugEvent* Arena::CreateMaybeMessage< ::tensorflow::DebugEvent >(Arena* arena) {
6059 return Arena::CreateMessageInternal< ::tensorflow::DebugEvent >(arena);
6060}
6061template<> PROTOBUF_NOINLINE ::tensorflow::DebugMetadata* Arena::CreateMaybeMessage< ::tensorflow::DebugMetadata >(Arena* arena) {
6062 return Arena::CreateMessageInternal< ::tensorflow::DebugMetadata >(arena);
6063}
6064template<> PROTOBUF_NOINLINE ::tensorflow::SourceFile* Arena::CreateMaybeMessage< ::tensorflow::SourceFile >(Arena* arena) {
6065 return Arena::CreateMessageInternal< ::tensorflow::SourceFile >(arena);
6066}
6067template<> PROTOBUF_NOINLINE ::tensorflow::StackFrameWithId* Arena::CreateMaybeMessage< ::tensorflow::StackFrameWithId >(Arena* arena) {
6068 return Arena::CreateMessageInternal< ::tensorflow::StackFrameWithId >(arena);
6069}
6070template<> PROTOBUF_NOINLINE ::tensorflow::CodeLocation* Arena::CreateMaybeMessage< ::tensorflow::CodeLocation >(Arena* arena) {
6071 return Arena::CreateMessageInternal< ::tensorflow::CodeLocation >(arena);
6072}
6073template<> PROTOBUF_NOINLINE ::tensorflow::GraphOpCreation* Arena::CreateMaybeMessage< ::tensorflow::GraphOpCreation >(Arena* arena) {
6074 return Arena::CreateMessageInternal< ::tensorflow::GraphOpCreation >(arena);
6075}
6076template<> PROTOBUF_NOINLINE ::tensorflow::DebuggedGraph* Arena::CreateMaybeMessage< ::tensorflow::DebuggedGraph >(Arena* arena) {
6077 return Arena::CreateMessageInternal< ::tensorflow::DebuggedGraph >(arena);
6078}
6079template<> PROTOBUF_NOINLINE ::tensorflow::DebuggedDevice* Arena::CreateMaybeMessage< ::tensorflow::DebuggedDevice >(Arena* arena) {
6080 return Arena::CreateMessageInternal< ::tensorflow::DebuggedDevice >(arena);
6081}
6082template<> PROTOBUF_NOINLINE ::tensorflow::Execution* Arena::CreateMaybeMessage< ::tensorflow::Execution >(Arena* arena) {
6083 return Arena::CreateMessageInternal< ::tensorflow::Execution >(arena);
6084}
6085template<> PROTOBUF_NOINLINE ::tensorflow::GraphExecutionTrace* Arena::CreateMaybeMessage< ::tensorflow::GraphExecutionTrace >(Arena* arena) {
6086 return Arena::CreateMessageInternal< ::tensorflow::GraphExecutionTrace >(arena);
6087}
6088PROTOBUF_NAMESPACE_CLOSE
6089
6090// @@protoc_insertion_point(global_scope)
6091#include <google/protobuf/port_undef.inc>
6092