1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/util/event.proto |
3 | |
4 | #include "tensorflow/core/util/event.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto; |
21 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto; |
22 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fsummary_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Summary_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
23 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto; |
24 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fevent_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto; |
25 | namespace tensorflow { |
26 | class EventDefaultTypeInternal { |
27 | public: |
28 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Event> _instance; |
29 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_version_; |
30 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr graph_def_; |
31 | const ::tensorflow::Summary* summary_; |
32 | const ::tensorflow::LogMessage* log_message_; |
33 | const ::tensorflow::SessionLog* session_log_; |
34 | const ::tensorflow::TaggedRunMetadata* tagged_run_metadata_; |
35 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr meta_graph_def_; |
36 | } _Event_default_instance_; |
37 | class LogMessageDefaultTypeInternal { |
38 | public: |
39 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LogMessage> _instance; |
40 | } _LogMessage_default_instance_; |
41 | class SessionLogDefaultTypeInternal { |
42 | public: |
43 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SessionLog> _instance; |
44 | } _SessionLog_default_instance_; |
45 | class TaggedRunMetadataDefaultTypeInternal { |
46 | public: |
47 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TaggedRunMetadata> _instance; |
48 | } _TaggedRunMetadata_default_instance_; |
49 | class WatchdogConfigDefaultTypeInternal { |
50 | public: |
51 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WatchdogConfig> _instance; |
52 | } _WatchdogConfig_default_instance_; |
53 | class RequestedExitCodeDefaultTypeInternal { |
54 | public: |
55 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RequestedExitCode> _instance; |
56 | } _RequestedExitCode_default_instance_; |
57 | class WorkerHeartbeatRequestDefaultTypeInternal { |
58 | public: |
59 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WorkerHeartbeatRequest> _instance; |
60 | } _WorkerHeartbeatRequest_default_instance_; |
61 | class WorkerHeartbeatResponseDefaultTypeInternal { |
62 | public: |
63 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WorkerHeartbeatResponse> _instance; |
64 | } _WorkerHeartbeatResponse_default_instance_; |
65 | } // namespace tensorflow |
66 | static void InitDefaultsscc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto() { |
67 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
68 | |
69 | { |
70 | void* ptr = &::tensorflow::_Event_default_instance_; |
71 | new (ptr) ::tensorflow::Event(); |
72 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
73 | } |
74 | ::tensorflow::Event::InitAsDefaultInstance(); |
75 | } |
76 | |
77 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto = |
78 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto}, { |
79 | &scc_info_Summary_tensorflow_2fcore_2fframework_2fsummary_2eproto.base, |
80 | &scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
81 | &scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
82 | &scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto.base,}}; |
83 | |
84 | static void InitDefaultsscc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto() { |
85 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
86 | |
87 | { |
88 | void* ptr = &::tensorflow::_LogMessage_default_instance_; |
89 | new (ptr) ::tensorflow::LogMessage(); |
90 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
91 | } |
92 | ::tensorflow::LogMessage::InitAsDefaultInstance(); |
93 | } |
94 | |
95 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto = |
96 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto}, {}}; |
97 | |
98 | static void InitDefaultsscc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto() { |
99 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
100 | |
101 | { |
102 | void* ptr = &::tensorflow::_RequestedExitCode_default_instance_; |
103 | new (ptr) ::tensorflow::RequestedExitCode(); |
104 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
105 | } |
106 | ::tensorflow::RequestedExitCode::InitAsDefaultInstance(); |
107 | } |
108 | |
109 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto = |
110 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto}, {}}; |
111 | |
112 | static void InitDefaultsscc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto() { |
113 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
114 | |
115 | { |
116 | void* ptr = &::tensorflow::_SessionLog_default_instance_; |
117 | new (ptr) ::tensorflow::SessionLog(); |
118 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
119 | } |
120 | ::tensorflow::SessionLog::InitAsDefaultInstance(); |
121 | } |
122 | |
123 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto = |
124 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto}, {}}; |
125 | |
126 | static void InitDefaultsscc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto() { |
127 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
128 | |
129 | { |
130 | void* ptr = &::tensorflow::_TaggedRunMetadata_default_instance_; |
131 | new (ptr) ::tensorflow::TaggedRunMetadata(); |
132 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
133 | } |
134 | ::tensorflow::TaggedRunMetadata::InitAsDefaultInstance(); |
135 | } |
136 | |
137 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto = |
138 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto}, {}}; |
139 | |
140 | static void InitDefaultsscc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto() { |
141 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
142 | |
143 | { |
144 | void* ptr = &::tensorflow::_WatchdogConfig_default_instance_; |
145 | new (ptr) ::tensorflow::WatchdogConfig(); |
146 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
147 | } |
148 | ::tensorflow::WatchdogConfig::InitAsDefaultInstance(); |
149 | } |
150 | |
151 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto = |
152 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto}, {}}; |
153 | |
154 | static void InitDefaultsscc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto() { |
155 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
156 | |
157 | { |
158 | void* ptr = &::tensorflow::_WorkerHeartbeatRequest_default_instance_; |
159 | new (ptr) ::tensorflow::WorkerHeartbeatRequest(); |
160 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
161 | } |
162 | ::tensorflow::WorkerHeartbeatRequest::InitAsDefaultInstance(); |
163 | } |
164 | |
165 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto = |
166 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto}, { |
167 | &scc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
168 | &scc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto.base,}}; |
169 | |
170 | static void InitDefaultsscc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto() { |
171 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
172 | |
173 | { |
174 | void* ptr = &::tensorflow::_WorkerHeartbeatResponse_default_instance_; |
175 | new (ptr) ::tensorflow::WorkerHeartbeatResponse(); |
176 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
177 | } |
178 | ::tensorflow::WorkerHeartbeatResponse::InitAsDefaultInstance(); |
179 | } |
180 | |
181 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto = |
182 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto}, { |
183 | &scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto.base,}}; |
184 | |
185 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2futil_2fevent_2eproto[8]; |
186 | static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto[4]; |
187 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto = nullptr; |
188 | |
189 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2futil_2fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
190 | ~0u, // no _has_bits_ |
191 | PROTOBUF_FIELD_OFFSET(::tensorflow::Event, _internal_metadata_), |
192 | ~0u, // no _extensions_ |
193 | PROTOBUF_FIELD_OFFSET(::tensorflow::Event, _oneof_case_[0]), |
194 | ~0u, // no _weak_field_map_ |
195 | PROTOBUF_FIELD_OFFSET(::tensorflow::Event, wall_time_), |
196 | PROTOBUF_FIELD_OFFSET(::tensorflow::Event, step_), |
197 | offsetof(::tensorflow::EventDefaultTypeInternal, file_version_), |
198 | offsetof(::tensorflow::EventDefaultTypeInternal, graph_def_), |
199 | offsetof(::tensorflow::EventDefaultTypeInternal, summary_), |
200 | offsetof(::tensorflow::EventDefaultTypeInternal, log_message_), |
201 | offsetof(::tensorflow::EventDefaultTypeInternal, session_log_), |
202 | offsetof(::tensorflow::EventDefaultTypeInternal, tagged_run_metadata_), |
203 | offsetof(::tensorflow::EventDefaultTypeInternal, meta_graph_def_), |
204 | PROTOBUF_FIELD_OFFSET(::tensorflow::Event, what_), |
205 | ~0u, // no _has_bits_ |
206 | PROTOBUF_FIELD_OFFSET(::tensorflow::LogMessage, _internal_metadata_), |
207 | ~0u, // no _extensions_ |
208 | ~0u, // no _oneof_case_ |
209 | ~0u, // no _weak_field_map_ |
210 | PROTOBUF_FIELD_OFFSET(::tensorflow::LogMessage, level_), |
211 | PROTOBUF_FIELD_OFFSET(::tensorflow::LogMessage, message_), |
212 | ~0u, // no _has_bits_ |
213 | PROTOBUF_FIELD_OFFSET(::tensorflow::SessionLog, _internal_metadata_), |
214 | ~0u, // no _extensions_ |
215 | ~0u, // no _oneof_case_ |
216 | ~0u, // no _weak_field_map_ |
217 | PROTOBUF_FIELD_OFFSET(::tensorflow::SessionLog, status_), |
218 | PROTOBUF_FIELD_OFFSET(::tensorflow::SessionLog, checkpoint_path_), |
219 | PROTOBUF_FIELD_OFFSET(::tensorflow::SessionLog, msg_), |
220 | ~0u, // no _has_bits_ |
221 | PROTOBUF_FIELD_OFFSET(::tensorflow::TaggedRunMetadata, _internal_metadata_), |
222 | ~0u, // no _extensions_ |
223 | ~0u, // no _oneof_case_ |
224 | ~0u, // no _weak_field_map_ |
225 | PROTOBUF_FIELD_OFFSET(::tensorflow::TaggedRunMetadata, tag_), |
226 | PROTOBUF_FIELD_OFFSET(::tensorflow::TaggedRunMetadata, run_metadata_), |
227 | ~0u, // no _has_bits_ |
228 | PROTOBUF_FIELD_OFFSET(::tensorflow::WatchdogConfig, _internal_metadata_), |
229 | ~0u, // no _extensions_ |
230 | ~0u, // no _oneof_case_ |
231 | ~0u, // no _weak_field_map_ |
232 | PROTOBUF_FIELD_OFFSET(::tensorflow::WatchdogConfig, timeout_ms_), |
233 | ~0u, // no _has_bits_ |
234 | PROTOBUF_FIELD_OFFSET(::tensorflow::RequestedExitCode, _internal_metadata_), |
235 | ~0u, // no _extensions_ |
236 | ~0u, // no _oneof_case_ |
237 | ~0u, // no _weak_field_map_ |
238 | PROTOBUF_FIELD_OFFSET(::tensorflow::RequestedExitCode, exit_code_), |
239 | ~0u, // no _has_bits_ |
240 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatRequest, _internal_metadata_), |
241 | ~0u, // no _extensions_ |
242 | ~0u, // no _oneof_case_ |
243 | ~0u, // no _weak_field_map_ |
244 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatRequest, shutdown_mode_), |
245 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatRequest, watchdog_config_), |
246 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatRequest, exit_code_), |
247 | ~0u, // no _has_bits_ |
248 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatResponse, _internal_metadata_), |
249 | ~0u, // no _extensions_ |
250 | ~0u, // no _oneof_case_ |
251 | ~0u, // no _weak_field_map_ |
252 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatResponse, health_status_), |
253 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatResponse, worker_log_), |
254 | PROTOBUF_FIELD_OFFSET(::tensorflow::WorkerHeartbeatResponse, hostname_), |
255 | }; |
256 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
257 | { 0, -1, sizeof(::tensorflow::Event)}, |
258 | { 15, -1, sizeof(::tensorflow::LogMessage)}, |
259 | { 22, -1, sizeof(::tensorflow::SessionLog)}, |
260 | { 30, -1, sizeof(::tensorflow::TaggedRunMetadata)}, |
261 | { 37, -1, sizeof(::tensorflow::WatchdogConfig)}, |
262 | { 43, -1, sizeof(::tensorflow::RequestedExitCode)}, |
263 | { 49, -1, sizeof(::tensorflow::WorkerHeartbeatRequest)}, |
264 | { 57, -1, sizeof(::tensorflow::WorkerHeartbeatResponse)}, |
265 | }; |
266 | |
267 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
268 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_Event_default_instance_), |
269 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_LogMessage_default_instance_), |
270 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SessionLog_default_instance_), |
271 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TaggedRunMetadata_default_instance_), |
272 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_WatchdogConfig_default_instance_), |
273 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RequestedExitCode_default_instance_), |
274 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_WorkerHeartbeatRequest_default_instance_), |
275 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_WorkerHeartbeatResponse_default_instance_), |
276 | }; |
277 | |
278 | const char descriptor_table_protodef_tensorflow_2fcore_2futil_2fevent_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
279 | "\n tensorflow/core/util/event.proto\022\ntens" |
280 | "orflow\032\'tensorflow/core/framework/summar" |
281 | "y.proto\"\277\002\n\005Event\022\021\n\twall_time\030\001 \001(\001\022\014\n\004" |
282 | "step\030\002 \001(\003\022\026\n\014file_version\030\003 \001(\tH\000\022\023\n\tgr" |
283 | "aph_def\030\004 \001(\014H\000\022&\n\007summary\030\005 \001(\0132\023.tenso" |
284 | "rflow.SummaryH\000\0221\n\013log_message\030\006 \001(\0132\026.t" |
285 | "ensorflow.LogMessageB\002\030\001H\000\022-\n\013session_lo" |
286 | "g\030\007 \001(\0132\026.tensorflow.SessionLogH\000\022<\n\023tag" |
287 | "ged_run_metadata\030\010 \001(\0132\035.tensorflow.Tagg" |
288 | "edRunMetadataH\000\022\030\n\016meta_graph_def\030\t \001(\014H" |
289 | "\000B\006\n\004what\"\241\001\n\nLogMessage\022+\n\005level\030\001 \001(\0162" |
290 | "\034.tensorflow.LogMessage.Level\022\017\n\007message" |
291 | "\030\002 \001(\t\"Q\n\005Level\022\013\n\007UNKNOWN\020\000\022\r\n\tDEBUGGIN" |
292 | "G\020\n\022\010\n\004INFO\020\024\022\010\n\004WARN\020\036\022\t\n\005ERROR\020(\022\t\n\005FA" |
293 | "TAL\0202\032\002\030\001:\002\030\001\"\266\001\n\nSessionLog\0224\n\006status\030\001" |
294 | " \001(\0162$.tensorflow.SessionLog.SessionStat" |
295 | "us\022\027\n\017checkpoint_path\030\002 \001(\t\022\013\n\003msg\030\003 \001(\t" |
296 | "\"L\n\rSessionStatus\022\026\n\022STATUS_UNSPECIFIED\020" |
297 | "\000\022\t\n\005START\020\001\022\010\n\004STOP\020\002\022\016\n\nCHECKPOINT\020\003\"6" |
298 | "\n\021TaggedRunMetadata\022\013\n\003tag\030\001 \001(\t\022\024\n\014run_" |
299 | "metadata\030\002 \001(\014\"$\n\016WatchdogConfig\022\022\n\ntime" |
300 | "out_ms\030\001 \001(\003\"&\n\021RequestedExitCode\022\021\n\texi" |
301 | "t_code\030\001 \001(\005\"\266\001\n\026WorkerHeartbeatRequest\022" |
302 | "5\n\rshutdown_mode\030\001 \001(\0162\036.tensorflow.Work" |
303 | "erShutdownMode\0223\n\017watchdog_config\030\002 \001(\0132" |
304 | "\032.tensorflow.WatchdogConfig\0220\n\texit_code" |
305 | "\030\003 \001(\0132\035.tensorflow.RequestedExitCode\"\203\001" |
306 | "\n\027WorkerHeartbeatResponse\022/\n\rhealth_stat" |
307 | "us\030\001 \001(\0162\030.tensorflow.WorkerHealth\022%\n\nwo" |
308 | "rker_log\030\002 \003(\0132\021.tensorflow.Event\022\020\n\010hos" |
309 | "tname\030\003 \001(\t*[\n\014WorkerHealth\022\006\n\002OK\020\000\022\034\n\030R" |
310 | "ECEIVED_SHUTDOWN_SIGNAL\020\001\022\022\n\016INTERNAL_ER" |
311 | "ROR\020\002\022\021\n\rSHUTTING_DOWN\020\003*k\n\022WorkerShutdo" |
312 | "wnMode\022\013\n\007DEFAULT\020\000\022\022\n\016NOT_CONFIGURED\020\001\022" |
313 | "\030\n\024WAIT_FOR_COORDINATOR\020\002\022\032\n\026SHUTDOWN_AF" |
314 | "TER_TIMEOUT\020\003Bp\n\023org.tensorflow.utilB\013Ev" |
315 | "entProtosP\001ZGgithub.com/tensorflow/tenso" |
316 | "rflow/tensorflow/go/core/util/event_go_p" |
317 | "roto\370\001\001b\006proto3" |
318 | ; |
319 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_deps[1] = { |
320 | &::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto, |
321 | }; |
322 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_sccs[8] = { |
323 | &scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
324 | &scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
325 | &scc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
326 | &scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
327 | &scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
328 | &scc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
329 | &scc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
330 | &scc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto.base, |
331 | }; |
332 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_once; |
333 | static bool descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_initialized = false; |
334 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto = { |
335 | &descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2futil_2fevent_2eproto, "tensorflow/core/util/event.proto" , 1535, |
336 | &descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_once, descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_sccs, descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto_deps, 8, 1, |
337 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2futil_2fevent_2eproto::offsets, |
338 | file_level_metadata_tensorflow_2fcore_2futil_2fevent_2eproto, 8, file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto, file_level_service_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto, |
339 | }; |
340 | |
341 | // Force running AddDescriptors() at dynamic initialization time. |
342 | static bool dynamic_init_dummy_tensorflow_2fcore_2futil_2fevent_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto), true); |
343 | namespace tensorflow { |
344 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LogMessage_Level_descriptor() { |
345 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto); |
346 | return file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto[0]; |
347 | } |
348 | bool LogMessage_Level_IsValid(int value) { |
349 | switch (value) { |
350 | case 0: |
351 | case 10: |
352 | case 20: |
353 | case 30: |
354 | case 40: |
355 | case 50: |
356 | return true; |
357 | default: |
358 | return false; |
359 | } |
360 | } |
361 | |
362 | #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
363 | constexpr LogMessage_Level LogMessage::UNKNOWN; |
364 | constexpr LogMessage_Level LogMessage::DEBUGGING; |
365 | constexpr LogMessage_Level LogMessage::INFO; |
366 | constexpr LogMessage_Level LogMessage::WARN; |
367 | constexpr LogMessage_Level LogMessage::ERROR; |
368 | constexpr LogMessage_Level LogMessage::FATAL; |
369 | constexpr LogMessage_Level LogMessage::Level_MIN; |
370 | constexpr LogMessage_Level LogMessage::Level_MAX; |
371 | constexpr int LogMessage::Level_ARRAYSIZE; |
372 | #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
373 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SessionLog_SessionStatus_descriptor() { |
374 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto); |
375 | return file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto[1]; |
376 | } |
377 | bool SessionLog_SessionStatus_IsValid(int value) { |
378 | switch (value) { |
379 | case 0: |
380 | case 1: |
381 | case 2: |
382 | case 3: |
383 | return true; |
384 | default: |
385 | return false; |
386 | } |
387 | } |
388 | |
389 | #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
390 | constexpr SessionLog_SessionStatus SessionLog::STATUS_UNSPECIFIED; |
391 | constexpr SessionLog_SessionStatus SessionLog::START; |
392 | constexpr SessionLog_SessionStatus SessionLog::STOP; |
393 | constexpr SessionLog_SessionStatus SessionLog::CHECKPOINT; |
394 | constexpr SessionLog_SessionStatus SessionLog::SessionStatus_MIN; |
395 | constexpr SessionLog_SessionStatus SessionLog::SessionStatus_MAX; |
396 | constexpr int SessionLog::SessionStatus_ARRAYSIZE; |
397 | #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
398 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WorkerHealth_descriptor() { |
399 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto); |
400 | return file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto[2]; |
401 | } |
402 | bool WorkerHealth_IsValid(int value) { |
403 | switch (value) { |
404 | case 0: |
405 | case 1: |
406 | case 2: |
407 | case 3: |
408 | return true; |
409 | default: |
410 | return false; |
411 | } |
412 | } |
413 | |
414 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WorkerShutdownMode_descriptor() { |
415 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2fevent_2eproto); |
416 | return file_level_enum_descriptors_tensorflow_2fcore_2futil_2fevent_2eproto[3]; |
417 | } |
418 | bool WorkerShutdownMode_IsValid(int value) { |
419 | switch (value) { |
420 | case 0: |
421 | case 1: |
422 | case 2: |
423 | case 3: |
424 | return true; |
425 | default: |
426 | return false; |
427 | } |
428 | } |
429 | |
430 | |
431 | // =================================================================== |
432 | |
433 | void Event::InitAsDefaultInstance() { |
434 | ::tensorflow::_Event_default_instance_.file_version_.UnsafeSetDefault( |
435 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
436 | ::tensorflow::_Event_default_instance_.graph_def_.UnsafeSetDefault( |
437 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
438 | ::tensorflow::_Event_default_instance_.summary_ = const_cast< ::tensorflow::Summary*>( |
439 | ::tensorflow::Summary::internal_default_instance()); |
440 | ::tensorflow::_Event_default_instance_.log_message_ = const_cast< ::tensorflow::LogMessage*>( |
441 | ::tensorflow::LogMessage::internal_default_instance()); |
442 | ::tensorflow::_Event_default_instance_.session_log_ = const_cast< ::tensorflow::SessionLog*>( |
443 | ::tensorflow::SessionLog::internal_default_instance()); |
444 | ::tensorflow::_Event_default_instance_.tagged_run_metadata_ = const_cast< ::tensorflow::TaggedRunMetadata*>( |
445 | ::tensorflow::TaggedRunMetadata::internal_default_instance()); |
446 | ::tensorflow::_Event_default_instance_.meta_graph_def_.UnsafeSetDefault( |
447 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
448 | } |
449 | class Event::_Internal { |
450 | public: |
451 | static const ::tensorflow::Summary& summary(const Event* msg); |
452 | static const ::tensorflow::LogMessage& log_message(const Event* msg); |
453 | static const ::tensorflow::SessionLog& session_log(const Event* msg); |
454 | static const ::tensorflow::TaggedRunMetadata& tagged_run_metadata(const Event* msg); |
455 | }; |
456 | |
457 | const ::tensorflow::Summary& |
458 | Event::_Internal::summary(const Event* msg) { |
459 | return *msg->what_.summary_; |
460 | } |
461 | const ::tensorflow::LogMessage& |
462 | Event::_Internal::log_message(const Event* msg) { |
463 | return *msg->what_.log_message_; |
464 | } |
465 | const ::tensorflow::SessionLog& |
466 | Event::_Internal::session_log(const Event* msg) { |
467 | return *msg->what_.session_log_; |
468 | } |
469 | const ::tensorflow::TaggedRunMetadata& |
470 | Event::_Internal::tagged_run_metadata(const Event* msg) { |
471 | return *msg->what_.tagged_run_metadata_; |
472 | } |
473 | void Event::set_allocated_summary(::tensorflow::Summary* summary) { |
474 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
475 | clear_what(); |
476 | if (summary) { |
477 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
478 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(summary)->GetArena(); |
479 | if (message_arena != submessage_arena) { |
480 | summary = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
481 | message_arena, summary, submessage_arena); |
482 | } |
483 | set_has_summary(); |
484 | what_.summary_ = summary; |
485 | } |
486 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Event.summary) |
487 | } |
488 | void Event::clear_summary() { |
489 | if (has_summary()) { |
490 | if (GetArenaNoVirtual() == nullptr) { |
491 | delete what_.summary_; |
492 | } |
493 | clear_has_what(); |
494 | } |
495 | } |
496 | void Event::set_allocated_log_message(::tensorflow::LogMessage* log_message) { |
497 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
498 | clear_what(); |
499 | if (log_message) { |
500 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
501 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(log_message); |
502 | if (message_arena != submessage_arena) { |
503 | log_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
504 | message_arena, log_message, submessage_arena); |
505 | } |
506 | set_has_log_message(); |
507 | what_.log_message_ = log_message; |
508 | } |
509 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Event.log_message) |
510 | } |
511 | void Event::set_allocated_session_log(::tensorflow::SessionLog* session_log) { |
512 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
513 | clear_what(); |
514 | if (session_log) { |
515 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
516 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(session_log); |
517 | if (message_arena != submessage_arena) { |
518 | session_log = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
519 | message_arena, session_log, submessage_arena); |
520 | } |
521 | set_has_session_log(); |
522 | what_.session_log_ = session_log; |
523 | } |
524 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Event.session_log) |
525 | } |
526 | void Event::set_allocated_tagged_run_metadata(::tensorflow::TaggedRunMetadata* tagged_run_metadata) { |
527 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
528 | clear_what(); |
529 | if (tagged_run_metadata) { |
530 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
531 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(tagged_run_metadata); |
532 | if (message_arena != submessage_arena) { |
533 | tagged_run_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
534 | message_arena, tagged_run_metadata, submessage_arena); |
535 | } |
536 | set_has_tagged_run_metadata(); |
537 | what_.tagged_run_metadata_ = tagged_run_metadata; |
538 | } |
539 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Event.tagged_run_metadata) |
540 | } |
541 | Event::Event() |
542 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
543 | SharedCtor(); |
544 | // @@protoc_insertion_point(constructor:tensorflow.Event) |
545 | } |
546 | Event::Event(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
547 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
548 | _internal_metadata_(arena) { |
549 | SharedCtor(); |
550 | RegisterArenaDtor(arena); |
551 | // @@protoc_insertion_point(arena_constructor:tensorflow.Event) |
552 | } |
553 | Event::Event(const Event& from) |
554 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
555 | _internal_metadata_(nullptr) { |
556 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
557 | ::memcpy(&wall_time_, &from.wall_time_, |
558 | static_cast<size_t>(reinterpret_cast<char*>(&step_) - |
559 | reinterpret_cast<char*>(&wall_time_)) + sizeof(step_)); |
560 | clear_has_what(); |
561 | switch (from.what_case()) { |
562 | case kFileVersion: { |
563 | set_file_version(from.file_version()); |
564 | break; |
565 | } |
566 | case kGraphDef: { |
567 | set_graph_def(from.graph_def()); |
568 | break; |
569 | } |
570 | case kSummary: { |
571 | mutable_summary()->::tensorflow::Summary::MergeFrom(from.summary()); |
572 | break; |
573 | } |
574 | case kLogMessage: { |
575 | mutable_log_message()->::tensorflow::LogMessage::MergeFrom(from.log_message()); |
576 | break; |
577 | } |
578 | case kSessionLog: { |
579 | mutable_session_log()->::tensorflow::SessionLog::MergeFrom(from.session_log()); |
580 | break; |
581 | } |
582 | case kTaggedRunMetadata: { |
583 | mutable_tagged_run_metadata()->::tensorflow::TaggedRunMetadata::MergeFrom(from.tagged_run_metadata()); |
584 | break; |
585 | } |
586 | case kMetaGraphDef: { |
587 | set_meta_graph_def(from.meta_graph_def()); |
588 | break; |
589 | } |
590 | case WHAT_NOT_SET: { |
591 | break; |
592 | } |
593 | } |
594 | // @@protoc_insertion_point(copy_constructor:tensorflow.Event) |
595 | } |
596 | |
597 | void Event::SharedCtor() { |
598 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
599 | ::memset(&wall_time_, 0, static_cast<size_t>( |
600 | reinterpret_cast<char*>(&step_) - |
601 | reinterpret_cast<char*>(&wall_time_)) + sizeof(step_)); |
602 | clear_has_what(); |
603 | } |
604 | |
605 | Event::~Event() { |
606 | // @@protoc_insertion_point(destructor:tensorflow.Event) |
607 | SharedDtor(); |
608 | } |
609 | |
610 | void Event::SharedDtor() { |
611 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
612 | if (has_what()) { |
613 | clear_what(); |
614 | } |
615 | } |
616 | |
617 | void Event::ArenaDtor(void* object) { |
618 | Event* _this = reinterpret_cast< Event* >(object); |
619 | (void)_this; |
620 | } |
621 | void Event::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
622 | } |
623 | void Event::SetCachedSize(int size) const { |
624 | _cached_size_.Set(size); |
625 | } |
626 | const Event& Event::default_instance() { |
627 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Event_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
628 | return *internal_default_instance(); |
629 | } |
630 | |
631 | |
632 | void Event::clear_what() { |
633 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.Event) |
634 | switch (what_case()) { |
635 | case kFileVersion: { |
636 | what_.file_version_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
637 | GetArenaNoVirtual()); |
638 | break; |
639 | } |
640 | case kGraphDef: { |
641 | what_.graph_def_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
642 | GetArenaNoVirtual()); |
643 | break; |
644 | } |
645 | case kSummary: { |
646 | if (GetArenaNoVirtual() == nullptr) { |
647 | delete what_.summary_; |
648 | } |
649 | break; |
650 | } |
651 | case kLogMessage: { |
652 | if (GetArenaNoVirtual() == nullptr) { |
653 | delete what_.log_message_; |
654 | } |
655 | break; |
656 | } |
657 | case kSessionLog: { |
658 | if (GetArenaNoVirtual() == nullptr) { |
659 | delete what_.session_log_; |
660 | } |
661 | break; |
662 | } |
663 | case kTaggedRunMetadata: { |
664 | if (GetArenaNoVirtual() == nullptr) { |
665 | delete what_.tagged_run_metadata_; |
666 | } |
667 | break; |
668 | } |
669 | case kMetaGraphDef: { |
670 | what_.meta_graph_def_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
671 | GetArenaNoVirtual()); |
672 | break; |
673 | } |
674 | case WHAT_NOT_SET: { |
675 | break; |
676 | } |
677 | } |
678 | _oneof_case_[0] = WHAT_NOT_SET; |
679 | } |
680 | |
681 | |
682 | void Event::Clear() { |
683 | // @@protoc_insertion_point(message_clear_start:tensorflow.Event) |
684 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
685 | // Prevent compiler warnings about cached_has_bits being unused |
686 | (void) cached_has_bits; |
687 | |
688 | ::memset(&wall_time_, 0, static_cast<size_t>( |
689 | reinterpret_cast<char*>(&step_) - |
690 | reinterpret_cast<char*>(&wall_time_)) + sizeof(step_)); |
691 | clear_what(); |
692 | _internal_metadata_.Clear(); |
693 | } |
694 | |
695 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
696 | const char* Event::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
697 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
698 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
699 | while (!ctx->Done(&ptr)) { |
700 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
701 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
702 | CHK_(ptr); |
703 | switch (tag >> 3) { |
704 | // double wall_time = 1; |
705 | case 1: |
706 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
707 | wall_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
708 | ptr += sizeof(double); |
709 | } else goto handle_unusual; |
710 | continue; |
711 | // int64 step = 2; |
712 | case 2: |
713 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
714 | step_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
715 | CHK_(ptr); |
716 | } else goto handle_unusual; |
717 | continue; |
718 | // string file_version = 3; |
719 | case 3: |
720 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
721 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_file_version(), ptr, ctx, "tensorflow.Event.file_version" ); |
722 | CHK_(ptr); |
723 | } else goto handle_unusual; |
724 | continue; |
725 | // bytes graph_def = 4; |
726 | case 4: |
727 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
728 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_graph_def(), ptr, ctx); |
729 | CHK_(ptr); |
730 | } else goto handle_unusual; |
731 | continue; |
732 | // .tensorflow.Summary summary = 5; |
733 | case 5: |
734 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
735 | ptr = ctx->ParseMessage(mutable_summary(), ptr); |
736 | CHK_(ptr); |
737 | } else goto handle_unusual; |
738 | continue; |
739 | // .tensorflow.LogMessage log_message = 6 [deprecated = true]; |
740 | case 6: |
741 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
742 | ptr = ctx->ParseMessage(mutable_log_message(), ptr); |
743 | CHK_(ptr); |
744 | } else goto handle_unusual; |
745 | continue; |
746 | // .tensorflow.SessionLog session_log = 7; |
747 | case 7: |
748 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
749 | ptr = ctx->ParseMessage(mutable_session_log(), ptr); |
750 | CHK_(ptr); |
751 | } else goto handle_unusual; |
752 | continue; |
753 | // .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; |
754 | case 8: |
755 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
756 | ptr = ctx->ParseMessage(mutable_tagged_run_metadata(), ptr); |
757 | CHK_(ptr); |
758 | } else goto handle_unusual; |
759 | continue; |
760 | // bytes meta_graph_def = 9; |
761 | case 9: |
762 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { |
763 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_meta_graph_def(), ptr, ctx); |
764 | CHK_(ptr); |
765 | } else goto handle_unusual; |
766 | continue; |
767 | default: { |
768 | handle_unusual: |
769 | if ((tag & 7) == 4 || tag == 0) { |
770 | ctx->SetLastTag(tag); |
771 | goto success; |
772 | } |
773 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
774 | CHK_(ptr != nullptr); |
775 | continue; |
776 | } |
777 | } // switch |
778 | } // while |
779 | success: |
780 | return ptr; |
781 | failure: |
782 | ptr = nullptr; |
783 | goto success; |
784 | #undef CHK_ |
785 | } |
786 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
787 | bool Event::MergePartialFromCodedStream( |
788 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
789 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
790 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
791 | // @@protoc_insertion_point(parse_start:tensorflow.Event) |
792 | for (;;) { |
793 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
794 | tag = p.first; |
795 | if (!p.second) goto handle_unusual; |
796 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
797 | // double wall_time = 1; |
798 | case 1: { |
799 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { |
800 | |
801 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
802 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
803 | input, &wall_time_))); |
804 | } else { |
805 | goto handle_unusual; |
806 | } |
807 | break; |
808 | } |
809 | |
810 | // int64 step = 2; |
811 | case 2: { |
812 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
813 | |
814 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
815 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
816 | input, &step_))); |
817 | } else { |
818 | goto handle_unusual; |
819 | } |
820 | break; |
821 | } |
822 | |
823 | // string file_version = 3; |
824 | case 3: { |
825 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
826 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
827 | input, this->mutable_file_version())); |
828 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
829 | this->file_version().data(), static_cast<int>(this->file_version().length()), |
830 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
831 | "tensorflow.Event.file_version" )); |
832 | } else { |
833 | goto handle_unusual; |
834 | } |
835 | break; |
836 | } |
837 | |
838 | // bytes graph_def = 4; |
839 | case 4: { |
840 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
841 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
842 | input, this->mutable_graph_def())); |
843 | } else { |
844 | goto handle_unusual; |
845 | } |
846 | break; |
847 | } |
848 | |
849 | // .tensorflow.Summary summary = 5; |
850 | case 5: { |
851 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
852 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
853 | input, mutable_summary())); |
854 | } else { |
855 | goto handle_unusual; |
856 | } |
857 | break; |
858 | } |
859 | |
860 | // .tensorflow.LogMessage log_message = 6 [deprecated = true]; |
861 | case 6: { |
862 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
863 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
864 | input, mutable_log_message())); |
865 | } else { |
866 | goto handle_unusual; |
867 | } |
868 | break; |
869 | } |
870 | |
871 | // .tensorflow.SessionLog session_log = 7; |
872 | case 7: { |
873 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { |
874 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
875 | input, mutable_session_log())); |
876 | } else { |
877 | goto handle_unusual; |
878 | } |
879 | break; |
880 | } |
881 | |
882 | // .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; |
883 | case 8: { |
884 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { |
885 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
886 | input, mutable_tagged_run_metadata())); |
887 | } else { |
888 | goto handle_unusual; |
889 | } |
890 | break; |
891 | } |
892 | |
893 | // bytes meta_graph_def = 9; |
894 | case 9: { |
895 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { |
896 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
897 | input, this->mutable_meta_graph_def())); |
898 | } else { |
899 | goto handle_unusual; |
900 | } |
901 | break; |
902 | } |
903 | |
904 | default: { |
905 | handle_unusual: |
906 | if (tag == 0) { |
907 | goto success; |
908 | } |
909 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
910 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
911 | break; |
912 | } |
913 | } |
914 | } |
915 | success: |
916 | // @@protoc_insertion_point(parse_success:tensorflow.Event) |
917 | return true; |
918 | failure: |
919 | // @@protoc_insertion_point(parse_failure:tensorflow.Event) |
920 | return false; |
921 | #undef DO_ |
922 | } |
923 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
924 | |
925 | void Event::SerializeWithCachedSizes( |
926 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
927 | // @@protoc_insertion_point(serialize_start:tensorflow.Event) |
928 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
929 | (void) cached_has_bits; |
930 | |
931 | // double wall_time = 1; |
932 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
933 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(1, this->wall_time(), output); |
934 | } |
935 | |
936 | // int64 step = 2; |
937 | if (this->step() != 0) { |
938 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->step(), output); |
939 | } |
940 | |
941 | // string file_version = 3; |
942 | if (has_file_version()) { |
943 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
944 | this->file_version().data(), static_cast<int>(this->file_version().length()), |
945 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
946 | "tensorflow.Event.file_version" ); |
947 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
948 | 3, this->file_version(), output); |
949 | } |
950 | |
951 | // bytes graph_def = 4; |
952 | if (has_graph_def()) { |
953 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( |
954 | 4, this->graph_def(), output); |
955 | } |
956 | |
957 | // .tensorflow.Summary summary = 5; |
958 | if (has_summary()) { |
959 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
960 | 5, _Internal::summary(this), output); |
961 | } |
962 | |
963 | // .tensorflow.LogMessage log_message = 6 [deprecated = true]; |
964 | if (has_log_message()) { |
965 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
966 | 6, _Internal::log_message(this), output); |
967 | } |
968 | |
969 | // .tensorflow.SessionLog session_log = 7; |
970 | if (has_session_log()) { |
971 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
972 | 7, _Internal::session_log(this), output); |
973 | } |
974 | |
975 | // .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; |
976 | if (has_tagged_run_metadata()) { |
977 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
978 | 8, _Internal::tagged_run_metadata(this), output); |
979 | } |
980 | |
981 | // bytes meta_graph_def = 9; |
982 | if (has_meta_graph_def()) { |
983 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( |
984 | 9, this->meta_graph_def(), output); |
985 | } |
986 | |
987 | if (_internal_metadata_.have_unknown_fields()) { |
988 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
989 | _internal_metadata_.unknown_fields(), output); |
990 | } |
991 | // @@protoc_insertion_point(serialize_end:tensorflow.Event) |
992 | } |
993 | |
994 | ::PROTOBUF_NAMESPACE_ID::uint8* Event::InternalSerializeWithCachedSizesToArray( |
995 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
996 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.Event) |
997 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
998 | (void) cached_has_bits; |
999 | |
1000 | // double wall_time = 1; |
1001 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
1002 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->wall_time(), target); |
1003 | } |
1004 | |
1005 | // int64 step = 2; |
1006 | if (this->step() != 0) { |
1007 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->step(), target); |
1008 | } |
1009 | |
1010 | // string file_version = 3; |
1011 | if (has_file_version()) { |
1012 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1013 | this->file_version().data(), static_cast<int>(this->file_version().length()), |
1014 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1015 | "tensorflow.Event.file_version" ); |
1016 | target = |
1017 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1018 | 3, this->file_version(), target); |
1019 | } |
1020 | |
1021 | // bytes graph_def = 4; |
1022 | if (has_graph_def()) { |
1023 | target = |
1024 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( |
1025 | 4, this->graph_def(), target); |
1026 | } |
1027 | |
1028 | // .tensorflow.Summary summary = 5; |
1029 | if (has_summary()) { |
1030 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1031 | InternalWriteMessageToArray( |
1032 | 5, _Internal::summary(this), target); |
1033 | } |
1034 | |
1035 | // .tensorflow.LogMessage log_message = 6 [deprecated = true]; |
1036 | if (has_log_message()) { |
1037 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1038 | InternalWriteMessageToArray( |
1039 | 6, _Internal::log_message(this), target); |
1040 | } |
1041 | |
1042 | // .tensorflow.SessionLog session_log = 7; |
1043 | if (has_session_log()) { |
1044 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1045 | InternalWriteMessageToArray( |
1046 | 7, _Internal::session_log(this), target); |
1047 | } |
1048 | |
1049 | // .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; |
1050 | if (has_tagged_run_metadata()) { |
1051 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1052 | InternalWriteMessageToArray( |
1053 | 8, _Internal::tagged_run_metadata(this), target); |
1054 | } |
1055 | |
1056 | // bytes meta_graph_def = 9; |
1057 | if (has_meta_graph_def()) { |
1058 | target = |
1059 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( |
1060 | 9, this->meta_graph_def(), target); |
1061 | } |
1062 | |
1063 | if (_internal_metadata_.have_unknown_fields()) { |
1064 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1065 | _internal_metadata_.unknown_fields(), target); |
1066 | } |
1067 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.Event) |
1068 | return target; |
1069 | } |
1070 | |
1071 | size_t Event::ByteSizeLong() const { |
1072 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.Event) |
1073 | size_t total_size = 0; |
1074 | |
1075 | if (_internal_metadata_.have_unknown_fields()) { |
1076 | total_size += |
1077 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1078 | _internal_metadata_.unknown_fields()); |
1079 | } |
1080 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1081 | // Prevent compiler warnings about cached_has_bits being unused |
1082 | (void) cached_has_bits; |
1083 | |
1084 | // double wall_time = 1; |
1085 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
1086 | total_size += 1 + 8; |
1087 | } |
1088 | |
1089 | // int64 step = 2; |
1090 | if (this->step() != 0) { |
1091 | total_size += 1 + |
1092 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
1093 | this->step()); |
1094 | } |
1095 | |
1096 | switch (what_case()) { |
1097 | // string file_version = 3; |
1098 | case kFileVersion: { |
1099 | total_size += 1 + |
1100 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1101 | this->file_version()); |
1102 | break; |
1103 | } |
1104 | // bytes graph_def = 4; |
1105 | case kGraphDef: { |
1106 | total_size += 1 + |
1107 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
1108 | this->graph_def()); |
1109 | break; |
1110 | } |
1111 | // .tensorflow.Summary summary = 5; |
1112 | case kSummary: { |
1113 | total_size += 1 + |
1114 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1115 | *what_.summary_); |
1116 | break; |
1117 | } |
1118 | // .tensorflow.LogMessage log_message = 6 [deprecated = true]; |
1119 | case kLogMessage: { |
1120 | total_size += 1 + |
1121 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1122 | *what_.log_message_); |
1123 | break; |
1124 | } |
1125 | // .tensorflow.SessionLog session_log = 7; |
1126 | case kSessionLog: { |
1127 | total_size += 1 + |
1128 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1129 | *what_.session_log_); |
1130 | break; |
1131 | } |
1132 | // .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; |
1133 | case kTaggedRunMetadata: { |
1134 | total_size += 1 + |
1135 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1136 | *what_.tagged_run_metadata_); |
1137 | break; |
1138 | } |
1139 | // bytes meta_graph_def = 9; |
1140 | case kMetaGraphDef: { |
1141 | total_size += 1 + |
1142 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
1143 | this->meta_graph_def()); |
1144 | break; |
1145 | } |
1146 | case WHAT_NOT_SET: { |
1147 | break; |
1148 | } |
1149 | } |
1150 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1151 | SetCachedSize(cached_size); |
1152 | return total_size; |
1153 | } |
1154 | |
1155 | void Event::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1156 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.Event) |
1157 | GOOGLE_DCHECK_NE(&from, this); |
1158 | const Event* source = |
1159 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Event>( |
1160 | &from); |
1161 | if (source == nullptr) { |
1162 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.Event) |
1163 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1164 | } else { |
1165 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.Event) |
1166 | MergeFrom(*source); |
1167 | } |
1168 | } |
1169 | |
1170 | void Event::MergeFrom(const Event& from) { |
1171 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.Event) |
1172 | GOOGLE_DCHECK_NE(&from, this); |
1173 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1174 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1175 | (void) cached_has_bits; |
1176 | |
1177 | if (!(from.wall_time() <= 0 && from.wall_time() >= 0)) { |
1178 | set_wall_time(from.wall_time()); |
1179 | } |
1180 | if (from.step() != 0) { |
1181 | set_step(from.step()); |
1182 | } |
1183 | switch (from.what_case()) { |
1184 | case kFileVersion: { |
1185 | set_file_version(from.file_version()); |
1186 | break; |
1187 | } |
1188 | case kGraphDef: { |
1189 | set_graph_def(from.graph_def()); |
1190 | break; |
1191 | } |
1192 | case kSummary: { |
1193 | mutable_summary()->::tensorflow::Summary::MergeFrom(from.summary()); |
1194 | break; |
1195 | } |
1196 | case kLogMessage: { |
1197 | mutable_log_message()->::tensorflow::LogMessage::MergeFrom(from.log_message()); |
1198 | break; |
1199 | } |
1200 | case kSessionLog: { |
1201 | mutable_session_log()->::tensorflow::SessionLog::MergeFrom(from.session_log()); |
1202 | break; |
1203 | } |
1204 | case kTaggedRunMetadata: { |
1205 | mutable_tagged_run_metadata()->::tensorflow::TaggedRunMetadata::MergeFrom(from.tagged_run_metadata()); |
1206 | break; |
1207 | } |
1208 | case kMetaGraphDef: { |
1209 | set_meta_graph_def(from.meta_graph_def()); |
1210 | break; |
1211 | } |
1212 | case WHAT_NOT_SET: { |
1213 | break; |
1214 | } |
1215 | } |
1216 | } |
1217 | |
1218 | void Event::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1219 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.Event) |
1220 | if (&from == this) return; |
1221 | Clear(); |
1222 | MergeFrom(from); |
1223 | } |
1224 | |
1225 | void Event::CopyFrom(const Event& from) { |
1226 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.Event) |
1227 | if (&from == this) return; |
1228 | Clear(); |
1229 | MergeFrom(from); |
1230 | } |
1231 | |
1232 | bool Event::IsInitialized() const { |
1233 | return true; |
1234 | } |
1235 | |
1236 | void Event::InternalSwap(Event* other) { |
1237 | using std::swap; |
1238 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1239 | swap(wall_time_, other->wall_time_); |
1240 | swap(step_, other->step_); |
1241 | swap(what_, other->what_); |
1242 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
1243 | } |
1244 | |
1245 | ::PROTOBUF_NAMESPACE_ID::Metadata Event::GetMetadata() const { |
1246 | return GetMetadataStatic(); |
1247 | } |
1248 | |
1249 | |
1250 | // =================================================================== |
1251 | |
1252 | void LogMessage::InitAsDefaultInstance() { |
1253 | } |
1254 | class LogMessage::_Internal { |
1255 | public: |
1256 | }; |
1257 | |
1258 | LogMessage::LogMessage() |
1259 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1260 | SharedCtor(); |
1261 | // @@protoc_insertion_point(constructor:tensorflow.LogMessage) |
1262 | } |
1263 | LogMessage::LogMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1264 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1265 | _internal_metadata_(arena) { |
1266 | SharedCtor(); |
1267 | RegisterArenaDtor(arena); |
1268 | // @@protoc_insertion_point(arena_constructor:tensorflow.LogMessage) |
1269 | } |
1270 | LogMessage::LogMessage(const LogMessage& from) |
1271 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1272 | _internal_metadata_(nullptr) { |
1273 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1274 | message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1275 | if (!from.message().empty()) { |
1276 | message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message(), |
1277 | GetArenaNoVirtual()); |
1278 | } |
1279 | level_ = from.level_; |
1280 | // @@protoc_insertion_point(copy_constructor:tensorflow.LogMessage) |
1281 | } |
1282 | |
1283 | void LogMessage::SharedCtor() { |
1284 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
1285 | message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1286 | level_ = 0; |
1287 | } |
1288 | |
1289 | LogMessage::~LogMessage() { |
1290 | // @@protoc_insertion_point(destructor:tensorflow.LogMessage) |
1291 | SharedDtor(); |
1292 | } |
1293 | |
1294 | void LogMessage::SharedDtor() { |
1295 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1296 | message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1297 | } |
1298 | |
1299 | void LogMessage::ArenaDtor(void* object) { |
1300 | LogMessage* _this = reinterpret_cast< LogMessage* >(object); |
1301 | (void)_this; |
1302 | } |
1303 | void LogMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1304 | } |
1305 | void LogMessage::SetCachedSize(int size) const { |
1306 | _cached_size_.Set(size); |
1307 | } |
1308 | const LogMessage& LogMessage::default_instance() { |
1309 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LogMessage_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
1310 | return *internal_default_instance(); |
1311 | } |
1312 | |
1313 | |
1314 | void LogMessage::Clear() { |
1315 | // @@protoc_insertion_point(message_clear_start:tensorflow.LogMessage) |
1316 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1317 | // Prevent compiler warnings about cached_has_bits being unused |
1318 | (void) cached_has_bits; |
1319 | |
1320 | message_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1321 | level_ = 0; |
1322 | _internal_metadata_.Clear(); |
1323 | } |
1324 | |
1325 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1326 | const char* LogMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1327 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1328 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1329 | while (!ctx->Done(&ptr)) { |
1330 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1331 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1332 | CHK_(ptr); |
1333 | switch (tag >> 3) { |
1334 | // .tensorflow.LogMessage.Level level = 1; |
1335 | case 1: |
1336 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
1337 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1338 | CHK_(ptr); |
1339 | set_level(static_cast<::tensorflow::LogMessage_Level>(val)); |
1340 | } else goto handle_unusual; |
1341 | continue; |
1342 | // string message = 2; |
1343 | case 2: |
1344 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1345 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_message(), ptr, ctx, "tensorflow.LogMessage.message" ); |
1346 | CHK_(ptr); |
1347 | } else goto handle_unusual; |
1348 | continue; |
1349 | default: { |
1350 | handle_unusual: |
1351 | if ((tag & 7) == 4 || tag == 0) { |
1352 | ctx->SetLastTag(tag); |
1353 | goto success; |
1354 | } |
1355 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1356 | CHK_(ptr != nullptr); |
1357 | continue; |
1358 | } |
1359 | } // switch |
1360 | } // while |
1361 | success: |
1362 | return ptr; |
1363 | failure: |
1364 | ptr = nullptr; |
1365 | goto success; |
1366 | #undef CHK_ |
1367 | } |
1368 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1369 | bool LogMessage::MergePartialFromCodedStream( |
1370 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1371 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1372 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1373 | // @@protoc_insertion_point(parse_start:tensorflow.LogMessage) |
1374 | for (;;) { |
1375 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1376 | tag = p.first; |
1377 | if (!p.second) goto handle_unusual; |
1378 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1379 | // .tensorflow.LogMessage.Level level = 1; |
1380 | case 1: { |
1381 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
1382 | int value = 0; |
1383 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1384 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
1385 | input, &value))); |
1386 | set_level(static_cast< ::tensorflow::LogMessage_Level >(value)); |
1387 | } else { |
1388 | goto handle_unusual; |
1389 | } |
1390 | break; |
1391 | } |
1392 | |
1393 | // string message = 2; |
1394 | case 2: { |
1395 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1396 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1397 | input, this->mutable_message())); |
1398 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1399 | this->message().data(), static_cast<int>(this->message().length()), |
1400 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1401 | "tensorflow.LogMessage.message" )); |
1402 | } else { |
1403 | goto handle_unusual; |
1404 | } |
1405 | break; |
1406 | } |
1407 | |
1408 | default: { |
1409 | handle_unusual: |
1410 | if (tag == 0) { |
1411 | goto success; |
1412 | } |
1413 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1414 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1415 | break; |
1416 | } |
1417 | } |
1418 | } |
1419 | success: |
1420 | // @@protoc_insertion_point(parse_success:tensorflow.LogMessage) |
1421 | return true; |
1422 | failure: |
1423 | // @@protoc_insertion_point(parse_failure:tensorflow.LogMessage) |
1424 | return false; |
1425 | #undef DO_ |
1426 | } |
1427 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1428 | |
1429 | void LogMessage::SerializeWithCachedSizes( |
1430 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1431 | // @@protoc_insertion_point(serialize_start:tensorflow.LogMessage) |
1432 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1433 | (void) cached_has_bits; |
1434 | |
1435 | // .tensorflow.LogMessage.Level level = 1; |
1436 | if (this->level() != 0) { |
1437 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
1438 | 1, this->level(), output); |
1439 | } |
1440 | |
1441 | // string message = 2; |
1442 | if (this->message().size() > 0) { |
1443 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1444 | this->message().data(), static_cast<int>(this->message().length()), |
1445 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1446 | "tensorflow.LogMessage.message" ); |
1447 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1448 | 2, this->message(), output); |
1449 | } |
1450 | |
1451 | if (_internal_metadata_.have_unknown_fields()) { |
1452 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1453 | _internal_metadata_.unknown_fields(), output); |
1454 | } |
1455 | // @@protoc_insertion_point(serialize_end:tensorflow.LogMessage) |
1456 | } |
1457 | |
1458 | ::PROTOBUF_NAMESPACE_ID::uint8* LogMessage::InternalSerializeWithCachedSizesToArray( |
1459 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1460 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.LogMessage) |
1461 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1462 | (void) cached_has_bits; |
1463 | |
1464 | // .tensorflow.LogMessage.Level level = 1; |
1465 | if (this->level() != 0) { |
1466 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
1467 | 1, this->level(), target); |
1468 | } |
1469 | |
1470 | // string message = 2; |
1471 | if (this->message().size() > 0) { |
1472 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1473 | this->message().data(), static_cast<int>(this->message().length()), |
1474 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1475 | "tensorflow.LogMessage.message" ); |
1476 | target = |
1477 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1478 | 2, this->message(), target); |
1479 | } |
1480 | |
1481 | if (_internal_metadata_.have_unknown_fields()) { |
1482 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1483 | _internal_metadata_.unknown_fields(), target); |
1484 | } |
1485 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.LogMessage) |
1486 | return target; |
1487 | } |
1488 | |
1489 | size_t LogMessage::ByteSizeLong() const { |
1490 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.LogMessage) |
1491 | size_t total_size = 0; |
1492 | |
1493 | if (_internal_metadata_.have_unknown_fields()) { |
1494 | total_size += |
1495 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1496 | _internal_metadata_.unknown_fields()); |
1497 | } |
1498 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1499 | // Prevent compiler warnings about cached_has_bits being unused |
1500 | (void) cached_has_bits; |
1501 | |
1502 | // string message = 2; |
1503 | if (this->message().size() > 0) { |
1504 | total_size += 1 + |
1505 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1506 | this->message()); |
1507 | } |
1508 | |
1509 | // .tensorflow.LogMessage.Level level = 1; |
1510 | if (this->level() != 0) { |
1511 | total_size += 1 + |
1512 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->level()); |
1513 | } |
1514 | |
1515 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1516 | SetCachedSize(cached_size); |
1517 | return total_size; |
1518 | } |
1519 | |
1520 | void LogMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1521 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.LogMessage) |
1522 | GOOGLE_DCHECK_NE(&from, this); |
1523 | const LogMessage* source = |
1524 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LogMessage>( |
1525 | &from); |
1526 | if (source == nullptr) { |
1527 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.LogMessage) |
1528 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1529 | } else { |
1530 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.LogMessage) |
1531 | MergeFrom(*source); |
1532 | } |
1533 | } |
1534 | |
1535 | void LogMessage::MergeFrom(const LogMessage& from) { |
1536 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.LogMessage) |
1537 | GOOGLE_DCHECK_NE(&from, this); |
1538 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1539 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1540 | (void) cached_has_bits; |
1541 | |
1542 | if (from.message().size() > 0) { |
1543 | set_message(from.message()); |
1544 | } |
1545 | if (from.level() != 0) { |
1546 | set_level(from.level()); |
1547 | } |
1548 | } |
1549 | |
1550 | void LogMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1551 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.LogMessage) |
1552 | if (&from == this) return; |
1553 | Clear(); |
1554 | MergeFrom(from); |
1555 | } |
1556 | |
1557 | void LogMessage::CopyFrom(const LogMessage& from) { |
1558 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.LogMessage) |
1559 | if (&from == this) return; |
1560 | Clear(); |
1561 | MergeFrom(from); |
1562 | } |
1563 | |
1564 | bool LogMessage::IsInitialized() const { |
1565 | return true; |
1566 | } |
1567 | |
1568 | void LogMessage::InternalSwap(LogMessage* other) { |
1569 | using std::swap; |
1570 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1571 | message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1572 | GetArenaNoVirtual()); |
1573 | swap(level_, other->level_); |
1574 | } |
1575 | |
1576 | ::PROTOBUF_NAMESPACE_ID::Metadata LogMessage::GetMetadata() const { |
1577 | return GetMetadataStatic(); |
1578 | } |
1579 | |
1580 | |
1581 | // =================================================================== |
1582 | |
1583 | void SessionLog::InitAsDefaultInstance() { |
1584 | } |
1585 | class SessionLog::_Internal { |
1586 | public: |
1587 | }; |
1588 | |
1589 | SessionLog::SessionLog() |
1590 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1591 | SharedCtor(); |
1592 | // @@protoc_insertion_point(constructor:tensorflow.SessionLog) |
1593 | } |
1594 | SessionLog::SessionLog(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1595 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1596 | _internal_metadata_(arena) { |
1597 | SharedCtor(); |
1598 | RegisterArenaDtor(arena); |
1599 | // @@protoc_insertion_point(arena_constructor:tensorflow.SessionLog) |
1600 | } |
1601 | SessionLog::SessionLog(const SessionLog& from) |
1602 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1603 | _internal_metadata_(nullptr) { |
1604 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1605 | checkpoint_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1606 | if (!from.checkpoint_path().empty()) { |
1607 | checkpoint_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.checkpoint_path(), |
1608 | GetArenaNoVirtual()); |
1609 | } |
1610 | msg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1611 | if (!from.msg().empty()) { |
1612 | msg_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.msg(), |
1613 | GetArenaNoVirtual()); |
1614 | } |
1615 | status_ = from.status_; |
1616 | // @@protoc_insertion_point(copy_constructor:tensorflow.SessionLog) |
1617 | } |
1618 | |
1619 | void SessionLog::SharedCtor() { |
1620 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
1621 | checkpoint_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1622 | msg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1623 | status_ = 0; |
1624 | } |
1625 | |
1626 | SessionLog::~SessionLog() { |
1627 | // @@protoc_insertion_point(destructor:tensorflow.SessionLog) |
1628 | SharedDtor(); |
1629 | } |
1630 | |
1631 | void SessionLog::SharedDtor() { |
1632 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1633 | checkpoint_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1634 | msg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1635 | } |
1636 | |
1637 | void SessionLog::ArenaDtor(void* object) { |
1638 | SessionLog* _this = reinterpret_cast< SessionLog* >(object); |
1639 | (void)_this; |
1640 | } |
1641 | void SessionLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1642 | } |
1643 | void SessionLog::SetCachedSize(int size) const { |
1644 | _cached_size_.Set(size); |
1645 | } |
1646 | const SessionLog& SessionLog::default_instance() { |
1647 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SessionLog_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
1648 | return *internal_default_instance(); |
1649 | } |
1650 | |
1651 | |
1652 | void SessionLog::Clear() { |
1653 | // @@protoc_insertion_point(message_clear_start:tensorflow.SessionLog) |
1654 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1655 | // Prevent compiler warnings about cached_has_bits being unused |
1656 | (void) cached_has_bits; |
1657 | |
1658 | checkpoint_path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1659 | msg_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1660 | status_ = 0; |
1661 | _internal_metadata_.Clear(); |
1662 | } |
1663 | |
1664 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1665 | const char* SessionLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1666 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1667 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1668 | while (!ctx->Done(&ptr)) { |
1669 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1670 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1671 | CHK_(ptr); |
1672 | switch (tag >> 3) { |
1673 | // .tensorflow.SessionLog.SessionStatus status = 1; |
1674 | case 1: |
1675 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
1676 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1677 | CHK_(ptr); |
1678 | set_status(static_cast<::tensorflow::SessionLog_SessionStatus>(val)); |
1679 | } else goto handle_unusual; |
1680 | continue; |
1681 | // string checkpoint_path = 2; |
1682 | case 2: |
1683 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1684 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_checkpoint_path(), ptr, ctx, "tensorflow.SessionLog.checkpoint_path" ); |
1685 | CHK_(ptr); |
1686 | } else goto handle_unusual; |
1687 | continue; |
1688 | // string msg = 3; |
1689 | case 3: |
1690 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
1691 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_msg(), ptr, ctx, "tensorflow.SessionLog.msg" ); |
1692 | CHK_(ptr); |
1693 | } else goto handle_unusual; |
1694 | continue; |
1695 | default: { |
1696 | handle_unusual: |
1697 | if ((tag & 7) == 4 || tag == 0) { |
1698 | ctx->SetLastTag(tag); |
1699 | goto success; |
1700 | } |
1701 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1702 | CHK_(ptr != nullptr); |
1703 | continue; |
1704 | } |
1705 | } // switch |
1706 | } // while |
1707 | success: |
1708 | return ptr; |
1709 | failure: |
1710 | ptr = nullptr; |
1711 | goto success; |
1712 | #undef CHK_ |
1713 | } |
1714 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1715 | bool SessionLog::MergePartialFromCodedStream( |
1716 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1717 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1718 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1719 | // @@protoc_insertion_point(parse_start:tensorflow.SessionLog) |
1720 | for (;;) { |
1721 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1722 | tag = p.first; |
1723 | if (!p.second) goto handle_unusual; |
1724 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1725 | // .tensorflow.SessionLog.SessionStatus status = 1; |
1726 | case 1: { |
1727 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
1728 | int value = 0; |
1729 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1730 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
1731 | input, &value))); |
1732 | set_status(static_cast< ::tensorflow::SessionLog_SessionStatus >(value)); |
1733 | } else { |
1734 | goto handle_unusual; |
1735 | } |
1736 | break; |
1737 | } |
1738 | |
1739 | // string checkpoint_path = 2; |
1740 | case 2: { |
1741 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1742 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1743 | input, this->mutable_checkpoint_path())); |
1744 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1745 | this->checkpoint_path().data(), static_cast<int>(this->checkpoint_path().length()), |
1746 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1747 | "tensorflow.SessionLog.checkpoint_path" )); |
1748 | } else { |
1749 | goto handle_unusual; |
1750 | } |
1751 | break; |
1752 | } |
1753 | |
1754 | // string msg = 3; |
1755 | case 3: { |
1756 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
1757 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1758 | input, this->mutable_msg())); |
1759 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1760 | this->msg().data(), static_cast<int>(this->msg().length()), |
1761 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1762 | "tensorflow.SessionLog.msg" )); |
1763 | } else { |
1764 | goto handle_unusual; |
1765 | } |
1766 | break; |
1767 | } |
1768 | |
1769 | default: { |
1770 | handle_unusual: |
1771 | if (tag == 0) { |
1772 | goto success; |
1773 | } |
1774 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1775 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1776 | break; |
1777 | } |
1778 | } |
1779 | } |
1780 | success: |
1781 | // @@protoc_insertion_point(parse_success:tensorflow.SessionLog) |
1782 | return true; |
1783 | failure: |
1784 | // @@protoc_insertion_point(parse_failure:tensorflow.SessionLog) |
1785 | return false; |
1786 | #undef DO_ |
1787 | } |
1788 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1789 | |
1790 | void SessionLog::SerializeWithCachedSizes( |
1791 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1792 | // @@protoc_insertion_point(serialize_start:tensorflow.SessionLog) |
1793 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1794 | (void) cached_has_bits; |
1795 | |
1796 | // .tensorflow.SessionLog.SessionStatus status = 1; |
1797 | if (this->status() != 0) { |
1798 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
1799 | 1, this->status(), output); |
1800 | } |
1801 | |
1802 | // string checkpoint_path = 2; |
1803 | if (this->checkpoint_path().size() > 0) { |
1804 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1805 | this->checkpoint_path().data(), static_cast<int>(this->checkpoint_path().length()), |
1806 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1807 | "tensorflow.SessionLog.checkpoint_path" ); |
1808 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1809 | 2, this->checkpoint_path(), output); |
1810 | } |
1811 | |
1812 | // string msg = 3; |
1813 | if (this->msg().size() > 0) { |
1814 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1815 | this->msg().data(), static_cast<int>(this->msg().length()), |
1816 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1817 | "tensorflow.SessionLog.msg" ); |
1818 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1819 | 3, this->msg(), output); |
1820 | } |
1821 | |
1822 | if (_internal_metadata_.have_unknown_fields()) { |
1823 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1824 | _internal_metadata_.unknown_fields(), output); |
1825 | } |
1826 | // @@protoc_insertion_point(serialize_end:tensorflow.SessionLog) |
1827 | } |
1828 | |
1829 | ::PROTOBUF_NAMESPACE_ID::uint8* SessionLog::InternalSerializeWithCachedSizesToArray( |
1830 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1831 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.SessionLog) |
1832 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1833 | (void) cached_has_bits; |
1834 | |
1835 | // .tensorflow.SessionLog.SessionStatus status = 1; |
1836 | if (this->status() != 0) { |
1837 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
1838 | 1, this->status(), target); |
1839 | } |
1840 | |
1841 | // string checkpoint_path = 2; |
1842 | if (this->checkpoint_path().size() > 0) { |
1843 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1844 | this->checkpoint_path().data(), static_cast<int>(this->checkpoint_path().length()), |
1845 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1846 | "tensorflow.SessionLog.checkpoint_path" ); |
1847 | target = |
1848 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1849 | 2, this->checkpoint_path(), target); |
1850 | } |
1851 | |
1852 | // string msg = 3; |
1853 | if (this->msg().size() > 0) { |
1854 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1855 | this->msg().data(), static_cast<int>(this->msg().length()), |
1856 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1857 | "tensorflow.SessionLog.msg" ); |
1858 | target = |
1859 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1860 | 3, this->msg(), target); |
1861 | } |
1862 | |
1863 | if (_internal_metadata_.have_unknown_fields()) { |
1864 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1865 | _internal_metadata_.unknown_fields(), target); |
1866 | } |
1867 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.SessionLog) |
1868 | return target; |
1869 | } |
1870 | |
1871 | size_t SessionLog::ByteSizeLong() const { |
1872 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.SessionLog) |
1873 | size_t total_size = 0; |
1874 | |
1875 | if (_internal_metadata_.have_unknown_fields()) { |
1876 | total_size += |
1877 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1878 | _internal_metadata_.unknown_fields()); |
1879 | } |
1880 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1881 | // Prevent compiler warnings about cached_has_bits being unused |
1882 | (void) cached_has_bits; |
1883 | |
1884 | // string checkpoint_path = 2; |
1885 | if (this->checkpoint_path().size() > 0) { |
1886 | total_size += 1 + |
1887 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1888 | this->checkpoint_path()); |
1889 | } |
1890 | |
1891 | // string msg = 3; |
1892 | if (this->msg().size() > 0) { |
1893 | total_size += 1 + |
1894 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1895 | this->msg()); |
1896 | } |
1897 | |
1898 | // .tensorflow.SessionLog.SessionStatus status = 1; |
1899 | if (this->status() != 0) { |
1900 | total_size += 1 + |
1901 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->status()); |
1902 | } |
1903 | |
1904 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1905 | SetCachedSize(cached_size); |
1906 | return total_size; |
1907 | } |
1908 | |
1909 | void SessionLog::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1910 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.SessionLog) |
1911 | GOOGLE_DCHECK_NE(&from, this); |
1912 | const SessionLog* source = |
1913 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SessionLog>( |
1914 | &from); |
1915 | if (source == nullptr) { |
1916 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.SessionLog) |
1917 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1918 | } else { |
1919 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.SessionLog) |
1920 | MergeFrom(*source); |
1921 | } |
1922 | } |
1923 | |
1924 | void SessionLog::MergeFrom(const SessionLog& from) { |
1925 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.SessionLog) |
1926 | GOOGLE_DCHECK_NE(&from, this); |
1927 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1928 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1929 | (void) cached_has_bits; |
1930 | |
1931 | if (from.checkpoint_path().size() > 0) { |
1932 | set_checkpoint_path(from.checkpoint_path()); |
1933 | } |
1934 | if (from.msg().size() > 0) { |
1935 | set_msg(from.msg()); |
1936 | } |
1937 | if (from.status() != 0) { |
1938 | set_status(from.status()); |
1939 | } |
1940 | } |
1941 | |
1942 | void SessionLog::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1943 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.SessionLog) |
1944 | if (&from == this) return; |
1945 | Clear(); |
1946 | MergeFrom(from); |
1947 | } |
1948 | |
1949 | void SessionLog::CopyFrom(const SessionLog& from) { |
1950 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.SessionLog) |
1951 | if (&from == this) return; |
1952 | Clear(); |
1953 | MergeFrom(from); |
1954 | } |
1955 | |
1956 | bool SessionLog::IsInitialized() const { |
1957 | return true; |
1958 | } |
1959 | |
1960 | void SessionLog::InternalSwap(SessionLog* other) { |
1961 | using std::swap; |
1962 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1963 | checkpoint_path_.Swap(&other->checkpoint_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1964 | GetArenaNoVirtual()); |
1965 | msg_.Swap(&other->msg_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1966 | GetArenaNoVirtual()); |
1967 | swap(status_, other->status_); |
1968 | } |
1969 | |
1970 | ::PROTOBUF_NAMESPACE_ID::Metadata SessionLog::GetMetadata() const { |
1971 | return GetMetadataStatic(); |
1972 | } |
1973 | |
1974 | |
1975 | // =================================================================== |
1976 | |
1977 | void TaggedRunMetadata::InitAsDefaultInstance() { |
1978 | } |
1979 | class TaggedRunMetadata::_Internal { |
1980 | public: |
1981 | }; |
1982 | |
1983 | TaggedRunMetadata::TaggedRunMetadata() |
1984 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1985 | SharedCtor(); |
1986 | // @@protoc_insertion_point(constructor:tensorflow.TaggedRunMetadata) |
1987 | } |
1988 | TaggedRunMetadata::TaggedRunMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1989 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1990 | _internal_metadata_(arena) { |
1991 | SharedCtor(); |
1992 | RegisterArenaDtor(arena); |
1993 | // @@protoc_insertion_point(arena_constructor:tensorflow.TaggedRunMetadata) |
1994 | } |
1995 | TaggedRunMetadata::TaggedRunMetadata(const TaggedRunMetadata& from) |
1996 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1997 | _internal_metadata_(nullptr) { |
1998 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1999 | tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2000 | if (!from.tag().empty()) { |
2001 | tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag(), |
2002 | GetArenaNoVirtual()); |
2003 | } |
2004 | run_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2005 | if (!from.run_metadata().empty()) { |
2006 | run_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.run_metadata(), |
2007 | GetArenaNoVirtual()); |
2008 | } |
2009 | // @@protoc_insertion_point(copy_constructor:tensorflow.TaggedRunMetadata) |
2010 | } |
2011 | |
2012 | void TaggedRunMetadata::SharedCtor() { |
2013 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2014 | tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2015 | run_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2016 | } |
2017 | |
2018 | TaggedRunMetadata::~TaggedRunMetadata() { |
2019 | // @@protoc_insertion_point(destructor:tensorflow.TaggedRunMetadata) |
2020 | SharedDtor(); |
2021 | } |
2022 | |
2023 | void TaggedRunMetadata::SharedDtor() { |
2024 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2025 | tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2026 | run_metadata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2027 | } |
2028 | |
2029 | void TaggedRunMetadata::ArenaDtor(void* object) { |
2030 | TaggedRunMetadata* _this = reinterpret_cast< TaggedRunMetadata* >(object); |
2031 | (void)_this; |
2032 | } |
2033 | void TaggedRunMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2034 | } |
2035 | void TaggedRunMetadata::SetCachedSize(int size) const { |
2036 | _cached_size_.Set(size); |
2037 | } |
2038 | const TaggedRunMetadata& TaggedRunMetadata::default_instance() { |
2039 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TaggedRunMetadata_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2040 | return *internal_default_instance(); |
2041 | } |
2042 | |
2043 | |
2044 | void TaggedRunMetadata::Clear() { |
2045 | // @@protoc_insertion_point(message_clear_start:tensorflow.TaggedRunMetadata) |
2046 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2047 | // Prevent compiler warnings about cached_has_bits being unused |
2048 | (void) cached_has_bits; |
2049 | |
2050 | tag_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2051 | run_metadata_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2052 | _internal_metadata_.Clear(); |
2053 | } |
2054 | |
2055 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2056 | const char* TaggedRunMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2057 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2058 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2059 | while (!ctx->Done(&ptr)) { |
2060 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2061 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2062 | CHK_(ptr); |
2063 | switch (tag >> 3) { |
2064 | // string tag = 1; |
2065 | case 1: |
2066 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2067 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "tensorflow.TaggedRunMetadata.tag" ); |
2068 | CHK_(ptr); |
2069 | } else goto handle_unusual; |
2070 | continue; |
2071 | // bytes run_metadata = 2; |
2072 | case 2: |
2073 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2074 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_run_metadata(), ptr, ctx); |
2075 | CHK_(ptr); |
2076 | } else goto handle_unusual; |
2077 | continue; |
2078 | default: { |
2079 | handle_unusual: |
2080 | if ((tag & 7) == 4 || tag == 0) { |
2081 | ctx->SetLastTag(tag); |
2082 | goto success; |
2083 | } |
2084 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2085 | CHK_(ptr != nullptr); |
2086 | continue; |
2087 | } |
2088 | } // switch |
2089 | } // while |
2090 | success: |
2091 | return ptr; |
2092 | failure: |
2093 | ptr = nullptr; |
2094 | goto success; |
2095 | #undef CHK_ |
2096 | } |
2097 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2098 | bool TaggedRunMetadata::MergePartialFromCodedStream( |
2099 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2100 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2101 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2102 | // @@protoc_insertion_point(parse_start:tensorflow.TaggedRunMetadata) |
2103 | for (;;) { |
2104 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2105 | tag = p.first; |
2106 | if (!p.second) goto handle_unusual; |
2107 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2108 | // string tag = 1; |
2109 | case 1: { |
2110 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2111 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2112 | input, this->mutable_tag())); |
2113 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2114 | this->tag().data(), static_cast<int>(this->tag().length()), |
2115 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2116 | "tensorflow.TaggedRunMetadata.tag" )); |
2117 | } else { |
2118 | goto handle_unusual; |
2119 | } |
2120 | break; |
2121 | } |
2122 | |
2123 | // bytes run_metadata = 2; |
2124 | case 2: { |
2125 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
2126 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
2127 | input, this->mutable_run_metadata())); |
2128 | } else { |
2129 | goto handle_unusual; |
2130 | } |
2131 | break; |
2132 | } |
2133 | |
2134 | default: { |
2135 | handle_unusual: |
2136 | if (tag == 0) { |
2137 | goto success; |
2138 | } |
2139 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2140 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2141 | break; |
2142 | } |
2143 | } |
2144 | } |
2145 | success: |
2146 | // @@protoc_insertion_point(parse_success:tensorflow.TaggedRunMetadata) |
2147 | return true; |
2148 | failure: |
2149 | // @@protoc_insertion_point(parse_failure:tensorflow.TaggedRunMetadata) |
2150 | return false; |
2151 | #undef DO_ |
2152 | } |
2153 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2154 | |
2155 | void TaggedRunMetadata::SerializeWithCachedSizes( |
2156 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2157 | // @@protoc_insertion_point(serialize_start:tensorflow.TaggedRunMetadata) |
2158 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2159 | (void) cached_has_bits; |
2160 | |
2161 | // string tag = 1; |
2162 | if (this->tag().size() > 0) { |
2163 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2164 | this->tag().data(), static_cast<int>(this->tag().length()), |
2165 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2166 | "tensorflow.TaggedRunMetadata.tag" ); |
2167 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2168 | 1, this->tag(), output); |
2169 | } |
2170 | |
2171 | // bytes run_metadata = 2; |
2172 | if (this->run_metadata().size() > 0) { |
2173 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( |
2174 | 2, this->run_metadata(), output); |
2175 | } |
2176 | |
2177 | if (_internal_metadata_.have_unknown_fields()) { |
2178 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2179 | _internal_metadata_.unknown_fields(), output); |
2180 | } |
2181 | // @@protoc_insertion_point(serialize_end:tensorflow.TaggedRunMetadata) |
2182 | } |
2183 | |
2184 | ::PROTOBUF_NAMESPACE_ID::uint8* TaggedRunMetadata::InternalSerializeWithCachedSizesToArray( |
2185 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2186 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TaggedRunMetadata) |
2187 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2188 | (void) cached_has_bits; |
2189 | |
2190 | // string tag = 1; |
2191 | if (this->tag().size() > 0) { |
2192 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2193 | this->tag().data(), static_cast<int>(this->tag().length()), |
2194 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2195 | "tensorflow.TaggedRunMetadata.tag" ); |
2196 | target = |
2197 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2198 | 1, this->tag(), target); |
2199 | } |
2200 | |
2201 | // bytes run_metadata = 2; |
2202 | if (this->run_metadata().size() > 0) { |
2203 | target = |
2204 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( |
2205 | 2, this->run_metadata(), target); |
2206 | } |
2207 | |
2208 | if (_internal_metadata_.have_unknown_fields()) { |
2209 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2210 | _internal_metadata_.unknown_fields(), target); |
2211 | } |
2212 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TaggedRunMetadata) |
2213 | return target; |
2214 | } |
2215 | |
2216 | size_t TaggedRunMetadata::ByteSizeLong() const { |
2217 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TaggedRunMetadata) |
2218 | size_t total_size = 0; |
2219 | |
2220 | if (_internal_metadata_.have_unknown_fields()) { |
2221 | total_size += |
2222 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2223 | _internal_metadata_.unknown_fields()); |
2224 | } |
2225 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2226 | // Prevent compiler warnings about cached_has_bits being unused |
2227 | (void) cached_has_bits; |
2228 | |
2229 | // string tag = 1; |
2230 | if (this->tag().size() > 0) { |
2231 | total_size += 1 + |
2232 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2233 | this->tag()); |
2234 | } |
2235 | |
2236 | // bytes run_metadata = 2; |
2237 | if (this->run_metadata().size() > 0) { |
2238 | total_size += 1 + |
2239 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
2240 | this->run_metadata()); |
2241 | } |
2242 | |
2243 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2244 | SetCachedSize(cached_size); |
2245 | return total_size; |
2246 | } |
2247 | |
2248 | void TaggedRunMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2249 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TaggedRunMetadata) |
2250 | GOOGLE_DCHECK_NE(&from, this); |
2251 | const TaggedRunMetadata* source = |
2252 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TaggedRunMetadata>( |
2253 | &from); |
2254 | if (source == nullptr) { |
2255 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TaggedRunMetadata) |
2256 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2257 | } else { |
2258 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TaggedRunMetadata) |
2259 | MergeFrom(*source); |
2260 | } |
2261 | } |
2262 | |
2263 | void TaggedRunMetadata::MergeFrom(const TaggedRunMetadata& from) { |
2264 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TaggedRunMetadata) |
2265 | GOOGLE_DCHECK_NE(&from, this); |
2266 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2267 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2268 | (void) cached_has_bits; |
2269 | |
2270 | if (from.tag().size() > 0) { |
2271 | set_tag(from.tag()); |
2272 | } |
2273 | if (from.run_metadata().size() > 0) { |
2274 | set_run_metadata(from.run_metadata()); |
2275 | } |
2276 | } |
2277 | |
2278 | void TaggedRunMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2279 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TaggedRunMetadata) |
2280 | if (&from == this) return; |
2281 | Clear(); |
2282 | MergeFrom(from); |
2283 | } |
2284 | |
2285 | void TaggedRunMetadata::CopyFrom(const TaggedRunMetadata& from) { |
2286 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TaggedRunMetadata) |
2287 | if (&from == this) return; |
2288 | Clear(); |
2289 | MergeFrom(from); |
2290 | } |
2291 | |
2292 | bool TaggedRunMetadata::IsInitialized() const { |
2293 | return true; |
2294 | } |
2295 | |
2296 | void TaggedRunMetadata::InternalSwap(TaggedRunMetadata* other) { |
2297 | using std::swap; |
2298 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2299 | tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2300 | GetArenaNoVirtual()); |
2301 | run_metadata_.Swap(&other->run_metadata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2302 | GetArenaNoVirtual()); |
2303 | } |
2304 | |
2305 | ::PROTOBUF_NAMESPACE_ID::Metadata TaggedRunMetadata::GetMetadata() const { |
2306 | return GetMetadataStatic(); |
2307 | } |
2308 | |
2309 | |
2310 | // =================================================================== |
2311 | |
2312 | void WatchdogConfig::InitAsDefaultInstance() { |
2313 | } |
2314 | class WatchdogConfig::_Internal { |
2315 | public: |
2316 | }; |
2317 | |
2318 | WatchdogConfig::WatchdogConfig() |
2319 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2320 | SharedCtor(); |
2321 | // @@protoc_insertion_point(constructor:tensorflow.WatchdogConfig) |
2322 | } |
2323 | WatchdogConfig::WatchdogConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2324 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2325 | _internal_metadata_(arena) { |
2326 | SharedCtor(); |
2327 | RegisterArenaDtor(arena); |
2328 | // @@protoc_insertion_point(arena_constructor:tensorflow.WatchdogConfig) |
2329 | } |
2330 | WatchdogConfig::WatchdogConfig(const WatchdogConfig& from) |
2331 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2332 | _internal_metadata_(nullptr) { |
2333 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2334 | timeout_ms_ = from.timeout_ms_; |
2335 | // @@protoc_insertion_point(copy_constructor:tensorflow.WatchdogConfig) |
2336 | } |
2337 | |
2338 | void WatchdogConfig::SharedCtor() { |
2339 | timeout_ms_ = PROTOBUF_LONGLONG(0); |
2340 | } |
2341 | |
2342 | WatchdogConfig::~WatchdogConfig() { |
2343 | // @@protoc_insertion_point(destructor:tensorflow.WatchdogConfig) |
2344 | SharedDtor(); |
2345 | } |
2346 | |
2347 | void WatchdogConfig::SharedDtor() { |
2348 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2349 | } |
2350 | |
2351 | void WatchdogConfig::ArenaDtor(void* object) { |
2352 | WatchdogConfig* _this = reinterpret_cast< WatchdogConfig* >(object); |
2353 | (void)_this; |
2354 | } |
2355 | void WatchdogConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2356 | } |
2357 | void WatchdogConfig::SetCachedSize(int size) const { |
2358 | _cached_size_.Set(size); |
2359 | } |
2360 | const WatchdogConfig& WatchdogConfig::default_instance() { |
2361 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WatchdogConfig_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2362 | return *internal_default_instance(); |
2363 | } |
2364 | |
2365 | |
2366 | void WatchdogConfig::Clear() { |
2367 | // @@protoc_insertion_point(message_clear_start:tensorflow.WatchdogConfig) |
2368 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2369 | // Prevent compiler warnings about cached_has_bits being unused |
2370 | (void) cached_has_bits; |
2371 | |
2372 | timeout_ms_ = PROTOBUF_LONGLONG(0); |
2373 | _internal_metadata_.Clear(); |
2374 | } |
2375 | |
2376 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2377 | const char* WatchdogConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2378 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2379 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2380 | while (!ctx->Done(&ptr)) { |
2381 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2382 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2383 | CHK_(ptr); |
2384 | switch (tag >> 3) { |
2385 | // int64 timeout_ms = 1; |
2386 | case 1: |
2387 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
2388 | timeout_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2389 | CHK_(ptr); |
2390 | } else goto handle_unusual; |
2391 | continue; |
2392 | default: { |
2393 | handle_unusual: |
2394 | if ((tag & 7) == 4 || tag == 0) { |
2395 | ctx->SetLastTag(tag); |
2396 | goto success; |
2397 | } |
2398 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2399 | CHK_(ptr != nullptr); |
2400 | continue; |
2401 | } |
2402 | } // switch |
2403 | } // while |
2404 | success: |
2405 | return ptr; |
2406 | failure: |
2407 | ptr = nullptr; |
2408 | goto success; |
2409 | #undef CHK_ |
2410 | } |
2411 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2412 | bool WatchdogConfig::MergePartialFromCodedStream( |
2413 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2414 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2415 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2416 | // @@protoc_insertion_point(parse_start:tensorflow.WatchdogConfig) |
2417 | for (;;) { |
2418 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2419 | tag = p.first; |
2420 | if (!p.second) goto handle_unusual; |
2421 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2422 | // int64 timeout_ms = 1; |
2423 | case 1: { |
2424 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
2425 | |
2426 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2427 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2428 | input, &timeout_ms_))); |
2429 | } else { |
2430 | goto handle_unusual; |
2431 | } |
2432 | break; |
2433 | } |
2434 | |
2435 | default: { |
2436 | handle_unusual: |
2437 | if (tag == 0) { |
2438 | goto success; |
2439 | } |
2440 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2441 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2442 | break; |
2443 | } |
2444 | } |
2445 | } |
2446 | success: |
2447 | // @@protoc_insertion_point(parse_success:tensorflow.WatchdogConfig) |
2448 | return true; |
2449 | failure: |
2450 | // @@protoc_insertion_point(parse_failure:tensorflow.WatchdogConfig) |
2451 | return false; |
2452 | #undef DO_ |
2453 | } |
2454 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2455 | |
2456 | void WatchdogConfig::SerializeWithCachedSizes( |
2457 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2458 | // @@protoc_insertion_point(serialize_start:tensorflow.WatchdogConfig) |
2459 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2460 | (void) cached_has_bits; |
2461 | |
2462 | // int64 timeout_ms = 1; |
2463 | if (this->timeout_ms() != 0) { |
2464 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->timeout_ms(), output); |
2465 | } |
2466 | |
2467 | if (_internal_metadata_.have_unknown_fields()) { |
2468 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2469 | _internal_metadata_.unknown_fields(), output); |
2470 | } |
2471 | // @@protoc_insertion_point(serialize_end:tensorflow.WatchdogConfig) |
2472 | } |
2473 | |
2474 | ::PROTOBUF_NAMESPACE_ID::uint8* WatchdogConfig::InternalSerializeWithCachedSizesToArray( |
2475 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2476 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.WatchdogConfig) |
2477 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2478 | (void) cached_has_bits; |
2479 | |
2480 | // int64 timeout_ms = 1; |
2481 | if (this->timeout_ms() != 0) { |
2482 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->timeout_ms(), target); |
2483 | } |
2484 | |
2485 | if (_internal_metadata_.have_unknown_fields()) { |
2486 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2487 | _internal_metadata_.unknown_fields(), target); |
2488 | } |
2489 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.WatchdogConfig) |
2490 | return target; |
2491 | } |
2492 | |
2493 | size_t WatchdogConfig::ByteSizeLong() const { |
2494 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.WatchdogConfig) |
2495 | size_t total_size = 0; |
2496 | |
2497 | if (_internal_metadata_.have_unknown_fields()) { |
2498 | total_size += |
2499 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2500 | _internal_metadata_.unknown_fields()); |
2501 | } |
2502 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2503 | // Prevent compiler warnings about cached_has_bits being unused |
2504 | (void) cached_has_bits; |
2505 | |
2506 | // int64 timeout_ms = 1; |
2507 | if (this->timeout_ms() != 0) { |
2508 | total_size += 1 + |
2509 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2510 | this->timeout_ms()); |
2511 | } |
2512 | |
2513 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2514 | SetCachedSize(cached_size); |
2515 | return total_size; |
2516 | } |
2517 | |
2518 | void WatchdogConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2519 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.WatchdogConfig) |
2520 | GOOGLE_DCHECK_NE(&from, this); |
2521 | const WatchdogConfig* source = |
2522 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WatchdogConfig>( |
2523 | &from); |
2524 | if (source == nullptr) { |
2525 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.WatchdogConfig) |
2526 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2527 | } else { |
2528 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.WatchdogConfig) |
2529 | MergeFrom(*source); |
2530 | } |
2531 | } |
2532 | |
2533 | void WatchdogConfig::MergeFrom(const WatchdogConfig& from) { |
2534 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.WatchdogConfig) |
2535 | GOOGLE_DCHECK_NE(&from, this); |
2536 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2537 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2538 | (void) cached_has_bits; |
2539 | |
2540 | if (from.timeout_ms() != 0) { |
2541 | set_timeout_ms(from.timeout_ms()); |
2542 | } |
2543 | } |
2544 | |
2545 | void WatchdogConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2546 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.WatchdogConfig) |
2547 | if (&from == this) return; |
2548 | Clear(); |
2549 | MergeFrom(from); |
2550 | } |
2551 | |
2552 | void WatchdogConfig::CopyFrom(const WatchdogConfig& from) { |
2553 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.WatchdogConfig) |
2554 | if (&from == this) return; |
2555 | Clear(); |
2556 | MergeFrom(from); |
2557 | } |
2558 | |
2559 | bool WatchdogConfig::IsInitialized() const { |
2560 | return true; |
2561 | } |
2562 | |
2563 | void WatchdogConfig::InternalSwap(WatchdogConfig* other) { |
2564 | using std::swap; |
2565 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2566 | swap(timeout_ms_, other->timeout_ms_); |
2567 | } |
2568 | |
2569 | ::PROTOBUF_NAMESPACE_ID::Metadata WatchdogConfig::GetMetadata() const { |
2570 | return GetMetadataStatic(); |
2571 | } |
2572 | |
2573 | |
2574 | // =================================================================== |
2575 | |
2576 | void RequestedExitCode::InitAsDefaultInstance() { |
2577 | } |
2578 | class RequestedExitCode::_Internal { |
2579 | public: |
2580 | }; |
2581 | |
2582 | RequestedExitCode::RequestedExitCode() |
2583 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2584 | SharedCtor(); |
2585 | // @@protoc_insertion_point(constructor:tensorflow.RequestedExitCode) |
2586 | } |
2587 | RequestedExitCode::RequestedExitCode(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2588 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2589 | _internal_metadata_(arena) { |
2590 | SharedCtor(); |
2591 | RegisterArenaDtor(arena); |
2592 | // @@protoc_insertion_point(arena_constructor:tensorflow.RequestedExitCode) |
2593 | } |
2594 | RequestedExitCode::RequestedExitCode(const RequestedExitCode& from) |
2595 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2596 | _internal_metadata_(nullptr) { |
2597 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2598 | exit_code_ = from.exit_code_; |
2599 | // @@protoc_insertion_point(copy_constructor:tensorflow.RequestedExitCode) |
2600 | } |
2601 | |
2602 | void RequestedExitCode::SharedCtor() { |
2603 | exit_code_ = 0; |
2604 | } |
2605 | |
2606 | RequestedExitCode::~RequestedExitCode() { |
2607 | // @@protoc_insertion_point(destructor:tensorflow.RequestedExitCode) |
2608 | SharedDtor(); |
2609 | } |
2610 | |
2611 | void RequestedExitCode::SharedDtor() { |
2612 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2613 | } |
2614 | |
2615 | void RequestedExitCode::ArenaDtor(void* object) { |
2616 | RequestedExitCode* _this = reinterpret_cast< RequestedExitCode* >(object); |
2617 | (void)_this; |
2618 | } |
2619 | void RequestedExitCode::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2620 | } |
2621 | void RequestedExitCode::SetCachedSize(int size) const { |
2622 | _cached_size_.Set(size); |
2623 | } |
2624 | const RequestedExitCode& RequestedExitCode::default_instance() { |
2625 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RequestedExitCode_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2626 | return *internal_default_instance(); |
2627 | } |
2628 | |
2629 | |
2630 | void RequestedExitCode::Clear() { |
2631 | // @@protoc_insertion_point(message_clear_start:tensorflow.RequestedExitCode) |
2632 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2633 | // Prevent compiler warnings about cached_has_bits being unused |
2634 | (void) cached_has_bits; |
2635 | |
2636 | exit_code_ = 0; |
2637 | _internal_metadata_.Clear(); |
2638 | } |
2639 | |
2640 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2641 | const char* RequestedExitCode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2642 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2643 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2644 | while (!ctx->Done(&ptr)) { |
2645 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2646 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2647 | CHK_(ptr); |
2648 | switch (tag >> 3) { |
2649 | // int32 exit_code = 1; |
2650 | case 1: |
2651 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
2652 | exit_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2653 | CHK_(ptr); |
2654 | } else goto handle_unusual; |
2655 | continue; |
2656 | default: { |
2657 | handle_unusual: |
2658 | if ((tag & 7) == 4 || tag == 0) { |
2659 | ctx->SetLastTag(tag); |
2660 | goto success; |
2661 | } |
2662 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2663 | CHK_(ptr != nullptr); |
2664 | continue; |
2665 | } |
2666 | } // switch |
2667 | } // while |
2668 | success: |
2669 | return ptr; |
2670 | failure: |
2671 | ptr = nullptr; |
2672 | goto success; |
2673 | #undef CHK_ |
2674 | } |
2675 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2676 | bool RequestedExitCode::MergePartialFromCodedStream( |
2677 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2678 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2679 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2680 | // @@protoc_insertion_point(parse_start:tensorflow.RequestedExitCode) |
2681 | for (;;) { |
2682 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2683 | tag = p.first; |
2684 | if (!p.second) goto handle_unusual; |
2685 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2686 | // int32 exit_code = 1; |
2687 | case 1: { |
2688 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
2689 | |
2690 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2691 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
2692 | input, &exit_code_))); |
2693 | } else { |
2694 | goto handle_unusual; |
2695 | } |
2696 | break; |
2697 | } |
2698 | |
2699 | default: { |
2700 | handle_unusual: |
2701 | if (tag == 0) { |
2702 | goto success; |
2703 | } |
2704 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2705 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2706 | break; |
2707 | } |
2708 | } |
2709 | } |
2710 | success: |
2711 | // @@protoc_insertion_point(parse_success:tensorflow.RequestedExitCode) |
2712 | return true; |
2713 | failure: |
2714 | // @@protoc_insertion_point(parse_failure:tensorflow.RequestedExitCode) |
2715 | return false; |
2716 | #undef DO_ |
2717 | } |
2718 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2719 | |
2720 | void RequestedExitCode::SerializeWithCachedSizes( |
2721 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2722 | // @@protoc_insertion_point(serialize_start:tensorflow.RequestedExitCode) |
2723 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2724 | (void) cached_has_bits; |
2725 | |
2726 | // int32 exit_code = 1; |
2727 | if (this->exit_code() != 0) { |
2728 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->exit_code(), output); |
2729 | } |
2730 | |
2731 | if (_internal_metadata_.have_unknown_fields()) { |
2732 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2733 | _internal_metadata_.unknown_fields(), output); |
2734 | } |
2735 | // @@protoc_insertion_point(serialize_end:tensorflow.RequestedExitCode) |
2736 | } |
2737 | |
2738 | ::PROTOBUF_NAMESPACE_ID::uint8* RequestedExitCode::InternalSerializeWithCachedSizesToArray( |
2739 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2740 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RequestedExitCode) |
2741 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2742 | (void) cached_has_bits; |
2743 | |
2744 | // int32 exit_code = 1; |
2745 | if (this->exit_code() != 0) { |
2746 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->exit_code(), target); |
2747 | } |
2748 | |
2749 | if (_internal_metadata_.have_unknown_fields()) { |
2750 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2751 | _internal_metadata_.unknown_fields(), target); |
2752 | } |
2753 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RequestedExitCode) |
2754 | return target; |
2755 | } |
2756 | |
2757 | size_t RequestedExitCode::ByteSizeLong() const { |
2758 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.RequestedExitCode) |
2759 | size_t total_size = 0; |
2760 | |
2761 | if (_internal_metadata_.have_unknown_fields()) { |
2762 | total_size += |
2763 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2764 | _internal_metadata_.unknown_fields()); |
2765 | } |
2766 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2767 | // Prevent compiler warnings about cached_has_bits being unused |
2768 | (void) cached_has_bits; |
2769 | |
2770 | // int32 exit_code = 1; |
2771 | if (this->exit_code() != 0) { |
2772 | total_size += 1 + |
2773 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
2774 | this->exit_code()); |
2775 | } |
2776 | |
2777 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2778 | SetCachedSize(cached_size); |
2779 | return total_size; |
2780 | } |
2781 | |
2782 | void RequestedExitCode::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2783 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RequestedExitCode) |
2784 | GOOGLE_DCHECK_NE(&from, this); |
2785 | const RequestedExitCode* source = |
2786 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RequestedExitCode>( |
2787 | &from); |
2788 | if (source == nullptr) { |
2789 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RequestedExitCode) |
2790 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2791 | } else { |
2792 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RequestedExitCode) |
2793 | MergeFrom(*source); |
2794 | } |
2795 | } |
2796 | |
2797 | void RequestedExitCode::MergeFrom(const RequestedExitCode& from) { |
2798 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RequestedExitCode) |
2799 | GOOGLE_DCHECK_NE(&from, this); |
2800 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2801 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2802 | (void) cached_has_bits; |
2803 | |
2804 | if (from.exit_code() != 0) { |
2805 | set_exit_code(from.exit_code()); |
2806 | } |
2807 | } |
2808 | |
2809 | void RequestedExitCode::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2810 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RequestedExitCode) |
2811 | if (&from == this) return; |
2812 | Clear(); |
2813 | MergeFrom(from); |
2814 | } |
2815 | |
2816 | void RequestedExitCode::CopyFrom(const RequestedExitCode& from) { |
2817 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RequestedExitCode) |
2818 | if (&from == this) return; |
2819 | Clear(); |
2820 | MergeFrom(from); |
2821 | } |
2822 | |
2823 | bool RequestedExitCode::IsInitialized() const { |
2824 | return true; |
2825 | } |
2826 | |
2827 | void RequestedExitCode::InternalSwap(RequestedExitCode* other) { |
2828 | using std::swap; |
2829 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2830 | swap(exit_code_, other->exit_code_); |
2831 | } |
2832 | |
2833 | ::PROTOBUF_NAMESPACE_ID::Metadata RequestedExitCode::GetMetadata() const { |
2834 | return GetMetadataStatic(); |
2835 | } |
2836 | |
2837 | |
2838 | // =================================================================== |
2839 | |
2840 | void WorkerHeartbeatRequest::InitAsDefaultInstance() { |
2841 | ::tensorflow::_WorkerHeartbeatRequest_default_instance_._instance.get_mutable()->watchdog_config_ = const_cast< ::tensorflow::WatchdogConfig*>( |
2842 | ::tensorflow::WatchdogConfig::internal_default_instance()); |
2843 | ::tensorflow::_WorkerHeartbeatRequest_default_instance_._instance.get_mutable()->exit_code_ = const_cast< ::tensorflow::RequestedExitCode*>( |
2844 | ::tensorflow::RequestedExitCode::internal_default_instance()); |
2845 | } |
2846 | class WorkerHeartbeatRequest::_Internal { |
2847 | public: |
2848 | static const ::tensorflow::WatchdogConfig& watchdog_config(const WorkerHeartbeatRequest* msg); |
2849 | static const ::tensorflow::RequestedExitCode& exit_code(const WorkerHeartbeatRequest* msg); |
2850 | }; |
2851 | |
2852 | const ::tensorflow::WatchdogConfig& |
2853 | WorkerHeartbeatRequest::_Internal::watchdog_config(const WorkerHeartbeatRequest* msg) { |
2854 | return *msg->watchdog_config_; |
2855 | } |
2856 | const ::tensorflow::RequestedExitCode& |
2857 | WorkerHeartbeatRequest::_Internal::exit_code(const WorkerHeartbeatRequest* msg) { |
2858 | return *msg->exit_code_; |
2859 | } |
2860 | void WorkerHeartbeatRequest::unsafe_arena_set_allocated_watchdog_config( |
2861 | ::tensorflow::WatchdogConfig* watchdog_config) { |
2862 | if (GetArenaNoVirtual() == nullptr) { |
2863 | delete watchdog_config_; |
2864 | } |
2865 | watchdog_config_ = watchdog_config; |
2866 | if (watchdog_config) { |
2867 | |
2868 | } else { |
2869 | |
2870 | } |
2871 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.WorkerHeartbeatRequest.watchdog_config) |
2872 | } |
2873 | void WorkerHeartbeatRequest::unsafe_arena_set_allocated_exit_code( |
2874 | ::tensorflow::RequestedExitCode* exit_code) { |
2875 | if (GetArenaNoVirtual() == nullptr) { |
2876 | delete exit_code_; |
2877 | } |
2878 | exit_code_ = exit_code; |
2879 | if (exit_code) { |
2880 | |
2881 | } else { |
2882 | |
2883 | } |
2884 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.WorkerHeartbeatRequest.exit_code) |
2885 | } |
2886 | WorkerHeartbeatRequest::WorkerHeartbeatRequest() |
2887 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2888 | SharedCtor(); |
2889 | // @@protoc_insertion_point(constructor:tensorflow.WorkerHeartbeatRequest) |
2890 | } |
2891 | WorkerHeartbeatRequest::WorkerHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2892 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2893 | _internal_metadata_(arena) { |
2894 | SharedCtor(); |
2895 | RegisterArenaDtor(arena); |
2896 | // @@protoc_insertion_point(arena_constructor:tensorflow.WorkerHeartbeatRequest) |
2897 | } |
2898 | WorkerHeartbeatRequest::WorkerHeartbeatRequest(const WorkerHeartbeatRequest& from) |
2899 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2900 | _internal_metadata_(nullptr) { |
2901 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2902 | if (from.has_watchdog_config()) { |
2903 | watchdog_config_ = new ::tensorflow::WatchdogConfig(*from.watchdog_config_); |
2904 | } else { |
2905 | watchdog_config_ = nullptr; |
2906 | } |
2907 | if (from.has_exit_code()) { |
2908 | exit_code_ = new ::tensorflow::RequestedExitCode(*from.exit_code_); |
2909 | } else { |
2910 | exit_code_ = nullptr; |
2911 | } |
2912 | shutdown_mode_ = from.shutdown_mode_; |
2913 | // @@protoc_insertion_point(copy_constructor:tensorflow.WorkerHeartbeatRequest) |
2914 | } |
2915 | |
2916 | void WorkerHeartbeatRequest::SharedCtor() { |
2917 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2918 | ::memset(&watchdog_config_, 0, static_cast<size_t>( |
2919 | reinterpret_cast<char*>(&shutdown_mode_) - |
2920 | reinterpret_cast<char*>(&watchdog_config_)) + sizeof(shutdown_mode_)); |
2921 | } |
2922 | |
2923 | WorkerHeartbeatRequest::~WorkerHeartbeatRequest() { |
2924 | // @@protoc_insertion_point(destructor:tensorflow.WorkerHeartbeatRequest) |
2925 | SharedDtor(); |
2926 | } |
2927 | |
2928 | void WorkerHeartbeatRequest::SharedDtor() { |
2929 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2930 | if (this != internal_default_instance()) delete watchdog_config_; |
2931 | if (this != internal_default_instance()) delete exit_code_; |
2932 | } |
2933 | |
2934 | void WorkerHeartbeatRequest::ArenaDtor(void* object) { |
2935 | WorkerHeartbeatRequest* _this = reinterpret_cast< WorkerHeartbeatRequest* >(object); |
2936 | (void)_this; |
2937 | } |
2938 | void WorkerHeartbeatRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2939 | } |
2940 | void WorkerHeartbeatRequest::SetCachedSize(int size) const { |
2941 | _cached_size_.Set(size); |
2942 | } |
2943 | const WorkerHeartbeatRequest& WorkerHeartbeatRequest::default_instance() { |
2944 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WorkerHeartbeatRequest_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
2945 | return *internal_default_instance(); |
2946 | } |
2947 | |
2948 | |
2949 | void WorkerHeartbeatRequest::Clear() { |
2950 | // @@protoc_insertion_point(message_clear_start:tensorflow.WorkerHeartbeatRequest) |
2951 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2952 | // Prevent compiler warnings about cached_has_bits being unused |
2953 | (void) cached_has_bits; |
2954 | |
2955 | if (GetArenaNoVirtual() == nullptr && watchdog_config_ != nullptr) { |
2956 | delete watchdog_config_; |
2957 | } |
2958 | watchdog_config_ = nullptr; |
2959 | if (GetArenaNoVirtual() == nullptr && exit_code_ != nullptr) { |
2960 | delete exit_code_; |
2961 | } |
2962 | exit_code_ = nullptr; |
2963 | shutdown_mode_ = 0; |
2964 | _internal_metadata_.Clear(); |
2965 | } |
2966 | |
2967 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2968 | const char* WorkerHeartbeatRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2969 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2970 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2971 | while (!ctx->Done(&ptr)) { |
2972 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2973 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2974 | CHK_(ptr); |
2975 | switch (tag >> 3) { |
2976 | // .tensorflow.WorkerShutdownMode shutdown_mode = 1; |
2977 | case 1: |
2978 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
2979 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2980 | CHK_(ptr); |
2981 | set_shutdown_mode(static_cast<::tensorflow::WorkerShutdownMode>(val)); |
2982 | } else goto handle_unusual; |
2983 | continue; |
2984 | // .tensorflow.WatchdogConfig watchdog_config = 2; |
2985 | case 2: |
2986 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2987 | ptr = ctx->ParseMessage(mutable_watchdog_config(), ptr); |
2988 | CHK_(ptr); |
2989 | } else goto handle_unusual; |
2990 | continue; |
2991 | // .tensorflow.RequestedExitCode exit_code = 3; |
2992 | case 3: |
2993 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
2994 | ptr = ctx->ParseMessage(mutable_exit_code(), ptr); |
2995 | CHK_(ptr); |
2996 | } else goto handle_unusual; |
2997 | continue; |
2998 | default: { |
2999 | handle_unusual: |
3000 | if ((tag & 7) == 4 || tag == 0) { |
3001 | ctx->SetLastTag(tag); |
3002 | goto success; |
3003 | } |
3004 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3005 | CHK_(ptr != nullptr); |
3006 | continue; |
3007 | } |
3008 | } // switch |
3009 | } // while |
3010 | success: |
3011 | return ptr; |
3012 | failure: |
3013 | ptr = nullptr; |
3014 | goto success; |
3015 | #undef CHK_ |
3016 | } |
3017 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3018 | bool WorkerHeartbeatRequest::MergePartialFromCodedStream( |
3019 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3020 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3021 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3022 | // @@protoc_insertion_point(parse_start:tensorflow.WorkerHeartbeatRequest) |
3023 | for (;;) { |
3024 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3025 | tag = p.first; |
3026 | if (!p.second) goto handle_unusual; |
3027 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3028 | // .tensorflow.WorkerShutdownMode shutdown_mode = 1; |
3029 | case 1: { |
3030 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
3031 | int value = 0; |
3032 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3033 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
3034 | input, &value))); |
3035 | set_shutdown_mode(static_cast< ::tensorflow::WorkerShutdownMode >(value)); |
3036 | } else { |
3037 | goto handle_unusual; |
3038 | } |
3039 | break; |
3040 | } |
3041 | |
3042 | // .tensorflow.WatchdogConfig watchdog_config = 2; |
3043 | case 2: { |
3044 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
3045 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3046 | input, mutable_watchdog_config())); |
3047 | } else { |
3048 | goto handle_unusual; |
3049 | } |
3050 | break; |
3051 | } |
3052 | |
3053 | // .tensorflow.RequestedExitCode exit_code = 3; |
3054 | case 3: { |
3055 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
3056 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3057 | input, mutable_exit_code())); |
3058 | } else { |
3059 | goto handle_unusual; |
3060 | } |
3061 | break; |
3062 | } |
3063 | |
3064 | default: { |
3065 | handle_unusual: |
3066 | if (tag == 0) { |
3067 | goto success; |
3068 | } |
3069 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3070 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3071 | break; |
3072 | } |
3073 | } |
3074 | } |
3075 | success: |
3076 | // @@protoc_insertion_point(parse_success:tensorflow.WorkerHeartbeatRequest) |
3077 | return true; |
3078 | failure: |
3079 | // @@protoc_insertion_point(parse_failure:tensorflow.WorkerHeartbeatRequest) |
3080 | return false; |
3081 | #undef DO_ |
3082 | } |
3083 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3084 | |
3085 | void WorkerHeartbeatRequest::SerializeWithCachedSizes( |
3086 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3087 | // @@protoc_insertion_point(serialize_start:tensorflow.WorkerHeartbeatRequest) |
3088 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3089 | (void) cached_has_bits; |
3090 | |
3091 | // .tensorflow.WorkerShutdownMode shutdown_mode = 1; |
3092 | if (this->shutdown_mode() != 0) { |
3093 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
3094 | 1, this->shutdown_mode(), output); |
3095 | } |
3096 | |
3097 | // .tensorflow.WatchdogConfig watchdog_config = 2; |
3098 | if (this->has_watchdog_config()) { |
3099 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3100 | 2, _Internal::watchdog_config(this), output); |
3101 | } |
3102 | |
3103 | // .tensorflow.RequestedExitCode exit_code = 3; |
3104 | if (this->has_exit_code()) { |
3105 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3106 | 3, _Internal::exit_code(this), output); |
3107 | } |
3108 | |
3109 | if (_internal_metadata_.have_unknown_fields()) { |
3110 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3111 | _internal_metadata_.unknown_fields(), output); |
3112 | } |
3113 | // @@protoc_insertion_point(serialize_end:tensorflow.WorkerHeartbeatRequest) |
3114 | } |
3115 | |
3116 | ::PROTOBUF_NAMESPACE_ID::uint8* WorkerHeartbeatRequest::InternalSerializeWithCachedSizesToArray( |
3117 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3118 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.WorkerHeartbeatRequest) |
3119 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3120 | (void) cached_has_bits; |
3121 | |
3122 | // .tensorflow.WorkerShutdownMode shutdown_mode = 1; |
3123 | if (this->shutdown_mode() != 0) { |
3124 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
3125 | 1, this->shutdown_mode(), target); |
3126 | } |
3127 | |
3128 | // .tensorflow.WatchdogConfig watchdog_config = 2; |
3129 | if (this->has_watchdog_config()) { |
3130 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3131 | InternalWriteMessageToArray( |
3132 | 2, _Internal::watchdog_config(this), target); |
3133 | } |
3134 | |
3135 | // .tensorflow.RequestedExitCode exit_code = 3; |
3136 | if (this->has_exit_code()) { |
3137 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3138 | InternalWriteMessageToArray( |
3139 | 3, _Internal::exit_code(this), target); |
3140 | } |
3141 | |
3142 | if (_internal_metadata_.have_unknown_fields()) { |
3143 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3144 | _internal_metadata_.unknown_fields(), target); |
3145 | } |
3146 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.WorkerHeartbeatRequest) |
3147 | return target; |
3148 | } |
3149 | |
3150 | size_t WorkerHeartbeatRequest::ByteSizeLong() const { |
3151 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.WorkerHeartbeatRequest) |
3152 | size_t total_size = 0; |
3153 | |
3154 | if (_internal_metadata_.have_unknown_fields()) { |
3155 | total_size += |
3156 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3157 | _internal_metadata_.unknown_fields()); |
3158 | } |
3159 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3160 | // Prevent compiler warnings about cached_has_bits being unused |
3161 | (void) cached_has_bits; |
3162 | |
3163 | // .tensorflow.WatchdogConfig watchdog_config = 2; |
3164 | if (this->has_watchdog_config()) { |
3165 | total_size += 1 + |
3166 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3167 | *watchdog_config_); |
3168 | } |
3169 | |
3170 | // .tensorflow.RequestedExitCode exit_code = 3; |
3171 | if (this->has_exit_code()) { |
3172 | total_size += 1 + |
3173 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3174 | *exit_code_); |
3175 | } |
3176 | |
3177 | // .tensorflow.WorkerShutdownMode shutdown_mode = 1; |
3178 | if (this->shutdown_mode() != 0) { |
3179 | total_size += 1 + |
3180 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->shutdown_mode()); |
3181 | } |
3182 | |
3183 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3184 | SetCachedSize(cached_size); |
3185 | return total_size; |
3186 | } |
3187 | |
3188 | void WorkerHeartbeatRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3189 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.WorkerHeartbeatRequest) |
3190 | GOOGLE_DCHECK_NE(&from, this); |
3191 | const WorkerHeartbeatRequest* source = |
3192 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WorkerHeartbeatRequest>( |
3193 | &from); |
3194 | if (source == nullptr) { |
3195 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.WorkerHeartbeatRequest) |
3196 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3197 | } else { |
3198 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.WorkerHeartbeatRequest) |
3199 | MergeFrom(*source); |
3200 | } |
3201 | } |
3202 | |
3203 | void WorkerHeartbeatRequest::MergeFrom(const WorkerHeartbeatRequest& from) { |
3204 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.WorkerHeartbeatRequest) |
3205 | GOOGLE_DCHECK_NE(&from, this); |
3206 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3207 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3208 | (void) cached_has_bits; |
3209 | |
3210 | if (from.has_watchdog_config()) { |
3211 | mutable_watchdog_config()->::tensorflow::WatchdogConfig::MergeFrom(from.watchdog_config()); |
3212 | } |
3213 | if (from.has_exit_code()) { |
3214 | mutable_exit_code()->::tensorflow::RequestedExitCode::MergeFrom(from.exit_code()); |
3215 | } |
3216 | if (from.shutdown_mode() != 0) { |
3217 | set_shutdown_mode(from.shutdown_mode()); |
3218 | } |
3219 | } |
3220 | |
3221 | void WorkerHeartbeatRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3222 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.WorkerHeartbeatRequest) |
3223 | if (&from == this) return; |
3224 | Clear(); |
3225 | MergeFrom(from); |
3226 | } |
3227 | |
3228 | void WorkerHeartbeatRequest::CopyFrom(const WorkerHeartbeatRequest& from) { |
3229 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.WorkerHeartbeatRequest) |
3230 | if (&from == this) return; |
3231 | Clear(); |
3232 | MergeFrom(from); |
3233 | } |
3234 | |
3235 | bool WorkerHeartbeatRequest::IsInitialized() const { |
3236 | return true; |
3237 | } |
3238 | |
3239 | void WorkerHeartbeatRequest::InternalSwap(WorkerHeartbeatRequest* other) { |
3240 | using std::swap; |
3241 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3242 | swap(watchdog_config_, other->watchdog_config_); |
3243 | swap(exit_code_, other->exit_code_); |
3244 | swap(shutdown_mode_, other->shutdown_mode_); |
3245 | } |
3246 | |
3247 | ::PROTOBUF_NAMESPACE_ID::Metadata WorkerHeartbeatRequest::GetMetadata() const { |
3248 | return GetMetadataStatic(); |
3249 | } |
3250 | |
3251 | |
3252 | // =================================================================== |
3253 | |
3254 | void WorkerHeartbeatResponse::InitAsDefaultInstance() { |
3255 | } |
3256 | class WorkerHeartbeatResponse::_Internal { |
3257 | public: |
3258 | }; |
3259 | |
3260 | WorkerHeartbeatResponse::WorkerHeartbeatResponse() |
3261 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3262 | SharedCtor(); |
3263 | // @@protoc_insertion_point(constructor:tensorflow.WorkerHeartbeatResponse) |
3264 | } |
3265 | WorkerHeartbeatResponse::WorkerHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3266 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3267 | _internal_metadata_(arena), |
3268 | worker_log_(arena) { |
3269 | SharedCtor(); |
3270 | RegisterArenaDtor(arena); |
3271 | // @@protoc_insertion_point(arena_constructor:tensorflow.WorkerHeartbeatResponse) |
3272 | } |
3273 | WorkerHeartbeatResponse::WorkerHeartbeatResponse(const WorkerHeartbeatResponse& from) |
3274 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3275 | _internal_metadata_(nullptr), |
3276 | worker_log_(from.worker_log_) { |
3277 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3278 | hostname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3279 | if (!from.hostname().empty()) { |
3280 | hostname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.hostname(), |
3281 | GetArenaNoVirtual()); |
3282 | } |
3283 | health_status_ = from.health_status_; |
3284 | // @@protoc_insertion_point(copy_constructor:tensorflow.WorkerHeartbeatResponse) |
3285 | } |
3286 | |
3287 | void WorkerHeartbeatResponse::SharedCtor() { |
3288 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
3289 | hostname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3290 | health_status_ = 0; |
3291 | } |
3292 | |
3293 | WorkerHeartbeatResponse::~WorkerHeartbeatResponse() { |
3294 | // @@protoc_insertion_point(destructor:tensorflow.WorkerHeartbeatResponse) |
3295 | SharedDtor(); |
3296 | } |
3297 | |
3298 | void WorkerHeartbeatResponse::SharedDtor() { |
3299 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3300 | hostname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3301 | } |
3302 | |
3303 | void WorkerHeartbeatResponse::ArenaDtor(void* object) { |
3304 | WorkerHeartbeatResponse* _this = reinterpret_cast< WorkerHeartbeatResponse* >(object); |
3305 | (void)_this; |
3306 | } |
3307 | void WorkerHeartbeatResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
3308 | } |
3309 | void WorkerHeartbeatResponse::SetCachedSize(int size) const { |
3310 | _cached_size_.Set(size); |
3311 | } |
3312 | const WorkerHeartbeatResponse& WorkerHeartbeatResponse::default_instance() { |
3313 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WorkerHeartbeatResponse_tensorflow_2fcore_2futil_2fevent_2eproto.base); |
3314 | return *internal_default_instance(); |
3315 | } |
3316 | |
3317 | |
3318 | void WorkerHeartbeatResponse::Clear() { |
3319 | // @@protoc_insertion_point(message_clear_start:tensorflow.WorkerHeartbeatResponse) |
3320 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3321 | // Prevent compiler warnings about cached_has_bits being unused |
3322 | (void) cached_has_bits; |
3323 | |
3324 | worker_log_.Clear(); |
3325 | hostname_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3326 | health_status_ = 0; |
3327 | _internal_metadata_.Clear(); |
3328 | } |
3329 | |
3330 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3331 | const char* WorkerHeartbeatResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3332 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3333 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3334 | while (!ctx->Done(&ptr)) { |
3335 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3336 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3337 | CHK_(ptr); |
3338 | switch (tag >> 3) { |
3339 | // .tensorflow.WorkerHealth health_status = 1; |
3340 | case 1: |
3341 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
3342 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
3343 | CHK_(ptr); |
3344 | set_health_status(static_cast<::tensorflow::WorkerHealth>(val)); |
3345 | } else goto handle_unusual; |
3346 | continue; |
3347 | // repeated .tensorflow.Event worker_log = 2; |
3348 | case 2: |
3349 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
3350 | ptr -= 1; |
3351 | do { |
3352 | ptr += 1; |
3353 | ptr = ctx->ParseMessage(add_worker_log(), ptr); |
3354 | CHK_(ptr); |
3355 | if (!ctx->DataAvailable(ptr)) break; |
3356 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
3357 | } else goto handle_unusual; |
3358 | continue; |
3359 | // string hostname = 3; |
3360 | case 3: |
3361 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
3362 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_hostname(), ptr, ctx, "tensorflow.WorkerHeartbeatResponse.hostname" ); |
3363 | CHK_(ptr); |
3364 | } else goto handle_unusual; |
3365 | continue; |
3366 | default: { |
3367 | handle_unusual: |
3368 | if ((tag & 7) == 4 || tag == 0) { |
3369 | ctx->SetLastTag(tag); |
3370 | goto success; |
3371 | } |
3372 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3373 | CHK_(ptr != nullptr); |
3374 | continue; |
3375 | } |
3376 | } // switch |
3377 | } // while |
3378 | success: |
3379 | return ptr; |
3380 | failure: |
3381 | ptr = nullptr; |
3382 | goto success; |
3383 | #undef CHK_ |
3384 | } |
3385 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3386 | bool WorkerHeartbeatResponse::MergePartialFromCodedStream( |
3387 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3388 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3389 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3390 | // @@protoc_insertion_point(parse_start:tensorflow.WorkerHeartbeatResponse) |
3391 | for (;;) { |
3392 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3393 | tag = p.first; |
3394 | if (!p.second) goto handle_unusual; |
3395 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3396 | // .tensorflow.WorkerHealth health_status = 1; |
3397 | case 1: { |
3398 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
3399 | int value = 0; |
3400 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3401 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
3402 | input, &value))); |
3403 | set_health_status(static_cast< ::tensorflow::WorkerHealth >(value)); |
3404 | } else { |
3405 | goto handle_unusual; |
3406 | } |
3407 | break; |
3408 | } |
3409 | |
3410 | // repeated .tensorflow.Event worker_log = 2; |
3411 | case 2: { |
3412 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
3413 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3414 | input, add_worker_log())); |
3415 | } else { |
3416 | goto handle_unusual; |
3417 | } |
3418 | break; |
3419 | } |
3420 | |
3421 | // string hostname = 3; |
3422 | case 3: { |
3423 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
3424 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3425 | input, this->mutable_hostname())); |
3426 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3427 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
3428 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3429 | "tensorflow.WorkerHeartbeatResponse.hostname" )); |
3430 | } else { |
3431 | goto handle_unusual; |
3432 | } |
3433 | break; |
3434 | } |
3435 | |
3436 | default: { |
3437 | handle_unusual: |
3438 | if (tag == 0) { |
3439 | goto success; |
3440 | } |
3441 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3442 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3443 | break; |
3444 | } |
3445 | } |
3446 | } |
3447 | success: |
3448 | // @@protoc_insertion_point(parse_success:tensorflow.WorkerHeartbeatResponse) |
3449 | return true; |
3450 | failure: |
3451 | // @@protoc_insertion_point(parse_failure:tensorflow.WorkerHeartbeatResponse) |
3452 | return false; |
3453 | #undef DO_ |
3454 | } |
3455 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3456 | |
3457 | void WorkerHeartbeatResponse::SerializeWithCachedSizes( |
3458 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3459 | // @@protoc_insertion_point(serialize_start:tensorflow.WorkerHeartbeatResponse) |
3460 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3461 | (void) cached_has_bits; |
3462 | |
3463 | // .tensorflow.WorkerHealth health_status = 1; |
3464 | if (this->health_status() != 0) { |
3465 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
3466 | 1, this->health_status(), output); |
3467 | } |
3468 | |
3469 | // repeated .tensorflow.Event worker_log = 2; |
3470 | for (unsigned int i = 0, |
3471 | n = static_cast<unsigned int>(this->worker_log_size()); i < n; i++) { |
3472 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3473 | 2, |
3474 | this->worker_log(static_cast<int>(i)), |
3475 | output); |
3476 | } |
3477 | |
3478 | // string hostname = 3; |
3479 | if (this->hostname().size() > 0) { |
3480 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3481 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
3482 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3483 | "tensorflow.WorkerHeartbeatResponse.hostname" ); |
3484 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
3485 | 3, this->hostname(), output); |
3486 | } |
3487 | |
3488 | if (_internal_metadata_.have_unknown_fields()) { |
3489 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3490 | _internal_metadata_.unknown_fields(), output); |
3491 | } |
3492 | // @@protoc_insertion_point(serialize_end:tensorflow.WorkerHeartbeatResponse) |
3493 | } |
3494 | |
3495 | ::PROTOBUF_NAMESPACE_ID::uint8* WorkerHeartbeatResponse::InternalSerializeWithCachedSizesToArray( |
3496 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3497 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.WorkerHeartbeatResponse) |
3498 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3499 | (void) cached_has_bits; |
3500 | |
3501 | // .tensorflow.WorkerHealth health_status = 1; |
3502 | if (this->health_status() != 0) { |
3503 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
3504 | 1, this->health_status(), target); |
3505 | } |
3506 | |
3507 | // repeated .tensorflow.Event worker_log = 2; |
3508 | for (unsigned int i = 0, |
3509 | n = static_cast<unsigned int>(this->worker_log_size()); i < n; i++) { |
3510 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3511 | InternalWriteMessageToArray( |
3512 | 2, this->worker_log(static_cast<int>(i)), target); |
3513 | } |
3514 | |
3515 | // string hostname = 3; |
3516 | if (this->hostname().size() > 0) { |
3517 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3518 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
3519 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3520 | "tensorflow.WorkerHeartbeatResponse.hostname" ); |
3521 | target = |
3522 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3523 | 3, this->hostname(), target); |
3524 | } |
3525 | |
3526 | if (_internal_metadata_.have_unknown_fields()) { |
3527 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3528 | _internal_metadata_.unknown_fields(), target); |
3529 | } |
3530 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.WorkerHeartbeatResponse) |
3531 | return target; |
3532 | } |
3533 | |
3534 | size_t WorkerHeartbeatResponse::ByteSizeLong() const { |
3535 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.WorkerHeartbeatResponse) |
3536 | size_t total_size = 0; |
3537 | |
3538 | if (_internal_metadata_.have_unknown_fields()) { |
3539 | total_size += |
3540 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3541 | _internal_metadata_.unknown_fields()); |
3542 | } |
3543 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3544 | // Prevent compiler warnings about cached_has_bits being unused |
3545 | (void) cached_has_bits; |
3546 | |
3547 | // repeated .tensorflow.Event worker_log = 2; |
3548 | { |
3549 | unsigned int count = static_cast<unsigned int>(this->worker_log_size()); |
3550 | total_size += 1UL * count; |
3551 | for (unsigned int i = 0; i < count; i++) { |
3552 | total_size += |
3553 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3554 | this->worker_log(static_cast<int>(i))); |
3555 | } |
3556 | } |
3557 | |
3558 | // string hostname = 3; |
3559 | if (this->hostname().size() > 0) { |
3560 | total_size += 1 + |
3561 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3562 | this->hostname()); |
3563 | } |
3564 | |
3565 | // .tensorflow.WorkerHealth health_status = 1; |
3566 | if (this->health_status() != 0) { |
3567 | total_size += 1 + |
3568 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->health_status()); |
3569 | } |
3570 | |
3571 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3572 | SetCachedSize(cached_size); |
3573 | return total_size; |
3574 | } |
3575 | |
3576 | void WorkerHeartbeatResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3577 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.WorkerHeartbeatResponse) |
3578 | GOOGLE_DCHECK_NE(&from, this); |
3579 | const WorkerHeartbeatResponse* source = |
3580 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WorkerHeartbeatResponse>( |
3581 | &from); |
3582 | if (source == nullptr) { |
3583 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.WorkerHeartbeatResponse) |
3584 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3585 | } else { |
3586 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.WorkerHeartbeatResponse) |
3587 | MergeFrom(*source); |
3588 | } |
3589 | } |
3590 | |
3591 | void WorkerHeartbeatResponse::MergeFrom(const WorkerHeartbeatResponse& from) { |
3592 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.WorkerHeartbeatResponse) |
3593 | GOOGLE_DCHECK_NE(&from, this); |
3594 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3595 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3596 | (void) cached_has_bits; |
3597 | |
3598 | worker_log_.MergeFrom(from.worker_log_); |
3599 | if (from.hostname().size() > 0) { |
3600 | set_hostname(from.hostname()); |
3601 | } |
3602 | if (from.health_status() != 0) { |
3603 | set_health_status(from.health_status()); |
3604 | } |
3605 | } |
3606 | |
3607 | void WorkerHeartbeatResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3608 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.WorkerHeartbeatResponse) |
3609 | if (&from == this) return; |
3610 | Clear(); |
3611 | MergeFrom(from); |
3612 | } |
3613 | |
3614 | void WorkerHeartbeatResponse::CopyFrom(const WorkerHeartbeatResponse& from) { |
3615 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.WorkerHeartbeatResponse) |
3616 | if (&from == this) return; |
3617 | Clear(); |
3618 | MergeFrom(from); |
3619 | } |
3620 | |
3621 | bool WorkerHeartbeatResponse::IsInitialized() const { |
3622 | return true; |
3623 | } |
3624 | |
3625 | void WorkerHeartbeatResponse::InternalSwap(WorkerHeartbeatResponse* other) { |
3626 | using std::swap; |
3627 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3628 | CastToBase(&worker_log_)->InternalSwap(CastToBase(&other->worker_log_)); |
3629 | hostname_.Swap(&other->hostname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3630 | GetArenaNoVirtual()); |
3631 | swap(health_status_, other->health_status_); |
3632 | } |
3633 | |
3634 | ::PROTOBUF_NAMESPACE_ID::Metadata WorkerHeartbeatResponse::GetMetadata() const { |
3635 | return GetMetadataStatic(); |
3636 | } |
3637 | |
3638 | |
3639 | // @@protoc_insertion_point(namespace_scope) |
3640 | } // namespace tensorflow |
3641 | PROTOBUF_NAMESPACE_OPEN |
3642 | template<> PROTOBUF_NOINLINE ::tensorflow::Event* Arena::CreateMaybeMessage< ::tensorflow::Event >(Arena* arena) { |
3643 | return Arena::CreateMessageInternal< ::tensorflow::Event >(arena); |
3644 | } |
3645 | template<> PROTOBUF_NOINLINE ::tensorflow::LogMessage* Arena::CreateMaybeMessage< ::tensorflow::LogMessage >(Arena* arena) { |
3646 | return Arena::CreateMessageInternal< ::tensorflow::LogMessage >(arena); |
3647 | } |
3648 | template<> PROTOBUF_NOINLINE ::tensorflow::SessionLog* Arena::CreateMaybeMessage< ::tensorflow::SessionLog >(Arena* arena) { |
3649 | return Arena::CreateMessageInternal< ::tensorflow::SessionLog >(arena); |
3650 | } |
3651 | template<> PROTOBUF_NOINLINE ::tensorflow::TaggedRunMetadata* Arena::CreateMaybeMessage< ::tensorflow::TaggedRunMetadata >(Arena* arena) { |
3652 | return Arena::CreateMessageInternal< ::tensorflow::TaggedRunMetadata >(arena); |
3653 | } |
3654 | template<> PROTOBUF_NOINLINE ::tensorflow::WatchdogConfig* Arena::CreateMaybeMessage< ::tensorflow::WatchdogConfig >(Arena* arena) { |
3655 | return Arena::CreateMessageInternal< ::tensorflow::WatchdogConfig >(arena); |
3656 | } |
3657 | template<> PROTOBUF_NOINLINE ::tensorflow::RequestedExitCode* Arena::CreateMaybeMessage< ::tensorflow::RequestedExitCode >(Arena* arena) { |
3658 | return Arena::CreateMessageInternal< ::tensorflow::RequestedExitCode >(arena); |
3659 | } |
3660 | template<> PROTOBUF_NOINLINE ::tensorflow::WorkerHeartbeatRequest* Arena::CreateMaybeMessage< ::tensorflow::WorkerHeartbeatRequest >(Arena* arena) { |
3661 | return Arena::CreateMessageInternal< ::tensorflow::WorkerHeartbeatRequest >(arena); |
3662 | } |
3663 | template<> PROTOBUF_NOINLINE ::tensorflow::WorkerHeartbeatResponse* Arena::CreateMaybeMessage< ::tensorflow::WorkerHeartbeatResponse >(Arena* arena) { |
3664 | return Arena::CreateMessageInternal< ::tensorflow::WorkerHeartbeatResponse >(arena); |
3665 | } |
3666 | PROTOBUF_NAMESPACE_CLOSE |
3667 | |
3668 | // @@protoc_insertion_point(global_scope) |
3669 | #include <google/protobuf/port_undef.inc> |
3670 | |