1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/debug/debug_service.proto
3
4#include "tensorflow/core/debug/debug_service.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_2fdebug_2fdebug_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto;
23namespace tensorflow {
24class EventReply_DebugOpStateChangeDefaultTypeInternal {
25 public:
26 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EventReply_DebugOpStateChange> _instance;
27} _EventReply_DebugOpStateChange_default_instance_;
28class EventReplyDefaultTypeInternal {
29 public:
30 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EventReply> _instance;
31} _EventReply_default_instance_;
32class CallTraceback_OriginIdToStringEntry_DoNotUseDefaultTypeInternal {
33 public:
34 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CallTraceback_OriginIdToStringEntry_DoNotUse> _instance;
35} _CallTraceback_OriginIdToStringEntry_DoNotUse_default_instance_;
36class CallTracebackDefaultTypeInternal {
37 public:
38 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CallTraceback> _instance;
39} _CallTraceback_default_instance_;
40} // namespace tensorflow
41static void InitDefaultsscc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto() {
42 GOOGLE_PROTOBUF_VERIFY_VERSION;
43
44 {
45 void* ptr = &::tensorflow::_CallTraceback_default_instance_;
46 new (ptr) ::tensorflow::CallTraceback();
47 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
48 }
49 ::tensorflow::CallTraceback::InitAsDefaultInstance();
50}
51
52::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto =
53 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto}, {
54 &scc_info_CodeDef_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,
55 &scc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
56 &scc_info_OpLogProto_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto.base,}};
57
58static void InitDefaultsscc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto() {
59 GOOGLE_PROTOBUF_VERIFY_VERSION;
60
61 {
62 void* ptr = &::tensorflow::_CallTraceback_OriginIdToStringEntry_DoNotUse_default_instance_;
63 new (ptr) ::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse();
64 }
65 ::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse::InitAsDefaultInstance();
66}
67
68::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto =
69 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto}, {}};
70
71static void InitDefaultsscc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto() {
72 GOOGLE_PROTOBUF_VERIFY_VERSION;
73
74 {
75 void* ptr = &::tensorflow::_EventReply_default_instance_;
76 new (ptr) ::tensorflow::EventReply();
77 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
78 }
79 ::tensorflow::EventReply::InitAsDefaultInstance();
80}
81
82::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto =
83 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto}, {
84 &scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
85 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
86
87static void InitDefaultsscc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto() {
88 GOOGLE_PROTOBUF_VERIFY_VERSION;
89
90 {
91 void* ptr = &::tensorflow::_EventReply_DebugOpStateChange_default_instance_;
92 new (ptr) ::tensorflow::EventReply_DebugOpStateChange();
93 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
94 }
95 ::tensorflow::EventReply_DebugOpStateChange::InitAsDefaultInstance();
96}
97
98::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto =
99 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto}, {}};
100
101static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto[4];
102static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto[2];
103static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto = nullptr;
104
105const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
106 ~0u, // no _has_bits_
107 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply_DebugOpStateChange, _internal_metadata_),
108 ~0u, // no _extensions_
109 ~0u, // no _oneof_case_
110 ~0u, // no _weak_field_map_
111 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply_DebugOpStateChange, state_),
112 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply_DebugOpStateChange, node_name_),
113 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply_DebugOpStateChange, output_slot_),
114 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply_DebugOpStateChange, debug_op_),
115 ~0u, // no _has_bits_
116 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply, _internal_metadata_),
117 ~0u, // no _extensions_
118 ~0u, // no _oneof_case_
119 ~0u, // no _weak_field_map_
120 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply, debug_op_state_changes_),
121 PROTOBUF_FIELD_OFFSET(::tensorflow::EventReply, tensor_),
122 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse, _has_bits_),
123 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse, _internal_metadata_),
124 ~0u, // no _extensions_
125 ~0u, // no _oneof_case_
126 ~0u, // no _weak_field_map_
127 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse, key_),
128 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse, value_),
129 0,
130 1,
131 ~0u, // no _has_bits_
132 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, _internal_metadata_),
133 ~0u, // no _extensions_
134 ~0u, // no _oneof_case_
135 ~0u, // no _weak_field_map_
136 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, call_type_),
137 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, call_key_),
138 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, origin_stack_),
139 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, origin_id_to_string_),
140 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, graph_traceback_),
141 PROTOBUF_FIELD_OFFSET(::tensorflow::CallTraceback, graph_version_),
142};
143static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
144 { 0, -1, sizeof(::tensorflow::EventReply_DebugOpStateChange)},
145 { 9, -1, sizeof(::tensorflow::EventReply)},
146 { 16, 23, sizeof(::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse)},
147 { 25, -1, sizeof(::tensorflow::CallTraceback)},
148};
149
150static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
151 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_EventReply_DebugOpStateChange_default_instance_),
152 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_EventReply_default_instance_),
153 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CallTraceback_OriginIdToStringEntry_DoNotUse_default_instance_),
154 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CallTraceback_default_instance_),
155};
156
157const char descriptor_table_protodef_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
158 "\n)tensorflow/core/debug/debug_service.pr"
159 "oto\022\ntensorflow\032&tensorflow/core/framewo"
160 "rk/tensor.proto\032)tensorflow/core/profile"
161 "r/tfprof_log.proto\032$tensorflow/core/prot"
162 "obuf/debug.proto\032 tensorflow/core/util/e"
163 "vent.proto\"\336\002\n\nEventReply\022I\n\026debug_op_st"
164 "ate_changes\030\001 \003(\0132).tensorflow.EventRepl"
165 "y.DebugOpStateChange\022\'\n\006tensor\030\002 \001(\0132\027.t"
166 "ensorflow.TensorProto\032\333\001\n\022DebugOpStateCh"
167 "ange\022>\n\005state\030\001 \001(\0162/.tensorflow.EventRe"
168 "ply.DebugOpStateChange.State\022\021\n\tnode_nam"
169 "e\030\002 \001(\t\022\023\n\013output_slot\030\003 \001(\005\022\020\n\010debug_op"
170 "\030\004 \001(\t\"K\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014"
171 "\n\010DISABLED\020\001\022\r\n\tREAD_ONLY\020\002\022\016\n\nREAD_WRIT"
172 "E\020\003\"\247\003\n\rCallTraceback\0225\n\tcall_type\030\001 \001(\016"
173 "2\".tensorflow.CallTraceback.CallType\022\020\n\010"
174 "call_key\030\002 \001(\t\0220\n\014origin_stack\030\003 \001(\0132\032.t"
175 "ensorflow.tfprof.CodeDef\022L\n\023origin_id_to"
176 "_string\030\004 \003(\0132/.tensorflow.CallTraceback"
177 ".OriginIdToStringEntry\0226\n\017graph_tracebac"
178 "k\030\005 \001(\0132\035.tensorflow.tfprof.OpLogProto\022\025"
179 "\n\rgraph_version\030\006 \001(\003\0327\n\025OriginIdToStrin"
180 "gEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\t:\0028\001\"E"
181 "\n\010CallType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017GRAPH_EXE"
182 "CUTION\020\001\022\023\n\017EAGER_EXECUTION\020\0022\335\001\n\rEventL"
183 "istener\022;\n\nSendEvents\022\021.tensorflow.Event"
184 "\032\026.tensorflow.EventReply(\0010\001\022C\n\016SendTrac"
185 "ebacks\022\031.tensorflow.CallTraceback\032\026.tens"
186 "orflow.EventReply\022J\n\017SendSourceFiles\022\037.t"
187 "ensorflow.DebuggedSourceFiles\032\026.tensorfl"
188 "ow.EventReplyb\006proto3"
189 ;
190static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_deps[4] = {
191 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
192 &::descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5flog_2eproto,
193 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto,
194 &::descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto,
195};
196static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_sccs[4] = {
197 &scc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
198 &scc_info_CallTraceback_OriginIdToStringEntry_DoNotUse_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
199 &scc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
200 &scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base,
201};
202static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_once;
203static bool descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_initialized = false;
204const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto = {
205 &descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto, "tensorflow/core/debug/debug_service.proto", 1221,
206 &descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_once, descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto_deps, 4, 4,
207 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto::offsets,
208 file_level_metadata_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto, 4, file_level_enum_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto,
209};
210
211// Force running AddDescriptors() at dynamic initialization time.
212static bool dynamic_init_dummy_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto), true);
213namespace tensorflow {
214const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EventReply_DebugOpStateChange_State_descriptor() {
215 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto);
216 return file_level_enum_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto[0];
217}
218bool EventReply_DebugOpStateChange_State_IsValid(int value) {
219 switch (value) {
220 case 0:
221 case 1:
222 case 2:
223 case 3:
224 return true;
225 default:
226 return false;
227 }
228}
229
230#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
231constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::STATE_UNSPECIFIED;
232constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::DISABLED;
233constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::READ_ONLY;
234constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::READ_WRITE;
235constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::State_MIN;
236constexpr EventReply_DebugOpStateChange_State EventReply_DebugOpStateChange::State_MAX;
237constexpr int EventReply_DebugOpStateChange::State_ARRAYSIZE;
238#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
239const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CallTraceback_CallType_descriptor() {
240 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto);
241 return file_level_enum_descriptors_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto[1];
242}
243bool CallTraceback_CallType_IsValid(int value) {
244 switch (value) {
245 case 0:
246 case 1:
247 case 2:
248 return true;
249 default:
250 return false;
251 }
252}
253
254#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
255constexpr CallTraceback_CallType CallTraceback::UNSPECIFIED;
256constexpr CallTraceback_CallType CallTraceback::GRAPH_EXECUTION;
257constexpr CallTraceback_CallType CallTraceback::EAGER_EXECUTION;
258constexpr CallTraceback_CallType CallTraceback::CallType_MIN;
259constexpr CallTraceback_CallType CallTraceback::CallType_MAX;
260constexpr int CallTraceback::CallType_ARRAYSIZE;
261#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
262
263// ===================================================================
264
265void EventReply_DebugOpStateChange::InitAsDefaultInstance() {
266}
267class EventReply_DebugOpStateChange::_Internal {
268 public:
269};
270
271EventReply_DebugOpStateChange::EventReply_DebugOpStateChange()
272 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
273 SharedCtor();
274 // @@protoc_insertion_point(constructor:tensorflow.EventReply.DebugOpStateChange)
275}
276EventReply_DebugOpStateChange::EventReply_DebugOpStateChange(const EventReply_DebugOpStateChange& from)
277 : ::PROTOBUF_NAMESPACE_ID::Message(),
278 _internal_metadata_(nullptr) {
279 _internal_metadata_.MergeFrom(from._internal_metadata_);
280 node_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
281 if (!from.node_name().empty()) {
282 node_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.node_name_);
283 }
284 debug_op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
285 if (!from.debug_op().empty()) {
286 debug_op_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_op_);
287 }
288 ::memcpy(&state_, &from.state_,
289 static_cast<size_t>(reinterpret_cast<char*>(&output_slot_) -
290 reinterpret_cast<char*>(&state_)) + sizeof(output_slot_));
291 // @@protoc_insertion_point(copy_constructor:tensorflow.EventReply.DebugOpStateChange)
292}
293
294void EventReply_DebugOpStateChange::SharedCtor() {
295 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
296 node_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
297 debug_op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
298 ::memset(&state_, 0, static_cast<size_t>(
299 reinterpret_cast<char*>(&output_slot_) -
300 reinterpret_cast<char*>(&state_)) + sizeof(output_slot_));
301}
302
303EventReply_DebugOpStateChange::~EventReply_DebugOpStateChange() {
304 // @@protoc_insertion_point(destructor:tensorflow.EventReply.DebugOpStateChange)
305 SharedDtor();
306}
307
308void EventReply_DebugOpStateChange::SharedDtor() {
309 node_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
310 debug_op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
311}
312
313void EventReply_DebugOpStateChange::SetCachedSize(int size) const {
314 _cached_size_.Set(size);
315}
316const EventReply_DebugOpStateChange& EventReply_DebugOpStateChange::default_instance() {
317 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EventReply_DebugOpStateChange_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
318 return *internal_default_instance();
319}
320
321
322void EventReply_DebugOpStateChange::Clear() {
323// @@protoc_insertion_point(message_clear_start:tensorflow.EventReply.DebugOpStateChange)
324 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
325 // Prevent compiler warnings about cached_has_bits being unused
326 (void) cached_has_bits;
327
328 node_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
329 debug_op_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
330 ::memset(&state_, 0, static_cast<size_t>(
331 reinterpret_cast<char*>(&output_slot_) -
332 reinterpret_cast<char*>(&state_)) + sizeof(output_slot_));
333 _internal_metadata_.Clear();
334}
335
336#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
337const char* EventReply_DebugOpStateChange::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
338#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
339 while (!ctx->Done(&ptr)) {
340 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
341 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
342 CHK_(ptr);
343 switch (tag >> 3) {
344 // .tensorflow.EventReply.DebugOpStateChange.State state = 1;
345 case 1:
346 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
347 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
348 CHK_(ptr);
349 set_state(static_cast<::tensorflow::EventReply_DebugOpStateChange_State>(val));
350 } else goto handle_unusual;
351 continue;
352 // string node_name = 2;
353 case 2:
354 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
355 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_node_name(), ptr, ctx, "tensorflow.EventReply.DebugOpStateChange.node_name");
356 CHK_(ptr);
357 } else goto handle_unusual;
358 continue;
359 // int32 output_slot = 3;
360 case 3:
361 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
362 output_slot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
363 CHK_(ptr);
364 } else goto handle_unusual;
365 continue;
366 // string debug_op = 4;
367 case 4:
368 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
369 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_debug_op(), ptr, ctx, "tensorflow.EventReply.DebugOpStateChange.debug_op");
370 CHK_(ptr);
371 } else goto handle_unusual;
372 continue;
373 default: {
374 handle_unusual:
375 if ((tag & 7) == 4 || tag == 0) {
376 ctx->SetLastTag(tag);
377 goto success;
378 }
379 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
380 CHK_(ptr != nullptr);
381 continue;
382 }
383 } // switch
384 } // while
385success:
386 return ptr;
387failure:
388 ptr = nullptr;
389 goto success;
390#undef CHK_
391}
392#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
393bool EventReply_DebugOpStateChange::MergePartialFromCodedStream(
394 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
395#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
396 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
397 // @@protoc_insertion_point(parse_start:tensorflow.EventReply.DebugOpStateChange)
398 for (;;) {
399 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
400 tag = p.first;
401 if (!p.second) goto handle_unusual;
402 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
403 // .tensorflow.EventReply.DebugOpStateChange.State state = 1;
404 case 1: {
405 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
406 int value = 0;
407 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
408 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
409 input, &value)));
410 set_state(static_cast< ::tensorflow::EventReply_DebugOpStateChange_State >(value));
411 } else {
412 goto handle_unusual;
413 }
414 break;
415 }
416
417 // string node_name = 2;
418 case 2: {
419 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
420 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
421 input, this->mutable_node_name()));
422 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
423 this->node_name().data(), static_cast<int>(this->node_name().length()),
424 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
425 "tensorflow.EventReply.DebugOpStateChange.node_name"));
426 } else {
427 goto handle_unusual;
428 }
429 break;
430 }
431
432 // int32 output_slot = 3;
433 case 3: {
434 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
435
436 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
437 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
438 input, &output_slot_)));
439 } else {
440 goto handle_unusual;
441 }
442 break;
443 }
444
445 // string debug_op = 4;
446 case 4: {
447 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
448 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
449 input, this->mutable_debug_op()));
450 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
451 this->debug_op().data(), static_cast<int>(this->debug_op().length()),
452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
453 "tensorflow.EventReply.DebugOpStateChange.debug_op"));
454 } else {
455 goto handle_unusual;
456 }
457 break;
458 }
459
460 default: {
461 handle_unusual:
462 if (tag == 0) {
463 goto success;
464 }
465 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
466 input, tag, _internal_metadata_.mutable_unknown_fields()));
467 break;
468 }
469 }
470 }
471success:
472 // @@protoc_insertion_point(parse_success:tensorflow.EventReply.DebugOpStateChange)
473 return true;
474failure:
475 // @@protoc_insertion_point(parse_failure:tensorflow.EventReply.DebugOpStateChange)
476 return false;
477#undef DO_
478}
479#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
480
481void EventReply_DebugOpStateChange::SerializeWithCachedSizes(
482 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
483 // @@protoc_insertion_point(serialize_start:tensorflow.EventReply.DebugOpStateChange)
484 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
485 (void) cached_has_bits;
486
487 // .tensorflow.EventReply.DebugOpStateChange.State state = 1;
488 if (this->state() != 0) {
489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
490 1, this->state(), output);
491 }
492
493 // string node_name = 2;
494 if (this->node_name().size() > 0) {
495 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
496 this->node_name().data(), static_cast<int>(this->node_name().length()),
497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
498 "tensorflow.EventReply.DebugOpStateChange.node_name");
499 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
500 2, this->node_name(), output);
501 }
502
503 // int32 output_slot = 3;
504 if (this->output_slot() != 0) {
505 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->output_slot(), output);
506 }
507
508 // string debug_op = 4;
509 if (this->debug_op().size() > 0) {
510 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
511 this->debug_op().data(), static_cast<int>(this->debug_op().length()),
512 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
513 "tensorflow.EventReply.DebugOpStateChange.debug_op");
514 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
515 4, this->debug_op(), output);
516 }
517
518 if (_internal_metadata_.have_unknown_fields()) {
519 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
520 _internal_metadata_.unknown_fields(), output);
521 }
522 // @@protoc_insertion_point(serialize_end:tensorflow.EventReply.DebugOpStateChange)
523}
524
525::PROTOBUF_NAMESPACE_ID::uint8* EventReply_DebugOpStateChange::InternalSerializeWithCachedSizesToArray(
526 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
527 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.EventReply.DebugOpStateChange)
528 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
529 (void) cached_has_bits;
530
531 // .tensorflow.EventReply.DebugOpStateChange.State state = 1;
532 if (this->state() != 0) {
533 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
534 1, this->state(), target);
535 }
536
537 // string node_name = 2;
538 if (this->node_name().size() > 0) {
539 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
540 this->node_name().data(), static_cast<int>(this->node_name().length()),
541 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
542 "tensorflow.EventReply.DebugOpStateChange.node_name");
543 target =
544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
545 2, this->node_name(), target);
546 }
547
548 // int32 output_slot = 3;
549 if (this->output_slot() != 0) {
550 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->output_slot(), target);
551 }
552
553 // string debug_op = 4;
554 if (this->debug_op().size() > 0) {
555 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
556 this->debug_op().data(), static_cast<int>(this->debug_op().length()),
557 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
558 "tensorflow.EventReply.DebugOpStateChange.debug_op");
559 target =
560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
561 4, this->debug_op(), target);
562 }
563
564 if (_internal_metadata_.have_unknown_fields()) {
565 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
566 _internal_metadata_.unknown_fields(), target);
567 }
568 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.EventReply.DebugOpStateChange)
569 return target;
570}
571
572size_t EventReply_DebugOpStateChange::ByteSizeLong() const {
573// @@protoc_insertion_point(message_byte_size_start:tensorflow.EventReply.DebugOpStateChange)
574 size_t total_size = 0;
575
576 if (_internal_metadata_.have_unknown_fields()) {
577 total_size +=
578 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
579 _internal_metadata_.unknown_fields());
580 }
581 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
582 // Prevent compiler warnings about cached_has_bits being unused
583 (void) cached_has_bits;
584
585 // string node_name = 2;
586 if (this->node_name().size() > 0) {
587 total_size += 1 +
588 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
589 this->node_name());
590 }
591
592 // string debug_op = 4;
593 if (this->debug_op().size() > 0) {
594 total_size += 1 +
595 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
596 this->debug_op());
597 }
598
599 // .tensorflow.EventReply.DebugOpStateChange.State state = 1;
600 if (this->state() != 0) {
601 total_size += 1 +
602 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->state());
603 }
604
605 // int32 output_slot = 3;
606 if (this->output_slot() != 0) {
607 total_size += 1 +
608 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
609 this->output_slot());
610 }
611
612 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
613 SetCachedSize(cached_size);
614 return total_size;
615}
616
617void EventReply_DebugOpStateChange::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
618// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.EventReply.DebugOpStateChange)
619 GOOGLE_DCHECK_NE(&from, this);
620 const EventReply_DebugOpStateChange* source =
621 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EventReply_DebugOpStateChange>(
622 &from);
623 if (source == nullptr) {
624 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.EventReply.DebugOpStateChange)
625 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
626 } else {
627 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.EventReply.DebugOpStateChange)
628 MergeFrom(*source);
629 }
630}
631
632void EventReply_DebugOpStateChange::MergeFrom(const EventReply_DebugOpStateChange& from) {
633// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.EventReply.DebugOpStateChange)
634 GOOGLE_DCHECK_NE(&from, this);
635 _internal_metadata_.MergeFrom(from._internal_metadata_);
636 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
637 (void) cached_has_bits;
638
639 if (from.node_name().size() > 0) {
640
641 node_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.node_name_);
642 }
643 if (from.debug_op().size() > 0) {
644
645 debug_op_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_op_);
646 }
647 if (from.state() != 0) {
648 set_state(from.state());
649 }
650 if (from.output_slot() != 0) {
651 set_output_slot(from.output_slot());
652 }
653}
654
655void EventReply_DebugOpStateChange::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
656// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.EventReply.DebugOpStateChange)
657 if (&from == this) return;
658 Clear();
659 MergeFrom(from);
660}
661
662void EventReply_DebugOpStateChange::CopyFrom(const EventReply_DebugOpStateChange& from) {
663// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.EventReply.DebugOpStateChange)
664 if (&from == this) return;
665 Clear();
666 MergeFrom(from);
667}
668
669bool EventReply_DebugOpStateChange::IsInitialized() const {
670 return true;
671}
672
673void EventReply_DebugOpStateChange::InternalSwap(EventReply_DebugOpStateChange* other) {
674 using std::swap;
675 _internal_metadata_.Swap(&other->_internal_metadata_);
676 node_name_.Swap(&other->node_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
677 GetArenaNoVirtual());
678 debug_op_.Swap(&other->debug_op_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
679 GetArenaNoVirtual());
680 swap(state_, other->state_);
681 swap(output_slot_, other->output_slot_);
682}
683
684::PROTOBUF_NAMESPACE_ID::Metadata EventReply_DebugOpStateChange::GetMetadata() const {
685 return GetMetadataStatic();
686}
687
688
689// ===================================================================
690
691void EventReply::InitAsDefaultInstance() {
692 ::tensorflow::_EventReply_default_instance_._instance.get_mutable()->tensor_ = const_cast< ::tensorflow::TensorProto*>(
693 ::tensorflow::TensorProto::internal_default_instance());
694}
695class EventReply::_Internal {
696 public:
697 static const ::tensorflow::TensorProto& tensor(const EventReply* msg);
698};
699
700const ::tensorflow::TensorProto&
701EventReply::_Internal::tensor(const EventReply* msg) {
702 return *msg->tensor_;
703}
704void EventReply::clear_tensor() {
705 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
706 delete tensor_;
707 }
708 tensor_ = nullptr;
709}
710EventReply::EventReply()
711 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
712 SharedCtor();
713 // @@protoc_insertion_point(constructor:tensorflow.EventReply)
714}
715EventReply::EventReply(const EventReply& from)
716 : ::PROTOBUF_NAMESPACE_ID::Message(),
717 _internal_metadata_(nullptr),
718 debug_op_state_changes_(from.debug_op_state_changes_) {
719 _internal_metadata_.MergeFrom(from._internal_metadata_);
720 if (from.has_tensor()) {
721 tensor_ = new ::tensorflow::TensorProto(*from.tensor_);
722 } else {
723 tensor_ = nullptr;
724 }
725 // @@protoc_insertion_point(copy_constructor:tensorflow.EventReply)
726}
727
728void EventReply::SharedCtor() {
729 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
730 tensor_ = nullptr;
731}
732
733EventReply::~EventReply() {
734 // @@protoc_insertion_point(destructor:tensorflow.EventReply)
735 SharedDtor();
736}
737
738void EventReply::SharedDtor() {
739 if (this != internal_default_instance()) delete tensor_;
740}
741
742void EventReply::SetCachedSize(int size) const {
743 _cached_size_.Set(size);
744}
745const EventReply& EventReply::default_instance() {
746 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EventReply_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
747 return *internal_default_instance();
748}
749
750
751void EventReply::Clear() {
752// @@protoc_insertion_point(message_clear_start:tensorflow.EventReply)
753 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
754 // Prevent compiler warnings about cached_has_bits being unused
755 (void) cached_has_bits;
756
757 debug_op_state_changes_.Clear();
758 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
759 delete tensor_;
760 }
761 tensor_ = nullptr;
762 _internal_metadata_.Clear();
763}
764
765#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
766const char* EventReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
767#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
768 while (!ctx->Done(&ptr)) {
769 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
770 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
771 CHK_(ptr);
772 switch (tag >> 3) {
773 // repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
774 case 1:
775 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
776 ptr -= 1;
777 do {
778 ptr += 1;
779 ptr = ctx->ParseMessage(add_debug_op_state_changes(), ptr);
780 CHK_(ptr);
781 if (!ctx->DataAvailable(ptr)) break;
782 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
783 } else goto handle_unusual;
784 continue;
785 // .tensorflow.TensorProto tensor = 2;
786 case 2:
787 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
788 ptr = ctx->ParseMessage(mutable_tensor(), ptr);
789 CHK_(ptr);
790 } else goto handle_unusual;
791 continue;
792 default: {
793 handle_unusual:
794 if ((tag & 7) == 4 || tag == 0) {
795 ctx->SetLastTag(tag);
796 goto success;
797 }
798 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
799 CHK_(ptr != nullptr);
800 continue;
801 }
802 } // switch
803 } // while
804success:
805 return ptr;
806failure:
807 ptr = nullptr;
808 goto success;
809#undef CHK_
810}
811#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
812bool EventReply::MergePartialFromCodedStream(
813 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
814#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
815 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
816 // @@protoc_insertion_point(parse_start:tensorflow.EventReply)
817 for (;;) {
818 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
819 tag = p.first;
820 if (!p.second) goto handle_unusual;
821 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
822 // repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
823 case 1: {
824 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
825 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
826 input, add_debug_op_state_changes()));
827 } else {
828 goto handle_unusual;
829 }
830 break;
831 }
832
833 // .tensorflow.TensorProto tensor = 2;
834 case 2: {
835 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
836 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
837 input, mutable_tensor()));
838 } else {
839 goto handle_unusual;
840 }
841 break;
842 }
843
844 default: {
845 handle_unusual:
846 if (tag == 0) {
847 goto success;
848 }
849 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
850 input, tag, _internal_metadata_.mutable_unknown_fields()));
851 break;
852 }
853 }
854 }
855success:
856 // @@protoc_insertion_point(parse_success:tensorflow.EventReply)
857 return true;
858failure:
859 // @@protoc_insertion_point(parse_failure:tensorflow.EventReply)
860 return false;
861#undef DO_
862}
863#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
864
865void EventReply::SerializeWithCachedSizes(
866 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
867 // @@protoc_insertion_point(serialize_start:tensorflow.EventReply)
868 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
869 (void) cached_has_bits;
870
871 // repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
872 for (unsigned int i = 0,
873 n = static_cast<unsigned int>(this->debug_op_state_changes_size()); i < n; i++) {
874 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
875 1,
876 this->debug_op_state_changes(static_cast<int>(i)),
877 output);
878 }
879
880 // .tensorflow.TensorProto tensor = 2;
881 if (this->has_tensor()) {
882 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
883 2, _Internal::tensor(this), output);
884 }
885
886 if (_internal_metadata_.have_unknown_fields()) {
887 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
888 _internal_metadata_.unknown_fields(), output);
889 }
890 // @@protoc_insertion_point(serialize_end:tensorflow.EventReply)
891}
892
893::PROTOBUF_NAMESPACE_ID::uint8* EventReply::InternalSerializeWithCachedSizesToArray(
894 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
895 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.EventReply)
896 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
897 (void) cached_has_bits;
898
899 // repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
900 for (unsigned int i = 0,
901 n = static_cast<unsigned int>(this->debug_op_state_changes_size()); i < n; i++) {
902 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
903 InternalWriteMessageToArray(
904 1, this->debug_op_state_changes(static_cast<int>(i)), target);
905 }
906
907 // .tensorflow.TensorProto tensor = 2;
908 if (this->has_tensor()) {
909 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
910 InternalWriteMessageToArray(
911 2, _Internal::tensor(this), target);
912 }
913
914 if (_internal_metadata_.have_unknown_fields()) {
915 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
916 _internal_metadata_.unknown_fields(), target);
917 }
918 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.EventReply)
919 return target;
920}
921
922size_t EventReply::ByteSizeLong() const {
923// @@protoc_insertion_point(message_byte_size_start:tensorflow.EventReply)
924 size_t total_size = 0;
925
926 if (_internal_metadata_.have_unknown_fields()) {
927 total_size +=
928 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
929 _internal_metadata_.unknown_fields());
930 }
931 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
932 // Prevent compiler warnings about cached_has_bits being unused
933 (void) cached_has_bits;
934
935 // repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
936 {
937 unsigned int count = static_cast<unsigned int>(this->debug_op_state_changes_size());
938 total_size += 1UL * count;
939 for (unsigned int i = 0; i < count; i++) {
940 total_size +=
941 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
942 this->debug_op_state_changes(static_cast<int>(i)));
943 }
944 }
945
946 // .tensorflow.TensorProto tensor = 2;
947 if (this->has_tensor()) {
948 total_size += 1 +
949 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
950 *tensor_);
951 }
952
953 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
954 SetCachedSize(cached_size);
955 return total_size;
956}
957
958void EventReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
959// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.EventReply)
960 GOOGLE_DCHECK_NE(&from, this);
961 const EventReply* source =
962 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EventReply>(
963 &from);
964 if (source == nullptr) {
965 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.EventReply)
966 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
967 } else {
968 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.EventReply)
969 MergeFrom(*source);
970 }
971}
972
973void EventReply::MergeFrom(const EventReply& from) {
974// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.EventReply)
975 GOOGLE_DCHECK_NE(&from, this);
976 _internal_metadata_.MergeFrom(from._internal_metadata_);
977 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
978 (void) cached_has_bits;
979
980 debug_op_state_changes_.MergeFrom(from.debug_op_state_changes_);
981 if (from.has_tensor()) {
982 mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor());
983 }
984}
985
986void EventReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
987// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.EventReply)
988 if (&from == this) return;
989 Clear();
990 MergeFrom(from);
991}
992
993void EventReply::CopyFrom(const EventReply& from) {
994// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.EventReply)
995 if (&from == this) return;
996 Clear();
997 MergeFrom(from);
998}
999
1000bool EventReply::IsInitialized() const {
1001 return true;
1002}
1003
1004void EventReply::InternalSwap(EventReply* other) {
1005 using std::swap;
1006 _internal_metadata_.Swap(&other->_internal_metadata_);
1007 CastToBase(&debug_op_state_changes_)->InternalSwap(CastToBase(&other->debug_op_state_changes_));
1008 swap(tensor_, other->tensor_);
1009}
1010
1011::PROTOBUF_NAMESPACE_ID::Metadata EventReply::GetMetadata() const {
1012 return GetMetadataStatic();
1013}
1014
1015
1016// ===================================================================
1017
1018CallTraceback_OriginIdToStringEntry_DoNotUse::CallTraceback_OriginIdToStringEntry_DoNotUse() {}
1019CallTraceback_OriginIdToStringEntry_DoNotUse::CallTraceback_OriginIdToStringEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1020 : SuperType(arena) {}
1021void CallTraceback_OriginIdToStringEntry_DoNotUse::MergeFrom(const CallTraceback_OriginIdToStringEntry_DoNotUse& other) {
1022 MergeFromInternal(other);
1023}
1024::PROTOBUF_NAMESPACE_ID::Metadata CallTraceback_OriginIdToStringEntry_DoNotUse::GetMetadata() const {
1025 return GetMetadataStatic();
1026}
1027void CallTraceback_OriginIdToStringEntry_DoNotUse::MergeFrom(
1028 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
1029 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
1030}
1031
1032
1033// ===================================================================
1034
1035void CallTraceback::InitAsDefaultInstance() {
1036 ::tensorflow::_CallTraceback_default_instance_._instance.get_mutable()->origin_stack_ = const_cast< ::tensorflow::tfprof::CodeDef*>(
1037 ::tensorflow::tfprof::CodeDef::internal_default_instance());
1038 ::tensorflow::_CallTraceback_default_instance_._instance.get_mutable()->graph_traceback_ = const_cast< ::tensorflow::tfprof::OpLogProto*>(
1039 ::tensorflow::tfprof::OpLogProto::internal_default_instance());
1040}
1041class CallTraceback::_Internal {
1042 public:
1043 static const ::tensorflow::tfprof::CodeDef& origin_stack(const CallTraceback* msg);
1044 static const ::tensorflow::tfprof::OpLogProto& graph_traceback(const CallTraceback* msg);
1045};
1046
1047const ::tensorflow::tfprof::CodeDef&
1048CallTraceback::_Internal::origin_stack(const CallTraceback* msg) {
1049 return *msg->origin_stack_;
1050}
1051const ::tensorflow::tfprof::OpLogProto&
1052CallTraceback::_Internal::graph_traceback(const CallTraceback* msg) {
1053 return *msg->graph_traceback_;
1054}
1055void CallTraceback::clear_origin_stack() {
1056 if (GetArenaNoVirtual() == nullptr && origin_stack_ != nullptr) {
1057 delete origin_stack_;
1058 }
1059 origin_stack_ = nullptr;
1060}
1061void CallTraceback::clear_graph_traceback() {
1062 if (GetArenaNoVirtual() == nullptr && graph_traceback_ != nullptr) {
1063 delete graph_traceback_;
1064 }
1065 graph_traceback_ = nullptr;
1066}
1067CallTraceback::CallTraceback()
1068 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1069 SharedCtor();
1070 // @@protoc_insertion_point(constructor:tensorflow.CallTraceback)
1071}
1072CallTraceback::CallTraceback(const CallTraceback& from)
1073 : ::PROTOBUF_NAMESPACE_ID::Message(),
1074 _internal_metadata_(nullptr) {
1075 _internal_metadata_.MergeFrom(from._internal_metadata_);
1076 origin_id_to_string_.MergeFrom(from.origin_id_to_string_);
1077 call_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1078 if (!from.call_key().empty()) {
1079 call_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.call_key_);
1080 }
1081 if (from.has_origin_stack()) {
1082 origin_stack_ = new ::tensorflow::tfprof::CodeDef(*from.origin_stack_);
1083 } else {
1084 origin_stack_ = nullptr;
1085 }
1086 if (from.has_graph_traceback()) {
1087 graph_traceback_ = new ::tensorflow::tfprof::OpLogProto(*from.graph_traceback_);
1088 } else {
1089 graph_traceback_ = nullptr;
1090 }
1091 ::memcpy(&graph_version_, &from.graph_version_,
1092 static_cast<size_t>(reinterpret_cast<char*>(&call_type_) -
1093 reinterpret_cast<char*>(&graph_version_)) + sizeof(call_type_));
1094 // @@protoc_insertion_point(copy_constructor:tensorflow.CallTraceback)
1095}
1096
1097void CallTraceback::SharedCtor() {
1098 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
1099 call_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1100 ::memset(&origin_stack_, 0, static_cast<size_t>(
1101 reinterpret_cast<char*>(&call_type_) -
1102 reinterpret_cast<char*>(&origin_stack_)) + sizeof(call_type_));
1103}
1104
1105CallTraceback::~CallTraceback() {
1106 // @@protoc_insertion_point(destructor:tensorflow.CallTraceback)
1107 SharedDtor();
1108}
1109
1110void CallTraceback::SharedDtor() {
1111 call_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1112 if (this != internal_default_instance()) delete origin_stack_;
1113 if (this != internal_default_instance()) delete graph_traceback_;
1114}
1115
1116void CallTraceback::SetCachedSize(int size) const {
1117 _cached_size_.Set(size);
1118}
1119const CallTraceback& CallTraceback::default_instance() {
1120 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CallTraceback_tensorflow_2fcore_2fdebug_2fdebug_5fservice_2eproto.base);
1121 return *internal_default_instance();
1122}
1123
1124
1125void CallTraceback::Clear() {
1126// @@protoc_insertion_point(message_clear_start:tensorflow.CallTraceback)
1127 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1128 // Prevent compiler warnings about cached_has_bits being unused
1129 (void) cached_has_bits;
1130
1131 origin_id_to_string_.Clear();
1132 call_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1133 if (GetArenaNoVirtual() == nullptr && origin_stack_ != nullptr) {
1134 delete origin_stack_;
1135 }
1136 origin_stack_ = nullptr;
1137 if (GetArenaNoVirtual() == nullptr && graph_traceback_ != nullptr) {
1138 delete graph_traceback_;
1139 }
1140 graph_traceback_ = nullptr;
1141 ::memset(&graph_version_, 0, static_cast<size_t>(
1142 reinterpret_cast<char*>(&call_type_) -
1143 reinterpret_cast<char*>(&graph_version_)) + sizeof(call_type_));
1144 _internal_metadata_.Clear();
1145}
1146
1147#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1148const char* CallTraceback::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1149#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1150 while (!ctx->Done(&ptr)) {
1151 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1152 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1153 CHK_(ptr);
1154 switch (tag >> 3) {
1155 // .tensorflow.CallTraceback.CallType call_type = 1;
1156 case 1:
1157 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
1158 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1159 CHK_(ptr);
1160 set_call_type(static_cast<::tensorflow::CallTraceback_CallType>(val));
1161 } else goto handle_unusual;
1162 continue;
1163 // string call_key = 2;
1164 case 2:
1165 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1166 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_call_key(), ptr, ctx, "tensorflow.CallTraceback.call_key");
1167 CHK_(ptr);
1168 } else goto handle_unusual;
1169 continue;
1170 // .tensorflow.tfprof.CodeDef origin_stack = 3;
1171 case 3:
1172 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1173 ptr = ctx->ParseMessage(mutable_origin_stack(), ptr);
1174 CHK_(ptr);
1175 } else goto handle_unusual;
1176 continue;
1177 // map<int64, string> origin_id_to_string = 4;
1178 case 4:
1179 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1180 ptr -= 1;
1181 do {
1182 ptr += 1;
1183 ptr = ctx->ParseMessage(&origin_id_to_string_, ptr);
1184 CHK_(ptr);
1185 if (!ctx->DataAvailable(ptr)) break;
1186 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
1187 } else goto handle_unusual;
1188 continue;
1189 // .tensorflow.tfprof.OpLogProto graph_traceback = 5;
1190 case 5:
1191 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1192 ptr = ctx->ParseMessage(mutable_graph_traceback(), ptr);
1193 CHK_(ptr);
1194 } else goto handle_unusual;
1195 continue;
1196 // int64 graph_version = 6;
1197 case 6:
1198 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
1199 graph_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1200 CHK_(ptr);
1201 } else goto handle_unusual;
1202 continue;
1203 default: {
1204 handle_unusual:
1205 if ((tag & 7) == 4 || tag == 0) {
1206 ctx->SetLastTag(tag);
1207 goto success;
1208 }
1209 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1210 CHK_(ptr != nullptr);
1211 continue;
1212 }
1213 } // switch
1214 } // while
1215success:
1216 return ptr;
1217failure:
1218 ptr = nullptr;
1219 goto success;
1220#undef CHK_
1221}
1222#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1223bool CallTraceback::MergePartialFromCodedStream(
1224 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1225#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1226 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1227 // @@protoc_insertion_point(parse_start:tensorflow.CallTraceback)
1228 for (;;) {
1229 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1230 tag = p.first;
1231 if (!p.second) goto handle_unusual;
1232 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1233 // .tensorflow.CallTraceback.CallType call_type = 1;
1234 case 1: {
1235 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
1236 int value = 0;
1237 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1238 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1239 input, &value)));
1240 set_call_type(static_cast< ::tensorflow::CallTraceback_CallType >(value));
1241 } else {
1242 goto handle_unusual;
1243 }
1244 break;
1245 }
1246
1247 // string call_key = 2;
1248 case 2: {
1249 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1250 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1251 input, this->mutable_call_key()));
1252 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1253 this->call_key().data(), static_cast<int>(this->call_key().length()),
1254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1255 "tensorflow.CallTraceback.call_key"));
1256 } else {
1257 goto handle_unusual;
1258 }
1259 break;
1260 }
1261
1262 // .tensorflow.tfprof.CodeDef origin_stack = 3;
1263 case 3: {
1264 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1265 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1266 input, mutable_origin_stack()));
1267 } else {
1268 goto handle_unusual;
1269 }
1270 break;
1271 }
1272
1273 // map<int64, string> origin_id_to_string = 4;
1274 case 4: {
1275 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1276 CallTraceback_OriginIdToStringEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
1277 CallTraceback_OriginIdToStringEntry_DoNotUse,
1278 ::PROTOBUF_NAMESPACE_ID::int64, std::string,
1279 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64,
1280 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1281 0 >,
1282 ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string > > parser(&origin_id_to_string_);
1283 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
1284 input, &parser));
1285 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1286 parser.value().data(), static_cast<int>(parser.value().length()),
1287 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1288 "tensorflow.CallTraceback.OriginIdToStringEntry.value"));
1289 } else {
1290 goto handle_unusual;
1291 }
1292 break;
1293 }
1294
1295 // .tensorflow.tfprof.OpLogProto graph_traceback = 5;
1296 case 5: {
1297 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
1298 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1299 input, mutable_graph_traceback()));
1300 } else {
1301 goto handle_unusual;
1302 }
1303 break;
1304 }
1305
1306 // int64 graph_version = 6;
1307 case 6: {
1308 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
1309
1310 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1311 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1312 input, &graph_version_)));
1313 } else {
1314 goto handle_unusual;
1315 }
1316 break;
1317 }
1318
1319 default: {
1320 handle_unusual:
1321 if (tag == 0) {
1322 goto success;
1323 }
1324 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1325 input, tag, _internal_metadata_.mutable_unknown_fields()));
1326 break;
1327 }
1328 }
1329 }
1330success:
1331 // @@protoc_insertion_point(parse_success:tensorflow.CallTraceback)
1332 return true;
1333failure:
1334 // @@protoc_insertion_point(parse_failure:tensorflow.CallTraceback)
1335 return false;
1336#undef DO_
1337}
1338#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1339
1340void CallTraceback::SerializeWithCachedSizes(
1341 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1342 // @@protoc_insertion_point(serialize_start:tensorflow.CallTraceback)
1343 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1344 (void) cached_has_bits;
1345
1346 // .tensorflow.CallTraceback.CallType call_type = 1;
1347 if (this->call_type() != 0) {
1348 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
1349 1, this->call_type(), output);
1350 }
1351
1352 // string call_key = 2;
1353 if (this->call_key().size() > 0) {
1354 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1355 this->call_key().data(), static_cast<int>(this->call_key().length()),
1356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1357 "tensorflow.CallTraceback.call_key");
1358 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1359 2, this->call_key(), output);
1360 }
1361
1362 // .tensorflow.tfprof.CodeDef origin_stack = 3;
1363 if (this->has_origin_stack()) {
1364 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1365 3, _Internal::origin_stack(this), output);
1366 }
1367
1368 // map<int64, string> origin_id_to_string = 4;
1369 if (!this->origin_id_to_string().empty()) {
1370 typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_pointer
1371 ConstPtr;
1372 typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
1373 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
1374 struct Utf8Check {
1375 static void Check(ConstPtr p) {
1376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1377 p->second.data(), static_cast<int>(p->second.length()),
1378 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1379 "tensorflow.CallTraceback.OriginIdToStringEntry.value");
1380 }
1381 };
1382
1383 if (output->IsSerializationDeterministic() &&
1384 this->origin_id_to_string().size() > 1) {
1385 ::std::unique_ptr<SortItem[]> items(
1386 new SortItem[this->origin_id_to_string().size()]);
1387 typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::size_type size_type;
1388 size_type n = 0;
1389 for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
1390 it = this->origin_id_to_string().begin();
1391 it != this->origin_id_to_string().end(); ++it, ++n) {
1392 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1393 }
1394 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1395 for (size_type i = 0; i < n; i++) {
1396 CallTraceback_OriginIdToStringEntry_DoNotUse::Funcs::SerializeToCodedStream(4, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, output);
1397 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)].second));
1398 }
1399 } else {
1400 for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
1401 it = this->origin_id_to_string().begin();
1402 it != this->origin_id_to_string().end(); ++it) {
1403 CallTraceback_OriginIdToStringEntry_DoNotUse::Funcs::SerializeToCodedStream(4, it->first, it->second, output);
1404 Utf8Check::Check(&(*it));
1405 }
1406 }
1407 }
1408
1409 // .tensorflow.tfprof.OpLogProto graph_traceback = 5;
1410 if (this->has_graph_traceback()) {
1411 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1412 5, _Internal::graph_traceback(this), output);
1413 }
1414
1415 // int64 graph_version = 6;
1416 if (this->graph_version() != 0) {
1417 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->graph_version(), output);
1418 }
1419
1420 if (_internal_metadata_.have_unknown_fields()) {
1421 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1422 _internal_metadata_.unknown_fields(), output);
1423 }
1424 // @@protoc_insertion_point(serialize_end:tensorflow.CallTraceback)
1425}
1426
1427::PROTOBUF_NAMESPACE_ID::uint8* CallTraceback::InternalSerializeWithCachedSizesToArray(
1428 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1429 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CallTraceback)
1430 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1431 (void) cached_has_bits;
1432
1433 // .tensorflow.CallTraceback.CallType call_type = 1;
1434 if (this->call_type() != 0) {
1435 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1436 1, this->call_type(), target);
1437 }
1438
1439 // string call_key = 2;
1440 if (this->call_key().size() > 0) {
1441 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1442 this->call_key().data(), static_cast<int>(this->call_key().length()),
1443 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1444 "tensorflow.CallTraceback.call_key");
1445 target =
1446 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1447 2, this->call_key(), target);
1448 }
1449
1450 // .tensorflow.tfprof.CodeDef origin_stack = 3;
1451 if (this->has_origin_stack()) {
1452 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1453 InternalWriteMessageToArray(
1454 3, _Internal::origin_stack(this), target);
1455 }
1456
1457 // map<int64, string> origin_id_to_string = 4;
1458 if (!this->origin_id_to_string().empty()) {
1459 typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_pointer
1460 ConstPtr;
1461 typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int64, ConstPtr > SortItem;
1462 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less;
1463 struct Utf8Check {
1464 static void Check(ConstPtr p) {
1465 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1466 p->second.data(), static_cast<int>(p->second.length()),
1467 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1468 "tensorflow.CallTraceback.OriginIdToStringEntry.value");
1469 }
1470 };
1471
1472 if (false &&
1473 this->origin_id_to_string().size() > 1) {
1474 ::std::unique_ptr<SortItem[]> items(
1475 new SortItem[this->origin_id_to_string().size()]);
1476 typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::size_type size_type;
1477 size_type n = 0;
1478 for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
1479 it = this->origin_id_to_string().begin();
1480 it != this->origin_id_to_string().end(); ++it, ++n) {
1481 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1482 }
1483 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1484 for (size_type i = 0; i < n; i++) {
1485 target = CallTraceback_OriginIdToStringEntry_DoNotUse::Funcs::SerializeToArray(4, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target);
1486 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)].second));
1487 }
1488 } else {
1489 for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
1490 it = this->origin_id_to_string().begin();
1491 it != this->origin_id_to_string().end(); ++it) {
1492 target = CallTraceback_OriginIdToStringEntry_DoNotUse::Funcs::SerializeToArray(4, it->first, it->second, target);
1493 Utf8Check::Check(&(*it));
1494 }
1495 }
1496 }
1497
1498 // .tensorflow.tfprof.OpLogProto graph_traceback = 5;
1499 if (this->has_graph_traceback()) {
1500 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1501 InternalWriteMessageToArray(
1502 5, _Internal::graph_traceback(this), target);
1503 }
1504
1505 // int64 graph_version = 6;
1506 if (this->graph_version() != 0) {
1507 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->graph_version(), target);
1508 }
1509
1510 if (_internal_metadata_.have_unknown_fields()) {
1511 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1512 _internal_metadata_.unknown_fields(), target);
1513 }
1514 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CallTraceback)
1515 return target;
1516}
1517
1518size_t CallTraceback::ByteSizeLong() const {
1519// @@protoc_insertion_point(message_byte_size_start:tensorflow.CallTraceback)
1520 size_t total_size = 0;
1521
1522 if (_internal_metadata_.have_unknown_fields()) {
1523 total_size +=
1524 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1525 _internal_metadata_.unknown_fields());
1526 }
1527 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1528 // Prevent compiler warnings about cached_has_bits being unused
1529 (void) cached_has_bits;
1530
1531 // map<int64, string> origin_id_to_string = 4;
1532 total_size += 1 *
1533 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->origin_id_to_string_size());
1534 for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, std::string >::const_iterator
1535 it = this->origin_id_to_string().begin();
1536 it != this->origin_id_to_string().end(); ++it) {
1537 total_size += CallTraceback_OriginIdToStringEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1538 }
1539
1540 // string call_key = 2;
1541 if (this->call_key().size() > 0) {
1542 total_size += 1 +
1543 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1544 this->call_key());
1545 }
1546
1547 // .tensorflow.tfprof.CodeDef origin_stack = 3;
1548 if (this->has_origin_stack()) {
1549 total_size += 1 +
1550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1551 *origin_stack_);
1552 }
1553
1554 // .tensorflow.tfprof.OpLogProto graph_traceback = 5;
1555 if (this->has_graph_traceback()) {
1556 total_size += 1 +
1557 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1558 *graph_traceback_);
1559 }
1560
1561 // int64 graph_version = 6;
1562 if (this->graph_version() != 0) {
1563 total_size += 1 +
1564 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1565 this->graph_version());
1566 }
1567
1568 // .tensorflow.CallTraceback.CallType call_type = 1;
1569 if (this->call_type() != 0) {
1570 total_size += 1 +
1571 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->call_type());
1572 }
1573
1574 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1575 SetCachedSize(cached_size);
1576 return total_size;
1577}
1578
1579void CallTraceback::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1580// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CallTraceback)
1581 GOOGLE_DCHECK_NE(&from, this);
1582 const CallTraceback* source =
1583 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CallTraceback>(
1584 &from);
1585 if (source == nullptr) {
1586 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CallTraceback)
1587 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1588 } else {
1589 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CallTraceback)
1590 MergeFrom(*source);
1591 }
1592}
1593
1594void CallTraceback::MergeFrom(const CallTraceback& from) {
1595// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CallTraceback)
1596 GOOGLE_DCHECK_NE(&from, this);
1597 _internal_metadata_.MergeFrom(from._internal_metadata_);
1598 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1599 (void) cached_has_bits;
1600
1601 origin_id_to_string_.MergeFrom(from.origin_id_to_string_);
1602 if (from.call_key().size() > 0) {
1603
1604 call_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.call_key_);
1605 }
1606 if (from.has_origin_stack()) {
1607 mutable_origin_stack()->::tensorflow::tfprof::CodeDef::MergeFrom(from.origin_stack());
1608 }
1609 if (from.has_graph_traceback()) {
1610 mutable_graph_traceback()->::tensorflow::tfprof::OpLogProto::MergeFrom(from.graph_traceback());
1611 }
1612 if (from.graph_version() != 0) {
1613 set_graph_version(from.graph_version());
1614 }
1615 if (from.call_type() != 0) {
1616 set_call_type(from.call_type());
1617 }
1618}
1619
1620void CallTraceback::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1621// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CallTraceback)
1622 if (&from == this) return;
1623 Clear();
1624 MergeFrom(from);
1625}
1626
1627void CallTraceback::CopyFrom(const CallTraceback& from) {
1628// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CallTraceback)
1629 if (&from == this) return;
1630 Clear();
1631 MergeFrom(from);
1632}
1633
1634bool CallTraceback::IsInitialized() const {
1635 return true;
1636}
1637
1638void CallTraceback::InternalSwap(CallTraceback* other) {
1639 using std::swap;
1640 _internal_metadata_.Swap(&other->_internal_metadata_);
1641 origin_id_to_string_.Swap(&other->origin_id_to_string_);
1642 call_key_.Swap(&other->call_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1643 GetArenaNoVirtual());
1644 swap(origin_stack_, other->origin_stack_);
1645 swap(graph_traceback_, other->graph_traceback_);
1646 swap(graph_version_, other->graph_version_);
1647 swap(call_type_, other->call_type_);
1648}
1649
1650::PROTOBUF_NAMESPACE_ID::Metadata CallTraceback::GetMetadata() const {
1651 return GetMetadataStatic();
1652}
1653
1654
1655// @@protoc_insertion_point(namespace_scope)
1656} // namespace tensorflow
1657PROTOBUF_NAMESPACE_OPEN
1658template<> PROTOBUF_NOINLINE ::tensorflow::EventReply_DebugOpStateChange* Arena::CreateMaybeMessage< ::tensorflow::EventReply_DebugOpStateChange >(Arena* arena) {
1659 return Arena::CreateInternal< ::tensorflow::EventReply_DebugOpStateChange >(arena);
1660}
1661template<> PROTOBUF_NOINLINE ::tensorflow::EventReply* Arena::CreateMaybeMessage< ::tensorflow::EventReply >(Arena* arena) {
1662 return Arena::CreateInternal< ::tensorflow::EventReply >(arena);
1663}
1664template<> PROTOBUF_NOINLINE ::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse >(Arena* arena) {
1665 return Arena::CreateInternal< ::tensorflow::CallTraceback_OriginIdToStringEntry_DoNotUse >(arena);
1666}
1667template<> PROTOBUF_NOINLINE ::tensorflow::CallTraceback* Arena::CreateMaybeMessage< ::tensorflow::CallTraceback >(Arena* arena) {
1668 return Arena::CreateInternal< ::tensorflow::CallTraceback >(arena);
1669}
1670PROTOBUF_NAMESPACE_CLOSE
1671
1672// @@protoc_insertion_point(global_scope)
1673#include <google/protobuf/port_undef.inc>
1674