1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/debug.proto |
3 | |
4 | #include "tensorflow/core/protobuf/debug.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> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto; |
20 | namespace tensorflow { |
21 | class DebugTensorWatchDefaultTypeInternal { |
22 | public: |
23 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebugTensorWatch> _instance; |
24 | } _DebugTensorWatch_default_instance_; |
25 | class DebugOptionsDefaultTypeInternal { |
26 | public: |
27 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebugOptions> _instance; |
28 | } _DebugOptions_default_instance_; |
29 | class DebuggedSourceFileDefaultTypeInternal { |
30 | public: |
31 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebuggedSourceFile> _instance; |
32 | } _DebuggedSourceFile_default_instance_; |
33 | class DebuggedSourceFilesDefaultTypeInternal { |
34 | public: |
35 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DebuggedSourceFiles> _instance; |
36 | } _DebuggedSourceFiles_default_instance_; |
37 | } // namespace tensorflow |
38 | static void InitDefaultsscc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto() { |
39 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
40 | |
41 | { |
42 | void* ptr = &::tensorflow::_DebugOptions_default_instance_; |
43 | new (ptr) ::tensorflow::DebugOptions(); |
44 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
45 | } |
46 | ::tensorflow::DebugOptions::InitAsDefaultInstance(); |
47 | } |
48 | |
49 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = |
50 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto}, { |
51 | &scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base,}}; |
52 | |
53 | static void InitDefaultsscc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto() { |
54 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
55 | |
56 | { |
57 | void* ptr = &::tensorflow::_DebugTensorWatch_default_instance_; |
58 | new (ptr) ::tensorflow::DebugTensorWatch(); |
59 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
60 | } |
61 | ::tensorflow::DebugTensorWatch::InitAsDefaultInstance(); |
62 | } |
63 | |
64 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = |
65 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto}, {}}; |
66 | |
67 | static void InitDefaultsscc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto() { |
68 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
69 | |
70 | { |
71 | void* ptr = &::tensorflow::_DebuggedSourceFile_default_instance_; |
72 | new (ptr) ::tensorflow::DebuggedSourceFile(); |
73 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
74 | } |
75 | ::tensorflow::DebuggedSourceFile::InitAsDefaultInstance(); |
76 | } |
77 | |
78 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = |
79 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto}, {}}; |
80 | |
81 | static void InitDefaultsscc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto() { |
82 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
83 | |
84 | { |
85 | void* ptr = &::tensorflow::_DebuggedSourceFiles_default_instance_; |
86 | new (ptr) ::tensorflow::DebuggedSourceFiles(); |
87 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
88 | } |
89 | ::tensorflow::DebuggedSourceFiles::InitAsDefaultInstance(); |
90 | } |
91 | |
92 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = |
93 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto}, { |
94 | &scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base,}}; |
95 | |
96 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto[4]; |
97 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = nullptr; |
98 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = nullptr; |
99 | |
100 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
101 | ~0u, // no _has_bits_ |
102 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, _internal_metadata_), |
103 | ~0u, // no _extensions_ |
104 | ~0u, // no _oneof_case_ |
105 | ~0u, // no _weak_field_map_ |
106 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, node_name_), |
107 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, output_slot_), |
108 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, debug_ops_), |
109 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, debug_urls_), |
110 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugTensorWatch, tolerate_debug_op_creation_failures_), |
111 | ~0u, // no _has_bits_ |
112 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugOptions, _internal_metadata_), |
113 | ~0u, // no _extensions_ |
114 | ~0u, // no _oneof_case_ |
115 | ~0u, // no _weak_field_map_ |
116 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugOptions, debug_tensor_watch_opts_), |
117 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugOptions, global_step_), |
118 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebugOptions, reset_disk_byte_usage_), |
119 | ~0u, // no _has_bits_ |
120 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, _internal_metadata_), |
121 | ~0u, // no _extensions_ |
122 | ~0u, // no _oneof_case_ |
123 | ~0u, // no _weak_field_map_ |
124 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, host_), |
125 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, file_path_), |
126 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, last_modified_), |
127 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, bytes_), |
128 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFile, lines_), |
129 | ~0u, // no _has_bits_ |
130 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFiles, _internal_metadata_), |
131 | ~0u, // no _extensions_ |
132 | ~0u, // no _oneof_case_ |
133 | ~0u, // no _weak_field_map_ |
134 | PROTOBUF_FIELD_OFFSET(::tensorflow::DebuggedSourceFiles, source_files_), |
135 | }; |
136 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
137 | { 0, -1, sizeof(::tensorflow::DebugTensorWatch)}, |
138 | { 10, -1, sizeof(::tensorflow::DebugOptions)}, |
139 | { 18, -1, sizeof(::tensorflow::DebuggedSourceFile)}, |
140 | { 28, -1, sizeof(::tensorflow::DebuggedSourceFiles)}, |
141 | }; |
142 | |
143 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
144 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebugTensorWatch_default_instance_), |
145 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebugOptions_default_instance_), |
146 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebuggedSourceFile_default_instance_), |
147 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DebuggedSourceFiles_default_instance_), |
148 | }; |
149 | |
150 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
151 | "\n$tensorflow/core/protobuf/debug.proto\022\n" |
152 | "tensorflow\"\216\001\n\020DebugTensorWatch\022\021\n\tnode_" |
153 | "name\030\001 \001(\t\022\023\n\013output_slot\030\002 \001(\005\022\021\n\tdebug" |
154 | "_ops\030\003 \003(\t\022\022\n\ndebug_urls\030\004 \003(\t\022+\n#tolera" |
155 | "te_debug_op_creation_failures\030\005 \001(\010\"\201\001\n\014" |
156 | "DebugOptions\022=\n\027debug_tensor_watch_opts\030" |
157 | "\004 \003(\0132\034.tensorflow.DebugTensorWatch\022\023\n\013g" |
158 | "lobal_step\030\n \001(\003\022\035\n\025reset_disk_byte_usag" |
159 | "e\030\013 \001(\010\"j\n\022DebuggedSourceFile\022\014\n\004host\030\001 " |
160 | "\001(\t\022\021\n\tfile_path\030\002 \001(\t\022\025\n\rlast_modified\030" |
161 | "\003 \001(\003\022\r\n\005bytes\030\004 \001(\003\022\r\n\005lines\030\005 \003(\t\"K\n\023D" |
162 | "ebuggedSourceFiles\0224\n\014source_files\030\001 \003(\013" |
163 | "2\036.tensorflow.DebuggedSourceFileB\203\001\n\030org" |
164 | ".tensorflow.frameworkB\013DebugProtosP\001ZUgi" |
165 | "thub.com/tensorflow/tensorflow/tensorflo" |
166 | "w/go/core/protobuf/for_core_protos_go_pr" |
167 | "oto\370\001\001b\006proto3" |
168 | ; |
169 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_deps[1] = { |
170 | }; |
171 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_sccs[4] = { |
172 | &scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base, |
173 | &scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base, |
174 | &scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base, |
175 | &scc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base, |
176 | }; |
177 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_once; |
178 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_initialized = false; |
179 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = { |
180 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto, "tensorflow/core/protobuf/debug.proto" , 654, |
181 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto_deps, 4, 0, |
182 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto::offsets, |
183 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto, 4, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto, |
184 | }; |
185 | |
186 | // Force running AddDescriptors() at dynamic initialization time. |
187 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto), true); |
188 | namespace tensorflow { |
189 | |
190 | // =================================================================== |
191 | |
192 | void DebugTensorWatch::InitAsDefaultInstance() { |
193 | } |
194 | class DebugTensorWatch::_Internal { |
195 | public: |
196 | }; |
197 | |
198 | DebugTensorWatch::DebugTensorWatch() |
199 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
200 | SharedCtor(); |
201 | // @@protoc_insertion_point(constructor:tensorflow.DebugTensorWatch) |
202 | } |
203 | DebugTensorWatch::DebugTensorWatch(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
204 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
205 | _internal_metadata_(arena), |
206 | debug_ops_(arena), |
207 | debug_urls_(arena) { |
208 | SharedCtor(); |
209 | RegisterArenaDtor(arena); |
210 | // @@protoc_insertion_point(arena_constructor:tensorflow.DebugTensorWatch) |
211 | } |
212 | DebugTensorWatch::DebugTensorWatch(const DebugTensorWatch& from) |
213 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
214 | _internal_metadata_(nullptr), |
215 | debug_ops_(from.debug_ops_), |
216 | debug_urls_(from.debug_urls_) { |
217 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
218 | node_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
219 | if (!from.node_name().empty()) { |
220 | node_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.node_name(), |
221 | GetArenaNoVirtual()); |
222 | } |
223 | ::memcpy(&output_slot_, &from.output_slot_, |
224 | static_cast<size_t>(reinterpret_cast<char*>(&tolerate_debug_op_creation_failures_) - |
225 | reinterpret_cast<char*>(&output_slot_)) + sizeof(tolerate_debug_op_creation_failures_)); |
226 | // @@protoc_insertion_point(copy_constructor:tensorflow.DebugTensorWatch) |
227 | } |
228 | |
229 | void DebugTensorWatch::SharedCtor() { |
230 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
231 | node_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
232 | ::memset(&output_slot_, 0, static_cast<size_t>( |
233 | reinterpret_cast<char*>(&tolerate_debug_op_creation_failures_) - |
234 | reinterpret_cast<char*>(&output_slot_)) + sizeof(tolerate_debug_op_creation_failures_)); |
235 | } |
236 | |
237 | DebugTensorWatch::~DebugTensorWatch() { |
238 | // @@protoc_insertion_point(destructor:tensorflow.DebugTensorWatch) |
239 | SharedDtor(); |
240 | } |
241 | |
242 | void DebugTensorWatch::SharedDtor() { |
243 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
244 | node_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
245 | } |
246 | |
247 | void DebugTensorWatch::ArenaDtor(void* object) { |
248 | DebugTensorWatch* _this = reinterpret_cast< DebugTensorWatch* >(object); |
249 | (void)_this; |
250 | } |
251 | void DebugTensorWatch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
252 | } |
253 | void DebugTensorWatch::SetCachedSize(int size) const { |
254 | _cached_size_.Set(size); |
255 | } |
256 | const DebugTensorWatch& DebugTensorWatch::default_instance() { |
257 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebugTensorWatch_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
258 | return *internal_default_instance(); |
259 | } |
260 | |
261 | |
262 | void DebugTensorWatch::Clear() { |
263 | // @@protoc_insertion_point(message_clear_start:tensorflow.DebugTensorWatch) |
264 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
265 | // Prevent compiler warnings about cached_has_bits being unused |
266 | (void) cached_has_bits; |
267 | |
268 | debug_ops_.Clear(); |
269 | debug_urls_.Clear(); |
270 | node_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
271 | ::memset(&output_slot_, 0, static_cast<size_t>( |
272 | reinterpret_cast<char*>(&tolerate_debug_op_creation_failures_) - |
273 | reinterpret_cast<char*>(&output_slot_)) + sizeof(tolerate_debug_op_creation_failures_)); |
274 | _internal_metadata_.Clear(); |
275 | } |
276 | |
277 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
278 | const char* DebugTensorWatch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
279 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
280 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
281 | while (!ctx->Done(&ptr)) { |
282 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
283 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
284 | CHK_(ptr); |
285 | switch (tag >> 3) { |
286 | // string node_name = 1; |
287 | case 1: |
288 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
289 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_node_name(), ptr, ctx, "tensorflow.DebugTensorWatch.node_name" ); |
290 | CHK_(ptr); |
291 | } else goto handle_unusual; |
292 | continue; |
293 | // int32 output_slot = 2; |
294 | case 2: |
295 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
296 | output_slot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
297 | CHK_(ptr); |
298 | } else goto handle_unusual; |
299 | continue; |
300 | // repeated string debug_ops = 3; |
301 | case 3: |
302 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
303 | ptr -= 1; |
304 | do { |
305 | ptr += 1; |
306 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_debug_ops(), ptr, ctx, "tensorflow.DebugTensorWatch.debug_ops" ); |
307 | CHK_(ptr); |
308 | if (!ctx->DataAvailable(ptr)) break; |
309 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); |
310 | } else goto handle_unusual; |
311 | continue; |
312 | // repeated string debug_urls = 4; |
313 | case 4: |
314 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
315 | ptr -= 1; |
316 | do { |
317 | ptr += 1; |
318 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_debug_urls(), ptr, ctx, "tensorflow.DebugTensorWatch.debug_urls" ); |
319 | CHK_(ptr); |
320 | if (!ctx->DataAvailable(ptr)) break; |
321 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
322 | } else goto handle_unusual; |
323 | continue; |
324 | // bool tolerate_debug_op_creation_failures = 5; |
325 | case 5: |
326 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
327 | tolerate_debug_op_creation_failures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
328 | CHK_(ptr); |
329 | } else goto handle_unusual; |
330 | continue; |
331 | default: { |
332 | handle_unusual: |
333 | if ((tag & 7) == 4 || tag == 0) { |
334 | ctx->SetLastTag(tag); |
335 | goto success; |
336 | } |
337 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
338 | CHK_(ptr != nullptr); |
339 | continue; |
340 | } |
341 | } // switch |
342 | } // while |
343 | success: |
344 | return ptr; |
345 | failure: |
346 | ptr = nullptr; |
347 | goto success; |
348 | #undef CHK_ |
349 | } |
350 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
351 | bool DebugTensorWatch::MergePartialFromCodedStream( |
352 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
353 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
354 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
355 | // @@protoc_insertion_point(parse_start:tensorflow.DebugTensorWatch) |
356 | for (;;) { |
357 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
358 | tag = p.first; |
359 | if (!p.second) goto handle_unusual; |
360 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
361 | // string node_name = 1; |
362 | case 1: { |
363 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
364 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
365 | input, this->mutable_node_name())); |
366 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
367 | this->node_name().data(), static_cast<int>(this->node_name().length()), |
368 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
369 | "tensorflow.DebugTensorWatch.node_name" )); |
370 | } else { |
371 | goto handle_unusual; |
372 | } |
373 | break; |
374 | } |
375 | |
376 | // int32 output_slot = 2; |
377 | case 2: { |
378 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
379 | |
380 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
381 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
382 | input, &output_slot_))); |
383 | } else { |
384 | goto handle_unusual; |
385 | } |
386 | break; |
387 | } |
388 | |
389 | // repeated string debug_ops = 3; |
390 | case 3: { |
391 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
392 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
393 | input, this->add_debug_ops())); |
394 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
395 | this->debug_ops(this->debug_ops_size() - 1).data(), |
396 | static_cast<int>(this->debug_ops(this->debug_ops_size() - 1).length()), |
397 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
398 | "tensorflow.DebugTensorWatch.debug_ops" )); |
399 | } else { |
400 | goto handle_unusual; |
401 | } |
402 | break; |
403 | } |
404 | |
405 | // repeated string debug_urls = 4; |
406 | case 4: { |
407 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
408 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
409 | input, this->add_debug_urls())); |
410 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
411 | this->debug_urls(this->debug_urls_size() - 1).data(), |
412 | static_cast<int>(this->debug_urls(this->debug_urls_size() - 1).length()), |
413 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
414 | "tensorflow.DebugTensorWatch.debug_urls" )); |
415 | } else { |
416 | goto handle_unusual; |
417 | } |
418 | break; |
419 | } |
420 | |
421 | // bool tolerate_debug_op_creation_failures = 5; |
422 | case 5: { |
423 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { |
424 | |
425 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
426 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
427 | input, &tolerate_debug_op_creation_failures_))); |
428 | } else { |
429 | goto handle_unusual; |
430 | } |
431 | break; |
432 | } |
433 | |
434 | default: { |
435 | handle_unusual: |
436 | if (tag == 0) { |
437 | goto success; |
438 | } |
439 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
440 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
441 | break; |
442 | } |
443 | } |
444 | } |
445 | success: |
446 | // @@protoc_insertion_point(parse_success:tensorflow.DebugTensorWatch) |
447 | return true; |
448 | failure: |
449 | // @@protoc_insertion_point(parse_failure:tensorflow.DebugTensorWatch) |
450 | return false; |
451 | #undef DO_ |
452 | } |
453 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
454 | |
455 | void DebugTensorWatch::SerializeWithCachedSizes( |
456 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
457 | // @@protoc_insertion_point(serialize_start:tensorflow.DebugTensorWatch) |
458 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
459 | (void) cached_has_bits; |
460 | |
461 | // string node_name = 1; |
462 | if (this->node_name().size() > 0) { |
463 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
464 | this->node_name().data(), static_cast<int>(this->node_name().length()), |
465 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
466 | "tensorflow.DebugTensorWatch.node_name" ); |
467 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
468 | 1, this->node_name(), output); |
469 | } |
470 | |
471 | // int32 output_slot = 2; |
472 | if (this->output_slot() != 0) { |
473 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->output_slot(), output); |
474 | } |
475 | |
476 | // repeated string debug_ops = 3; |
477 | for (int i = 0, n = this->debug_ops_size(); i < n; i++) { |
478 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
479 | this->debug_ops(i).data(), static_cast<int>(this->debug_ops(i).length()), |
480 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
481 | "tensorflow.DebugTensorWatch.debug_ops" ); |
482 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
483 | 3, this->debug_ops(i), output); |
484 | } |
485 | |
486 | // repeated string debug_urls = 4; |
487 | for (int i = 0, n = this->debug_urls_size(); i < n; i++) { |
488 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
489 | this->debug_urls(i).data(), static_cast<int>(this->debug_urls(i).length()), |
490 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
491 | "tensorflow.DebugTensorWatch.debug_urls" ); |
492 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
493 | 4, this->debug_urls(i), output); |
494 | } |
495 | |
496 | // bool tolerate_debug_op_creation_failures = 5; |
497 | if (this->tolerate_debug_op_creation_failures() != 0) { |
498 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->tolerate_debug_op_creation_failures(), output); |
499 | } |
500 | |
501 | if (_internal_metadata_.have_unknown_fields()) { |
502 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
503 | _internal_metadata_.unknown_fields(), output); |
504 | } |
505 | // @@protoc_insertion_point(serialize_end:tensorflow.DebugTensorWatch) |
506 | } |
507 | |
508 | ::PROTOBUF_NAMESPACE_ID::uint8* DebugTensorWatch::InternalSerializeWithCachedSizesToArray( |
509 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
510 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebugTensorWatch) |
511 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
512 | (void) cached_has_bits; |
513 | |
514 | // string node_name = 1; |
515 | if (this->node_name().size() > 0) { |
516 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
517 | this->node_name().data(), static_cast<int>(this->node_name().length()), |
518 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
519 | "tensorflow.DebugTensorWatch.node_name" ); |
520 | target = |
521 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
522 | 1, this->node_name(), target); |
523 | } |
524 | |
525 | // int32 output_slot = 2; |
526 | if (this->output_slot() != 0) { |
527 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->output_slot(), target); |
528 | } |
529 | |
530 | // repeated string debug_ops = 3; |
531 | for (int i = 0, n = this->debug_ops_size(); i < n; i++) { |
532 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
533 | this->debug_ops(i).data(), static_cast<int>(this->debug_ops(i).length()), |
534 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
535 | "tensorflow.DebugTensorWatch.debug_ops" ); |
536 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
537 | WriteStringToArray(3, this->debug_ops(i), target); |
538 | } |
539 | |
540 | // repeated string debug_urls = 4; |
541 | for (int i = 0, n = this->debug_urls_size(); i < n; i++) { |
542 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
543 | this->debug_urls(i).data(), static_cast<int>(this->debug_urls(i).length()), |
544 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
545 | "tensorflow.DebugTensorWatch.debug_urls" ); |
546 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
547 | WriteStringToArray(4, this->debug_urls(i), target); |
548 | } |
549 | |
550 | // bool tolerate_debug_op_creation_failures = 5; |
551 | if (this->tolerate_debug_op_creation_failures() != 0) { |
552 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->tolerate_debug_op_creation_failures(), target); |
553 | } |
554 | |
555 | if (_internal_metadata_.have_unknown_fields()) { |
556 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
557 | _internal_metadata_.unknown_fields(), target); |
558 | } |
559 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebugTensorWatch) |
560 | return target; |
561 | } |
562 | |
563 | size_t DebugTensorWatch::ByteSizeLong() const { |
564 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DebugTensorWatch) |
565 | size_t total_size = 0; |
566 | |
567 | if (_internal_metadata_.have_unknown_fields()) { |
568 | total_size += |
569 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
570 | _internal_metadata_.unknown_fields()); |
571 | } |
572 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
573 | // Prevent compiler warnings about cached_has_bits being unused |
574 | (void) cached_has_bits; |
575 | |
576 | // repeated string debug_ops = 3; |
577 | total_size += 1 * |
578 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->debug_ops_size()); |
579 | for (int i = 0, n = this->debug_ops_size(); i < n; i++) { |
580 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
581 | this->debug_ops(i)); |
582 | } |
583 | |
584 | // repeated string debug_urls = 4; |
585 | total_size += 1 * |
586 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->debug_urls_size()); |
587 | for (int i = 0, n = this->debug_urls_size(); i < n; i++) { |
588 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
589 | this->debug_urls(i)); |
590 | } |
591 | |
592 | // string node_name = 1; |
593 | if (this->node_name().size() > 0) { |
594 | total_size += 1 + |
595 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
596 | this->node_name()); |
597 | } |
598 | |
599 | // int32 output_slot = 2; |
600 | if (this->output_slot() != 0) { |
601 | total_size += 1 + |
602 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
603 | this->output_slot()); |
604 | } |
605 | |
606 | // bool tolerate_debug_op_creation_failures = 5; |
607 | if (this->tolerate_debug_op_creation_failures() != 0) { |
608 | total_size += 1 + 1; |
609 | } |
610 | |
611 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
612 | SetCachedSize(cached_size); |
613 | return total_size; |
614 | } |
615 | |
616 | void DebugTensorWatch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
617 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebugTensorWatch) |
618 | GOOGLE_DCHECK_NE(&from, this); |
619 | const DebugTensorWatch* source = |
620 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebugTensorWatch>( |
621 | &from); |
622 | if (source == nullptr) { |
623 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebugTensorWatch) |
624 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
625 | } else { |
626 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebugTensorWatch) |
627 | MergeFrom(*source); |
628 | } |
629 | } |
630 | |
631 | void DebugTensorWatch::MergeFrom(const DebugTensorWatch& from) { |
632 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebugTensorWatch) |
633 | GOOGLE_DCHECK_NE(&from, this); |
634 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
635 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
636 | (void) cached_has_bits; |
637 | |
638 | debug_ops_.MergeFrom(from.debug_ops_); |
639 | debug_urls_.MergeFrom(from.debug_urls_); |
640 | if (from.node_name().size() > 0) { |
641 | set_node_name(from.node_name()); |
642 | } |
643 | if (from.output_slot() != 0) { |
644 | set_output_slot(from.output_slot()); |
645 | } |
646 | if (from.tolerate_debug_op_creation_failures() != 0) { |
647 | set_tolerate_debug_op_creation_failures(from.tolerate_debug_op_creation_failures()); |
648 | } |
649 | } |
650 | |
651 | void DebugTensorWatch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
652 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebugTensorWatch) |
653 | if (&from == this) return; |
654 | Clear(); |
655 | MergeFrom(from); |
656 | } |
657 | |
658 | void DebugTensorWatch::CopyFrom(const DebugTensorWatch& from) { |
659 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebugTensorWatch) |
660 | if (&from == this) return; |
661 | Clear(); |
662 | MergeFrom(from); |
663 | } |
664 | |
665 | bool DebugTensorWatch::IsInitialized() const { |
666 | return true; |
667 | } |
668 | |
669 | void DebugTensorWatch::InternalSwap(DebugTensorWatch* other) { |
670 | using std::swap; |
671 | _internal_metadata_.Swap(&other->_internal_metadata_); |
672 | debug_ops_.InternalSwap(CastToBase(&other->debug_ops_)); |
673 | debug_urls_.InternalSwap(CastToBase(&other->debug_urls_)); |
674 | node_name_.Swap(&other->node_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
675 | GetArenaNoVirtual()); |
676 | swap(output_slot_, other->output_slot_); |
677 | swap(tolerate_debug_op_creation_failures_, other->tolerate_debug_op_creation_failures_); |
678 | } |
679 | |
680 | ::PROTOBUF_NAMESPACE_ID::Metadata DebugTensorWatch::GetMetadata() const { |
681 | return GetMetadataStatic(); |
682 | } |
683 | |
684 | |
685 | // =================================================================== |
686 | |
687 | void DebugOptions::InitAsDefaultInstance() { |
688 | } |
689 | class DebugOptions::_Internal { |
690 | public: |
691 | }; |
692 | |
693 | DebugOptions::DebugOptions() |
694 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
695 | SharedCtor(); |
696 | // @@protoc_insertion_point(constructor:tensorflow.DebugOptions) |
697 | } |
698 | DebugOptions::DebugOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
699 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
700 | _internal_metadata_(arena), |
701 | debug_tensor_watch_opts_(arena) { |
702 | SharedCtor(); |
703 | RegisterArenaDtor(arena); |
704 | // @@protoc_insertion_point(arena_constructor:tensorflow.DebugOptions) |
705 | } |
706 | DebugOptions::DebugOptions(const DebugOptions& from) |
707 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
708 | _internal_metadata_(nullptr), |
709 | debug_tensor_watch_opts_(from.debug_tensor_watch_opts_) { |
710 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
711 | ::memcpy(&reset_disk_byte_usage_, &from.reset_disk_byte_usage_, |
712 | static_cast<size_t>(reinterpret_cast<char*>(&global_step_) - |
713 | reinterpret_cast<char*>(&reset_disk_byte_usage_)) + sizeof(global_step_)); |
714 | // @@protoc_insertion_point(copy_constructor:tensorflow.DebugOptions) |
715 | } |
716 | |
717 | void DebugOptions::SharedCtor() { |
718 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
719 | ::memset(&reset_disk_byte_usage_, 0, static_cast<size_t>( |
720 | reinterpret_cast<char*>(&global_step_) - |
721 | reinterpret_cast<char*>(&reset_disk_byte_usage_)) + sizeof(global_step_)); |
722 | } |
723 | |
724 | DebugOptions::~DebugOptions() { |
725 | // @@protoc_insertion_point(destructor:tensorflow.DebugOptions) |
726 | SharedDtor(); |
727 | } |
728 | |
729 | void DebugOptions::SharedDtor() { |
730 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
731 | } |
732 | |
733 | void DebugOptions::ArenaDtor(void* object) { |
734 | DebugOptions* _this = reinterpret_cast< DebugOptions* >(object); |
735 | (void)_this; |
736 | } |
737 | void DebugOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
738 | } |
739 | void DebugOptions::SetCachedSize(int size) const { |
740 | _cached_size_.Set(size); |
741 | } |
742 | const DebugOptions& DebugOptions::default_instance() { |
743 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
744 | return *internal_default_instance(); |
745 | } |
746 | |
747 | |
748 | void DebugOptions::Clear() { |
749 | // @@protoc_insertion_point(message_clear_start:tensorflow.DebugOptions) |
750 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
751 | // Prevent compiler warnings about cached_has_bits being unused |
752 | (void) cached_has_bits; |
753 | |
754 | debug_tensor_watch_opts_.Clear(); |
755 | ::memset(&reset_disk_byte_usage_, 0, static_cast<size_t>( |
756 | reinterpret_cast<char*>(&global_step_) - |
757 | reinterpret_cast<char*>(&reset_disk_byte_usage_)) + sizeof(global_step_)); |
758 | _internal_metadata_.Clear(); |
759 | } |
760 | |
761 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
762 | const char* DebugOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
763 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
764 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
765 | while (!ctx->Done(&ptr)) { |
766 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
767 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
768 | CHK_(ptr); |
769 | switch (tag >> 3) { |
770 | // repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; |
771 | case 4: |
772 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
773 | ptr -= 1; |
774 | do { |
775 | ptr += 1; |
776 | ptr = ctx->ParseMessage(add_debug_tensor_watch_opts(), ptr); |
777 | CHK_(ptr); |
778 | if (!ctx->DataAvailable(ptr)) break; |
779 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
780 | } else goto handle_unusual; |
781 | continue; |
782 | // int64 global_step = 10; |
783 | case 10: |
784 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { |
785 | global_step_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
786 | CHK_(ptr); |
787 | } else goto handle_unusual; |
788 | continue; |
789 | // bool reset_disk_byte_usage = 11; |
790 | case 11: |
791 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { |
792 | reset_disk_byte_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
793 | CHK_(ptr); |
794 | } else goto handle_unusual; |
795 | continue; |
796 | default: { |
797 | handle_unusual: |
798 | if ((tag & 7) == 4 || tag == 0) { |
799 | ctx->SetLastTag(tag); |
800 | goto success; |
801 | } |
802 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
803 | CHK_(ptr != nullptr); |
804 | continue; |
805 | } |
806 | } // switch |
807 | } // while |
808 | success: |
809 | return ptr; |
810 | failure: |
811 | ptr = nullptr; |
812 | goto success; |
813 | #undef CHK_ |
814 | } |
815 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
816 | bool DebugOptions::MergePartialFromCodedStream( |
817 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
818 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
819 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
820 | // @@protoc_insertion_point(parse_start:tensorflow.DebugOptions) |
821 | for (;;) { |
822 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
823 | tag = p.first; |
824 | if (!p.second) goto handle_unusual; |
825 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
826 | // repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; |
827 | case 4: { |
828 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
829 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
830 | input, add_debug_tensor_watch_opts())); |
831 | } else { |
832 | goto handle_unusual; |
833 | } |
834 | break; |
835 | } |
836 | |
837 | // int64 global_step = 10; |
838 | case 10: { |
839 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) { |
840 | |
841 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
842 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
843 | input, &global_step_))); |
844 | } else { |
845 | goto handle_unusual; |
846 | } |
847 | break; |
848 | } |
849 | |
850 | // bool reset_disk_byte_usage = 11; |
851 | case 11: { |
852 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) { |
853 | |
854 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
855 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
856 | input, &reset_disk_byte_usage_))); |
857 | } else { |
858 | goto handle_unusual; |
859 | } |
860 | break; |
861 | } |
862 | |
863 | default: { |
864 | handle_unusual: |
865 | if (tag == 0) { |
866 | goto success; |
867 | } |
868 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
869 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
870 | break; |
871 | } |
872 | } |
873 | } |
874 | success: |
875 | // @@protoc_insertion_point(parse_success:tensorflow.DebugOptions) |
876 | return true; |
877 | failure: |
878 | // @@protoc_insertion_point(parse_failure:tensorflow.DebugOptions) |
879 | return false; |
880 | #undef DO_ |
881 | } |
882 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
883 | |
884 | void DebugOptions::SerializeWithCachedSizes( |
885 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
886 | // @@protoc_insertion_point(serialize_start:tensorflow.DebugOptions) |
887 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
888 | (void) cached_has_bits; |
889 | |
890 | // repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; |
891 | for (unsigned int i = 0, |
892 | n = static_cast<unsigned int>(this->debug_tensor_watch_opts_size()); i < n; i++) { |
893 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
894 | 4, |
895 | this->debug_tensor_watch_opts(static_cast<int>(i)), |
896 | output); |
897 | } |
898 | |
899 | // int64 global_step = 10; |
900 | if (this->global_step() != 0) { |
901 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(10, this->global_step(), output); |
902 | } |
903 | |
904 | // bool reset_disk_byte_usage = 11; |
905 | if (this->reset_disk_byte_usage() != 0) { |
906 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(11, this->reset_disk_byte_usage(), output); |
907 | } |
908 | |
909 | if (_internal_metadata_.have_unknown_fields()) { |
910 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
911 | _internal_metadata_.unknown_fields(), output); |
912 | } |
913 | // @@protoc_insertion_point(serialize_end:tensorflow.DebugOptions) |
914 | } |
915 | |
916 | ::PROTOBUF_NAMESPACE_ID::uint8* DebugOptions::InternalSerializeWithCachedSizesToArray( |
917 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
918 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebugOptions) |
919 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
920 | (void) cached_has_bits; |
921 | |
922 | // repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; |
923 | for (unsigned int i = 0, |
924 | n = static_cast<unsigned int>(this->debug_tensor_watch_opts_size()); i < n; i++) { |
925 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
926 | InternalWriteMessageToArray( |
927 | 4, this->debug_tensor_watch_opts(static_cast<int>(i)), target); |
928 | } |
929 | |
930 | // int64 global_step = 10; |
931 | if (this->global_step() != 0) { |
932 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->global_step(), target); |
933 | } |
934 | |
935 | // bool reset_disk_byte_usage = 11; |
936 | if (this->reset_disk_byte_usage() != 0) { |
937 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->reset_disk_byte_usage(), target); |
938 | } |
939 | |
940 | if (_internal_metadata_.have_unknown_fields()) { |
941 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
942 | _internal_metadata_.unknown_fields(), target); |
943 | } |
944 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebugOptions) |
945 | return target; |
946 | } |
947 | |
948 | size_t DebugOptions::ByteSizeLong() const { |
949 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DebugOptions) |
950 | size_t total_size = 0; |
951 | |
952 | if (_internal_metadata_.have_unknown_fields()) { |
953 | total_size += |
954 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
955 | _internal_metadata_.unknown_fields()); |
956 | } |
957 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
958 | // Prevent compiler warnings about cached_has_bits being unused |
959 | (void) cached_has_bits; |
960 | |
961 | // repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; |
962 | { |
963 | unsigned int count = static_cast<unsigned int>(this->debug_tensor_watch_opts_size()); |
964 | total_size += 1UL * count; |
965 | for (unsigned int i = 0; i < count; i++) { |
966 | total_size += |
967 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
968 | this->debug_tensor_watch_opts(static_cast<int>(i))); |
969 | } |
970 | } |
971 | |
972 | // bool reset_disk_byte_usage = 11; |
973 | if (this->reset_disk_byte_usage() != 0) { |
974 | total_size += 1 + 1; |
975 | } |
976 | |
977 | // int64 global_step = 10; |
978 | if (this->global_step() != 0) { |
979 | total_size += 1 + |
980 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
981 | this->global_step()); |
982 | } |
983 | |
984 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
985 | SetCachedSize(cached_size); |
986 | return total_size; |
987 | } |
988 | |
989 | void DebugOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
990 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebugOptions) |
991 | GOOGLE_DCHECK_NE(&from, this); |
992 | const DebugOptions* source = |
993 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebugOptions>( |
994 | &from); |
995 | if (source == nullptr) { |
996 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebugOptions) |
997 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
998 | } else { |
999 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebugOptions) |
1000 | MergeFrom(*source); |
1001 | } |
1002 | } |
1003 | |
1004 | void DebugOptions::MergeFrom(const DebugOptions& from) { |
1005 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebugOptions) |
1006 | GOOGLE_DCHECK_NE(&from, this); |
1007 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1008 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1009 | (void) cached_has_bits; |
1010 | |
1011 | debug_tensor_watch_opts_.MergeFrom(from.debug_tensor_watch_opts_); |
1012 | if (from.reset_disk_byte_usage() != 0) { |
1013 | set_reset_disk_byte_usage(from.reset_disk_byte_usage()); |
1014 | } |
1015 | if (from.global_step() != 0) { |
1016 | set_global_step(from.global_step()); |
1017 | } |
1018 | } |
1019 | |
1020 | void DebugOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1021 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebugOptions) |
1022 | if (&from == this) return; |
1023 | Clear(); |
1024 | MergeFrom(from); |
1025 | } |
1026 | |
1027 | void DebugOptions::CopyFrom(const DebugOptions& from) { |
1028 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebugOptions) |
1029 | if (&from == this) return; |
1030 | Clear(); |
1031 | MergeFrom(from); |
1032 | } |
1033 | |
1034 | bool DebugOptions::IsInitialized() const { |
1035 | return true; |
1036 | } |
1037 | |
1038 | void DebugOptions::InternalSwap(DebugOptions* other) { |
1039 | using std::swap; |
1040 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1041 | CastToBase(&debug_tensor_watch_opts_)->InternalSwap(CastToBase(&other->debug_tensor_watch_opts_)); |
1042 | swap(reset_disk_byte_usage_, other->reset_disk_byte_usage_); |
1043 | swap(global_step_, other->global_step_); |
1044 | } |
1045 | |
1046 | ::PROTOBUF_NAMESPACE_ID::Metadata DebugOptions::GetMetadata() const { |
1047 | return GetMetadataStatic(); |
1048 | } |
1049 | |
1050 | |
1051 | // =================================================================== |
1052 | |
1053 | void DebuggedSourceFile::InitAsDefaultInstance() { |
1054 | } |
1055 | class DebuggedSourceFile::_Internal { |
1056 | public: |
1057 | }; |
1058 | |
1059 | DebuggedSourceFile::DebuggedSourceFile() |
1060 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1061 | SharedCtor(); |
1062 | // @@protoc_insertion_point(constructor:tensorflow.DebuggedSourceFile) |
1063 | } |
1064 | DebuggedSourceFile::DebuggedSourceFile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1065 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1066 | _internal_metadata_(arena), |
1067 | lines_(arena) { |
1068 | SharedCtor(); |
1069 | RegisterArenaDtor(arena); |
1070 | // @@protoc_insertion_point(arena_constructor:tensorflow.DebuggedSourceFile) |
1071 | } |
1072 | DebuggedSourceFile::DebuggedSourceFile(const DebuggedSourceFile& from) |
1073 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1074 | _internal_metadata_(nullptr), |
1075 | lines_(from.lines_) { |
1076 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1077 | host_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1078 | if (!from.host().empty()) { |
1079 | host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host(), |
1080 | GetArenaNoVirtual()); |
1081 | } |
1082 | file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1083 | if (!from.file_path().empty()) { |
1084 | file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_path(), |
1085 | GetArenaNoVirtual()); |
1086 | } |
1087 | ::memcpy(&last_modified_, &from.last_modified_, |
1088 | static_cast<size_t>(reinterpret_cast<char*>(&bytes_) - |
1089 | reinterpret_cast<char*>(&last_modified_)) + sizeof(bytes_)); |
1090 | // @@protoc_insertion_point(copy_constructor:tensorflow.DebuggedSourceFile) |
1091 | } |
1092 | |
1093 | void DebuggedSourceFile::SharedCtor() { |
1094 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
1095 | host_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1096 | file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1097 | ::memset(&last_modified_, 0, static_cast<size_t>( |
1098 | reinterpret_cast<char*>(&bytes_) - |
1099 | reinterpret_cast<char*>(&last_modified_)) + sizeof(bytes_)); |
1100 | } |
1101 | |
1102 | DebuggedSourceFile::~DebuggedSourceFile() { |
1103 | // @@protoc_insertion_point(destructor:tensorflow.DebuggedSourceFile) |
1104 | SharedDtor(); |
1105 | } |
1106 | |
1107 | void DebuggedSourceFile::SharedDtor() { |
1108 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1109 | host_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1110 | file_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1111 | } |
1112 | |
1113 | void DebuggedSourceFile::ArenaDtor(void* object) { |
1114 | DebuggedSourceFile* _this = reinterpret_cast< DebuggedSourceFile* >(object); |
1115 | (void)_this; |
1116 | } |
1117 | void DebuggedSourceFile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1118 | } |
1119 | void DebuggedSourceFile::SetCachedSize(int size) const { |
1120 | _cached_size_.Set(size); |
1121 | } |
1122 | const DebuggedSourceFile& DebuggedSourceFile::default_instance() { |
1123 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebuggedSourceFile_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
1124 | return *internal_default_instance(); |
1125 | } |
1126 | |
1127 | |
1128 | void DebuggedSourceFile::Clear() { |
1129 | // @@protoc_insertion_point(message_clear_start:tensorflow.DebuggedSourceFile) |
1130 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1131 | // Prevent compiler warnings about cached_has_bits being unused |
1132 | (void) cached_has_bits; |
1133 | |
1134 | lines_.Clear(); |
1135 | host_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1136 | file_path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1137 | ::memset(&last_modified_, 0, static_cast<size_t>( |
1138 | reinterpret_cast<char*>(&bytes_) - |
1139 | reinterpret_cast<char*>(&last_modified_)) + sizeof(bytes_)); |
1140 | _internal_metadata_.Clear(); |
1141 | } |
1142 | |
1143 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1144 | const char* DebuggedSourceFile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1145 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1146 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1147 | while (!ctx->Done(&ptr)) { |
1148 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1149 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1150 | CHK_(ptr); |
1151 | switch (tag >> 3) { |
1152 | // string host = 1; |
1153 | case 1: |
1154 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1155 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_host(), ptr, ctx, "tensorflow.DebuggedSourceFile.host" ); |
1156 | CHK_(ptr); |
1157 | } else goto handle_unusual; |
1158 | continue; |
1159 | // string file_path = 2; |
1160 | case 2: |
1161 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1162 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_file_path(), ptr, ctx, "tensorflow.DebuggedSourceFile.file_path" ); |
1163 | CHK_(ptr); |
1164 | } else goto handle_unusual; |
1165 | continue; |
1166 | // int64 last_modified = 3; |
1167 | case 3: |
1168 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
1169 | last_modified_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1170 | CHK_(ptr); |
1171 | } else goto handle_unusual; |
1172 | continue; |
1173 | // int64 bytes = 4; |
1174 | case 4: |
1175 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
1176 | bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1177 | CHK_(ptr); |
1178 | } else goto handle_unusual; |
1179 | continue; |
1180 | // repeated string lines = 5; |
1181 | case 5: |
1182 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
1183 | ptr -= 1; |
1184 | do { |
1185 | ptr += 1; |
1186 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_lines(), ptr, ctx, "tensorflow.DebuggedSourceFile.lines" ); |
1187 | CHK_(ptr); |
1188 | if (!ctx->DataAvailable(ptr)) break; |
1189 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); |
1190 | } else goto handle_unusual; |
1191 | continue; |
1192 | default: { |
1193 | handle_unusual: |
1194 | if ((tag & 7) == 4 || tag == 0) { |
1195 | ctx->SetLastTag(tag); |
1196 | goto success; |
1197 | } |
1198 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1199 | CHK_(ptr != nullptr); |
1200 | continue; |
1201 | } |
1202 | } // switch |
1203 | } // while |
1204 | success: |
1205 | return ptr; |
1206 | failure: |
1207 | ptr = nullptr; |
1208 | goto success; |
1209 | #undef CHK_ |
1210 | } |
1211 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1212 | bool DebuggedSourceFile::MergePartialFromCodedStream( |
1213 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1214 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1215 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1216 | // @@protoc_insertion_point(parse_start:tensorflow.DebuggedSourceFile) |
1217 | for (;;) { |
1218 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1219 | tag = p.first; |
1220 | if (!p.second) goto handle_unusual; |
1221 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1222 | // string host = 1; |
1223 | case 1: { |
1224 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1225 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1226 | input, this->mutable_host())); |
1227 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1228 | this->host().data(), static_cast<int>(this->host().length()), |
1229 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1230 | "tensorflow.DebuggedSourceFile.host" )); |
1231 | } else { |
1232 | goto handle_unusual; |
1233 | } |
1234 | break; |
1235 | } |
1236 | |
1237 | // string file_path = 2; |
1238 | case 2: { |
1239 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1240 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1241 | input, this->mutable_file_path())); |
1242 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1243 | this->file_path().data(), static_cast<int>(this->file_path().length()), |
1244 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1245 | "tensorflow.DebuggedSourceFile.file_path" )); |
1246 | } else { |
1247 | goto handle_unusual; |
1248 | } |
1249 | break; |
1250 | } |
1251 | |
1252 | // int64 last_modified = 3; |
1253 | case 3: { |
1254 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
1255 | |
1256 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1257 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1258 | input, &last_modified_))); |
1259 | } else { |
1260 | goto handle_unusual; |
1261 | } |
1262 | break; |
1263 | } |
1264 | |
1265 | // int64 bytes = 4; |
1266 | case 4: { |
1267 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { |
1268 | |
1269 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1270 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1271 | input, &bytes_))); |
1272 | } else { |
1273 | goto handle_unusual; |
1274 | } |
1275 | break; |
1276 | } |
1277 | |
1278 | // repeated string lines = 5; |
1279 | case 5: { |
1280 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
1281 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1282 | input, this->add_lines())); |
1283 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1284 | this->lines(this->lines_size() - 1).data(), |
1285 | static_cast<int>(this->lines(this->lines_size() - 1).length()), |
1286 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1287 | "tensorflow.DebuggedSourceFile.lines" )); |
1288 | } else { |
1289 | goto handle_unusual; |
1290 | } |
1291 | break; |
1292 | } |
1293 | |
1294 | default: { |
1295 | handle_unusual: |
1296 | if (tag == 0) { |
1297 | goto success; |
1298 | } |
1299 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1300 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1301 | break; |
1302 | } |
1303 | } |
1304 | } |
1305 | success: |
1306 | // @@protoc_insertion_point(parse_success:tensorflow.DebuggedSourceFile) |
1307 | return true; |
1308 | failure: |
1309 | // @@protoc_insertion_point(parse_failure:tensorflow.DebuggedSourceFile) |
1310 | return false; |
1311 | #undef DO_ |
1312 | } |
1313 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1314 | |
1315 | void DebuggedSourceFile::SerializeWithCachedSizes( |
1316 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1317 | // @@protoc_insertion_point(serialize_start:tensorflow.DebuggedSourceFile) |
1318 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1319 | (void) cached_has_bits; |
1320 | |
1321 | // string host = 1; |
1322 | if (this->host().size() > 0) { |
1323 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1324 | this->host().data(), static_cast<int>(this->host().length()), |
1325 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1326 | "tensorflow.DebuggedSourceFile.host" ); |
1327 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1328 | 1, this->host(), output); |
1329 | } |
1330 | |
1331 | // string file_path = 2; |
1332 | if (this->file_path().size() > 0) { |
1333 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1334 | this->file_path().data(), static_cast<int>(this->file_path().length()), |
1335 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1336 | "tensorflow.DebuggedSourceFile.file_path" ); |
1337 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1338 | 2, this->file_path(), output); |
1339 | } |
1340 | |
1341 | // int64 last_modified = 3; |
1342 | if (this->last_modified() != 0) { |
1343 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->last_modified(), output); |
1344 | } |
1345 | |
1346 | // int64 bytes = 4; |
1347 | if (this->bytes() != 0) { |
1348 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->bytes(), output); |
1349 | } |
1350 | |
1351 | // repeated string lines = 5; |
1352 | for (int i = 0, n = this->lines_size(); i < n; i++) { |
1353 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1354 | this->lines(i).data(), static_cast<int>(this->lines(i).length()), |
1355 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1356 | "tensorflow.DebuggedSourceFile.lines" ); |
1357 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
1358 | 5, this->lines(i), output); |
1359 | } |
1360 | |
1361 | if (_internal_metadata_.have_unknown_fields()) { |
1362 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1363 | _internal_metadata_.unknown_fields(), output); |
1364 | } |
1365 | // @@protoc_insertion_point(serialize_end:tensorflow.DebuggedSourceFile) |
1366 | } |
1367 | |
1368 | ::PROTOBUF_NAMESPACE_ID::uint8* DebuggedSourceFile::InternalSerializeWithCachedSizesToArray( |
1369 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1370 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebuggedSourceFile) |
1371 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1372 | (void) cached_has_bits; |
1373 | |
1374 | // string host = 1; |
1375 | if (this->host().size() > 0) { |
1376 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1377 | this->host().data(), static_cast<int>(this->host().length()), |
1378 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1379 | "tensorflow.DebuggedSourceFile.host" ); |
1380 | target = |
1381 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1382 | 1, this->host(), target); |
1383 | } |
1384 | |
1385 | // string file_path = 2; |
1386 | if (this->file_path().size() > 0) { |
1387 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1388 | this->file_path().data(), static_cast<int>(this->file_path().length()), |
1389 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1390 | "tensorflow.DebuggedSourceFile.file_path" ); |
1391 | target = |
1392 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1393 | 2, this->file_path(), target); |
1394 | } |
1395 | |
1396 | // int64 last_modified = 3; |
1397 | if (this->last_modified() != 0) { |
1398 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->last_modified(), target); |
1399 | } |
1400 | |
1401 | // int64 bytes = 4; |
1402 | if (this->bytes() != 0) { |
1403 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->bytes(), target); |
1404 | } |
1405 | |
1406 | // repeated string lines = 5; |
1407 | for (int i = 0, n = this->lines_size(); i < n; i++) { |
1408 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1409 | this->lines(i).data(), static_cast<int>(this->lines(i).length()), |
1410 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1411 | "tensorflow.DebuggedSourceFile.lines" ); |
1412 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1413 | WriteStringToArray(5, this->lines(i), target); |
1414 | } |
1415 | |
1416 | if (_internal_metadata_.have_unknown_fields()) { |
1417 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1418 | _internal_metadata_.unknown_fields(), target); |
1419 | } |
1420 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebuggedSourceFile) |
1421 | return target; |
1422 | } |
1423 | |
1424 | size_t DebuggedSourceFile::ByteSizeLong() const { |
1425 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DebuggedSourceFile) |
1426 | size_t total_size = 0; |
1427 | |
1428 | if (_internal_metadata_.have_unknown_fields()) { |
1429 | total_size += |
1430 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1431 | _internal_metadata_.unknown_fields()); |
1432 | } |
1433 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1434 | // Prevent compiler warnings about cached_has_bits being unused |
1435 | (void) cached_has_bits; |
1436 | |
1437 | // repeated string lines = 5; |
1438 | total_size += 1 * |
1439 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->lines_size()); |
1440 | for (int i = 0, n = this->lines_size(); i < n; i++) { |
1441 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1442 | this->lines(i)); |
1443 | } |
1444 | |
1445 | // string host = 1; |
1446 | if (this->host().size() > 0) { |
1447 | total_size += 1 + |
1448 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1449 | this->host()); |
1450 | } |
1451 | |
1452 | // string file_path = 2; |
1453 | if (this->file_path().size() > 0) { |
1454 | total_size += 1 + |
1455 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1456 | this->file_path()); |
1457 | } |
1458 | |
1459 | // int64 last_modified = 3; |
1460 | if (this->last_modified() != 0) { |
1461 | total_size += 1 + |
1462 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
1463 | this->last_modified()); |
1464 | } |
1465 | |
1466 | // int64 bytes = 4; |
1467 | if (this->bytes() != 0) { |
1468 | total_size += 1 + |
1469 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
1470 | this->bytes()); |
1471 | } |
1472 | |
1473 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1474 | SetCachedSize(cached_size); |
1475 | return total_size; |
1476 | } |
1477 | |
1478 | void DebuggedSourceFile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1479 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebuggedSourceFile) |
1480 | GOOGLE_DCHECK_NE(&from, this); |
1481 | const DebuggedSourceFile* source = |
1482 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebuggedSourceFile>( |
1483 | &from); |
1484 | if (source == nullptr) { |
1485 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebuggedSourceFile) |
1486 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1487 | } else { |
1488 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebuggedSourceFile) |
1489 | MergeFrom(*source); |
1490 | } |
1491 | } |
1492 | |
1493 | void DebuggedSourceFile::MergeFrom(const DebuggedSourceFile& from) { |
1494 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebuggedSourceFile) |
1495 | GOOGLE_DCHECK_NE(&from, this); |
1496 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1497 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1498 | (void) cached_has_bits; |
1499 | |
1500 | lines_.MergeFrom(from.lines_); |
1501 | if (from.host().size() > 0) { |
1502 | set_host(from.host()); |
1503 | } |
1504 | if (from.file_path().size() > 0) { |
1505 | set_file_path(from.file_path()); |
1506 | } |
1507 | if (from.last_modified() != 0) { |
1508 | set_last_modified(from.last_modified()); |
1509 | } |
1510 | if (from.bytes() != 0) { |
1511 | set_bytes(from.bytes()); |
1512 | } |
1513 | } |
1514 | |
1515 | void DebuggedSourceFile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1516 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebuggedSourceFile) |
1517 | if (&from == this) return; |
1518 | Clear(); |
1519 | MergeFrom(from); |
1520 | } |
1521 | |
1522 | void DebuggedSourceFile::CopyFrom(const DebuggedSourceFile& from) { |
1523 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebuggedSourceFile) |
1524 | if (&from == this) return; |
1525 | Clear(); |
1526 | MergeFrom(from); |
1527 | } |
1528 | |
1529 | bool DebuggedSourceFile::IsInitialized() const { |
1530 | return true; |
1531 | } |
1532 | |
1533 | void DebuggedSourceFile::InternalSwap(DebuggedSourceFile* other) { |
1534 | using std::swap; |
1535 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1536 | lines_.InternalSwap(CastToBase(&other->lines_)); |
1537 | host_.Swap(&other->host_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1538 | GetArenaNoVirtual()); |
1539 | file_path_.Swap(&other->file_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1540 | GetArenaNoVirtual()); |
1541 | swap(last_modified_, other->last_modified_); |
1542 | swap(bytes_, other->bytes_); |
1543 | } |
1544 | |
1545 | ::PROTOBUF_NAMESPACE_ID::Metadata DebuggedSourceFile::GetMetadata() const { |
1546 | return GetMetadataStatic(); |
1547 | } |
1548 | |
1549 | |
1550 | // =================================================================== |
1551 | |
1552 | void DebuggedSourceFiles::InitAsDefaultInstance() { |
1553 | } |
1554 | class DebuggedSourceFiles::_Internal { |
1555 | public: |
1556 | }; |
1557 | |
1558 | DebuggedSourceFiles::DebuggedSourceFiles() |
1559 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1560 | SharedCtor(); |
1561 | // @@protoc_insertion_point(constructor:tensorflow.DebuggedSourceFiles) |
1562 | } |
1563 | DebuggedSourceFiles::DebuggedSourceFiles(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1564 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1565 | _internal_metadata_(arena), |
1566 | source_files_(arena) { |
1567 | SharedCtor(); |
1568 | RegisterArenaDtor(arena); |
1569 | // @@protoc_insertion_point(arena_constructor:tensorflow.DebuggedSourceFiles) |
1570 | } |
1571 | DebuggedSourceFiles::DebuggedSourceFiles(const DebuggedSourceFiles& from) |
1572 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1573 | _internal_metadata_(nullptr), |
1574 | source_files_(from.source_files_) { |
1575 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1576 | // @@protoc_insertion_point(copy_constructor:tensorflow.DebuggedSourceFiles) |
1577 | } |
1578 | |
1579 | void DebuggedSourceFiles::SharedCtor() { |
1580 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
1581 | } |
1582 | |
1583 | DebuggedSourceFiles::~DebuggedSourceFiles() { |
1584 | // @@protoc_insertion_point(destructor:tensorflow.DebuggedSourceFiles) |
1585 | SharedDtor(); |
1586 | } |
1587 | |
1588 | void DebuggedSourceFiles::SharedDtor() { |
1589 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1590 | } |
1591 | |
1592 | void DebuggedSourceFiles::ArenaDtor(void* object) { |
1593 | DebuggedSourceFiles* _this = reinterpret_cast< DebuggedSourceFiles* >(object); |
1594 | (void)_this; |
1595 | } |
1596 | void DebuggedSourceFiles::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1597 | } |
1598 | void DebuggedSourceFiles::SetCachedSize(int size) const { |
1599 | _cached_size_.Set(size); |
1600 | } |
1601 | const DebuggedSourceFiles& DebuggedSourceFiles::default_instance() { |
1602 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DebuggedSourceFiles_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base); |
1603 | return *internal_default_instance(); |
1604 | } |
1605 | |
1606 | |
1607 | void DebuggedSourceFiles::Clear() { |
1608 | // @@protoc_insertion_point(message_clear_start:tensorflow.DebuggedSourceFiles) |
1609 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1610 | // Prevent compiler warnings about cached_has_bits being unused |
1611 | (void) cached_has_bits; |
1612 | |
1613 | source_files_.Clear(); |
1614 | _internal_metadata_.Clear(); |
1615 | } |
1616 | |
1617 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1618 | const char* DebuggedSourceFiles::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1619 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1620 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1621 | while (!ctx->Done(&ptr)) { |
1622 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1623 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1624 | CHK_(ptr); |
1625 | switch (tag >> 3) { |
1626 | // repeated .tensorflow.DebuggedSourceFile source_files = 1; |
1627 | case 1: |
1628 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1629 | ptr -= 1; |
1630 | do { |
1631 | ptr += 1; |
1632 | ptr = ctx->ParseMessage(add_source_files(), ptr); |
1633 | CHK_(ptr); |
1634 | if (!ctx->DataAvailable(ptr)) break; |
1635 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
1636 | } else goto handle_unusual; |
1637 | continue; |
1638 | default: { |
1639 | handle_unusual: |
1640 | if ((tag & 7) == 4 || tag == 0) { |
1641 | ctx->SetLastTag(tag); |
1642 | goto success; |
1643 | } |
1644 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1645 | CHK_(ptr != nullptr); |
1646 | continue; |
1647 | } |
1648 | } // switch |
1649 | } // while |
1650 | success: |
1651 | return ptr; |
1652 | failure: |
1653 | ptr = nullptr; |
1654 | goto success; |
1655 | #undef CHK_ |
1656 | } |
1657 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1658 | bool DebuggedSourceFiles::MergePartialFromCodedStream( |
1659 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1660 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1661 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1662 | // @@protoc_insertion_point(parse_start:tensorflow.DebuggedSourceFiles) |
1663 | for (;;) { |
1664 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1665 | tag = p.first; |
1666 | if (!p.second) goto handle_unusual; |
1667 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1668 | // repeated .tensorflow.DebuggedSourceFile source_files = 1; |
1669 | case 1: { |
1670 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1671 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1672 | input, add_source_files())); |
1673 | } else { |
1674 | goto handle_unusual; |
1675 | } |
1676 | break; |
1677 | } |
1678 | |
1679 | default: { |
1680 | handle_unusual: |
1681 | if (tag == 0) { |
1682 | goto success; |
1683 | } |
1684 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1685 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1686 | break; |
1687 | } |
1688 | } |
1689 | } |
1690 | success: |
1691 | // @@protoc_insertion_point(parse_success:tensorflow.DebuggedSourceFiles) |
1692 | return true; |
1693 | failure: |
1694 | // @@protoc_insertion_point(parse_failure:tensorflow.DebuggedSourceFiles) |
1695 | return false; |
1696 | #undef DO_ |
1697 | } |
1698 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1699 | |
1700 | void DebuggedSourceFiles::SerializeWithCachedSizes( |
1701 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1702 | // @@protoc_insertion_point(serialize_start:tensorflow.DebuggedSourceFiles) |
1703 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1704 | (void) cached_has_bits; |
1705 | |
1706 | // repeated .tensorflow.DebuggedSourceFile source_files = 1; |
1707 | for (unsigned int i = 0, |
1708 | n = static_cast<unsigned int>(this->source_files_size()); i < n; i++) { |
1709 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1710 | 1, |
1711 | this->source_files(static_cast<int>(i)), |
1712 | output); |
1713 | } |
1714 | |
1715 | if (_internal_metadata_.have_unknown_fields()) { |
1716 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1717 | _internal_metadata_.unknown_fields(), output); |
1718 | } |
1719 | // @@protoc_insertion_point(serialize_end:tensorflow.DebuggedSourceFiles) |
1720 | } |
1721 | |
1722 | ::PROTOBUF_NAMESPACE_ID::uint8* DebuggedSourceFiles::InternalSerializeWithCachedSizesToArray( |
1723 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1724 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DebuggedSourceFiles) |
1725 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1726 | (void) cached_has_bits; |
1727 | |
1728 | // repeated .tensorflow.DebuggedSourceFile source_files = 1; |
1729 | for (unsigned int i = 0, |
1730 | n = static_cast<unsigned int>(this->source_files_size()); i < n; i++) { |
1731 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1732 | InternalWriteMessageToArray( |
1733 | 1, this->source_files(static_cast<int>(i)), target); |
1734 | } |
1735 | |
1736 | if (_internal_metadata_.have_unknown_fields()) { |
1737 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1738 | _internal_metadata_.unknown_fields(), target); |
1739 | } |
1740 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DebuggedSourceFiles) |
1741 | return target; |
1742 | } |
1743 | |
1744 | size_t DebuggedSourceFiles::ByteSizeLong() const { |
1745 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DebuggedSourceFiles) |
1746 | size_t total_size = 0; |
1747 | |
1748 | if (_internal_metadata_.have_unknown_fields()) { |
1749 | total_size += |
1750 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1751 | _internal_metadata_.unknown_fields()); |
1752 | } |
1753 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1754 | // Prevent compiler warnings about cached_has_bits being unused |
1755 | (void) cached_has_bits; |
1756 | |
1757 | // repeated .tensorflow.DebuggedSourceFile source_files = 1; |
1758 | { |
1759 | unsigned int count = static_cast<unsigned int>(this->source_files_size()); |
1760 | total_size += 1UL * count; |
1761 | for (unsigned int i = 0; i < count; i++) { |
1762 | total_size += |
1763 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1764 | this->source_files(static_cast<int>(i))); |
1765 | } |
1766 | } |
1767 | |
1768 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1769 | SetCachedSize(cached_size); |
1770 | return total_size; |
1771 | } |
1772 | |
1773 | void DebuggedSourceFiles::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1774 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DebuggedSourceFiles) |
1775 | GOOGLE_DCHECK_NE(&from, this); |
1776 | const DebuggedSourceFiles* source = |
1777 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DebuggedSourceFiles>( |
1778 | &from); |
1779 | if (source == nullptr) { |
1780 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DebuggedSourceFiles) |
1781 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1782 | } else { |
1783 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DebuggedSourceFiles) |
1784 | MergeFrom(*source); |
1785 | } |
1786 | } |
1787 | |
1788 | void DebuggedSourceFiles::MergeFrom(const DebuggedSourceFiles& from) { |
1789 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DebuggedSourceFiles) |
1790 | GOOGLE_DCHECK_NE(&from, this); |
1791 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1792 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1793 | (void) cached_has_bits; |
1794 | |
1795 | source_files_.MergeFrom(from.source_files_); |
1796 | } |
1797 | |
1798 | void DebuggedSourceFiles::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1799 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DebuggedSourceFiles) |
1800 | if (&from == this) return; |
1801 | Clear(); |
1802 | MergeFrom(from); |
1803 | } |
1804 | |
1805 | void DebuggedSourceFiles::CopyFrom(const DebuggedSourceFiles& from) { |
1806 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DebuggedSourceFiles) |
1807 | if (&from == this) return; |
1808 | Clear(); |
1809 | MergeFrom(from); |
1810 | } |
1811 | |
1812 | bool DebuggedSourceFiles::IsInitialized() const { |
1813 | return true; |
1814 | } |
1815 | |
1816 | void DebuggedSourceFiles::InternalSwap(DebuggedSourceFiles* other) { |
1817 | using std::swap; |
1818 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1819 | CastToBase(&source_files_)->InternalSwap(CastToBase(&other->source_files_)); |
1820 | } |
1821 | |
1822 | ::PROTOBUF_NAMESPACE_ID::Metadata DebuggedSourceFiles::GetMetadata() const { |
1823 | return GetMetadataStatic(); |
1824 | } |
1825 | |
1826 | |
1827 | // @@protoc_insertion_point(namespace_scope) |
1828 | } // namespace tensorflow |
1829 | PROTOBUF_NAMESPACE_OPEN |
1830 | template<> PROTOBUF_NOINLINE ::tensorflow::DebugTensorWatch* Arena::CreateMaybeMessage< ::tensorflow::DebugTensorWatch >(Arena* arena) { |
1831 | return Arena::CreateMessageInternal< ::tensorflow::DebugTensorWatch >(arena); |
1832 | } |
1833 | template<> PROTOBUF_NOINLINE ::tensorflow::DebugOptions* Arena::CreateMaybeMessage< ::tensorflow::DebugOptions >(Arena* arena) { |
1834 | return Arena::CreateMessageInternal< ::tensorflow::DebugOptions >(arena); |
1835 | } |
1836 | template<> PROTOBUF_NOINLINE ::tensorflow::DebuggedSourceFile* Arena::CreateMaybeMessage< ::tensorflow::DebuggedSourceFile >(Arena* arena) { |
1837 | return Arena::CreateMessageInternal< ::tensorflow::DebuggedSourceFile >(arena); |
1838 | } |
1839 | template<> PROTOBUF_NOINLINE ::tensorflow::DebuggedSourceFiles* Arena::CreateMaybeMessage< ::tensorflow::DebuggedSourceFiles >(Arena* arena) { |
1840 | return Arena::CreateMessageInternal< ::tensorflow::DebuggedSourceFiles >(arena); |
1841 | } |
1842 | PROTOBUF_NAMESPACE_CLOSE |
1843 | |
1844 | // @@protoc_insertion_point(global_scope) |
1845 | #include <google/protobuf/port_undef.inc> |
1846 | |