1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/worker.proto
3
4#include "tensorflow/core/protobuf/worker.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_ConfigProto_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CostGraphDef_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeviceLocality_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fworker_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GraphOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fworker_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto;
29extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ServerDef_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto;
30extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fworker_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto;
31extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StepStats_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto;
32extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
33extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto;
34extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fworker_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto;
35namespace tensorflow {
36class GetStatusRequestDefaultTypeInternal {
37 public:
38 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetStatusRequest> _instance;
39} _GetStatusRequest_default_instance_;
40class GetStatusResponseDefaultTypeInternal {
41 public:
42 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetStatusResponse> _instance;
43} _GetStatusResponse_default_instance_;
44class CreateWorkerSessionRequestDefaultTypeInternal {
45 public:
46 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateWorkerSessionRequest> _instance;
47} _CreateWorkerSessionRequest_default_instance_;
48class CreateWorkerSessionResponseDefaultTypeInternal {
49 public:
50 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateWorkerSessionResponse> _instance;
51} _CreateWorkerSessionResponse_default_instance_;
52class DeleteWorkerSessionRequestDefaultTypeInternal {
53 public:
54 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeleteWorkerSessionRequest> _instance;
55} _DeleteWorkerSessionRequest_default_instance_;
56class DeleteWorkerSessionResponseDefaultTypeInternal {
57 public:
58 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeleteWorkerSessionResponse> _instance;
59} _DeleteWorkerSessionResponse_default_instance_;
60class RegisterGraphRequestDefaultTypeInternal {
61 public:
62 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegisterGraphRequest> _instance;
63} _RegisterGraphRequest_default_instance_;
64class RegisterGraphResponseDefaultTypeInternal {
65 public:
66 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegisterGraphResponse> _instance;
67} _RegisterGraphResponse_default_instance_;
68class DeregisterGraphRequestDefaultTypeInternal {
69 public:
70 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeregisterGraphRequest> _instance;
71} _DeregisterGraphRequest_default_instance_;
72class DeregisterGraphResponseDefaultTypeInternal {
73 public:
74 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeregisterGraphResponse> _instance;
75} _DeregisterGraphResponse_default_instance_;
76class CleanupAllRequestDefaultTypeInternal {
77 public:
78 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CleanupAllRequest> _instance;
79} _CleanupAllRequest_default_instance_;
80class CleanupAllResponseDefaultTypeInternal {
81 public:
82 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CleanupAllResponse> _instance;
83} _CleanupAllResponse_default_instance_;
84class ExecutorOptsDefaultTypeInternal {
85 public:
86 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExecutorOpts> _instance;
87} _ExecutorOpts_default_instance_;
88class RunGraphRequestDefaultTypeInternal {
89 public:
90 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunGraphRequest> _instance;
91} _RunGraphRequest_default_instance_;
92class RunGraphResponseDefaultTypeInternal {
93 public:
94 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunGraphResponse> _instance;
95} _RunGraphResponse_default_instance_;
96class CleanupGraphRequestDefaultTypeInternal {
97 public:
98 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CleanupGraphRequest> _instance;
99} _CleanupGraphRequest_default_instance_;
100class CleanupGraphResponseDefaultTypeInternal {
101 public:
102 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CleanupGraphResponse> _instance;
103} _CleanupGraphResponse_default_instance_;
104class RecvTensorRequestDefaultTypeInternal {
105 public:
106 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RecvTensorRequest> _instance;
107} _RecvTensorRequest_default_instance_;
108class RecvTensorResponseDefaultTypeInternal {
109 public:
110 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RecvTensorResponse> _instance;
111} _RecvTensorResponse_default_instance_;
112class MarkRecvFinishedRequestDefaultTypeInternal {
113 public:
114 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MarkRecvFinishedRequest> _instance;
115} _MarkRecvFinishedRequest_default_instance_;
116class MarkRecvFinishedResponseDefaultTypeInternal {
117 public:
118 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MarkRecvFinishedResponse> _instance;
119} _MarkRecvFinishedResponse_default_instance_;
120class LoggingRequestDefaultTypeInternal {
121 public:
122 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LoggingRequest> _instance;
123} _LoggingRequest_default_instance_;
124class LabeledStepStatsDefaultTypeInternal {
125 public:
126 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LabeledStepStats> _instance;
127} _LabeledStepStats_default_instance_;
128class LoggingResponseDefaultTypeInternal {
129 public:
130 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LoggingResponse> _instance;
131} _LoggingResponse_default_instance_;
132class TraceOptsDefaultTypeInternal {
133 public:
134 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TraceOpts> _instance;
135} _TraceOpts_default_instance_;
136class TracingRequestDefaultTypeInternal {
137 public:
138 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TracingRequest> _instance;
139} _TracingRequest_default_instance_;
140class TracingResponseDefaultTypeInternal {
141 public:
142 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TracingResponse> _instance;
143} _TracingResponse_default_instance_;
144class RecvBufRequestDefaultTypeInternal {
145 public:
146 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RecvBufRequest> _instance;
147} _RecvBufRequest_default_instance_;
148class RecvBufResponseDefaultTypeInternal {
149 public:
150 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RecvBufResponse> _instance;
151} _RecvBufResponse_default_instance_;
152class CompleteGroupRequestDefaultTypeInternal {
153 public:
154 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CompleteGroupRequest> _instance;
155} _CompleteGroupRequest_default_instance_;
156class CompleteGroupResponseDefaultTypeInternal {
157 public:
158 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CompleteGroupResponse> _instance;
159} _CompleteGroupResponse_default_instance_;
160class CompleteInstanceRequestDefaultTypeInternal {
161 public:
162 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CompleteInstanceRequest> _instance;
163} _CompleteInstanceRequest_default_instance_;
164class CompleteInstanceResponseDefaultTypeInternal {
165 public:
166 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CompleteInstanceResponse> _instance;
167} _CompleteInstanceResponse_default_instance_;
168class GetStepSequenceRequestDefaultTypeInternal {
169 public:
170 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetStepSequenceRequest> _instance;
171} _GetStepSequenceRequest_default_instance_;
172class StepSequenceDefaultTypeInternal {
173 public:
174 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StepSequence> _instance;
175} _StepSequence_default_instance_;
176class GetStepSequenceResponseDefaultTypeInternal {
177 public:
178 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetStepSequenceResponse> _instance;
179} _GetStepSequenceResponse_default_instance_;
180} // namespace tensorflow
181static void InitDefaultsscc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
182 GOOGLE_PROTOBUF_VERIFY_VERSION;
183
184 {
185 void* ptr = &::tensorflow::_CleanupAllRequest_default_instance_;
186 new (ptr) ::tensorflow::CleanupAllRequest();
187 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
188 }
189 ::tensorflow::CleanupAllRequest::InitAsDefaultInstance();
190}
191
192::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
193 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
194
195static void InitDefaultsscc_info_CleanupAllResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
196 GOOGLE_PROTOBUF_VERIFY_VERSION;
197
198 {
199 void* ptr = &::tensorflow::_CleanupAllResponse_default_instance_;
200 new (ptr) ::tensorflow::CleanupAllResponse();
201 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
202 }
203 ::tensorflow::CleanupAllResponse::InitAsDefaultInstance();
204}
205
206::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupAllResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
207 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CleanupAllResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
208
209static void InitDefaultsscc_info_CleanupGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
210 GOOGLE_PROTOBUF_VERIFY_VERSION;
211
212 {
213 void* ptr = &::tensorflow::_CleanupGraphRequest_default_instance_;
214 new (ptr) ::tensorflow::CleanupGraphRequest();
215 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
216 }
217 ::tensorflow::CleanupGraphRequest::InitAsDefaultInstance();
218}
219
220::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
221 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CleanupGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
222
223static void InitDefaultsscc_info_CleanupGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
224 GOOGLE_PROTOBUF_VERIFY_VERSION;
225
226 {
227 void* ptr = &::tensorflow::_CleanupGraphResponse_default_instance_;
228 new (ptr) ::tensorflow::CleanupGraphResponse();
229 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
230 }
231 ::tensorflow::CleanupGraphResponse::InitAsDefaultInstance();
232}
233
234::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
235 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CleanupGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
236
237static void InitDefaultsscc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
238 GOOGLE_PROTOBUF_VERIFY_VERSION;
239
240 {
241 void* ptr = &::tensorflow::_CompleteGroupRequest_default_instance_;
242 new (ptr) ::tensorflow::CompleteGroupRequest();
243 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
244 }
245 ::tensorflow::CompleteGroupRequest::InitAsDefaultInstance();
246}
247
248::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
249 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
250 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
251
252static void InitDefaultsscc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
253 GOOGLE_PROTOBUF_VERIFY_VERSION;
254
255 {
256 void* ptr = &::tensorflow::_CompleteGroupResponse_default_instance_;
257 new (ptr) ::tensorflow::CompleteGroupResponse();
258 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
259 }
260 ::tensorflow::CompleteGroupResponse::InitAsDefaultInstance();
261}
262
263::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
264 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
265 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
266
267static void InitDefaultsscc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
268 GOOGLE_PROTOBUF_VERIFY_VERSION;
269
270 {
271 void* ptr = &::tensorflow::_CompleteInstanceRequest_default_instance_;
272 new (ptr) ::tensorflow::CompleteInstanceRequest();
273 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
274 }
275 ::tensorflow::CompleteInstanceRequest::InitAsDefaultInstance();
276}
277
278::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
279 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
280 &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,}};
281
282static void InitDefaultsscc_info_CompleteInstanceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
283 GOOGLE_PROTOBUF_VERIFY_VERSION;
284
285 {
286 void* ptr = &::tensorflow::_CompleteInstanceResponse_default_instance_;
287 new (ptr) ::tensorflow::CompleteInstanceResponse();
288 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
289 }
290 ::tensorflow::CompleteInstanceResponse::InitAsDefaultInstance();
291}
292
293::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompleteInstanceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
294 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompleteInstanceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
295
296static void InitDefaultsscc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
297 GOOGLE_PROTOBUF_VERIFY_VERSION;
298
299 {
300 void* ptr = &::tensorflow::_CreateWorkerSessionRequest_default_instance_;
301 new (ptr) ::tensorflow::CreateWorkerSessionRequest();
302 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
303 }
304 ::tensorflow::CreateWorkerSessionRequest::InitAsDefaultInstance();
305}
306
307::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
308 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
309 &scc_info_ServerDef_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto.base,
310 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
311
312static void InitDefaultsscc_info_CreateWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
313 GOOGLE_PROTOBUF_VERIFY_VERSION;
314
315 {
316 void* ptr = &::tensorflow::_CreateWorkerSessionResponse_default_instance_;
317 new (ptr) ::tensorflow::CreateWorkerSessionResponse();
318 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
319 }
320 ::tensorflow::CreateWorkerSessionResponse::InitAsDefaultInstance();
321}
322
323::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
324 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CreateWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
325
326static void InitDefaultsscc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
327 GOOGLE_PROTOBUF_VERIFY_VERSION;
328
329 {
330 void* ptr = &::tensorflow::_DeleteWorkerSessionRequest_default_instance_;
331 new (ptr) ::tensorflow::DeleteWorkerSessionRequest();
332 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
333 }
334 ::tensorflow::DeleteWorkerSessionRequest::InitAsDefaultInstance();
335}
336
337::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
338 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
339
340static void InitDefaultsscc_info_DeleteWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
341 GOOGLE_PROTOBUF_VERIFY_VERSION;
342
343 {
344 void* ptr = &::tensorflow::_DeleteWorkerSessionResponse_default_instance_;
345 new (ptr) ::tensorflow::DeleteWorkerSessionResponse();
346 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
347 }
348 ::tensorflow::DeleteWorkerSessionResponse::InitAsDefaultInstance();
349}
350
351::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
352 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
353
354static void InitDefaultsscc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
355 GOOGLE_PROTOBUF_VERIFY_VERSION;
356
357 {
358 void* ptr = &::tensorflow::_DeregisterGraphRequest_default_instance_;
359 new (ptr) ::tensorflow::DeregisterGraphRequest();
360 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
361 }
362 ::tensorflow::DeregisterGraphRequest::InitAsDefaultInstance();
363}
364
365::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
366 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
367
368static void InitDefaultsscc_info_DeregisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
369 GOOGLE_PROTOBUF_VERIFY_VERSION;
370
371 {
372 void* ptr = &::tensorflow::_DeregisterGraphResponse_default_instance_;
373 new (ptr) ::tensorflow::DeregisterGraphResponse();
374 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
375 }
376 ::tensorflow::DeregisterGraphResponse::InitAsDefaultInstance();
377}
378
379::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeregisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
380 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeregisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
381
382static void InitDefaultsscc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
383 GOOGLE_PROTOBUF_VERIFY_VERSION;
384
385 {
386 void* ptr = &::tensorflow::_ExecutorOpts_default_instance_;
387 new (ptr) ::tensorflow::ExecutorOpts();
388 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
389 }
390 ::tensorflow::ExecutorOpts::InitAsDefaultInstance();
391}
392
393::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
394 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
395
396static void InitDefaultsscc_info_GetStatusRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
397 GOOGLE_PROTOBUF_VERIFY_VERSION;
398
399 {
400 void* ptr = &::tensorflow::_GetStatusRequest_default_instance_;
401 new (ptr) ::tensorflow::GetStatusRequest();
402 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
403 }
404 ::tensorflow::GetStatusRequest::InitAsDefaultInstance();
405}
406
407::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetStatusRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
408 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetStatusRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
409
410static void InitDefaultsscc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
411 GOOGLE_PROTOBUF_VERIFY_VERSION;
412
413 {
414 void* ptr = &::tensorflow::_GetStatusResponse_default_instance_;
415 new (ptr) ::tensorflow::GetStatusResponse();
416 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
417 }
418 ::tensorflow::GetStatusResponse::InitAsDefaultInstance();
419}
420
421::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
422 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
423 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
424
425static void InitDefaultsscc_info_GetStepSequenceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
426 GOOGLE_PROTOBUF_VERIFY_VERSION;
427
428 {
429 void* ptr = &::tensorflow::_GetStepSequenceRequest_default_instance_;
430 new (ptr) ::tensorflow::GetStepSequenceRequest();
431 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
432 }
433 ::tensorflow::GetStepSequenceRequest::InitAsDefaultInstance();
434}
435
436::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetStepSequenceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
437 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetStepSequenceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
438
439static void InitDefaultsscc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
440 GOOGLE_PROTOBUF_VERIFY_VERSION;
441
442 {
443 void* ptr = &::tensorflow::_GetStepSequenceResponse_default_instance_;
444 new (ptr) ::tensorflow::GetStepSequenceResponse();
445 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
446 }
447 ::tensorflow::GetStepSequenceResponse::InitAsDefaultInstance();
448}
449
450::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
451 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
452 &scc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,}};
453
454static void InitDefaultsscc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
455 GOOGLE_PROTOBUF_VERIFY_VERSION;
456
457 {
458 void* ptr = &::tensorflow::_LabeledStepStats_default_instance_;
459 new (ptr) ::tensorflow::LabeledStepStats();
460 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
461 }
462 ::tensorflow::LabeledStepStats::InitAsDefaultInstance();
463}
464
465::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
466 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
467 &scc_info_StepStats_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto.base,}};
468
469static void InitDefaultsscc_info_LoggingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
470 GOOGLE_PROTOBUF_VERIFY_VERSION;
471
472 {
473 void* ptr = &::tensorflow::_LoggingRequest_default_instance_;
474 new (ptr) ::tensorflow::LoggingRequest();
475 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
476 }
477 ::tensorflow::LoggingRequest::InitAsDefaultInstance();
478}
479
480::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LoggingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
481 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LoggingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
482
483static void InitDefaultsscc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
484 GOOGLE_PROTOBUF_VERIFY_VERSION;
485
486 {
487 void* ptr = &::tensorflow::_LoggingResponse_default_instance_;
488 new (ptr) ::tensorflow::LoggingResponse();
489 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
490 }
491 ::tensorflow::LoggingResponse::InitAsDefaultInstance();
492}
493
494::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
495 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
496 &scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,}};
497
498static void InitDefaultsscc_info_MarkRecvFinishedRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
499 GOOGLE_PROTOBUF_VERIFY_VERSION;
500
501 {
502 void* ptr = &::tensorflow::_MarkRecvFinishedRequest_default_instance_;
503 new (ptr) ::tensorflow::MarkRecvFinishedRequest();
504 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
505 }
506 ::tensorflow::MarkRecvFinishedRequest::InitAsDefaultInstance();
507}
508
509::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarkRecvFinishedRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
510 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MarkRecvFinishedRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
511
512static void InitDefaultsscc_info_MarkRecvFinishedResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
513 GOOGLE_PROTOBUF_VERIFY_VERSION;
514
515 {
516 void* ptr = &::tensorflow::_MarkRecvFinishedResponse_default_instance_;
517 new (ptr) ::tensorflow::MarkRecvFinishedResponse();
518 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
519 }
520 ::tensorflow::MarkRecvFinishedResponse::InitAsDefaultInstance();
521}
522
523::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarkRecvFinishedResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
524 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MarkRecvFinishedResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
525
526static void InitDefaultsscc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
527 GOOGLE_PROTOBUF_VERIFY_VERSION;
528
529 {
530 void* ptr = &::tensorflow::_RecvBufRequest_default_instance_;
531 new (ptr) ::tensorflow::RecvBufRequest();
532 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
533 }
534 ::tensorflow::RecvBufRequest::InitAsDefaultInstance();
535}
536
537::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
538 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
539 &scc_info_DeviceLocality_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,
540 &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}};
541
542static void InitDefaultsscc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
543 GOOGLE_PROTOBUF_VERIFY_VERSION;
544
545 {
546 void* ptr = &::tensorflow::_RecvBufResponse_default_instance_;
547 new (ptr) ::tensorflow::RecvBufResponse();
548 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
549 }
550 ::tensorflow::RecvBufResponse::InitAsDefaultInstance();
551}
552
553::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
554 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
555 &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}};
556
557static void InitDefaultsscc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
558 GOOGLE_PROTOBUF_VERIFY_VERSION;
559
560 {
561 void* ptr = &::tensorflow::_RecvTensorRequest_default_instance_;
562 new (ptr) ::tensorflow::RecvTensorRequest();
563 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
564 }
565 ::tensorflow::RecvTensorRequest::InitAsDefaultInstance();
566}
567
568::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
569 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
570 &scc_info_DeviceLocality_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,
571 &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}};
572
573static void InitDefaultsscc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
574 GOOGLE_PROTOBUF_VERIFY_VERSION;
575
576 {
577 void* ptr = &::tensorflow::_RecvTensorResponse_default_instance_;
578 new (ptr) ::tensorflow::RecvTensorResponse();
579 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
580 }
581 ::tensorflow::RecvTensorResponse::InitAsDefaultInstance();
582}
583
584::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
585 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
586 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,
587 &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}};
588
589static void InitDefaultsscc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
590 GOOGLE_PROTOBUF_VERIFY_VERSION;
591
592 {
593 void* ptr = &::tensorflow::_RegisterGraphRequest_default_instance_;
594 new (ptr) ::tensorflow::RegisterGraphRequest();
595 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
596 }
597 ::tensorflow::RegisterGraphRequest::InitAsDefaultInstance();
598}
599
600::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
601 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
602 &scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto.base,
603 &scc_info_GraphOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,
604 &scc_info_DebugOptions_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto.base,
605 &scc_info_ConfigProto_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
606
607static void InitDefaultsscc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
608 GOOGLE_PROTOBUF_VERIFY_VERSION;
609
610 {
611 void* ptr = &::tensorflow::_RegisterGraphResponse_default_instance_;
612 new (ptr) ::tensorflow::RegisterGraphResponse();
613 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
614 }
615 ::tensorflow::RegisterGraphResponse::InitAsDefaultInstance();
616}
617
618::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
619 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
620
621static void InitDefaultsscc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
622 GOOGLE_PROTOBUF_VERIFY_VERSION;
623
624 {
625 void* ptr = &::tensorflow::_RunGraphRequest_default_instance_;
626 new (ptr) ::tensorflow::RunGraphRequest();
627 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
628 }
629 ::tensorflow::RunGraphRequest::InitAsDefaultInstance();
630}
631
632::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
633 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
634 &scc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
635 &scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto.base,}};
636
637static void InitDefaultsscc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
638 GOOGLE_PROTOBUF_VERIFY_VERSION;
639
640 {
641 void* ptr = &::tensorflow::_RunGraphResponse_default_instance_;
642 new (ptr) ::tensorflow::RunGraphResponse();
643 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
644 }
645 ::tensorflow::RunGraphResponse::InitAsDefaultInstance();
646}
647
648::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
649 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
650 &scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto.base,
651 &scc_info_StepStats_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto.base,
652 &scc_info_CostGraphDef_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto.base,
653 &scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto.base,}};
654
655static void InitDefaultsscc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
656 GOOGLE_PROTOBUF_VERIFY_VERSION;
657
658 {
659 void* ptr = &::tensorflow::_StepSequence_default_instance_;
660 new (ptr) ::tensorflow::StepSequence();
661 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
662 }
663 ::tensorflow::StepSequence::InitAsDefaultInstance();
664}
665
666::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
667 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
668
669static void InitDefaultsscc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
670 GOOGLE_PROTOBUF_VERIFY_VERSION;
671
672 {
673 void* ptr = &::tensorflow::_TraceOpts_default_instance_;
674 new (ptr) ::tensorflow::TraceOpts();
675 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
676 }
677 ::tensorflow::TraceOpts::InitAsDefaultInstance();
678}
679
680::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
681 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
682
683static void InitDefaultsscc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
684 GOOGLE_PROTOBUF_VERIFY_VERSION;
685
686 {
687 void* ptr = &::tensorflow::_TracingRequest_default_instance_;
688 new (ptr) ::tensorflow::TracingRequest();
689 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
690 }
691 ::tensorflow::TracingRequest::InitAsDefaultInstance();
692}
693
694::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
695 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {
696 &scc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,}};
697
698static void InitDefaultsscc_info_TracingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto() {
699 GOOGLE_PROTOBUF_VERIFY_VERSION;
700
701 {
702 void* ptr = &::tensorflow::_TracingResponse_default_instance_;
703 new (ptr) ::tensorflow::TracingResponse();
704 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
705 }
706 ::tensorflow::TracingResponse::InitAsDefaultInstance();
707}
708
709::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TracingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto =
710 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TracingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto}, {}};
711
712static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fworker_2eproto[36];
713static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fworker_2eproto = nullptr;
714static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fworker_2eproto = nullptr;
715
716const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fworker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
717 ~0u, // no _has_bits_
718 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStatusRequest, _internal_metadata_),
719 ~0u, // no _extensions_
720 ~0u, // no _oneof_case_
721 ~0u, // no _weak_field_map_
722 ~0u, // no _has_bits_
723 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStatusResponse, _internal_metadata_),
724 ~0u, // no _extensions_
725 ~0u, // no _oneof_case_
726 ~0u, // no _weak_field_map_
727 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStatusResponse, device_attributes_),
728 ~0u, // no _has_bits_
729 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, _internal_metadata_),
730 ~0u, // no _extensions_
731 ~0u, // no _oneof_case_
732 ~0u, // no _weak_field_map_
733 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, session_handle_),
734 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, server_def_),
735 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, isolate_session_state_),
736 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, cluster_device_attributes_),
737 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, master_task_),
738 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionRequest, master_incarnation_),
739 ~0u, // no _has_bits_
740 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateWorkerSessionResponse, _internal_metadata_),
741 ~0u, // no _extensions_
742 ~0u, // no _oneof_case_
743 ~0u, // no _weak_field_map_
744 ~0u, // no _has_bits_
745 PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteWorkerSessionRequest, _internal_metadata_),
746 ~0u, // no _extensions_
747 ~0u, // no _oneof_case_
748 ~0u, // no _weak_field_map_
749 PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteWorkerSessionRequest, session_handle_),
750 ~0u, // no _has_bits_
751 PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteWorkerSessionResponse, _internal_metadata_),
752 ~0u, // no _extensions_
753 ~0u, // no _oneof_case_
754 ~0u, // no _weak_field_map_
755 ~0u, // no _has_bits_
756 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, _internal_metadata_),
757 ~0u, // no _extensions_
758 ~0u, // no _oneof_case_
759 ~0u, // no _weak_field_map_
760 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, session_handle_),
761 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, create_worker_session_called_),
762 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, graph_def_),
763 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, has_control_flow_),
764 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, graph_options_),
765 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, debug_options_),
766 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, collective_graph_key_),
767 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphRequest, config_proto_),
768 ~0u, // no _has_bits_
769 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphResponse, _internal_metadata_),
770 ~0u, // no _extensions_
771 ~0u, // no _oneof_case_
772 ~0u, // no _weak_field_map_
773 PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterGraphResponse, graph_handle_),
774 ~0u, // no _has_bits_
775 PROTOBUF_FIELD_OFFSET(::tensorflow::DeregisterGraphRequest, _internal_metadata_),
776 ~0u, // no _extensions_
777 ~0u, // no _oneof_case_
778 ~0u, // no _weak_field_map_
779 PROTOBUF_FIELD_OFFSET(::tensorflow::DeregisterGraphRequest, session_handle_),
780 PROTOBUF_FIELD_OFFSET(::tensorflow::DeregisterGraphRequest, create_worker_session_called_),
781 PROTOBUF_FIELD_OFFSET(::tensorflow::DeregisterGraphRequest, graph_handle_),
782 ~0u, // no _has_bits_
783 PROTOBUF_FIELD_OFFSET(::tensorflow::DeregisterGraphResponse, _internal_metadata_),
784 ~0u, // no _extensions_
785 ~0u, // no _oneof_case_
786 ~0u, // no _weak_field_map_
787 ~0u, // no _has_bits_
788 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupAllRequest, _internal_metadata_),
789 ~0u, // no _extensions_
790 ~0u, // no _oneof_case_
791 ~0u, // no _weak_field_map_
792 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupAllRequest, container_),
793 ~0u, // no _has_bits_
794 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupAllResponse, _internal_metadata_),
795 ~0u, // no _extensions_
796 ~0u, // no _oneof_case_
797 ~0u, // no _weak_field_map_
798 ~0u, // no _has_bits_
799 PROTOBUF_FIELD_OFFSET(::tensorflow::ExecutorOpts, _internal_metadata_),
800 ~0u, // no _extensions_
801 ~0u, // no _oneof_case_
802 ~0u, // no _weak_field_map_
803 PROTOBUF_FIELD_OFFSET(::tensorflow::ExecutorOpts, record_costs_),
804 PROTOBUF_FIELD_OFFSET(::tensorflow::ExecutorOpts, record_timeline_),
805 PROTOBUF_FIELD_OFFSET(::tensorflow::ExecutorOpts, record_partition_graphs_),
806 PROTOBUF_FIELD_OFFSET(::tensorflow::ExecutorOpts, report_tensor_allocations_upon_oom_),
807 ~0u, // no _has_bits_
808 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, _internal_metadata_),
809 ~0u, // no _extensions_
810 ~0u, // no _oneof_case_
811 ~0u, // no _weak_field_map_
812 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, session_handle_),
813 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, create_worker_session_called_),
814 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, graph_handle_),
815 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, step_id_),
816 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, exec_opts_),
817 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, send_),
818 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, recv_key_),
819 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, is_partial_),
820 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, is_last_partial_run_),
821 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, store_errors_in_response_body_),
822 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphRequest, request_id_),
823 ~0u, // no _has_bits_
824 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, _internal_metadata_),
825 ~0u, // no _extensions_
826 ~0u, // no _oneof_case_
827 ~0u, // no _weak_field_map_
828 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, recv_),
829 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, step_stats_),
830 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, cost_graph_),
831 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, partition_graph_),
832 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, status_code_),
833 PROTOBUF_FIELD_OFFSET(::tensorflow::RunGraphResponse, status_error_message_),
834 ~0u, // no _has_bits_
835 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupGraphRequest, _internal_metadata_),
836 ~0u, // no _extensions_
837 ~0u, // no _oneof_case_
838 ~0u, // no _weak_field_map_
839 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupGraphRequest, step_id_),
840 ~0u, // no _has_bits_
841 PROTOBUF_FIELD_OFFSET(::tensorflow::CleanupGraphResponse, _internal_metadata_),
842 ~0u, // no _extensions_
843 ~0u, // no _oneof_case_
844 ~0u, // no _weak_field_map_
845 ~0u, // no _has_bits_
846 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, _internal_metadata_),
847 ~0u, // no _extensions_
848 ~0u, // no _oneof_case_
849 ~0u, // no _weak_field_map_
850 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, step_id_),
851 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, rendezvous_key_),
852 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, dma_ok_),
853 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, client_locality_),
854 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, server_locality_),
855 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, transport_options_),
856 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorRequest, request_id_),
857 ~0u, // no _has_bits_
858 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, _internal_metadata_),
859 ~0u, // no _extensions_
860 ~0u, // no _oneof_case_
861 ~0u, // no _weak_field_map_
862 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, tensor_),
863 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, is_dead_),
864 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, send_start_micros_),
865 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, transport_options_),
866 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvTensorResponse, require_ack_),
867 ~0u, // no _has_bits_
868 PROTOBUF_FIELD_OFFSET(::tensorflow::MarkRecvFinishedRequest, _internal_metadata_),
869 ~0u, // no _extensions_
870 ~0u, // no _oneof_case_
871 ~0u, // no _weak_field_map_
872 PROTOBUF_FIELD_OFFSET(::tensorflow::MarkRecvFinishedRequest, request_id_),
873 ~0u, // no _has_bits_
874 PROTOBUF_FIELD_OFFSET(::tensorflow::MarkRecvFinishedResponse, _internal_metadata_),
875 ~0u, // no _extensions_
876 ~0u, // no _oneof_case_
877 ~0u, // no _weak_field_map_
878 ~0u, // no _has_bits_
879 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingRequest, _internal_metadata_),
880 ~0u, // no _extensions_
881 ~0u, // no _oneof_case_
882 ~0u, // no _weak_field_map_
883 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingRequest, enable_rpc_logging_),
884 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingRequest, disable_rpc_logging_),
885 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingRequest, clear_),
886 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingRequest, fetch_step_id_),
887 ~0u, // no _has_bits_
888 PROTOBUF_FIELD_OFFSET(::tensorflow::LabeledStepStats, _internal_metadata_),
889 ~0u, // no _extensions_
890 ~0u, // no _oneof_case_
891 ~0u, // no _weak_field_map_
892 PROTOBUF_FIELD_OFFSET(::tensorflow::LabeledStepStats, step_id_),
893 PROTOBUF_FIELD_OFFSET(::tensorflow::LabeledStepStats, step_stats_),
894 ~0u, // no _has_bits_
895 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingResponse, _internal_metadata_),
896 ~0u, // no _extensions_
897 ~0u, // no _oneof_case_
898 ~0u, // no _weak_field_map_
899 PROTOBUF_FIELD_OFFSET(::tensorflow::LoggingResponse, step_),
900 ~0u, // no _has_bits_
901 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, _internal_metadata_),
902 ~0u, // no _extensions_
903 ~0u, // no _oneof_case_
904 ~0u, // no _weak_field_map_
905 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, duration_),
906 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, use_step_profiler_),
907 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, use_kernel_profiler_),
908 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, use_extended_profiler_),
909 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, use_gpu_profiler_),
910 PROTOBUF_FIELD_OFFSET(::tensorflow::TraceOpts, use_sample_profiler_),
911 ~0u, // no _has_bits_
912 PROTOBUF_FIELD_OFFSET(::tensorflow::TracingRequest, _internal_metadata_),
913 ~0u, // no _extensions_
914 ~0u, // no _oneof_case_
915 ~0u, // no _weak_field_map_
916 PROTOBUF_FIELD_OFFSET(::tensorflow::TracingRequest, options_),
917 ~0u, // no _has_bits_
918 PROTOBUF_FIELD_OFFSET(::tensorflow::TracingResponse, _internal_metadata_),
919 ~0u, // no _extensions_
920 ~0u, // no _oneof_case_
921 ~0u, // no _weak_field_map_
922 ~0u, // no _has_bits_
923 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, _internal_metadata_),
924 ~0u, // no _extensions_
925 ~0u, // no _oneof_case_
926 ~0u, // no _weak_field_map_
927 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, step_id_),
928 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, buf_rendezvous_key_),
929 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, num_bytes_),
930 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, buf_ptr_),
931 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, client_locality_),
932 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, server_locality_),
933 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, transport_options_),
934 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, src_device_),
935 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, dst_device_),
936 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, request_id_),
937 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRequest, src_incarnation_),
938 ~0u, // no _has_bits_
939 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, _internal_metadata_),
940 ~0u, // no _extensions_
941 ~0u, // no _oneof_case_
942 ~0u, // no _weak_field_map_
943 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, buf_ptr_),
944 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, num_bytes_),
945 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, is_dead_),
946 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, transport_options_),
947 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, send_start_micros_),
948 PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufResponse, require_ack_),
949 ~0u, // no _has_bits_
950 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, _internal_metadata_),
951 ~0u, // no _extensions_
952 ~0u, // no _oneof_case_
953 ~0u, // no _weak_field_map_
954 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, group_key_),
955 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, group_size_),
956 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, device_type_),
957 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, collective_type_),
958 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupRequest, device_attributes_),
959 ~0u, // no _has_bits_
960 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, _internal_metadata_),
961 ~0u, // no _extensions_
962 ~0u, // no _oneof_case_
963 ~0u, // no _weak_field_map_
964 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, group_key_),
965 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, group_size_),
966 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, device_type_),
967 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, num_tasks_),
968 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, communicator_key_),
969 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteGroupResponse, device_attributes_),
970 ~0u, // no _has_bits_
971 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, _internal_metadata_),
972 ~0u, // no _extensions_
973 ~0u, // no _oneof_case_
974 ~0u, // no _weak_field_map_
975 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, name_),
976 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, type_),
977 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, data_type_),
978 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, shape_),
979 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, group_key_),
980 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, group_size_),
981 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, instance_key_),
982 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, device_type_),
983 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, subdiv_offset_),
984 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, device_),
985 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceRequest, is_source_),
986 ~0u, // no _has_bits_
987 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceResponse, _internal_metadata_),
988 ~0u, // no _extensions_
989 ~0u, // no _oneof_case_
990 ~0u, // no _weak_field_map_
991 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceResponse, instance_key_),
992 PROTOBUF_FIELD_OFFSET(::tensorflow::CompleteInstanceResponse, source_rank_),
993 ~0u, // no _has_bits_
994 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStepSequenceRequest, _internal_metadata_),
995 ~0u, // no _extensions_
996 ~0u, // no _oneof_case_
997 ~0u, // no _weak_field_map_
998 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStepSequenceRequest, graph_key_),
999 ~0u, // no _has_bits_
1000 PROTOBUF_FIELD_OFFSET(::tensorflow::StepSequence, _internal_metadata_),
1001 ~0u, // no _extensions_
1002 ~0u, // no _oneof_case_
1003 ~0u, // no _weak_field_map_
1004 PROTOBUF_FIELD_OFFSET(::tensorflow::StepSequence, graph_key_),
1005 PROTOBUF_FIELD_OFFSET(::tensorflow::StepSequence, next_step_id_),
1006 ~0u, // no _has_bits_
1007 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStepSequenceResponse, _internal_metadata_),
1008 ~0u, // no _extensions_
1009 ~0u, // no _oneof_case_
1010 ~0u, // no _weak_field_map_
1011 PROTOBUF_FIELD_OFFSET(::tensorflow::GetStepSequenceResponse, step_sequence_),
1012};
1013static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
1014 { 0, -1, sizeof(::tensorflow::GetStatusRequest)},
1015 { 5, -1, sizeof(::tensorflow::GetStatusResponse)},
1016 { 11, -1, sizeof(::tensorflow::CreateWorkerSessionRequest)},
1017 { 22, -1, sizeof(::tensorflow::CreateWorkerSessionResponse)},
1018 { 27, -1, sizeof(::tensorflow::DeleteWorkerSessionRequest)},
1019 { 33, -1, sizeof(::tensorflow::DeleteWorkerSessionResponse)},
1020 { 38, -1, sizeof(::tensorflow::RegisterGraphRequest)},
1021 { 51, -1, sizeof(::tensorflow::RegisterGraphResponse)},
1022 { 57, -1, sizeof(::tensorflow::DeregisterGraphRequest)},
1023 { 65, -1, sizeof(::tensorflow::DeregisterGraphResponse)},
1024 { 70, -1, sizeof(::tensorflow::CleanupAllRequest)},
1025 { 76, -1, sizeof(::tensorflow::CleanupAllResponse)},
1026 { 81, -1, sizeof(::tensorflow::ExecutorOpts)},
1027 { 90, -1, sizeof(::tensorflow::RunGraphRequest)},
1028 { 106, -1, sizeof(::tensorflow::RunGraphResponse)},
1029 { 117, -1, sizeof(::tensorflow::CleanupGraphRequest)},
1030 { 123, -1, sizeof(::tensorflow::CleanupGraphResponse)},
1031 { 128, -1, sizeof(::tensorflow::RecvTensorRequest)},
1032 { 140, -1, sizeof(::tensorflow::RecvTensorResponse)},
1033 { 150, -1, sizeof(::tensorflow::MarkRecvFinishedRequest)},
1034 { 156, -1, sizeof(::tensorflow::MarkRecvFinishedResponse)},
1035 { 161, -1, sizeof(::tensorflow::LoggingRequest)},
1036 { 170, -1, sizeof(::tensorflow::LabeledStepStats)},
1037 { 177, -1, sizeof(::tensorflow::LoggingResponse)},
1038 { 183, -1, sizeof(::tensorflow::TraceOpts)},
1039 { 194, -1, sizeof(::tensorflow::TracingRequest)},
1040 { 200, -1, sizeof(::tensorflow::TracingResponse)},
1041 { 205, -1, sizeof(::tensorflow::RecvBufRequest)},
1042 { 221, -1, sizeof(::tensorflow::RecvBufResponse)},
1043 { 232, -1, sizeof(::tensorflow::CompleteGroupRequest)},
1044 { 242, -1, sizeof(::tensorflow::CompleteGroupResponse)},
1045 { 253, -1, sizeof(::tensorflow::CompleteInstanceRequest)},
1046 { 269, -1, sizeof(::tensorflow::CompleteInstanceResponse)},
1047 { 276, -1, sizeof(::tensorflow::GetStepSequenceRequest)},
1048 { 282, -1, sizeof(::tensorflow::StepSequence)},
1049 { 289, -1, sizeof(::tensorflow::GetStepSequenceResponse)},
1050};
1051
1052static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
1053 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetStatusRequest_default_instance_),
1054 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetStatusResponse_default_instance_),
1055 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CreateWorkerSessionRequest_default_instance_),
1056 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CreateWorkerSessionResponse_default_instance_),
1057 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeleteWorkerSessionRequest_default_instance_),
1058 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeleteWorkerSessionResponse_default_instance_),
1059 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RegisterGraphRequest_default_instance_),
1060 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RegisterGraphResponse_default_instance_),
1061 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeregisterGraphRequest_default_instance_),
1062 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeregisterGraphResponse_default_instance_),
1063 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CleanupAllRequest_default_instance_),
1064 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CleanupAllResponse_default_instance_),
1065 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ExecutorOpts_default_instance_),
1066 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunGraphRequest_default_instance_),
1067 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunGraphResponse_default_instance_),
1068 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CleanupGraphRequest_default_instance_),
1069 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CleanupGraphResponse_default_instance_),
1070 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RecvTensorRequest_default_instance_),
1071 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RecvTensorResponse_default_instance_),
1072 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MarkRecvFinishedRequest_default_instance_),
1073 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MarkRecvFinishedResponse_default_instance_),
1074 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_LoggingRequest_default_instance_),
1075 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_LabeledStepStats_default_instance_),
1076 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_LoggingResponse_default_instance_),
1077 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TraceOpts_default_instance_),
1078 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TracingRequest_default_instance_),
1079 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TracingResponse_default_instance_),
1080 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RecvBufRequest_default_instance_),
1081 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RecvBufResponse_default_instance_),
1082 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CompleteGroupRequest_default_instance_),
1083 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CompleteGroupResponse_default_instance_),
1084 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CompleteInstanceRequest_default_instance_),
1085 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CompleteInstanceResponse_default_instance_),
1086 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetStepSequenceRequest_default_instance_),
1087 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_StepSequence_default_instance_),
1088 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetStepSequenceResponse_default_instance_),
1089};
1090
1091const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fworker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
1092 "\n%tensorflow/core/protobuf/worker.proto\022"
1093 "\ntensorflow\032\031google/protobuf/any.proto\032*"
1094 "tensorflow/core/framework/cost_graph.pro"
1095 "to\0321tensorflow/core/framework/device_att"
1096 "ributes.proto\032%tensorflow/core/framework"
1097 "/graph.proto\032*tensorflow/core/framework/"
1098 "step_stats.proto\032&tensorflow/core/framew"
1099 "ork/tensor.proto\032,tensorflow/core/framew"
1100 "ork/tensor_shape.proto\032%tensorflow/core/"
1101 "framework/types.proto\032%tensorflow/core/p"
1102 "rotobuf/config.proto\032$tensorflow/core/pr"
1103 "otobuf/debug.proto\032*tensorflow/core/prot"
1104 "obuf/error_codes.proto\032+tensorflow/core/"
1105 "protobuf/named_tensor.proto\0320tensorflow/"
1106 "core/protobuf/tensorflow_server.proto\"\022\n"
1107 "\020GetStatusRequest\"L\n\021GetStatusResponse\0227"
1108 "\n\021device_attributes\030\001 \003(\0132\034.tensorflow.D"
1109 "eviceAttributes\"\366\001\n\032CreateWorkerSessionR"
1110 "equest\022\026\n\016session_handle\030\001 \001(\t\022)\n\nserver"
1111 "_def\030\002 \001(\0132\025.tensorflow.ServerDef\022\035\n\025iso"
1112 "late_session_state\030\003 \001(\010\022\?\n\031cluster_devi"
1113 "ce_attributes\030\004 \003(\0132\034.tensorflow.DeviceA"
1114 "ttributes\022\023\n\013master_task\030\005 \001(\t\022\032\n\022master"
1115 "_incarnation\030\006 \001(\003J\004\010\007\020\010\"\035\n\033CreateWorker"
1116 "SessionResponse\"4\n\032DeleteWorkerSessionRe"
1117 "quest\022\026\n\016session_handle\030\001 \001(\t\"\035\n\033DeleteW"
1118 "orkerSessionResponse\"\312\002\n\024RegisterGraphRe"
1119 "quest\022\026\n\016session_handle\030\001 \001(\t\022$\n\034create_"
1120 "worker_session_called\030\006 \001(\010\022\'\n\tgraph_def"
1121 "\030\002 \001(\0132\024.tensorflow.GraphDef\022\034\n\020has_cont"
1122 "rol_flow\030\003 \001(\010B\002\030\001\022/\n\rgraph_options\030\004 \001("
1123 "\0132\030.tensorflow.GraphOptions\022/\n\rdebug_opt"
1124 "ions\030\005 \001(\0132\030.tensorflow.DebugOptions\022\034\n\024"
1125 "collective_graph_key\030\007 \001(\003\022-\n\014config_pro"
1126 "to\030\010 \001(\0132\027.tensorflow.ConfigProto\"-\n\025Reg"
1127 "isterGraphResponse\022\024\n\014graph_handle\030\001 \001(\t"
1128 "\"l\n\026DeregisterGraphRequest\022\026\n\016session_ha"
1129 "ndle\030\002 \001(\t\022$\n\034create_worker_session_call"
1130 "ed\030\003 \001(\010\022\024\n\014graph_handle\030\001 \001(\t\"\031\n\027Deregi"
1131 "sterGraphResponse\"&\n\021CleanupAllRequest\022\021"
1132 "\n\tcontainer\030\001 \003(\t\"\024\n\022CleanupAllResponse\""
1133 "\212\001\n\014ExecutorOpts\022\024\n\014record_costs\030\001 \001(\010\022\027"
1134 "\n\017record_timeline\030\003 \001(\010\022\037\n\027record_partit"
1135 "ion_graphs\030\004 \001(\010\022*\n\"report_tensor_alloca"
1136 "tions_upon_oom\030\005 \001(\010\"\315\002\n\017RunGraphRequest"
1137 "\022\026\n\016session_handle\030\010 \001(\t\022$\n\034create_worke"
1138 "r_session_called\030\n \001(\010\022\024\n\014graph_handle\030\001"
1139 " \001(\t\022\017\n\007step_id\030\002 \001(\003\022+\n\texec_opts\030\005 \001(\013"
1140 "2\030.tensorflow.ExecutorOpts\022*\n\004send\030\003 \003(\013"
1141 "2\034.tensorflow.NamedTensorProto\022\020\n\010recv_k"
1142 "ey\030\004 \003(\t\022\022\n\nis_partial\030\006 \001(\010\022\033\n\023is_last_"
1143 "partial_run\030\007 \001(\010\022%\n\035store_errors_in_res"
1144 "ponse_body\030\t \001(\010\022\022\n\nrequest_id\030\013 \001(\003\"\221\002\n"
1145 "\020RunGraphResponse\022*\n\004recv\030\001 \003(\0132\034.tensor"
1146 "flow.NamedTensorProto\022)\n\nstep_stats\030\002 \001("
1147 "\0132\025.tensorflow.StepStats\022,\n\ncost_graph\030\003"
1148 " \001(\0132\030.tensorflow.CostGraphDef\022-\n\017partit"
1149 "ion_graph\030\004 \003(\0132\024.tensorflow.GraphDef\022+\n"
1150 "\013status_code\030\005 \001(\0162\026.tensorflow.error.Co"
1151 "de\022\034\n\024status_error_message\030\006 \001(\t\"&\n\023Clea"
1152 "nupGraphRequest\022\017\n\007step_id\030\001 \001(\003\"\026\n\024Clea"
1153 "nupGraphResponse\"\373\001\n\021RecvTensorRequest\022\017"
1154 "\n\007step_id\030\001 \001(\003\022\026\n\016rendezvous_key\030\002 \001(\t\022"
1155 "\016\n\006dma_ok\030\003 \001(\010\0223\n\017client_locality\030\004 \001(\013"
1156 "2\032.tensorflow.DeviceLocality\0223\n\017server_l"
1157 "ocality\030\005 \001(\0132\032.tensorflow.DeviceLocalit"
1158 "y\022/\n\021transport_options\030\006 \001(\0132\024.google.pr"
1159 "otobuf.Any\022\022\n\nrequest_id\030\007 \001(\003\"\257\001\n\022RecvT"
1160 "ensorResponse\022\'\n\006tensor\030\001 \001(\0132\027.tensorfl"
1161 "ow.TensorProto\022\017\n\007is_dead\030\002 \001(\010\022\031\n\021send_"
1162 "start_micros\030\003 \001(\003\022/\n\021transport_options\030"
1163 "\004 \001(\0132\024.google.protobuf.Any\022\023\n\013require_a"
1164 "ck\030\005 \001(\010\"-\n\027MarkRecvFinishedRequest\022\022\n\nr"
1165 "equest_id\030\001 \001(\003\"\032\n\030MarkRecvFinishedRespo"
1166 "nse\"o\n\016LoggingRequest\022\032\n\022enable_rpc_logg"
1167 "ing\030\001 \001(\010\022\033\n\023disable_rpc_logging\030\004 \001(\010\022\r"
1168 "\n\005clear\030\002 \001(\010\022\025\n\rfetch_step_id\030\003 \003(\003\"N\n\020"
1169 "LabeledStepStats\022\017\n\007step_id\030\001 \001(\003\022)\n\nste"
1170 "p_stats\030\002 \001(\0132\025.tensorflow.StepStats\"=\n\017"
1171 "LoggingResponse\022*\n\004step\030\001 \003(\0132\034.tensorfl"
1172 "ow.LabeledStepStats\"\253\001\n\tTraceOpts\022\020\n\010dur"
1173 "ation\030\001 \001(\001\022\031\n\021use_step_profiler\030\002 \001(\010\022\033"
1174 "\n\023use_kernel_profiler\030\003 \001(\010\022\035\n\025use_exten"
1175 "ded_profiler\030\004 \001(\010\022\030\n\020use_gpu_profiler\030\005"
1176 " \001(\010\022\033\n\023use_sample_profiler\030\006 \001(\010\"8\n\016Tra"
1177 "cingRequest\022&\n\007options\030\001 \001(\0132\025.tensorflo"
1178 "w.TraceOpts\"\021\n\017TracingResponse\"\321\002\n\016RecvB"
1179 "ufRequest\022\017\n\007step_id\030\001 \001(\003\022\032\n\022buf_rendez"
1180 "vous_key\030\002 \001(\t\022\021\n\tnum_bytes\030\003 \001(\003\022\017\n\007buf"
1181 "_ptr\030\004 \001(\006\0223\n\017client_locality\030\005 \001(\0132\032.te"
1182 "nsorflow.DeviceLocality\0223\n\017server_locali"
1183 "ty\030\006 \001(\0132\032.tensorflow.DeviceLocality\022/\n\021"
1184 "transport_options\030\007 \001(\0132\024.google.protobu"
1185 "f.Any\022\022\n\nsrc_device\030\010 \001(\t\022\022\n\ndst_device\030"
1186 "\t \001(\t\022\022\n\nrequest_id\030\n \001(\003\022\027\n\017src_incarna"
1187 "tion\030\013 \001(\004\"\247\001\n\017RecvBufResponse\022\017\n\007buf_pt"
1188 "r\030\001 \001(\006\022\021\n\tnum_bytes\030\002 \001(\003\022\017\n\007is_dead\030\003 "
1189 "\001(\010\022/\n\021transport_options\030\004 \001(\0132\024.google."
1190 "protobuf.Any\022\031\n\021send_start_micros\030\005 \001(\003\022"
1191 "\023\n\013require_ack\030\006 \001(\010\"\252\001\n\024CompleteGroupRe"
1192 "quest\022\021\n\tgroup_key\030\001 \001(\005\022\022\n\ngroup_size\030\002"
1193 " \001(\005\022\023\n\013device_type\030\003 \001(\t\022\027\n\017collective_"
1194 "type\030\005 \001(\005\0227\n\021device_attributes\030\006 \001(\0132\034."
1195 "tensorflow.DeviceAttributesJ\004\010\004\020\005\"\305\001\n\025Co"
1196 "mpleteGroupResponse\022\021\n\tgroup_key\030\001 \001(\005\022\022"
1197 "\n\ngroup_size\030\002 \001(\005\022\023\n\013device_type\030\003 \001(\t\022"
1198 "\021\n\tnum_tasks\030\004 \001(\005\022\030\n\020communicator_key\030\007"
1199 " \001(\014\0227\n\021device_attributes\030\010 \003(\0132\034.tensor"
1200 "flow.DeviceAttributesJ\004\010\005\020\006J\004\010\006\020\007\"\227\002\n\027Co"
1201 "mpleteInstanceRequest\022\014\n\004name\030\001 \001(\t\022\014\n\004t"
1202 "ype\030\002 \001(\005\022\'\n\tdata_type\030\003 \001(\0162\024.tensorflo"
1203 "w.DataType\022+\n\005shape\030\004 \001(\0132\034.tensorflow.T"
1204 "ensorShapeProto\022\021\n\tgroup_key\030\005 \001(\005\022\022\n\ngr"
1205 "oup_size\030\006 \001(\005\022\024\n\014instance_key\030\007 \001(\005\022\023\n\013"
1206 "device_type\030\010 \001(\t\022\025\n\rsubdiv_offset\030\t \003(\005"
1207 "\022\016\n\006device\030\n \001(\t\022\021\n\tis_source\030\013 \001(\010\"K\n\030C"
1208 "ompleteInstanceResponse\022\024\n\014instance_key\030"
1209 "\001 \001(\005\022\023\n\013source_rank\030\002 \001(\005J\004\010\003\020\004\"+\n\026GetS"
1210 "tepSequenceRequest\022\021\n\tgraph_key\030\001 \003(\003\"7\n"
1211 "\014StepSequence\022\021\n\tgraph_key\030\001 \001(\003\022\024\n\014next"
1212 "_step_id\030\002 \001(\003\"J\n\027GetStepSequenceRespons"
1213 "e\022/\n\rstep_sequence\030\001 \003(\0132\030.tensorflow.St"
1214 "epSequenceB\206\001\n\032org.tensorflow.distruntim"
1215 "eB\014WorkerProtosP\001ZUgithub.com/tensorflow"
1216 "/tensorflow/tensorflow/go/core/protobuf/"
1217 "for_core_protos_go_proto\370\001\001b\006proto3"
1218 ;
1219static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_deps[13] = {
1220 &::descriptor_table_google_2fprotobuf_2fany_2eproto,
1221 &::descriptor_table_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto,
1222 &::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto,
1223 &::descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto,
1224 &::descriptor_table_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto,
1225 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
1226 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto,
1227 &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto,
1228 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto,
1229 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto,
1230 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto,
1231 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto,
1232 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto,
1233};
1234static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_sccs[36] = {
1235 &scc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1236 &scc_info_CleanupAllResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1237 &scc_info_CleanupGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1238 &scc_info_CleanupGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1239 &scc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1240 &scc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1241 &scc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1242 &scc_info_CompleteInstanceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1243 &scc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1244 &scc_info_CreateWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1245 &scc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1246 &scc_info_DeleteWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1247 &scc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1248 &scc_info_DeregisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1249 &scc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1250 &scc_info_GetStatusRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1251 &scc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1252 &scc_info_GetStepSequenceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1253 &scc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1254 &scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1255 &scc_info_LoggingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1256 &scc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1257 &scc_info_MarkRecvFinishedRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1258 &scc_info_MarkRecvFinishedResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1259 &scc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1260 &scc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1261 &scc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1262 &scc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1263 &scc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1264 &scc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1265 &scc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1266 &scc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1267 &scc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1268 &scc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1269 &scc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1270 &scc_info_TracingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base,
1271};
1272static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_once;
1273static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_initialized = false;
1274const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto = {
1275 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fworker_2eproto, "tensorflow/core/protobuf/worker.proto", 5035,
1276 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto_deps, 36, 13,
1277 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fworker_2eproto::offsets,
1278 file_level_metadata_tensorflow_2fcore_2fprotobuf_2fworker_2eproto, 36, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fworker_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fworker_2eproto,
1279};
1280
1281// Force running AddDescriptors() at dynamic initialization time.
1282static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fworker_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fworker_2eproto), true);
1283namespace tensorflow {
1284
1285// ===================================================================
1286
1287void GetStatusRequest::InitAsDefaultInstance() {
1288}
1289class GetStatusRequest::_Internal {
1290 public:
1291};
1292
1293GetStatusRequest::GetStatusRequest()
1294 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1295 SharedCtor();
1296 // @@protoc_insertion_point(constructor:tensorflow.GetStatusRequest)
1297}
1298GetStatusRequest::GetStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1299 : ::PROTOBUF_NAMESPACE_ID::Message(),
1300 _internal_metadata_(arena) {
1301 SharedCtor();
1302 RegisterArenaDtor(arena);
1303 // @@protoc_insertion_point(arena_constructor:tensorflow.GetStatusRequest)
1304}
1305GetStatusRequest::GetStatusRequest(const GetStatusRequest& from)
1306 : ::PROTOBUF_NAMESPACE_ID::Message(),
1307 _internal_metadata_(nullptr) {
1308 _internal_metadata_.MergeFrom(from._internal_metadata_);
1309 // @@protoc_insertion_point(copy_constructor:tensorflow.GetStatusRequest)
1310}
1311
1312void GetStatusRequest::SharedCtor() {
1313}
1314
1315GetStatusRequest::~GetStatusRequest() {
1316 // @@protoc_insertion_point(destructor:tensorflow.GetStatusRequest)
1317 SharedDtor();
1318}
1319
1320void GetStatusRequest::SharedDtor() {
1321 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1322}
1323
1324void GetStatusRequest::ArenaDtor(void* object) {
1325 GetStatusRequest* _this = reinterpret_cast< GetStatusRequest* >(object);
1326 (void)_this;
1327}
1328void GetStatusRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1329}
1330void GetStatusRequest::SetCachedSize(int size) const {
1331 _cached_size_.Set(size);
1332}
1333const GetStatusRequest& GetStatusRequest::default_instance() {
1334 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStatusRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
1335 return *internal_default_instance();
1336}
1337
1338
1339void GetStatusRequest::Clear() {
1340// @@protoc_insertion_point(message_clear_start:tensorflow.GetStatusRequest)
1341 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1342 // Prevent compiler warnings about cached_has_bits being unused
1343 (void) cached_has_bits;
1344
1345 _internal_metadata_.Clear();
1346}
1347
1348#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1349const char* GetStatusRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1350#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1351 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1352 while (!ctx->Done(&ptr)) {
1353 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1354 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1355 CHK_(ptr);
1356 switch (tag >> 3) {
1357 default: {
1358 if ((tag & 7) == 4 || tag == 0) {
1359 ctx->SetLastTag(tag);
1360 goto success;
1361 }
1362 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1363 CHK_(ptr != nullptr);
1364 continue;
1365 }
1366 } // switch
1367 } // while
1368success:
1369 return ptr;
1370failure:
1371 ptr = nullptr;
1372 goto success;
1373#undef CHK_
1374}
1375#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1376bool GetStatusRequest::MergePartialFromCodedStream(
1377 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1378#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1379 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1380 // @@protoc_insertion_point(parse_start:tensorflow.GetStatusRequest)
1381 for (;;) {
1382 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1383 tag = p.first;
1384 if (!p.second) goto handle_unusual;
1385 handle_unusual:
1386 if (tag == 0) {
1387 goto success;
1388 }
1389 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1390 input, tag, _internal_metadata_.mutable_unknown_fields()));
1391 }
1392success:
1393 // @@protoc_insertion_point(parse_success:tensorflow.GetStatusRequest)
1394 return true;
1395failure:
1396 // @@protoc_insertion_point(parse_failure:tensorflow.GetStatusRequest)
1397 return false;
1398#undef DO_
1399}
1400#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1401
1402void GetStatusRequest::SerializeWithCachedSizes(
1403 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1404 // @@protoc_insertion_point(serialize_start:tensorflow.GetStatusRequest)
1405 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1406 (void) cached_has_bits;
1407
1408 if (_internal_metadata_.have_unknown_fields()) {
1409 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1410 _internal_metadata_.unknown_fields(), output);
1411 }
1412 // @@protoc_insertion_point(serialize_end:tensorflow.GetStatusRequest)
1413}
1414
1415::PROTOBUF_NAMESPACE_ID::uint8* GetStatusRequest::InternalSerializeWithCachedSizesToArray(
1416 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1417 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetStatusRequest)
1418 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1419 (void) cached_has_bits;
1420
1421 if (_internal_metadata_.have_unknown_fields()) {
1422 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1423 _internal_metadata_.unknown_fields(), target);
1424 }
1425 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetStatusRequest)
1426 return target;
1427}
1428
1429size_t GetStatusRequest::ByteSizeLong() const {
1430// @@protoc_insertion_point(message_byte_size_start:tensorflow.GetStatusRequest)
1431 size_t total_size = 0;
1432
1433 if (_internal_metadata_.have_unknown_fields()) {
1434 total_size +=
1435 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1436 _internal_metadata_.unknown_fields());
1437 }
1438 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1439 // Prevent compiler warnings about cached_has_bits being unused
1440 (void) cached_has_bits;
1441
1442 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1443 SetCachedSize(cached_size);
1444 return total_size;
1445}
1446
1447void GetStatusRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1448// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetStatusRequest)
1449 GOOGLE_DCHECK_NE(&from, this);
1450 const GetStatusRequest* source =
1451 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetStatusRequest>(
1452 &from);
1453 if (source == nullptr) {
1454 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetStatusRequest)
1455 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1456 } else {
1457 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetStatusRequest)
1458 MergeFrom(*source);
1459 }
1460}
1461
1462void GetStatusRequest::MergeFrom(const GetStatusRequest& from) {
1463// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetStatusRequest)
1464 GOOGLE_DCHECK_NE(&from, this);
1465 _internal_metadata_.MergeFrom(from._internal_metadata_);
1466 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1467 (void) cached_has_bits;
1468
1469}
1470
1471void GetStatusRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1472// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetStatusRequest)
1473 if (&from == this) return;
1474 Clear();
1475 MergeFrom(from);
1476}
1477
1478void GetStatusRequest::CopyFrom(const GetStatusRequest& from) {
1479// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetStatusRequest)
1480 if (&from == this) return;
1481 Clear();
1482 MergeFrom(from);
1483}
1484
1485bool GetStatusRequest::IsInitialized() const {
1486 return true;
1487}
1488
1489void GetStatusRequest::InternalSwap(GetStatusRequest* other) {
1490 using std::swap;
1491 _internal_metadata_.Swap(&other->_internal_metadata_);
1492}
1493
1494::PROTOBUF_NAMESPACE_ID::Metadata GetStatusRequest::GetMetadata() const {
1495 return GetMetadataStatic();
1496}
1497
1498
1499// ===================================================================
1500
1501void GetStatusResponse::InitAsDefaultInstance() {
1502}
1503class GetStatusResponse::_Internal {
1504 public:
1505};
1506
1507void GetStatusResponse::clear_device_attributes() {
1508 device_attributes_.Clear();
1509}
1510GetStatusResponse::GetStatusResponse()
1511 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1512 SharedCtor();
1513 // @@protoc_insertion_point(constructor:tensorflow.GetStatusResponse)
1514}
1515GetStatusResponse::GetStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1516 : ::PROTOBUF_NAMESPACE_ID::Message(),
1517 _internal_metadata_(arena),
1518 device_attributes_(arena) {
1519 SharedCtor();
1520 RegisterArenaDtor(arena);
1521 // @@protoc_insertion_point(arena_constructor:tensorflow.GetStatusResponse)
1522}
1523GetStatusResponse::GetStatusResponse(const GetStatusResponse& from)
1524 : ::PROTOBUF_NAMESPACE_ID::Message(),
1525 _internal_metadata_(nullptr),
1526 device_attributes_(from.device_attributes_) {
1527 _internal_metadata_.MergeFrom(from._internal_metadata_);
1528 // @@protoc_insertion_point(copy_constructor:tensorflow.GetStatusResponse)
1529}
1530
1531void GetStatusResponse::SharedCtor() {
1532 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
1533}
1534
1535GetStatusResponse::~GetStatusResponse() {
1536 // @@protoc_insertion_point(destructor:tensorflow.GetStatusResponse)
1537 SharedDtor();
1538}
1539
1540void GetStatusResponse::SharedDtor() {
1541 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1542}
1543
1544void GetStatusResponse::ArenaDtor(void* object) {
1545 GetStatusResponse* _this = reinterpret_cast< GetStatusResponse* >(object);
1546 (void)_this;
1547}
1548void GetStatusResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1549}
1550void GetStatusResponse::SetCachedSize(int size) const {
1551 _cached_size_.Set(size);
1552}
1553const GetStatusResponse& GetStatusResponse::default_instance() {
1554 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStatusResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
1555 return *internal_default_instance();
1556}
1557
1558
1559void GetStatusResponse::Clear() {
1560// @@protoc_insertion_point(message_clear_start:tensorflow.GetStatusResponse)
1561 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1562 // Prevent compiler warnings about cached_has_bits being unused
1563 (void) cached_has_bits;
1564
1565 device_attributes_.Clear();
1566 _internal_metadata_.Clear();
1567}
1568
1569#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1570const char* GetStatusResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1571#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1572 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1573 while (!ctx->Done(&ptr)) {
1574 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1575 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1576 CHK_(ptr);
1577 switch (tag >> 3) {
1578 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
1579 case 1:
1580 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1581 ptr -= 1;
1582 do {
1583 ptr += 1;
1584 ptr = ctx->ParseMessage(add_device_attributes(), ptr);
1585 CHK_(ptr);
1586 if (!ctx->DataAvailable(ptr)) break;
1587 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1588 } else goto handle_unusual;
1589 continue;
1590 default: {
1591 handle_unusual:
1592 if ((tag & 7) == 4 || tag == 0) {
1593 ctx->SetLastTag(tag);
1594 goto success;
1595 }
1596 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1597 CHK_(ptr != nullptr);
1598 continue;
1599 }
1600 } // switch
1601 } // while
1602success:
1603 return ptr;
1604failure:
1605 ptr = nullptr;
1606 goto success;
1607#undef CHK_
1608}
1609#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1610bool GetStatusResponse::MergePartialFromCodedStream(
1611 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1612#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1613 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1614 // @@protoc_insertion_point(parse_start:tensorflow.GetStatusResponse)
1615 for (;;) {
1616 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1617 tag = p.first;
1618 if (!p.second) goto handle_unusual;
1619 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1620 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
1621 case 1: {
1622 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1623 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1624 input, add_device_attributes()));
1625 } else {
1626 goto handle_unusual;
1627 }
1628 break;
1629 }
1630
1631 default: {
1632 handle_unusual:
1633 if (tag == 0) {
1634 goto success;
1635 }
1636 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1637 input, tag, _internal_metadata_.mutable_unknown_fields()));
1638 break;
1639 }
1640 }
1641 }
1642success:
1643 // @@protoc_insertion_point(parse_success:tensorflow.GetStatusResponse)
1644 return true;
1645failure:
1646 // @@protoc_insertion_point(parse_failure:tensorflow.GetStatusResponse)
1647 return false;
1648#undef DO_
1649}
1650#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1651
1652void GetStatusResponse::SerializeWithCachedSizes(
1653 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1654 // @@protoc_insertion_point(serialize_start:tensorflow.GetStatusResponse)
1655 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1656 (void) cached_has_bits;
1657
1658 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
1659 for (unsigned int i = 0,
1660 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
1661 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1662 1,
1663 this->device_attributes(static_cast<int>(i)),
1664 output);
1665 }
1666
1667 if (_internal_metadata_.have_unknown_fields()) {
1668 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1669 _internal_metadata_.unknown_fields(), output);
1670 }
1671 // @@protoc_insertion_point(serialize_end:tensorflow.GetStatusResponse)
1672}
1673
1674::PROTOBUF_NAMESPACE_ID::uint8* GetStatusResponse::InternalSerializeWithCachedSizesToArray(
1675 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1676 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetStatusResponse)
1677 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1678 (void) cached_has_bits;
1679
1680 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
1681 for (unsigned int i = 0,
1682 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
1683 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1684 InternalWriteMessageToArray(
1685 1, this->device_attributes(static_cast<int>(i)), target);
1686 }
1687
1688 if (_internal_metadata_.have_unknown_fields()) {
1689 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1690 _internal_metadata_.unknown_fields(), target);
1691 }
1692 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetStatusResponse)
1693 return target;
1694}
1695
1696size_t GetStatusResponse::ByteSizeLong() const {
1697// @@protoc_insertion_point(message_byte_size_start:tensorflow.GetStatusResponse)
1698 size_t total_size = 0;
1699
1700 if (_internal_metadata_.have_unknown_fields()) {
1701 total_size +=
1702 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1703 _internal_metadata_.unknown_fields());
1704 }
1705 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1706 // Prevent compiler warnings about cached_has_bits being unused
1707 (void) cached_has_bits;
1708
1709 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
1710 {
1711 unsigned int count = static_cast<unsigned int>(this->device_attributes_size());
1712 total_size += 1UL * count;
1713 for (unsigned int i = 0; i < count; i++) {
1714 total_size +=
1715 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1716 this->device_attributes(static_cast<int>(i)));
1717 }
1718 }
1719
1720 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1721 SetCachedSize(cached_size);
1722 return total_size;
1723}
1724
1725void GetStatusResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1726// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetStatusResponse)
1727 GOOGLE_DCHECK_NE(&from, this);
1728 const GetStatusResponse* source =
1729 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetStatusResponse>(
1730 &from);
1731 if (source == nullptr) {
1732 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetStatusResponse)
1733 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1734 } else {
1735 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetStatusResponse)
1736 MergeFrom(*source);
1737 }
1738}
1739
1740void GetStatusResponse::MergeFrom(const GetStatusResponse& from) {
1741// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetStatusResponse)
1742 GOOGLE_DCHECK_NE(&from, this);
1743 _internal_metadata_.MergeFrom(from._internal_metadata_);
1744 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1745 (void) cached_has_bits;
1746
1747 device_attributes_.MergeFrom(from.device_attributes_);
1748}
1749
1750void GetStatusResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1751// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetStatusResponse)
1752 if (&from == this) return;
1753 Clear();
1754 MergeFrom(from);
1755}
1756
1757void GetStatusResponse::CopyFrom(const GetStatusResponse& from) {
1758// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetStatusResponse)
1759 if (&from == this) return;
1760 Clear();
1761 MergeFrom(from);
1762}
1763
1764bool GetStatusResponse::IsInitialized() const {
1765 return true;
1766}
1767
1768void GetStatusResponse::InternalSwap(GetStatusResponse* other) {
1769 using std::swap;
1770 _internal_metadata_.Swap(&other->_internal_metadata_);
1771 CastToBase(&device_attributes_)->InternalSwap(CastToBase(&other->device_attributes_));
1772}
1773
1774::PROTOBUF_NAMESPACE_ID::Metadata GetStatusResponse::GetMetadata() const {
1775 return GetMetadataStatic();
1776}
1777
1778
1779// ===================================================================
1780
1781void CreateWorkerSessionRequest::InitAsDefaultInstance() {
1782 ::tensorflow::_CreateWorkerSessionRequest_default_instance_._instance.get_mutable()->server_def_ = const_cast< ::tensorflow::ServerDef*>(
1783 ::tensorflow::ServerDef::internal_default_instance());
1784}
1785class CreateWorkerSessionRequest::_Internal {
1786 public:
1787 static const ::tensorflow::ServerDef& server_def(const CreateWorkerSessionRequest* msg);
1788};
1789
1790const ::tensorflow::ServerDef&
1791CreateWorkerSessionRequest::_Internal::server_def(const CreateWorkerSessionRequest* msg) {
1792 return *msg->server_def_;
1793}
1794void CreateWorkerSessionRequest::unsafe_arena_set_allocated_server_def(
1795 ::tensorflow::ServerDef* server_def) {
1796 if (GetArenaNoVirtual() == nullptr) {
1797 delete server_def_;
1798 }
1799 server_def_ = server_def;
1800 if (server_def) {
1801
1802 } else {
1803
1804 }
1805 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CreateWorkerSessionRequest.server_def)
1806}
1807void CreateWorkerSessionRequest::clear_server_def() {
1808 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
1809 delete server_def_;
1810 }
1811 server_def_ = nullptr;
1812}
1813void CreateWorkerSessionRequest::clear_cluster_device_attributes() {
1814 cluster_device_attributes_.Clear();
1815}
1816CreateWorkerSessionRequest::CreateWorkerSessionRequest()
1817 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1818 SharedCtor();
1819 // @@protoc_insertion_point(constructor:tensorflow.CreateWorkerSessionRequest)
1820}
1821CreateWorkerSessionRequest::CreateWorkerSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1822 : ::PROTOBUF_NAMESPACE_ID::Message(),
1823 _internal_metadata_(arena),
1824 cluster_device_attributes_(arena) {
1825 SharedCtor();
1826 RegisterArenaDtor(arena);
1827 // @@protoc_insertion_point(arena_constructor:tensorflow.CreateWorkerSessionRequest)
1828}
1829CreateWorkerSessionRequest::CreateWorkerSessionRequest(const CreateWorkerSessionRequest& from)
1830 : ::PROTOBUF_NAMESPACE_ID::Message(),
1831 _internal_metadata_(nullptr),
1832 cluster_device_attributes_(from.cluster_device_attributes_) {
1833 _internal_metadata_.MergeFrom(from._internal_metadata_);
1834 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1835 if (!from.session_handle().empty()) {
1836 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
1837 GetArenaNoVirtual());
1838 }
1839 master_task_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1840 if (!from.master_task().empty()) {
1841 master_task_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.master_task(),
1842 GetArenaNoVirtual());
1843 }
1844 if (from.has_server_def()) {
1845 server_def_ = new ::tensorflow::ServerDef(*from.server_def_);
1846 } else {
1847 server_def_ = nullptr;
1848 }
1849 ::memcpy(&master_incarnation_, &from.master_incarnation_,
1850 static_cast<size_t>(reinterpret_cast<char*>(&isolate_session_state_) -
1851 reinterpret_cast<char*>(&master_incarnation_)) + sizeof(isolate_session_state_));
1852 // @@protoc_insertion_point(copy_constructor:tensorflow.CreateWorkerSessionRequest)
1853}
1854
1855void CreateWorkerSessionRequest::SharedCtor() {
1856 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
1857 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1858 master_task_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1859 ::memset(&server_def_, 0, static_cast<size_t>(
1860 reinterpret_cast<char*>(&isolate_session_state_) -
1861 reinterpret_cast<char*>(&server_def_)) + sizeof(isolate_session_state_));
1862}
1863
1864CreateWorkerSessionRequest::~CreateWorkerSessionRequest() {
1865 // @@protoc_insertion_point(destructor:tensorflow.CreateWorkerSessionRequest)
1866 SharedDtor();
1867}
1868
1869void CreateWorkerSessionRequest::SharedDtor() {
1870 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1871 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1872 master_task_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1873 if (this != internal_default_instance()) delete server_def_;
1874}
1875
1876void CreateWorkerSessionRequest::ArenaDtor(void* object) {
1877 CreateWorkerSessionRequest* _this = reinterpret_cast< CreateWorkerSessionRequest* >(object);
1878 (void)_this;
1879}
1880void CreateWorkerSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1881}
1882void CreateWorkerSessionRequest::SetCachedSize(int size) const {
1883 _cached_size_.Set(size);
1884}
1885const CreateWorkerSessionRequest& CreateWorkerSessionRequest::default_instance() {
1886 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
1887 return *internal_default_instance();
1888}
1889
1890
1891void CreateWorkerSessionRequest::Clear() {
1892// @@protoc_insertion_point(message_clear_start:tensorflow.CreateWorkerSessionRequest)
1893 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1894 // Prevent compiler warnings about cached_has_bits being unused
1895 (void) cached_has_bits;
1896
1897 cluster_device_attributes_.Clear();
1898 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1899 master_task_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1900 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
1901 delete server_def_;
1902 }
1903 server_def_ = nullptr;
1904 ::memset(&master_incarnation_, 0, static_cast<size_t>(
1905 reinterpret_cast<char*>(&isolate_session_state_) -
1906 reinterpret_cast<char*>(&master_incarnation_)) + sizeof(isolate_session_state_));
1907 _internal_metadata_.Clear();
1908}
1909
1910#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1911const char* CreateWorkerSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1912#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1913 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1914 while (!ctx->Done(&ptr)) {
1915 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1916 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1917 CHK_(ptr);
1918 switch (tag >> 3) {
1919 // string session_handle = 1;
1920 case 1:
1921 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1922 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.CreateWorkerSessionRequest.session_handle");
1923 CHK_(ptr);
1924 } else goto handle_unusual;
1925 continue;
1926 // .tensorflow.ServerDef server_def = 2;
1927 case 2:
1928 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1929 ptr = ctx->ParseMessage(mutable_server_def(), ptr);
1930 CHK_(ptr);
1931 } else goto handle_unusual;
1932 continue;
1933 // bool isolate_session_state = 3;
1934 case 3:
1935 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
1936 isolate_session_state_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1937 CHK_(ptr);
1938 } else goto handle_unusual;
1939 continue;
1940 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 4;
1941 case 4:
1942 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1943 ptr -= 1;
1944 do {
1945 ptr += 1;
1946 ptr = ctx->ParseMessage(add_cluster_device_attributes(), ptr);
1947 CHK_(ptr);
1948 if (!ctx->DataAvailable(ptr)) break;
1949 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
1950 } else goto handle_unusual;
1951 continue;
1952 // string master_task = 5;
1953 case 5:
1954 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1955 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_master_task(), ptr, ctx, "tensorflow.CreateWorkerSessionRequest.master_task");
1956 CHK_(ptr);
1957 } else goto handle_unusual;
1958 continue;
1959 // int64 master_incarnation = 6;
1960 case 6:
1961 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
1962 master_incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1963 CHK_(ptr);
1964 } else goto handle_unusual;
1965 continue;
1966 default: {
1967 handle_unusual:
1968 if ((tag & 7) == 4 || tag == 0) {
1969 ctx->SetLastTag(tag);
1970 goto success;
1971 }
1972 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1973 CHK_(ptr != nullptr);
1974 continue;
1975 }
1976 } // switch
1977 } // while
1978success:
1979 return ptr;
1980failure:
1981 ptr = nullptr;
1982 goto success;
1983#undef CHK_
1984}
1985#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1986bool CreateWorkerSessionRequest::MergePartialFromCodedStream(
1987 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1988#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1989 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1990 // @@protoc_insertion_point(parse_start:tensorflow.CreateWorkerSessionRequest)
1991 for (;;) {
1992 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1993 tag = p.first;
1994 if (!p.second) goto handle_unusual;
1995 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1996 // string session_handle = 1;
1997 case 1: {
1998 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1999 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2000 input, this->mutable_session_handle()));
2001 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2002 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2003 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2004 "tensorflow.CreateWorkerSessionRequest.session_handle"));
2005 } else {
2006 goto handle_unusual;
2007 }
2008 break;
2009 }
2010
2011 // .tensorflow.ServerDef server_def = 2;
2012 case 2: {
2013 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2014 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2015 input, mutable_server_def()));
2016 } else {
2017 goto handle_unusual;
2018 }
2019 break;
2020 }
2021
2022 // bool isolate_session_state = 3;
2023 case 3: {
2024 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
2025
2026 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2027 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2028 input, &isolate_session_state_)));
2029 } else {
2030 goto handle_unusual;
2031 }
2032 break;
2033 }
2034
2035 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 4;
2036 case 4: {
2037 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
2038 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2039 input, add_cluster_device_attributes()));
2040 } else {
2041 goto handle_unusual;
2042 }
2043 break;
2044 }
2045
2046 // string master_task = 5;
2047 case 5: {
2048 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
2049 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2050 input, this->mutable_master_task()));
2051 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2052 this->master_task().data(), static_cast<int>(this->master_task().length()),
2053 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2054 "tensorflow.CreateWorkerSessionRequest.master_task"));
2055 } else {
2056 goto handle_unusual;
2057 }
2058 break;
2059 }
2060
2061 // int64 master_incarnation = 6;
2062 case 6: {
2063 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
2064
2065 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2066 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
2067 input, &master_incarnation_)));
2068 } else {
2069 goto handle_unusual;
2070 }
2071 break;
2072 }
2073
2074 default: {
2075 handle_unusual:
2076 if (tag == 0) {
2077 goto success;
2078 }
2079 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2080 input, tag, _internal_metadata_.mutable_unknown_fields()));
2081 break;
2082 }
2083 }
2084 }
2085success:
2086 // @@protoc_insertion_point(parse_success:tensorflow.CreateWorkerSessionRequest)
2087 return true;
2088failure:
2089 // @@protoc_insertion_point(parse_failure:tensorflow.CreateWorkerSessionRequest)
2090 return false;
2091#undef DO_
2092}
2093#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2094
2095void CreateWorkerSessionRequest::SerializeWithCachedSizes(
2096 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2097 // @@protoc_insertion_point(serialize_start:tensorflow.CreateWorkerSessionRequest)
2098 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2099 (void) cached_has_bits;
2100
2101 // string session_handle = 1;
2102 if (this->session_handle().size() > 0) {
2103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2104 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2105 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2106 "tensorflow.CreateWorkerSessionRequest.session_handle");
2107 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2108 1, this->session_handle(), output);
2109 }
2110
2111 // .tensorflow.ServerDef server_def = 2;
2112 if (this->has_server_def()) {
2113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2114 2, _Internal::server_def(this), output);
2115 }
2116
2117 // bool isolate_session_state = 3;
2118 if (this->isolate_session_state() != 0) {
2119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->isolate_session_state(), output);
2120 }
2121
2122 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 4;
2123 for (unsigned int i = 0,
2124 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
2125 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2126 4,
2127 this->cluster_device_attributes(static_cast<int>(i)),
2128 output);
2129 }
2130
2131 // string master_task = 5;
2132 if (this->master_task().size() > 0) {
2133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2134 this->master_task().data(), static_cast<int>(this->master_task().length()),
2135 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2136 "tensorflow.CreateWorkerSessionRequest.master_task");
2137 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2138 5, this->master_task(), output);
2139 }
2140
2141 // int64 master_incarnation = 6;
2142 if (this->master_incarnation() != 0) {
2143 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->master_incarnation(), output);
2144 }
2145
2146 if (_internal_metadata_.have_unknown_fields()) {
2147 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2148 _internal_metadata_.unknown_fields(), output);
2149 }
2150 // @@protoc_insertion_point(serialize_end:tensorflow.CreateWorkerSessionRequest)
2151}
2152
2153::PROTOBUF_NAMESPACE_ID::uint8* CreateWorkerSessionRequest::InternalSerializeWithCachedSizesToArray(
2154 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2155 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CreateWorkerSessionRequest)
2156 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2157 (void) cached_has_bits;
2158
2159 // string session_handle = 1;
2160 if (this->session_handle().size() > 0) {
2161 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2162 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2163 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2164 "tensorflow.CreateWorkerSessionRequest.session_handle");
2165 target =
2166 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2167 1, this->session_handle(), target);
2168 }
2169
2170 // .tensorflow.ServerDef server_def = 2;
2171 if (this->has_server_def()) {
2172 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2173 InternalWriteMessageToArray(
2174 2, _Internal::server_def(this), target);
2175 }
2176
2177 // bool isolate_session_state = 3;
2178 if (this->isolate_session_state() != 0) {
2179 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->isolate_session_state(), target);
2180 }
2181
2182 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 4;
2183 for (unsigned int i = 0,
2184 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
2185 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2186 InternalWriteMessageToArray(
2187 4, this->cluster_device_attributes(static_cast<int>(i)), target);
2188 }
2189
2190 // string master_task = 5;
2191 if (this->master_task().size() > 0) {
2192 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2193 this->master_task().data(), static_cast<int>(this->master_task().length()),
2194 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2195 "tensorflow.CreateWorkerSessionRequest.master_task");
2196 target =
2197 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2198 5, this->master_task(), target);
2199 }
2200
2201 // int64 master_incarnation = 6;
2202 if (this->master_incarnation() != 0) {
2203 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->master_incarnation(), target);
2204 }
2205
2206 if (_internal_metadata_.have_unknown_fields()) {
2207 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2208 _internal_metadata_.unknown_fields(), target);
2209 }
2210 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CreateWorkerSessionRequest)
2211 return target;
2212}
2213
2214size_t CreateWorkerSessionRequest::ByteSizeLong() const {
2215// @@protoc_insertion_point(message_byte_size_start:tensorflow.CreateWorkerSessionRequest)
2216 size_t total_size = 0;
2217
2218 if (_internal_metadata_.have_unknown_fields()) {
2219 total_size +=
2220 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2221 _internal_metadata_.unknown_fields());
2222 }
2223 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2224 // Prevent compiler warnings about cached_has_bits being unused
2225 (void) cached_has_bits;
2226
2227 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 4;
2228 {
2229 unsigned int count = static_cast<unsigned int>(this->cluster_device_attributes_size());
2230 total_size += 1UL * count;
2231 for (unsigned int i = 0; i < count; i++) {
2232 total_size +=
2233 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2234 this->cluster_device_attributes(static_cast<int>(i)));
2235 }
2236 }
2237
2238 // string session_handle = 1;
2239 if (this->session_handle().size() > 0) {
2240 total_size += 1 +
2241 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2242 this->session_handle());
2243 }
2244
2245 // string master_task = 5;
2246 if (this->master_task().size() > 0) {
2247 total_size += 1 +
2248 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2249 this->master_task());
2250 }
2251
2252 // .tensorflow.ServerDef server_def = 2;
2253 if (this->has_server_def()) {
2254 total_size += 1 +
2255 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2256 *server_def_);
2257 }
2258
2259 // int64 master_incarnation = 6;
2260 if (this->master_incarnation() != 0) {
2261 total_size += 1 +
2262 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
2263 this->master_incarnation());
2264 }
2265
2266 // bool isolate_session_state = 3;
2267 if (this->isolate_session_state() != 0) {
2268 total_size += 1 + 1;
2269 }
2270
2271 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2272 SetCachedSize(cached_size);
2273 return total_size;
2274}
2275
2276void CreateWorkerSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2277// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CreateWorkerSessionRequest)
2278 GOOGLE_DCHECK_NE(&from, this);
2279 const CreateWorkerSessionRequest* source =
2280 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateWorkerSessionRequest>(
2281 &from);
2282 if (source == nullptr) {
2283 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CreateWorkerSessionRequest)
2284 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2285 } else {
2286 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CreateWorkerSessionRequest)
2287 MergeFrom(*source);
2288 }
2289}
2290
2291void CreateWorkerSessionRequest::MergeFrom(const CreateWorkerSessionRequest& from) {
2292// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CreateWorkerSessionRequest)
2293 GOOGLE_DCHECK_NE(&from, this);
2294 _internal_metadata_.MergeFrom(from._internal_metadata_);
2295 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2296 (void) cached_has_bits;
2297
2298 cluster_device_attributes_.MergeFrom(from.cluster_device_attributes_);
2299 if (from.session_handle().size() > 0) {
2300 set_session_handle(from.session_handle());
2301 }
2302 if (from.master_task().size() > 0) {
2303 set_master_task(from.master_task());
2304 }
2305 if (from.has_server_def()) {
2306 mutable_server_def()->::tensorflow::ServerDef::MergeFrom(from.server_def());
2307 }
2308 if (from.master_incarnation() != 0) {
2309 set_master_incarnation(from.master_incarnation());
2310 }
2311 if (from.isolate_session_state() != 0) {
2312 set_isolate_session_state(from.isolate_session_state());
2313 }
2314}
2315
2316void CreateWorkerSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2317// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CreateWorkerSessionRequest)
2318 if (&from == this) return;
2319 Clear();
2320 MergeFrom(from);
2321}
2322
2323void CreateWorkerSessionRequest::CopyFrom(const CreateWorkerSessionRequest& from) {
2324// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CreateWorkerSessionRequest)
2325 if (&from == this) return;
2326 Clear();
2327 MergeFrom(from);
2328}
2329
2330bool CreateWorkerSessionRequest::IsInitialized() const {
2331 return true;
2332}
2333
2334void CreateWorkerSessionRequest::InternalSwap(CreateWorkerSessionRequest* other) {
2335 using std::swap;
2336 _internal_metadata_.Swap(&other->_internal_metadata_);
2337 CastToBase(&cluster_device_attributes_)->InternalSwap(CastToBase(&other->cluster_device_attributes_));
2338 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2339 GetArenaNoVirtual());
2340 master_task_.Swap(&other->master_task_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2341 GetArenaNoVirtual());
2342 swap(server_def_, other->server_def_);
2343 swap(master_incarnation_, other->master_incarnation_);
2344 swap(isolate_session_state_, other->isolate_session_state_);
2345}
2346
2347::PROTOBUF_NAMESPACE_ID::Metadata CreateWorkerSessionRequest::GetMetadata() const {
2348 return GetMetadataStatic();
2349}
2350
2351
2352// ===================================================================
2353
2354void CreateWorkerSessionResponse::InitAsDefaultInstance() {
2355}
2356class CreateWorkerSessionResponse::_Internal {
2357 public:
2358};
2359
2360CreateWorkerSessionResponse::CreateWorkerSessionResponse()
2361 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2362 SharedCtor();
2363 // @@protoc_insertion_point(constructor:tensorflow.CreateWorkerSessionResponse)
2364}
2365CreateWorkerSessionResponse::CreateWorkerSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2366 : ::PROTOBUF_NAMESPACE_ID::Message(),
2367 _internal_metadata_(arena) {
2368 SharedCtor();
2369 RegisterArenaDtor(arena);
2370 // @@protoc_insertion_point(arena_constructor:tensorflow.CreateWorkerSessionResponse)
2371}
2372CreateWorkerSessionResponse::CreateWorkerSessionResponse(const CreateWorkerSessionResponse& from)
2373 : ::PROTOBUF_NAMESPACE_ID::Message(),
2374 _internal_metadata_(nullptr) {
2375 _internal_metadata_.MergeFrom(from._internal_metadata_);
2376 // @@protoc_insertion_point(copy_constructor:tensorflow.CreateWorkerSessionResponse)
2377}
2378
2379void CreateWorkerSessionResponse::SharedCtor() {
2380}
2381
2382CreateWorkerSessionResponse::~CreateWorkerSessionResponse() {
2383 // @@protoc_insertion_point(destructor:tensorflow.CreateWorkerSessionResponse)
2384 SharedDtor();
2385}
2386
2387void CreateWorkerSessionResponse::SharedDtor() {
2388 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2389}
2390
2391void CreateWorkerSessionResponse::ArenaDtor(void* object) {
2392 CreateWorkerSessionResponse* _this = reinterpret_cast< CreateWorkerSessionResponse* >(object);
2393 (void)_this;
2394}
2395void CreateWorkerSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2396}
2397void CreateWorkerSessionResponse::SetCachedSize(int size) const {
2398 _cached_size_.Set(size);
2399}
2400const CreateWorkerSessionResponse& CreateWorkerSessionResponse::default_instance() {
2401 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
2402 return *internal_default_instance();
2403}
2404
2405
2406void CreateWorkerSessionResponse::Clear() {
2407// @@protoc_insertion_point(message_clear_start:tensorflow.CreateWorkerSessionResponse)
2408 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2409 // Prevent compiler warnings about cached_has_bits being unused
2410 (void) cached_has_bits;
2411
2412 _internal_metadata_.Clear();
2413}
2414
2415#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2416const char* CreateWorkerSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2417#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2418 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2419 while (!ctx->Done(&ptr)) {
2420 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2421 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2422 CHK_(ptr);
2423 switch (tag >> 3) {
2424 default: {
2425 if ((tag & 7) == 4 || tag == 0) {
2426 ctx->SetLastTag(tag);
2427 goto success;
2428 }
2429 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2430 CHK_(ptr != nullptr);
2431 continue;
2432 }
2433 } // switch
2434 } // while
2435success:
2436 return ptr;
2437failure:
2438 ptr = nullptr;
2439 goto success;
2440#undef CHK_
2441}
2442#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2443bool CreateWorkerSessionResponse::MergePartialFromCodedStream(
2444 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2445#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2446 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2447 // @@protoc_insertion_point(parse_start:tensorflow.CreateWorkerSessionResponse)
2448 for (;;) {
2449 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2450 tag = p.first;
2451 if (!p.second) goto handle_unusual;
2452 handle_unusual:
2453 if (tag == 0) {
2454 goto success;
2455 }
2456 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2457 input, tag, _internal_metadata_.mutable_unknown_fields()));
2458 }
2459success:
2460 // @@protoc_insertion_point(parse_success:tensorflow.CreateWorkerSessionResponse)
2461 return true;
2462failure:
2463 // @@protoc_insertion_point(parse_failure:tensorflow.CreateWorkerSessionResponse)
2464 return false;
2465#undef DO_
2466}
2467#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2468
2469void CreateWorkerSessionResponse::SerializeWithCachedSizes(
2470 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2471 // @@protoc_insertion_point(serialize_start:tensorflow.CreateWorkerSessionResponse)
2472 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2473 (void) cached_has_bits;
2474
2475 if (_internal_metadata_.have_unknown_fields()) {
2476 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2477 _internal_metadata_.unknown_fields(), output);
2478 }
2479 // @@protoc_insertion_point(serialize_end:tensorflow.CreateWorkerSessionResponse)
2480}
2481
2482::PROTOBUF_NAMESPACE_ID::uint8* CreateWorkerSessionResponse::InternalSerializeWithCachedSizesToArray(
2483 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2484 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CreateWorkerSessionResponse)
2485 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2486 (void) cached_has_bits;
2487
2488 if (_internal_metadata_.have_unknown_fields()) {
2489 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2490 _internal_metadata_.unknown_fields(), target);
2491 }
2492 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CreateWorkerSessionResponse)
2493 return target;
2494}
2495
2496size_t CreateWorkerSessionResponse::ByteSizeLong() const {
2497// @@protoc_insertion_point(message_byte_size_start:tensorflow.CreateWorkerSessionResponse)
2498 size_t total_size = 0;
2499
2500 if (_internal_metadata_.have_unknown_fields()) {
2501 total_size +=
2502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2503 _internal_metadata_.unknown_fields());
2504 }
2505 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2506 // Prevent compiler warnings about cached_has_bits being unused
2507 (void) cached_has_bits;
2508
2509 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2510 SetCachedSize(cached_size);
2511 return total_size;
2512}
2513
2514void CreateWorkerSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2515// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CreateWorkerSessionResponse)
2516 GOOGLE_DCHECK_NE(&from, this);
2517 const CreateWorkerSessionResponse* source =
2518 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateWorkerSessionResponse>(
2519 &from);
2520 if (source == nullptr) {
2521 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CreateWorkerSessionResponse)
2522 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2523 } else {
2524 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CreateWorkerSessionResponse)
2525 MergeFrom(*source);
2526 }
2527}
2528
2529void CreateWorkerSessionResponse::MergeFrom(const CreateWorkerSessionResponse& from) {
2530// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CreateWorkerSessionResponse)
2531 GOOGLE_DCHECK_NE(&from, this);
2532 _internal_metadata_.MergeFrom(from._internal_metadata_);
2533 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2534 (void) cached_has_bits;
2535
2536}
2537
2538void CreateWorkerSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2539// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CreateWorkerSessionResponse)
2540 if (&from == this) return;
2541 Clear();
2542 MergeFrom(from);
2543}
2544
2545void CreateWorkerSessionResponse::CopyFrom(const CreateWorkerSessionResponse& from) {
2546// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CreateWorkerSessionResponse)
2547 if (&from == this) return;
2548 Clear();
2549 MergeFrom(from);
2550}
2551
2552bool CreateWorkerSessionResponse::IsInitialized() const {
2553 return true;
2554}
2555
2556void CreateWorkerSessionResponse::InternalSwap(CreateWorkerSessionResponse* other) {
2557 using std::swap;
2558 _internal_metadata_.Swap(&other->_internal_metadata_);
2559}
2560
2561::PROTOBUF_NAMESPACE_ID::Metadata CreateWorkerSessionResponse::GetMetadata() const {
2562 return GetMetadataStatic();
2563}
2564
2565
2566// ===================================================================
2567
2568void DeleteWorkerSessionRequest::InitAsDefaultInstance() {
2569}
2570class DeleteWorkerSessionRequest::_Internal {
2571 public:
2572};
2573
2574DeleteWorkerSessionRequest::DeleteWorkerSessionRequest()
2575 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2576 SharedCtor();
2577 // @@protoc_insertion_point(constructor:tensorflow.DeleteWorkerSessionRequest)
2578}
2579DeleteWorkerSessionRequest::DeleteWorkerSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2580 : ::PROTOBUF_NAMESPACE_ID::Message(),
2581 _internal_metadata_(arena) {
2582 SharedCtor();
2583 RegisterArenaDtor(arena);
2584 // @@protoc_insertion_point(arena_constructor:tensorflow.DeleteWorkerSessionRequest)
2585}
2586DeleteWorkerSessionRequest::DeleteWorkerSessionRequest(const DeleteWorkerSessionRequest& from)
2587 : ::PROTOBUF_NAMESPACE_ID::Message(),
2588 _internal_metadata_(nullptr) {
2589 _internal_metadata_.MergeFrom(from._internal_metadata_);
2590 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2591 if (!from.session_handle().empty()) {
2592 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
2593 GetArenaNoVirtual());
2594 }
2595 // @@protoc_insertion_point(copy_constructor:tensorflow.DeleteWorkerSessionRequest)
2596}
2597
2598void DeleteWorkerSessionRequest::SharedCtor() {
2599 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
2600 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2601}
2602
2603DeleteWorkerSessionRequest::~DeleteWorkerSessionRequest() {
2604 // @@protoc_insertion_point(destructor:tensorflow.DeleteWorkerSessionRequest)
2605 SharedDtor();
2606}
2607
2608void DeleteWorkerSessionRequest::SharedDtor() {
2609 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2610 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2611}
2612
2613void DeleteWorkerSessionRequest::ArenaDtor(void* object) {
2614 DeleteWorkerSessionRequest* _this = reinterpret_cast< DeleteWorkerSessionRequest* >(object);
2615 (void)_this;
2616}
2617void DeleteWorkerSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2618}
2619void DeleteWorkerSessionRequest::SetCachedSize(int size) const {
2620 _cached_size_.Set(size);
2621}
2622const DeleteWorkerSessionRequest& DeleteWorkerSessionRequest::default_instance() {
2623 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteWorkerSessionRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
2624 return *internal_default_instance();
2625}
2626
2627
2628void DeleteWorkerSessionRequest::Clear() {
2629// @@protoc_insertion_point(message_clear_start:tensorflow.DeleteWorkerSessionRequest)
2630 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2631 // Prevent compiler warnings about cached_has_bits being unused
2632 (void) cached_has_bits;
2633
2634 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2635 _internal_metadata_.Clear();
2636}
2637
2638#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2639const char* DeleteWorkerSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2640#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2641 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2642 while (!ctx->Done(&ptr)) {
2643 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2644 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2645 CHK_(ptr);
2646 switch (tag >> 3) {
2647 // string session_handle = 1;
2648 case 1:
2649 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2650 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.DeleteWorkerSessionRequest.session_handle");
2651 CHK_(ptr);
2652 } else goto handle_unusual;
2653 continue;
2654 default: {
2655 handle_unusual:
2656 if ((tag & 7) == 4 || tag == 0) {
2657 ctx->SetLastTag(tag);
2658 goto success;
2659 }
2660 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2661 CHK_(ptr != nullptr);
2662 continue;
2663 }
2664 } // switch
2665 } // while
2666success:
2667 return ptr;
2668failure:
2669 ptr = nullptr;
2670 goto success;
2671#undef CHK_
2672}
2673#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2674bool DeleteWorkerSessionRequest::MergePartialFromCodedStream(
2675 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2676#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2677 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2678 // @@protoc_insertion_point(parse_start:tensorflow.DeleteWorkerSessionRequest)
2679 for (;;) {
2680 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2681 tag = p.first;
2682 if (!p.second) goto handle_unusual;
2683 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2684 // string session_handle = 1;
2685 case 1: {
2686 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2687 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2688 input, this->mutable_session_handle()));
2689 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2690 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2691 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2692 "tensorflow.DeleteWorkerSessionRequest.session_handle"));
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 }
2710success:
2711 // @@protoc_insertion_point(parse_success:tensorflow.DeleteWorkerSessionRequest)
2712 return true;
2713failure:
2714 // @@protoc_insertion_point(parse_failure:tensorflow.DeleteWorkerSessionRequest)
2715 return false;
2716#undef DO_
2717}
2718#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2719
2720void DeleteWorkerSessionRequest::SerializeWithCachedSizes(
2721 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2722 // @@protoc_insertion_point(serialize_start:tensorflow.DeleteWorkerSessionRequest)
2723 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2724 (void) cached_has_bits;
2725
2726 // string session_handle = 1;
2727 if (this->session_handle().size() > 0) {
2728 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2729 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2731 "tensorflow.DeleteWorkerSessionRequest.session_handle");
2732 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2733 1, this->session_handle(), output);
2734 }
2735
2736 if (_internal_metadata_.have_unknown_fields()) {
2737 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2738 _internal_metadata_.unknown_fields(), output);
2739 }
2740 // @@protoc_insertion_point(serialize_end:tensorflow.DeleteWorkerSessionRequest)
2741}
2742
2743::PROTOBUF_NAMESPACE_ID::uint8* DeleteWorkerSessionRequest::InternalSerializeWithCachedSizesToArray(
2744 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2745 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeleteWorkerSessionRequest)
2746 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2747 (void) cached_has_bits;
2748
2749 // string session_handle = 1;
2750 if (this->session_handle().size() > 0) {
2751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2752 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2753 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2754 "tensorflow.DeleteWorkerSessionRequest.session_handle");
2755 target =
2756 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2757 1, this->session_handle(), target);
2758 }
2759
2760 if (_internal_metadata_.have_unknown_fields()) {
2761 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2762 _internal_metadata_.unknown_fields(), target);
2763 }
2764 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeleteWorkerSessionRequest)
2765 return target;
2766}
2767
2768size_t DeleteWorkerSessionRequest::ByteSizeLong() const {
2769// @@protoc_insertion_point(message_byte_size_start:tensorflow.DeleteWorkerSessionRequest)
2770 size_t total_size = 0;
2771
2772 if (_internal_metadata_.have_unknown_fields()) {
2773 total_size +=
2774 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2775 _internal_metadata_.unknown_fields());
2776 }
2777 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2778 // Prevent compiler warnings about cached_has_bits being unused
2779 (void) cached_has_bits;
2780
2781 // string session_handle = 1;
2782 if (this->session_handle().size() > 0) {
2783 total_size += 1 +
2784 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2785 this->session_handle());
2786 }
2787
2788 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2789 SetCachedSize(cached_size);
2790 return total_size;
2791}
2792
2793void DeleteWorkerSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2794// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeleteWorkerSessionRequest)
2795 GOOGLE_DCHECK_NE(&from, this);
2796 const DeleteWorkerSessionRequest* source =
2797 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeleteWorkerSessionRequest>(
2798 &from);
2799 if (source == nullptr) {
2800 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeleteWorkerSessionRequest)
2801 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2802 } else {
2803 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeleteWorkerSessionRequest)
2804 MergeFrom(*source);
2805 }
2806}
2807
2808void DeleteWorkerSessionRequest::MergeFrom(const DeleteWorkerSessionRequest& from) {
2809// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeleteWorkerSessionRequest)
2810 GOOGLE_DCHECK_NE(&from, this);
2811 _internal_metadata_.MergeFrom(from._internal_metadata_);
2812 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2813 (void) cached_has_bits;
2814
2815 if (from.session_handle().size() > 0) {
2816 set_session_handle(from.session_handle());
2817 }
2818}
2819
2820void DeleteWorkerSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2821// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeleteWorkerSessionRequest)
2822 if (&from == this) return;
2823 Clear();
2824 MergeFrom(from);
2825}
2826
2827void DeleteWorkerSessionRequest::CopyFrom(const DeleteWorkerSessionRequest& from) {
2828// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeleteWorkerSessionRequest)
2829 if (&from == this) return;
2830 Clear();
2831 MergeFrom(from);
2832}
2833
2834bool DeleteWorkerSessionRequest::IsInitialized() const {
2835 return true;
2836}
2837
2838void DeleteWorkerSessionRequest::InternalSwap(DeleteWorkerSessionRequest* other) {
2839 using std::swap;
2840 _internal_metadata_.Swap(&other->_internal_metadata_);
2841 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2842 GetArenaNoVirtual());
2843}
2844
2845::PROTOBUF_NAMESPACE_ID::Metadata DeleteWorkerSessionRequest::GetMetadata() const {
2846 return GetMetadataStatic();
2847}
2848
2849
2850// ===================================================================
2851
2852void DeleteWorkerSessionResponse::InitAsDefaultInstance() {
2853}
2854class DeleteWorkerSessionResponse::_Internal {
2855 public:
2856};
2857
2858DeleteWorkerSessionResponse::DeleteWorkerSessionResponse()
2859 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2860 SharedCtor();
2861 // @@protoc_insertion_point(constructor:tensorflow.DeleteWorkerSessionResponse)
2862}
2863DeleteWorkerSessionResponse::DeleteWorkerSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2864 : ::PROTOBUF_NAMESPACE_ID::Message(),
2865 _internal_metadata_(arena) {
2866 SharedCtor();
2867 RegisterArenaDtor(arena);
2868 // @@protoc_insertion_point(arena_constructor:tensorflow.DeleteWorkerSessionResponse)
2869}
2870DeleteWorkerSessionResponse::DeleteWorkerSessionResponse(const DeleteWorkerSessionResponse& from)
2871 : ::PROTOBUF_NAMESPACE_ID::Message(),
2872 _internal_metadata_(nullptr) {
2873 _internal_metadata_.MergeFrom(from._internal_metadata_);
2874 // @@protoc_insertion_point(copy_constructor:tensorflow.DeleteWorkerSessionResponse)
2875}
2876
2877void DeleteWorkerSessionResponse::SharedCtor() {
2878}
2879
2880DeleteWorkerSessionResponse::~DeleteWorkerSessionResponse() {
2881 // @@protoc_insertion_point(destructor:tensorflow.DeleteWorkerSessionResponse)
2882 SharedDtor();
2883}
2884
2885void DeleteWorkerSessionResponse::SharedDtor() {
2886 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2887}
2888
2889void DeleteWorkerSessionResponse::ArenaDtor(void* object) {
2890 DeleteWorkerSessionResponse* _this = reinterpret_cast< DeleteWorkerSessionResponse* >(object);
2891 (void)_this;
2892}
2893void DeleteWorkerSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2894}
2895void DeleteWorkerSessionResponse::SetCachedSize(int size) const {
2896 _cached_size_.Set(size);
2897}
2898const DeleteWorkerSessionResponse& DeleteWorkerSessionResponse::default_instance() {
2899 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteWorkerSessionResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
2900 return *internal_default_instance();
2901}
2902
2903
2904void DeleteWorkerSessionResponse::Clear() {
2905// @@protoc_insertion_point(message_clear_start:tensorflow.DeleteWorkerSessionResponse)
2906 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2907 // Prevent compiler warnings about cached_has_bits being unused
2908 (void) cached_has_bits;
2909
2910 _internal_metadata_.Clear();
2911}
2912
2913#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2914const char* DeleteWorkerSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2915#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2916 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2917 while (!ctx->Done(&ptr)) {
2918 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2919 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2920 CHK_(ptr);
2921 switch (tag >> 3) {
2922 default: {
2923 if ((tag & 7) == 4 || tag == 0) {
2924 ctx->SetLastTag(tag);
2925 goto success;
2926 }
2927 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2928 CHK_(ptr != nullptr);
2929 continue;
2930 }
2931 } // switch
2932 } // while
2933success:
2934 return ptr;
2935failure:
2936 ptr = nullptr;
2937 goto success;
2938#undef CHK_
2939}
2940#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2941bool DeleteWorkerSessionResponse::MergePartialFromCodedStream(
2942 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2943#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2944 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2945 // @@protoc_insertion_point(parse_start:tensorflow.DeleteWorkerSessionResponse)
2946 for (;;) {
2947 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2948 tag = p.first;
2949 if (!p.second) goto handle_unusual;
2950 handle_unusual:
2951 if (tag == 0) {
2952 goto success;
2953 }
2954 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2955 input, tag, _internal_metadata_.mutable_unknown_fields()));
2956 }
2957success:
2958 // @@protoc_insertion_point(parse_success:tensorflow.DeleteWorkerSessionResponse)
2959 return true;
2960failure:
2961 // @@protoc_insertion_point(parse_failure:tensorflow.DeleteWorkerSessionResponse)
2962 return false;
2963#undef DO_
2964}
2965#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2966
2967void DeleteWorkerSessionResponse::SerializeWithCachedSizes(
2968 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2969 // @@protoc_insertion_point(serialize_start:tensorflow.DeleteWorkerSessionResponse)
2970 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2971 (void) cached_has_bits;
2972
2973 if (_internal_metadata_.have_unknown_fields()) {
2974 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2975 _internal_metadata_.unknown_fields(), output);
2976 }
2977 // @@protoc_insertion_point(serialize_end:tensorflow.DeleteWorkerSessionResponse)
2978}
2979
2980::PROTOBUF_NAMESPACE_ID::uint8* DeleteWorkerSessionResponse::InternalSerializeWithCachedSizesToArray(
2981 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2982 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeleteWorkerSessionResponse)
2983 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2984 (void) cached_has_bits;
2985
2986 if (_internal_metadata_.have_unknown_fields()) {
2987 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2988 _internal_metadata_.unknown_fields(), target);
2989 }
2990 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeleteWorkerSessionResponse)
2991 return target;
2992}
2993
2994size_t DeleteWorkerSessionResponse::ByteSizeLong() const {
2995// @@protoc_insertion_point(message_byte_size_start:tensorflow.DeleteWorkerSessionResponse)
2996 size_t total_size = 0;
2997
2998 if (_internal_metadata_.have_unknown_fields()) {
2999 total_size +=
3000 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3001 _internal_metadata_.unknown_fields());
3002 }
3003 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3004 // Prevent compiler warnings about cached_has_bits being unused
3005 (void) cached_has_bits;
3006
3007 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3008 SetCachedSize(cached_size);
3009 return total_size;
3010}
3011
3012void DeleteWorkerSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3013// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeleteWorkerSessionResponse)
3014 GOOGLE_DCHECK_NE(&from, this);
3015 const DeleteWorkerSessionResponse* source =
3016 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeleteWorkerSessionResponse>(
3017 &from);
3018 if (source == nullptr) {
3019 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeleteWorkerSessionResponse)
3020 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3021 } else {
3022 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeleteWorkerSessionResponse)
3023 MergeFrom(*source);
3024 }
3025}
3026
3027void DeleteWorkerSessionResponse::MergeFrom(const DeleteWorkerSessionResponse& from) {
3028// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeleteWorkerSessionResponse)
3029 GOOGLE_DCHECK_NE(&from, this);
3030 _internal_metadata_.MergeFrom(from._internal_metadata_);
3031 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3032 (void) cached_has_bits;
3033
3034}
3035
3036void DeleteWorkerSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3037// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeleteWorkerSessionResponse)
3038 if (&from == this) return;
3039 Clear();
3040 MergeFrom(from);
3041}
3042
3043void DeleteWorkerSessionResponse::CopyFrom(const DeleteWorkerSessionResponse& from) {
3044// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeleteWorkerSessionResponse)
3045 if (&from == this) return;
3046 Clear();
3047 MergeFrom(from);
3048}
3049
3050bool DeleteWorkerSessionResponse::IsInitialized() const {
3051 return true;
3052}
3053
3054void DeleteWorkerSessionResponse::InternalSwap(DeleteWorkerSessionResponse* other) {
3055 using std::swap;
3056 _internal_metadata_.Swap(&other->_internal_metadata_);
3057}
3058
3059::PROTOBUF_NAMESPACE_ID::Metadata DeleteWorkerSessionResponse::GetMetadata() const {
3060 return GetMetadataStatic();
3061}
3062
3063
3064// ===================================================================
3065
3066void RegisterGraphRequest::InitAsDefaultInstance() {
3067 ::tensorflow::_RegisterGraphRequest_default_instance_._instance.get_mutable()->graph_def_ = const_cast< ::tensorflow::GraphDef*>(
3068 ::tensorflow::GraphDef::internal_default_instance());
3069 ::tensorflow::_RegisterGraphRequest_default_instance_._instance.get_mutable()->graph_options_ = const_cast< ::tensorflow::GraphOptions*>(
3070 ::tensorflow::GraphOptions::internal_default_instance());
3071 ::tensorflow::_RegisterGraphRequest_default_instance_._instance.get_mutable()->debug_options_ = const_cast< ::tensorflow::DebugOptions*>(
3072 ::tensorflow::DebugOptions::internal_default_instance());
3073 ::tensorflow::_RegisterGraphRequest_default_instance_._instance.get_mutable()->config_proto_ = const_cast< ::tensorflow::ConfigProto*>(
3074 ::tensorflow::ConfigProto::internal_default_instance());
3075}
3076class RegisterGraphRequest::_Internal {
3077 public:
3078 static const ::tensorflow::GraphDef& graph_def(const RegisterGraphRequest* msg);
3079 static const ::tensorflow::GraphOptions& graph_options(const RegisterGraphRequest* msg);
3080 static const ::tensorflow::DebugOptions& debug_options(const RegisterGraphRequest* msg);
3081 static const ::tensorflow::ConfigProto& config_proto(const RegisterGraphRequest* msg);
3082};
3083
3084const ::tensorflow::GraphDef&
3085RegisterGraphRequest::_Internal::graph_def(const RegisterGraphRequest* msg) {
3086 return *msg->graph_def_;
3087}
3088const ::tensorflow::GraphOptions&
3089RegisterGraphRequest::_Internal::graph_options(const RegisterGraphRequest* msg) {
3090 return *msg->graph_options_;
3091}
3092const ::tensorflow::DebugOptions&
3093RegisterGraphRequest::_Internal::debug_options(const RegisterGraphRequest* msg) {
3094 return *msg->debug_options_;
3095}
3096const ::tensorflow::ConfigProto&
3097RegisterGraphRequest::_Internal::config_proto(const RegisterGraphRequest* msg) {
3098 return *msg->config_proto_;
3099}
3100void RegisterGraphRequest::unsafe_arena_set_allocated_graph_def(
3101 ::tensorflow::GraphDef* graph_def) {
3102 if (GetArenaNoVirtual() == nullptr) {
3103 delete graph_def_;
3104 }
3105 graph_def_ = graph_def;
3106 if (graph_def) {
3107
3108 } else {
3109
3110 }
3111 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisterGraphRequest.graph_def)
3112}
3113void RegisterGraphRequest::clear_graph_def() {
3114 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
3115 delete graph_def_;
3116 }
3117 graph_def_ = nullptr;
3118}
3119void RegisterGraphRequest::unsafe_arena_set_allocated_graph_options(
3120 ::tensorflow::GraphOptions* graph_options) {
3121 if (GetArenaNoVirtual() == nullptr) {
3122 delete graph_options_;
3123 }
3124 graph_options_ = graph_options;
3125 if (graph_options) {
3126
3127 } else {
3128
3129 }
3130 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisterGraphRequest.graph_options)
3131}
3132void RegisterGraphRequest::clear_graph_options() {
3133 if (GetArenaNoVirtual() == nullptr && graph_options_ != nullptr) {
3134 delete graph_options_;
3135 }
3136 graph_options_ = nullptr;
3137}
3138void RegisterGraphRequest::unsafe_arena_set_allocated_debug_options(
3139 ::tensorflow::DebugOptions* debug_options) {
3140 if (GetArenaNoVirtual() == nullptr) {
3141 delete debug_options_;
3142 }
3143 debug_options_ = debug_options;
3144 if (debug_options) {
3145
3146 } else {
3147
3148 }
3149 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisterGraphRequest.debug_options)
3150}
3151void RegisterGraphRequest::clear_debug_options() {
3152 if (GetArenaNoVirtual() == nullptr && debug_options_ != nullptr) {
3153 delete debug_options_;
3154 }
3155 debug_options_ = nullptr;
3156}
3157void RegisterGraphRequest::unsafe_arena_set_allocated_config_proto(
3158 ::tensorflow::ConfigProto* config_proto) {
3159 if (GetArenaNoVirtual() == nullptr) {
3160 delete config_proto_;
3161 }
3162 config_proto_ = config_proto;
3163 if (config_proto) {
3164
3165 } else {
3166
3167 }
3168 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisterGraphRequest.config_proto)
3169}
3170void RegisterGraphRequest::clear_config_proto() {
3171 if (GetArenaNoVirtual() == nullptr && config_proto_ != nullptr) {
3172 delete config_proto_;
3173 }
3174 config_proto_ = nullptr;
3175}
3176RegisterGraphRequest::RegisterGraphRequest()
3177 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3178 SharedCtor();
3179 // @@protoc_insertion_point(constructor:tensorflow.RegisterGraphRequest)
3180}
3181RegisterGraphRequest::RegisterGraphRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3182 : ::PROTOBUF_NAMESPACE_ID::Message(),
3183 _internal_metadata_(arena) {
3184 SharedCtor();
3185 RegisterArenaDtor(arena);
3186 // @@protoc_insertion_point(arena_constructor:tensorflow.RegisterGraphRequest)
3187}
3188RegisterGraphRequest::RegisterGraphRequest(const RegisterGraphRequest& from)
3189 : ::PROTOBUF_NAMESPACE_ID::Message(),
3190 _internal_metadata_(nullptr) {
3191 _internal_metadata_.MergeFrom(from._internal_metadata_);
3192 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3193 if (!from.session_handle().empty()) {
3194 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
3195 GetArenaNoVirtual());
3196 }
3197 if (from.has_graph_def()) {
3198 graph_def_ = new ::tensorflow::GraphDef(*from.graph_def_);
3199 } else {
3200 graph_def_ = nullptr;
3201 }
3202 if (from.has_graph_options()) {
3203 graph_options_ = new ::tensorflow::GraphOptions(*from.graph_options_);
3204 } else {
3205 graph_options_ = nullptr;
3206 }
3207 if (from.has_debug_options()) {
3208 debug_options_ = new ::tensorflow::DebugOptions(*from.debug_options_);
3209 } else {
3210 debug_options_ = nullptr;
3211 }
3212 if (from.has_config_proto()) {
3213 config_proto_ = new ::tensorflow::ConfigProto(*from.config_proto_);
3214 } else {
3215 config_proto_ = nullptr;
3216 }
3217 ::memcpy(&collective_graph_key_, &from.collective_graph_key_,
3218 static_cast<size_t>(reinterpret_cast<char*>(&has_control_flow_) -
3219 reinterpret_cast<char*>(&collective_graph_key_)) + sizeof(has_control_flow_));
3220 // @@protoc_insertion_point(copy_constructor:tensorflow.RegisterGraphRequest)
3221}
3222
3223void RegisterGraphRequest::SharedCtor() {
3224 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
3225 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3226 ::memset(&graph_def_, 0, static_cast<size_t>(
3227 reinterpret_cast<char*>(&has_control_flow_) -
3228 reinterpret_cast<char*>(&graph_def_)) + sizeof(has_control_flow_));
3229}
3230
3231RegisterGraphRequest::~RegisterGraphRequest() {
3232 // @@protoc_insertion_point(destructor:tensorflow.RegisterGraphRequest)
3233 SharedDtor();
3234}
3235
3236void RegisterGraphRequest::SharedDtor() {
3237 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3238 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3239 if (this != internal_default_instance()) delete graph_def_;
3240 if (this != internal_default_instance()) delete graph_options_;
3241 if (this != internal_default_instance()) delete debug_options_;
3242 if (this != internal_default_instance()) delete config_proto_;
3243}
3244
3245void RegisterGraphRequest::ArenaDtor(void* object) {
3246 RegisterGraphRequest* _this = reinterpret_cast< RegisterGraphRequest* >(object);
3247 (void)_this;
3248}
3249void RegisterGraphRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3250}
3251void RegisterGraphRequest::SetCachedSize(int size) const {
3252 _cached_size_.Set(size);
3253}
3254const RegisterGraphRequest& RegisterGraphRequest::default_instance() {
3255 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RegisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
3256 return *internal_default_instance();
3257}
3258
3259
3260void RegisterGraphRequest::Clear() {
3261// @@protoc_insertion_point(message_clear_start:tensorflow.RegisterGraphRequest)
3262 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3263 // Prevent compiler warnings about cached_has_bits being unused
3264 (void) cached_has_bits;
3265
3266 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3267 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
3268 delete graph_def_;
3269 }
3270 graph_def_ = nullptr;
3271 if (GetArenaNoVirtual() == nullptr && graph_options_ != nullptr) {
3272 delete graph_options_;
3273 }
3274 graph_options_ = nullptr;
3275 if (GetArenaNoVirtual() == nullptr && debug_options_ != nullptr) {
3276 delete debug_options_;
3277 }
3278 debug_options_ = nullptr;
3279 if (GetArenaNoVirtual() == nullptr && config_proto_ != nullptr) {
3280 delete config_proto_;
3281 }
3282 config_proto_ = nullptr;
3283 ::memset(&collective_graph_key_, 0, static_cast<size_t>(
3284 reinterpret_cast<char*>(&has_control_flow_) -
3285 reinterpret_cast<char*>(&collective_graph_key_)) + sizeof(has_control_flow_));
3286 _internal_metadata_.Clear();
3287}
3288
3289#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3290const char* RegisterGraphRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3291#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3292 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3293 while (!ctx->Done(&ptr)) {
3294 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3295 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3296 CHK_(ptr);
3297 switch (tag >> 3) {
3298 // string session_handle = 1;
3299 case 1:
3300 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3301 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.RegisterGraphRequest.session_handle");
3302 CHK_(ptr);
3303 } else goto handle_unusual;
3304 continue;
3305 // .tensorflow.GraphDef graph_def = 2;
3306 case 2:
3307 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3308 ptr = ctx->ParseMessage(mutable_graph_def(), ptr);
3309 CHK_(ptr);
3310 } else goto handle_unusual;
3311 continue;
3312 // bool has_control_flow = 3 [deprecated = true];
3313 case 3:
3314 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
3315 has_control_flow_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3316 CHK_(ptr);
3317 } else goto handle_unusual;
3318 continue;
3319 // .tensorflow.GraphOptions graph_options = 4;
3320 case 4:
3321 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3322 ptr = ctx->ParseMessage(mutable_graph_options(), ptr);
3323 CHK_(ptr);
3324 } else goto handle_unusual;
3325 continue;
3326 // .tensorflow.DebugOptions debug_options = 5;
3327 case 5:
3328 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
3329 ptr = ctx->ParseMessage(mutable_debug_options(), ptr);
3330 CHK_(ptr);
3331 } else goto handle_unusual;
3332 continue;
3333 // bool create_worker_session_called = 6;
3334 case 6:
3335 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
3336 create_worker_session_called_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3337 CHK_(ptr);
3338 } else goto handle_unusual;
3339 continue;
3340 // int64 collective_graph_key = 7;
3341 case 7:
3342 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
3343 collective_graph_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3344 CHK_(ptr);
3345 } else goto handle_unusual;
3346 continue;
3347 // .tensorflow.ConfigProto config_proto = 8;
3348 case 8:
3349 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
3350 ptr = ctx->ParseMessage(mutable_config_proto(), ptr);
3351 CHK_(ptr);
3352 } else goto handle_unusual;
3353 continue;
3354 default: {
3355 handle_unusual:
3356 if ((tag & 7) == 4 || tag == 0) {
3357 ctx->SetLastTag(tag);
3358 goto success;
3359 }
3360 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3361 CHK_(ptr != nullptr);
3362 continue;
3363 }
3364 } // switch
3365 } // while
3366success:
3367 return ptr;
3368failure:
3369 ptr = nullptr;
3370 goto success;
3371#undef CHK_
3372}
3373#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3374bool RegisterGraphRequest::MergePartialFromCodedStream(
3375 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3376#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3377 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3378 // @@protoc_insertion_point(parse_start:tensorflow.RegisterGraphRequest)
3379 for (;;) {
3380 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3381 tag = p.first;
3382 if (!p.second) goto handle_unusual;
3383 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3384 // string session_handle = 1;
3385 case 1: {
3386 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3387 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3388 input, this->mutable_session_handle()));
3389 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3390 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3391 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3392 "tensorflow.RegisterGraphRequest.session_handle"));
3393 } else {
3394 goto handle_unusual;
3395 }
3396 break;
3397 }
3398
3399 // .tensorflow.GraphDef graph_def = 2;
3400 case 2: {
3401 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3402 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3403 input, mutable_graph_def()));
3404 } else {
3405 goto handle_unusual;
3406 }
3407 break;
3408 }
3409
3410 // bool has_control_flow = 3 [deprecated = true];
3411 case 3: {
3412 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
3413
3414 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3415 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
3416 input, &has_control_flow_)));
3417 } else {
3418 goto handle_unusual;
3419 }
3420 break;
3421 }
3422
3423 // .tensorflow.GraphOptions graph_options = 4;
3424 case 4: {
3425 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3426 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3427 input, mutable_graph_options()));
3428 } else {
3429 goto handle_unusual;
3430 }
3431 break;
3432 }
3433
3434 // .tensorflow.DebugOptions debug_options = 5;
3435 case 5: {
3436 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
3437 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3438 input, mutable_debug_options()));
3439 } else {
3440 goto handle_unusual;
3441 }
3442 break;
3443 }
3444
3445 // bool create_worker_session_called = 6;
3446 case 6: {
3447 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
3448
3449 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3450 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
3451 input, &create_worker_session_called_)));
3452 } else {
3453 goto handle_unusual;
3454 }
3455 break;
3456 }
3457
3458 // int64 collective_graph_key = 7;
3459 case 7: {
3460 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
3461
3462 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3463 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
3464 input, &collective_graph_key_)));
3465 } else {
3466 goto handle_unusual;
3467 }
3468 break;
3469 }
3470
3471 // .tensorflow.ConfigProto config_proto = 8;
3472 case 8: {
3473 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
3474 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3475 input, mutable_config_proto()));
3476 } else {
3477 goto handle_unusual;
3478 }
3479 break;
3480 }
3481
3482 default: {
3483 handle_unusual:
3484 if (tag == 0) {
3485 goto success;
3486 }
3487 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3488 input, tag, _internal_metadata_.mutable_unknown_fields()));
3489 break;
3490 }
3491 }
3492 }
3493success:
3494 // @@protoc_insertion_point(parse_success:tensorflow.RegisterGraphRequest)
3495 return true;
3496failure:
3497 // @@protoc_insertion_point(parse_failure:tensorflow.RegisterGraphRequest)
3498 return false;
3499#undef DO_
3500}
3501#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3502
3503void RegisterGraphRequest::SerializeWithCachedSizes(
3504 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3505 // @@protoc_insertion_point(serialize_start:tensorflow.RegisterGraphRequest)
3506 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3507 (void) cached_has_bits;
3508
3509 // string session_handle = 1;
3510 if (this->session_handle().size() > 0) {
3511 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3512 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3513 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3514 "tensorflow.RegisterGraphRequest.session_handle");
3515 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3516 1, this->session_handle(), output);
3517 }
3518
3519 // .tensorflow.GraphDef graph_def = 2;
3520 if (this->has_graph_def()) {
3521 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3522 2, _Internal::graph_def(this), output);
3523 }
3524
3525 // bool has_control_flow = 3 [deprecated = true];
3526 if (this->has_control_flow() != 0) {
3527 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->has_control_flow(), output);
3528 }
3529
3530 // .tensorflow.GraphOptions graph_options = 4;
3531 if (this->has_graph_options()) {
3532 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3533 4, _Internal::graph_options(this), output);
3534 }
3535
3536 // .tensorflow.DebugOptions debug_options = 5;
3537 if (this->has_debug_options()) {
3538 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3539 5, _Internal::debug_options(this), output);
3540 }
3541
3542 // bool create_worker_session_called = 6;
3543 if (this->create_worker_session_called() != 0) {
3544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(6, this->create_worker_session_called(), output);
3545 }
3546
3547 // int64 collective_graph_key = 7;
3548 if (this->collective_graph_key() != 0) {
3549 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->collective_graph_key(), output);
3550 }
3551
3552 // .tensorflow.ConfigProto config_proto = 8;
3553 if (this->has_config_proto()) {
3554 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3555 8, _Internal::config_proto(this), output);
3556 }
3557
3558 if (_internal_metadata_.have_unknown_fields()) {
3559 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3560 _internal_metadata_.unknown_fields(), output);
3561 }
3562 // @@protoc_insertion_point(serialize_end:tensorflow.RegisterGraphRequest)
3563}
3564
3565::PROTOBUF_NAMESPACE_ID::uint8* RegisterGraphRequest::InternalSerializeWithCachedSizesToArray(
3566 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3567 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RegisterGraphRequest)
3568 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3569 (void) cached_has_bits;
3570
3571 // string session_handle = 1;
3572 if (this->session_handle().size() > 0) {
3573 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3574 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3575 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3576 "tensorflow.RegisterGraphRequest.session_handle");
3577 target =
3578 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3579 1, this->session_handle(), target);
3580 }
3581
3582 // .tensorflow.GraphDef graph_def = 2;
3583 if (this->has_graph_def()) {
3584 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3585 InternalWriteMessageToArray(
3586 2, _Internal::graph_def(this), target);
3587 }
3588
3589 // bool has_control_flow = 3 [deprecated = true];
3590 if (this->has_control_flow() != 0) {
3591 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->has_control_flow(), target);
3592 }
3593
3594 // .tensorflow.GraphOptions graph_options = 4;
3595 if (this->has_graph_options()) {
3596 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3597 InternalWriteMessageToArray(
3598 4, _Internal::graph_options(this), target);
3599 }
3600
3601 // .tensorflow.DebugOptions debug_options = 5;
3602 if (this->has_debug_options()) {
3603 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3604 InternalWriteMessageToArray(
3605 5, _Internal::debug_options(this), target);
3606 }
3607
3608 // bool create_worker_session_called = 6;
3609 if (this->create_worker_session_called() != 0) {
3610 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->create_worker_session_called(), target);
3611 }
3612
3613 // int64 collective_graph_key = 7;
3614 if (this->collective_graph_key() != 0) {
3615 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->collective_graph_key(), target);
3616 }
3617
3618 // .tensorflow.ConfigProto config_proto = 8;
3619 if (this->has_config_proto()) {
3620 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3621 InternalWriteMessageToArray(
3622 8, _Internal::config_proto(this), target);
3623 }
3624
3625 if (_internal_metadata_.have_unknown_fields()) {
3626 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3627 _internal_metadata_.unknown_fields(), target);
3628 }
3629 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RegisterGraphRequest)
3630 return target;
3631}
3632
3633size_t RegisterGraphRequest::ByteSizeLong() const {
3634// @@protoc_insertion_point(message_byte_size_start:tensorflow.RegisterGraphRequest)
3635 size_t total_size = 0;
3636
3637 if (_internal_metadata_.have_unknown_fields()) {
3638 total_size +=
3639 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3640 _internal_metadata_.unknown_fields());
3641 }
3642 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3643 // Prevent compiler warnings about cached_has_bits being unused
3644 (void) cached_has_bits;
3645
3646 // string session_handle = 1;
3647 if (this->session_handle().size() > 0) {
3648 total_size += 1 +
3649 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3650 this->session_handle());
3651 }
3652
3653 // .tensorflow.GraphDef graph_def = 2;
3654 if (this->has_graph_def()) {
3655 total_size += 1 +
3656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3657 *graph_def_);
3658 }
3659
3660 // .tensorflow.GraphOptions graph_options = 4;
3661 if (this->has_graph_options()) {
3662 total_size += 1 +
3663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3664 *graph_options_);
3665 }
3666
3667 // .tensorflow.DebugOptions debug_options = 5;
3668 if (this->has_debug_options()) {
3669 total_size += 1 +
3670 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3671 *debug_options_);
3672 }
3673
3674 // .tensorflow.ConfigProto config_proto = 8;
3675 if (this->has_config_proto()) {
3676 total_size += 1 +
3677 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3678 *config_proto_);
3679 }
3680
3681 // int64 collective_graph_key = 7;
3682 if (this->collective_graph_key() != 0) {
3683 total_size += 1 +
3684 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
3685 this->collective_graph_key());
3686 }
3687
3688 // bool create_worker_session_called = 6;
3689 if (this->create_worker_session_called() != 0) {
3690 total_size += 1 + 1;
3691 }
3692
3693 // bool has_control_flow = 3 [deprecated = true];
3694 if (this->has_control_flow() != 0) {
3695 total_size += 1 + 1;
3696 }
3697
3698 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3699 SetCachedSize(cached_size);
3700 return total_size;
3701}
3702
3703void RegisterGraphRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3704// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RegisterGraphRequest)
3705 GOOGLE_DCHECK_NE(&from, this);
3706 const RegisterGraphRequest* source =
3707 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegisterGraphRequest>(
3708 &from);
3709 if (source == nullptr) {
3710 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RegisterGraphRequest)
3711 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3712 } else {
3713 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RegisterGraphRequest)
3714 MergeFrom(*source);
3715 }
3716}
3717
3718void RegisterGraphRequest::MergeFrom(const RegisterGraphRequest& from) {
3719// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RegisterGraphRequest)
3720 GOOGLE_DCHECK_NE(&from, this);
3721 _internal_metadata_.MergeFrom(from._internal_metadata_);
3722 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3723 (void) cached_has_bits;
3724
3725 if (from.session_handle().size() > 0) {
3726 set_session_handle(from.session_handle());
3727 }
3728 if (from.has_graph_def()) {
3729 mutable_graph_def()->::tensorflow::GraphDef::MergeFrom(from.graph_def());
3730 }
3731 if (from.has_graph_options()) {
3732 mutable_graph_options()->::tensorflow::GraphOptions::MergeFrom(from.graph_options());
3733 }
3734 if (from.has_debug_options()) {
3735 mutable_debug_options()->::tensorflow::DebugOptions::MergeFrom(from.debug_options());
3736 }
3737 if (from.has_config_proto()) {
3738 mutable_config_proto()->::tensorflow::ConfigProto::MergeFrom(from.config_proto());
3739 }
3740 if (from.collective_graph_key() != 0) {
3741 set_collective_graph_key(from.collective_graph_key());
3742 }
3743 if (from.create_worker_session_called() != 0) {
3744 set_create_worker_session_called(from.create_worker_session_called());
3745 }
3746 if (from.has_control_flow() != 0) {
3747 set_has_control_flow(from.has_control_flow());
3748 }
3749}
3750
3751void RegisterGraphRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3752// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RegisterGraphRequest)
3753 if (&from == this) return;
3754 Clear();
3755 MergeFrom(from);
3756}
3757
3758void RegisterGraphRequest::CopyFrom(const RegisterGraphRequest& from) {
3759// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RegisterGraphRequest)
3760 if (&from == this) return;
3761 Clear();
3762 MergeFrom(from);
3763}
3764
3765bool RegisterGraphRequest::IsInitialized() const {
3766 return true;
3767}
3768
3769void RegisterGraphRequest::InternalSwap(RegisterGraphRequest* other) {
3770 using std::swap;
3771 _internal_metadata_.Swap(&other->_internal_metadata_);
3772 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3773 GetArenaNoVirtual());
3774 swap(graph_def_, other->graph_def_);
3775 swap(graph_options_, other->graph_options_);
3776 swap(debug_options_, other->debug_options_);
3777 swap(config_proto_, other->config_proto_);
3778 swap(collective_graph_key_, other->collective_graph_key_);
3779 swap(create_worker_session_called_, other->create_worker_session_called_);
3780 swap(has_control_flow_, other->has_control_flow_);
3781}
3782
3783::PROTOBUF_NAMESPACE_ID::Metadata RegisterGraphRequest::GetMetadata() const {
3784 return GetMetadataStatic();
3785}
3786
3787
3788// ===================================================================
3789
3790void RegisterGraphResponse::InitAsDefaultInstance() {
3791}
3792class RegisterGraphResponse::_Internal {
3793 public:
3794};
3795
3796RegisterGraphResponse::RegisterGraphResponse()
3797 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3798 SharedCtor();
3799 // @@protoc_insertion_point(constructor:tensorflow.RegisterGraphResponse)
3800}
3801RegisterGraphResponse::RegisterGraphResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3802 : ::PROTOBUF_NAMESPACE_ID::Message(),
3803 _internal_metadata_(arena) {
3804 SharedCtor();
3805 RegisterArenaDtor(arena);
3806 // @@protoc_insertion_point(arena_constructor:tensorflow.RegisterGraphResponse)
3807}
3808RegisterGraphResponse::RegisterGraphResponse(const RegisterGraphResponse& from)
3809 : ::PROTOBUF_NAMESPACE_ID::Message(),
3810 _internal_metadata_(nullptr) {
3811 _internal_metadata_.MergeFrom(from._internal_metadata_);
3812 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3813 if (!from.graph_handle().empty()) {
3814 graph_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_handle(),
3815 GetArenaNoVirtual());
3816 }
3817 // @@protoc_insertion_point(copy_constructor:tensorflow.RegisterGraphResponse)
3818}
3819
3820void RegisterGraphResponse::SharedCtor() {
3821 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
3822 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3823}
3824
3825RegisterGraphResponse::~RegisterGraphResponse() {
3826 // @@protoc_insertion_point(destructor:tensorflow.RegisterGraphResponse)
3827 SharedDtor();
3828}
3829
3830void RegisterGraphResponse::SharedDtor() {
3831 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3832 graph_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3833}
3834
3835void RegisterGraphResponse::ArenaDtor(void* object) {
3836 RegisterGraphResponse* _this = reinterpret_cast< RegisterGraphResponse* >(object);
3837 (void)_this;
3838}
3839void RegisterGraphResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3840}
3841void RegisterGraphResponse::SetCachedSize(int size) const {
3842 _cached_size_.Set(size);
3843}
3844const RegisterGraphResponse& RegisterGraphResponse::default_instance() {
3845 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RegisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
3846 return *internal_default_instance();
3847}
3848
3849
3850void RegisterGraphResponse::Clear() {
3851// @@protoc_insertion_point(message_clear_start:tensorflow.RegisterGraphResponse)
3852 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3853 // Prevent compiler warnings about cached_has_bits being unused
3854 (void) cached_has_bits;
3855
3856 graph_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3857 _internal_metadata_.Clear();
3858}
3859
3860#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3861const char* RegisterGraphResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3862#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3863 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3864 while (!ctx->Done(&ptr)) {
3865 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3866 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3867 CHK_(ptr);
3868 switch (tag >> 3) {
3869 // string graph_handle = 1;
3870 case 1:
3871 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3872 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_handle(), ptr, ctx, "tensorflow.RegisterGraphResponse.graph_handle");
3873 CHK_(ptr);
3874 } else goto handle_unusual;
3875 continue;
3876 default: {
3877 handle_unusual:
3878 if ((tag & 7) == 4 || tag == 0) {
3879 ctx->SetLastTag(tag);
3880 goto success;
3881 }
3882 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3883 CHK_(ptr != nullptr);
3884 continue;
3885 }
3886 } // switch
3887 } // while
3888success:
3889 return ptr;
3890failure:
3891 ptr = nullptr;
3892 goto success;
3893#undef CHK_
3894}
3895#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3896bool RegisterGraphResponse::MergePartialFromCodedStream(
3897 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3898#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3899 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3900 // @@protoc_insertion_point(parse_start:tensorflow.RegisterGraphResponse)
3901 for (;;) {
3902 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3903 tag = p.first;
3904 if (!p.second) goto handle_unusual;
3905 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3906 // string graph_handle = 1;
3907 case 1: {
3908 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3909 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3910 input, this->mutable_graph_handle()));
3911 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3912 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
3913 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3914 "tensorflow.RegisterGraphResponse.graph_handle"));
3915 } else {
3916 goto handle_unusual;
3917 }
3918 break;
3919 }
3920
3921 default: {
3922 handle_unusual:
3923 if (tag == 0) {
3924 goto success;
3925 }
3926 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3927 input, tag, _internal_metadata_.mutable_unknown_fields()));
3928 break;
3929 }
3930 }
3931 }
3932success:
3933 // @@protoc_insertion_point(parse_success:tensorflow.RegisterGraphResponse)
3934 return true;
3935failure:
3936 // @@protoc_insertion_point(parse_failure:tensorflow.RegisterGraphResponse)
3937 return false;
3938#undef DO_
3939}
3940#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3941
3942void RegisterGraphResponse::SerializeWithCachedSizes(
3943 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3944 // @@protoc_insertion_point(serialize_start:tensorflow.RegisterGraphResponse)
3945 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3946 (void) cached_has_bits;
3947
3948 // string graph_handle = 1;
3949 if (this->graph_handle().size() > 0) {
3950 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3951 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
3952 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3953 "tensorflow.RegisterGraphResponse.graph_handle");
3954 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3955 1, this->graph_handle(), output);
3956 }
3957
3958 if (_internal_metadata_.have_unknown_fields()) {
3959 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3960 _internal_metadata_.unknown_fields(), output);
3961 }
3962 // @@protoc_insertion_point(serialize_end:tensorflow.RegisterGraphResponse)
3963}
3964
3965::PROTOBUF_NAMESPACE_ID::uint8* RegisterGraphResponse::InternalSerializeWithCachedSizesToArray(
3966 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3967 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RegisterGraphResponse)
3968 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3969 (void) cached_has_bits;
3970
3971 // string graph_handle = 1;
3972 if (this->graph_handle().size() > 0) {
3973 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3974 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
3975 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3976 "tensorflow.RegisterGraphResponse.graph_handle");
3977 target =
3978 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3979 1, this->graph_handle(), target);
3980 }
3981
3982 if (_internal_metadata_.have_unknown_fields()) {
3983 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3984 _internal_metadata_.unknown_fields(), target);
3985 }
3986 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RegisterGraphResponse)
3987 return target;
3988}
3989
3990size_t RegisterGraphResponse::ByteSizeLong() const {
3991// @@protoc_insertion_point(message_byte_size_start:tensorflow.RegisterGraphResponse)
3992 size_t total_size = 0;
3993
3994 if (_internal_metadata_.have_unknown_fields()) {
3995 total_size +=
3996 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3997 _internal_metadata_.unknown_fields());
3998 }
3999 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4000 // Prevent compiler warnings about cached_has_bits being unused
4001 (void) cached_has_bits;
4002
4003 // string graph_handle = 1;
4004 if (this->graph_handle().size() > 0) {
4005 total_size += 1 +
4006 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4007 this->graph_handle());
4008 }
4009
4010 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4011 SetCachedSize(cached_size);
4012 return total_size;
4013}
4014
4015void RegisterGraphResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4016// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RegisterGraphResponse)
4017 GOOGLE_DCHECK_NE(&from, this);
4018 const RegisterGraphResponse* source =
4019 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegisterGraphResponse>(
4020 &from);
4021 if (source == nullptr) {
4022 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RegisterGraphResponse)
4023 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4024 } else {
4025 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RegisterGraphResponse)
4026 MergeFrom(*source);
4027 }
4028}
4029
4030void RegisterGraphResponse::MergeFrom(const RegisterGraphResponse& from) {
4031// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RegisterGraphResponse)
4032 GOOGLE_DCHECK_NE(&from, this);
4033 _internal_metadata_.MergeFrom(from._internal_metadata_);
4034 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4035 (void) cached_has_bits;
4036
4037 if (from.graph_handle().size() > 0) {
4038 set_graph_handle(from.graph_handle());
4039 }
4040}
4041
4042void RegisterGraphResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4043// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RegisterGraphResponse)
4044 if (&from == this) return;
4045 Clear();
4046 MergeFrom(from);
4047}
4048
4049void RegisterGraphResponse::CopyFrom(const RegisterGraphResponse& from) {
4050// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RegisterGraphResponse)
4051 if (&from == this) return;
4052 Clear();
4053 MergeFrom(from);
4054}
4055
4056bool RegisterGraphResponse::IsInitialized() const {
4057 return true;
4058}
4059
4060void RegisterGraphResponse::InternalSwap(RegisterGraphResponse* other) {
4061 using std::swap;
4062 _internal_metadata_.Swap(&other->_internal_metadata_);
4063 graph_handle_.Swap(&other->graph_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4064 GetArenaNoVirtual());
4065}
4066
4067::PROTOBUF_NAMESPACE_ID::Metadata RegisterGraphResponse::GetMetadata() const {
4068 return GetMetadataStatic();
4069}
4070
4071
4072// ===================================================================
4073
4074void DeregisterGraphRequest::InitAsDefaultInstance() {
4075}
4076class DeregisterGraphRequest::_Internal {
4077 public:
4078};
4079
4080DeregisterGraphRequest::DeregisterGraphRequest()
4081 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4082 SharedCtor();
4083 // @@protoc_insertion_point(constructor:tensorflow.DeregisterGraphRequest)
4084}
4085DeregisterGraphRequest::DeregisterGraphRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4086 : ::PROTOBUF_NAMESPACE_ID::Message(),
4087 _internal_metadata_(arena) {
4088 SharedCtor();
4089 RegisterArenaDtor(arena);
4090 // @@protoc_insertion_point(arena_constructor:tensorflow.DeregisterGraphRequest)
4091}
4092DeregisterGraphRequest::DeregisterGraphRequest(const DeregisterGraphRequest& from)
4093 : ::PROTOBUF_NAMESPACE_ID::Message(),
4094 _internal_metadata_(nullptr) {
4095 _internal_metadata_.MergeFrom(from._internal_metadata_);
4096 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4097 if (!from.graph_handle().empty()) {
4098 graph_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_handle(),
4099 GetArenaNoVirtual());
4100 }
4101 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4102 if (!from.session_handle().empty()) {
4103 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
4104 GetArenaNoVirtual());
4105 }
4106 create_worker_session_called_ = from.create_worker_session_called_;
4107 // @@protoc_insertion_point(copy_constructor:tensorflow.DeregisterGraphRequest)
4108}
4109
4110void DeregisterGraphRequest::SharedCtor() {
4111 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
4112 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4113 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4114 create_worker_session_called_ = false;
4115}
4116
4117DeregisterGraphRequest::~DeregisterGraphRequest() {
4118 // @@protoc_insertion_point(destructor:tensorflow.DeregisterGraphRequest)
4119 SharedDtor();
4120}
4121
4122void DeregisterGraphRequest::SharedDtor() {
4123 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4124 graph_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4125 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4126}
4127
4128void DeregisterGraphRequest::ArenaDtor(void* object) {
4129 DeregisterGraphRequest* _this = reinterpret_cast< DeregisterGraphRequest* >(object);
4130 (void)_this;
4131}
4132void DeregisterGraphRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4133}
4134void DeregisterGraphRequest::SetCachedSize(int size) const {
4135 _cached_size_.Set(size);
4136}
4137const DeregisterGraphRequest& DeregisterGraphRequest::default_instance() {
4138 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeregisterGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
4139 return *internal_default_instance();
4140}
4141
4142
4143void DeregisterGraphRequest::Clear() {
4144// @@protoc_insertion_point(message_clear_start:tensorflow.DeregisterGraphRequest)
4145 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4146 // Prevent compiler warnings about cached_has_bits being unused
4147 (void) cached_has_bits;
4148
4149 graph_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4150 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4151 create_worker_session_called_ = false;
4152 _internal_metadata_.Clear();
4153}
4154
4155#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4156const char* DeregisterGraphRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4157#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4158 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4159 while (!ctx->Done(&ptr)) {
4160 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4161 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4162 CHK_(ptr);
4163 switch (tag >> 3) {
4164 // string graph_handle = 1;
4165 case 1:
4166 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4167 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_handle(), ptr, ctx, "tensorflow.DeregisterGraphRequest.graph_handle");
4168 CHK_(ptr);
4169 } else goto handle_unusual;
4170 continue;
4171 // string session_handle = 2;
4172 case 2:
4173 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4174 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.DeregisterGraphRequest.session_handle");
4175 CHK_(ptr);
4176 } else goto handle_unusual;
4177 continue;
4178 // bool create_worker_session_called = 3;
4179 case 3:
4180 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
4181 create_worker_session_called_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4182 CHK_(ptr);
4183 } else goto handle_unusual;
4184 continue;
4185 default: {
4186 handle_unusual:
4187 if ((tag & 7) == 4 || tag == 0) {
4188 ctx->SetLastTag(tag);
4189 goto success;
4190 }
4191 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4192 CHK_(ptr != nullptr);
4193 continue;
4194 }
4195 } // switch
4196 } // while
4197success:
4198 return ptr;
4199failure:
4200 ptr = nullptr;
4201 goto success;
4202#undef CHK_
4203}
4204#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4205bool DeregisterGraphRequest::MergePartialFromCodedStream(
4206 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4207#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4208 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4209 // @@protoc_insertion_point(parse_start:tensorflow.DeregisterGraphRequest)
4210 for (;;) {
4211 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4212 tag = p.first;
4213 if (!p.second) goto handle_unusual;
4214 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4215 // string graph_handle = 1;
4216 case 1: {
4217 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4218 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4219 input, this->mutable_graph_handle()));
4220 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4221 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
4222 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4223 "tensorflow.DeregisterGraphRequest.graph_handle"));
4224 } else {
4225 goto handle_unusual;
4226 }
4227 break;
4228 }
4229
4230 // string session_handle = 2;
4231 case 2: {
4232 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
4233 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4234 input, this->mutable_session_handle()));
4235 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4236 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4237 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4238 "tensorflow.DeregisterGraphRequest.session_handle"));
4239 } else {
4240 goto handle_unusual;
4241 }
4242 break;
4243 }
4244
4245 // bool create_worker_session_called = 3;
4246 case 3: {
4247 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
4248
4249 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4250 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
4251 input, &create_worker_session_called_)));
4252 } else {
4253 goto handle_unusual;
4254 }
4255 break;
4256 }
4257
4258 default: {
4259 handle_unusual:
4260 if (tag == 0) {
4261 goto success;
4262 }
4263 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4264 input, tag, _internal_metadata_.mutable_unknown_fields()));
4265 break;
4266 }
4267 }
4268 }
4269success:
4270 // @@protoc_insertion_point(parse_success:tensorflow.DeregisterGraphRequest)
4271 return true;
4272failure:
4273 // @@protoc_insertion_point(parse_failure:tensorflow.DeregisterGraphRequest)
4274 return false;
4275#undef DO_
4276}
4277#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4278
4279void DeregisterGraphRequest::SerializeWithCachedSizes(
4280 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4281 // @@protoc_insertion_point(serialize_start:tensorflow.DeregisterGraphRequest)
4282 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4283 (void) cached_has_bits;
4284
4285 // string graph_handle = 1;
4286 if (this->graph_handle().size() > 0) {
4287 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4288 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
4289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4290 "tensorflow.DeregisterGraphRequest.graph_handle");
4291 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4292 1, this->graph_handle(), output);
4293 }
4294
4295 // string session_handle = 2;
4296 if (this->session_handle().size() > 0) {
4297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4298 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4299 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4300 "tensorflow.DeregisterGraphRequest.session_handle");
4301 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4302 2, this->session_handle(), output);
4303 }
4304
4305 // bool create_worker_session_called = 3;
4306 if (this->create_worker_session_called() != 0) {
4307 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->create_worker_session_called(), output);
4308 }
4309
4310 if (_internal_metadata_.have_unknown_fields()) {
4311 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4312 _internal_metadata_.unknown_fields(), output);
4313 }
4314 // @@protoc_insertion_point(serialize_end:tensorflow.DeregisterGraphRequest)
4315}
4316
4317::PROTOBUF_NAMESPACE_ID::uint8* DeregisterGraphRequest::InternalSerializeWithCachedSizesToArray(
4318 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4319 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeregisterGraphRequest)
4320 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4321 (void) cached_has_bits;
4322
4323 // string graph_handle = 1;
4324 if (this->graph_handle().size() > 0) {
4325 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4326 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
4327 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4328 "tensorflow.DeregisterGraphRequest.graph_handle");
4329 target =
4330 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4331 1, this->graph_handle(), target);
4332 }
4333
4334 // string session_handle = 2;
4335 if (this->session_handle().size() > 0) {
4336 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4337 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4338 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4339 "tensorflow.DeregisterGraphRequest.session_handle");
4340 target =
4341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4342 2, this->session_handle(), target);
4343 }
4344
4345 // bool create_worker_session_called = 3;
4346 if (this->create_worker_session_called() != 0) {
4347 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->create_worker_session_called(), target);
4348 }
4349
4350 if (_internal_metadata_.have_unknown_fields()) {
4351 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4352 _internal_metadata_.unknown_fields(), target);
4353 }
4354 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeregisterGraphRequest)
4355 return target;
4356}
4357
4358size_t DeregisterGraphRequest::ByteSizeLong() const {
4359// @@protoc_insertion_point(message_byte_size_start:tensorflow.DeregisterGraphRequest)
4360 size_t total_size = 0;
4361
4362 if (_internal_metadata_.have_unknown_fields()) {
4363 total_size +=
4364 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4365 _internal_metadata_.unknown_fields());
4366 }
4367 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4368 // Prevent compiler warnings about cached_has_bits being unused
4369 (void) cached_has_bits;
4370
4371 // string graph_handle = 1;
4372 if (this->graph_handle().size() > 0) {
4373 total_size += 1 +
4374 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4375 this->graph_handle());
4376 }
4377
4378 // string session_handle = 2;
4379 if (this->session_handle().size() > 0) {
4380 total_size += 1 +
4381 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4382 this->session_handle());
4383 }
4384
4385 // bool create_worker_session_called = 3;
4386 if (this->create_worker_session_called() != 0) {
4387 total_size += 1 + 1;
4388 }
4389
4390 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4391 SetCachedSize(cached_size);
4392 return total_size;
4393}
4394
4395void DeregisterGraphRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4396// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeregisterGraphRequest)
4397 GOOGLE_DCHECK_NE(&from, this);
4398 const DeregisterGraphRequest* source =
4399 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeregisterGraphRequest>(
4400 &from);
4401 if (source == nullptr) {
4402 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeregisterGraphRequest)
4403 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4404 } else {
4405 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeregisterGraphRequest)
4406 MergeFrom(*source);
4407 }
4408}
4409
4410void DeregisterGraphRequest::MergeFrom(const DeregisterGraphRequest& from) {
4411// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeregisterGraphRequest)
4412 GOOGLE_DCHECK_NE(&from, this);
4413 _internal_metadata_.MergeFrom(from._internal_metadata_);
4414 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4415 (void) cached_has_bits;
4416
4417 if (from.graph_handle().size() > 0) {
4418 set_graph_handle(from.graph_handle());
4419 }
4420 if (from.session_handle().size() > 0) {
4421 set_session_handle(from.session_handle());
4422 }
4423 if (from.create_worker_session_called() != 0) {
4424 set_create_worker_session_called(from.create_worker_session_called());
4425 }
4426}
4427
4428void DeregisterGraphRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4429// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeregisterGraphRequest)
4430 if (&from == this) return;
4431 Clear();
4432 MergeFrom(from);
4433}
4434
4435void DeregisterGraphRequest::CopyFrom(const DeregisterGraphRequest& from) {
4436// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeregisterGraphRequest)
4437 if (&from == this) return;
4438 Clear();
4439 MergeFrom(from);
4440}
4441
4442bool DeregisterGraphRequest::IsInitialized() const {
4443 return true;
4444}
4445
4446void DeregisterGraphRequest::InternalSwap(DeregisterGraphRequest* other) {
4447 using std::swap;
4448 _internal_metadata_.Swap(&other->_internal_metadata_);
4449 graph_handle_.Swap(&other->graph_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4450 GetArenaNoVirtual());
4451 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4452 GetArenaNoVirtual());
4453 swap(create_worker_session_called_, other->create_worker_session_called_);
4454}
4455
4456::PROTOBUF_NAMESPACE_ID::Metadata DeregisterGraphRequest::GetMetadata() const {
4457 return GetMetadataStatic();
4458}
4459
4460
4461// ===================================================================
4462
4463void DeregisterGraphResponse::InitAsDefaultInstance() {
4464}
4465class DeregisterGraphResponse::_Internal {
4466 public:
4467};
4468
4469DeregisterGraphResponse::DeregisterGraphResponse()
4470 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4471 SharedCtor();
4472 // @@protoc_insertion_point(constructor:tensorflow.DeregisterGraphResponse)
4473}
4474DeregisterGraphResponse::DeregisterGraphResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4475 : ::PROTOBUF_NAMESPACE_ID::Message(),
4476 _internal_metadata_(arena) {
4477 SharedCtor();
4478 RegisterArenaDtor(arena);
4479 // @@protoc_insertion_point(arena_constructor:tensorflow.DeregisterGraphResponse)
4480}
4481DeregisterGraphResponse::DeregisterGraphResponse(const DeregisterGraphResponse& from)
4482 : ::PROTOBUF_NAMESPACE_ID::Message(),
4483 _internal_metadata_(nullptr) {
4484 _internal_metadata_.MergeFrom(from._internal_metadata_);
4485 // @@protoc_insertion_point(copy_constructor:tensorflow.DeregisterGraphResponse)
4486}
4487
4488void DeregisterGraphResponse::SharedCtor() {
4489}
4490
4491DeregisterGraphResponse::~DeregisterGraphResponse() {
4492 // @@protoc_insertion_point(destructor:tensorflow.DeregisterGraphResponse)
4493 SharedDtor();
4494}
4495
4496void DeregisterGraphResponse::SharedDtor() {
4497 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4498}
4499
4500void DeregisterGraphResponse::ArenaDtor(void* object) {
4501 DeregisterGraphResponse* _this = reinterpret_cast< DeregisterGraphResponse* >(object);
4502 (void)_this;
4503}
4504void DeregisterGraphResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4505}
4506void DeregisterGraphResponse::SetCachedSize(int size) const {
4507 _cached_size_.Set(size);
4508}
4509const DeregisterGraphResponse& DeregisterGraphResponse::default_instance() {
4510 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeregisterGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
4511 return *internal_default_instance();
4512}
4513
4514
4515void DeregisterGraphResponse::Clear() {
4516// @@protoc_insertion_point(message_clear_start:tensorflow.DeregisterGraphResponse)
4517 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4518 // Prevent compiler warnings about cached_has_bits being unused
4519 (void) cached_has_bits;
4520
4521 _internal_metadata_.Clear();
4522}
4523
4524#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4525const char* DeregisterGraphResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4526#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4527 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4528 while (!ctx->Done(&ptr)) {
4529 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4530 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4531 CHK_(ptr);
4532 switch (tag >> 3) {
4533 default: {
4534 if ((tag & 7) == 4 || tag == 0) {
4535 ctx->SetLastTag(tag);
4536 goto success;
4537 }
4538 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4539 CHK_(ptr != nullptr);
4540 continue;
4541 }
4542 } // switch
4543 } // while
4544success:
4545 return ptr;
4546failure:
4547 ptr = nullptr;
4548 goto success;
4549#undef CHK_
4550}
4551#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4552bool DeregisterGraphResponse::MergePartialFromCodedStream(
4553 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4554#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4555 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4556 // @@protoc_insertion_point(parse_start:tensorflow.DeregisterGraphResponse)
4557 for (;;) {
4558 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4559 tag = p.first;
4560 if (!p.second) goto handle_unusual;
4561 handle_unusual:
4562 if (tag == 0) {
4563 goto success;
4564 }
4565 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4566 input, tag, _internal_metadata_.mutable_unknown_fields()));
4567 }
4568success:
4569 // @@protoc_insertion_point(parse_success:tensorflow.DeregisterGraphResponse)
4570 return true;
4571failure:
4572 // @@protoc_insertion_point(parse_failure:tensorflow.DeregisterGraphResponse)
4573 return false;
4574#undef DO_
4575}
4576#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4577
4578void DeregisterGraphResponse::SerializeWithCachedSizes(
4579 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4580 // @@protoc_insertion_point(serialize_start:tensorflow.DeregisterGraphResponse)
4581 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4582 (void) cached_has_bits;
4583
4584 if (_internal_metadata_.have_unknown_fields()) {
4585 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4586 _internal_metadata_.unknown_fields(), output);
4587 }
4588 // @@protoc_insertion_point(serialize_end:tensorflow.DeregisterGraphResponse)
4589}
4590
4591::PROTOBUF_NAMESPACE_ID::uint8* DeregisterGraphResponse::InternalSerializeWithCachedSizesToArray(
4592 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4593 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeregisterGraphResponse)
4594 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4595 (void) cached_has_bits;
4596
4597 if (_internal_metadata_.have_unknown_fields()) {
4598 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4599 _internal_metadata_.unknown_fields(), target);
4600 }
4601 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeregisterGraphResponse)
4602 return target;
4603}
4604
4605size_t DeregisterGraphResponse::ByteSizeLong() const {
4606// @@protoc_insertion_point(message_byte_size_start:tensorflow.DeregisterGraphResponse)
4607 size_t total_size = 0;
4608
4609 if (_internal_metadata_.have_unknown_fields()) {
4610 total_size +=
4611 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4612 _internal_metadata_.unknown_fields());
4613 }
4614 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4615 // Prevent compiler warnings about cached_has_bits being unused
4616 (void) cached_has_bits;
4617
4618 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4619 SetCachedSize(cached_size);
4620 return total_size;
4621}
4622
4623void DeregisterGraphResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4624// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeregisterGraphResponse)
4625 GOOGLE_DCHECK_NE(&from, this);
4626 const DeregisterGraphResponse* source =
4627 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeregisterGraphResponse>(
4628 &from);
4629 if (source == nullptr) {
4630 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeregisterGraphResponse)
4631 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4632 } else {
4633 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeregisterGraphResponse)
4634 MergeFrom(*source);
4635 }
4636}
4637
4638void DeregisterGraphResponse::MergeFrom(const DeregisterGraphResponse& from) {
4639// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeregisterGraphResponse)
4640 GOOGLE_DCHECK_NE(&from, this);
4641 _internal_metadata_.MergeFrom(from._internal_metadata_);
4642 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4643 (void) cached_has_bits;
4644
4645}
4646
4647void DeregisterGraphResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4648// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeregisterGraphResponse)
4649 if (&from == this) return;
4650 Clear();
4651 MergeFrom(from);
4652}
4653
4654void DeregisterGraphResponse::CopyFrom(const DeregisterGraphResponse& from) {
4655// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeregisterGraphResponse)
4656 if (&from == this) return;
4657 Clear();
4658 MergeFrom(from);
4659}
4660
4661bool DeregisterGraphResponse::IsInitialized() const {
4662 return true;
4663}
4664
4665void DeregisterGraphResponse::InternalSwap(DeregisterGraphResponse* other) {
4666 using std::swap;
4667 _internal_metadata_.Swap(&other->_internal_metadata_);
4668}
4669
4670::PROTOBUF_NAMESPACE_ID::Metadata DeregisterGraphResponse::GetMetadata() const {
4671 return GetMetadataStatic();
4672}
4673
4674
4675// ===================================================================
4676
4677void CleanupAllRequest::InitAsDefaultInstance() {
4678}
4679class CleanupAllRequest::_Internal {
4680 public:
4681};
4682
4683CleanupAllRequest::CleanupAllRequest()
4684 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4685 SharedCtor();
4686 // @@protoc_insertion_point(constructor:tensorflow.CleanupAllRequest)
4687}
4688CleanupAllRequest::CleanupAllRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4689 : ::PROTOBUF_NAMESPACE_ID::Message(),
4690 _internal_metadata_(arena),
4691 container_(arena) {
4692 SharedCtor();
4693 RegisterArenaDtor(arena);
4694 // @@protoc_insertion_point(arena_constructor:tensorflow.CleanupAllRequest)
4695}
4696CleanupAllRequest::CleanupAllRequest(const CleanupAllRequest& from)
4697 : ::PROTOBUF_NAMESPACE_ID::Message(),
4698 _internal_metadata_(nullptr),
4699 container_(from.container_) {
4700 _internal_metadata_.MergeFrom(from._internal_metadata_);
4701 // @@protoc_insertion_point(copy_constructor:tensorflow.CleanupAllRequest)
4702}
4703
4704void CleanupAllRequest::SharedCtor() {
4705 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
4706}
4707
4708CleanupAllRequest::~CleanupAllRequest() {
4709 // @@protoc_insertion_point(destructor:tensorflow.CleanupAllRequest)
4710 SharedDtor();
4711}
4712
4713void CleanupAllRequest::SharedDtor() {
4714 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4715}
4716
4717void CleanupAllRequest::ArenaDtor(void* object) {
4718 CleanupAllRequest* _this = reinterpret_cast< CleanupAllRequest* >(object);
4719 (void)_this;
4720}
4721void CleanupAllRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4722}
4723void CleanupAllRequest::SetCachedSize(int size) const {
4724 _cached_size_.Set(size);
4725}
4726const CleanupAllRequest& CleanupAllRequest::default_instance() {
4727 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanupAllRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
4728 return *internal_default_instance();
4729}
4730
4731
4732void CleanupAllRequest::Clear() {
4733// @@protoc_insertion_point(message_clear_start:tensorflow.CleanupAllRequest)
4734 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4735 // Prevent compiler warnings about cached_has_bits being unused
4736 (void) cached_has_bits;
4737
4738 container_.Clear();
4739 _internal_metadata_.Clear();
4740}
4741
4742#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4743const char* CleanupAllRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4744#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4745 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4746 while (!ctx->Done(&ptr)) {
4747 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4748 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4749 CHK_(ptr);
4750 switch (tag >> 3) {
4751 // repeated string container = 1;
4752 case 1:
4753 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4754 ptr -= 1;
4755 do {
4756 ptr += 1;
4757 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_container(), ptr, ctx, "tensorflow.CleanupAllRequest.container");
4758 CHK_(ptr);
4759 if (!ctx->DataAvailable(ptr)) break;
4760 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
4761 } else goto handle_unusual;
4762 continue;
4763 default: {
4764 handle_unusual:
4765 if ((tag & 7) == 4 || tag == 0) {
4766 ctx->SetLastTag(tag);
4767 goto success;
4768 }
4769 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4770 CHK_(ptr != nullptr);
4771 continue;
4772 }
4773 } // switch
4774 } // while
4775success:
4776 return ptr;
4777failure:
4778 ptr = nullptr;
4779 goto success;
4780#undef CHK_
4781}
4782#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4783bool CleanupAllRequest::MergePartialFromCodedStream(
4784 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4785#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4786 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4787 // @@protoc_insertion_point(parse_start:tensorflow.CleanupAllRequest)
4788 for (;;) {
4789 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4790 tag = p.first;
4791 if (!p.second) goto handle_unusual;
4792 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4793 // repeated string container = 1;
4794 case 1: {
4795 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4796 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4797 input, this->add_container()));
4798 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4799 this->container(this->container_size() - 1).data(),
4800 static_cast<int>(this->container(this->container_size() - 1).length()),
4801 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4802 "tensorflow.CleanupAllRequest.container"));
4803 } else {
4804 goto handle_unusual;
4805 }
4806 break;
4807 }
4808
4809 default: {
4810 handle_unusual:
4811 if (tag == 0) {
4812 goto success;
4813 }
4814 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4815 input, tag, _internal_metadata_.mutable_unknown_fields()));
4816 break;
4817 }
4818 }
4819 }
4820success:
4821 // @@protoc_insertion_point(parse_success:tensorflow.CleanupAllRequest)
4822 return true;
4823failure:
4824 // @@protoc_insertion_point(parse_failure:tensorflow.CleanupAllRequest)
4825 return false;
4826#undef DO_
4827}
4828#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4829
4830void CleanupAllRequest::SerializeWithCachedSizes(
4831 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4832 // @@protoc_insertion_point(serialize_start:tensorflow.CleanupAllRequest)
4833 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4834 (void) cached_has_bits;
4835
4836 // repeated string container = 1;
4837 for (int i = 0, n = this->container_size(); i < n; i++) {
4838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4839 this->container(i).data(), static_cast<int>(this->container(i).length()),
4840 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4841 "tensorflow.CleanupAllRequest.container");
4842 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
4843 1, this->container(i), output);
4844 }
4845
4846 if (_internal_metadata_.have_unknown_fields()) {
4847 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4848 _internal_metadata_.unknown_fields(), output);
4849 }
4850 // @@protoc_insertion_point(serialize_end:tensorflow.CleanupAllRequest)
4851}
4852
4853::PROTOBUF_NAMESPACE_ID::uint8* CleanupAllRequest::InternalSerializeWithCachedSizesToArray(
4854 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4855 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CleanupAllRequest)
4856 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4857 (void) cached_has_bits;
4858
4859 // repeated string container = 1;
4860 for (int i = 0, n = this->container_size(); i < n; i++) {
4861 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4862 this->container(i).data(), static_cast<int>(this->container(i).length()),
4863 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4864 "tensorflow.CleanupAllRequest.container");
4865 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4866 WriteStringToArray(1, this->container(i), target);
4867 }
4868
4869 if (_internal_metadata_.have_unknown_fields()) {
4870 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4871 _internal_metadata_.unknown_fields(), target);
4872 }
4873 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CleanupAllRequest)
4874 return target;
4875}
4876
4877size_t CleanupAllRequest::ByteSizeLong() const {
4878// @@protoc_insertion_point(message_byte_size_start:tensorflow.CleanupAllRequest)
4879 size_t total_size = 0;
4880
4881 if (_internal_metadata_.have_unknown_fields()) {
4882 total_size +=
4883 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4884 _internal_metadata_.unknown_fields());
4885 }
4886 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4887 // Prevent compiler warnings about cached_has_bits being unused
4888 (void) cached_has_bits;
4889
4890 // repeated string container = 1;
4891 total_size += 1 *
4892 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->container_size());
4893 for (int i = 0, n = this->container_size(); i < n; i++) {
4894 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4895 this->container(i));
4896 }
4897
4898 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4899 SetCachedSize(cached_size);
4900 return total_size;
4901}
4902
4903void CleanupAllRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4904// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CleanupAllRequest)
4905 GOOGLE_DCHECK_NE(&from, this);
4906 const CleanupAllRequest* source =
4907 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CleanupAllRequest>(
4908 &from);
4909 if (source == nullptr) {
4910 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CleanupAllRequest)
4911 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4912 } else {
4913 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CleanupAllRequest)
4914 MergeFrom(*source);
4915 }
4916}
4917
4918void CleanupAllRequest::MergeFrom(const CleanupAllRequest& from) {
4919// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CleanupAllRequest)
4920 GOOGLE_DCHECK_NE(&from, this);
4921 _internal_metadata_.MergeFrom(from._internal_metadata_);
4922 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4923 (void) cached_has_bits;
4924
4925 container_.MergeFrom(from.container_);
4926}
4927
4928void CleanupAllRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4929// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CleanupAllRequest)
4930 if (&from == this) return;
4931 Clear();
4932 MergeFrom(from);
4933}
4934
4935void CleanupAllRequest::CopyFrom(const CleanupAllRequest& from) {
4936// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CleanupAllRequest)
4937 if (&from == this) return;
4938 Clear();
4939 MergeFrom(from);
4940}
4941
4942bool CleanupAllRequest::IsInitialized() const {
4943 return true;
4944}
4945
4946void CleanupAllRequest::InternalSwap(CleanupAllRequest* other) {
4947 using std::swap;
4948 _internal_metadata_.Swap(&other->_internal_metadata_);
4949 container_.InternalSwap(CastToBase(&other->container_));
4950}
4951
4952::PROTOBUF_NAMESPACE_ID::Metadata CleanupAllRequest::GetMetadata() const {
4953 return GetMetadataStatic();
4954}
4955
4956
4957// ===================================================================
4958
4959void CleanupAllResponse::InitAsDefaultInstance() {
4960}
4961class CleanupAllResponse::_Internal {
4962 public:
4963};
4964
4965CleanupAllResponse::CleanupAllResponse()
4966 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4967 SharedCtor();
4968 // @@protoc_insertion_point(constructor:tensorflow.CleanupAllResponse)
4969}
4970CleanupAllResponse::CleanupAllResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4971 : ::PROTOBUF_NAMESPACE_ID::Message(),
4972 _internal_metadata_(arena) {
4973 SharedCtor();
4974 RegisterArenaDtor(arena);
4975 // @@protoc_insertion_point(arena_constructor:tensorflow.CleanupAllResponse)
4976}
4977CleanupAllResponse::CleanupAllResponse(const CleanupAllResponse& from)
4978 : ::PROTOBUF_NAMESPACE_ID::Message(),
4979 _internal_metadata_(nullptr) {
4980 _internal_metadata_.MergeFrom(from._internal_metadata_);
4981 // @@protoc_insertion_point(copy_constructor:tensorflow.CleanupAllResponse)
4982}
4983
4984void CleanupAllResponse::SharedCtor() {
4985}
4986
4987CleanupAllResponse::~CleanupAllResponse() {
4988 // @@protoc_insertion_point(destructor:tensorflow.CleanupAllResponse)
4989 SharedDtor();
4990}
4991
4992void CleanupAllResponse::SharedDtor() {
4993 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4994}
4995
4996void CleanupAllResponse::ArenaDtor(void* object) {
4997 CleanupAllResponse* _this = reinterpret_cast< CleanupAllResponse* >(object);
4998 (void)_this;
4999}
5000void CleanupAllResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5001}
5002void CleanupAllResponse::SetCachedSize(int size) const {
5003 _cached_size_.Set(size);
5004}
5005const CleanupAllResponse& CleanupAllResponse::default_instance() {
5006 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanupAllResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
5007 return *internal_default_instance();
5008}
5009
5010
5011void CleanupAllResponse::Clear() {
5012// @@protoc_insertion_point(message_clear_start:tensorflow.CleanupAllResponse)
5013 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5014 // Prevent compiler warnings about cached_has_bits being unused
5015 (void) cached_has_bits;
5016
5017 _internal_metadata_.Clear();
5018}
5019
5020#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5021const char* CleanupAllResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5022#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5023 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5024 while (!ctx->Done(&ptr)) {
5025 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5026 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5027 CHK_(ptr);
5028 switch (tag >> 3) {
5029 default: {
5030 if ((tag & 7) == 4 || tag == 0) {
5031 ctx->SetLastTag(tag);
5032 goto success;
5033 }
5034 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5035 CHK_(ptr != nullptr);
5036 continue;
5037 }
5038 } // switch
5039 } // while
5040success:
5041 return ptr;
5042failure:
5043 ptr = nullptr;
5044 goto success;
5045#undef CHK_
5046}
5047#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5048bool CleanupAllResponse::MergePartialFromCodedStream(
5049 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5050#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5051 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5052 // @@protoc_insertion_point(parse_start:tensorflow.CleanupAllResponse)
5053 for (;;) {
5054 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5055 tag = p.first;
5056 if (!p.second) goto handle_unusual;
5057 handle_unusual:
5058 if (tag == 0) {
5059 goto success;
5060 }
5061 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5062 input, tag, _internal_metadata_.mutable_unknown_fields()));
5063 }
5064success:
5065 // @@protoc_insertion_point(parse_success:tensorflow.CleanupAllResponse)
5066 return true;
5067failure:
5068 // @@protoc_insertion_point(parse_failure:tensorflow.CleanupAllResponse)
5069 return false;
5070#undef DO_
5071}
5072#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5073
5074void CleanupAllResponse::SerializeWithCachedSizes(
5075 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5076 // @@protoc_insertion_point(serialize_start:tensorflow.CleanupAllResponse)
5077 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5078 (void) cached_has_bits;
5079
5080 if (_internal_metadata_.have_unknown_fields()) {
5081 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5082 _internal_metadata_.unknown_fields(), output);
5083 }
5084 // @@protoc_insertion_point(serialize_end:tensorflow.CleanupAllResponse)
5085}
5086
5087::PROTOBUF_NAMESPACE_ID::uint8* CleanupAllResponse::InternalSerializeWithCachedSizesToArray(
5088 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5089 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CleanupAllResponse)
5090 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5091 (void) cached_has_bits;
5092
5093 if (_internal_metadata_.have_unknown_fields()) {
5094 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5095 _internal_metadata_.unknown_fields(), target);
5096 }
5097 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CleanupAllResponse)
5098 return target;
5099}
5100
5101size_t CleanupAllResponse::ByteSizeLong() const {
5102// @@protoc_insertion_point(message_byte_size_start:tensorflow.CleanupAllResponse)
5103 size_t total_size = 0;
5104
5105 if (_internal_metadata_.have_unknown_fields()) {
5106 total_size +=
5107 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5108 _internal_metadata_.unknown_fields());
5109 }
5110 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5111 // Prevent compiler warnings about cached_has_bits being unused
5112 (void) cached_has_bits;
5113
5114 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5115 SetCachedSize(cached_size);
5116 return total_size;
5117}
5118
5119void CleanupAllResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5120// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CleanupAllResponse)
5121 GOOGLE_DCHECK_NE(&from, this);
5122 const CleanupAllResponse* source =
5123 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CleanupAllResponse>(
5124 &from);
5125 if (source == nullptr) {
5126 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CleanupAllResponse)
5127 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5128 } else {
5129 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CleanupAllResponse)
5130 MergeFrom(*source);
5131 }
5132}
5133
5134void CleanupAllResponse::MergeFrom(const CleanupAllResponse& from) {
5135// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CleanupAllResponse)
5136 GOOGLE_DCHECK_NE(&from, this);
5137 _internal_metadata_.MergeFrom(from._internal_metadata_);
5138 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5139 (void) cached_has_bits;
5140
5141}
5142
5143void CleanupAllResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5144// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CleanupAllResponse)
5145 if (&from == this) return;
5146 Clear();
5147 MergeFrom(from);
5148}
5149
5150void CleanupAllResponse::CopyFrom(const CleanupAllResponse& from) {
5151// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CleanupAllResponse)
5152 if (&from == this) return;
5153 Clear();
5154 MergeFrom(from);
5155}
5156
5157bool CleanupAllResponse::IsInitialized() const {
5158 return true;
5159}
5160
5161void CleanupAllResponse::InternalSwap(CleanupAllResponse* other) {
5162 using std::swap;
5163 _internal_metadata_.Swap(&other->_internal_metadata_);
5164}
5165
5166::PROTOBUF_NAMESPACE_ID::Metadata CleanupAllResponse::GetMetadata() const {
5167 return GetMetadataStatic();
5168}
5169
5170
5171// ===================================================================
5172
5173void ExecutorOpts::InitAsDefaultInstance() {
5174}
5175class ExecutorOpts::_Internal {
5176 public:
5177};
5178
5179ExecutorOpts::ExecutorOpts()
5180 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5181 SharedCtor();
5182 // @@protoc_insertion_point(constructor:tensorflow.ExecutorOpts)
5183}
5184ExecutorOpts::ExecutorOpts(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5185 : ::PROTOBUF_NAMESPACE_ID::Message(),
5186 _internal_metadata_(arena) {
5187 SharedCtor();
5188 RegisterArenaDtor(arena);
5189 // @@protoc_insertion_point(arena_constructor:tensorflow.ExecutorOpts)
5190}
5191ExecutorOpts::ExecutorOpts(const ExecutorOpts& from)
5192 : ::PROTOBUF_NAMESPACE_ID::Message(),
5193 _internal_metadata_(nullptr) {
5194 _internal_metadata_.MergeFrom(from._internal_metadata_);
5195 ::memcpy(&record_costs_, &from.record_costs_,
5196 static_cast<size_t>(reinterpret_cast<char*>(&report_tensor_allocations_upon_oom_) -
5197 reinterpret_cast<char*>(&record_costs_)) + sizeof(report_tensor_allocations_upon_oom_));
5198 // @@protoc_insertion_point(copy_constructor:tensorflow.ExecutorOpts)
5199}
5200
5201void ExecutorOpts::SharedCtor() {
5202 ::memset(&record_costs_, 0, static_cast<size_t>(
5203 reinterpret_cast<char*>(&report_tensor_allocations_upon_oom_) -
5204 reinterpret_cast<char*>(&record_costs_)) + sizeof(report_tensor_allocations_upon_oom_));
5205}
5206
5207ExecutorOpts::~ExecutorOpts() {
5208 // @@protoc_insertion_point(destructor:tensorflow.ExecutorOpts)
5209 SharedDtor();
5210}
5211
5212void ExecutorOpts::SharedDtor() {
5213 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5214}
5215
5216void ExecutorOpts::ArenaDtor(void* object) {
5217 ExecutorOpts* _this = reinterpret_cast< ExecutorOpts* >(object);
5218 (void)_this;
5219}
5220void ExecutorOpts::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5221}
5222void ExecutorOpts::SetCachedSize(int size) const {
5223 _cached_size_.Set(size);
5224}
5225const ExecutorOpts& ExecutorOpts::default_instance() {
5226 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecutorOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
5227 return *internal_default_instance();
5228}
5229
5230
5231void ExecutorOpts::Clear() {
5232// @@protoc_insertion_point(message_clear_start:tensorflow.ExecutorOpts)
5233 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5234 // Prevent compiler warnings about cached_has_bits being unused
5235 (void) cached_has_bits;
5236
5237 ::memset(&record_costs_, 0, static_cast<size_t>(
5238 reinterpret_cast<char*>(&report_tensor_allocations_upon_oom_) -
5239 reinterpret_cast<char*>(&record_costs_)) + sizeof(report_tensor_allocations_upon_oom_));
5240 _internal_metadata_.Clear();
5241}
5242
5243#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5244const char* ExecutorOpts::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5245#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5246 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5247 while (!ctx->Done(&ptr)) {
5248 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5249 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5250 CHK_(ptr);
5251 switch (tag >> 3) {
5252 // bool record_costs = 1;
5253 case 1:
5254 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
5255 record_costs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5256 CHK_(ptr);
5257 } else goto handle_unusual;
5258 continue;
5259 // bool record_timeline = 3;
5260 case 3:
5261 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
5262 record_timeline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5263 CHK_(ptr);
5264 } else goto handle_unusual;
5265 continue;
5266 // bool record_partition_graphs = 4;
5267 case 4:
5268 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
5269 record_partition_graphs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5270 CHK_(ptr);
5271 } else goto handle_unusual;
5272 continue;
5273 // bool report_tensor_allocations_upon_oom = 5;
5274 case 5:
5275 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
5276 report_tensor_allocations_upon_oom_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5277 CHK_(ptr);
5278 } else goto handle_unusual;
5279 continue;
5280 default: {
5281 handle_unusual:
5282 if ((tag & 7) == 4 || tag == 0) {
5283 ctx->SetLastTag(tag);
5284 goto success;
5285 }
5286 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5287 CHK_(ptr != nullptr);
5288 continue;
5289 }
5290 } // switch
5291 } // while
5292success:
5293 return ptr;
5294failure:
5295 ptr = nullptr;
5296 goto success;
5297#undef CHK_
5298}
5299#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5300bool ExecutorOpts::MergePartialFromCodedStream(
5301 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5302#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5303 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5304 // @@protoc_insertion_point(parse_start:tensorflow.ExecutorOpts)
5305 for (;;) {
5306 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5307 tag = p.first;
5308 if (!p.second) goto handle_unusual;
5309 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5310 // bool record_costs = 1;
5311 case 1: {
5312 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
5313
5314 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5315 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5316 input, &record_costs_)));
5317 } else {
5318 goto handle_unusual;
5319 }
5320 break;
5321 }
5322
5323 // bool record_timeline = 3;
5324 case 3: {
5325 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
5326
5327 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5328 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5329 input, &record_timeline_)));
5330 } else {
5331 goto handle_unusual;
5332 }
5333 break;
5334 }
5335
5336 // bool record_partition_graphs = 4;
5337 case 4: {
5338 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
5339
5340 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5341 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5342 input, &record_partition_graphs_)));
5343 } else {
5344 goto handle_unusual;
5345 }
5346 break;
5347 }
5348
5349 // bool report_tensor_allocations_upon_oom = 5;
5350 case 5: {
5351 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
5352
5353 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5354 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5355 input, &report_tensor_allocations_upon_oom_)));
5356 } else {
5357 goto handle_unusual;
5358 }
5359 break;
5360 }
5361
5362 default: {
5363 handle_unusual:
5364 if (tag == 0) {
5365 goto success;
5366 }
5367 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5368 input, tag, _internal_metadata_.mutable_unknown_fields()));
5369 break;
5370 }
5371 }
5372 }
5373success:
5374 // @@protoc_insertion_point(parse_success:tensorflow.ExecutorOpts)
5375 return true;
5376failure:
5377 // @@protoc_insertion_point(parse_failure:tensorflow.ExecutorOpts)
5378 return false;
5379#undef DO_
5380}
5381#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5382
5383void ExecutorOpts::SerializeWithCachedSizes(
5384 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5385 // @@protoc_insertion_point(serialize_start:tensorflow.ExecutorOpts)
5386 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5387 (void) cached_has_bits;
5388
5389 // bool record_costs = 1;
5390 if (this->record_costs() != 0) {
5391 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1, this->record_costs(), output);
5392 }
5393
5394 // bool record_timeline = 3;
5395 if (this->record_timeline() != 0) {
5396 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->record_timeline(), output);
5397 }
5398
5399 // bool record_partition_graphs = 4;
5400 if (this->record_partition_graphs() != 0) {
5401 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->record_partition_graphs(), output);
5402 }
5403
5404 // bool report_tensor_allocations_upon_oom = 5;
5405 if (this->report_tensor_allocations_upon_oom() != 0) {
5406 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->report_tensor_allocations_upon_oom(), output);
5407 }
5408
5409 if (_internal_metadata_.have_unknown_fields()) {
5410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5411 _internal_metadata_.unknown_fields(), output);
5412 }
5413 // @@protoc_insertion_point(serialize_end:tensorflow.ExecutorOpts)
5414}
5415
5416::PROTOBUF_NAMESPACE_ID::uint8* ExecutorOpts::InternalSerializeWithCachedSizesToArray(
5417 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5418 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ExecutorOpts)
5419 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5420 (void) cached_has_bits;
5421
5422 // bool record_costs = 1;
5423 if (this->record_costs() != 0) {
5424 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->record_costs(), target);
5425 }
5426
5427 // bool record_timeline = 3;
5428 if (this->record_timeline() != 0) {
5429 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->record_timeline(), target);
5430 }
5431
5432 // bool record_partition_graphs = 4;
5433 if (this->record_partition_graphs() != 0) {
5434 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->record_partition_graphs(), target);
5435 }
5436
5437 // bool report_tensor_allocations_upon_oom = 5;
5438 if (this->report_tensor_allocations_upon_oom() != 0) {
5439 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->report_tensor_allocations_upon_oom(), target);
5440 }
5441
5442 if (_internal_metadata_.have_unknown_fields()) {
5443 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5444 _internal_metadata_.unknown_fields(), target);
5445 }
5446 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ExecutorOpts)
5447 return target;
5448}
5449
5450size_t ExecutorOpts::ByteSizeLong() const {
5451// @@protoc_insertion_point(message_byte_size_start:tensorflow.ExecutorOpts)
5452 size_t total_size = 0;
5453
5454 if (_internal_metadata_.have_unknown_fields()) {
5455 total_size +=
5456 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5457 _internal_metadata_.unknown_fields());
5458 }
5459 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5460 // Prevent compiler warnings about cached_has_bits being unused
5461 (void) cached_has_bits;
5462
5463 // bool record_costs = 1;
5464 if (this->record_costs() != 0) {
5465 total_size += 1 + 1;
5466 }
5467
5468 // bool record_timeline = 3;
5469 if (this->record_timeline() != 0) {
5470 total_size += 1 + 1;
5471 }
5472
5473 // bool record_partition_graphs = 4;
5474 if (this->record_partition_graphs() != 0) {
5475 total_size += 1 + 1;
5476 }
5477
5478 // bool report_tensor_allocations_upon_oom = 5;
5479 if (this->report_tensor_allocations_upon_oom() != 0) {
5480 total_size += 1 + 1;
5481 }
5482
5483 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5484 SetCachedSize(cached_size);
5485 return total_size;
5486}
5487
5488void ExecutorOpts::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5489// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ExecutorOpts)
5490 GOOGLE_DCHECK_NE(&from, this);
5491 const ExecutorOpts* source =
5492 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExecutorOpts>(
5493 &from);
5494 if (source == nullptr) {
5495 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ExecutorOpts)
5496 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5497 } else {
5498 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ExecutorOpts)
5499 MergeFrom(*source);
5500 }
5501}
5502
5503void ExecutorOpts::MergeFrom(const ExecutorOpts& from) {
5504// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ExecutorOpts)
5505 GOOGLE_DCHECK_NE(&from, this);
5506 _internal_metadata_.MergeFrom(from._internal_metadata_);
5507 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5508 (void) cached_has_bits;
5509
5510 if (from.record_costs() != 0) {
5511 set_record_costs(from.record_costs());
5512 }
5513 if (from.record_timeline() != 0) {
5514 set_record_timeline(from.record_timeline());
5515 }
5516 if (from.record_partition_graphs() != 0) {
5517 set_record_partition_graphs(from.record_partition_graphs());
5518 }
5519 if (from.report_tensor_allocations_upon_oom() != 0) {
5520 set_report_tensor_allocations_upon_oom(from.report_tensor_allocations_upon_oom());
5521 }
5522}
5523
5524void ExecutorOpts::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5525// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ExecutorOpts)
5526 if (&from == this) return;
5527 Clear();
5528 MergeFrom(from);
5529}
5530
5531void ExecutorOpts::CopyFrom(const ExecutorOpts& from) {
5532// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ExecutorOpts)
5533 if (&from == this) return;
5534 Clear();
5535 MergeFrom(from);
5536}
5537
5538bool ExecutorOpts::IsInitialized() const {
5539 return true;
5540}
5541
5542void ExecutorOpts::InternalSwap(ExecutorOpts* other) {
5543 using std::swap;
5544 _internal_metadata_.Swap(&other->_internal_metadata_);
5545 swap(record_costs_, other->record_costs_);
5546 swap(record_timeline_, other->record_timeline_);
5547 swap(record_partition_graphs_, other->record_partition_graphs_);
5548 swap(report_tensor_allocations_upon_oom_, other->report_tensor_allocations_upon_oom_);
5549}
5550
5551::PROTOBUF_NAMESPACE_ID::Metadata ExecutorOpts::GetMetadata() const {
5552 return GetMetadataStatic();
5553}
5554
5555
5556// ===================================================================
5557
5558void RunGraphRequest::InitAsDefaultInstance() {
5559 ::tensorflow::_RunGraphRequest_default_instance_._instance.get_mutable()->exec_opts_ = const_cast< ::tensorflow::ExecutorOpts*>(
5560 ::tensorflow::ExecutorOpts::internal_default_instance());
5561}
5562class RunGraphRequest::_Internal {
5563 public:
5564 static const ::tensorflow::ExecutorOpts& exec_opts(const RunGraphRequest* msg);
5565};
5566
5567const ::tensorflow::ExecutorOpts&
5568RunGraphRequest::_Internal::exec_opts(const RunGraphRequest* msg) {
5569 return *msg->exec_opts_;
5570}
5571void RunGraphRequest::unsafe_arena_set_allocated_exec_opts(
5572 ::tensorflow::ExecutorOpts* exec_opts) {
5573 if (GetArenaNoVirtual() == nullptr) {
5574 delete exec_opts_;
5575 }
5576 exec_opts_ = exec_opts;
5577 if (exec_opts) {
5578
5579 } else {
5580
5581 }
5582 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunGraphRequest.exec_opts)
5583}
5584void RunGraphRequest::clear_send() {
5585 send_.Clear();
5586}
5587RunGraphRequest::RunGraphRequest()
5588 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5589 SharedCtor();
5590 // @@protoc_insertion_point(constructor:tensorflow.RunGraphRequest)
5591}
5592RunGraphRequest::RunGraphRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5593 : ::PROTOBUF_NAMESPACE_ID::Message(),
5594 _internal_metadata_(arena),
5595 send_(arena),
5596 recv_key_(arena) {
5597 SharedCtor();
5598 RegisterArenaDtor(arena);
5599 // @@protoc_insertion_point(arena_constructor:tensorflow.RunGraphRequest)
5600}
5601RunGraphRequest::RunGraphRequest(const RunGraphRequest& from)
5602 : ::PROTOBUF_NAMESPACE_ID::Message(),
5603 _internal_metadata_(nullptr),
5604 send_(from.send_),
5605 recv_key_(from.recv_key_) {
5606 _internal_metadata_.MergeFrom(from._internal_metadata_);
5607 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5608 if (!from.graph_handle().empty()) {
5609 graph_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_handle(),
5610 GetArenaNoVirtual());
5611 }
5612 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5613 if (!from.session_handle().empty()) {
5614 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
5615 GetArenaNoVirtual());
5616 }
5617 if (from.has_exec_opts()) {
5618 exec_opts_ = new ::tensorflow::ExecutorOpts(*from.exec_opts_);
5619 } else {
5620 exec_opts_ = nullptr;
5621 }
5622 ::memcpy(&step_id_, &from.step_id_,
5623 static_cast<size_t>(reinterpret_cast<char*>(&store_errors_in_response_body_) -
5624 reinterpret_cast<char*>(&step_id_)) + sizeof(store_errors_in_response_body_));
5625 // @@protoc_insertion_point(copy_constructor:tensorflow.RunGraphRequest)
5626}
5627
5628void RunGraphRequest::SharedCtor() {
5629 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
5630 graph_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5631 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5632 ::memset(&exec_opts_, 0, static_cast<size_t>(
5633 reinterpret_cast<char*>(&store_errors_in_response_body_) -
5634 reinterpret_cast<char*>(&exec_opts_)) + sizeof(store_errors_in_response_body_));
5635}
5636
5637RunGraphRequest::~RunGraphRequest() {
5638 // @@protoc_insertion_point(destructor:tensorflow.RunGraphRequest)
5639 SharedDtor();
5640}
5641
5642void RunGraphRequest::SharedDtor() {
5643 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5644 graph_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5645 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5646 if (this != internal_default_instance()) delete exec_opts_;
5647}
5648
5649void RunGraphRequest::ArenaDtor(void* object) {
5650 RunGraphRequest* _this = reinterpret_cast< RunGraphRequest* >(object);
5651 (void)_this;
5652}
5653void RunGraphRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5654}
5655void RunGraphRequest::SetCachedSize(int size) const {
5656 _cached_size_.Set(size);
5657}
5658const RunGraphRequest& RunGraphRequest::default_instance() {
5659 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
5660 return *internal_default_instance();
5661}
5662
5663
5664void RunGraphRequest::Clear() {
5665// @@protoc_insertion_point(message_clear_start:tensorflow.RunGraphRequest)
5666 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5667 // Prevent compiler warnings about cached_has_bits being unused
5668 (void) cached_has_bits;
5669
5670 send_.Clear();
5671 recv_key_.Clear();
5672 graph_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5673 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5674 if (GetArenaNoVirtual() == nullptr && exec_opts_ != nullptr) {
5675 delete exec_opts_;
5676 }
5677 exec_opts_ = nullptr;
5678 ::memset(&step_id_, 0, static_cast<size_t>(
5679 reinterpret_cast<char*>(&store_errors_in_response_body_) -
5680 reinterpret_cast<char*>(&step_id_)) + sizeof(store_errors_in_response_body_));
5681 _internal_metadata_.Clear();
5682}
5683
5684#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5685const char* RunGraphRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5686#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5687 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5688 while (!ctx->Done(&ptr)) {
5689 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5690 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5691 CHK_(ptr);
5692 switch (tag >> 3) {
5693 // string graph_handle = 1;
5694 case 1:
5695 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5696 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_handle(), ptr, ctx, "tensorflow.RunGraphRequest.graph_handle");
5697 CHK_(ptr);
5698 } else goto handle_unusual;
5699 continue;
5700 // int64 step_id = 2;
5701 case 2:
5702 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
5703 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5704 CHK_(ptr);
5705 } else goto handle_unusual;
5706 continue;
5707 // repeated .tensorflow.NamedTensorProto send = 3;
5708 case 3:
5709 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
5710 ptr -= 1;
5711 do {
5712 ptr += 1;
5713 ptr = ctx->ParseMessage(add_send(), ptr);
5714 CHK_(ptr);
5715 if (!ctx->DataAvailable(ptr)) break;
5716 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
5717 } else goto handle_unusual;
5718 continue;
5719 // repeated string recv_key = 4;
5720 case 4:
5721 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
5722 ptr -= 1;
5723 do {
5724 ptr += 1;
5725 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_recv_key(), ptr, ctx, "tensorflow.RunGraphRequest.recv_key");
5726 CHK_(ptr);
5727 if (!ctx->DataAvailable(ptr)) break;
5728 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
5729 } else goto handle_unusual;
5730 continue;
5731 // .tensorflow.ExecutorOpts exec_opts = 5;
5732 case 5:
5733 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
5734 ptr = ctx->ParseMessage(mutable_exec_opts(), ptr);
5735 CHK_(ptr);
5736 } else goto handle_unusual;
5737 continue;
5738 // bool is_partial = 6;
5739 case 6:
5740 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
5741 is_partial_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5742 CHK_(ptr);
5743 } else goto handle_unusual;
5744 continue;
5745 // bool is_last_partial_run = 7;
5746 case 7:
5747 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
5748 is_last_partial_run_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5749 CHK_(ptr);
5750 } else goto handle_unusual;
5751 continue;
5752 // string session_handle = 8;
5753 case 8:
5754 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
5755 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.RunGraphRequest.session_handle");
5756 CHK_(ptr);
5757 } else goto handle_unusual;
5758 continue;
5759 // bool store_errors_in_response_body = 9;
5760 case 9:
5761 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
5762 store_errors_in_response_body_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5763 CHK_(ptr);
5764 } else goto handle_unusual;
5765 continue;
5766 // bool create_worker_session_called = 10;
5767 case 10:
5768 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
5769 create_worker_session_called_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5770 CHK_(ptr);
5771 } else goto handle_unusual;
5772 continue;
5773 // int64 request_id = 11;
5774 case 11:
5775 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
5776 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5777 CHK_(ptr);
5778 } else goto handle_unusual;
5779 continue;
5780 default: {
5781 handle_unusual:
5782 if ((tag & 7) == 4 || tag == 0) {
5783 ctx->SetLastTag(tag);
5784 goto success;
5785 }
5786 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5787 CHK_(ptr != nullptr);
5788 continue;
5789 }
5790 } // switch
5791 } // while
5792success:
5793 return ptr;
5794failure:
5795 ptr = nullptr;
5796 goto success;
5797#undef CHK_
5798}
5799#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5800bool RunGraphRequest::MergePartialFromCodedStream(
5801 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5802#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5803 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5804 // @@protoc_insertion_point(parse_start:tensorflow.RunGraphRequest)
5805 for (;;) {
5806 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5807 tag = p.first;
5808 if (!p.second) goto handle_unusual;
5809 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5810 // string graph_handle = 1;
5811 case 1: {
5812 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5813 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5814 input, this->mutable_graph_handle()));
5815 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5816 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
5817 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5818 "tensorflow.RunGraphRequest.graph_handle"));
5819 } else {
5820 goto handle_unusual;
5821 }
5822 break;
5823 }
5824
5825 // int64 step_id = 2;
5826 case 2: {
5827 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
5828
5829 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5830 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5831 input, &step_id_)));
5832 } else {
5833 goto handle_unusual;
5834 }
5835 break;
5836 }
5837
5838 // repeated .tensorflow.NamedTensorProto send = 3;
5839 case 3: {
5840 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
5841 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5842 input, add_send()));
5843 } else {
5844 goto handle_unusual;
5845 }
5846 break;
5847 }
5848
5849 // repeated string recv_key = 4;
5850 case 4: {
5851 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
5852 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5853 input, this->add_recv_key()));
5854 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5855 this->recv_key(this->recv_key_size() - 1).data(),
5856 static_cast<int>(this->recv_key(this->recv_key_size() - 1).length()),
5857 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5858 "tensorflow.RunGraphRequest.recv_key"));
5859 } else {
5860 goto handle_unusual;
5861 }
5862 break;
5863 }
5864
5865 // .tensorflow.ExecutorOpts exec_opts = 5;
5866 case 5: {
5867 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
5868 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5869 input, mutable_exec_opts()));
5870 } else {
5871 goto handle_unusual;
5872 }
5873 break;
5874 }
5875
5876 // bool is_partial = 6;
5877 case 6: {
5878 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
5879
5880 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5881 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5882 input, &is_partial_)));
5883 } else {
5884 goto handle_unusual;
5885 }
5886 break;
5887 }
5888
5889 // bool is_last_partial_run = 7;
5890 case 7: {
5891 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
5892
5893 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5894 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5895 input, &is_last_partial_run_)));
5896 } else {
5897 goto handle_unusual;
5898 }
5899 break;
5900 }
5901
5902 // string session_handle = 8;
5903 case 8: {
5904 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
5905 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5906 input, this->mutable_session_handle()));
5907 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5908 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
5909 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5910 "tensorflow.RunGraphRequest.session_handle"));
5911 } else {
5912 goto handle_unusual;
5913 }
5914 break;
5915 }
5916
5917 // bool store_errors_in_response_body = 9;
5918 case 9: {
5919 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
5920
5921 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5922 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5923 input, &store_errors_in_response_body_)));
5924 } else {
5925 goto handle_unusual;
5926 }
5927 break;
5928 }
5929
5930 // bool create_worker_session_called = 10;
5931 case 10: {
5932 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
5933
5934 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5935 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
5936 input, &create_worker_session_called_)));
5937 } else {
5938 goto handle_unusual;
5939 }
5940 break;
5941 }
5942
5943 // int64 request_id = 11;
5944 case 11: {
5945 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
5946
5947 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5948 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5949 input, &request_id_)));
5950 } else {
5951 goto handle_unusual;
5952 }
5953 break;
5954 }
5955
5956 default: {
5957 handle_unusual:
5958 if (tag == 0) {
5959 goto success;
5960 }
5961 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5962 input, tag, _internal_metadata_.mutable_unknown_fields()));
5963 break;
5964 }
5965 }
5966 }
5967success:
5968 // @@protoc_insertion_point(parse_success:tensorflow.RunGraphRequest)
5969 return true;
5970failure:
5971 // @@protoc_insertion_point(parse_failure:tensorflow.RunGraphRequest)
5972 return false;
5973#undef DO_
5974}
5975#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5976
5977void RunGraphRequest::SerializeWithCachedSizes(
5978 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5979 // @@protoc_insertion_point(serialize_start:tensorflow.RunGraphRequest)
5980 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5981 (void) cached_has_bits;
5982
5983 // string graph_handle = 1;
5984 if (this->graph_handle().size() > 0) {
5985 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5986 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
5987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5988 "tensorflow.RunGraphRequest.graph_handle");
5989 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5990 1, this->graph_handle(), output);
5991 }
5992
5993 // int64 step_id = 2;
5994 if (this->step_id() != 0) {
5995 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->step_id(), output);
5996 }
5997
5998 // repeated .tensorflow.NamedTensorProto send = 3;
5999 for (unsigned int i = 0,
6000 n = static_cast<unsigned int>(this->send_size()); i < n; i++) {
6001 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6002 3,
6003 this->send(static_cast<int>(i)),
6004 output);
6005 }
6006
6007 // repeated string recv_key = 4;
6008 for (int i = 0, n = this->recv_key_size(); i < n; i++) {
6009 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6010 this->recv_key(i).data(), static_cast<int>(this->recv_key(i).length()),
6011 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6012 "tensorflow.RunGraphRequest.recv_key");
6013 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
6014 4, this->recv_key(i), output);
6015 }
6016
6017 // .tensorflow.ExecutorOpts exec_opts = 5;
6018 if (this->has_exec_opts()) {
6019 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6020 5, _Internal::exec_opts(this), output);
6021 }
6022
6023 // bool is_partial = 6;
6024 if (this->is_partial() != 0) {
6025 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(6, this->is_partial(), output);
6026 }
6027
6028 // bool is_last_partial_run = 7;
6029 if (this->is_last_partial_run() != 0) {
6030 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->is_last_partial_run(), output);
6031 }
6032
6033 // string session_handle = 8;
6034 if (this->session_handle().size() > 0) {
6035 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6036 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6037 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6038 "tensorflow.RunGraphRequest.session_handle");
6039 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6040 8, this->session_handle(), output);
6041 }
6042
6043 // bool store_errors_in_response_body = 9;
6044 if (this->store_errors_in_response_body() != 0) {
6045 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(9, this->store_errors_in_response_body(), output);
6046 }
6047
6048 // bool create_worker_session_called = 10;
6049 if (this->create_worker_session_called() != 0) {
6050 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(10, this->create_worker_session_called(), output);
6051 }
6052
6053 // int64 request_id = 11;
6054 if (this->request_id() != 0) {
6055 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(11, this->request_id(), output);
6056 }
6057
6058 if (_internal_metadata_.have_unknown_fields()) {
6059 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6060 _internal_metadata_.unknown_fields(), output);
6061 }
6062 // @@protoc_insertion_point(serialize_end:tensorflow.RunGraphRequest)
6063}
6064
6065::PROTOBUF_NAMESPACE_ID::uint8* RunGraphRequest::InternalSerializeWithCachedSizesToArray(
6066 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6067 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunGraphRequest)
6068 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6069 (void) cached_has_bits;
6070
6071 // string graph_handle = 1;
6072 if (this->graph_handle().size() > 0) {
6073 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6074 this->graph_handle().data(), static_cast<int>(this->graph_handle().length()),
6075 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6076 "tensorflow.RunGraphRequest.graph_handle");
6077 target =
6078 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6079 1, this->graph_handle(), target);
6080 }
6081
6082 // int64 step_id = 2;
6083 if (this->step_id() != 0) {
6084 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->step_id(), target);
6085 }
6086
6087 // repeated .tensorflow.NamedTensorProto send = 3;
6088 for (unsigned int i = 0,
6089 n = static_cast<unsigned int>(this->send_size()); i < n; i++) {
6090 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6091 InternalWriteMessageToArray(
6092 3, this->send(static_cast<int>(i)), target);
6093 }
6094
6095 // repeated string recv_key = 4;
6096 for (int i = 0, n = this->recv_key_size(); i < n; i++) {
6097 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6098 this->recv_key(i).data(), static_cast<int>(this->recv_key(i).length()),
6099 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6100 "tensorflow.RunGraphRequest.recv_key");
6101 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6102 WriteStringToArray(4, this->recv_key(i), target);
6103 }
6104
6105 // .tensorflow.ExecutorOpts exec_opts = 5;
6106 if (this->has_exec_opts()) {
6107 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6108 InternalWriteMessageToArray(
6109 5, _Internal::exec_opts(this), target);
6110 }
6111
6112 // bool is_partial = 6;
6113 if (this->is_partial() != 0) {
6114 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->is_partial(), target);
6115 }
6116
6117 // bool is_last_partial_run = 7;
6118 if (this->is_last_partial_run() != 0) {
6119 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->is_last_partial_run(), target);
6120 }
6121
6122 // string session_handle = 8;
6123 if (this->session_handle().size() > 0) {
6124 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6125 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6126 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6127 "tensorflow.RunGraphRequest.session_handle");
6128 target =
6129 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6130 8, this->session_handle(), target);
6131 }
6132
6133 // bool store_errors_in_response_body = 9;
6134 if (this->store_errors_in_response_body() != 0) {
6135 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->store_errors_in_response_body(), target);
6136 }
6137
6138 // bool create_worker_session_called = 10;
6139 if (this->create_worker_session_called() != 0) {
6140 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->create_worker_session_called(), target);
6141 }
6142
6143 // int64 request_id = 11;
6144 if (this->request_id() != 0) {
6145 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->request_id(), target);
6146 }
6147
6148 if (_internal_metadata_.have_unknown_fields()) {
6149 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6150 _internal_metadata_.unknown_fields(), target);
6151 }
6152 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunGraphRequest)
6153 return target;
6154}
6155
6156size_t RunGraphRequest::ByteSizeLong() const {
6157// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunGraphRequest)
6158 size_t total_size = 0;
6159
6160 if (_internal_metadata_.have_unknown_fields()) {
6161 total_size +=
6162 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6163 _internal_metadata_.unknown_fields());
6164 }
6165 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6166 // Prevent compiler warnings about cached_has_bits being unused
6167 (void) cached_has_bits;
6168
6169 // repeated .tensorflow.NamedTensorProto send = 3;
6170 {
6171 unsigned int count = static_cast<unsigned int>(this->send_size());
6172 total_size += 1UL * count;
6173 for (unsigned int i = 0; i < count; i++) {
6174 total_size +=
6175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6176 this->send(static_cast<int>(i)));
6177 }
6178 }
6179
6180 // repeated string recv_key = 4;
6181 total_size += 1 *
6182 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->recv_key_size());
6183 for (int i = 0, n = this->recv_key_size(); i < n; i++) {
6184 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6185 this->recv_key(i));
6186 }
6187
6188 // string graph_handle = 1;
6189 if (this->graph_handle().size() > 0) {
6190 total_size += 1 +
6191 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6192 this->graph_handle());
6193 }
6194
6195 // string session_handle = 8;
6196 if (this->session_handle().size() > 0) {
6197 total_size += 1 +
6198 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6199 this->session_handle());
6200 }
6201
6202 // .tensorflow.ExecutorOpts exec_opts = 5;
6203 if (this->has_exec_opts()) {
6204 total_size += 1 +
6205 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6206 *exec_opts_);
6207 }
6208
6209 // int64 step_id = 2;
6210 if (this->step_id() != 0) {
6211 total_size += 1 +
6212 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6213 this->step_id());
6214 }
6215
6216 // int64 request_id = 11;
6217 if (this->request_id() != 0) {
6218 total_size += 1 +
6219 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6220 this->request_id());
6221 }
6222
6223 // bool create_worker_session_called = 10;
6224 if (this->create_worker_session_called() != 0) {
6225 total_size += 1 + 1;
6226 }
6227
6228 // bool is_partial = 6;
6229 if (this->is_partial() != 0) {
6230 total_size += 1 + 1;
6231 }
6232
6233 // bool is_last_partial_run = 7;
6234 if (this->is_last_partial_run() != 0) {
6235 total_size += 1 + 1;
6236 }
6237
6238 // bool store_errors_in_response_body = 9;
6239 if (this->store_errors_in_response_body() != 0) {
6240 total_size += 1 + 1;
6241 }
6242
6243 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6244 SetCachedSize(cached_size);
6245 return total_size;
6246}
6247
6248void RunGraphRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6249// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunGraphRequest)
6250 GOOGLE_DCHECK_NE(&from, this);
6251 const RunGraphRequest* source =
6252 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunGraphRequest>(
6253 &from);
6254 if (source == nullptr) {
6255 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunGraphRequest)
6256 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6257 } else {
6258 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunGraphRequest)
6259 MergeFrom(*source);
6260 }
6261}
6262
6263void RunGraphRequest::MergeFrom(const RunGraphRequest& from) {
6264// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunGraphRequest)
6265 GOOGLE_DCHECK_NE(&from, this);
6266 _internal_metadata_.MergeFrom(from._internal_metadata_);
6267 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6268 (void) cached_has_bits;
6269
6270 send_.MergeFrom(from.send_);
6271 recv_key_.MergeFrom(from.recv_key_);
6272 if (from.graph_handle().size() > 0) {
6273 set_graph_handle(from.graph_handle());
6274 }
6275 if (from.session_handle().size() > 0) {
6276 set_session_handle(from.session_handle());
6277 }
6278 if (from.has_exec_opts()) {
6279 mutable_exec_opts()->::tensorflow::ExecutorOpts::MergeFrom(from.exec_opts());
6280 }
6281 if (from.step_id() != 0) {
6282 set_step_id(from.step_id());
6283 }
6284 if (from.request_id() != 0) {
6285 set_request_id(from.request_id());
6286 }
6287 if (from.create_worker_session_called() != 0) {
6288 set_create_worker_session_called(from.create_worker_session_called());
6289 }
6290 if (from.is_partial() != 0) {
6291 set_is_partial(from.is_partial());
6292 }
6293 if (from.is_last_partial_run() != 0) {
6294 set_is_last_partial_run(from.is_last_partial_run());
6295 }
6296 if (from.store_errors_in_response_body() != 0) {
6297 set_store_errors_in_response_body(from.store_errors_in_response_body());
6298 }
6299}
6300
6301void RunGraphRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6302// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunGraphRequest)
6303 if (&from == this) return;
6304 Clear();
6305 MergeFrom(from);
6306}
6307
6308void RunGraphRequest::CopyFrom(const RunGraphRequest& from) {
6309// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunGraphRequest)
6310 if (&from == this) return;
6311 Clear();
6312 MergeFrom(from);
6313}
6314
6315bool RunGraphRequest::IsInitialized() const {
6316 return true;
6317}
6318
6319void RunGraphRequest::InternalSwap(RunGraphRequest* other) {
6320 using std::swap;
6321 _internal_metadata_.Swap(&other->_internal_metadata_);
6322 CastToBase(&send_)->InternalSwap(CastToBase(&other->send_));
6323 recv_key_.InternalSwap(CastToBase(&other->recv_key_));
6324 graph_handle_.Swap(&other->graph_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6325 GetArenaNoVirtual());
6326 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6327 GetArenaNoVirtual());
6328 swap(exec_opts_, other->exec_opts_);
6329 swap(step_id_, other->step_id_);
6330 swap(request_id_, other->request_id_);
6331 swap(create_worker_session_called_, other->create_worker_session_called_);
6332 swap(is_partial_, other->is_partial_);
6333 swap(is_last_partial_run_, other->is_last_partial_run_);
6334 swap(store_errors_in_response_body_, other->store_errors_in_response_body_);
6335}
6336
6337::PROTOBUF_NAMESPACE_ID::Metadata RunGraphRequest::GetMetadata() const {
6338 return GetMetadataStatic();
6339}
6340
6341
6342// ===================================================================
6343
6344void RunGraphResponse::InitAsDefaultInstance() {
6345 ::tensorflow::_RunGraphResponse_default_instance_._instance.get_mutable()->step_stats_ = const_cast< ::tensorflow::StepStats*>(
6346 ::tensorflow::StepStats::internal_default_instance());
6347 ::tensorflow::_RunGraphResponse_default_instance_._instance.get_mutable()->cost_graph_ = const_cast< ::tensorflow::CostGraphDef*>(
6348 ::tensorflow::CostGraphDef::internal_default_instance());
6349}
6350class RunGraphResponse::_Internal {
6351 public:
6352 static const ::tensorflow::StepStats& step_stats(const RunGraphResponse* msg);
6353 static const ::tensorflow::CostGraphDef& cost_graph(const RunGraphResponse* msg);
6354};
6355
6356const ::tensorflow::StepStats&
6357RunGraphResponse::_Internal::step_stats(const RunGraphResponse* msg) {
6358 return *msg->step_stats_;
6359}
6360const ::tensorflow::CostGraphDef&
6361RunGraphResponse::_Internal::cost_graph(const RunGraphResponse* msg) {
6362 return *msg->cost_graph_;
6363}
6364void RunGraphResponse::clear_recv() {
6365 recv_.Clear();
6366}
6367void RunGraphResponse::unsafe_arena_set_allocated_step_stats(
6368 ::tensorflow::StepStats* step_stats) {
6369 if (GetArenaNoVirtual() == nullptr) {
6370 delete step_stats_;
6371 }
6372 step_stats_ = step_stats;
6373 if (step_stats) {
6374
6375 } else {
6376
6377 }
6378 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunGraphResponse.step_stats)
6379}
6380void RunGraphResponse::clear_step_stats() {
6381 if (GetArenaNoVirtual() == nullptr && step_stats_ != nullptr) {
6382 delete step_stats_;
6383 }
6384 step_stats_ = nullptr;
6385}
6386void RunGraphResponse::unsafe_arena_set_allocated_cost_graph(
6387 ::tensorflow::CostGraphDef* cost_graph) {
6388 if (GetArenaNoVirtual() == nullptr) {
6389 delete cost_graph_;
6390 }
6391 cost_graph_ = cost_graph;
6392 if (cost_graph) {
6393
6394 } else {
6395
6396 }
6397 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunGraphResponse.cost_graph)
6398}
6399void RunGraphResponse::clear_cost_graph() {
6400 if (GetArenaNoVirtual() == nullptr && cost_graph_ != nullptr) {
6401 delete cost_graph_;
6402 }
6403 cost_graph_ = nullptr;
6404}
6405void RunGraphResponse::clear_partition_graph() {
6406 partition_graph_.Clear();
6407}
6408RunGraphResponse::RunGraphResponse()
6409 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6410 SharedCtor();
6411 // @@protoc_insertion_point(constructor:tensorflow.RunGraphResponse)
6412}
6413RunGraphResponse::RunGraphResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6414 : ::PROTOBUF_NAMESPACE_ID::Message(),
6415 _internal_metadata_(arena),
6416 recv_(arena),
6417 partition_graph_(arena) {
6418 SharedCtor();
6419 RegisterArenaDtor(arena);
6420 // @@protoc_insertion_point(arena_constructor:tensorflow.RunGraphResponse)
6421}
6422RunGraphResponse::RunGraphResponse(const RunGraphResponse& from)
6423 : ::PROTOBUF_NAMESPACE_ID::Message(),
6424 _internal_metadata_(nullptr),
6425 recv_(from.recv_),
6426 partition_graph_(from.partition_graph_) {
6427 _internal_metadata_.MergeFrom(from._internal_metadata_);
6428 status_error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6429 if (!from.status_error_message().empty()) {
6430 status_error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.status_error_message(),
6431 GetArenaNoVirtual());
6432 }
6433 if (from.has_step_stats()) {
6434 step_stats_ = new ::tensorflow::StepStats(*from.step_stats_);
6435 } else {
6436 step_stats_ = nullptr;
6437 }
6438 if (from.has_cost_graph()) {
6439 cost_graph_ = new ::tensorflow::CostGraphDef(*from.cost_graph_);
6440 } else {
6441 cost_graph_ = nullptr;
6442 }
6443 status_code_ = from.status_code_;
6444 // @@protoc_insertion_point(copy_constructor:tensorflow.RunGraphResponse)
6445}
6446
6447void RunGraphResponse::SharedCtor() {
6448 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
6449 status_error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6450 ::memset(&step_stats_, 0, static_cast<size_t>(
6451 reinterpret_cast<char*>(&status_code_) -
6452 reinterpret_cast<char*>(&step_stats_)) + sizeof(status_code_));
6453}
6454
6455RunGraphResponse::~RunGraphResponse() {
6456 // @@protoc_insertion_point(destructor:tensorflow.RunGraphResponse)
6457 SharedDtor();
6458}
6459
6460void RunGraphResponse::SharedDtor() {
6461 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6462 status_error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6463 if (this != internal_default_instance()) delete step_stats_;
6464 if (this != internal_default_instance()) delete cost_graph_;
6465}
6466
6467void RunGraphResponse::ArenaDtor(void* object) {
6468 RunGraphResponse* _this = reinterpret_cast< RunGraphResponse* >(object);
6469 (void)_this;
6470}
6471void RunGraphResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6472}
6473void RunGraphResponse::SetCachedSize(int size) const {
6474 _cached_size_.Set(size);
6475}
6476const RunGraphResponse& RunGraphResponse::default_instance() {
6477 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
6478 return *internal_default_instance();
6479}
6480
6481
6482void RunGraphResponse::Clear() {
6483// @@protoc_insertion_point(message_clear_start:tensorflow.RunGraphResponse)
6484 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6485 // Prevent compiler warnings about cached_has_bits being unused
6486 (void) cached_has_bits;
6487
6488 recv_.Clear();
6489 partition_graph_.Clear();
6490 status_error_message_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
6491 if (GetArenaNoVirtual() == nullptr && step_stats_ != nullptr) {
6492 delete step_stats_;
6493 }
6494 step_stats_ = nullptr;
6495 if (GetArenaNoVirtual() == nullptr && cost_graph_ != nullptr) {
6496 delete cost_graph_;
6497 }
6498 cost_graph_ = nullptr;
6499 status_code_ = 0;
6500 _internal_metadata_.Clear();
6501}
6502
6503#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6504const char* RunGraphResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6505#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6506 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6507 while (!ctx->Done(&ptr)) {
6508 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6509 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6510 CHK_(ptr);
6511 switch (tag >> 3) {
6512 // repeated .tensorflow.NamedTensorProto recv = 1;
6513 case 1:
6514 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6515 ptr -= 1;
6516 do {
6517 ptr += 1;
6518 ptr = ctx->ParseMessage(add_recv(), ptr);
6519 CHK_(ptr);
6520 if (!ctx->DataAvailable(ptr)) break;
6521 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
6522 } else goto handle_unusual;
6523 continue;
6524 // .tensorflow.StepStats step_stats = 2;
6525 case 2:
6526 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
6527 ptr = ctx->ParseMessage(mutable_step_stats(), ptr);
6528 CHK_(ptr);
6529 } else goto handle_unusual;
6530 continue;
6531 // .tensorflow.CostGraphDef cost_graph = 3;
6532 case 3:
6533 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6534 ptr = ctx->ParseMessage(mutable_cost_graph(), ptr);
6535 CHK_(ptr);
6536 } else goto handle_unusual;
6537 continue;
6538 // repeated .tensorflow.GraphDef partition_graph = 4;
6539 case 4:
6540 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
6541 ptr -= 1;
6542 do {
6543 ptr += 1;
6544 ptr = ctx->ParseMessage(add_partition_graph(), ptr);
6545 CHK_(ptr);
6546 if (!ctx->DataAvailable(ptr)) break;
6547 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
6548 } else goto handle_unusual;
6549 continue;
6550 // .tensorflow.error.Code status_code = 5;
6551 case 5:
6552 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
6553 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6554 CHK_(ptr);
6555 set_status_code(static_cast<::tensorflow::error::Code>(val));
6556 } else goto handle_unusual;
6557 continue;
6558 // string status_error_message = 6;
6559 case 6:
6560 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
6561 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_status_error_message(), ptr, ctx, "tensorflow.RunGraphResponse.status_error_message");
6562 CHK_(ptr);
6563 } else goto handle_unusual;
6564 continue;
6565 default: {
6566 handle_unusual:
6567 if ((tag & 7) == 4 || tag == 0) {
6568 ctx->SetLastTag(tag);
6569 goto success;
6570 }
6571 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6572 CHK_(ptr != nullptr);
6573 continue;
6574 }
6575 } // switch
6576 } // while
6577success:
6578 return ptr;
6579failure:
6580 ptr = nullptr;
6581 goto success;
6582#undef CHK_
6583}
6584#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6585bool RunGraphResponse::MergePartialFromCodedStream(
6586 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6587#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6588 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6589 // @@protoc_insertion_point(parse_start:tensorflow.RunGraphResponse)
6590 for (;;) {
6591 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6592 tag = p.first;
6593 if (!p.second) goto handle_unusual;
6594 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6595 // repeated .tensorflow.NamedTensorProto recv = 1;
6596 case 1: {
6597 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
6598 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6599 input, add_recv()));
6600 } else {
6601 goto handle_unusual;
6602 }
6603 break;
6604 }
6605
6606 // .tensorflow.StepStats step_stats = 2;
6607 case 2: {
6608 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
6609 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6610 input, mutable_step_stats()));
6611 } else {
6612 goto handle_unusual;
6613 }
6614 break;
6615 }
6616
6617 // .tensorflow.CostGraphDef cost_graph = 3;
6618 case 3: {
6619 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
6620 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6621 input, mutable_cost_graph()));
6622 } else {
6623 goto handle_unusual;
6624 }
6625 break;
6626 }
6627
6628 // repeated .tensorflow.GraphDef partition_graph = 4;
6629 case 4: {
6630 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
6631 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6632 input, add_partition_graph()));
6633 } else {
6634 goto handle_unusual;
6635 }
6636 break;
6637 }
6638
6639 // .tensorflow.error.Code status_code = 5;
6640 case 5: {
6641 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
6642 int value = 0;
6643 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6644 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
6645 input, &value)));
6646 set_status_code(static_cast< ::tensorflow::error::Code >(value));
6647 } else {
6648 goto handle_unusual;
6649 }
6650 break;
6651 }
6652
6653 // string status_error_message = 6;
6654 case 6: {
6655 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
6656 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
6657 input, this->mutable_status_error_message()));
6658 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6659 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
6660 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
6661 "tensorflow.RunGraphResponse.status_error_message"));
6662 } else {
6663 goto handle_unusual;
6664 }
6665 break;
6666 }
6667
6668 default: {
6669 handle_unusual:
6670 if (tag == 0) {
6671 goto success;
6672 }
6673 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6674 input, tag, _internal_metadata_.mutable_unknown_fields()));
6675 break;
6676 }
6677 }
6678 }
6679success:
6680 // @@protoc_insertion_point(parse_success:tensorflow.RunGraphResponse)
6681 return true;
6682failure:
6683 // @@protoc_insertion_point(parse_failure:tensorflow.RunGraphResponse)
6684 return false;
6685#undef DO_
6686}
6687#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6688
6689void RunGraphResponse::SerializeWithCachedSizes(
6690 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6691 // @@protoc_insertion_point(serialize_start:tensorflow.RunGraphResponse)
6692 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6693 (void) cached_has_bits;
6694
6695 // repeated .tensorflow.NamedTensorProto recv = 1;
6696 for (unsigned int i = 0,
6697 n = static_cast<unsigned int>(this->recv_size()); i < n; i++) {
6698 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6699 1,
6700 this->recv(static_cast<int>(i)),
6701 output);
6702 }
6703
6704 // .tensorflow.StepStats step_stats = 2;
6705 if (this->has_step_stats()) {
6706 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6707 2, _Internal::step_stats(this), output);
6708 }
6709
6710 // .tensorflow.CostGraphDef cost_graph = 3;
6711 if (this->has_cost_graph()) {
6712 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6713 3, _Internal::cost_graph(this), output);
6714 }
6715
6716 // repeated .tensorflow.GraphDef partition_graph = 4;
6717 for (unsigned int i = 0,
6718 n = static_cast<unsigned int>(this->partition_graph_size()); i < n; i++) {
6719 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6720 4,
6721 this->partition_graph(static_cast<int>(i)),
6722 output);
6723 }
6724
6725 // .tensorflow.error.Code status_code = 5;
6726 if (this->status_code() != 0) {
6727 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
6728 5, this->status_code(), output);
6729 }
6730
6731 // string status_error_message = 6;
6732 if (this->status_error_message().size() > 0) {
6733 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6734 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
6735 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6736 "tensorflow.RunGraphResponse.status_error_message");
6737 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6738 6, this->status_error_message(), output);
6739 }
6740
6741 if (_internal_metadata_.have_unknown_fields()) {
6742 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6743 _internal_metadata_.unknown_fields(), output);
6744 }
6745 // @@protoc_insertion_point(serialize_end:tensorflow.RunGraphResponse)
6746}
6747
6748::PROTOBUF_NAMESPACE_ID::uint8* RunGraphResponse::InternalSerializeWithCachedSizesToArray(
6749 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6750 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunGraphResponse)
6751 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6752 (void) cached_has_bits;
6753
6754 // repeated .tensorflow.NamedTensorProto recv = 1;
6755 for (unsigned int i = 0,
6756 n = static_cast<unsigned int>(this->recv_size()); i < n; i++) {
6757 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6758 InternalWriteMessageToArray(
6759 1, this->recv(static_cast<int>(i)), target);
6760 }
6761
6762 // .tensorflow.StepStats step_stats = 2;
6763 if (this->has_step_stats()) {
6764 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6765 InternalWriteMessageToArray(
6766 2, _Internal::step_stats(this), target);
6767 }
6768
6769 // .tensorflow.CostGraphDef cost_graph = 3;
6770 if (this->has_cost_graph()) {
6771 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6772 InternalWriteMessageToArray(
6773 3, _Internal::cost_graph(this), target);
6774 }
6775
6776 // repeated .tensorflow.GraphDef partition_graph = 4;
6777 for (unsigned int i = 0,
6778 n = static_cast<unsigned int>(this->partition_graph_size()); i < n; i++) {
6779 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6780 InternalWriteMessageToArray(
6781 4, this->partition_graph(static_cast<int>(i)), target);
6782 }
6783
6784 // .tensorflow.error.Code status_code = 5;
6785 if (this->status_code() != 0) {
6786 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
6787 5, this->status_code(), target);
6788 }
6789
6790 // string status_error_message = 6;
6791 if (this->status_error_message().size() > 0) {
6792 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6793 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
6794 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6795 "tensorflow.RunGraphResponse.status_error_message");
6796 target =
6797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6798 6, this->status_error_message(), target);
6799 }
6800
6801 if (_internal_metadata_.have_unknown_fields()) {
6802 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6803 _internal_metadata_.unknown_fields(), target);
6804 }
6805 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunGraphResponse)
6806 return target;
6807}
6808
6809size_t RunGraphResponse::ByteSizeLong() const {
6810// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunGraphResponse)
6811 size_t total_size = 0;
6812
6813 if (_internal_metadata_.have_unknown_fields()) {
6814 total_size +=
6815 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6816 _internal_metadata_.unknown_fields());
6817 }
6818 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6819 // Prevent compiler warnings about cached_has_bits being unused
6820 (void) cached_has_bits;
6821
6822 // repeated .tensorflow.NamedTensorProto recv = 1;
6823 {
6824 unsigned int count = static_cast<unsigned int>(this->recv_size());
6825 total_size += 1UL * count;
6826 for (unsigned int i = 0; i < count; i++) {
6827 total_size +=
6828 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6829 this->recv(static_cast<int>(i)));
6830 }
6831 }
6832
6833 // repeated .tensorflow.GraphDef partition_graph = 4;
6834 {
6835 unsigned int count = static_cast<unsigned int>(this->partition_graph_size());
6836 total_size += 1UL * count;
6837 for (unsigned int i = 0; i < count; i++) {
6838 total_size +=
6839 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6840 this->partition_graph(static_cast<int>(i)));
6841 }
6842 }
6843
6844 // string status_error_message = 6;
6845 if (this->status_error_message().size() > 0) {
6846 total_size += 1 +
6847 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6848 this->status_error_message());
6849 }
6850
6851 // .tensorflow.StepStats step_stats = 2;
6852 if (this->has_step_stats()) {
6853 total_size += 1 +
6854 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6855 *step_stats_);
6856 }
6857
6858 // .tensorflow.CostGraphDef cost_graph = 3;
6859 if (this->has_cost_graph()) {
6860 total_size += 1 +
6861 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6862 *cost_graph_);
6863 }
6864
6865 // .tensorflow.error.Code status_code = 5;
6866 if (this->status_code() != 0) {
6867 total_size += 1 +
6868 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->status_code());
6869 }
6870
6871 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6872 SetCachedSize(cached_size);
6873 return total_size;
6874}
6875
6876void RunGraphResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6877// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunGraphResponse)
6878 GOOGLE_DCHECK_NE(&from, this);
6879 const RunGraphResponse* source =
6880 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunGraphResponse>(
6881 &from);
6882 if (source == nullptr) {
6883 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunGraphResponse)
6884 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6885 } else {
6886 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunGraphResponse)
6887 MergeFrom(*source);
6888 }
6889}
6890
6891void RunGraphResponse::MergeFrom(const RunGraphResponse& from) {
6892// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunGraphResponse)
6893 GOOGLE_DCHECK_NE(&from, this);
6894 _internal_metadata_.MergeFrom(from._internal_metadata_);
6895 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6896 (void) cached_has_bits;
6897
6898 recv_.MergeFrom(from.recv_);
6899 partition_graph_.MergeFrom(from.partition_graph_);
6900 if (from.status_error_message().size() > 0) {
6901 set_status_error_message(from.status_error_message());
6902 }
6903 if (from.has_step_stats()) {
6904 mutable_step_stats()->::tensorflow::StepStats::MergeFrom(from.step_stats());
6905 }
6906 if (from.has_cost_graph()) {
6907 mutable_cost_graph()->::tensorflow::CostGraphDef::MergeFrom(from.cost_graph());
6908 }
6909 if (from.status_code() != 0) {
6910 set_status_code(from.status_code());
6911 }
6912}
6913
6914void RunGraphResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6915// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunGraphResponse)
6916 if (&from == this) return;
6917 Clear();
6918 MergeFrom(from);
6919}
6920
6921void RunGraphResponse::CopyFrom(const RunGraphResponse& from) {
6922// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunGraphResponse)
6923 if (&from == this) return;
6924 Clear();
6925 MergeFrom(from);
6926}
6927
6928bool RunGraphResponse::IsInitialized() const {
6929 return true;
6930}
6931
6932void RunGraphResponse::InternalSwap(RunGraphResponse* other) {
6933 using std::swap;
6934 _internal_metadata_.Swap(&other->_internal_metadata_);
6935 CastToBase(&recv_)->InternalSwap(CastToBase(&other->recv_));
6936 CastToBase(&partition_graph_)->InternalSwap(CastToBase(&other->partition_graph_));
6937 status_error_message_.Swap(&other->status_error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6938 GetArenaNoVirtual());
6939 swap(step_stats_, other->step_stats_);
6940 swap(cost_graph_, other->cost_graph_);
6941 swap(status_code_, other->status_code_);
6942}
6943
6944::PROTOBUF_NAMESPACE_ID::Metadata RunGraphResponse::GetMetadata() const {
6945 return GetMetadataStatic();
6946}
6947
6948
6949// ===================================================================
6950
6951void CleanupGraphRequest::InitAsDefaultInstance() {
6952}
6953class CleanupGraphRequest::_Internal {
6954 public:
6955};
6956
6957CleanupGraphRequest::CleanupGraphRequest()
6958 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6959 SharedCtor();
6960 // @@protoc_insertion_point(constructor:tensorflow.CleanupGraphRequest)
6961}
6962CleanupGraphRequest::CleanupGraphRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6963 : ::PROTOBUF_NAMESPACE_ID::Message(),
6964 _internal_metadata_(arena) {
6965 SharedCtor();
6966 RegisterArenaDtor(arena);
6967 // @@protoc_insertion_point(arena_constructor:tensorflow.CleanupGraphRequest)
6968}
6969CleanupGraphRequest::CleanupGraphRequest(const CleanupGraphRequest& from)
6970 : ::PROTOBUF_NAMESPACE_ID::Message(),
6971 _internal_metadata_(nullptr) {
6972 _internal_metadata_.MergeFrom(from._internal_metadata_);
6973 step_id_ = from.step_id_;
6974 // @@protoc_insertion_point(copy_constructor:tensorflow.CleanupGraphRequest)
6975}
6976
6977void CleanupGraphRequest::SharedCtor() {
6978 step_id_ = PROTOBUF_LONGLONG(0);
6979}
6980
6981CleanupGraphRequest::~CleanupGraphRequest() {
6982 // @@protoc_insertion_point(destructor:tensorflow.CleanupGraphRequest)
6983 SharedDtor();
6984}
6985
6986void CleanupGraphRequest::SharedDtor() {
6987 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6988}
6989
6990void CleanupGraphRequest::ArenaDtor(void* object) {
6991 CleanupGraphRequest* _this = reinterpret_cast< CleanupGraphRequest* >(object);
6992 (void)_this;
6993}
6994void CleanupGraphRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6995}
6996void CleanupGraphRequest::SetCachedSize(int size) const {
6997 _cached_size_.Set(size);
6998}
6999const CleanupGraphRequest& CleanupGraphRequest::default_instance() {
7000 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanupGraphRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
7001 return *internal_default_instance();
7002}
7003
7004
7005void CleanupGraphRequest::Clear() {
7006// @@protoc_insertion_point(message_clear_start:tensorflow.CleanupGraphRequest)
7007 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7008 // Prevent compiler warnings about cached_has_bits being unused
7009 (void) cached_has_bits;
7010
7011 step_id_ = PROTOBUF_LONGLONG(0);
7012 _internal_metadata_.Clear();
7013}
7014
7015#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7016const char* CleanupGraphRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7017#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7018 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7019 while (!ctx->Done(&ptr)) {
7020 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7021 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7022 CHK_(ptr);
7023 switch (tag >> 3) {
7024 // int64 step_id = 1;
7025 case 1:
7026 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
7027 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7028 CHK_(ptr);
7029 } else goto handle_unusual;
7030 continue;
7031 default: {
7032 handle_unusual:
7033 if ((tag & 7) == 4 || tag == 0) {
7034 ctx->SetLastTag(tag);
7035 goto success;
7036 }
7037 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7038 CHK_(ptr != nullptr);
7039 continue;
7040 }
7041 } // switch
7042 } // while
7043success:
7044 return ptr;
7045failure:
7046 ptr = nullptr;
7047 goto success;
7048#undef CHK_
7049}
7050#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7051bool CleanupGraphRequest::MergePartialFromCodedStream(
7052 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7053#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7054 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7055 // @@protoc_insertion_point(parse_start:tensorflow.CleanupGraphRequest)
7056 for (;;) {
7057 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7058 tag = p.first;
7059 if (!p.second) goto handle_unusual;
7060 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7061 // int64 step_id = 1;
7062 case 1: {
7063 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
7064
7065 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7066 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
7067 input, &step_id_)));
7068 } else {
7069 goto handle_unusual;
7070 }
7071 break;
7072 }
7073
7074 default: {
7075 handle_unusual:
7076 if (tag == 0) {
7077 goto success;
7078 }
7079 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7080 input, tag, _internal_metadata_.mutable_unknown_fields()));
7081 break;
7082 }
7083 }
7084 }
7085success:
7086 // @@protoc_insertion_point(parse_success:tensorflow.CleanupGraphRequest)
7087 return true;
7088failure:
7089 // @@protoc_insertion_point(parse_failure:tensorflow.CleanupGraphRequest)
7090 return false;
7091#undef DO_
7092}
7093#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7094
7095void CleanupGraphRequest::SerializeWithCachedSizes(
7096 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7097 // @@protoc_insertion_point(serialize_start:tensorflow.CleanupGraphRequest)
7098 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7099 (void) cached_has_bits;
7100
7101 // int64 step_id = 1;
7102 if (this->step_id() != 0) {
7103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->step_id(), output);
7104 }
7105
7106 if (_internal_metadata_.have_unknown_fields()) {
7107 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7108 _internal_metadata_.unknown_fields(), output);
7109 }
7110 // @@protoc_insertion_point(serialize_end:tensorflow.CleanupGraphRequest)
7111}
7112
7113::PROTOBUF_NAMESPACE_ID::uint8* CleanupGraphRequest::InternalSerializeWithCachedSizesToArray(
7114 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7115 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CleanupGraphRequest)
7116 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7117 (void) cached_has_bits;
7118
7119 // int64 step_id = 1;
7120 if (this->step_id() != 0) {
7121 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->step_id(), target);
7122 }
7123
7124 if (_internal_metadata_.have_unknown_fields()) {
7125 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7126 _internal_metadata_.unknown_fields(), target);
7127 }
7128 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CleanupGraphRequest)
7129 return target;
7130}
7131
7132size_t CleanupGraphRequest::ByteSizeLong() const {
7133// @@protoc_insertion_point(message_byte_size_start:tensorflow.CleanupGraphRequest)
7134 size_t total_size = 0;
7135
7136 if (_internal_metadata_.have_unknown_fields()) {
7137 total_size +=
7138 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7139 _internal_metadata_.unknown_fields());
7140 }
7141 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7142 // Prevent compiler warnings about cached_has_bits being unused
7143 (void) cached_has_bits;
7144
7145 // int64 step_id = 1;
7146 if (this->step_id() != 0) {
7147 total_size += 1 +
7148 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
7149 this->step_id());
7150 }
7151
7152 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7153 SetCachedSize(cached_size);
7154 return total_size;
7155}
7156
7157void CleanupGraphRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7158// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CleanupGraphRequest)
7159 GOOGLE_DCHECK_NE(&from, this);
7160 const CleanupGraphRequest* source =
7161 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CleanupGraphRequest>(
7162 &from);
7163 if (source == nullptr) {
7164 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CleanupGraphRequest)
7165 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7166 } else {
7167 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CleanupGraphRequest)
7168 MergeFrom(*source);
7169 }
7170}
7171
7172void CleanupGraphRequest::MergeFrom(const CleanupGraphRequest& from) {
7173// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CleanupGraphRequest)
7174 GOOGLE_DCHECK_NE(&from, this);
7175 _internal_metadata_.MergeFrom(from._internal_metadata_);
7176 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7177 (void) cached_has_bits;
7178
7179 if (from.step_id() != 0) {
7180 set_step_id(from.step_id());
7181 }
7182}
7183
7184void CleanupGraphRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7185// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CleanupGraphRequest)
7186 if (&from == this) return;
7187 Clear();
7188 MergeFrom(from);
7189}
7190
7191void CleanupGraphRequest::CopyFrom(const CleanupGraphRequest& from) {
7192// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CleanupGraphRequest)
7193 if (&from == this) return;
7194 Clear();
7195 MergeFrom(from);
7196}
7197
7198bool CleanupGraphRequest::IsInitialized() const {
7199 return true;
7200}
7201
7202void CleanupGraphRequest::InternalSwap(CleanupGraphRequest* other) {
7203 using std::swap;
7204 _internal_metadata_.Swap(&other->_internal_metadata_);
7205 swap(step_id_, other->step_id_);
7206}
7207
7208::PROTOBUF_NAMESPACE_ID::Metadata CleanupGraphRequest::GetMetadata() const {
7209 return GetMetadataStatic();
7210}
7211
7212
7213// ===================================================================
7214
7215void CleanupGraphResponse::InitAsDefaultInstance() {
7216}
7217class CleanupGraphResponse::_Internal {
7218 public:
7219};
7220
7221CleanupGraphResponse::CleanupGraphResponse()
7222 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7223 SharedCtor();
7224 // @@protoc_insertion_point(constructor:tensorflow.CleanupGraphResponse)
7225}
7226CleanupGraphResponse::CleanupGraphResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7227 : ::PROTOBUF_NAMESPACE_ID::Message(),
7228 _internal_metadata_(arena) {
7229 SharedCtor();
7230 RegisterArenaDtor(arena);
7231 // @@protoc_insertion_point(arena_constructor:tensorflow.CleanupGraphResponse)
7232}
7233CleanupGraphResponse::CleanupGraphResponse(const CleanupGraphResponse& from)
7234 : ::PROTOBUF_NAMESPACE_ID::Message(),
7235 _internal_metadata_(nullptr) {
7236 _internal_metadata_.MergeFrom(from._internal_metadata_);
7237 // @@protoc_insertion_point(copy_constructor:tensorflow.CleanupGraphResponse)
7238}
7239
7240void CleanupGraphResponse::SharedCtor() {
7241}
7242
7243CleanupGraphResponse::~CleanupGraphResponse() {
7244 // @@protoc_insertion_point(destructor:tensorflow.CleanupGraphResponse)
7245 SharedDtor();
7246}
7247
7248void CleanupGraphResponse::SharedDtor() {
7249 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7250}
7251
7252void CleanupGraphResponse::ArenaDtor(void* object) {
7253 CleanupGraphResponse* _this = reinterpret_cast< CleanupGraphResponse* >(object);
7254 (void)_this;
7255}
7256void CleanupGraphResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7257}
7258void CleanupGraphResponse::SetCachedSize(int size) const {
7259 _cached_size_.Set(size);
7260}
7261const CleanupGraphResponse& CleanupGraphResponse::default_instance() {
7262 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanupGraphResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
7263 return *internal_default_instance();
7264}
7265
7266
7267void CleanupGraphResponse::Clear() {
7268// @@protoc_insertion_point(message_clear_start:tensorflow.CleanupGraphResponse)
7269 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7270 // Prevent compiler warnings about cached_has_bits being unused
7271 (void) cached_has_bits;
7272
7273 _internal_metadata_.Clear();
7274}
7275
7276#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7277const char* CleanupGraphResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7278#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7279 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7280 while (!ctx->Done(&ptr)) {
7281 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7282 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7283 CHK_(ptr);
7284 switch (tag >> 3) {
7285 default: {
7286 if ((tag & 7) == 4 || tag == 0) {
7287 ctx->SetLastTag(tag);
7288 goto success;
7289 }
7290 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7291 CHK_(ptr != nullptr);
7292 continue;
7293 }
7294 } // switch
7295 } // while
7296success:
7297 return ptr;
7298failure:
7299 ptr = nullptr;
7300 goto success;
7301#undef CHK_
7302}
7303#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7304bool CleanupGraphResponse::MergePartialFromCodedStream(
7305 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7306#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7307 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7308 // @@protoc_insertion_point(parse_start:tensorflow.CleanupGraphResponse)
7309 for (;;) {
7310 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7311 tag = p.first;
7312 if (!p.second) goto handle_unusual;
7313 handle_unusual:
7314 if (tag == 0) {
7315 goto success;
7316 }
7317 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7318 input, tag, _internal_metadata_.mutable_unknown_fields()));
7319 }
7320success:
7321 // @@protoc_insertion_point(parse_success:tensorflow.CleanupGraphResponse)
7322 return true;
7323failure:
7324 // @@protoc_insertion_point(parse_failure:tensorflow.CleanupGraphResponse)
7325 return false;
7326#undef DO_
7327}
7328#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7329
7330void CleanupGraphResponse::SerializeWithCachedSizes(
7331 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7332 // @@protoc_insertion_point(serialize_start:tensorflow.CleanupGraphResponse)
7333 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7334 (void) cached_has_bits;
7335
7336 if (_internal_metadata_.have_unknown_fields()) {
7337 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7338 _internal_metadata_.unknown_fields(), output);
7339 }
7340 // @@protoc_insertion_point(serialize_end:tensorflow.CleanupGraphResponse)
7341}
7342
7343::PROTOBUF_NAMESPACE_ID::uint8* CleanupGraphResponse::InternalSerializeWithCachedSizesToArray(
7344 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7345 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CleanupGraphResponse)
7346 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7347 (void) cached_has_bits;
7348
7349 if (_internal_metadata_.have_unknown_fields()) {
7350 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7351 _internal_metadata_.unknown_fields(), target);
7352 }
7353 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CleanupGraphResponse)
7354 return target;
7355}
7356
7357size_t CleanupGraphResponse::ByteSizeLong() const {
7358// @@protoc_insertion_point(message_byte_size_start:tensorflow.CleanupGraphResponse)
7359 size_t total_size = 0;
7360
7361 if (_internal_metadata_.have_unknown_fields()) {
7362 total_size +=
7363 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7364 _internal_metadata_.unknown_fields());
7365 }
7366 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7367 // Prevent compiler warnings about cached_has_bits being unused
7368 (void) cached_has_bits;
7369
7370 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7371 SetCachedSize(cached_size);
7372 return total_size;
7373}
7374
7375void CleanupGraphResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7376// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CleanupGraphResponse)
7377 GOOGLE_DCHECK_NE(&from, this);
7378 const CleanupGraphResponse* source =
7379 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CleanupGraphResponse>(
7380 &from);
7381 if (source == nullptr) {
7382 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CleanupGraphResponse)
7383 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7384 } else {
7385 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CleanupGraphResponse)
7386 MergeFrom(*source);
7387 }
7388}
7389
7390void CleanupGraphResponse::MergeFrom(const CleanupGraphResponse& from) {
7391// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CleanupGraphResponse)
7392 GOOGLE_DCHECK_NE(&from, this);
7393 _internal_metadata_.MergeFrom(from._internal_metadata_);
7394 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7395 (void) cached_has_bits;
7396
7397}
7398
7399void CleanupGraphResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7400// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CleanupGraphResponse)
7401 if (&from == this) return;
7402 Clear();
7403 MergeFrom(from);
7404}
7405
7406void CleanupGraphResponse::CopyFrom(const CleanupGraphResponse& from) {
7407// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CleanupGraphResponse)
7408 if (&from == this) return;
7409 Clear();
7410 MergeFrom(from);
7411}
7412
7413bool CleanupGraphResponse::IsInitialized() const {
7414 return true;
7415}
7416
7417void CleanupGraphResponse::InternalSwap(CleanupGraphResponse* other) {
7418 using std::swap;
7419 _internal_metadata_.Swap(&other->_internal_metadata_);
7420}
7421
7422::PROTOBUF_NAMESPACE_ID::Metadata CleanupGraphResponse::GetMetadata() const {
7423 return GetMetadataStatic();
7424}
7425
7426
7427// ===================================================================
7428
7429void RecvTensorRequest::InitAsDefaultInstance() {
7430 ::tensorflow::_RecvTensorRequest_default_instance_._instance.get_mutable()->client_locality_ = const_cast< ::tensorflow::DeviceLocality*>(
7431 ::tensorflow::DeviceLocality::internal_default_instance());
7432 ::tensorflow::_RecvTensorRequest_default_instance_._instance.get_mutable()->server_locality_ = const_cast< ::tensorflow::DeviceLocality*>(
7433 ::tensorflow::DeviceLocality::internal_default_instance());
7434 ::tensorflow::_RecvTensorRequest_default_instance_._instance.get_mutable()->transport_options_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>(
7435 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
7436}
7437class RecvTensorRequest::_Internal {
7438 public:
7439 static const ::tensorflow::DeviceLocality& client_locality(const RecvTensorRequest* msg);
7440 static const ::tensorflow::DeviceLocality& server_locality(const RecvTensorRequest* msg);
7441 static const PROTOBUF_NAMESPACE_ID::Any& transport_options(const RecvTensorRequest* msg);
7442};
7443
7444const ::tensorflow::DeviceLocality&
7445RecvTensorRequest::_Internal::client_locality(const RecvTensorRequest* msg) {
7446 return *msg->client_locality_;
7447}
7448const ::tensorflow::DeviceLocality&
7449RecvTensorRequest::_Internal::server_locality(const RecvTensorRequest* msg) {
7450 return *msg->server_locality_;
7451}
7452const PROTOBUF_NAMESPACE_ID::Any&
7453RecvTensorRequest::_Internal::transport_options(const RecvTensorRequest* msg) {
7454 return *msg->transport_options_;
7455}
7456void RecvTensorRequest::unsafe_arena_set_allocated_client_locality(
7457 ::tensorflow::DeviceLocality* client_locality) {
7458 if (GetArenaNoVirtual() == nullptr) {
7459 delete client_locality_;
7460 }
7461 client_locality_ = client_locality;
7462 if (client_locality) {
7463
7464 } else {
7465
7466 }
7467 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvTensorRequest.client_locality)
7468}
7469void RecvTensorRequest::clear_client_locality() {
7470 if (GetArenaNoVirtual() == nullptr && client_locality_ != nullptr) {
7471 delete client_locality_;
7472 }
7473 client_locality_ = nullptr;
7474}
7475void RecvTensorRequest::unsafe_arena_set_allocated_server_locality(
7476 ::tensorflow::DeviceLocality* server_locality) {
7477 if (GetArenaNoVirtual() == nullptr) {
7478 delete server_locality_;
7479 }
7480 server_locality_ = server_locality;
7481 if (server_locality) {
7482
7483 } else {
7484
7485 }
7486 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvTensorRequest.server_locality)
7487}
7488void RecvTensorRequest::clear_server_locality() {
7489 if (GetArenaNoVirtual() == nullptr && server_locality_ != nullptr) {
7490 delete server_locality_;
7491 }
7492 server_locality_ = nullptr;
7493}
7494void RecvTensorRequest::unsafe_arena_set_allocated_transport_options(
7495 PROTOBUF_NAMESPACE_ID::Any* transport_options) {
7496 if (GetArenaNoVirtual() == nullptr) {
7497 delete transport_options_;
7498 }
7499 transport_options_ = transport_options;
7500 if (transport_options) {
7501
7502 } else {
7503
7504 }
7505 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvTensorRequest.transport_options)
7506}
7507void RecvTensorRequest::clear_transport_options() {
7508 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
7509 delete transport_options_;
7510 }
7511 transport_options_ = nullptr;
7512}
7513RecvTensorRequest::RecvTensorRequest()
7514 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7515 SharedCtor();
7516 // @@protoc_insertion_point(constructor:tensorflow.RecvTensorRequest)
7517}
7518RecvTensorRequest::RecvTensorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7519 : ::PROTOBUF_NAMESPACE_ID::Message(),
7520 _internal_metadata_(arena) {
7521 SharedCtor();
7522 RegisterArenaDtor(arena);
7523 // @@protoc_insertion_point(arena_constructor:tensorflow.RecvTensorRequest)
7524}
7525RecvTensorRequest::RecvTensorRequest(const RecvTensorRequest& from)
7526 : ::PROTOBUF_NAMESPACE_ID::Message(),
7527 _internal_metadata_(nullptr) {
7528 _internal_metadata_.MergeFrom(from._internal_metadata_);
7529 rendezvous_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7530 if (!from.rendezvous_key().empty()) {
7531 rendezvous_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.rendezvous_key(),
7532 GetArenaNoVirtual());
7533 }
7534 if (from.has_client_locality()) {
7535 client_locality_ = new ::tensorflow::DeviceLocality(*from.client_locality_);
7536 } else {
7537 client_locality_ = nullptr;
7538 }
7539 if (from.has_server_locality()) {
7540 server_locality_ = new ::tensorflow::DeviceLocality(*from.server_locality_);
7541 } else {
7542 server_locality_ = nullptr;
7543 }
7544 if (from.has_transport_options()) {
7545 transport_options_ = new PROTOBUF_NAMESPACE_ID::Any(*from.transport_options_);
7546 } else {
7547 transport_options_ = nullptr;
7548 }
7549 ::memcpy(&step_id_, &from.step_id_,
7550 static_cast<size_t>(reinterpret_cast<char*>(&dma_ok_) -
7551 reinterpret_cast<char*>(&step_id_)) + sizeof(dma_ok_));
7552 // @@protoc_insertion_point(copy_constructor:tensorflow.RecvTensorRequest)
7553}
7554
7555void RecvTensorRequest::SharedCtor() {
7556 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
7557 rendezvous_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7558 ::memset(&client_locality_, 0, static_cast<size_t>(
7559 reinterpret_cast<char*>(&dma_ok_) -
7560 reinterpret_cast<char*>(&client_locality_)) + sizeof(dma_ok_));
7561}
7562
7563RecvTensorRequest::~RecvTensorRequest() {
7564 // @@protoc_insertion_point(destructor:tensorflow.RecvTensorRequest)
7565 SharedDtor();
7566}
7567
7568void RecvTensorRequest::SharedDtor() {
7569 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7570 rendezvous_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7571 if (this != internal_default_instance()) delete client_locality_;
7572 if (this != internal_default_instance()) delete server_locality_;
7573 if (this != internal_default_instance()) delete transport_options_;
7574}
7575
7576void RecvTensorRequest::ArenaDtor(void* object) {
7577 RecvTensorRequest* _this = reinterpret_cast< RecvTensorRequest* >(object);
7578 (void)_this;
7579}
7580void RecvTensorRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7581}
7582void RecvTensorRequest::SetCachedSize(int size) const {
7583 _cached_size_.Set(size);
7584}
7585const RecvTensorRequest& RecvTensorRequest::default_instance() {
7586 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RecvTensorRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
7587 return *internal_default_instance();
7588}
7589
7590
7591void RecvTensorRequest::Clear() {
7592// @@protoc_insertion_point(message_clear_start:tensorflow.RecvTensorRequest)
7593 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7594 // Prevent compiler warnings about cached_has_bits being unused
7595 (void) cached_has_bits;
7596
7597 rendezvous_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
7598 if (GetArenaNoVirtual() == nullptr && client_locality_ != nullptr) {
7599 delete client_locality_;
7600 }
7601 client_locality_ = nullptr;
7602 if (GetArenaNoVirtual() == nullptr && server_locality_ != nullptr) {
7603 delete server_locality_;
7604 }
7605 server_locality_ = nullptr;
7606 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
7607 delete transport_options_;
7608 }
7609 transport_options_ = nullptr;
7610 ::memset(&step_id_, 0, static_cast<size_t>(
7611 reinterpret_cast<char*>(&dma_ok_) -
7612 reinterpret_cast<char*>(&step_id_)) + sizeof(dma_ok_));
7613 _internal_metadata_.Clear();
7614}
7615
7616#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7617const char* RecvTensorRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7618#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7619 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7620 while (!ctx->Done(&ptr)) {
7621 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7622 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7623 CHK_(ptr);
7624 switch (tag >> 3) {
7625 // int64 step_id = 1;
7626 case 1:
7627 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
7628 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7629 CHK_(ptr);
7630 } else goto handle_unusual;
7631 continue;
7632 // string rendezvous_key = 2;
7633 case 2:
7634 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
7635 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_rendezvous_key(), ptr, ctx, "tensorflow.RecvTensorRequest.rendezvous_key");
7636 CHK_(ptr);
7637 } else goto handle_unusual;
7638 continue;
7639 // bool dma_ok = 3;
7640 case 3:
7641 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
7642 dma_ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7643 CHK_(ptr);
7644 } else goto handle_unusual;
7645 continue;
7646 // .tensorflow.DeviceLocality client_locality = 4;
7647 case 4:
7648 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
7649 ptr = ctx->ParseMessage(mutable_client_locality(), ptr);
7650 CHK_(ptr);
7651 } else goto handle_unusual;
7652 continue;
7653 // .tensorflow.DeviceLocality server_locality = 5;
7654 case 5:
7655 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
7656 ptr = ctx->ParseMessage(mutable_server_locality(), ptr);
7657 CHK_(ptr);
7658 } else goto handle_unusual;
7659 continue;
7660 // .google.protobuf.Any transport_options = 6;
7661 case 6:
7662 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
7663 ptr = ctx->ParseMessage(mutable_transport_options(), ptr);
7664 CHK_(ptr);
7665 } else goto handle_unusual;
7666 continue;
7667 // int64 request_id = 7;
7668 case 7:
7669 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
7670 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7671 CHK_(ptr);
7672 } else goto handle_unusual;
7673 continue;
7674 default: {
7675 handle_unusual:
7676 if ((tag & 7) == 4 || tag == 0) {
7677 ctx->SetLastTag(tag);
7678 goto success;
7679 }
7680 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7681 CHK_(ptr != nullptr);
7682 continue;
7683 }
7684 } // switch
7685 } // while
7686success:
7687 return ptr;
7688failure:
7689 ptr = nullptr;
7690 goto success;
7691#undef CHK_
7692}
7693#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7694bool RecvTensorRequest::MergePartialFromCodedStream(
7695 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7696#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7697 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7698 // @@protoc_insertion_point(parse_start:tensorflow.RecvTensorRequest)
7699 for (;;) {
7700 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7701 tag = p.first;
7702 if (!p.second) goto handle_unusual;
7703 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7704 // int64 step_id = 1;
7705 case 1: {
7706 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
7707
7708 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7709 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
7710 input, &step_id_)));
7711 } else {
7712 goto handle_unusual;
7713 }
7714 break;
7715 }
7716
7717 // string rendezvous_key = 2;
7718 case 2: {
7719 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
7720 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7721 input, this->mutable_rendezvous_key()));
7722 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7723 this->rendezvous_key().data(), static_cast<int>(this->rendezvous_key().length()),
7724 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
7725 "tensorflow.RecvTensorRequest.rendezvous_key"));
7726 } else {
7727 goto handle_unusual;
7728 }
7729 break;
7730 }
7731
7732 // bool dma_ok = 3;
7733 case 3: {
7734 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
7735
7736 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7737 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
7738 input, &dma_ok_)));
7739 } else {
7740 goto handle_unusual;
7741 }
7742 break;
7743 }
7744
7745 // .tensorflow.DeviceLocality client_locality = 4;
7746 case 4: {
7747 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
7748 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7749 input, mutable_client_locality()));
7750 } else {
7751 goto handle_unusual;
7752 }
7753 break;
7754 }
7755
7756 // .tensorflow.DeviceLocality server_locality = 5;
7757 case 5: {
7758 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
7759 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7760 input, mutable_server_locality()));
7761 } else {
7762 goto handle_unusual;
7763 }
7764 break;
7765 }
7766
7767 // .google.protobuf.Any transport_options = 6;
7768 case 6: {
7769 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
7770 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7771 input, mutable_transport_options()));
7772 } else {
7773 goto handle_unusual;
7774 }
7775 break;
7776 }
7777
7778 // int64 request_id = 7;
7779 case 7: {
7780 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
7781
7782 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7783 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
7784 input, &request_id_)));
7785 } else {
7786 goto handle_unusual;
7787 }
7788 break;
7789 }
7790
7791 default: {
7792 handle_unusual:
7793 if (tag == 0) {
7794 goto success;
7795 }
7796 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7797 input, tag, _internal_metadata_.mutable_unknown_fields()));
7798 break;
7799 }
7800 }
7801 }
7802success:
7803 // @@protoc_insertion_point(parse_success:tensorflow.RecvTensorRequest)
7804 return true;
7805failure:
7806 // @@protoc_insertion_point(parse_failure:tensorflow.RecvTensorRequest)
7807 return false;
7808#undef DO_
7809}
7810#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7811
7812void RecvTensorRequest::SerializeWithCachedSizes(
7813 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7814 // @@protoc_insertion_point(serialize_start:tensorflow.RecvTensorRequest)
7815 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7816 (void) cached_has_bits;
7817
7818 // int64 step_id = 1;
7819 if (this->step_id() != 0) {
7820 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->step_id(), output);
7821 }
7822
7823 // string rendezvous_key = 2;
7824 if (this->rendezvous_key().size() > 0) {
7825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7826 this->rendezvous_key().data(), static_cast<int>(this->rendezvous_key().length()),
7827 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7828 "tensorflow.RecvTensorRequest.rendezvous_key");
7829 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7830 2, this->rendezvous_key(), output);
7831 }
7832
7833 // bool dma_ok = 3;
7834 if (this->dma_ok() != 0) {
7835 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->dma_ok(), output);
7836 }
7837
7838 // .tensorflow.DeviceLocality client_locality = 4;
7839 if (this->has_client_locality()) {
7840 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7841 4, _Internal::client_locality(this), output);
7842 }
7843
7844 // .tensorflow.DeviceLocality server_locality = 5;
7845 if (this->has_server_locality()) {
7846 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7847 5, _Internal::server_locality(this), output);
7848 }
7849
7850 // .google.protobuf.Any transport_options = 6;
7851 if (this->has_transport_options()) {
7852 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7853 6, _Internal::transport_options(this), output);
7854 }
7855
7856 // int64 request_id = 7;
7857 if (this->request_id() != 0) {
7858 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->request_id(), output);
7859 }
7860
7861 if (_internal_metadata_.have_unknown_fields()) {
7862 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7863 _internal_metadata_.unknown_fields(), output);
7864 }
7865 // @@protoc_insertion_point(serialize_end:tensorflow.RecvTensorRequest)
7866}
7867
7868::PROTOBUF_NAMESPACE_ID::uint8* RecvTensorRequest::InternalSerializeWithCachedSizesToArray(
7869 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7870 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvTensorRequest)
7871 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7872 (void) cached_has_bits;
7873
7874 // int64 step_id = 1;
7875 if (this->step_id() != 0) {
7876 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->step_id(), target);
7877 }
7878
7879 // string rendezvous_key = 2;
7880 if (this->rendezvous_key().size() > 0) {
7881 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7882 this->rendezvous_key().data(), static_cast<int>(this->rendezvous_key().length()),
7883 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7884 "tensorflow.RecvTensorRequest.rendezvous_key");
7885 target =
7886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
7887 2, this->rendezvous_key(), target);
7888 }
7889
7890 // bool dma_ok = 3;
7891 if (this->dma_ok() != 0) {
7892 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->dma_ok(), target);
7893 }
7894
7895 // .tensorflow.DeviceLocality client_locality = 4;
7896 if (this->has_client_locality()) {
7897 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7898 InternalWriteMessageToArray(
7899 4, _Internal::client_locality(this), target);
7900 }
7901
7902 // .tensorflow.DeviceLocality server_locality = 5;
7903 if (this->has_server_locality()) {
7904 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7905 InternalWriteMessageToArray(
7906 5, _Internal::server_locality(this), target);
7907 }
7908
7909 // .google.protobuf.Any transport_options = 6;
7910 if (this->has_transport_options()) {
7911 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7912 InternalWriteMessageToArray(
7913 6, _Internal::transport_options(this), target);
7914 }
7915
7916 // int64 request_id = 7;
7917 if (this->request_id() != 0) {
7918 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->request_id(), target);
7919 }
7920
7921 if (_internal_metadata_.have_unknown_fields()) {
7922 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7923 _internal_metadata_.unknown_fields(), target);
7924 }
7925 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvTensorRequest)
7926 return target;
7927}
7928
7929size_t RecvTensorRequest::ByteSizeLong() const {
7930// @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvTensorRequest)
7931 size_t total_size = 0;
7932
7933 if (_internal_metadata_.have_unknown_fields()) {
7934 total_size +=
7935 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7936 _internal_metadata_.unknown_fields());
7937 }
7938 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7939 // Prevent compiler warnings about cached_has_bits being unused
7940 (void) cached_has_bits;
7941
7942 // string rendezvous_key = 2;
7943 if (this->rendezvous_key().size() > 0) {
7944 total_size += 1 +
7945 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7946 this->rendezvous_key());
7947 }
7948
7949 // .tensorflow.DeviceLocality client_locality = 4;
7950 if (this->has_client_locality()) {
7951 total_size += 1 +
7952 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7953 *client_locality_);
7954 }
7955
7956 // .tensorflow.DeviceLocality server_locality = 5;
7957 if (this->has_server_locality()) {
7958 total_size += 1 +
7959 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7960 *server_locality_);
7961 }
7962
7963 // .google.protobuf.Any transport_options = 6;
7964 if (this->has_transport_options()) {
7965 total_size += 1 +
7966 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7967 *transport_options_);
7968 }
7969
7970 // int64 step_id = 1;
7971 if (this->step_id() != 0) {
7972 total_size += 1 +
7973 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
7974 this->step_id());
7975 }
7976
7977 // int64 request_id = 7;
7978 if (this->request_id() != 0) {
7979 total_size += 1 +
7980 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
7981 this->request_id());
7982 }
7983
7984 // bool dma_ok = 3;
7985 if (this->dma_ok() != 0) {
7986 total_size += 1 + 1;
7987 }
7988
7989 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7990 SetCachedSize(cached_size);
7991 return total_size;
7992}
7993
7994void RecvTensorRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7995// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RecvTensorRequest)
7996 GOOGLE_DCHECK_NE(&from, this);
7997 const RecvTensorRequest* source =
7998 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecvTensorRequest>(
7999 &from);
8000 if (source == nullptr) {
8001 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RecvTensorRequest)
8002 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8003 } else {
8004 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RecvTensorRequest)
8005 MergeFrom(*source);
8006 }
8007}
8008
8009void RecvTensorRequest::MergeFrom(const RecvTensorRequest& from) {
8010// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvTensorRequest)
8011 GOOGLE_DCHECK_NE(&from, this);
8012 _internal_metadata_.MergeFrom(from._internal_metadata_);
8013 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8014 (void) cached_has_bits;
8015
8016 if (from.rendezvous_key().size() > 0) {
8017 set_rendezvous_key(from.rendezvous_key());
8018 }
8019 if (from.has_client_locality()) {
8020 mutable_client_locality()->::tensorflow::DeviceLocality::MergeFrom(from.client_locality());
8021 }
8022 if (from.has_server_locality()) {
8023 mutable_server_locality()->::tensorflow::DeviceLocality::MergeFrom(from.server_locality());
8024 }
8025 if (from.has_transport_options()) {
8026 mutable_transport_options()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.transport_options());
8027 }
8028 if (from.step_id() != 0) {
8029 set_step_id(from.step_id());
8030 }
8031 if (from.request_id() != 0) {
8032 set_request_id(from.request_id());
8033 }
8034 if (from.dma_ok() != 0) {
8035 set_dma_ok(from.dma_ok());
8036 }
8037}
8038
8039void RecvTensorRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8040// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RecvTensorRequest)
8041 if (&from == this) return;
8042 Clear();
8043 MergeFrom(from);
8044}
8045
8046void RecvTensorRequest::CopyFrom(const RecvTensorRequest& from) {
8047// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvTensorRequest)
8048 if (&from == this) return;
8049 Clear();
8050 MergeFrom(from);
8051}
8052
8053bool RecvTensorRequest::IsInitialized() const {
8054 return true;
8055}
8056
8057void RecvTensorRequest::InternalSwap(RecvTensorRequest* other) {
8058 using std::swap;
8059 _internal_metadata_.Swap(&other->_internal_metadata_);
8060 rendezvous_key_.Swap(&other->rendezvous_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8061 GetArenaNoVirtual());
8062 swap(client_locality_, other->client_locality_);
8063 swap(server_locality_, other->server_locality_);
8064 swap(transport_options_, other->transport_options_);
8065 swap(step_id_, other->step_id_);
8066 swap(request_id_, other->request_id_);
8067 swap(dma_ok_, other->dma_ok_);
8068}
8069
8070::PROTOBUF_NAMESPACE_ID::Metadata RecvTensorRequest::GetMetadata() const {
8071 return GetMetadataStatic();
8072}
8073
8074
8075// ===================================================================
8076
8077void RecvTensorResponse::InitAsDefaultInstance() {
8078 ::tensorflow::_RecvTensorResponse_default_instance_._instance.get_mutable()->tensor_ = const_cast< ::tensorflow::TensorProto*>(
8079 ::tensorflow::TensorProto::internal_default_instance());
8080 ::tensorflow::_RecvTensorResponse_default_instance_._instance.get_mutable()->transport_options_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>(
8081 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
8082}
8083class RecvTensorResponse::_Internal {
8084 public:
8085 static const ::tensorflow::TensorProto& tensor(const RecvTensorResponse* msg);
8086 static const PROTOBUF_NAMESPACE_ID::Any& transport_options(const RecvTensorResponse* msg);
8087};
8088
8089const ::tensorflow::TensorProto&
8090RecvTensorResponse::_Internal::tensor(const RecvTensorResponse* msg) {
8091 return *msg->tensor_;
8092}
8093const PROTOBUF_NAMESPACE_ID::Any&
8094RecvTensorResponse::_Internal::transport_options(const RecvTensorResponse* msg) {
8095 return *msg->transport_options_;
8096}
8097void RecvTensorResponse::unsafe_arena_set_allocated_tensor(
8098 ::tensorflow::TensorProto* tensor) {
8099 if (GetArenaNoVirtual() == nullptr) {
8100 delete tensor_;
8101 }
8102 tensor_ = tensor;
8103 if (tensor) {
8104
8105 } else {
8106
8107 }
8108 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvTensorResponse.tensor)
8109}
8110void RecvTensorResponse::clear_tensor() {
8111 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
8112 delete tensor_;
8113 }
8114 tensor_ = nullptr;
8115}
8116void RecvTensorResponse::unsafe_arena_set_allocated_transport_options(
8117 PROTOBUF_NAMESPACE_ID::Any* transport_options) {
8118 if (GetArenaNoVirtual() == nullptr) {
8119 delete transport_options_;
8120 }
8121 transport_options_ = transport_options;
8122 if (transport_options) {
8123
8124 } else {
8125
8126 }
8127 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvTensorResponse.transport_options)
8128}
8129void RecvTensorResponse::clear_transport_options() {
8130 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
8131 delete transport_options_;
8132 }
8133 transport_options_ = nullptr;
8134}
8135RecvTensorResponse::RecvTensorResponse()
8136 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8137 SharedCtor();
8138 // @@protoc_insertion_point(constructor:tensorflow.RecvTensorResponse)
8139}
8140RecvTensorResponse::RecvTensorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
8141 : ::PROTOBUF_NAMESPACE_ID::Message(),
8142 _internal_metadata_(arena) {
8143 SharedCtor();
8144 RegisterArenaDtor(arena);
8145 // @@protoc_insertion_point(arena_constructor:tensorflow.RecvTensorResponse)
8146}
8147RecvTensorResponse::RecvTensorResponse(const RecvTensorResponse& from)
8148 : ::PROTOBUF_NAMESPACE_ID::Message(),
8149 _internal_metadata_(nullptr) {
8150 _internal_metadata_.MergeFrom(from._internal_metadata_);
8151 if (from.has_tensor()) {
8152 tensor_ = new ::tensorflow::TensorProto(*from.tensor_);
8153 } else {
8154 tensor_ = nullptr;
8155 }
8156 if (from.has_transport_options()) {
8157 transport_options_ = new PROTOBUF_NAMESPACE_ID::Any(*from.transport_options_);
8158 } else {
8159 transport_options_ = nullptr;
8160 }
8161 ::memcpy(&send_start_micros_, &from.send_start_micros_,
8162 static_cast<size_t>(reinterpret_cast<char*>(&require_ack_) -
8163 reinterpret_cast<char*>(&send_start_micros_)) + sizeof(require_ack_));
8164 // @@protoc_insertion_point(copy_constructor:tensorflow.RecvTensorResponse)
8165}
8166
8167void RecvTensorResponse::SharedCtor() {
8168 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
8169 ::memset(&tensor_, 0, static_cast<size_t>(
8170 reinterpret_cast<char*>(&require_ack_) -
8171 reinterpret_cast<char*>(&tensor_)) + sizeof(require_ack_));
8172}
8173
8174RecvTensorResponse::~RecvTensorResponse() {
8175 // @@protoc_insertion_point(destructor:tensorflow.RecvTensorResponse)
8176 SharedDtor();
8177}
8178
8179void RecvTensorResponse::SharedDtor() {
8180 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
8181 if (this != internal_default_instance()) delete tensor_;
8182 if (this != internal_default_instance()) delete transport_options_;
8183}
8184
8185void RecvTensorResponse::ArenaDtor(void* object) {
8186 RecvTensorResponse* _this = reinterpret_cast< RecvTensorResponse* >(object);
8187 (void)_this;
8188}
8189void RecvTensorResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
8190}
8191void RecvTensorResponse::SetCachedSize(int size) const {
8192 _cached_size_.Set(size);
8193}
8194const RecvTensorResponse& RecvTensorResponse::default_instance() {
8195 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RecvTensorResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
8196 return *internal_default_instance();
8197}
8198
8199
8200void RecvTensorResponse::Clear() {
8201// @@protoc_insertion_point(message_clear_start:tensorflow.RecvTensorResponse)
8202 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8203 // Prevent compiler warnings about cached_has_bits being unused
8204 (void) cached_has_bits;
8205
8206 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
8207 delete tensor_;
8208 }
8209 tensor_ = nullptr;
8210 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
8211 delete transport_options_;
8212 }
8213 transport_options_ = nullptr;
8214 ::memset(&send_start_micros_, 0, static_cast<size_t>(
8215 reinterpret_cast<char*>(&require_ack_) -
8216 reinterpret_cast<char*>(&send_start_micros_)) + sizeof(require_ack_));
8217 _internal_metadata_.Clear();
8218}
8219
8220#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8221const char* RecvTensorResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8222#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8223 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
8224 while (!ctx->Done(&ptr)) {
8225 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8226 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8227 CHK_(ptr);
8228 switch (tag >> 3) {
8229 // .tensorflow.TensorProto tensor = 1;
8230 case 1:
8231 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
8232 ptr = ctx->ParseMessage(mutable_tensor(), ptr);
8233 CHK_(ptr);
8234 } else goto handle_unusual;
8235 continue;
8236 // bool is_dead = 2;
8237 case 2:
8238 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
8239 is_dead_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8240 CHK_(ptr);
8241 } else goto handle_unusual;
8242 continue;
8243 // int64 send_start_micros = 3;
8244 case 3:
8245 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
8246 send_start_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8247 CHK_(ptr);
8248 } else goto handle_unusual;
8249 continue;
8250 // .google.protobuf.Any transport_options = 4;
8251 case 4:
8252 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
8253 ptr = ctx->ParseMessage(mutable_transport_options(), ptr);
8254 CHK_(ptr);
8255 } else goto handle_unusual;
8256 continue;
8257 // bool require_ack = 5;
8258 case 5:
8259 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
8260 require_ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8261 CHK_(ptr);
8262 } else goto handle_unusual;
8263 continue;
8264 default: {
8265 handle_unusual:
8266 if ((tag & 7) == 4 || tag == 0) {
8267 ctx->SetLastTag(tag);
8268 goto success;
8269 }
8270 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8271 CHK_(ptr != nullptr);
8272 continue;
8273 }
8274 } // switch
8275 } // while
8276success:
8277 return ptr;
8278failure:
8279 ptr = nullptr;
8280 goto success;
8281#undef CHK_
8282}
8283#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8284bool RecvTensorResponse::MergePartialFromCodedStream(
8285 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8286#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8287 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8288 // @@protoc_insertion_point(parse_start:tensorflow.RecvTensorResponse)
8289 for (;;) {
8290 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8291 tag = p.first;
8292 if (!p.second) goto handle_unusual;
8293 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8294 // .tensorflow.TensorProto tensor = 1;
8295 case 1: {
8296 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
8297 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
8298 input, mutable_tensor()));
8299 } else {
8300 goto handle_unusual;
8301 }
8302 break;
8303 }
8304
8305 // bool is_dead = 2;
8306 case 2: {
8307 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
8308
8309 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8310 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8311 input, &is_dead_)));
8312 } else {
8313 goto handle_unusual;
8314 }
8315 break;
8316 }
8317
8318 // int64 send_start_micros = 3;
8319 case 3: {
8320 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
8321
8322 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8323 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
8324 input, &send_start_micros_)));
8325 } else {
8326 goto handle_unusual;
8327 }
8328 break;
8329 }
8330
8331 // .google.protobuf.Any transport_options = 4;
8332 case 4: {
8333 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
8334 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
8335 input, mutable_transport_options()));
8336 } else {
8337 goto handle_unusual;
8338 }
8339 break;
8340 }
8341
8342 // bool require_ack = 5;
8343 case 5: {
8344 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
8345
8346 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8347 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8348 input, &require_ack_)));
8349 } else {
8350 goto handle_unusual;
8351 }
8352 break;
8353 }
8354
8355 default: {
8356 handle_unusual:
8357 if (tag == 0) {
8358 goto success;
8359 }
8360 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8361 input, tag, _internal_metadata_.mutable_unknown_fields()));
8362 break;
8363 }
8364 }
8365 }
8366success:
8367 // @@protoc_insertion_point(parse_success:tensorflow.RecvTensorResponse)
8368 return true;
8369failure:
8370 // @@protoc_insertion_point(parse_failure:tensorflow.RecvTensorResponse)
8371 return false;
8372#undef DO_
8373}
8374#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8375
8376void RecvTensorResponse::SerializeWithCachedSizes(
8377 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8378 // @@protoc_insertion_point(serialize_start:tensorflow.RecvTensorResponse)
8379 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8380 (void) cached_has_bits;
8381
8382 // .tensorflow.TensorProto tensor = 1;
8383 if (this->has_tensor()) {
8384 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
8385 1, _Internal::tensor(this), output);
8386 }
8387
8388 // bool is_dead = 2;
8389 if (this->is_dead() != 0) {
8390 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->is_dead(), output);
8391 }
8392
8393 // int64 send_start_micros = 3;
8394 if (this->send_start_micros() != 0) {
8395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->send_start_micros(), output);
8396 }
8397
8398 // .google.protobuf.Any transport_options = 4;
8399 if (this->has_transport_options()) {
8400 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
8401 4, _Internal::transport_options(this), output);
8402 }
8403
8404 // bool require_ack = 5;
8405 if (this->require_ack() != 0) {
8406 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->require_ack(), output);
8407 }
8408
8409 if (_internal_metadata_.have_unknown_fields()) {
8410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8411 _internal_metadata_.unknown_fields(), output);
8412 }
8413 // @@protoc_insertion_point(serialize_end:tensorflow.RecvTensorResponse)
8414}
8415
8416::PROTOBUF_NAMESPACE_ID::uint8* RecvTensorResponse::InternalSerializeWithCachedSizesToArray(
8417 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8418 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvTensorResponse)
8419 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8420 (void) cached_has_bits;
8421
8422 // .tensorflow.TensorProto tensor = 1;
8423 if (this->has_tensor()) {
8424 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8425 InternalWriteMessageToArray(
8426 1, _Internal::tensor(this), target);
8427 }
8428
8429 // bool is_dead = 2;
8430 if (this->is_dead() != 0) {
8431 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->is_dead(), target);
8432 }
8433
8434 // int64 send_start_micros = 3;
8435 if (this->send_start_micros() != 0) {
8436 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->send_start_micros(), target);
8437 }
8438
8439 // .google.protobuf.Any transport_options = 4;
8440 if (this->has_transport_options()) {
8441 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8442 InternalWriteMessageToArray(
8443 4, _Internal::transport_options(this), target);
8444 }
8445
8446 // bool require_ack = 5;
8447 if (this->require_ack() != 0) {
8448 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->require_ack(), target);
8449 }
8450
8451 if (_internal_metadata_.have_unknown_fields()) {
8452 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8453 _internal_metadata_.unknown_fields(), target);
8454 }
8455 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvTensorResponse)
8456 return target;
8457}
8458
8459size_t RecvTensorResponse::ByteSizeLong() const {
8460// @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvTensorResponse)
8461 size_t total_size = 0;
8462
8463 if (_internal_metadata_.have_unknown_fields()) {
8464 total_size +=
8465 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8466 _internal_metadata_.unknown_fields());
8467 }
8468 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8469 // Prevent compiler warnings about cached_has_bits being unused
8470 (void) cached_has_bits;
8471
8472 // .tensorflow.TensorProto tensor = 1;
8473 if (this->has_tensor()) {
8474 total_size += 1 +
8475 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8476 *tensor_);
8477 }
8478
8479 // .google.protobuf.Any transport_options = 4;
8480 if (this->has_transport_options()) {
8481 total_size += 1 +
8482 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8483 *transport_options_);
8484 }
8485
8486 // int64 send_start_micros = 3;
8487 if (this->send_start_micros() != 0) {
8488 total_size += 1 +
8489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
8490 this->send_start_micros());
8491 }
8492
8493 // bool is_dead = 2;
8494 if (this->is_dead() != 0) {
8495 total_size += 1 + 1;
8496 }
8497
8498 // bool require_ack = 5;
8499 if (this->require_ack() != 0) {
8500 total_size += 1 + 1;
8501 }
8502
8503 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8504 SetCachedSize(cached_size);
8505 return total_size;
8506}
8507
8508void RecvTensorResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8509// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RecvTensorResponse)
8510 GOOGLE_DCHECK_NE(&from, this);
8511 const RecvTensorResponse* source =
8512 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecvTensorResponse>(
8513 &from);
8514 if (source == nullptr) {
8515 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RecvTensorResponse)
8516 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8517 } else {
8518 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RecvTensorResponse)
8519 MergeFrom(*source);
8520 }
8521}
8522
8523void RecvTensorResponse::MergeFrom(const RecvTensorResponse& from) {
8524// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvTensorResponse)
8525 GOOGLE_DCHECK_NE(&from, this);
8526 _internal_metadata_.MergeFrom(from._internal_metadata_);
8527 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8528 (void) cached_has_bits;
8529
8530 if (from.has_tensor()) {
8531 mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor());
8532 }
8533 if (from.has_transport_options()) {
8534 mutable_transport_options()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.transport_options());
8535 }
8536 if (from.send_start_micros() != 0) {
8537 set_send_start_micros(from.send_start_micros());
8538 }
8539 if (from.is_dead() != 0) {
8540 set_is_dead(from.is_dead());
8541 }
8542 if (from.require_ack() != 0) {
8543 set_require_ack(from.require_ack());
8544 }
8545}
8546
8547void RecvTensorResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8548// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RecvTensorResponse)
8549 if (&from == this) return;
8550 Clear();
8551 MergeFrom(from);
8552}
8553
8554void RecvTensorResponse::CopyFrom(const RecvTensorResponse& from) {
8555// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvTensorResponse)
8556 if (&from == this) return;
8557 Clear();
8558 MergeFrom(from);
8559}
8560
8561bool RecvTensorResponse::IsInitialized() const {
8562 return true;
8563}
8564
8565void RecvTensorResponse::InternalSwap(RecvTensorResponse* other) {
8566 using std::swap;
8567 _internal_metadata_.Swap(&other->_internal_metadata_);
8568 swap(tensor_, other->tensor_);
8569 swap(transport_options_, other->transport_options_);
8570 swap(send_start_micros_, other->send_start_micros_);
8571 swap(is_dead_, other->is_dead_);
8572 swap(require_ack_, other->require_ack_);
8573}
8574
8575::PROTOBUF_NAMESPACE_ID::Metadata RecvTensorResponse::GetMetadata() const {
8576 return GetMetadataStatic();
8577}
8578
8579
8580// ===================================================================
8581
8582void MarkRecvFinishedRequest::InitAsDefaultInstance() {
8583}
8584class MarkRecvFinishedRequest::_Internal {
8585 public:
8586};
8587
8588MarkRecvFinishedRequest::MarkRecvFinishedRequest()
8589 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8590 SharedCtor();
8591 // @@protoc_insertion_point(constructor:tensorflow.MarkRecvFinishedRequest)
8592}
8593MarkRecvFinishedRequest::MarkRecvFinishedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
8594 : ::PROTOBUF_NAMESPACE_ID::Message(),
8595 _internal_metadata_(arena) {
8596 SharedCtor();
8597 RegisterArenaDtor(arena);
8598 // @@protoc_insertion_point(arena_constructor:tensorflow.MarkRecvFinishedRequest)
8599}
8600MarkRecvFinishedRequest::MarkRecvFinishedRequest(const MarkRecvFinishedRequest& from)
8601 : ::PROTOBUF_NAMESPACE_ID::Message(),
8602 _internal_metadata_(nullptr) {
8603 _internal_metadata_.MergeFrom(from._internal_metadata_);
8604 request_id_ = from.request_id_;
8605 // @@protoc_insertion_point(copy_constructor:tensorflow.MarkRecvFinishedRequest)
8606}
8607
8608void MarkRecvFinishedRequest::SharedCtor() {
8609 request_id_ = PROTOBUF_LONGLONG(0);
8610}
8611
8612MarkRecvFinishedRequest::~MarkRecvFinishedRequest() {
8613 // @@protoc_insertion_point(destructor:tensorflow.MarkRecvFinishedRequest)
8614 SharedDtor();
8615}
8616
8617void MarkRecvFinishedRequest::SharedDtor() {
8618 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
8619}
8620
8621void MarkRecvFinishedRequest::ArenaDtor(void* object) {
8622 MarkRecvFinishedRequest* _this = reinterpret_cast< MarkRecvFinishedRequest* >(object);
8623 (void)_this;
8624}
8625void MarkRecvFinishedRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
8626}
8627void MarkRecvFinishedRequest::SetCachedSize(int size) const {
8628 _cached_size_.Set(size);
8629}
8630const MarkRecvFinishedRequest& MarkRecvFinishedRequest::default_instance() {
8631 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarkRecvFinishedRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
8632 return *internal_default_instance();
8633}
8634
8635
8636void MarkRecvFinishedRequest::Clear() {
8637// @@protoc_insertion_point(message_clear_start:tensorflow.MarkRecvFinishedRequest)
8638 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8639 // Prevent compiler warnings about cached_has_bits being unused
8640 (void) cached_has_bits;
8641
8642 request_id_ = PROTOBUF_LONGLONG(0);
8643 _internal_metadata_.Clear();
8644}
8645
8646#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8647const char* MarkRecvFinishedRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8648#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8649 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
8650 while (!ctx->Done(&ptr)) {
8651 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8652 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8653 CHK_(ptr);
8654 switch (tag >> 3) {
8655 // int64 request_id = 1;
8656 case 1:
8657 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
8658 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8659 CHK_(ptr);
8660 } else goto handle_unusual;
8661 continue;
8662 default: {
8663 handle_unusual:
8664 if ((tag & 7) == 4 || tag == 0) {
8665 ctx->SetLastTag(tag);
8666 goto success;
8667 }
8668 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8669 CHK_(ptr != nullptr);
8670 continue;
8671 }
8672 } // switch
8673 } // while
8674success:
8675 return ptr;
8676failure:
8677 ptr = nullptr;
8678 goto success;
8679#undef CHK_
8680}
8681#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8682bool MarkRecvFinishedRequest::MergePartialFromCodedStream(
8683 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8684#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8685 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8686 // @@protoc_insertion_point(parse_start:tensorflow.MarkRecvFinishedRequest)
8687 for (;;) {
8688 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8689 tag = p.first;
8690 if (!p.second) goto handle_unusual;
8691 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8692 // int64 request_id = 1;
8693 case 1: {
8694 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
8695
8696 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8697 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
8698 input, &request_id_)));
8699 } else {
8700 goto handle_unusual;
8701 }
8702 break;
8703 }
8704
8705 default: {
8706 handle_unusual:
8707 if (tag == 0) {
8708 goto success;
8709 }
8710 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8711 input, tag, _internal_metadata_.mutable_unknown_fields()));
8712 break;
8713 }
8714 }
8715 }
8716success:
8717 // @@protoc_insertion_point(parse_success:tensorflow.MarkRecvFinishedRequest)
8718 return true;
8719failure:
8720 // @@protoc_insertion_point(parse_failure:tensorflow.MarkRecvFinishedRequest)
8721 return false;
8722#undef DO_
8723}
8724#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8725
8726void MarkRecvFinishedRequest::SerializeWithCachedSizes(
8727 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8728 // @@protoc_insertion_point(serialize_start:tensorflow.MarkRecvFinishedRequest)
8729 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8730 (void) cached_has_bits;
8731
8732 // int64 request_id = 1;
8733 if (this->request_id() != 0) {
8734 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->request_id(), output);
8735 }
8736
8737 if (_internal_metadata_.have_unknown_fields()) {
8738 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8739 _internal_metadata_.unknown_fields(), output);
8740 }
8741 // @@protoc_insertion_point(serialize_end:tensorflow.MarkRecvFinishedRequest)
8742}
8743
8744::PROTOBUF_NAMESPACE_ID::uint8* MarkRecvFinishedRequest::InternalSerializeWithCachedSizesToArray(
8745 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8746 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MarkRecvFinishedRequest)
8747 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8748 (void) cached_has_bits;
8749
8750 // int64 request_id = 1;
8751 if (this->request_id() != 0) {
8752 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->request_id(), target);
8753 }
8754
8755 if (_internal_metadata_.have_unknown_fields()) {
8756 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8757 _internal_metadata_.unknown_fields(), target);
8758 }
8759 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MarkRecvFinishedRequest)
8760 return target;
8761}
8762
8763size_t MarkRecvFinishedRequest::ByteSizeLong() const {
8764// @@protoc_insertion_point(message_byte_size_start:tensorflow.MarkRecvFinishedRequest)
8765 size_t total_size = 0;
8766
8767 if (_internal_metadata_.have_unknown_fields()) {
8768 total_size +=
8769 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8770 _internal_metadata_.unknown_fields());
8771 }
8772 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8773 // Prevent compiler warnings about cached_has_bits being unused
8774 (void) cached_has_bits;
8775
8776 // int64 request_id = 1;
8777 if (this->request_id() != 0) {
8778 total_size += 1 +
8779 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
8780 this->request_id());
8781 }
8782
8783 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8784 SetCachedSize(cached_size);
8785 return total_size;
8786}
8787
8788void MarkRecvFinishedRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8789// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MarkRecvFinishedRequest)
8790 GOOGLE_DCHECK_NE(&from, this);
8791 const MarkRecvFinishedRequest* source =
8792 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MarkRecvFinishedRequest>(
8793 &from);
8794 if (source == nullptr) {
8795 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MarkRecvFinishedRequest)
8796 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8797 } else {
8798 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MarkRecvFinishedRequest)
8799 MergeFrom(*source);
8800 }
8801}
8802
8803void MarkRecvFinishedRequest::MergeFrom(const MarkRecvFinishedRequest& from) {
8804// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MarkRecvFinishedRequest)
8805 GOOGLE_DCHECK_NE(&from, this);
8806 _internal_metadata_.MergeFrom(from._internal_metadata_);
8807 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8808 (void) cached_has_bits;
8809
8810 if (from.request_id() != 0) {
8811 set_request_id(from.request_id());
8812 }
8813}
8814
8815void MarkRecvFinishedRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8816// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MarkRecvFinishedRequest)
8817 if (&from == this) return;
8818 Clear();
8819 MergeFrom(from);
8820}
8821
8822void MarkRecvFinishedRequest::CopyFrom(const MarkRecvFinishedRequest& from) {
8823// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MarkRecvFinishedRequest)
8824 if (&from == this) return;
8825 Clear();
8826 MergeFrom(from);
8827}
8828
8829bool MarkRecvFinishedRequest::IsInitialized() const {
8830 return true;
8831}
8832
8833void MarkRecvFinishedRequest::InternalSwap(MarkRecvFinishedRequest* other) {
8834 using std::swap;
8835 _internal_metadata_.Swap(&other->_internal_metadata_);
8836 swap(request_id_, other->request_id_);
8837}
8838
8839::PROTOBUF_NAMESPACE_ID::Metadata MarkRecvFinishedRequest::GetMetadata() const {
8840 return GetMetadataStatic();
8841}
8842
8843
8844// ===================================================================
8845
8846void MarkRecvFinishedResponse::InitAsDefaultInstance() {
8847}
8848class MarkRecvFinishedResponse::_Internal {
8849 public:
8850};
8851
8852MarkRecvFinishedResponse::MarkRecvFinishedResponse()
8853 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8854 SharedCtor();
8855 // @@protoc_insertion_point(constructor:tensorflow.MarkRecvFinishedResponse)
8856}
8857MarkRecvFinishedResponse::MarkRecvFinishedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
8858 : ::PROTOBUF_NAMESPACE_ID::Message(),
8859 _internal_metadata_(arena) {
8860 SharedCtor();
8861 RegisterArenaDtor(arena);
8862 // @@protoc_insertion_point(arena_constructor:tensorflow.MarkRecvFinishedResponse)
8863}
8864MarkRecvFinishedResponse::MarkRecvFinishedResponse(const MarkRecvFinishedResponse& from)
8865 : ::PROTOBUF_NAMESPACE_ID::Message(),
8866 _internal_metadata_(nullptr) {
8867 _internal_metadata_.MergeFrom(from._internal_metadata_);
8868 // @@protoc_insertion_point(copy_constructor:tensorflow.MarkRecvFinishedResponse)
8869}
8870
8871void MarkRecvFinishedResponse::SharedCtor() {
8872}
8873
8874MarkRecvFinishedResponse::~MarkRecvFinishedResponse() {
8875 // @@protoc_insertion_point(destructor:tensorflow.MarkRecvFinishedResponse)
8876 SharedDtor();
8877}
8878
8879void MarkRecvFinishedResponse::SharedDtor() {
8880 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
8881}
8882
8883void MarkRecvFinishedResponse::ArenaDtor(void* object) {
8884 MarkRecvFinishedResponse* _this = reinterpret_cast< MarkRecvFinishedResponse* >(object);
8885 (void)_this;
8886}
8887void MarkRecvFinishedResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
8888}
8889void MarkRecvFinishedResponse::SetCachedSize(int size) const {
8890 _cached_size_.Set(size);
8891}
8892const MarkRecvFinishedResponse& MarkRecvFinishedResponse::default_instance() {
8893 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarkRecvFinishedResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
8894 return *internal_default_instance();
8895}
8896
8897
8898void MarkRecvFinishedResponse::Clear() {
8899// @@protoc_insertion_point(message_clear_start:tensorflow.MarkRecvFinishedResponse)
8900 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8901 // Prevent compiler warnings about cached_has_bits being unused
8902 (void) cached_has_bits;
8903
8904 _internal_metadata_.Clear();
8905}
8906
8907#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8908const char* MarkRecvFinishedResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8909#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8910 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
8911 while (!ctx->Done(&ptr)) {
8912 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8913 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8914 CHK_(ptr);
8915 switch (tag >> 3) {
8916 default: {
8917 if ((tag & 7) == 4 || tag == 0) {
8918 ctx->SetLastTag(tag);
8919 goto success;
8920 }
8921 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8922 CHK_(ptr != nullptr);
8923 continue;
8924 }
8925 } // switch
8926 } // while
8927success:
8928 return ptr;
8929failure:
8930 ptr = nullptr;
8931 goto success;
8932#undef CHK_
8933}
8934#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8935bool MarkRecvFinishedResponse::MergePartialFromCodedStream(
8936 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8937#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8938 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8939 // @@protoc_insertion_point(parse_start:tensorflow.MarkRecvFinishedResponse)
8940 for (;;) {
8941 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8942 tag = p.first;
8943 if (!p.second) goto handle_unusual;
8944 handle_unusual:
8945 if (tag == 0) {
8946 goto success;
8947 }
8948 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8949 input, tag, _internal_metadata_.mutable_unknown_fields()));
8950 }
8951success:
8952 // @@protoc_insertion_point(parse_success:tensorflow.MarkRecvFinishedResponse)
8953 return true;
8954failure:
8955 // @@protoc_insertion_point(parse_failure:tensorflow.MarkRecvFinishedResponse)
8956 return false;
8957#undef DO_
8958}
8959#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8960
8961void MarkRecvFinishedResponse::SerializeWithCachedSizes(
8962 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8963 // @@protoc_insertion_point(serialize_start:tensorflow.MarkRecvFinishedResponse)
8964 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8965 (void) cached_has_bits;
8966
8967 if (_internal_metadata_.have_unknown_fields()) {
8968 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8969 _internal_metadata_.unknown_fields(), output);
8970 }
8971 // @@protoc_insertion_point(serialize_end:tensorflow.MarkRecvFinishedResponse)
8972}
8973
8974::PROTOBUF_NAMESPACE_ID::uint8* MarkRecvFinishedResponse::InternalSerializeWithCachedSizesToArray(
8975 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8976 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MarkRecvFinishedResponse)
8977 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8978 (void) cached_has_bits;
8979
8980 if (_internal_metadata_.have_unknown_fields()) {
8981 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8982 _internal_metadata_.unknown_fields(), target);
8983 }
8984 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MarkRecvFinishedResponse)
8985 return target;
8986}
8987
8988size_t MarkRecvFinishedResponse::ByteSizeLong() const {
8989// @@protoc_insertion_point(message_byte_size_start:tensorflow.MarkRecvFinishedResponse)
8990 size_t total_size = 0;
8991
8992 if (_internal_metadata_.have_unknown_fields()) {
8993 total_size +=
8994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8995 _internal_metadata_.unknown_fields());
8996 }
8997 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8998 // Prevent compiler warnings about cached_has_bits being unused
8999 (void) cached_has_bits;
9000
9001 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9002 SetCachedSize(cached_size);
9003 return total_size;
9004}
9005
9006void MarkRecvFinishedResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9007// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MarkRecvFinishedResponse)
9008 GOOGLE_DCHECK_NE(&from, this);
9009 const MarkRecvFinishedResponse* source =
9010 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MarkRecvFinishedResponse>(
9011 &from);
9012 if (source == nullptr) {
9013 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MarkRecvFinishedResponse)
9014 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9015 } else {
9016 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MarkRecvFinishedResponse)
9017 MergeFrom(*source);
9018 }
9019}
9020
9021void MarkRecvFinishedResponse::MergeFrom(const MarkRecvFinishedResponse& from) {
9022// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MarkRecvFinishedResponse)
9023 GOOGLE_DCHECK_NE(&from, this);
9024 _internal_metadata_.MergeFrom(from._internal_metadata_);
9025 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9026 (void) cached_has_bits;
9027
9028}
9029
9030void MarkRecvFinishedResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9031// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MarkRecvFinishedResponse)
9032 if (&from == this) return;
9033 Clear();
9034 MergeFrom(from);
9035}
9036
9037void MarkRecvFinishedResponse::CopyFrom(const MarkRecvFinishedResponse& from) {
9038// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MarkRecvFinishedResponse)
9039 if (&from == this) return;
9040 Clear();
9041 MergeFrom(from);
9042}
9043
9044bool MarkRecvFinishedResponse::IsInitialized() const {
9045 return true;
9046}
9047
9048void MarkRecvFinishedResponse::InternalSwap(MarkRecvFinishedResponse* other) {
9049 using std::swap;
9050 _internal_metadata_.Swap(&other->_internal_metadata_);
9051}
9052
9053::PROTOBUF_NAMESPACE_ID::Metadata MarkRecvFinishedResponse::GetMetadata() const {
9054 return GetMetadataStatic();
9055}
9056
9057
9058// ===================================================================
9059
9060void LoggingRequest::InitAsDefaultInstance() {
9061}
9062class LoggingRequest::_Internal {
9063 public:
9064};
9065
9066LoggingRequest::LoggingRequest()
9067 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9068 SharedCtor();
9069 // @@protoc_insertion_point(constructor:tensorflow.LoggingRequest)
9070}
9071LoggingRequest::LoggingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
9072 : ::PROTOBUF_NAMESPACE_ID::Message(),
9073 _internal_metadata_(arena),
9074 fetch_step_id_(arena) {
9075 SharedCtor();
9076 RegisterArenaDtor(arena);
9077 // @@protoc_insertion_point(arena_constructor:tensorflow.LoggingRequest)
9078}
9079LoggingRequest::LoggingRequest(const LoggingRequest& from)
9080 : ::PROTOBUF_NAMESPACE_ID::Message(),
9081 _internal_metadata_(nullptr),
9082 fetch_step_id_(from.fetch_step_id_) {
9083 _internal_metadata_.MergeFrom(from._internal_metadata_);
9084 ::memcpy(&enable_rpc_logging_, &from.enable_rpc_logging_,
9085 static_cast<size_t>(reinterpret_cast<char*>(&clear_) -
9086 reinterpret_cast<char*>(&enable_rpc_logging_)) + sizeof(clear_));
9087 // @@protoc_insertion_point(copy_constructor:tensorflow.LoggingRequest)
9088}
9089
9090void LoggingRequest::SharedCtor() {
9091 ::memset(&enable_rpc_logging_, 0, static_cast<size_t>(
9092 reinterpret_cast<char*>(&clear_) -
9093 reinterpret_cast<char*>(&enable_rpc_logging_)) + sizeof(clear_));
9094}
9095
9096LoggingRequest::~LoggingRequest() {
9097 // @@protoc_insertion_point(destructor:tensorflow.LoggingRequest)
9098 SharedDtor();
9099}
9100
9101void LoggingRequest::SharedDtor() {
9102 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
9103}
9104
9105void LoggingRequest::ArenaDtor(void* object) {
9106 LoggingRequest* _this = reinterpret_cast< LoggingRequest* >(object);
9107 (void)_this;
9108}
9109void LoggingRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
9110}
9111void LoggingRequest::SetCachedSize(int size) const {
9112 _cached_size_.Set(size);
9113}
9114const LoggingRequest& LoggingRequest::default_instance() {
9115 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LoggingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
9116 return *internal_default_instance();
9117}
9118
9119
9120void LoggingRequest::Clear() {
9121// @@protoc_insertion_point(message_clear_start:tensorflow.LoggingRequest)
9122 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9123 // Prevent compiler warnings about cached_has_bits being unused
9124 (void) cached_has_bits;
9125
9126 fetch_step_id_.Clear();
9127 ::memset(&enable_rpc_logging_, 0, static_cast<size_t>(
9128 reinterpret_cast<char*>(&clear_) -
9129 reinterpret_cast<char*>(&enable_rpc_logging_)) + sizeof(clear_));
9130 _internal_metadata_.Clear();
9131}
9132
9133#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9134const char* LoggingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9135#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9136 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
9137 while (!ctx->Done(&ptr)) {
9138 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9139 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9140 CHK_(ptr);
9141 switch (tag >> 3) {
9142 // bool enable_rpc_logging = 1;
9143 case 1:
9144 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
9145 enable_rpc_logging_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9146 CHK_(ptr);
9147 } else goto handle_unusual;
9148 continue;
9149 // bool clear = 2;
9150 case 2:
9151 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
9152 clear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9153 CHK_(ptr);
9154 } else goto handle_unusual;
9155 continue;
9156 // repeated int64 fetch_step_id = 3;
9157 case 3:
9158 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
9159 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_fetch_step_id(), ptr, ctx);
9160 CHK_(ptr);
9161 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
9162 add_fetch_step_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
9163 CHK_(ptr);
9164 } else goto handle_unusual;
9165 continue;
9166 // bool disable_rpc_logging = 4;
9167 case 4:
9168 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
9169 disable_rpc_logging_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9170 CHK_(ptr);
9171 } else goto handle_unusual;
9172 continue;
9173 default: {
9174 handle_unusual:
9175 if ((tag & 7) == 4 || tag == 0) {
9176 ctx->SetLastTag(tag);
9177 goto success;
9178 }
9179 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9180 CHK_(ptr != nullptr);
9181 continue;
9182 }
9183 } // switch
9184 } // while
9185success:
9186 return ptr;
9187failure:
9188 ptr = nullptr;
9189 goto success;
9190#undef CHK_
9191}
9192#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9193bool LoggingRequest::MergePartialFromCodedStream(
9194 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9195#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9196 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9197 // @@protoc_insertion_point(parse_start:tensorflow.LoggingRequest)
9198 for (;;) {
9199 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9200 tag = p.first;
9201 if (!p.second) goto handle_unusual;
9202 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9203 // bool enable_rpc_logging = 1;
9204 case 1: {
9205 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
9206
9207 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9208 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9209 input, &enable_rpc_logging_)));
9210 } else {
9211 goto handle_unusual;
9212 }
9213 break;
9214 }
9215
9216 // bool clear = 2;
9217 case 2: {
9218 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
9219
9220 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9221 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9222 input, &clear_)));
9223 } else {
9224 goto handle_unusual;
9225 }
9226 break;
9227 }
9228
9229 // repeated int64 fetch_step_id = 3;
9230 case 3: {
9231 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
9232 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
9233 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
9234 input, this->mutable_fetch_step_id())));
9235 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
9236 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
9237 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
9238 1, 26u, input, this->mutable_fetch_step_id())));
9239 } else {
9240 goto handle_unusual;
9241 }
9242 break;
9243 }
9244
9245 // bool disable_rpc_logging = 4;
9246 case 4: {
9247 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
9248
9249 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9250 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9251 input, &disable_rpc_logging_)));
9252 } else {
9253 goto handle_unusual;
9254 }
9255 break;
9256 }
9257
9258 default: {
9259 handle_unusual:
9260 if (tag == 0) {
9261 goto success;
9262 }
9263 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9264 input, tag, _internal_metadata_.mutable_unknown_fields()));
9265 break;
9266 }
9267 }
9268 }
9269success:
9270 // @@protoc_insertion_point(parse_success:tensorflow.LoggingRequest)
9271 return true;
9272failure:
9273 // @@protoc_insertion_point(parse_failure:tensorflow.LoggingRequest)
9274 return false;
9275#undef DO_
9276}
9277#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9278
9279void LoggingRequest::SerializeWithCachedSizes(
9280 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9281 // @@protoc_insertion_point(serialize_start:tensorflow.LoggingRequest)
9282 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9283 (void) cached_has_bits;
9284
9285 // bool enable_rpc_logging = 1;
9286 if (this->enable_rpc_logging() != 0) {
9287 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1, this->enable_rpc_logging(), output);
9288 }
9289
9290 // bool clear = 2;
9291 if (this->clear() != 0) {
9292 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->clear(), output);
9293 }
9294
9295 // repeated int64 fetch_step_id = 3;
9296 if (this->fetch_step_id_size() > 0) {
9297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
9298 output->WriteVarint32(_fetch_step_id_cached_byte_size_.load(
9299 std::memory_order_relaxed));
9300 }
9301 for (int i = 0, n = this->fetch_step_id_size(); i < n; i++) {
9302 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
9303 this->fetch_step_id(i), output);
9304 }
9305
9306 // bool disable_rpc_logging = 4;
9307 if (this->disable_rpc_logging() != 0) {
9308 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->disable_rpc_logging(), output);
9309 }
9310
9311 if (_internal_metadata_.have_unknown_fields()) {
9312 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9313 _internal_metadata_.unknown_fields(), output);
9314 }
9315 // @@protoc_insertion_point(serialize_end:tensorflow.LoggingRequest)
9316}
9317
9318::PROTOBUF_NAMESPACE_ID::uint8* LoggingRequest::InternalSerializeWithCachedSizesToArray(
9319 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9320 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.LoggingRequest)
9321 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9322 (void) cached_has_bits;
9323
9324 // bool enable_rpc_logging = 1;
9325 if (this->enable_rpc_logging() != 0) {
9326 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->enable_rpc_logging(), target);
9327 }
9328
9329 // bool clear = 2;
9330 if (this->clear() != 0) {
9331 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->clear(), target);
9332 }
9333
9334 // repeated int64 fetch_step_id = 3;
9335 if (this->fetch_step_id_size() > 0) {
9336 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
9337 3,
9338 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
9339 target);
9340 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
9341 _fetch_step_id_cached_byte_size_.load(std::memory_order_relaxed),
9342 target);
9343 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9344 WriteInt64NoTagToArray(this->fetch_step_id_, target);
9345 }
9346
9347 // bool disable_rpc_logging = 4;
9348 if (this->disable_rpc_logging() != 0) {
9349 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->disable_rpc_logging(), target);
9350 }
9351
9352 if (_internal_metadata_.have_unknown_fields()) {
9353 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9354 _internal_metadata_.unknown_fields(), target);
9355 }
9356 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.LoggingRequest)
9357 return target;
9358}
9359
9360size_t LoggingRequest::ByteSizeLong() const {
9361// @@protoc_insertion_point(message_byte_size_start:tensorflow.LoggingRequest)
9362 size_t total_size = 0;
9363
9364 if (_internal_metadata_.have_unknown_fields()) {
9365 total_size +=
9366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9367 _internal_metadata_.unknown_fields());
9368 }
9369 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9370 // Prevent compiler warnings about cached_has_bits being unused
9371 (void) cached_has_bits;
9372
9373 // repeated int64 fetch_step_id = 3;
9374 {
9375 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9376 Int64Size(this->fetch_step_id_);
9377 if (data_size > 0) {
9378 total_size += 1 +
9379 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
9380 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
9381 }
9382 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
9383 _fetch_step_id_cached_byte_size_.store(cached_size,
9384 std::memory_order_relaxed);
9385 total_size += data_size;
9386 }
9387
9388 // bool enable_rpc_logging = 1;
9389 if (this->enable_rpc_logging() != 0) {
9390 total_size += 1 + 1;
9391 }
9392
9393 // bool disable_rpc_logging = 4;
9394 if (this->disable_rpc_logging() != 0) {
9395 total_size += 1 + 1;
9396 }
9397
9398 // bool clear = 2;
9399 if (this->clear() != 0) {
9400 total_size += 1 + 1;
9401 }
9402
9403 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9404 SetCachedSize(cached_size);
9405 return total_size;
9406}
9407
9408void LoggingRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9409// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.LoggingRequest)
9410 GOOGLE_DCHECK_NE(&from, this);
9411 const LoggingRequest* source =
9412 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LoggingRequest>(
9413 &from);
9414 if (source == nullptr) {
9415 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.LoggingRequest)
9416 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9417 } else {
9418 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.LoggingRequest)
9419 MergeFrom(*source);
9420 }
9421}
9422
9423void LoggingRequest::MergeFrom(const LoggingRequest& from) {
9424// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.LoggingRequest)
9425 GOOGLE_DCHECK_NE(&from, this);
9426 _internal_metadata_.MergeFrom(from._internal_metadata_);
9427 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9428 (void) cached_has_bits;
9429
9430 fetch_step_id_.MergeFrom(from.fetch_step_id_);
9431 if (from.enable_rpc_logging() != 0) {
9432 set_enable_rpc_logging(from.enable_rpc_logging());
9433 }
9434 if (from.disable_rpc_logging() != 0) {
9435 set_disable_rpc_logging(from.disable_rpc_logging());
9436 }
9437 if (from.clear() != 0) {
9438 set_clear(from.clear());
9439 }
9440}
9441
9442void LoggingRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9443// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.LoggingRequest)
9444 if (&from == this) return;
9445 Clear();
9446 MergeFrom(from);
9447}
9448
9449void LoggingRequest::CopyFrom(const LoggingRequest& from) {
9450// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.LoggingRequest)
9451 if (&from == this) return;
9452 Clear();
9453 MergeFrom(from);
9454}
9455
9456bool LoggingRequest::IsInitialized() const {
9457 return true;
9458}
9459
9460void LoggingRequest::InternalSwap(LoggingRequest* other) {
9461 using std::swap;
9462 _internal_metadata_.Swap(&other->_internal_metadata_);
9463 fetch_step_id_.InternalSwap(&other->fetch_step_id_);
9464 swap(enable_rpc_logging_, other->enable_rpc_logging_);
9465 swap(disable_rpc_logging_, other->disable_rpc_logging_);
9466 swap(clear_, other->clear_);
9467}
9468
9469::PROTOBUF_NAMESPACE_ID::Metadata LoggingRequest::GetMetadata() const {
9470 return GetMetadataStatic();
9471}
9472
9473
9474// ===================================================================
9475
9476void LabeledStepStats::InitAsDefaultInstance() {
9477 ::tensorflow::_LabeledStepStats_default_instance_._instance.get_mutable()->step_stats_ = const_cast< ::tensorflow::StepStats*>(
9478 ::tensorflow::StepStats::internal_default_instance());
9479}
9480class LabeledStepStats::_Internal {
9481 public:
9482 static const ::tensorflow::StepStats& step_stats(const LabeledStepStats* msg);
9483};
9484
9485const ::tensorflow::StepStats&
9486LabeledStepStats::_Internal::step_stats(const LabeledStepStats* msg) {
9487 return *msg->step_stats_;
9488}
9489void LabeledStepStats::unsafe_arena_set_allocated_step_stats(
9490 ::tensorflow::StepStats* step_stats) {
9491 if (GetArenaNoVirtual() == nullptr) {
9492 delete step_stats_;
9493 }
9494 step_stats_ = step_stats;
9495 if (step_stats) {
9496
9497 } else {
9498
9499 }
9500 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.LabeledStepStats.step_stats)
9501}
9502void LabeledStepStats::clear_step_stats() {
9503 if (GetArenaNoVirtual() == nullptr && step_stats_ != nullptr) {
9504 delete step_stats_;
9505 }
9506 step_stats_ = nullptr;
9507}
9508LabeledStepStats::LabeledStepStats()
9509 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9510 SharedCtor();
9511 // @@protoc_insertion_point(constructor:tensorflow.LabeledStepStats)
9512}
9513LabeledStepStats::LabeledStepStats(::PROTOBUF_NAMESPACE_ID::Arena* arena)
9514 : ::PROTOBUF_NAMESPACE_ID::Message(),
9515 _internal_metadata_(arena) {
9516 SharedCtor();
9517 RegisterArenaDtor(arena);
9518 // @@protoc_insertion_point(arena_constructor:tensorflow.LabeledStepStats)
9519}
9520LabeledStepStats::LabeledStepStats(const LabeledStepStats& from)
9521 : ::PROTOBUF_NAMESPACE_ID::Message(),
9522 _internal_metadata_(nullptr) {
9523 _internal_metadata_.MergeFrom(from._internal_metadata_);
9524 if (from.has_step_stats()) {
9525 step_stats_ = new ::tensorflow::StepStats(*from.step_stats_);
9526 } else {
9527 step_stats_ = nullptr;
9528 }
9529 step_id_ = from.step_id_;
9530 // @@protoc_insertion_point(copy_constructor:tensorflow.LabeledStepStats)
9531}
9532
9533void LabeledStepStats::SharedCtor() {
9534 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
9535 ::memset(&step_stats_, 0, static_cast<size_t>(
9536 reinterpret_cast<char*>(&step_id_) -
9537 reinterpret_cast<char*>(&step_stats_)) + sizeof(step_id_));
9538}
9539
9540LabeledStepStats::~LabeledStepStats() {
9541 // @@protoc_insertion_point(destructor:tensorflow.LabeledStepStats)
9542 SharedDtor();
9543}
9544
9545void LabeledStepStats::SharedDtor() {
9546 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
9547 if (this != internal_default_instance()) delete step_stats_;
9548}
9549
9550void LabeledStepStats::ArenaDtor(void* object) {
9551 LabeledStepStats* _this = reinterpret_cast< LabeledStepStats* >(object);
9552 (void)_this;
9553}
9554void LabeledStepStats::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
9555}
9556void LabeledStepStats::SetCachedSize(int size) const {
9557 _cached_size_.Set(size);
9558}
9559const LabeledStepStats& LabeledStepStats::default_instance() {
9560 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LabeledStepStats_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
9561 return *internal_default_instance();
9562}
9563
9564
9565void LabeledStepStats::Clear() {
9566// @@protoc_insertion_point(message_clear_start:tensorflow.LabeledStepStats)
9567 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9568 // Prevent compiler warnings about cached_has_bits being unused
9569 (void) cached_has_bits;
9570
9571 if (GetArenaNoVirtual() == nullptr && step_stats_ != nullptr) {
9572 delete step_stats_;
9573 }
9574 step_stats_ = nullptr;
9575 step_id_ = PROTOBUF_LONGLONG(0);
9576 _internal_metadata_.Clear();
9577}
9578
9579#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9580const char* LabeledStepStats::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9581#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9582 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
9583 while (!ctx->Done(&ptr)) {
9584 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9585 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9586 CHK_(ptr);
9587 switch (tag >> 3) {
9588 // int64 step_id = 1;
9589 case 1:
9590 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
9591 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9592 CHK_(ptr);
9593 } else goto handle_unusual;
9594 continue;
9595 // .tensorflow.StepStats step_stats = 2;
9596 case 2:
9597 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
9598 ptr = ctx->ParseMessage(mutable_step_stats(), ptr);
9599 CHK_(ptr);
9600 } else goto handle_unusual;
9601 continue;
9602 default: {
9603 handle_unusual:
9604 if ((tag & 7) == 4 || tag == 0) {
9605 ctx->SetLastTag(tag);
9606 goto success;
9607 }
9608 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9609 CHK_(ptr != nullptr);
9610 continue;
9611 }
9612 } // switch
9613 } // while
9614success:
9615 return ptr;
9616failure:
9617 ptr = nullptr;
9618 goto success;
9619#undef CHK_
9620}
9621#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9622bool LabeledStepStats::MergePartialFromCodedStream(
9623 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9624#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9625 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9626 // @@protoc_insertion_point(parse_start:tensorflow.LabeledStepStats)
9627 for (;;) {
9628 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9629 tag = p.first;
9630 if (!p.second) goto handle_unusual;
9631 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9632 // int64 step_id = 1;
9633 case 1: {
9634 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
9635
9636 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9637 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
9638 input, &step_id_)));
9639 } else {
9640 goto handle_unusual;
9641 }
9642 break;
9643 }
9644
9645 // .tensorflow.StepStats step_stats = 2;
9646 case 2: {
9647 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
9648 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9649 input, mutable_step_stats()));
9650 } else {
9651 goto handle_unusual;
9652 }
9653 break;
9654 }
9655
9656 default: {
9657 handle_unusual:
9658 if (tag == 0) {
9659 goto success;
9660 }
9661 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9662 input, tag, _internal_metadata_.mutable_unknown_fields()));
9663 break;
9664 }
9665 }
9666 }
9667success:
9668 // @@protoc_insertion_point(parse_success:tensorflow.LabeledStepStats)
9669 return true;
9670failure:
9671 // @@protoc_insertion_point(parse_failure:tensorflow.LabeledStepStats)
9672 return false;
9673#undef DO_
9674}
9675#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9676
9677void LabeledStepStats::SerializeWithCachedSizes(
9678 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9679 // @@protoc_insertion_point(serialize_start:tensorflow.LabeledStepStats)
9680 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9681 (void) cached_has_bits;
9682
9683 // int64 step_id = 1;
9684 if (this->step_id() != 0) {
9685 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->step_id(), output);
9686 }
9687
9688 // .tensorflow.StepStats step_stats = 2;
9689 if (this->has_step_stats()) {
9690 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9691 2, _Internal::step_stats(this), output);
9692 }
9693
9694 if (_internal_metadata_.have_unknown_fields()) {
9695 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9696 _internal_metadata_.unknown_fields(), output);
9697 }
9698 // @@protoc_insertion_point(serialize_end:tensorflow.LabeledStepStats)
9699}
9700
9701::PROTOBUF_NAMESPACE_ID::uint8* LabeledStepStats::InternalSerializeWithCachedSizesToArray(
9702 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9703 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.LabeledStepStats)
9704 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9705 (void) cached_has_bits;
9706
9707 // int64 step_id = 1;
9708 if (this->step_id() != 0) {
9709 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->step_id(), target);
9710 }
9711
9712 // .tensorflow.StepStats step_stats = 2;
9713 if (this->has_step_stats()) {
9714 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9715 InternalWriteMessageToArray(
9716 2, _Internal::step_stats(this), target);
9717 }
9718
9719 if (_internal_metadata_.have_unknown_fields()) {
9720 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9721 _internal_metadata_.unknown_fields(), target);
9722 }
9723 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.LabeledStepStats)
9724 return target;
9725}
9726
9727size_t LabeledStepStats::ByteSizeLong() const {
9728// @@protoc_insertion_point(message_byte_size_start:tensorflow.LabeledStepStats)
9729 size_t total_size = 0;
9730
9731 if (_internal_metadata_.have_unknown_fields()) {
9732 total_size +=
9733 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9734 _internal_metadata_.unknown_fields());
9735 }
9736 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9737 // Prevent compiler warnings about cached_has_bits being unused
9738 (void) cached_has_bits;
9739
9740 // .tensorflow.StepStats step_stats = 2;
9741 if (this->has_step_stats()) {
9742 total_size += 1 +
9743 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9744 *step_stats_);
9745 }
9746
9747 // int64 step_id = 1;
9748 if (this->step_id() != 0) {
9749 total_size += 1 +
9750 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
9751 this->step_id());
9752 }
9753
9754 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9755 SetCachedSize(cached_size);
9756 return total_size;
9757}
9758
9759void LabeledStepStats::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9760// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.LabeledStepStats)
9761 GOOGLE_DCHECK_NE(&from, this);
9762 const LabeledStepStats* source =
9763 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LabeledStepStats>(
9764 &from);
9765 if (source == nullptr) {
9766 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.LabeledStepStats)
9767 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9768 } else {
9769 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.LabeledStepStats)
9770 MergeFrom(*source);
9771 }
9772}
9773
9774void LabeledStepStats::MergeFrom(const LabeledStepStats& from) {
9775// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.LabeledStepStats)
9776 GOOGLE_DCHECK_NE(&from, this);
9777 _internal_metadata_.MergeFrom(from._internal_metadata_);
9778 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9779 (void) cached_has_bits;
9780
9781 if (from.has_step_stats()) {
9782 mutable_step_stats()->::tensorflow::StepStats::MergeFrom(from.step_stats());
9783 }
9784 if (from.step_id() != 0) {
9785 set_step_id(from.step_id());
9786 }
9787}
9788
9789void LabeledStepStats::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9790// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.LabeledStepStats)
9791 if (&from == this) return;
9792 Clear();
9793 MergeFrom(from);
9794}
9795
9796void LabeledStepStats::CopyFrom(const LabeledStepStats& from) {
9797// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.LabeledStepStats)
9798 if (&from == this) return;
9799 Clear();
9800 MergeFrom(from);
9801}
9802
9803bool LabeledStepStats::IsInitialized() const {
9804 return true;
9805}
9806
9807void LabeledStepStats::InternalSwap(LabeledStepStats* other) {
9808 using std::swap;
9809 _internal_metadata_.Swap(&other->_internal_metadata_);
9810 swap(step_stats_, other->step_stats_);
9811 swap(step_id_, other->step_id_);
9812}
9813
9814::PROTOBUF_NAMESPACE_ID::Metadata LabeledStepStats::GetMetadata() const {
9815 return GetMetadataStatic();
9816}
9817
9818
9819// ===================================================================
9820
9821void LoggingResponse::InitAsDefaultInstance() {
9822}
9823class LoggingResponse::_Internal {
9824 public:
9825};
9826
9827LoggingResponse::LoggingResponse()
9828 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9829 SharedCtor();
9830 // @@protoc_insertion_point(constructor:tensorflow.LoggingResponse)
9831}
9832LoggingResponse::LoggingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
9833 : ::PROTOBUF_NAMESPACE_ID::Message(),
9834 _internal_metadata_(arena),
9835 step_(arena) {
9836 SharedCtor();
9837 RegisterArenaDtor(arena);
9838 // @@protoc_insertion_point(arena_constructor:tensorflow.LoggingResponse)
9839}
9840LoggingResponse::LoggingResponse(const LoggingResponse& from)
9841 : ::PROTOBUF_NAMESPACE_ID::Message(),
9842 _internal_metadata_(nullptr),
9843 step_(from.step_) {
9844 _internal_metadata_.MergeFrom(from._internal_metadata_);
9845 // @@protoc_insertion_point(copy_constructor:tensorflow.LoggingResponse)
9846}
9847
9848void LoggingResponse::SharedCtor() {
9849 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
9850}
9851
9852LoggingResponse::~LoggingResponse() {
9853 // @@protoc_insertion_point(destructor:tensorflow.LoggingResponse)
9854 SharedDtor();
9855}
9856
9857void LoggingResponse::SharedDtor() {
9858 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
9859}
9860
9861void LoggingResponse::ArenaDtor(void* object) {
9862 LoggingResponse* _this = reinterpret_cast< LoggingResponse* >(object);
9863 (void)_this;
9864}
9865void LoggingResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
9866}
9867void LoggingResponse::SetCachedSize(int size) const {
9868 _cached_size_.Set(size);
9869}
9870const LoggingResponse& LoggingResponse::default_instance() {
9871 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LoggingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
9872 return *internal_default_instance();
9873}
9874
9875
9876void LoggingResponse::Clear() {
9877// @@protoc_insertion_point(message_clear_start:tensorflow.LoggingResponse)
9878 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9879 // Prevent compiler warnings about cached_has_bits being unused
9880 (void) cached_has_bits;
9881
9882 step_.Clear();
9883 _internal_metadata_.Clear();
9884}
9885
9886#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9887const char* LoggingResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9888#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9889 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
9890 while (!ctx->Done(&ptr)) {
9891 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9892 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9893 CHK_(ptr);
9894 switch (tag >> 3) {
9895 // repeated .tensorflow.LabeledStepStats step = 1;
9896 case 1:
9897 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
9898 ptr -= 1;
9899 do {
9900 ptr += 1;
9901 ptr = ctx->ParseMessage(add_step(), ptr);
9902 CHK_(ptr);
9903 if (!ctx->DataAvailable(ptr)) break;
9904 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
9905 } else goto handle_unusual;
9906 continue;
9907 default: {
9908 handle_unusual:
9909 if ((tag & 7) == 4 || tag == 0) {
9910 ctx->SetLastTag(tag);
9911 goto success;
9912 }
9913 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9914 CHK_(ptr != nullptr);
9915 continue;
9916 }
9917 } // switch
9918 } // while
9919success:
9920 return ptr;
9921failure:
9922 ptr = nullptr;
9923 goto success;
9924#undef CHK_
9925}
9926#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9927bool LoggingResponse::MergePartialFromCodedStream(
9928 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9929#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9930 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9931 // @@protoc_insertion_point(parse_start:tensorflow.LoggingResponse)
9932 for (;;) {
9933 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9934 tag = p.first;
9935 if (!p.second) goto handle_unusual;
9936 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9937 // repeated .tensorflow.LabeledStepStats step = 1;
9938 case 1: {
9939 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
9940 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9941 input, add_step()));
9942 } else {
9943 goto handle_unusual;
9944 }
9945 break;
9946 }
9947
9948 default: {
9949 handle_unusual:
9950 if (tag == 0) {
9951 goto success;
9952 }
9953 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9954 input, tag, _internal_metadata_.mutable_unknown_fields()));
9955 break;
9956 }
9957 }
9958 }
9959success:
9960 // @@protoc_insertion_point(parse_success:tensorflow.LoggingResponse)
9961 return true;
9962failure:
9963 // @@protoc_insertion_point(parse_failure:tensorflow.LoggingResponse)
9964 return false;
9965#undef DO_
9966}
9967#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9968
9969void LoggingResponse::SerializeWithCachedSizes(
9970 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9971 // @@protoc_insertion_point(serialize_start:tensorflow.LoggingResponse)
9972 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9973 (void) cached_has_bits;
9974
9975 // repeated .tensorflow.LabeledStepStats step = 1;
9976 for (unsigned int i = 0,
9977 n = static_cast<unsigned int>(this->step_size()); i < n; i++) {
9978 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9979 1,
9980 this->step(static_cast<int>(i)),
9981 output);
9982 }
9983
9984 if (_internal_metadata_.have_unknown_fields()) {
9985 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9986 _internal_metadata_.unknown_fields(), output);
9987 }
9988 // @@protoc_insertion_point(serialize_end:tensorflow.LoggingResponse)
9989}
9990
9991::PROTOBUF_NAMESPACE_ID::uint8* LoggingResponse::InternalSerializeWithCachedSizesToArray(
9992 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9993 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.LoggingResponse)
9994 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9995 (void) cached_has_bits;
9996
9997 // repeated .tensorflow.LabeledStepStats step = 1;
9998 for (unsigned int i = 0,
9999 n = static_cast<unsigned int>(this->step_size()); i < n; i++) {
10000 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10001 InternalWriteMessageToArray(
10002 1, this->step(static_cast<int>(i)), target);
10003 }
10004
10005 if (_internal_metadata_.have_unknown_fields()) {
10006 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10007 _internal_metadata_.unknown_fields(), target);
10008 }
10009 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.LoggingResponse)
10010 return target;
10011}
10012
10013size_t LoggingResponse::ByteSizeLong() const {
10014// @@protoc_insertion_point(message_byte_size_start:tensorflow.LoggingResponse)
10015 size_t total_size = 0;
10016
10017 if (_internal_metadata_.have_unknown_fields()) {
10018 total_size +=
10019 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
10020 _internal_metadata_.unknown_fields());
10021 }
10022 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10023 // Prevent compiler warnings about cached_has_bits being unused
10024 (void) cached_has_bits;
10025
10026 // repeated .tensorflow.LabeledStepStats step = 1;
10027 {
10028 unsigned int count = static_cast<unsigned int>(this->step_size());
10029 total_size += 1UL * count;
10030 for (unsigned int i = 0; i < count; i++) {
10031 total_size +=
10032 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10033 this->step(static_cast<int>(i)));
10034 }
10035 }
10036
10037 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
10038 SetCachedSize(cached_size);
10039 return total_size;
10040}
10041
10042void LoggingResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10043// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.LoggingResponse)
10044 GOOGLE_DCHECK_NE(&from, this);
10045 const LoggingResponse* source =
10046 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LoggingResponse>(
10047 &from);
10048 if (source == nullptr) {
10049 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.LoggingResponse)
10050 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
10051 } else {
10052 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.LoggingResponse)
10053 MergeFrom(*source);
10054 }
10055}
10056
10057void LoggingResponse::MergeFrom(const LoggingResponse& from) {
10058// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.LoggingResponse)
10059 GOOGLE_DCHECK_NE(&from, this);
10060 _internal_metadata_.MergeFrom(from._internal_metadata_);
10061 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10062 (void) cached_has_bits;
10063
10064 step_.MergeFrom(from.step_);
10065}
10066
10067void LoggingResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10068// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.LoggingResponse)
10069 if (&from == this) return;
10070 Clear();
10071 MergeFrom(from);
10072}
10073
10074void LoggingResponse::CopyFrom(const LoggingResponse& from) {
10075// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.LoggingResponse)
10076 if (&from == this) return;
10077 Clear();
10078 MergeFrom(from);
10079}
10080
10081bool LoggingResponse::IsInitialized() const {
10082 return true;
10083}
10084
10085void LoggingResponse::InternalSwap(LoggingResponse* other) {
10086 using std::swap;
10087 _internal_metadata_.Swap(&other->_internal_metadata_);
10088 CastToBase(&step_)->InternalSwap(CastToBase(&other->step_));
10089}
10090
10091::PROTOBUF_NAMESPACE_ID::Metadata LoggingResponse::GetMetadata() const {
10092 return GetMetadataStatic();
10093}
10094
10095
10096// ===================================================================
10097
10098void TraceOpts::InitAsDefaultInstance() {
10099}
10100class TraceOpts::_Internal {
10101 public:
10102};
10103
10104TraceOpts::TraceOpts()
10105 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
10106 SharedCtor();
10107 // @@protoc_insertion_point(constructor:tensorflow.TraceOpts)
10108}
10109TraceOpts::TraceOpts(::PROTOBUF_NAMESPACE_ID::Arena* arena)
10110 : ::PROTOBUF_NAMESPACE_ID::Message(),
10111 _internal_metadata_(arena) {
10112 SharedCtor();
10113 RegisterArenaDtor(arena);
10114 // @@protoc_insertion_point(arena_constructor:tensorflow.TraceOpts)
10115}
10116TraceOpts::TraceOpts(const TraceOpts& from)
10117 : ::PROTOBUF_NAMESPACE_ID::Message(),
10118 _internal_metadata_(nullptr) {
10119 _internal_metadata_.MergeFrom(from._internal_metadata_);
10120 ::memcpy(&duration_, &from.duration_,
10121 static_cast<size_t>(reinterpret_cast<char*>(&use_sample_profiler_) -
10122 reinterpret_cast<char*>(&duration_)) + sizeof(use_sample_profiler_));
10123 // @@protoc_insertion_point(copy_constructor:tensorflow.TraceOpts)
10124}
10125
10126void TraceOpts::SharedCtor() {
10127 ::memset(&duration_, 0, static_cast<size_t>(
10128 reinterpret_cast<char*>(&use_sample_profiler_) -
10129 reinterpret_cast<char*>(&duration_)) + sizeof(use_sample_profiler_));
10130}
10131
10132TraceOpts::~TraceOpts() {
10133 // @@protoc_insertion_point(destructor:tensorflow.TraceOpts)
10134 SharedDtor();
10135}
10136
10137void TraceOpts::SharedDtor() {
10138 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
10139}
10140
10141void TraceOpts::ArenaDtor(void* object) {
10142 TraceOpts* _this = reinterpret_cast< TraceOpts* >(object);
10143 (void)_this;
10144}
10145void TraceOpts::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
10146}
10147void TraceOpts::SetCachedSize(int size) const {
10148 _cached_size_.Set(size);
10149}
10150const TraceOpts& TraceOpts::default_instance() {
10151 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TraceOpts_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
10152 return *internal_default_instance();
10153}
10154
10155
10156void TraceOpts::Clear() {
10157// @@protoc_insertion_point(message_clear_start:tensorflow.TraceOpts)
10158 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10159 // Prevent compiler warnings about cached_has_bits being unused
10160 (void) cached_has_bits;
10161
10162 ::memset(&duration_, 0, static_cast<size_t>(
10163 reinterpret_cast<char*>(&use_sample_profiler_) -
10164 reinterpret_cast<char*>(&duration_)) + sizeof(use_sample_profiler_));
10165 _internal_metadata_.Clear();
10166}
10167
10168#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10169const char* TraceOpts::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
10170#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10171 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
10172 while (!ctx->Done(&ptr)) {
10173 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10174 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
10175 CHK_(ptr);
10176 switch (tag >> 3) {
10177 // double duration = 1;
10178 case 1:
10179 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
10180 duration_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
10181 ptr += sizeof(double);
10182 } else goto handle_unusual;
10183 continue;
10184 // bool use_step_profiler = 2;
10185 case 2:
10186 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
10187 use_step_profiler_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10188 CHK_(ptr);
10189 } else goto handle_unusual;
10190 continue;
10191 // bool use_kernel_profiler = 3;
10192 case 3:
10193 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
10194 use_kernel_profiler_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10195 CHK_(ptr);
10196 } else goto handle_unusual;
10197 continue;
10198 // bool use_extended_profiler = 4;
10199 case 4:
10200 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
10201 use_extended_profiler_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10202 CHK_(ptr);
10203 } else goto handle_unusual;
10204 continue;
10205 // bool use_gpu_profiler = 5;
10206 case 5:
10207 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
10208 use_gpu_profiler_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10209 CHK_(ptr);
10210 } else goto handle_unusual;
10211 continue;
10212 // bool use_sample_profiler = 6;
10213 case 6:
10214 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
10215 use_sample_profiler_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10216 CHK_(ptr);
10217 } else goto handle_unusual;
10218 continue;
10219 default: {
10220 handle_unusual:
10221 if ((tag & 7) == 4 || tag == 0) {
10222 ctx->SetLastTag(tag);
10223 goto success;
10224 }
10225 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
10226 CHK_(ptr != nullptr);
10227 continue;
10228 }
10229 } // switch
10230 } // while
10231success:
10232 return ptr;
10233failure:
10234 ptr = nullptr;
10235 goto success;
10236#undef CHK_
10237}
10238#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10239bool TraceOpts::MergePartialFromCodedStream(
10240 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
10241#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10242 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10243 // @@protoc_insertion_point(parse_start:tensorflow.TraceOpts)
10244 for (;;) {
10245 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10246 tag = p.first;
10247 if (!p.second) goto handle_unusual;
10248 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10249 // double duration = 1;
10250 case 1: {
10251 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
10252
10253 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10254 double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
10255 input, &duration_)));
10256 } else {
10257 goto handle_unusual;
10258 }
10259 break;
10260 }
10261
10262 // bool use_step_profiler = 2;
10263 case 2: {
10264 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
10265
10266 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10267 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10268 input, &use_step_profiler_)));
10269 } else {
10270 goto handle_unusual;
10271 }
10272 break;
10273 }
10274
10275 // bool use_kernel_profiler = 3;
10276 case 3: {
10277 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
10278
10279 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10280 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10281 input, &use_kernel_profiler_)));
10282 } else {
10283 goto handle_unusual;
10284 }
10285 break;
10286 }
10287
10288 // bool use_extended_profiler = 4;
10289 case 4: {
10290 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
10291
10292 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10293 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10294 input, &use_extended_profiler_)));
10295 } else {
10296 goto handle_unusual;
10297 }
10298 break;
10299 }
10300
10301 // bool use_gpu_profiler = 5;
10302 case 5: {
10303 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
10304
10305 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10306 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10307 input, &use_gpu_profiler_)));
10308 } else {
10309 goto handle_unusual;
10310 }
10311 break;
10312 }
10313
10314 // bool use_sample_profiler = 6;
10315 case 6: {
10316 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
10317
10318 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10319 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10320 input, &use_sample_profiler_)));
10321 } else {
10322 goto handle_unusual;
10323 }
10324 break;
10325 }
10326
10327 default: {
10328 handle_unusual:
10329 if (tag == 0) {
10330 goto success;
10331 }
10332 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
10333 input, tag, _internal_metadata_.mutable_unknown_fields()));
10334 break;
10335 }
10336 }
10337 }
10338success:
10339 // @@protoc_insertion_point(parse_success:tensorflow.TraceOpts)
10340 return true;
10341failure:
10342 // @@protoc_insertion_point(parse_failure:tensorflow.TraceOpts)
10343 return false;
10344#undef DO_
10345}
10346#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10347
10348void TraceOpts::SerializeWithCachedSizes(
10349 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
10350 // @@protoc_insertion_point(serialize_start:tensorflow.TraceOpts)
10351 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10352 (void) cached_has_bits;
10353
10354 // double duration = 1;
10355 if (!(this->duration() <= 0 && this->duration() >= 0)) {
10356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(1, this->duration(), output);
10357 }
10358
10359 // bool use_step_profiler = 2;
10360 if (this->use_step_profiler() != 0) {
10361 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->use_step_profiler(), output);
10362 }
10363
10364 // bool use_kernel_profiler = 3;
10365 if (this->use_kernel_profiler() != 0) {
10366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->use_kernel_profiler(), output);
10367 }
10368
10369 // bool use_extended_profiler = 4;
10370 if (this->use_extended_profiler() != 0) {
10371 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->use_extended_profiler(), output);
10372 }
10373
10374 // bool use_gpu_profiler = 5;
10375 if (this->use_gpu_profiler() != 0) {
10376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->use_gpu_profiler(), output);
10377 }
10378
10379 // bool use_sample_profiler = 6;
10380 if (this->use_sample_profiler() != 0) {
10381 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(6, this->use_sample_profiler(), output);
10382 }
10383
10384 if (_internal_metadata_.have_unknown_fields()) {
10385 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
10386 _internal_metadata_.unknown_fields(), output);
10387 }
10388 // @@protoc_insertion_point(serialize_end:tensorflow.TraceOpts)
10389}
10390
10391::PROTOBUF_NAMESPACE_ID::uint8* TraceOpts::InternalSerializeWithCachedSizesToArray(
10392 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
10393 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TraceOpts)
10394 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10395 (void) cached_has_bits;
10396
10397 // double duration = 1;
10398 if (!(this->duration() <= 0 && this->duration() >= 0)) {
10399 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->duration(), target);
10400 }
10401
10402 // bool use_step_profiler = 2;
10403 if (this->use_step_profiler() != 0) {
10404 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->use_step_profiler(), target);
10405 }
10406
10407 // bool use_kernel_profiler = 3;
10408 if (this->use_kernel_profiler() != 0) {
10409 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->use_kernel_profiler(), target);
10410 }
10411
10412 // bool use_extended_profiler = 4;
10413 if (this->use_extended_profiler() != 0) {
10414 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->use_extended_profiler(), target);
10415 }
10416
10417 // bool use_gpu_profiler = 5;
10418 if (this->use_gpu_profiler() != 0) {
10419 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->use_gpu_profiler(), target);
10420 }
10421
10422 // bool use_sample_profiler = 6;
10423 if (this->use_sample_profiler() != 0) {
10424 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->use_sample_profiler(), target);
10425 }
10426
10427 if (_internal_metadata_.have_unknown_fields()) {
10428 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10429 _internal_metadata_.unknown_fields(), target);
10430 }
10431 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TraceOpts)
10432 return target;
10433}
10434
10435size_t TraceOpts::ByteSizeLong() const {
10436// @@protoc_insertion_point(message_byte_size_start:tensorflow.TraceOpts)
10437 size_t total_size = 0;
10438
10439 if (_internal_metadata_.have_unknown_fields()) {
10440 total_size +=
10441 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
10442 _internal_metadata_.unknown_fields());
10443 }
10444 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10445 // Prevent compiler warnings about cached_has_bits being unused
10446 (void) cached_has_bits;
10447
10448 // double duration = 1;
10449 if (!(this->duration() <= 0 && this->duration() >= 0)) {
10450 total_size += 1 + 8;
10451 }
10452
10453 // bool use_step_profiler = 2;
10454 if (this->use_step_profiler() != 0) {
10455 total_size += 1 + 1;
10456 }
10457
10458 // bool use_kernel_profiler = 3;
10459 if (this->use_kernel_profiler() != 0) {
10460 total_size += 1 + 1;
10461 }
10462
10463 // bool use_extended_profiler = 4;
10464 if (this->use_extended_profiler() != 0) {
10465 total_size += 1 + 1;
10466 }
10467
10468 // bool use_gpu_profiler = 5;
10469 if (this->use_gpu_profiler() != 0) {
10470 total_size += 1 + 1;
10471 }
10472
10473 // bool use_sample_profiler = 6;
10474 if (this->use_sample_profiler() != 0) {
10475 total_size += 1 + 1;
10476 }
10477
10478 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
10479 SetCachedSize(cached_size);
10480 return total_size;
10481}
10482
10483void TraceOpts::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10484// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TraceOpts)
10485 GOOGLE_DCHECK_NE(&from, this);
10486 const TraceOpts* source =
10487 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TraceOpts>(
10488 &from);
10489 if (source == nullptr) {
10490 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TraceOpts)
10491 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
10492 } else {
10493 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TraceOpts)
10494 MergeFrom(*source);
10495 }
10496}
10497
10498void TraceOpts::MergeFrom(const TraceOpts& from) {
10499// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TraceOpts)
10500 GOOGLE_DCHECK_NE(&from, this);
10501 _internal_metadata_.MergeFrom(from._internal_metadata_);
10502 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10503 (void) cached_has_bits;
10504
10505 if (!(from.duration() <= 0 && from.duration() >= 0)) {
10506 set_duration(from.duration());
10507 }
10508 if (from.use_step_profiler() != 0) {
10509 set_use_step_profiler(from.use_step_profiler());
10510 }
10511 if (from.use_kernel_profiler() != 0) {
10512 set_use_kernel_profiler(from.use_kernel_profiler());
10513 }
10514 if (from.use_extended_profiler() != 0) {
10515 set_use_extended_profiler(from.use_extended_profiler());
10516 }
10517 if (from.use_gpu_profiler() != 0) {
10518 set_use_gpu_profiler(from.use_gpu_profiler());
10519 }
10520 if (from.use_sample_profiler() != 0) {
10521 set_use_sample_profiler(from.use_sample_profiler());
10522 }
10523}
10524
10525void TraceOpts::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10526// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TraceOpts)
10527 if (&from == this) return;
10528 Clear();
10529 MergeFrom(from);
10530}
10531
10532void TraceOpts::CopyFrom(const TraceOpts& from) {
10533// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TraceOpts)
10534 if (&from == this) return;
10535 Clear();
10536 MergeFrom(from);
10537}
10538
10539bool TraceOpts::IsInitialized() const {
10540 return true;
10541}
10542
10543void TraceOpts::InternalSwap(TraceOpts* other) {
10544 using std::swap;
10545 _internal_metadata_.Swap(&other->_internal_metadata_);
10546 swap(duration_, other->duration_);
10547 swap(use_step_profiler_, other->use_step_profiler_);
10548 swap(use_kernel_profiler_, other->use_kernel_profiler_);
10549 swap(use_extended_profiler_, other->use_extended_profiler_);
10550 swap(use_gpu_profiler_, other->use_gpu_profiler_);
10551 swap(use_sample_profiler_, other->use_sample_profiler_);
10552}
10553
10554::PROTOBUF_NAMESPACE_ID::Metadata TraceOpts::GetMetadata() const {
10555 return GetMetadataStatic();
10556}
10557
10558
10559// ===================================================================
10560
10561void TracingRequest::InitAsDefaultInstance() {
10562 ::tensorflow::_TracingRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::tensorflow::TraceOpts*>(
10563 ::tensorflow::TraceOpts::internal_default_instance());
10564}
10565class TracingRequest::_Internal {
10566 public:
10567 static const ::tensorflow::TraceOpts& options(const TracingRequest* msg);
10568};
10569
10570const ::tensorflow::TraceOpts&
10571TracingRequest::_Internal::options(const TracingRequest* msg) {
10572 return *msg->options_;
10573}
10574void TracingRequest::unsafe_arena_set_allocated_options(
10575 ::tensorflow::TraceOpts* options) {
10576 if (GetArenaNoVirtual() == nullptr) {
10577 delete options_;
10578 }
10579 options_ = options;
10580 if (options) {
10581
10582 } else {
10583
10584 }
10585 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TracingRequest.options)
10586}
10587TracingRequest::TracingRequest()
10588 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
10589 SharedCtor();
10590 // @@protoc_insertion_point(constructor:tensorflow.TracingRequest)
10591}
10592TracingRequest::TracingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
10593 : ::PROTOBUF_NAMESPACE_ID::Message(),
10594 _internal_metadata_(arena) {
10595 SharedCtor();
10596 RegisterArenaDtor(arena);
10597 // @@protoc_insertion_point(arena_constructor:tensorflow.TracingRequest)
10598}
10599TracingRequest::TracingRequest(const TracingRequest& from)
10600 : ::PROTOBUF_NAMESPACE_ID::Message(),
10601 _internal_metadata_(nullptr) {
10602 _internal_metadata_.MergeFrom(from._internal_metadata_);
10603 if (from.has_options()) {
10604 options_ = new ::tensorflow::TraceOpts(*from.options_);
10605 } else {
10606 options_ = nullptr;
10607 }
10608 // @@protoc_insertion_point(copy_constructor:tensorflow.TracingRequest)
10609}
10610
10611void TracingRequest::SharedCtor() {
10612 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
10613 options_ = nullptr;
10614}
10615
10616TracingRequest::~TracingRequest() {
10617 // @@protoc_insertion_point(destructor:tensorflow.TracingRequest)
10618 SharedDtor();
10619}
10620
10621void TracingRequest::SharedDtor() {
10622 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
10623 if (this != internal_default_instance()) delete options_;
10624}
10625
10626void TracingRequest::ArenaDtor(void* object) {
10627 TracingRequest* _this = reinterpret_cast< TracingRequest* >(object);
10628 (void)_this;
10629}
10630void TracingRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
10631}
10632void TracingRequest::SetCachedSize(int size) const {
10633 _cached_size_.Set(size);
10634}
10635const TracingRequest& TracingRequest::default_instance() {
10636 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TracingRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
10637 return *internal_default_instance();
10638}
10639
10640
10641void TracingRequest::Clear() {
10642// @@protoc_insertion_point(message_clear_start:tensorflow.TracingRequest)
10643 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10644 // Prevent compiler warnings about cached_has_bits being unused
10645 (void) cached_has_bits;
10646
10647 if (GetArenaNoVirtual() == nullptr && options_ != nullptr) {
10648 delete options_;
10649 }
10650 options_ = nullptr;
10651 _internal_metadata_.Clear();
10652}
10653
10654#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10655const char* TracingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
10656#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10657 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
10658 while (!ctx->Done(&ptr)) {
10659 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10660 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
10661 CHK_(ptr);
10662 switch (tag >> 3) {
10663 // .tensorflow.TraceOpts options = 1;
10664 case 1:
10665 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
10666 ptr = ctx->ParseMessage(mutable_options(), ptr);
10667 CHK_(ptr);
10668 } else goto handle_unusual;
10669 continue;
10670 default: {
10671 handle_unusual:
10672 if ((tag & 7) == 4 || tag == 0) {
10673 ctx->SetLastTag(tag);
10674 goto success;
10675 }
10676 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
10677 CHK_(ptr != nullptr);
10678 continue;
10679 }
10680 } // switch
10681 } // while
10682success:
10683 return ptr;
10684failure:
10685 ptr = nullptr;
10686 goto success;
10687#undef CHK_
10688}
10689#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10690bool TracingRequest::MergePartialFromCodedStream(
10691 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
10692#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10693 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10694 // @@protoc_insertion_point(parse_start:tensorflow.TracingRequest)
10695 for (;;) {
10696 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10697 tag = p.first;
10698 if (!p.second) goto handle_unusual;
10699 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10700 // .tensorflow.TraceOpts options = 1;
10701 case 1: {
10702 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
10703 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
10704 input, mutable_options()));
10705 } else {
10706 goto handle_unusual;
10707 }
10708 break;
10709 }
10710
10711 default: {
10712 handle_unusual:
10713 if (tag == 0) {
10714 goto success;
10715 }
10716 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
10717 input, tag, _internal_metadata_.mutable_unknown_fields()));
10718 break;
10719 }
10720 }
10721 }
10722success:
10723 // @@protoc_insertion_point(parse_success:tensorflow.TracingRequest)
10724 return true;
10725failure:
10726 // @@protoc_insertion_point(parse_failure:tensorflow.TracingRequest)
10727 return false;
10728#undef DO_
10729}
10730#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10731
10732void TracingRequest::SerializeWithCachedSizes(
10733 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
10734 // @@protoc_insertion_point(serialize_start:tensorflow.TracingRequest)
10735 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10736 (void) cached_has_bits;
10737
10738 // .tensorflow.TraceOpts options = 1;
10739 if (this->has_options()) {
10740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
10741 1, _Internal::options(this), output);
10742 }
10743
10744 if (_internal_metadata_.have_unknown_fields()) {
10745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
10746 _internal_metadata_.unknown_fields(), output);
10747 }
10748 // @@protoc_insertion_point(serialize_end:tensorflow.TracingRequest)
10749}
10750
10751::PROTOBUF_NAMESPACE_ID::uint8* TracingRequest::InternalSerializeWithCachedSizesToArray(
10752 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
10753 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TracingRequest)
10754 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10755 (void) cached_has_bits;
10756
10757 // .tensorflow.TraceOpts options = 1;
10758 if (this->has_options()) {
10759 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10760 InternalWriteMessageToArray(
10761 1, _Internal::options(this), target);
10762 }
10763
10764 if (_internal_metadata_.have_unknown_fields()) {
10765 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10766 _internal_metadata_.unknown_fields(), target);
10767 }
10768 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TracingRequest)
10769 return target;
10770}
10771
10772size_t TracingRequest::ByteSizeLong() const {
10773// @@protoc_insertion_point(message_byte_size_start:tensorflow.TracingRequest)
10774 size_t total_size = 0;
10775
10776 if (_internal_metadata_.have_unknown_fields()) {
10777 total_size +=
10778 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
10779 _internal_metadata_.unknown_fields());
10780 }
10781 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10782 // Prevent compiler warnings about cached_has_bits being unused
10783 (void) cached_has_bits;
10784
10785 // .tensorflow.TraceOpts options = 1;
10786 if (this->has_options()) {
10787 total_size += 1 +
10788 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10789 *options_);
10790 }
10791
10792 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
10793 SetCachedSize(cached_size);
10794 return total_size;
10795}
10796
10797void TracingRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10798// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TracingRequest)
10799 GOOGLE_DCHECK_NE(&from, this);
10800 const TracingRequest* source =
10801 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TracingRequest>(
10802 &from);
10803 if (source == nullptr) {
10804 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TracingRequest)
10805 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
10806 } else {
10807 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TracingRequest)
10808 MergeFrom(*source);
10809 }
10810}
10811
10812void TracingRequest::MergeFrom(const TracingRequest& from) {
10813// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TracingRequest)
10814 GOOGLE_DCHECK_NE(&from, this);
10815 _internal_metadata_.MergeFrom(from._internal_metadata_);
10816 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10817 (void) cached_has_bits;
10818
10819 if (from.has_options()) {
10820 mutable_options()->::tensorflow::TraceOpts::MergeFrom(from.options());
10821 }
10822}
10823
10824void TracingRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10825// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TracingRequest)
10826 if (&from == this) return;
10827 Clear();
10828 MergeFrom(from);
10829}
10830
10831void TracingRequest::CopyFrom(const TracingRequest& from) {
10832// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TracingRequest)
10833 if (&from == this) return;
10834 Clear();
10835 MergeFrom(from);
10836}
10837
10838bool TracingRequest::IsInitialized() const {
10839 return true;
10840}
10841
10842void TracingRequest::InternalSwap(TracingRequest* other) {
10843 using std::swap;
10844 _internal_metadata_.Swap(&other->_internal_metadata_);
10845 swap(options_, other->options_);
10846}
10847
10848::PROTOBUF_NAMESPACE_ID::Metadata TracingRequest::GetMetadata() const {
10849 return GetMetadataStatic();
10850}
10851
10852
10853// ===================================================================
10854
10855void TracingResponse::InitAsDefaultInstance() {
10856}
10857class TracingResponse::_Internal {
10858 public:
10859};
10860
10861TracingResponse::TracingResponse()
10862 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
10863 SharedCtor();
10864 // @@protoc_insertion_point(constructor:tensorflow.TracingResponse)
10865}
10866TracingResponse::TracingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
10867 : ::PROTOBUF_NAMESPACE_ID::Message(),
10868 _internal_metadata_(arena) {
10869 SharedCtor();
10870 RegisterArenaDtor(arena);
10871 // @@protoc_insertion_point(arena_constructor:tensorflow.TracingResponse)
10872}
10873TracingResponse::TracingResponse(const TracingResponse& from)
10874 : ::PROTOBUF_NAMESPACE_ID::Message(),
10875 _internal_metadata_(nullptr) {
10876 _internal_metadata_.MergeFrom(from._internal_metadata_);
10877 // @@protoc_insertion_point(copy_constructor:tensorflow.TracingResponse)
10878}
10879
10880void TracingResponse::SharedCtor() {
10881}
10882
10883TracingResponse::~TracingResponse() {
10884 // @@protoc_insertion_point(destructor:tensorflow.TracingResponse)
10885 SharedDtor();
10886}
10887
10888void TracingResponse::SharedDtor() {
10889 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
10890}
10891
10892void TracingResponse::ArenaDtor(void* object) {
10893 TracingResponse* _this = reinterpret_cast< TracingResponse* >(object);
10894 (void)_this;
10895}
10896void TracingResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
10897}
10898void TracingResponse::SetCachedSize(int size) const {
10899 _cached_size_.Set(size);
10900}
10901const TracingResponse& TracingResponse::default_instance() {
10902 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TracingResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
10903 return *internal_default_instance();
10904}
10905
10906
10907void TracingResponse::Clear() {
10908// @@protoc_insertion_point(message_clear_start:tensorflow.TracingResponse)
10909 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10910 // Prevent compiler warnings about cached_has_bits being unused
10911 (void) cached_has_bits;
10912
10913 _internal_metadata_.Clear();
10914}
10915
10916#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10917const char* TracingResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
10918#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10919 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
10920 while (!ctx->Done(&ptr)) {
10921 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10922 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
10923 CHK_(ptr);
10924 switch (tag >> 3) {
10925 default: {
10926 if ((tag & 7) == 4 || tag == 0) {
10927 ctx->SetLastTag(tag);
10928 goto success;
10929 }
10930 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
10931 CHK_(ptr != nullptr);
10932 continue;
10933 }
10934 } // switch
10935 } // while
10936success:
10937 return ptr;
10938failure:
10939 ptr = nullptr;
10940 goto success;
10941#undef CHK_
10942}
10943#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10944bool TracingResponse::MergePartialFromCodedStream(
10945 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
10946#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10947 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10948 // @@protoc_insertion_point(parse_start:tensorflow.TracingResponse)
10949 for (;;) {
10950 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10951 tag = p.first;
10952 if (!p.second) goto handle_unusual;
10953 handle_unusual:
10954 if (tag == 0) {
10955 goto success;
10956 }
10957 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
10958 input, tag, _internal_metadata_.mutable_unknown_fields()));
10959 }
10960success:
10961 // @@protoc_insertion_point(parse_success:tensorflow.TracingResponse)
10962 return true;
10963failure:
10964 // @@protoc_insertion_point(parse_failure:tensorflow.TracingResponse)
10965 return false;
10966#undef DO_
10967}
10968#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10969
10970void TracingResponse::SerializeWithCachedSizes(
10971 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
10972 // @@protoc_insertion_point(serialize_start:tensorflow.TracingResponse)
10973 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10974 (void) cached_has_bits;
10975
10976 if (_internal_metadata_.have_unknown_fields()) {
10977 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
10978 _internal_metadata_.unknown_fields(), output);
10979 }
10980 // @@protoc_insertion_point(serialize_end:tensorflow.TracingResponse)
10981}
10982
10983::PROTOBUF_NAMESPACE_ID::uint8* TracingResponse::InternalSerializeWithCachedSizesToArray(
10984 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
10985 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TracingResponse)
10986 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10987 (void) cached_has_bits;
10988
10989 if (_internal_metadata_.have_unknown_fields()) {
10990 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10991 _internal_metadata_.unknown_fields(), target);
10992 }
10993 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TracingResponse)
10994 return target;
10995}
10996
10997size_t TracingResponse::ByteSizeLong() const {
10998// @@protoc_insertion_point(message_byte_size_start:tensorflow.TracingResponse)
10999 size_t total_size = 0;
11000
11001 if (_internal_metadata_.have_unknown_fields()) {
11002 total_size +=
11003 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
11004 _internal_metadata_.unknown_fields());
11005 }
11006 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11007 // Prevent compiler warnings about cached_has_bits being unused
11008 (void) cached_has_bits;
11009
11010 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
11011 SetCachedSize(cached_size);
11012 return total_size;
11013}
11014
11015void TracingResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11016// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TracingResponse)
11017 GOOGLE_DCHECK_NE(&from, this);
11018 const TracingResponse* source =
11019 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TracingResponse>(
11020 &from);
11021 if (source == nullptr) {
11022 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TracingResponse)
11023 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
11024 } else {
11025 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TracingResponse)
11026 MergeFrom(*source);
11027 }
11028}
11029
11030void TracingResponse::MergeFrom(const TracingResponse& from) {
11031// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TracingResponse)
11032 GOOGLE_DCHECK_NE(&from, this);
11033 _internal_metadata_.MergeFrom(from._internal_metadata_);
11034 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11035 (void) cached_has_bits;
11036
11037}
11038
11039void TracingResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11040// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TracingResponse)
11041 if (&from == this) return;
11042 Clear();
11043 MergeFrom(from);
11044}
11045
11046void TracingResponse::CopyFrom(const TracingResponse& from) {
11047// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TracingResponse)
11048 if (&from == this) return;
11049 Clear();
11050 MergeFrom(from);
11051}
11052
11053bool TracingResponse::IsInitialized() const {
11054 return true;
11055}
11056
11057void TracingResponse::InternalSwap(TracingResponse* other) {
11058 using std::swap;
11059 _internal_metadata_.Swap(&other->_internal_metadata_);
11060}
11061
11062::PROTOBUF_NAMESPACE_ID::Metadata TracingResponse::GetMetadata() const {
11063 return GetMetadataStatic();
11064}
11065
11066
11067// ===================================================================
11068
11069void RecvBufRequest::InitAsDefaultInstance() {
11070 ::tensorflow::_RecvBufRequest_default_instance_._instance.get_mutable()->client_locality_ = const_cast< ::tensorflow::DeviceLocality*>(
11071 ::tensorflow::DeviceLocality::internal_default_instance());
11072 ::tensorflow::_RecvBufRequest_default_instance_._instance.get_mutable()->server_locality_ = const_cast< ::tensorflow::DeviceLocality*>(
11073 ::tensorflow::DeviceLocality::internal_default_instance());
11074 ::tensorflow::_RecvBufRequest_default_instance_._instance.get_mutable()->transport_options_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>(
11075 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
11076}
11077class RecvBufRequest::_Internal {
11078 public:
11079 static const ::tensorflow::DeviceLocality& client_locality(const RecvBufRequest* msg);
11080 static const ::tensorflow::DeviceLocality& server_locality(const RecvBufRequest* msg);
11081 static const PROTOBUF_NAMESPACE_ID::Any& transport_options(const RecvBufRequest* msg);
11082};
11083
11084const ::tensorflow::DeviceLocality&
11085RecvBufRequest::_Internal::client_locality(const RecvBufRequest* msg) {
11086 return *msg->client_locality_;
11087}
11088const ::tensorflow::DeviceLocality&
11089RecvBufRequest::_Internal::server_locality(const RecvBufRequest* msg) {
11090 return *msg->server_locality_;
11091}
11092const PROTOBUF_NAMESPACE_ID::Any&
11093RecvBufRequest::_Internal::transport_options(const RecvBufRequest* msg) {
11094 return *msg->transport_options_;
11095}
11096void RecvBufRequest::unsafe_arena_set_allocated_client_locality(
11097 ::tensorflow::DeviceLocality* client_locality) {
11098 if (GetArenaNoVirtual() == nullptr) {
11099 delete client_locality_;
11100 }
11101 client_locality_ = client_locality;
11102 if (client_locality) {
11103
11104 } else {
11105
11106 }
11107 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvBufRequest.client_locality)
11108}
11109void RecvBufRequest::clear_client_locality() {
11110 if (GetArenaNoVirtual() == nullptr && client_locality_ != nullptr) {
11111 delete client_locality_;
11112 }
11113 client_locality_ = nullptr;
11114}
11115void RecvBufRequest::unsafe_arena_set_allocated_server_locality(
11116 ::tensorflow::DeviceLocality* server_locality) {
11117 if (GetArenaNoVirtual() == nullptr) {
11118 delete server_locality_;
11119 }
11120 server_locality_ = server_locality;
11121 if (server_locality) {
11122
11123 } else {
11124
11125 }
11126 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvBufRequest.server_locality)
11127}
11128void RecvBufRequest::clear_server_locality() {
11129 if (GetArenaNoVirtual() == nullptr && server_locality_ != nullptr) {
11130 delete server_locality_;
11131 }
11132 server_locality_ = nullptr;
11133}
11134void RecvBufRequest::unsafe_arena_set_allocated_transport_options(
11135 PROTOBUF_NAMESPACE_ID::Any* transport_options) {
11136 if (GetArenaNoVirtual() == nullptr) {
11137 delete transport_options_;
11138 }
11139 transport_options_ = transport_options;
11140 if (transport_options) {
11141
11142 } else {
11143
11144 }
11145 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvBufRequest.transport_options)
11146}
11147void RecvBufRequest::clear_transport_options() {
11148 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
11149 delete transport_options_;
11150 }
11151 transport_options_ = nullptr;
11152}
11153RecvBufRequest::RecvBufRequest()
11154 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
11155 SharedCtor();
11156 // @@protoc_insertion_point(constructor:tensorflow.RecvBufRequest)
11157}
11158RecvBufRequest::RecvBufRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
11159 : ::PROTOBUF_NAMESPACE_ID::Message(),
11160 _internal_metadata_(arena) {
11161 SharedCtor();
11162 RegisterArenaDtor(arena);
11163 // @@protoc_insertion_point(arena_constructor:tensorflow.RecvBufRequest)
11164}
11165RecvBufRequest::RecvBufRequest(const RecvBufRequest& from)
11166 : ::PROTOBUF_NAMESPACE_ID::Message(),
11167 _internal_metadata_(nullptr) {
11168 _internal_metadata_.MergeFrom(from._internal_metadata_);
11169 buf_rendezvous_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11170 if (!from.buf_rendezvous_key().empty()) {
11171 buf_rendezvous_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.buf_rendezvous_key(),
11172 GetArenaNoVirtual());
11173 }
11174 src_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11175 if (!from.src_device().empty()) {
11176 src_device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.src_device(),
11177 GetArenaNoVirtual());
11178 }
11179 dst_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11180 if (!from.dst_device().empty()) {
11181 dst_device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dst_device(),
11182 GetArenaNoVirtual());
11183 }
11184 if (from.has_client_locality()) {
11185 client_locality_ = new ::tensorflow::DeviceLocality(*from.client_locality_);
11186 } else {
11187 client_locality_ = nullptr;
11188 }
11189 if (from.has_server_locality()) {
11190 server_locality_ = new ::tensorflow::DeviceLocality(*from.server_locality_);
11191 } else {
11192 server_locality_ = nullptr;
11193 }
11194 if (from.has_transport_options()) {
11195 transport_options_ = new PROTOBUF_NAMESPACE_ID::Any(*from.transport_options_);
11196 } else {
11197 transport_options_ = nullptr;
11198 }
11199 ::memcpy(&step_id_, &from.step_id_,
11200 static_cast<size_t>(reinterpret_cast<char*>(&src_incarnation_) -
11201 reinterpret_cast<char*>(&step_id_)) + sizeof(src_incarnation_));
11202 // @@protoc_insertion_point(copy_constructor:tensorflow.RecvBufRequest)
11203}
11204
11205void RecvBufRequest::SharedCtor() {
11206 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
11207 buf_rendezvous_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11208 src_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11209 dst_device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11210 ::memset(&client_locality_, 0, static_cast<size_t>(
11211 reinterpret_cast<char*>(&src_incarnation_) -
11212 reinterpret_cast<char*>(&client_locality_)) + sizeof(src_incarnation_));
11213}
11214
11215RecvBufRequest::~RecvBufRequest() {
11216 // @@protoc_insertion_point(destructor:tensorflow.RecvBufRequest)
11217 SharedDtor();
11218}
11219
11220void RecvBufRequest::SharedDtor() {
11221 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
11222 buf_rendezvous_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11223 src_device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11224 dst_device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
11225 if (this != internal_default_instance()) delete client_locality_;
11226 if (this != internal_default_instance()) delete server_locality_;
11227 if (this != internal_default_instance()) delete transport_options_;
11228}
11229
11230void RecvBufRequest::ArenaDtor(void* object) {
11231 RecvBufRequest* _this = reinterpret_cast< RecvBufRequest* >(object);
11232 (void)_this;
11233}
11234void RecvBufRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
11235}
11236void RecvBufRequest::SetCachedSize(int size) const {
11237 _cached_size_.Set(size);
11238}
11239const RecvBufRequest& RecvBufRequest::default_instance() {
11240 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RecvBufRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
11241 return *internal_default_instance();
11242}
11243
11244
11245void RecvBufRequest::Clear() {
11246// @@protoc_insertion_point(message_clear_start:tensorflow.RecvBufRequest)
11247 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11248 // Prevent compiler warnings about cached_has_bits being unused
11249 (void) cached_has_bits;
11250
11251 buf_rendezvous_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
11252 src_device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
11253 dst_device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
11254 if (GetArenaNoVirtual() == nullptr && client_locality_ != nullptr) {
11255 delete client_locality_;
11256 }
11257 client_locality_ = nullptr;
11258 if (GetArenaNoVirtual() == nullptr && server_locality_ != nullptr) {
11259 delete server_locality_;
11260 }
11261 server_locality_ = nullptr;
11262 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
11263 delete transport_options_;
11264 }
11265 transport_options_ = nullptr;
11266 ::memset(&step_id_, 0, static_cast<size_t>(
11267 reinterpret_cast<char*>(&src_incarnation_) -
11268 reinterpret_cast<char*>(&step_id_)) + sizeof(src_incarnation_));
11269 _internal_metadata_.Clear();
11270}
11271
11272#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11273const char* RecvBufRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
11274#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11275 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
11276 while (!ctx->Done(&ptr)) {
11277 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11278 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
11279 CHK_(ptr);
11280 switch (tag >> 3) {
11281 // int64 step_id = 1;
11282 case 1:
11283 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
11284 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11285 CHK_(ptr);
11286 } else goto handle_unusual;
11287 continue;
11288 // string buf_rendezvous_key = 2;
11289 case 2:
11290 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
11291 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_buf_rendezvous_key(), ptr, ctx, "tensorflow.RecvBufRequest.buf_rendezvous_key");
11292 CHK_(ptr);
11293 } else goto handle_unusual;
11294 continue;
11295 // int64 num_bytes = 3;
11296 case 3:
11297 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
11298 num_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11299 CHK_(ptr);
11300 } else goto handle_unusual;
11301 continue;
11302 // fixed64 buf_ptr = 4;
11303 case 4:
11304 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) {
11305 buf_ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
11306 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
11307 } else goto handle_unusual;
11308 continue;
11309 // .tensorflow.DeviceLocality client_locality = 5;
11310 case 5:
11311 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
11312 ptr = ctx->ParseMessage(mutable_client_locality(), ptr);
11313 CHK_(ptr);
11314 } else goto handle_unusual;
11315 continue;
11316 // .tensorflow.DeviceLocality server_locality = 6;
11317 case 6:
11318 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
11319 ptr = ctx->ParseMessage(mutable_server_locality(), ptr);
11320 CHK_(ptr);
11321 } else goto handle_unusual;
11322 continue;
11323 // .google.protobuf.Any transport_options = 7;
11324 case 7:
11325 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
11326 ptr = ctx->ParseMessage(mutable_transport_options(), ptr);
11327 CHK_(ptr);
11328 } else goto handle_unusual;
11329 continue;
11330 // string src_device = 8;
11331 case 8:
11332 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
11333 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_src_device(), ptr, ctx, "tensorflow.RecvBufRequest.src_device");
11334 CHK_(ptr);
11335 } else goto handle_unusual;
11336 continue;
11337 // string dst_device = 9;
11338 case 9:
11339 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
11340 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dst_device(), ptr, ctx, "tensorflow.RecvBufRequest.dst_device");
11341 CHK_(ptr);
11342 } else goto handle_unusual;
11343 continue;
11344 // int64 request_id = 10;
11345 case 10:
11346 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
11347 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11348 CHK_(ptr);
11349 } else goto handle_unusual;
11350 continue;
11351 // uint64 src_incarnation = 11;
11352 case 11:
11353 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
11354 src_incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11355 CHK_(ptr);
11356 } else goto handle_unusual;
11357 continue;
11358 default: {
11359 handle_unusual:
11360 if ((tag & 7) == 4 || tag == 0) {
11361 ctx->SetLastTag(tag);
11362 goto success;
11363 }
11364 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
11365 CHK_(ptr != nullptr);
11366 continue;
11367 }
11368 } // switch
11369 } // while
11370success:
11371 return ptr;
11372failure:
11373 ptr = nullptr;
11374 goto success;
11375#undef CHK_
11376}
11377#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11378bool RecvBufRequest::MergePartialFromCodedStream(
11379 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
11380#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11381 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11382 // @@protoc_insertion_point(parse_start:tensorflow.RecvBufRequest)
11383 for (;;) {
11384 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11385 tag = p.first;
11386 if (!p.second) goto handle_unusual;
11387 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11388 // int64 step_id = 1;
11389 case 1: {
11390 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
11391
11392 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11393 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
11394 input, &step_id_)));
11395 } else {
11396 goto handle_unusual;
11397 }
11398 break;
11399 }
11400
11401 // string buf_rendezvous_key = 2;
11402 case 2: {
11403 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
11404 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
11405 input, this->mutable_buf_rendezvous_key()));
11406 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11407 this->buf_rendezvous_key().data(), static_cast<int>(this->buf_rendezvous_key().length()),
11408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
11409 "tensorflow.RecvBufRequest.buf_rendezvous_key"));
11410 } else {
11411 goto handle_unusual;
11412 }
11413 break;
11414 }
11415
11416 // int64 num_bytes = 3;
11417 case 3: {
11418 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
11419
11420 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11421 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
11422 input, &num_bytes_)));
11423 } else {
11424 goto handle_unusual;
11425 }
11426 break;
11427 }
11428
11429 // fixed64 buf_ptr = 4;
11430 case 4: {
11431 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (33 & 0xFF)) {
11432
11433 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11434 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
11435 input, &buf_ptr_)));
11436 } else {
11437 goto handle_unusual;
11438 }
11439 break;
11440 }
11441
11442 // .tensorflow.DeviceLocality client_locality = 5;
11443 case 5: {
11444 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
11445 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
11446 input, mutable_client_locality()));
11447 } else {
11448 goto handle_unusual;
11449 }
11450 break;
11451 }
11452
11453 // .tensorflow.DeviceLocality server_locality = 6;
11454 case 6: {
11455 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
11456 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
11457 input, mutable_server_locality()));
11458 } else {
11459 goto handle_unusual;
11460 }
11461 break;
11462 }
11463
11464 // .google.protobuf.Any transport_options = 7;
11465 case 7: {
11466 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
11467 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
11468 input, mutable_transport_options()));
11469 } else {
11470 goto handle_unusual;
11471 }
11472 break;
11473 }
11474
11475 // string src_device = 8;
11476 case 8: {
11477 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
11478 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
11479 input, this->mutable_src_device()));
11480 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11481 this->src_device().data(), static_cast<int>(this->src_device().length()),
11482 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
11483 "tensorflow.RecvBufRequest.src_device"));
11484 } else {
11485 goto handle_unusual;
11486 }
11487 break;
11488 }
11489
11490 // string dst_device = 9;
11491 case 9: {
11492 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
11493 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
11494 input, this->mutable_dst_device()));
11495 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11496 this->dst_device().data(), static_cast<int>(this->dst_device().length()),
11497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
11498 "tensorflow.RecvBufRequest.dst_device"));
11499 } else {
11500 goto handle_unusual;
11501 }
11502 break;
11503 }
11504
11505 // int64 request_id = 10;
11506 case 10: {
11507 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
11508
11509 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11510 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
11511 input, &request_id_)));
11512 } else {
11513 goto handle_unusual;
11514 }
11515 break;
11516 }
11517
11518 // uint64 src_incarnation = 11;
11519 case 11: {
11520 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
11521
11522 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11523 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
11524 input, &src_incarnation_)));
11525 } else {
11526 goto handle_unusual;
11527 }
11528 break;
11529 }
11530
11531 default: {
11532 handle_unusual:
11533 if (tag == 0) {
11534 goto success;
11535 }
11536 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
11537 input, tag, _internal_metadata_.mutable_unknown_fields()));
11538 break;
11539 }
11540 }
11541 }
11542success:
11543 // @@protoc_insertion_point(parse_success:tensorflow.RecvBufRequest)
11544 return true;
11545failure:
11546 // @@protoc_insertion_point(parse_failure:tensorflow.RecvBufRequest)
11547 return false;
11548#undef DO_
11549}
11550#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11551
11552void RecvBufRequest::SerializeWithCachedSizes(
11553 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
11554 // @@protoc_insertion_point(serialize_start:tensorflow.RecvBufRequest)
11555 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11556 (void) cached_has_bits;
11557
11558 // int64 step_id = 1;
11559 if (this->step_id() != 0) {
11560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->step_id(), output);
11561 }
11562
11563 // string buf_rendezvous_key = 2;
11564 if (this->buf_rendezvous_key().size() > 0) {
11565 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11566 this->buf_rendezvous_key().data(), static_cast<int>(this->buf_rendezvous_key().length()),
11567 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11568 "tensorflow.RecvBufRequest.buf_rendezvous_key");
11569 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
11570 2, this->buf_rendezvous_key(), output);
11571 }
11572
11573 // int64 num_bytes = 3;
11574 if (this->num_bytes() != 0) {
11575 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->num_bytes(), output);
11576 }
11577
11578 // fixed64 buf_ptr = 4;
11579 if (this->buf_ptr() != 0) {
11580 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(4, this->buf_ptr(), output);
11581 }
11582
11583 // .tensorflow.DeviceLocality client_locality = 5;
11584 if (this->has_client_locality()) {
11585 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11586 5, _Internal::client_locality(this), output);
11587 }
11588
11589 // .tensorflow.DeviceLocality server_locality = 6;
11590 if (this->has_server_locality()) {
11591 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11592 6, _Internal::server_locality(this), output);
11593 }
11594
11595 // .google.protobuf.Any transport_options = 7;
11596 if (this->has_transport_options()) {
11597 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11598 7, _Internal::transport_options(this), output);
11599 }
11600
11601 // string src_device = 8;
11602 if (this->src_device().size() > 0) {
11603 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11604 this->src_device().data(), static_cast<int>(this->src_device().length()),
11605 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11606 "tensorflow.RecvBufRequest.src_device");
11607 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
11608 8, this->src_device(), output);
11609 }
11610
11611 // string dst_device = 9;
11612 if (this->dst_device().size() > 0) {
11613 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11614 this->dst_device().data(), static_cast<int>(this->dst_device().length()),
11615 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11616 "tensorflow.RecvBufRequest.dst_device");
11617 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
11618 9, this->dst_device(), output);
11619 }
11620
11621 // int64 request_id = 10;
11622 if (this->request_id() != 0) {
11623 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(10, this->request_id(), output);
11624 }
11625
11626 // uint64 src_incarnation = 11;
11627 if (this->src_incarnation() != 0) {
11628 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(11, this->src_incarnation(), output);
11629 }
11630
11631 if (_internal_metadata_.have_unknown_fields()) {
11632 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
11633 _internal_metadata_.unknown_fields(), output);
11634 }
11635 // @@protoc_insertion_point(serialize_end:tensorflow.RecvBufRequest)
11636}
11637
11638::PROTOBUF_NAMESPACE_ID::uint8* RecvBufRequest::InternalSerializeWithCachedSizesToArray(
11639 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
11640 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvBufRequest)
11641 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11642 (void) cached_has_bits;
11643
11644 // int64 step_id = 1;
11645 if (this->step_id() != 0) {
11646 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->step_id(), target);
11647 }
11648
11649 // string buf_rendezvous_key = 2;
11650 if (this->buf_rendezvous_key().size() > 0) {
11651 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11652 this->buf_rendezvous_key().data(), static_cast<int>(this->buf_rendezvous_key().length()),
11653 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11654 "tensorflow.RecvBufRequest.buf_rendezvous_key");
11655 target =
11656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
11657 2, this->buf_rendezvous_key(), target);
11658 }
11659
11660 // int64 num_bytes = 3;
11661 if (this->num_bytes() != 0) {
11662 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->num_bytes(), target);
11663 }
11664
11665 // fixed64 buf_ptr = 4;
11666 if (this->buf_ptr() != 0) {
11667 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(4, this->buf_ptr(), target);
11668 }
11669
11670 // .tensorflow.DeviceLocality client_locality = 5;
11671 if (this->has_client_locality()) {
11672 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11673 InternalWriteMessageToArray(
11674 5, _Internal::client_locality(this), target);
11675 }
11676
11677 // .tensorflow.DeviceLocality server_locality = 6;
11678 if (this->has_server_locality()) {
11679 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11680 InternalWriteMessageToArray(
11681 6, _Internal::server_locality(this), target);
11682 }
11683
11684 // .google.protobuf.Any transport_options = 7;
11685 if (this->has_transport_options()) {
11686 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11687 InternalWriteMessageToArray(
11688 7, _Internal::transport_options(this), target);
11689 }
11690
11691 // string src_device = 8;
11692 if (this->src_device().size() > 0) {
11693 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11694 this->src_device().data(), static_cast<int>(this->src_device().length()),
11695 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11696 "tensorflow.RecvBufRequest.src_device");
11697 target =
11698 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
11699 8, this->src_device(), target);
11700 }
11701
11702 // string dst_device = 9;
11703 if (this->dst_device().size() > 0) {
11704 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11705 this->dst_device().data(), static_cast<int>(this->dst_device().length()),
11706 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11707 "tensorflow.RecvBufRequest.dst_device");
11708 target =
11709 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
11710 9, this->dst_device(), target);
11711 }
11712
11713 // int64 request_id = 10;
11714 if (this->request_id() != 0) {
11715 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->request_id(), target);
11716 }
11717
11718 // uint64 src_incarnation = 11;
11719 if (this->src_incarnation() != 0) {
11720 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->src_incarnation(), target);
11721 }
11722
11723 if (_internal_metadata_.have_unknown_fields()) {
11724 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
11725 _internal_metadata_.unknown_fields(), target);
11726 }
11727 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvBufRequest)
11728 return target;
11729}
11730
11731size_t RecvBufRequest::ByteSizeLong() const {
11732// @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvBufRequest)
11733 size_t total_size = 0;
11734
11735 if (_internal_metadata_.have_unknown_fields()) {
11736 total_size +=
11737 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
11738 _internal_metadata_.unknown_fields());
11739 }
11740 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11741 // Prevent compiler warnings about cached_has_bits being unused
11742 (void) cached_has_bits;
11743
11744 // string buf_rendezvous_key = 2;
11745 if (this->buf_rendezvous_key().size() > 0) {
11746 total_size += 1 +
11747 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11748 this->buf_rendezvous_key());
11749 }
11750
11751 // string src_device = 8;
11752 if (this->src_device().size() > 0) {
11753 total_size += 1 +
11754 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11755 this->src_device());
11756 }
11757
11758 // string dst_device = 9;
11759 if (this->dst_device().size() > 0) {
11760 total_size += 1 +
11761 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11762 this->dst_device());
11763 }
11764
11765 // .tensorflow.DeviceLocality client_locality = 5;
11766 if (this->has_client_locality()) {
11767 total_size += 1 +
11768 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11769 *client_locality_);
11770 }
11771
11772 // .tensorflow.DeviceLocality server_locality = 6;
11773 if (this->has_server_locality()) {
11774 total_size += 1 +
11775 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11776 *server_locality_);
11777 }
11778
11779 // .google.protobuf.Any transport_options = 7;
11780 if (this->has_transport_options()) {
11781 total_size += 1 +
11782 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11783 *transport_options_);
11784 }
11785
11786 // int64 step_id = 1;
11787 if (this->step_id() != 0) {
11788 total_size += 1 +
11789 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
11790 this->step_id());
11791 }
11792
11793 // int64 num_bytes = 3;
11794 if (this->num_bytes() != 0) {
11795 total_size += 1 +
11796 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
11797 this->num_bytes());
11798 }
11799
11800 // fixed64 buf_ptr = 4;
11801 if (this->buf_ptr() != 0) {
11802 total_size += 1 + 8;
11803 }
11804
11805 // int64 request_id = 10;
11806 if (this->request_id() != 0) {
11807 total_size += 1 +
11808 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
11809 this->request_id());
11810 }
11811
11812 // uint64 src_incarnation = 11;
11813 if (this->src_incarnation() != 0) {
11814 total_size += 1 +
11815 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
11816 this->src_incarnation());
11817 }
11818
11819 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
11820 SetCachedSize(cached_size);
11821 return total_size;
11822}
11823
11824void RecvBufRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11825// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RecvBufRequest)
11826 GOOGLE_DCHECK_NE(&from, this);
11827 const RecvBufRequest* source =
11828 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecvBufRequest>(
11829 &from);
11830 if (source == nullptr) {
11831 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RecvBufRequest)
11832 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
11833 } else {
11834 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RecvBufRequest)
11835 MergeFrom(*source);
11836 }
11837}
11838
11839void RecvBufRequest::MergeFrom(const RecvBufRequest& from) {
11840// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvBufRequest)
11841 GOOGLE_DCHECK_NE(&from, this);
11842 _internal_metadata_.MergeFrom(from._internal_metadata_);
11843 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11844 (void) cached_has_bits;
11845
11846 if (from.buf_rendezvous_key().size() > 0) {
11847 set_buf_rendezvous_key(from.buf_rendezvous_key());
11848 }
11849 if (from.src_device().size() > 0) {
11850 set_src_device(from.src_device());
11851 }
11852 if (from.dst_device().size() > 0) {
11853 set_dst_device(from.dst_device());
11854 }
11855 if (from.has_client_locality()) {
11856 mutable_client_locality()->::tensorflow::DeviceLocality::MergeFrom(from.client_locality());
11857 }
11858 if (from.has_server_locality()) {
11859 mutable_server_locality()->::tensorflow::DeviceLocality::MergeFrom(from.server_locality());
11860 }
11861 if (from.has_transport_options()) {
11862 mutable_transport_options()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.transport_options());
11863 }
11864 if (from.step_id() != 0) {
11865 set_step_id(from.step_id());
11866 }
11867 if (from.num_bytes() != 0) {
11868 set_num_bytes(from.num_bytes());
11869 }
11870 if (from.buf_ptr() != 0) {
11871 set_buf_ptr(from.buf_ptr());
11872 }
11873 if (from.request_id() != 0) {
11874 set_request_id(from.request_id());
11875 }
11876 if (from.src_incarnation() != 0) {
11877 set_src_incarnation(from.src_incarnation());
11878 }
11879}
11880
11881void RecvBufRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11882// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RecvBufRequest)
11883 if (&from == this) return;
11884 Clear();
11885 MergeFrom(from);
11886}
11887
11888void RecvBufRequest::CopyFrom(const RecvBufRequest& from) {
11889// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvBufRequest)
11890 if (&from == this) return;
11891 Clear();
11892 MergeFrom(from);
11893}
11894
11895bool RecvBufRequest::IsInitialized() const {
11896 return true;
11897}
11898
11899void RecvBufRequest::InternalSwap(RecvBufRequest* other) {
11900 using std::swap;
11901 _internal_metadata_.Swap(&other->_internal_metadata_);
11902 buf_rendezvous_key_.Swap(&other->buf_rendezvous_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
11903 GetArenaNoVirtual());
11904 src_device_.Swap(&other->src_device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
11905 GetArenaNoVirtual());
11906 dst_device_.Swap(&other->dst_device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
11907 GetArenaNoVirtual());
11908 swap(client_locality_, other->client_locality_);
11909 swap(server_locality_, other->server_locality_);
11910 swap(transport_options_, other->transport_options_);
11911 swap(step_id_, other->step_id_);
11912 swap(num_bytes_, other->num_bytes_);
11913 swap(buf_ptr_, other->buf_ptr_);
11914 swap(request_id_, other->request_id_);
11915 swap(src_incarnation_, other->src_incarnation_);
11916}
11917
11918::PROTOBUF_NAMESPACE_ID::Metadata RecvBufRequest::GetMetadata() const {
11919 return GetMetadataStatic();
11920}
11921
11922
11923// ===================================================================
11924
11925void RecvBufResponse::InitAsDefaultInstance() {
11926 ::tensorflow::_RecvBufResponse_default_instance_._instance.get_mutable()->transport_options_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>(
11927 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
11928}
11929class RecvBufResponse::_Internal {
11930 public:
11931 static const PROTOBUF_NAMESPACE_ID::Any& transport_options(const RecvBufResponse* msg);
11932};
11933
11934const PROTOBUF_NAMESPACE_ID::Any&
11935RecvBufResponse::_Internal::transport_options(const RecvBufResponse* msg) {
11936 return *msg->transport_options_;
11937}
11938void RecvBufResponse::unsafe_arena_set_allocated_transport_options(
11939 PROTOBUF_NAMESPACE_ID::Any* transport_options) {
11940 if (GetArenaNoVirtual() == nullptr) {
11941 delete transport_options_;
11942 }
11943 transport_options_ = transport_options;
11944 if (transport_options) {
11945
11946 } else {
11947
11948 }
11949 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RecvBufResponse.transport_options)
11950}
11951void RecvBufResponse::clear_transport_options() {
11952 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
11953 delete transport_options_;
11954 }
11955 transport_options_ = nullptr;
11956}
11957RecvBufResponse::RecvBufResponse()
11958 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
11959 SharedCtor();
11960 // @@protoc_insertion_point(constructor:tensorflow.RecvBufResponse)
11961}
11962RecvBufResponse::RecvBufResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
11963 : ::PROTOBUF_NAMESPACE_ID::Message(),
11964 _internal_metadata_(arena) {
11965 SharedCtor();
11966 RegisterArenaDtor(arena);
11967 // @@protoc_insertion_point(arena_constructor:tensorflow.RecvBufResponse)
11968}
11969RecvBufResponse::RecvBufResponse(const RecvBufResponse& from)
11970 : ::PROTOBUF_NAMESPACE_ID::Message(),
11971 _internal_metadata_(nullptr) {
11972 _internal_metadata_.MergeFrom(from._internal_metadata_);
11973 if (from.has_transport_options()) {
11974 transport_options_ = new PROTOBUF_NAMESPACE_ID::Any(*from.transport_options_);
11975 } else {
11976 transport_options_ = nullptr;
11977 }
11978 ::memcpy(&buf_ptr_, &from.buf_ptr_,
11979 static_cast<size_t>(reinterpret_cast<char*>(&require_ack_) -
11980 reinterpret_cast<char*>(&buf_ptr_)) + sizeof(require_ack_));
11981 // @@protoc_insertion_point(copy_constructor:tensorflow.RecvBufResponse)
11982}
11983
11984void RecvBufResponse::SharedCtor() {
11985 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
11986 ::memset(&transport_options_, 0, static_cast<size_t>(
11987 reinterpret_cast<char*>(&require_ack_) -
11988 reinterpret_cast<char*>(&transport_options_)) + sizeof(require_ack_));
11989}
11990
11991RecvBufResponse::~RecvBufResponse() {
11992 // @@protoc_insertion_point(destructor:tensorflow.RecvBufResponse)
11993 SharedDtor();
11994}
11995
11996void RecvBufResponse::SharedDtor() {
11997 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
11998 if (this != internal_default_instance()) delete transport_options_;
11999}
12000
12001void RecvBufResponse::ArenaDtor(void* object) {
12002 RecvBufResponse* _this = reinterpret_cast< RecvBufResponse* >(object);
12003 (void)_this;
12004}
12005void RecvBufResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
12006}
12007void RecvBufResponse::SetCachedSize(int size) const {
12008 _cached_size_.Set(size);
12009}
12010const RecvBufResponse& RecvBufResponse::default_instance() {
12011 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RecvBufResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
12012 return *internal_default_instance();
12013}
12014
12015
12016void RecvBufResponse::Clear() {
12017// @@protoc_insertion_point(message_clear_start:tensorflow.RecvBufResponse)
12018 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12019 // Prevent compiler warnings about cached_has_bits being unused
12020 (void) cached_has_bits;
12021
12022 if (GetArenaNoVirtual() == nullptr && transport_options_ != nullptr) {
12023 delete transport_options_;
12024 }
12025 transport_options_ = nullptr;
12026 ::memset(&buf_ptr_, 0, static_cast<size_t>(
12027 reinterpret_cast<char*>(&require_ack_) -
12028 reinterpret_cast<char*>(&buf_ptr_)) + sizeof(require_ack_));
12029 _internal_metadata_.Clear();
12030}
12031
12032#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12033const char* RecvBufResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
12034#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12035 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
12036 while (!ctx->Done(&ptr)) {
12037 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12038 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
12039 CHK_(ptr);
12040 switch (tag >> 3) {
12041 // fixed64 buf_ptr = 1;
12042 case 1:
12043 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
12044 buf_ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
12045 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
12046 } else goto handle_unusual;
12047 continue;
12048 // int64 num_bytes = 2;
12049 case 2:
12050 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
12051 num_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12052 CHK_(ptr);
12053 } else goto handle_unusual;
12054 continue;
12055 // bool is_dead = 3;
12056 case 3:
12057 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
12058 is_dead_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12059 CHK_(ptr);
12060 } else goto handle_unusual;
12061 continue;
12062 // .google.protobuf.Any transport_options = 4;
12063 case 4:
12064 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
12065 ptr = ctx->ParseMessage(mutable_transport_options(), ptr);
12066 CHK_(ptr);
12067 } else goto handle_unusual;
12068 continue;
12069 // int64 send_start_micros = 5;
12070 case 5:
12071 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
12072 send_start_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12073 CHK_(ptr);
12074 } else goto handle_unusual;
12075 continue;
12076 // bool require_ack = 6;
12077 case 6:
12078 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
12079 require_ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12080 CHK_(ptr);
12081 } else goto handle_unusual;
12082 continue;
12083 default: {
12084 handle_unusual:
12085 if ((tag & 7) == 4 || tag == 0) {
12086 ctx->SetLastTag(tag);
12087 goto success;
12088 }
12089 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
12090 CHK_(ptr != nullptr);
12091 continue;
12092 }
12093 } // switch
12094 } // while
12095success:
12096 return ptr;
12097failure:
12098 ptr = nullptr;
12099 goto success;
12100#undef CHK_
12101}
12102#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12103bool RecvBufResponse::MergePartialFromCodedStream(
12104 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
12105#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12106 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12107 // @@protoc_insertion_point(parse_start:tensorflow.RecvBufResponse)
12108 for (;;) {
12109 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12110 tag = p.first;
12111 if (!p.second) goto handle_unusual;
12112 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12113 // fixed64 buf_ptr = 1;
12114 case 1: {
12115 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
12116
12117 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12118 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
12119 input, &buf_ptr_)));
12120 } else {
12121 goto handle_unusual;
12122 }
12123 break;
12124 }
12125
12126 // int64 num_bytes = 2;
12127 case 2: {
12128 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
12129
12130 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12131 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
12132 input, &num_bytes_)));
12133 } else {
12134 goto handle_unusual;
12135 }
12136 break;
12137 }
12138
12139 // bool is_dead = 3;
12140 case 3: {
12141 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
12142
12143 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12144 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
12145 input, &is_dead_)));
12146 } else {
12147 goto handle_unusual;
12148 }
12149 break;
12150 }
12151
12152 // .google.protobuf.Any transport_options = 4;
12153 case 4: {
12154 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
12155 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
12156 input, mutable_transport_options()));
12157 } else {
12158 goto handle_unusual;
12159 }
12160 break;
12161 }
12162
12163 // int64 send_start_micros = 5;
12164 case 5: {
12165 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
12166
12167 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12168 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
12169 input, &send_start_micros_)));
12170 } else {
12171 goto handle_unusual;
12172 }
12173 break;
12174 }
12175
12176 // bool require_ack = 6;
12177 case 6: {
12178 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
12179
12180 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12181 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
12182 input, &require_ack_)));
12183 } else {
12184 goto handle_unusual;
12185 }
12186 break;
12187 }
12188
12189 default: {
12190 handle_unusual:
12191 if (tag == 0) {
12192 goto success;
12193 }
12194 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
12195 input, tag, _internal_metadata_.mutable_unknown_fields()));
12196 break;
12197 }
12198 }
12199 }
12200success:
12201 // @@protoc_insertion_point(parse_success:tensorflow.RecvBufResponse)
12202 return true;
12203failure:
12204 // @@protoc_insertion_point(parse_failure:tensorflow.RecvBufResponse)
12205 return false;
12206#undef DO_
12207}
12208#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12209
12210void RecvBufResponse::SerializeWithCachedSizes(
12211 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
12212 // @@protoc_insertion_point(serialize_start:tensorflow.RecvBufResponse)
12213 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12214 (void) cached_has_bits;
12215
12216 // fixed64 buf_ptr = 1;
12217 if (this->buf_ptr() != 0) {
12218 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->buf_ptr(), output);
12219 }
12220
12221 // int64 num_bytes = 2;
12222 if (this->num_bytes() != 0) {
12223 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->num_bytes(), output);
12224 }
12225
12226 // bool is_dead = 3;
12227 if (this->is_dead() != 0) {
12228 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->is_dead(), output);
12229 }
12230
12231 // .google.protobuf.Any transport_options = 4;
12232 if (this->has_transport_options()) {
12233 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
12234 4, _Internal::transport_options(this), output);
12235 }
12236
12237 // int64 send_start_micros = 5;
12238 if (this->send_start_micros() != 0) {
12239 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->send_start_micros(), output);
12240 }
12241
12242 // bool require_ack = 6;
12243 if (this->require_ack() != 0) {
12244 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(6, this->require_ack(), output);
12245 }
12246
12247 if (_internal_metadata_.have_unknown_fields()) {
12248 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
12249 _internal_metadata_.unknown_fields(), output);
12250 }
12251 // @@protoc_insertion_point(serialize_end:tensorflow.RecvBufResponse)
12252}
12253
12254::PROTOBUF_NAMESPACE_ID::uint8* RecvBufResponse::InternalSerializeWithCachedSizesToArray(
12255 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
12256 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvBufResponse)
12257 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12258 (void) cached_has_bits;
12259
12260 // fixed64 buf_ptr = 1;
12261 if (this->buf_ptr() != 0) {
12262 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->buf_ptr(), target);
12263 }
12264
12265 // int64 num_bytes = 2;
12266 if (this->num_bytes() != 0) {
12267 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->num_bytes(), target);
12268 }
12269
12270 // bool is_dead = 3;
12271 if (this->is_dead() != 0) {
12272 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->is_dead(), target);
12273 }
12274
12275 // .google.protobuf.Any transport_options = 4;
12276 if (this->has_transport_options()) {
12277 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12278 InternalWriteMessageToArray(
12279 4, _Internal::transport_options(this), target);
12280 }
12281
12282 // int64 send_start_micros = 5;
12283 if (this->send_start_micros() != 0) {
12284 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->send_start_micros(), target);
12285 }
12286
12287 // bool require_ack = 6;
12288 if (this->require_ack() != 0) {
12289 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->require_ack(), target);
12290 }
12291
12292 if (_internal_metadata_.have_unknown_fields()) {
12293 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
12294 _internal_metadata_.unknown_fields(), target);
12295 }
12296 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvBufResponse)
12297 return target;
12298}
12299
12300size_t RecvBufResponse::ByteSizeLong() const {
12301// @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvBufResponse)
12302 size_t total_size = 0;
12303
12304 if (_internal_metadata_.have_unknown_fields()) {
12305 total_size +=
12306 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
12307 _internal_metadata_.unknown_fields());
12308 }
12309 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12310 // Prevent compiler warnings about cached_has_bits being unused
12311 (void) cached_has_bits;
12312
12313 // .google.protobuf.Any transport_options = 4;
12314 if (this->has_transport_options()) {
12315 total_size += 1 +
12316 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12317 *transport_options_);
12318 }
12319
12320 // fixed64 buf_ptr = 1;
12321 if (this->buf_ptr() != 0) {
12322 total_size += 1 + 8;
12323 }
12324
12325 // int64 num_bytes = 2;
12326 if (this->num_bytes() != 0) {
12327 total_size += 1 +
12328 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
12329 this->num_bytes());
12330 }
12331
12332 // int64 send_start_micros = 5;
12333 if (this->send_start_micros() != 0) {
12334 total_size += 1 +
12335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
12336 this->send_start_micros());
12337 }
12338
12339 // bool is_dead = 3;
12340 if (this->is_dead() != 0) {
12341 total_size += 1 + 1;
12342 }
12343
12344 // bool require_ack = 6;
12345 if (this->require_ack() != 0) {
12346 total_size += 1 + 1;
12347 }
12348
12349 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
12350 SetCachedSize(cached_size);
12351 return total_size;
12352}
12353
12354void RecvBufResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12355// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RecvBufResponse)
12356 GOOGLE_DCHECK_NE(&from, this);
12357 const RecvBufResponse* source =
12358 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecvBufResponse>(
12359 &from);
12360 if (source == nullptr) {
12361 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RecvBufResponse)
12362 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
12363 } else {
12364 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RecvBufResponse)
12365 MergeFrom(*source);
12366 }
12367}
12368
12369void RecvBufResponse::MergeFrom(const RecvBufResponse& from) {
12370// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvBufResponse)
12371 GOOGLE_DCHECK_NE(&from, this);
12372 _internal_metadata_.MergeFrom(from._internal_metadata_);
12373 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12374 (void) cached_has_bits;
12375
12376 if (from.has_transport_options()) {
12377 mutable_transport_options()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.transport_options());
12378 }
12379 if (from.buf_ptr() != 0) {
12380 set_buf_ptr(from.buf_ptr());
12381 }
12382 if (from.num_bytes() != 0) {
12383 set_num_bytes(from.num_bytes());
12384 }
12385 if (from.send_start_micros() != 0) {
12386 set_send_start_micros(from.send_start_micros());
12387 }
12388 if (from.is_dead() != 0) {
12389 set_is_dead(from.is_dead());
12390 }
12391 if (from.require_ack() != 0) {
12392 set_require_ack(from.require_ack());
12393 }
12394}
12395
12396void RecvBufResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12397// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RecvBufResponse)
12398 if (&from == this) return;
12399 Clear();
12400 MergeFrom(from);
12401}
12402
12403void RecvBufResponse::CopyFrom(const RecvBufResponse& from) {
12404// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvBufResponse)
12405 if (&from == this) return;
12406 Clear();
12407 MergeFrom(from);
12408}
12409
12410bool RecvBufResponse::IsInitialized() const {
12411 return true;
12412}
12413
12414void RecvBufResponse::InternalSwap(RecvBufResponse* other) {
12415 using std::swap;
12416 _internal_metadata_.Swap(&other->_internal_metadata_);
12417 swap(transport_options_, other->transport_options_);
12418 swap(buf_ptr_, other->buf_ptr_);
12419 swap(num_bytes_, other->num_bytes_);
12420 swap(send_start_micros_, other->send_start_micros_);
12421 swap(is_dead_, other->is_dead_);
12422 swap(require_ack_, other->require_ack_);
12423}
12424
12425::PROTOBUF_NAMESPACE_ID::Metadata RecvBufResponse::GetMetadata() const {
12426 return GetMetadataStatic();
12427}
12428
12429
12430// ===================================================================
12431
12432void CompleteGroupRequest::InitAsDefaultInstance() {
12433 ::tensorflow::_CompleteGroupRequest_default_instance_._instance.get_mutable()->device_attributes_ = const_cast< ::tensorflow::DeviceAttributes*>(
12434 ::tensorflow::DeviceAttributes::internal_default_instance());
12435}
12436class CompleteGroupRequest::_Internal {
12437 public:
12438 static const ::tensorflow::DeviceAttributes& device_attributes(const CompleteGroupRequest* msg);
12439};
12440
12441const ::tensorflow::DeviceAttributes&
12442CompleteGroupRequest::_Internal::device_attributes(const CompleteGroupRequest* msg) {
12443 return *msg->device_attributes_;
12444}
12445void CompleteGroupRequest::unsafe_arena_set_allocated_device_attributes(
12446 ::tensorflow::DeviceAttributes* device_attributes) {
12447 if (GetArenaNoVirtual() == nullptr) {
12448 delete device_attributes_;
12449 }
12450 device_attributes_ = device_attributes;
12451 if (device_attributes) {
12452
12453 } else {
12454
12455 }
12456 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CompleteGroupRequest.device_attributes)
12457}
12458void CompleteGroupRequest::clear_device_attributes() {
12459 if (GetArenaNoVirtual() == nullptr && device_attributes_ != nullptr) {
12460 delete device_attributes_;
12461 }
12462 device_attributes_ = nullptr;
12463}
12464CompleteGroupRequest::CompleteGroupRequest()
12465 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
12466 SharedCtor();
12467 // @@protoc_insertion_point(constructor:tensorflow.CompleteGroupRequest)
12468}
12469CompleteGroupRequest::CompleteGroupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
12470 : ::PROTOBUF_NAMESPACE_ID::Message(),
12471 _internal_metadata_(arena) {
12472 SharedCtor();
12473 RegisterArenaDtor(arena);
12474 // @@protoc_insertion_point(arena_constructor:tensorflow.CompleteGroupRequest)
12475}
12476CompleteGroupRequest::CompleteGroupRequest(const CompleteGroupRequest& from)
12477 : ::PROTOBUF_NAMESPACE_ID::Message(),
12478 _internal_metadata_(nullptr) {
12479 _internal_metadata_.MergeFrom(from._internal_metadata_);
12480 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12481 if (!from.device_type().empty()) {
12482 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_type(),
12483 GetArenaNoVirtual());
12484 }
12485 if (from.has_device_attributes()) {
12486 device_attributes_ = new ::tensorflow::DeviceAttributes(*from.device_attributes_);
12487 } else {
12488 device_attributes_ = nullptr;
12489 }
12490 ::memcpy(&group_key_, &from.group_key_,
12491 static_cast<size_t>(reinterpret_cast<char*>(&collective_type_) -
12492 reinterpret_cast<char*>(&group_key_)) + sizeof(collective_type_));
12493 // @@protoc_insertion_point(copy_constructor:tensorflow.CompleteGroupRequest)
12494}
12495
12496void CompleteGroupRequest::SharedCtor() {
12497 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
12498 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12499 ::memset(&device_attributes_, 0, static_cast<size_t>(
12500 reinterpret_cast<char*>(&collective_type_) -
12501 reinterpret_cast<char*>(&device_attributes_)) + sizeof(collective_type_));
12502}
12503
12504CompleteGroupRequest::~CompleteGroupRequest() {
12505 // @@protoc_insertion_point(destructor:tensorflow.CompleteGroupRequest)
12506 SharedDtor();
12507}
12508
12509void CompleteGroupRequest::SharedDtor() {
12510 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
12511 device_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12512 if (this != internal_default_instance()) delete device_attributes_;
12513}
12514
12515void CompleteGroupRequest::ArenaDtor(void* object) {
12516 CompleteGroupRequest* _this = reinterpret_cast< CompleteGroupRequest* >(object);
12517 (void)_this;
12518}
12519void CompleteGroupRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
12520}
12521void CompleteGroupRequest::SetCachedSize(int size) const {
12522 _cached_size_.Set(size);
12523}
12524const CompleteGroupRequest& CompleteGroupRequest::default_instance() {
12525 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompleteGroupRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
12526 return *internal_default_instance();
12527}
12528
12529
12530void CompleteGroupRequest::Clear() {
12531// @@protoc_insertion_point(message_clear_start:tensorflow.CompleteGroupRequest)
12532 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12533 // Prevent compiler warnings about cached_has_bits being unused
12534 (void) cached_has_bits;
12535
12536 device_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
12537 if (GetArenaNoVirtual() == nullptr && device_attributes_ != nullptr) {
12538 delete device_attributes_;
12539 }
12540 device_attributes_ = nullptr;
12541 ::memset(&group_key_, 0, static_cast<size_t>(
12542 reinterpret_cast<char*>(&collective_type_) -
12543 reinterpret_cast<char*>(&group_key_)) + sizeof(collective_type_));
12544 _internal_metadata_.Clear();
12545}
12546
12547#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12548const char* CompleteGroupRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
12549#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12550 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
12551 while (!ctx->Done(&ptr)) {
12552 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12553 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
12554 CHK_(ptr);
12555 switch (tag >> 3) {
12556 // int32 group_key = 1;
12557 case 1:
12558 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
12559 group_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12560 CHK_(ptr);
12561 } else goto handle_unusual;
12562 continue;
12563 // int32 group_size = 2;
12564 case 2:
12565 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
12566 group_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12567 CHK_(ptr);
12568 } else goto handle_unusual;
12569 continue;
12570 // string device_type = 3;
12571 case 3:
12572 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
12573 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_type(), ptr, ctx, "tensorflow.CompleteGroupRequest.device_type");
12574 CHK_(ptr);
12575 } else goto handle_unusual;
12576 continue;
12577 // int32 collective_type = 5;
12578 case 5:
12579 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
12580 collective_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12581 CHK_(ptr);
12582 } else goto handle_unusual;
12583 continue;
12584 // .tensorflow.DeviceAttributes device_attributes = 6;
12585 case 6:
12586 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
12587 ptr = ctx->ParseMessage(mutable_device_attributes(), ptr);
12588 CHK_(ptr);
12589 } else goto handle_unusual;
12590 continue;
12591 default: {
12592 handle_unusual:
12593 if ((tag & 7) == 4 || tag == 0) {
12594 ctx->SetLastTag(tag);
12595 goto success;
12596 }
12597 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
12598 CHK_(ptr != nullptr);
12599 continue;
12600 }
12601 } // switch
12602 } // while
12603success:
12604 return ptr;
12605failure:
12606 ptr = nullptr;
12607 goto success;
12608#undef CHK_
12609}
12610#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12611bool CompleteGroupRequest::MergePartialFromCodedStream(
12612 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
12613#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12614 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12615 // @@protoc_insertion_point(parse_start:tensorflow.CompleteGroupRequest)
12616 for (;;) {
12617 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12618 tag = p.first;
12619 if (!p.second) goto handle_unusual;
12620 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12621 // int32 group_key = 1;
12622 case 1: {
12623 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
12624
12625 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12626 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
12627 input, &group_key_)));
12628 } else {
12629 goto handle_unusual;
12630 }
12631 break;
12632 }
12633
12634 // int32 group_size = 2;
12635 case 2: {
12636 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
12637
12638 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12639 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
12640 input, &group_size_)));
12641 } else {
12642 goto handle_unusual;
12643 }
12644 break;
12645 }
12646
12647 // string device_type = 3;
12648 case 3: {
12649 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
12650 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
12651 input, this->mutable_device_type()));
12652 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
12653 this->device_type().data(), static_cast<int>(this->device_type().length()),
12654 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
12655 "tensorflow.CompleteGroupRequest.device_type"));
12656 } else {
12657 goto handle_unusual;
12658 }
12659 break;
12660 }
12661
12662 // int32 collective_type = 5;
12663 case 5: {
12664 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
12665
12666 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12667 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
12668 input, &collective_type_)));
12669 } else {
12670 goto handle_unusual;
12671 }
12672 break;
12673 }
12674
12675 // .tensorflow.DeviceAttributes device_attributes = 6;
12676 case 6: {
12677 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
12678 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
12679 input, mutable_device_attributes()));
12680 } else {
12681 goto handle_unusual;
12682 }
12683 break;
12684 }
12685
12686 default: {
12687 handle_unusual:
12688 if (tag == 0) {
12689 goto success;
12690 }
12691 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
12692 input, tag, _internal_metadata_.mutable_unknown_fields()));
12693 break;
12694 }
12695 }
12696 }
12697success:
12698 // @@protoc_insertion_point(parse_success:tensorflow.CompleteGroupRequest)
12699 return true;
12700failure:
12701 // @@protoc_insertion_point(parse_failure:tensorflow.CompleteGroupRequest)
12702 return false;
12703#undef DO_
12704}
12705#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12706
12707void CompleteGroupRequest::SerializeWithCachedSizes(
12708 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
12709 // @@protoc_insertion_point(serialize_start:tensorflow.CompleteGroupRequest)
12710 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12711 (void) cached_has_bits;
12712
12713 // int32 group_key = 1;
12714 if (this->group_key() != 0) {
12715 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->group_key(), output);
12716 }
12717
12718 // int32 group_size = 2;
12719 if (this->group_size() != 0) {
12720 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->group_size(), output);
12721 }
12722
12723 // string device_type = 3;
12724 if (this->device_type().size() > 0) {
12725 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
12726 this->device_type().data(), static_cast<int>(this->device_type().length()),
12727 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
12728 "tensorflow.CompleteGroupRequest.device_type");
12729 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
12730 3, this->device_type(), output);
12731 }
12732
12733 // int32 collective_type = 5;
12734 if (this->collective_type() != 0) {
12735 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(5, this->collective_type(), output);
12736 }
12737
12738 // .tensorflow.DeviceAttributes device_attributes = 6;
12739 if (this->has_device_attributes()) {
12740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
12741 6, _Internal::device_attributes(this), output);
12742 }
12743
12744 if (_internal_metadata_.have_unknown_fields()) {
12745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
12746 _internal_metadata_.unknown_fields(), output);
12747 }
12748 // @@protoc_insertion_point(serialize_end:tensorflow.CompleteGroupRequest)
12749}
12750
12751::PROTOBUF_NAMESPACE_ID::uint8* CompleteGroupRequest::InternalSerializeWithCachedSizesToArray(
12752 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
12753 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CompleteGroupRequest)
12754 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12755 (void) cached_has_bits;
12756
12757 // int32 group_key = 1;
12758 if (this->group_key() != 0) {
12759 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->group_key(), target);
12760 }
12761
12762 // int32 group_size = 2;
12763 if (this->group_size() != 0) {
12764 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->group_size(), target);
12765 }
12766
12767 // string device_type = 3;
12768 if (this->device_type().size() > 0) {
12769 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
12770 this->device_type().data(), static_cast<int>(this->device_type().length()),
12771 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
12772 "tensorflow.CompleteGroupRequest.device_type");
12773 target =
12774 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
12775 3, this->device_type(), target);
12776 }
12777
12778 // int32 collective_type = 5;
12779 if (this->collective_type() != 0) {
12780 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->collective_type(), target);
12781 }
12782
12783 // .tensorflow.DeviceAttributes device_attributes = 6;
12784 if (this->has_device_attributes()) {
12785 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12786 InternalWriteMessageToArray(
12787 6, _Internal::device_attributes(this), target);
12788 }
12789
12790 if (_internal_metadata_.have_unknown_fields()) {
12791 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
12792 _internal_metadata_.unknown_fields(), target);
12793 }
12794 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CompleteGroupRequest)
12795 return target;
12796}
12797
12798size_t CompleteGroupRequest::ByteSizeLong() const {
12799// @@protoc_insertion_point(message_byte_size_start:tensorflow.CompleteGroupRequest)
12800 size_t total_size = 0;
12801
12802 if (_internal_metadata_.have_unknown_fields()) {
12803 total_size +=
12804 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
12805 _internal_metadata_.unknown_fields());
12806 }
12807 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12808 // Prevent compiler warnings about cached_has_bits being unused
12809 (void) cached_has_bits;
12810
12811 // string device_type = 3;
12812 if (this->device_type().size() > 0) {
12813 total_size += 1 +
12814 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12815 this->device_type());
12816 }
12817
12818 // .tensorflow.DeviceAttributes device_attributes = 6;
12819 if (this->has_device_attributes()) {
12820 total_size += 1 +
12821 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12822 *device_attributes_);
12823 }
12824
12825 // int32 group_key = 1;
12826 if (this->group_key() != 0) {
12827 total_size += 1 +
12828 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
12829 this->group_key());
12830 }
12831
12832 // int32 group_size = 2;
12833 if (this->group_size() != 0) {
12834 total_size += 1 +
12835 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
12836 this->group_size());
12837 }
12838
12839 // int32 collective_type = 5;
12840 if (this->collective_type() != 0) {
12841 total_size += 1 +
12842 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
12843 this->collective_type());
12844 }
12845
12846 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
12847 SetCachedSize(cached_size);
12848 return total_size;
12849}
12850
12851void CompleteGroupRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12852// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CompleteGroupRequest)
12853 GOOGLE_DCHECK_NE(&from, this);
12854 const CompleteGroupRequest* source =
12855 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CompleteGroupRequest>(
12856 &from);
12857 if (source == nullptr) {
12858 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CompleteGroupRequest)
12859 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
12860 } else {
12861 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CompleteGroupRequest)
12862 MergeFrom(*source);
12863 }
12864}
12865
12866void CompleteGroupRequest::MergeFrom(const CompleteGroupRequest& from) {
12867// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CompleteGroupRequest)
12868 GOOGLE_DCHECK_NE(&from, this);
12869 _internal_metadata_.MergeFrom(from._internal_metadata_);
12870 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12871 (void) cached_has_bits;
12872
12873 if (from.device_type().size() > 0) {
12874 set_device_type(from.device_type());
12875 }
12876 if (from.has_device_attributes()) {
12877 mutable_device_attributes()->::tensorflow::DeviceAttributes::MergeFrom(from.device_attributes());
12878 }
12879 if (from.group_key() != 0) {
12880 set_group_key(from.group_key());
12881 }
12882 if (from.group_size() != 0) {
12883 set_group_size(from.group_size());
12884 }
12885 if (from.collective_type() != 0) {
12886 set_collective_type(from.collective_type());
12887 }
12888}
12889
12890void CompleteGroupRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12891// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CompleteGroupRequest)
12892 if (&from == this) return;
12893 Clear();
12894 MergeFrom(from);
12895}
12896
12897void CompleteGroupRequest::CopyFrom(const CompleteGroupRequest& from) {
12898// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CompleteGroupRequest)
12899 if (&from == this) return;
12900 Clear();
12901 MergeFrom(from);
12902}
12903
12904bool CompleteGroupRequest::IsInitialized() const {
12905 return true;
12906}
12907
12908void CompleteGroupRequest::InternalSwap(CompleteGroupRequest* other) {
12909 using std::swap;
12910 _internal_metadata_.Swap(&other->_internal_metadata_);
12911 device_type_.Swap(&other->device_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
12912 GetArenaNoVirtual());
12913 swap(device_attributes_, other->device_attributes_);
12914 swap(group_key_, other->group_key_);
12915 swap(group_size_, other->group_size_);
12916 swap(collective_type_, other->collective_type_);
12917}
12918
12919::PROTOBUF_NAMESPACE_ID::Metadata CompleteGroupRequest::GetMetadata() const {
12920 return GetMetadataStatic();
12921}
12922
12923
12924// ===================================================================
12925
12926void CompleteGroupResponse::InitAsDefaultInstance() {
12927}
12928class CompleteGroupResponse::_Internal {
12929 public:
12930};
12931
12932void CompleteGroupResponse::clear_device_attributes() {
12933 device_attributes_.Clear();
12934}
12935CompleteGroupResponse::CompleteGroupResponse()
12936 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
12937 SharedCtor();
12938 // @@protoc_insertion_point(constructor:tensorflow.CompleteGroupResponse)
12939}
12940CompleteGroupResponse::CompleteGroupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
12941 : ::PROTOBUF_NAMESPACE_ID::Message(),
12942 _internal_metadata_(arena),
12943 device_attributes_(arena) {
12944 SharedCtor();
12945 RegisterArenaDtor(arena);
12946 // @@protoc_insertion_point(arena_constructor:tensorflow.CompleteGroupResponse)
12947}
12948CompleteGroupResponse::CompleteGroupResponse(const CompleteGroupResponse& from)
12949 : ::PROTOBUF_NAMESPACE_ID::Message(),
12950 _internal_metadata_(nullptr),
12951 device_attributes_(from.device_attributes_) {
12952 _internal_metadata_.MergeFrom(from._internal_metadata_);
12953 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12954 if (!from.device_type().empty()) {
12955 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_type(),
12956 GetArenaNoVirtual());
12957 }
12958 communicator_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12959 if (!from.communicator_key().empty()) {
12960 communicator_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.communicator_key(),
12961 GetArenaNoVirtual());
12962 }
12963 ::memcpy(&group_key_, &from.group_key_,
12964 static_cast<size_t>(reinterpret_cast<char*>(&num_tasks_) -
12965 reinterpret_cast<char*>(&group_key_)) + sizeof(num_tasks_));
12966 // @@protoc_insertion_point(copy_constructor:tensorflow.CompleteGroupResponse)
12967}
12968
12969void CompleteGroupResponse::SharedCtor() {
12970 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
12971 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12972 communicator_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12973 ::memset(&group_key_, 0, static_cast<size_t>(
12974 reinterpret_cast<char*>(&num_tasks_) -
12975 reinterpret_cast<char*>(&group_key_)) + sizeof(num_tasks_));
12976}
12977
12978CompleteGroupResponse::~CompleteGroupResponse() {
12979 // @@protoc_insertion_point(destructor:tensorflow.CompleteGroupResponse)
12980 SharedDtor();
12981}
12982
12983void CompleteGroupResponse::SharedDtor() {
12984 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
12985 device_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12986 communicator_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12987}
12988
12989void CompleteGroupResponse::ArenaDtor(void* object) {
12990 CompleteGroupResponse* _this = reinterpret_cast< CompleteGroupResponse* >(object);
12991 (void)_this;
12992}
12993void CompleteGroupResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
12994}
12995void CompleteGroupResponse::SetCachedSize(int size) const {
12996 _cached_size_.Set(size);
12997}
12998const CompleteGroupResponse& CompleteGroupResponse::default_instance() {
12999 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompleteGroupResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
13000 return *internal_default_instance();
13001}
13002
13003
13004void CompleteGroupResponse::Clear() {
13005// @@protoc_insertion_point(message_clear_start:tensorflow.CompleteGroupResponse)
13006 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13007 // Prevent compiler warnings about cached_has_bits being unused
13008 (void) cached_has_bits;
13009
13010 device_attributes_.Clear();
13011 device_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
13012 communicator_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
13013 ::memset(&group_key_, 0, static_cast<size_t>(
13014 reinterpret_cast<char*>(&num_tasks_) -
13015 reinterpret_cast<char*>(&group_key_)) + sizeof(num_tasks_));
13016 _internal_metadata_.Clear();
13017}
13018
13019#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13020const char* CompleteGroupResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
13021#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13022 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
13023 while (!ctx->Done(&ptr)) {
13024 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13025 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
13026 CHK_(ptr);
13027 switch (tag >> 3) {
13028 // int32 group_key = 1;
13029 case 1:
13030 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
13031 group_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13032 CHK_(ptr);
13033 } else goto handle_unusual;
13034 continue;
13035 // int32 group_size = 2;
13036 case 2:
13037 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
13038 group_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13039 CHK_(ptr);
13040 } else goto handle_unusual;
13041 continue;
13042 // string device_type = 3;
13043 case 3:
13044 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
13045 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_type(), ptr, ctx, "tensorflow.CompleteGroupResponse.device_type");
13046 CHK_(ptr);
13047 } else goto handle_unusual;
13048 continue;
13049 // int32 num_tasks = 4;
13050 case 4:
13051 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
13052 num_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13053 CHK_(ptr);
13054 } else goto handle_unusual;
13055 continue;
13056 // bytes communicator_key = 7;
13057 case 7:
13058 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
13059 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_communicator_key(), ptr, ctx);
13060 CHK_(ptr);
13061 } else goto handle_unusual;
13062 continue;
13063 // repeated .tensorflow.DeviceAttributes device_attributes = 8;
13064 case 8:
13065 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
13066 ptr -= 1;
13067 do {
13068 ptr += 1;
13069 ptr = ctx->ParseMessage(add_device_attributes(), ptr);
13070 CHK_(ptr);
13071 if (!ctx->DataAvailable(ptr)) break;
13072 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 66);
13073 } else goto handle_unusual;
13074 continue;
13075 default: {
13076 handle_unusual:
13077 if ((tag & 7) == 4 || tag == 0) {
13078 ctx->SetLastTag(tag);
13079 goto success;
13080 }
13081 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
13082 CHK_(ptr != nullptr);
13083 continue;
13084 }
13085 } // switch
13086 } // while
13087success:
13088 return ptr;
13089failure:
13090 ptr = nullptr;
13091 goto success;
13092#undef CHK_
13093}
13094#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13095bool CompleteGroupResponse::MergePartialFromCodedStream(
13096 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
13097#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
13098 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13099 // @@protoc_insertion_point(parse_start:tensorflow.CompleteGroupResponse)
13100 for (;;) {
13101 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13102 tag = p.first;
13103 if (!p.second) goto handle_unusual;
13104 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13105 // int32 group_key = 1;
13106 case 1: {
13107 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
13108
13109 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13110 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13111 input, &group_key_)));
13112 } else {
13113 goto handle_unusual;
13114 }
13115 break;
13116 }
13117
13118 // int32 group_size = 2;
13119 case 2: {
13120 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
13121
13122 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13123 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13124 input, &group_size_)));
13125 } else {
13126 goto handle_unusual;
13127 }
13128 break;
13129 }
13130
13131 // string device_type = 3;
13132 case 3: {
13133 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
13134 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13135 input, this->mutable_device_type()));
13136 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13137 this->device_type().data(), static_cast<int>(this->device_type().length()),
13138 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
13139 "tensorflow.CompleteGroupResponse.device_type"));
13140 } else {
13141 goto handle_unusual;
13142 }
13143 break;
13144 }
13145
13146 // int32 num_tasks = 4;
13147 case 4: {
13148 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
13149
13150 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13151 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13152 input, &num_tasks_)));
13153 } else {
13154 goto handle_unusual;
13155 }
13156 break;
13157 }
13158
13159 // bytes communicator_key = 7;
13160 case 7: {
13161 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
13162 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
13163 input, this->mutable_communicator_key()));
13164 } else {
13165 goto handle_unusual;
13166 }
13167 break;
13168 }
13169
13170 // repeated .tensorflow.DeviceAttributes device_attributes = 8;
13171 case 8: {
13172 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
13173 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
13174 input, add_device_attributes()));
13175 } else {
13176 goto handle_unusual;
13177 }
13178 break;
13179 }
13180
13181 default: {
13182 handle_unusual:
13183 if (tag == 0) {
13184 goto success;
13185 }
13186 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
13187 input, tag, _internal_metadata_.mutable_unknown_fields()));
13188 break;
13189 }
13190 }
13191 }
13192success:
13193 // @@protoc_insertion_point(parse_success:tensorflow.CompleteGroupResponse)
13194 return true;
13195failure:
13196 // @@protoc_insertion_point(parse_failure:tensorflow.CompleteGroupResponse)
13197 return false;
13198#undef DO_
13199}
13200#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13201
13202void CompleteGroupResponse::SerializeWithCachedSizes(
13203 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
13204 // @@protoc_insertion_point(serialize_start:tensorflow.CompleteGroupResponse)
13205 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13206 (void) cached_has_bits;
13207
13208 // int32 group_key = 1;
13209 if (this->group_key() != 0) {
13210 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->group_key(), output);
13211 }
13212
13213 // int32 group_size = 2;
13214 if (this->group_size() != 0) {
13215 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->group_size(), output);
13216 }
13217
13218 // string device_type = 3;
13219 if (this->device_type().size() > 0) {
13220 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13221 this->device_type().data(), static_cast<int>(this->device_type().length()),
13222 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13223 "tensorflow.CompleteGroupResponse.device_type");
13224 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13225 3, this->device_type(), output);
13226 }
13227
13228 // int32 num_tasks = 4;
13229 if (this->num_tasks() != 0) {
13230 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(4, this->num_tasks(), output);
13231 }
13232
13233 // bytes communicator_key = 7;
13234 if (this->communicator_key().size() > 0) {
13235 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
13236 7, this->communicator_key(), output);
13237 }
13238
13239 // repeated .tensorflow.DeviceAttributes device_attributes = 8;
13240 for (unsigned int i = 0,
13241 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
13242 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
13243 8,
13244 this->device_attributes(static_cast<int>(i)),
13245 output);
13246 }
13247
13248 if (_internal_metadata_.have_unknown_fields()) {
13249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
13250 _internal_metadata_.unknown_fields(), output);
13251 }
13252 // @@protoc_insertion_point(serialize_end:tensorflow.CompleteGroupResponse)
13253}
13254
13255::PROTOBUF_NAMESPACE_ID::uint8* CompleteGroupResponse::InternalSerializeWithCachedSizesToArray(
13256 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
13257 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CompleteGroupResponse)
13258 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13259 (void) cached_has_bits;
13260
13261 // int32 group_key = 1;
13262 if (this->group_key() != 0) {
13263 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->group_key(), target);
13264 }
13265
13266 // int32 group_size = 2;
13267 if (this->group_size() != 0) {
13268 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->group_size(), target);
13269 }
13270
13271 // string device_type = 3;
13272 if (this->device_type().size() > 0) {
13273 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13274 this->device_type().data(), static_cast<int>(this->device_type().length()),
13275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13276 "tensorflow.CompleteGroupResponse.device_type");
13277 target =
13278 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
13279 3, this->device_type(), target);
13280 }
13281
13282 // int32 num_tasks = 4;
13283 if (this->num_tasks() != 0) {
13284 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->num_tasks(), target);
13285 }
13286
13287 // bytes communicator_key = 7;
13288 if (this->communicator_key().size() > 0) {
13289 target =
13290 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
13291 7, this->communicator_key(), target);
13292 }
13293
13294 // repeated .tensorflow.DeviceAttributes device_attributes = 8;
13295 for (unsigned int i = 0,
13296 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
13297 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13298 InternalWriteMessageToArray(
13299 8, this->device_attributes(static_cast<int>(i)), target);
13300 }
13301
13302 if (_internal_metadata_.have_unknown_fields()) {
13303 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
13304 _internal_metadata_.unknown_fields(), target);
13305 }
13306 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CompleteGroupResponse)
13307 return target;
13308}
13309
13310size_t CompleteGroupResponse::ByteSizeLong() const {
13311// @@protoc_insertion_point(message_byte_size_start:tensorflow.CompleteGroupResponse)
13312 size_t total_size = 0;
13313
13314 if (_internal_metadata_.have_unknown_fields()) {
13315 total_size +=
13316 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
13317 _internal_metadata_.unknown_fields());
13318 }
13319 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13320 // Prevent compiler warnings about cached_has_bits being unused
13321 (void) cached_has_bits;
13322
13323 // repeated .tensorflow.DeviceAttributes device_attributes = 8;
13324 {
13325 unsigned int count = static_cast<unsigned int>(this->device_attributes_size());
13326 total_size += 1UL * count;
13327 for (unsigned int i = 0; i < count; i++) {
13328 total_size +=
13329 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13330 this->device_attributes(static_cast<int>(i)));
13331 }
13332 }
13333
13334 // string device_type = 3;
13335 if (this->device_type().size() > 0) {
13336 total_size += 1 +
13337 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13338 this->device_type());
13339 }
13340
13341 // bytes communicator_key = 7;
13342 if (this->communicator_key().size() > 0) {
13343 total_size += 1 +
13344 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
13345 this->communicator_key());
13346 }
13347
13348 // int32 group_key = 1;
13349 if (this->group_key() != 0) {
13350 total_size += 1 +
13351 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
13352 this->group_key());
13353 }
13354
13355 // int32 group_size = 2;
13356 if (this->group_size() != 0) {
13357 total_size += 1 +
13358 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
13359 this->group_size());
13360 }
13361
13362 // int32 num_tasks = 4;
13363 if (this->num_tasks() != 0) {
13364 total_size += 1 +
13365 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
13366 this->num_tasks());
13367 }
13368
13369 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
13370 SetCachedSize(cached_size);
13371 return total_size;
13372}
13373
13374void CompleteGroupResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13375// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CompleteGroupResponse)
13376 GOOGLE_DCHECK_NE(&from, this);
13377 const CompleteGroupResponse* source =
13378 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CompleteGroupResponse>(
13379 &from);
13380 if (source == nullptr) {
13381 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CompleteGroupResponse)
13382 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
13383 } else {
13384 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CompleteGroupResponse)
13385 MergeFrom(*source);
13386 }
13387}
13388
13389void CompleteGroupResponse::MergeFrom(const CompleteGroupResponse& from) {
13390// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CompleteGroupResponse)
13391 GOOGLE_DCHECK_NE(&from, this);
13392 _internal_metadata_.MergeFrom(from._internal_metadata_);
13393 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13394 (void) cached_has_bits;
13395
13396 device_attributes_.MergeFrom(from.device_attributes_);
13397 if (from.device_type().size() > 0) {
13398 set_device_type(from.device_type());
13399 }
13400 if (from.communicator_key().size() > 0) {
13401 set_communicator_key(from.communicator_key());
13402 }
13403 if (from.group_key() != 0) {
13404 set_group_key(from.group_key());
13405 }
13406 if (from.group_size() != 0) {
13407 set_group_size(from.group_size());
13408 }
13409 if (from.num_tasks() != 0) {
13410 set_num_tasks(from.num_tasks());
13411 }
13412}
13413
13414void CompleteGroupResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13415// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CompleteGroupResponse)
13416 if (&from == this) return;
13417 Clear();
13418 MergeFrom(from);
13419}
13420
13421void CompleteGroupResponse::CopyFrom(const CompleteGroupResponse& from) {
13422// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CompleteGroupResponse)
13423 if (&from == this) return;
13424 Clear();
13425 MergeFrom(from);
13426}
13427
13428bool CompleteGroupResponse::IsInitialized() const {
13429 return true;
13430}
13431
13432void CompleteGroupResponse::InternalSwap(CompleteGroupResponse* other) {
13433 using std::swap;
13434 _internal_metadata_.Swap(&other->_internal_metadata_);
13435 CastToBase(&device_attributes_)->InternalSwap(CastToBase(&other->device_attributes_));
13436 device_type_.Swap(&other->device_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13437 GetArenaNoVirtual());
13438 communicator_key_.Swap(&other->communicator_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13439 GetArenaNoVirtual());
13440 swap(group_key_, other->group_key_);
13441 swap(group_size_, other->group_size_);
13442 swap(num_tasks_, other->num_tasks_);
13443}
13444
13445::PROTOBUF_NAMESPACE_ID::Metadata CompleteGroupResponse::GetMetadata() const {
13446 return GetMetadataStatic();
13447}
13448
13449
13450// ===================================================================
13451
13452void CompleteInstanceRequest::InitAsDefaultInstance() {
13453 ::tensorflow::_CompleteInstanceRequest_default_instance_._instance.get_mutable()->shape_ = const_cast< ::tensorflow::TensorShapeProto*>(
13454 ::tensorflow::TensorShapeProto::internal_default_instance());
13455}
13456class CompleteInstanceRequest::_Internal {
13457 public:
13458 static const ::tensorflow::TensorShapeProto& shape(const CompleteInstanceRequest* msg);
13459};
13460
13461const ::tensorflow::TensorShapeProto&
13462CompleteInstanceRequest::_Internal::shape(const CompleteInstanceRequest* msg) {
13463 return *msg->shape_;
13464}
13465void CompleteInstanceRequest::unsafe_arena_set_allocated_shape(
13466 ::tensorflow::TensorShapeProto* shape) {
13467 if (GetArenaNoVirtual() == nullptr) {
13468 delete shape_;
13469 }
13470 shape_ = shape;
13471 if (shape) {
13472
13473 } else {
13474
13475 }
13476 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CompleteInstanceRequest.shape)
13477}
13478void CompleteInstanceRequest::clear_shape() {
13479 if (GetArenaNoVirtual() == nullptr && shape_ != nullptr) {
13480 delete shape_;
13481 }
13482 shape_ = nullptr;
13483}
13484CompleteInstanceRequest::CompleteInstanceRequest()
13485 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
13486 SharedCtor();
13487 // @@protoc_insertion_point(constructor:tensorflow.CompleteInstanceRequest)
13488}
13489CompleteInstanceRequest::CompleteInstanceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
13490 : ::PROTOBUF_NAMESPACE_ID::Message(),
13491 _internal_metadata_(arena),
13492 subdiv_offset_(arena) {
13493 SharedCtor();
13494 RegisterArenaDtor(arena);
13495 // @@protoc_insertion_point(arena_constructor:tensorflow.CompleteInstanceRequest)
13496}
13497CompleteInstanceRequest::CompleteInstanceRequest(const CompleteInstanceRequest& from)
13498 : ::PROTOBUF_NAMESPACE_ID::Message(),
13499 _internal_metadata_(nullptr),
13500 subdiv_offset_(from.subdiv_offset_) {
13501 _internal_metadata_.MergeFrom(from._internal_metadata_);
13502 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13503 if (!from.name().empty()) {
13504 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
13505 GetArenaNoVirtual());
13506 }
13507 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13508 if (!from.device_type().empty()) {
13509 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_type(),
13510 GetArenaNoVirtual());
13511 }
13512 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13513 if (!from.device().empty()) {
13514 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device(),
13515 GetArenaNoVirtual());
13516 }
13517 if (from.has_shape()) {
13518 shape_ = new ::tensorflow::TensorShapeProto(*from.shape_);
13519 } else {
13520 shape_ = nullptr;
13521 }
13522 ::memcpy(&type_, &from.type_,
13523 static_cast<size_t>(reinterpret_cast<char*>(&is_source_) -
13524 reinterpret_cast<char*>(&type_)) + sizeof(is_source_));
13525 // @@protoc_insertion_point(copy_constructor:tensorflow.CompleteInstanceRequest)
13526}
13527
13528void CompleteInstanceRequest::SharedCtor() {
13529 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
13530 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13531 device_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13532 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13533 ::memset(&shape_, 0, static_cast<size_t>(
13534 reinterpret_cast<char*>(&is_source_) -
13535 reinterpret_cast<char*>(&shape_)) + sizeof(is_source_));
13536}
13537
13538CompleteInstanceRequest::~CompleteInstanceRequest() {
13539 // @@protoc_insertion_point(destructor:tensorflow.CompleteInstanceRequest)
13540 SharedDtor();
13541}
13542
13543void CompleteInstanceRequest::SharedDtor() {
13544 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
13545 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13546 device_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13547 device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13548 if (this != internal_default_instance()) delete shape_;
13549}
13550
13551void CompleteInstanceRequest::ArenaDtor(void* object) {
13552 CompleteInstanceRequest* _this = reinterpret_cast< CompleteInstanceRequest* >(object);
13553 (void)_this;
13554}
13555void CompleteInstanceRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
13556}
13557void CompleteInstanceRequest::SetCachedSize(int size) const {
13558 _cached_size_.Set(size);
13559}
13560const CompleteInstanceRequest& CompleteInstanceRequest::default_instance() {
13561 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompleteInstanceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
13562 return *internal_default_instance();
13563}
13564
13565
13566void CompleteInstanceRequest::Clear() {
13567// @@protoc_insertion_point(message_clear_start:tensorflow.CompleteInstanceRequest)
13568 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13569 // Prevent compiler warnings about cached_has_bits being unused
13570 (void) cached_has_bits;
13571
13572 subdiv_offset_.Clear();
13573 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
13574 device_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
13575 device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
13576 if (GetArenaNoVirtual() == nullptr && shape_ != nullptr) {
13577 delete shape_;
13578 }
13579 shape_ = nullptr;
13580 ::memset(&type_, 0, static_cast<size_t>(
13581 reinterpret_cast<char*>(&is_source_) -
13582 reinterpret_cast<char*>(&type_)) + sizeof(is_source_));
13583 _internal_metadata_.Clear();
13584}
13585
13586#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13587const char* CompleteInstanceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
13588#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13589 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
13590 while (!ctx->Done(&ptr)) {
13591 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13592 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
13593 CHK_(ptr);
13594 switch (tag >> 3) {
13595 // string name = 1;
13596 case 1:
13597 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
13598 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.CompleteInstanceRequest.name");
13599 CHK_(ptr);
13600 } else goto handle_unusual;
13601 continue;
13602 // int32 type = 2;
13603 case 2:
13604 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
13605 type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13606 CHK_(ptr);
13607 } else goto handle_unusual;
13608 continue;
13609 // .tensorflow.DataType data_type = 3;
13610 case 3:
13611 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
13612 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13613 CHK_(ptr);
13614 set_data_type(static_cast<::tensorflow::DataType>(val));
13615 } else goto handle_unusual;
13616 continue;
13617 // .tensorflow.TensorShapeProto shape = 4;
13618 case 4:
13619 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
13620 ptr = ctx->ParseMessage(mutable_shape(), ptr);
13621 CHK_(ptr);
13622 } else goto handle_unusual;
13623 continue;
13624 // int32 group_key = 5;
13625 case 5:
13626 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
13627 group_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13628 CHK_(ptr);
13629 } else goto handle_unusual;
13630 continue;
13631 // int32 group_size = 6;
13632 case 6:
13633 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
13634 group_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13635 CHK_(ptr);
13636 } else goto handle_unusual;
13637 continue;
13638 // int32 instance_key = 7;
13639 case 7:
13640 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
13641 instance_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13642 CHK_(ptr);
13643 } else goto handle_unusual;
13644 continue;
13645 // string device_type = 8;
13646 case 8:
13647 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
13648 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_type(), ptr, ctx, "tensorflow.CompleteInstanceRequest.device_type");
13649 CHK_(ptr);
13650 } else goto handle_unusual;
13651 continue;
13652 // repeated int32 subdiv_offset = 9;
13653 case 9:
13654 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
13655 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_subdiv_offset(), ptr, ctx);
13656 CHK_(ptr);
13657 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72) {
13658 add_subdiv_offset(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
13659 CHK_(ptr);
13660 } else goto handle_unusual;
13661 continue;
13662 // string device = 10;
13663 case 10:
13664 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
13665 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device(), ptr, ctx, "tensorflow.CompleteInstanceRequest.device");
13666 CHK_(ptr);
13667 } else goto handle_unusual;
13668 continue;
13669 // bool is_source = 11;
13670 case 11:
13671 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
13672 is_source_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13673 CHK_(ptr);
13674 } else goto handle_unusual;
13675 continue;
13676 default: {
13677 handle_unusual:
13678 if ((tag & 7) == 4 || tag == 0) {
13679 ctx->SetLastTag(tag);
13680 goto success;
13681 }
13682 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
13683 CHK_(ptr != nullptr);
13684 continue;
13685 }
13686 } // switch
13687 } // while
13688success:
13689 return ptr;
13690failure:
13691 ptr = nullptr;
13692 goto success;
13693#undef CHK_
13694}
13695#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13696bool CompleteInstanceRequest::MergePartialFromCodedStream(
13697 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
13698#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
13699 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13700 // @@protoc_insertion_point(parse_start:tensorflow.CompleteInstanceRequest)
13701 for (;;) {
13702 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13703 tag = p.first;
13704 if (!p.second) goto handle_unusual;
13705 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13706 // string name = 1;
13707 case 1: {
13708 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
13709 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13710 input, this->mutable_name()));
13711 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13712 this->name().data(), static_cast<int>(this->name().length()),
13713 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
13714 "tensorflow.CompleteInstanceRequest.name"));
13715 } else {
13716 goto handle_unusual;
13717 }
13718 break;
13719 }
13720
13721 // int32 type = 2;
13722 case 2: {
13723 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
13724
13725 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13726 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13727 input, &type_)));
13728 } else {
13729 goto handle_unusual;
13730 }
13731 break;
13732 }
13733
13734 // .tensorflow.DataType data_type = 3;
13735 case 3: {
13736 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
13737 int value = 0;
13738 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13739 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
13740 input, &value)));
13741 set_data_type(static_cast< ::tensorflow::DataType >(value));
13742 } else {
13743 goto handle_unusual;
13744 }
13745 break;
13746 }
13747
13748 // .tensorflow.TensorShapeProto shape = 4;
13749 case 4: {
13750 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
13751 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
13752 input, mutable_shape()));
13753 } else {
13754 goto handle_unusual;
13755 }
13756 break;
13757 }
13758
13759 // int32 group_key = 5;
13760 case 5: {
13761 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
13762
13763 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13764 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13765 input, &group_key_)));
13766 } else {
13767 goto handle_unusual;
13768 }
13769 break;
13770 }
13771
13772 // int32 group_size = 6;
13773 case 6: {
13774 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
13775
13776 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13777 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13778 input, &group_size_)));
13779 } else {
13780 goto handle_unusual;
13781 }
13782 break;
13783 }
13784
13785 // int32 instance_key = 7;
13786 case 7: {
13787 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
13788
13789 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13790 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13791 input, &instance_key_)));
13792 } else {
13793 goto handle_unusual;
13794 }
13795 break;
13796 }
13797
13798 // string device_type = 8;
13799 case 8: {
13800 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
13801 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13802 input, this->mutable_device_type()));
13803 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13804 this->device_type().data(), static_cast<int>(this->device_type().length()),
13805 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
13806 "tensorflow.CompleteInstanceRequest.device_type"));
13807 } else {
13808 goto handle_unusual;
13809 }
13810 break;
13811 }
13812
13813 // repeated int32 subdiv_offset = 9;
13814 case 9: {
13815 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
13816 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
13817 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13818 input, this->mutable_subdiv_offset())));
13819 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
13820 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13821 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13822 1, 74u, input, this->mutable_subdiv_offset())));
13823 } else {
13824 goto handle_unusual;
13825 }
13826 break;
13827 }
13828
13829 // string device = 10;
13830 case 10: {
13831 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
13832 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13833 input, this->mutable_device()));
13834 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13835 this->device().data(), static_cast<int>(this->device().length()),
13836 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
13837 "tensorflow.CompleteInstanceRequest.device"));
13838 } else {
13839 goto handle_unusual;
13840 }
13841 break;
13842 }
13843
13844 // bool is_source = 11;
13845 case 11: {
13846 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
13847
13848 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13849 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
13850 input, &is_source_)));
13851 } else {
13852 goto handle_unusual;
13853 }
13854 break;
13855 }
13856
13857 default: {
13858 handle_unusual:
13859 if (tag == 0) {
13860 goto success;
13861 }
13862 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
13863 input, tag, _internal_metadata_.mutable_unknown_fields()));
13864 break;
13865 }
13866 }
13867 }
13868success:
13869 // @@protoc_insertion_point(parse_success:tensorflow.CompleteInstanceRequest)
13870 return true;
13871failure:
13872 // @@protoc_insertion_point(parse_failure:tensorflow.CompleteInstanceRequest)
13873 return false;
13874#undef DO_
13875}
13876#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13877
13878void CompleteInstanceRequest::SerializeWithCachedSizes(
13879 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
13880 // @@protoc_insertion_point(serialize_start:tensorflow.CompleteInstanceRequest)
13881 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13882 (void) cached_has_bits;
13883
13884 // string name = 1;
13885 if (this->name().size() > 0) {
13886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13887 this->name().data(), static_cast<int>(this->name().length()),
13888 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13889 "tensorflow.CompleteInstanceRequest.name");
13890 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13891 1, this->name(), output);
13892 }
13893
13894 // int32 type = 2;
13895 if (this->type() != 0) {
13896 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->type(), output);
13897 }
13898
13899 // .tensorflow.DataType data_type = 3;
13900 if (this->data_type() != 0) {
13901 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
13902 3, this->data_type(), output);
13903 }
13904
13905 // .tensorflow.TensorShapeProto shape = 4;
13906 if (this->has_shape()) {
13907 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
13908 4, _Internal::shape(this), output);
13909 }
13910
13911 // int32 group_key = 5;
13912 if (this->group_key() != 0) {
13913 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(5, this->group_key(), output);
13914 }
13915
13916 // int32 group_size = 6;
13917 if (this->group_size() != 0) {
13918 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(6, this->group_size(), output);
13919 }
13920
13921 // int32 instance_key = 7;
13922 if (this->instance_key() != 0) {
13923 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(7, this->instance_key(), output);
13924 }
13925
13926 // string device_type = 8;
13927 if (this->device_type().size() > 0) {
13928 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13929 this->device_type().data(), static_cast<int>(this->device_type().length()),
13930 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13931 "tensorflow.CompleteInstanceRequest.device_type");
13932 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13933 8, this->device_type(), output);
13934 }
13935
13936 // repeated int32 subdiv_offset = 9;
13937 if (this->subdiv_offset_size() > 0) {
13938 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(9, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13939 output->WriteVarint32(_subdiv_offset_cached_byte_size_.load(
13940 std::memory_order_relaxed));
13941 }
13942 for (int i = 0, n = this->subdiv_offset_size(); i < n; i++) {
13943 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
13944 this->subdiv_offset(i), output);
13945 }
13946
13947 // string device = 10;
13948 if (this->device().size() > 0) {
13949 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13950 this->device().data(), static_cast<int>(this->device().length()),
13951 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13952 "tensorflow.CompleteInstanceRequest.device");
13953 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13954 10, this->device(), output);
13955 }
13956
13957 // bool is_source = 11;
13958 if (this->is_source() != 0) {
13959 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(11, this->is_source(), output);
13960 }
13961
13962 if (_internal_metadata_.have_unknown_fields()) {
13963 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
13964 _internal_metadata_.unknown_fields(), output);
13965 }
13966 // @@protoc_insertion_point(serialize_end:tensorflow.CompleteInstanceRequest)
13967}
13968
13969::PROTOBUF_NAMESPACE_ID::uint8* CompleteInstanceRequest::InternalSerializeWithCachedSizesToArray(
13970 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
13971 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CompleteInstanceRequest)
13972 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13973 (void) cached_has_bits;
13974
13975 // string name = 1;
13976 if (this->name().size() > 0) {
13977 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13978 this->name().data(), static_cast<int>(this->name().length()),
13979 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13980 "tensorflow.CompleteInstanceRequest.name");
13981 target =
13982 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
13983 1, this->name(), target);
13984 }
13985
13986 // int32 type = 2;
13987 if (this->type() != 0) {
13988 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
13989 }
13990
13991 // .tensorflow.DataType data_type = 3;
13992 if (this->data_type() != 0) {
13993 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
13994 3, this->data_type(), target);
13995 }
13996
13997 // .tensorflow.TensorShapeProto shape = 4;
13998 if (this->has_shape()) {
13999 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14000 InternalWriteMessageToArray(
14001 4, _Internal::shape(this), target);
14002 }
14003
14004 // int32 group_key = 5;
14005 if (this->group_key() != 0) {
14006 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->group_key(), target);
14007 }
14008
14009 // int32 group_size = 6;
14010 if (this->group_size() != 0) {
14011 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->group_size(), target);
14012 }
14013
14014 // int32 instance_key = 7;
14015 if (this->instance_key() != 0) {
14016 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->instance_key(), target);
14017 }
14018
14019 // string device_type = 8;
14020 if (this->device_type().size() > 0) {
14021 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14022 this->device_type().data(), static_cast<int>(this->device_type().length()),
14023 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14024 "tensorflow.CompleteInstanceRequest.device_type");
14025 target =
14026 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
14027 8, this->device_type(), target);
14028 }
14029
14030 // repeated int32 subdiv_offset = 9;
14031 if (this->subdiv_offset_size() > 0) {
14032 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
14033 9,
14034 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14035 target);
14036 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
14037 _subdiv_offset_cached_byte_size_.load(std::memory_order_relaxed),
14038 target);
14039 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14040 WriteInt32NoTagToArray(this->subdiv_offset_, target);
14041 }
14042
14043 // string device = 10;
14044 if (this->device().size() > 0) {
14045 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14046 this->device().data(), static_cast<int>(this->device().length()),
14047 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14048 "tensorflow.CompleteInstanceRequest.device");
14049 target =
14050 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
14051 10, this->device(), target);
14052 }
14053
14054 // bool is_source = 11;
14055 if (this->is_source() != 0) {
14056 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->is_source(), target);
14057 }
14058
14059 if (_internal_metadata_.have_unknown_fields()) {
14060 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14061 _internal_metadata_.unknown_fields(), target);
14062 }
14063 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CompleteInstanceRequest)
14064 return target;
14065}
14066
14067size_t CompleteInstanceRequest::ByteSizeLong() const {
14068// @@protoc_insertion_point(message_byte_size_start:tensorflow.CompleteInstanceRequest)
14069 size_t total_size = 0;
14070
14071 if (_internal_metadata_.have_unknown_fields()) {
14072 total_size +=
14073 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14074 _internal_metadata_.unknown_fields());
14075 }
14076 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14077 // Prevent compiler warnings about cached_has_bits being unused
14078 (void) cached_has_bits;
14079
14080 // repeated int32 subdiv_offset = 9;
14081 {
14082 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14083 Int32Size(this->subdiv_offset_);
14084 if (data_size > 0) {
14085 total_size += 1 +
14086 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14087 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
14088 }
14089 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
14090 _subdiv_offset_cached_byte_size_.store(cached_size,
14091 std::memory_order_relaxed);
14092 total_size += data_size;
14093 }
14094
14095 // string name = 1;
14096 if (this->name().size() > 0) {
14097 total_size += 1 +
14098 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14099 this->name());
14100 }
14101
14102 // string device_type = 8;
14103 if (this->device_type().size() > 0) {
14104 total_size += 1 +
14105 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14106 this->device_type());
14107 }
14108
14109 // string device = 10;
14110 if (this->device().size() > 0) {
14111 total_size += 1 +
14112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14113 this->device());
14114 }
14115
14116 // .tensorflow.TensorShapeProto shape = 4;
14117 if (this->has_shape()) {
14118 total_size += 1 +
14119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
14120 *shape_);
14121 }
14122
14123 // int32 type = 2;
14124 if (this->type() != 0) {
14125 total_size += 1 +
14126 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14127 this->type());
14128 }
14129
14130 // .tensorflow.DataType data_type = 3;
14131 if (this->data_type() != 0) {
14132 total_size += 1 +
14133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->data_type());
14134 }
14135
14136 // int32 group_key = 5;
14137 if (this->group_key() != 0) {
14138 total_size += 1 +
14139 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14140 this->group_key());
14141 }
14142
14143 // int32 group_size = 6;
14144 if (this->group_size() != 0) {
14145 total_size += 1 +
14146 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14147 this->group_size());
14148 }
14149
14150 // int32 instance_key = 7;
14151 if (this->instance_key() != 0) {
14152 total_size += 1 +
14153 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14154 this->instance_key());
14155 }
14156
14157 // bool is_source = 11;
14158 if (this->is_source() != 0) {
14159 total_size += 1 + 1;
14160 }
14161
14162 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14163 SetCachedSize(cached_size);
14164 return total_size;
14165}
14166
14167void CompleteInstanceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14168// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CompleteInstanceRequest)
14169 GOOGLE_DCHECK_NE(&from, this);
14170 const CompleteInstanceRequest* source =
14171 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CompleteInstanceRequest>(
14172 &from);
14173 if (source == nullptr) {
14174 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CompleteInstanceRequest)
14175 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14176 } else {
14177 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CompleteInstanceRequest)
14178 MergeFrom(*source);
14179 }
14180}
14181
14182void CompleteInstanceRequest::MergeFrom(const CompleteInstanceRequest& from) {
14183// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CompleteInstanceRequest)
14184 GOOGLE_DCHECK_NE(&from, this);
14185 _internal_metadata_.MergeFrom(from._internal_metadata_);
14186 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14187 (void) cached_has_bits;
14188
14189 subdiv_offset_.MergeFrom(from.subdiv_offset_);
14190 if (from.name().size() > 0) {
14191 set_name(from.name());
14192 }
14193 if (from.device_type().size() > 0) {
14194 set_device_type(from.device_type());
14195 }
14196 if (from.device().size() > 0) {
14197 set_device(from.device());
14198 }
14199 if (from.has_shape()) {
14200 mutable_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.shape());
14201 }
14202 if (from.type() != 0) {
14203 set_type(from.type());
14204 }
14205 if (from.data_type() != 0) {
14206 set_data_type(from.data_type());
14207 }
14208 if (from.group_key() != 0) {
14209 set_group_key(from.group_key());
14210 }
14211 if (from.group_size() != 0) {
14212 set_group_size(from.group_size());
14213 }
14214 if (from.instance_key() != 0) {
14215 set_instance_key(from.instance_key());
14216 }
14217 if (from.is_source() != 0) {
14218 set_is_source(from.is_source());
14219 }
14220}
14221
14222void CompleteInstanceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14223// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CompleteInstanceRequest)
14224 if (&from == this) return;
14225 Clear();
14226 MergeFrom(from);
14227}
14228
14229void CompleteInstanceRequest::CopyFrom(const CompleteInstanceRequest& from) {
14230// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CompleteInstanceRequest)
14231 if (&from == this) return;
14232 Clear();
14233 MergeFrom(from);
14234}
14235
14236bool CompleteInstanceRequest::IsInitialized() const {
14237 return true;
14238}
14239
14240void CompleteInstanceRequest::InternalSwap(CompleteInstanceRequest* other) {
14241 using std::swap;
14242 _internal_metadata_.Swap(&other->_internal_metadata_);
14243 subdiv_offset_.InternalSwap(&other->subdiv_offset_);
14244 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
14245 GetArenaNoVirtual());
14246 device_type_.Swap(&other->device_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
14247 GetArenaNoVirtual());
14248 device_.Swap(&other->device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
14249 GetArenaNoVirtual());
14250 swap(shape_, other->shape_);
14251 swap(type_, other->type_);
14252 swap(data_type_, other->data_type_);
14253 swap(group_key_, other->group_key_);
14254 swap(group_size_, other->group_size_);
14255 swap(instance_key_, other->instance_key_);
14256 swap(is_source_, other->is_source_);
14257}
14258
14259::PROTOBUF_NAMESPACE_ID::Metadata CompleteInstanceRequest::GetMetadata() const {
14260 return GetMetadataStatic();
14261}
14262
14263
14264// ===================================================================
14265
14266void CompleteInstanceResponse::InitAsDefaultInstance() {
14267}
14268class CompleteInstanceResponse::_Internal {
14269 public:
14270};
14271
14272CompleteInstanceResponse::CompleteInstanceResponse()
14273 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
14274 SharedCtor();
14275 // @@protoc_insertion_point(constructor:tensorflow.CompleteInstanceResponse)
14276}
14277CompleteInstanceResponse::CompleteInstanceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
14278 : ::PROTOBUF_NAMESPACE_ID::Message(),
14279 _internal_metadata_(arena) {
14280 SharedCtor();
14281 RegisterArenaDtor(arena);
14282 // @@protoc_insertion_point(arena_constructor:tensorflow.CompleteInstanceResponse)
14283}
14284CompleteInstanceResponse::CompleteInstanceResponse(const CompleteInstanceResponse& from)
14285 : ::PROTOBUF_NAMESPACE_ID::Message(),
14286 _internal_metadata_(nullptr) {
14287 _internal_metadata_.MergeFrom(from._internal_metadata_);
14288 ::memcpy(&instance_key_, &from.instance_key_,
14289 static_cast<size_t>(reinterpret_cast<char*>(&source_rank_) -
14290 reinterpret_cast<char*>(&instance_key_)) + sizeof(source_rank_));
14291 // @@protoc_insertion_point(copy_constructor:tensorflow.CompleteInstanceResponse)
14292}
14293
14294void CompleteInstanceResponse::SharedCtor() {
14295 ::memset(&instance_key_, 0, static_cast<size_t>(
14296 reinterpret_cast<char*>(&source_rank_) -
14297 reinterpret_cast<char*>(&instance_key_)) + sizeof(source_rank_));
14298}
14299
14300CompleteInstanceResponse::~CompleteInstanceResponse() {
14301 // @@protoc_insertion_point(destructor:tensorflow.CompleteInstanceResponse)
14302 SharedDtor();
14303}
14304
14305void CompleteInstanceResponse::SharedDtor() {
14306 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
14307}
14308
14309void CompleteInstanceResponse::ArenaDtor(void* object) {
14310 CompleteInstanceResponse* _this = reinterpret_cast< CompleteInstanceResponse* >(object);
14311 (void)_this;
14312}
14313void CompleteInstanceResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
14314}
14315void CompleteInstanceResponse::SetCachedSize(int size) const {
14316 _cached_size_.Set(size);
14317}
14318const CompleteInstanceResponse& CompleteInstanceResponse::default_instance() {
14319 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompleteInstanceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
14320 return *internal_default_instance();
14321}
14322
14323
14324void CompleteInstanceResponse::Clear() {
14325// @@protoc_insertion_point(message_clear_start:tensorflow.CompleteInstanceResponse)
14326 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14327 // Prevent compiler warnings about cached_has_bits being unused
14328 (void) cached_has_bits;
14329
14330 ::memset(&instance_key_, 0, static_cast<size_t>(
14331 reinterpret_cast<char*>(&source_rank_) -
14332 reinterpret_cast<char*>(&instance_key_)) + sizeof(source_rank_));
14333 _internal_metadata_.Clear();
14334}
14335
14336#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14337const char* CompleteInstanceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
14338#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14339 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
14340 while (!ctx->Done(&ptr)) {
14341 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14342 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
14343 CHK_(ptr);
14344 switch (tag >> 3) {
14345 // int32 instance_key = 1;
14346 case 1:
14347 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
14348 instance_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14349 CHK_(ptr);
14350 } else goto handle_unusual;
14351 continue;
14352 // int32 source_rank = 2;
14353 case 2:
14354 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
14355 source_rank_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14356 CHK_(ptr);
14357 } else goto handle_unusual;
14358 continue;
14359 default: {
14360 handle_unusual:
14361 if ((tag & 7) == 4 || tag == 0) {
14362 ctx->SetLastTag(tag);
14363 goto success;
14364 }
14365 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
14366 CHK_(ptr != nullptr);
14367 continue;
14368 }
14369 } // switch
14370 } // while
14371success:
14372 return ptr;
14373failure:
14374 ptr = nullptr;
14375 goto success;
14376#undef CHK_
14377}
14378#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14379bool CompleteInstanceResponse::MergePartialFromCodedStream(
14380 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
14381#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
14382 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14383 // @@protoc_insertion_point(parse_start:tensorflow.CompleteInstanceResponse)
14384 for (;;) {
14385 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14386 tag = p.first;
14387 if (!p.second) goto handle_unusual;
14388 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14389 // int32 instance_key = 1;
14390 case 1: {
14391 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
14392
14393 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
14394 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14395 input, &instance_key_)));
14396 } else {
14397 goto handle_unusual;
14398 }
14399 break;
14400 }
14401
14402 // int32 source_rank = 2;
14403 case 2: {
14404 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
14405
14406 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
14407 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14408 input, &source_rank_)));
14409 } else {
14410 goto handle_unusual;
14411 }
14412 break;
14413 }
14414
14415 default: {
14416 handle_unusual:
14417 if (tag == 0) {
14418 goto success;
14419 }
14420 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
14421 input, tag, _internal_metadata_.mutable_unknown_fields()));
14422 break;
14423 }
14424 }
14425 }
14426success:
14427 // @@protoc_insertion_point(parse_success:tensorflow.CompleteInstanceResponse)
14428 return true;
14429failure:
14430 // @@protoc_insertion_point(parse_failure:tensorflow.CompleteInstanceResponse)
14431 return false;
14432#undef DO_
14433}
14434#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14435
14436void CompleteInstanceResponse::SerializeWithCachedSizes(
14437 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
14438 // @@protoc_insertion_point(serialize_start:tensorflow.CompleteInstanceResponse)
14439 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14440 (void) cached_has_bits;
14441
14442 // int32 instance_key = 1;
14443 if (this->instance_key() != 0) {
14444 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->instance_key(), output);
14445 }
14446
14447 // int32 source_rank = 2;
14448 if (this->source_rank() != 0) {
14449 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->source_rank(), output);
14450 }
14451
14452 if (_internal_metadata_.have_unknown_fields()) {
14453 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
14454 _internal_metadata_.unknown_fields(), output);
14455 }
14456 // @@protoc_insertion_point(serialize_end:tensorflow.CompleteInstanceResponse)
14457}
14458
14459::PROTOBUF_NAMESPACE_ID::uint8* CompleteInstanceResponse::InternalSerializeWithCachedSizesToArray(
14460 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
14461 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CompleteInstanceResponse)
14462 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14463 (void) cached_has_bits;
14464
14465 // int32 instance_key = 1;
14466 if (this->instance_key() != 0) {
14467 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->instance_key(), target);
14468 }
14469
14470 // int32 source_rank = 2;
14471 if (this->source_rank() != 0) {
14472 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->source_rank(), target);
14473 }
14474
14475 if (_internal_metadata_.have_unknown_fields()) {
14476 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14477 _internal_metadata_.unknown_fields(), target);
14478 }
14479 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CompleteInstanceResponse)
14480 return target;
14481}
14482
14483size_t CompleteInstanceResponse::ByteSizeLong() const {
14484// @@protoc_insertion_point(message_byte_size_start:tensorflow.CompleteInstanceResponse)
14485 size_t total_size = 0;
14486
14487 if (_internal_metadata_.have_unknown_fields()) {
14488 total_size +=
14489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14490 _internal_metadata_.unknown_fields());
14491 }
14492 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14493 // Prevent compiler warnings about cached_has_bits being unused
14494 (void) cached_has_bits;
14495
14496 // int32 instance_key = 1;
14497 if (this->instance_key() != 0) {
14498 total_size += 1 +
14499 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14500 this->instance_key());
14501 }
14502
14503 // int32 source_rank = 2;
14504 if (this->source_rank() != 0) {
14505 total_size += 1 +
14506 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14507 this->source_rank());
14508 }
14509
14510 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14511 SetCachedSize(cached_size);
14512 return total_size;
14513}
14514
14515void CompleteInstanceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14516// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CompleteInstanceResponse)
14517 GOOGLE_DCHECK_NE(&from, this);
14518 const CompleteInstanceResponse* source =
14519 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CompleteInstanceResponse>(
14520 &from);
14521 if (source == nullptr) {
14522 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CompleteInstanceResponse)
14523 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14524 } else {
14525 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CompleteInstanceResponse)
14526 MergeFrom(*source);
14527 }
14528}
14529
14530void CompleteInstanceResponse::MergeFrom(const CompleteInstanceResponse& from) {
14531// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CompleteInstanceResponse)
14532 GOOGLE_DCHECK_NE(&from, this);
14533 _internal_metadata_.MergeFrom(from._internal_metadata_);
14534 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14535 (void) cached_has_bits;
14536
14537 if (from.instance_key() != 0) {
14538 set_instance_key(from.instance_key());
14539 }
14540 if (from.source_rank() != 0) {
14541 set_source_rank(from.source_rank());
14542 }
14543}
14544
14545void CompleteInstanceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14546// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CompleteInstanceResponse)
14547 if (&from == this) return;
14548 Clear();
14549 MergeFrom(from);
14550}
14551
14552void CompleteInstanceResponse::CopyFrom(const CompleteInstanceResponse& from) {
14553// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CompleteInstanceResponse)
14554 if (&from == this) return;
14555 Clear();
14556 MergeFrom(from);
14557}
14558
14559bool CompleteInstanceResponse::IsInitialized() const {
14560 return true;
14561}
14562
14563void CompleteInstanceResponse::InternalSwap(CompleteInstanceResponse* other) {
14564 using std::swap;
14565 _internal_metadata_.Swap(&other->_internal_metadata_);
14566 swap(instance_key_, other->instance_key_);
14567 swap(source_rank_, other->source_rank_);
14568}
14569
14570::PROTOBUF_NAMESPACE_ID::Metadata CompleteInstanceResponse::GetMetadata() const {
14571 return GetMetadataStatic();
14572}
14573
14574
14575// ===================================================================
14576
14577void GetStepSequenceRequest::InitAsDefaultInstance() {
14578}
14579class GetStepSequenceRequest::_Internal {
14580 public:
14581};
14582
14583GetStepSequenceRequest::GetStepSequenceRequest()
14584 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
14585 SharedCtor();
14586 // @@protoc_insertion_point(constructor:tensorflow.GetStepSequenceRequest)
14587}
14588GetStepSequenceRequest::GetStepSequenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
14589 : ::PROTOBUF_NAMESPACE_ID::Message(),
14590 _internal_metadata_(arena),
14591 graph_key_(arena) {
14592 SharedCtor();
14593 RegisterArenaDtor(arena);
14594 // @@protoc_insertion_point(arena_constructor:tensorflow.GetStepSequenceRequest)
14595}
14596GetStepSequenceRequest::GetStepSequenceRequest(const GetStepSequenceRequest& from)
14597 : ::PROTOBUF_NAMESPACE_ID::Message(),
14598 _internal_metadata_(nullptr),
14599 graph_key_(from.graph_key_) {
14600 _internal_metadata_.MergeFrom(from._internal_metadata_);
14601 // @@protoc_insertion_point(copy_constructor:tensorflow.GetStepSequenceRequest)
14602}
14603
14604void GetStepSequenceRequest::SharedCtor() {
14605}
14606
14607GetStepSequenceRequest::~GetStepSequenceRequest() {
14608 // @@protoc_insertion_point(destructor:tensorflow.GetStepSequenceRequest)
14609 SharedDtor();
14610}
14611
14612void GetStepSequenceRequest::SharedDtor() {
14613 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
14614}
14615
14616void GetStepSequenceRequest::ArenaDtor(void* object) {
14617 GetStepSequenceRequest* _this = reinterpret_cast< GetStepSequenceRequest* >(object);
14618 (void)_this;
14619}
14620void GetStepSequenceRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
14621}
14622void GetStepSequenceRequest::SetCachedSize(int size) const {
14623 _cached_size_.Set(size);
14624}
14625const GetStepSequenceRequest& GetStepSequenceRequest::default_instance() {
14626 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStepSequenceRequest_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
14627 return *internal_default_instance();
14628}
14629
14630
14631void GetStepSequenceRequest::Clear() {
14632// @@protoc_insertion_point(message_clear_start:tensorflow.GetStepSequenceRequest)
14633 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14634 // Prevent compiler warnings about cached_has_bits being unused
14635 (void) cached_has_bits;
14636
14637 graph_key_.Clear();
14638 _internal_metadata_.Clear();
14639}
14640
14641#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14642const char* GetStepSequenceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
14643#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14644 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
14645 while (!ctx->Done(&ptr)) {
14646 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14647 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
14648 CHK_(ptr);
14649 switch (tag >> 3) {
14650 // repeated int64 graph_key = 1;
14651 case 1:
14652 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
14653 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_graph_key(), ptr, ctx);
14654 CHK_(ptr);
14655 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
14656 add_graph_key(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
14657 CHK_(ptr);
14658 } else goto handle_unusual;
14659 continue;
14660 default: {
14661 handle_unusual:
14662 if ((tag & 7) == 4 || tag == 0) {
14663 ctx->SetLastTag(tag);
14664 goto success;
14665 }
14666 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
14667 CHK_(ptr != nullptr);
14668 continue;
14669 }
14670 } // switch
14671 } // while
14672success:
14673 return ptr;
14674failure:
14675 ptr = nullptr;
14676 goto success;
14677#undef CHK_
14678}
14679#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14680bool GetStepSequenceRequest::MergePartialFromCodedStream(
14681 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
14682#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
14683 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14684 // @@protoc_insertion_point(parse_start:tensorflow.GetStepSequenceRequest)
14685 for (;;) {
14686 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14687 tag = p.first;
14688 if (!p.second) goto handle_unusual;
14689 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14690 // repeated int64 graph_key = 1;
14691 case 1: {
14692 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
14693 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
14694 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
14695 input, this->mutable_graph_key())));
14696 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
14697 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
14698 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
14699 1, 10u, input, this->mutable_graph_key())));
14700 } else {
14701 goto handle_unusual;
14702 }
14703 break;
14704 }
14705
14706 default: {
14707 handle_unusual:
14708 if (tag == 0) {
14709 goto success;
14710 }
14711 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
14712 input, tag, _internal_metadata_.mutable_unknown_fields()));
14713 break;
14714 }
14715 }
14716 }
14717success:
14718 // @@protoc_insertion_point(parse_success:tensorflow.GetStepSequenceRequest)
14719 return true;
14720failure:
14721 // @@protoc_insertion_point(parse_failure:tensorflow.GetStepSequenceRequest)
14722 return false;
14723#undef DO_
14724}
14725#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14726
14727void GetStepSequenceRequest::SerializeWithCachedSizes(
14728 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
14729 // @@protoc_insertion_point(serialize_start:tensorflow.GetStepSequenceRequest)
14730 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14731 (void) cached_has_bits;
14732
14733 // repeated int64 graph_key = 1;
14734 if (this->graph_key_size() > 0) {
14735 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14736 output->WriteVarint32(_graph_key_cached_byte_size_.load(
14737 std::memory_order_relaxed));
14738 }
14739 for (int i = 0, n = this->graph_key_size(); i < n; i++) {
14740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
14741 this->graph_key(i), output);
14742 }
14743
14744 if (_internal_metadata_.have_unknown_fields()) {
14745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
14746 _internal_metadata_.unknown_fields(), output);
14747 }
14748 // @@protoc_insertion_point(serialize_end:tensorflow.GetStepSequenceRequest)
14749}
14750
14751::PROTOBUF_NAMESPACE_ID::uint8* GetStepSequenceRequest::InternalSerializeWithCachedSizesToArray(
14752 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
14753 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetStepSequenceRequest)
14754 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14755 (void) cached_has_bits;
14756
14757 // repeated int64 graph_key = 1;
14758 if (this->graph_key_size() > 0) {
14759 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
14760 1,
14761 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14762 target);
14763 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
14764 _graph_key_cached_byte_size_.load(std::memory_order_relaxed),
14765 target);
14766 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14767 WriteInt64NoTagToArray(this->graph_key_, target);
14768 }
14769
14770 if (_internal_metadata_.have_unknown_fields()) {
14771 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14772 _internal_metadata_.unknown_fields(), target);
14773 }
14774 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetStepSequenceRequest)
14775 return target;
14776}
14777
14778size_t GetStepSequenceRequest::ByteSizeLong() const {
14779// @@protoc_insertion_point(message_byte_size_start:tensorflow.GetStepSequenceRequest)
14780 size_t total_size = 0;
14781
14782 if (_internal_metadata_.have_unknown_fields()) {
14783 total_size +=
14784 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14785 _internal_metadata_.unknown_fields());
14786 }
14787 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14788 // Prevent compiler warnings about cached_has_bits being unused
14789 (void) cached_has_bits;
14790
14791 // repeated int64 graph_key = 1;
14792 {
14793 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14794 Int64Size(this->graph_key_);
14795 if (data_size > 0) {
14796 total_size += 1 +
14797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14798 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
14799 }
14800 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
14801 _graph_key_cached_byte_size_.store(cached_size,
14802 std::memory_order_relaxed);
14803 total_size += data_size;
14804 }
14805
14806 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14807 SetCachedSize(cached_size);
14808 return total_size;
14809}
14810
14811void GetStepSequenceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14812// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetStepSequenceRequest)
14813 GOOGLE_DCHECK_NE(&from, this);
14814 const GetStepSequenceRequest* source =
14815 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetStepSequenceRequest>(
14816 &from);
14817 if (source == nullptr) {
14818 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetStepSequenceRequest)
14819 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14820 } else {
14821 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetStepSequenceRequest)
14822 MergeFrom(*source);
14823 }
14824}
14825
14826void GetStepSequenceRequest::MergeFrom(const GetStepSequenceRequest& from) {
14827// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetStepSequenceRequest)
14828 GOOGLE_DCHECK_NE(&from, this);
14829 _internal_metadata_.MergeFrom(from._internal_metadata_);
14830 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14831 (void) cached_has_bits;
14832
14833 graph_key_.MergeFrom(from.graph_key_);
14834}
14835
14836void GetStepSequenceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14837// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetStepSequenceRequest)
14838 if (&from == this) return;
14839 Clear();
14840 MergeFrom(from);
14841}
14842
14843void GetStepSequenceRequest::CopyFrom(const GetStepSequenceRequest& from) {
14844// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetStepSequenceRequest)
14845 if (&from == this) return;
14846 Clear();
14847 MergeFrom(from);
14848}
14849
14850bool GetStepSequenceRequest::IsInitialized() const {
14851 return true;
14852}
14853
14854void GetStepSequenceRequest::InternalSwap(GetStepSequenceRequest* other) {
14855 using std::swap;
14856 _internal_metadata_.Swap(&other->_internal_metadata_);
14857 graph_key_.InternalSwap(&other->graph_key_);
14858}
14859
14860::PROTOBUF_NAMESPACE_ID::Metadata GetStepSequenceRequest::GetMetadata() const {
14861 return GetMetadataStatic();
14862}
14863
14864
14865// ===================================================================
14866
14867void StepSequence::InitAsDefaultInstance() {
14868}
14869class StepSequence::_Internal {
14870 public:
14871};
14872
14873StepSequence::StepSequence()
14874 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
14875 SharedCtor();
14876 // @@protoc_insertion_point(constructor:tensorflow.StepSequence)
14877}
14878StepSequence::StepSequence(::PROTOBUF_NAMESPACE_ID::Arena* arena)
14879 : ::PROTOBUF_NAMESPACE_ID::Message(),
14880 _internal_metadata_(arena) {
14881 SharedCtor();
14882 RegisterArenaDtor(arena);
14883 // @@protoc_insertion_point(arena_constructor:tensorflow.StepSequence)
14884}
14885StepSequence::StepSequence(const StepSequence& from)
14886 : ::PROTOBUF_NAMESPACE_ID::Message(),
14887 _internal_metadata_(nullptr) {
14888 _internal_metadata_.MergeFrom(from._internal_metadata_);
14889 ::memcpy(&graph_key_, &from.graph_key_,
14890 static_cast<size_t>(reinterpret_cast<char*>(&next_step_id_) -
14891 reinterpret_cast<char*>(&graph_key_)) + sizeof(next_step_id_));
14892 // @@protoc_insertion_point(copy_constructor:tensorflow.StepSequence)
14893}
14894
14895void StepSequence::SharedCtor() {
14896 ::memset(&graph_key_, 0, static_cast<size_t>(
14897 reinterpret_cast<char*>(&next_step_id_) -
14898 reinterpret_cast<char*>(&graph_key_)) + sizeof(next_step_id_));
14899}
14900
14901StepSequence::~StepSequence() {
14902 // @@protoc_insertion_point(destructor:tensorflow.StepSequence)
14903 SharedDtor();
14904}
14905
14906void StepSequence::SharedDtor() {
14907 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
14908}
14909
14910void StepSequence::ArenaDtor(void* object) {
14911 StepSequence* _this = reinterpret_cast< StepSequence* >(object);
14912 (void)_this;
14913}
14914void StepSequence::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
14915}
14916void StepSequence::SetCachedSize(int size) const {
14917 _cached_size_.Set(size);
14918}
14919const StepSequence& StepSequence::default_instance() {
14920 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StepSequence_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
14921 return *internal_default_instance();
14922}
14923
14924
14925void StepSequence::Clear() {
14926// @@protoc_insertion_point(message_clear_start:tensorflow.StepSequence)
14927 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14928 // Prevent compiler warnings about cached_has_bits being unused
14929 (void) cached_has_bits;
14930
14931 ::memset(&graph_key_, 0, static_cast<size_t>(
14932 reinterpret_cast<char*>(&next_step_id_) -
14933 reinterpret_cast<char*>(&graph_key_)) + sizeof(next_step_id_));
14934 _internal_metadata_.Clear();
14935}
14936
14937#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14938const char* StepSequence::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
14939#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14940 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
14941 while (!ctx->Done(&ptr)) {
14942 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14943 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
14944 CHK_(ptr);
14945 switch (tag >> 3) {
14946 // int64 graph_key = 1;
14947 case 1:
14948 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
14949 graph_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14950 CHK_(ptr);
14951 } else goto handle_unusual;
14952 continue;
14953 // int64 next_step_id = 2;
14954 case 2:
14955 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
14956 next_step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14957 CHK_(ptr);
14958 } else goto handle_unusual;
14959 continue;
14960 default: {
14961 handle_unusual:
14962 if ((tag & 7) == 4 || tag == 0) {
14963 ctx->SetLastTag(tag);
14964 goto success;
14965 }
14966 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
14967 CHK_(ptr != nullptr);
14968 continue;
14969 }
14970 } // switch
14971 } // while
14972success:
14973 return ptr;
14974failure:
14975 ptr = nullptr;
14976 goto success;
14977#undef CHK_
14978}
14979#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14980bool StepSequence::MergePartialFromCodedStream(
14981 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
14982#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
14983 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14984 // @@protoc_insertion_point(parse_start:tensorflow.StepSequence)
14985 for (;;) {
14986 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14987 tag = p.first;
14988 if (!p.second) goto handle_unusual;
14989 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14990 // int64 graph_key = 1;
14991 case 1: {
14992 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
14993
14994 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
14995 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
14996 input, &graph_key_)));
14997 } else {
14998 goto handle_unusual;
14999 }
15000 break;
15001 }
15002
15003 // int64 next_step_id = 2;
15004 case 2: {
15005 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
15006
15007 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
15008 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
15009 input, &next_step_id_)));
15010 } else {
15011 goto handle_unusual;
15012 }
15013 break;
15014 }
15015
15016 default: {
15017 handle_unusual:
15018 if (tag == 0) {
15019 goto success;
15020 }
15021 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
15022 input, tag, _internal_metadata_.mutable_unknown_fields()));
15023 break;
15024 }
15025 }
15026 }
15027success:
15028 // @@protoc_insertion_point(parse_success:tensorflow.StepSequence)
15029 return true;
15030failure:
15031 // @@protoc_insertion_point(parse_failure:tensorflow.StepSequence)
15032 return false;
15033#undef DO_
15034}
15035#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
15036
15037void StepSequence::SerializeWithCachedSizes(
15038 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
15039 // @@protoc_insertion_point(serialize_start:tensorflow.StepSequence)
15040 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15041 (void) cached_has_bits;
15042
15043 // int64 graph_key = 1;
15044 if (this->graph_key() != 0) {
15045 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->graph_key(), output);
15046 }
15047
15048 // int64 next_step_id = 2;
15049 if (this->next_step_id() != 0) {
15050 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->next_step_id(), output);
15051 }
15052
15053 if (_internal_metadata_.have_unknown_fields()) {
15054 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
15055 _internal_metadata_.unknown_fields(), output);
15056 }
15057 // @@protoc_insertion_point(serialize_end:tensorflow.StepSequence)
15058}
15059
15060::PROTOBUF_NAMESPACE_ID::uint8* StepSequence::InternalSerializeWithCachedSizesToArray(
15061 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
15062 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.StepSequence)
15063 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15064 (void) cached_has_bits;
15065
15066 // int64 graph_key = 1;
15067 if (this->graph_key() != 0) {
15068 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->graph_key(), target);
15069 }
15070
15071 // int64 next_step_id = 2;
15072 if (this->next_step_id() != 0) {
15073 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->next_step_id(), target);
15074 }
15075
15076 if (_internal_metadata_.have_unknown_fields()) {
15077 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
15078 _internal_metadata_.unknown_fields(), target);
15079 }
15080 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.StepSequence)
15081 return target;
15082}
15083
15084size_t StepSequence::ByteSizeLong() const {
15085// @@protoc_insertion_point(message_byte_size_start:tensorflow.StepSequence)
15086 size_t total_size = 0;
15087
15088 if (_internal_metadata_.have_unknown_fields()) {
15089 total_size +=
15090 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
15091 _internal_metadata_.unknown_fields());
15092 }
15093 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15094 // Prevent compiler warnings about cached_has_bits being unused
15095 (void) cached_has_bits;
15096
15097 // int64 graph_key = 1;
15098 if (this->graph_key() != 0) {
15099 total_size += 1 +
15100 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
15101 this->graph_key());
15102 }
15103
15104 // int64 next_step_id = 2;
15105 if (this->next_step_id() != 0) {
15106 total_size += 1 +
15107 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
15108 this->next_step_id());
15109 }
15110
15111 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
15112 SetCachedSize(cached_size);
15113 return total_size;
15114}
15115
15116void StepSequence::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15117// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.StepSequence)
15118 GOOGLE_DCHECK_NE(&from, this);
15119 const StepSequence* source =
15120 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StepSequence>(
15121 &from);
15122 if (source == nullptr) {
15123 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.StepSequence)
15124 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
15125 } else {
15126 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.StepSequence)
15127 MergeFrom(*source);
15128 }
15129}
15130
15131void StepSequence::MergeFrom(const StepSequence& from) {
15132// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.StepSequence)
15133 GOOGLE_DCHECK_NE(&from, this);
15134 _internal_metadata_.MergeFrom(from._internal_metadata_);
15135 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15136 (void) cached_has_bits;
15137
15138 if (from.graph_key() != 0) {
15139 set_graph_key(from.graph_key());
15140 }
15141 if (from.next_step_id() != 0) {
15142 set_next_step_id(from.next_step_id());
15143 }
15144}
15145
15146void StepSequence::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15147// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.StepSequence)
15148 if (&from == this) return;
15149 Clear();
15150 MergeFrom(from);
15151}
15152
15153void StepSequence::CopyFrom(const StepSequence& from) {
15154// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.StepSequence)
15155 if (&from == this) return;
15156 Clear();
15157 MergeFrom(from);
15158}
15159
15160bool StepSequence::IsInitialized() const {
15161 return true;
15162}
15163
15164void StepSequence::InternalSwap(StepSequence* other) {
15165 using std::swap;
15166 _internal_metadata_.Swap(&other->_internal_metadata_);
15167 swap(graph_key_, other->graph_key_);
15168 swap(next_step_id_, other->next_step_id_);
15169}
15170
15171::PROTOBUF_NAMESPACE_ID::Metadata StepSequence::GetMetadata() const {
15172 return GetMetadataStatic();
15173}
15174
15175
15176// ===================================================================
15177
15178void GetStepSequenceResponse::InitAsDefaultInstance() {
15179}
15180class GetStepSequenceResponse::_Internal {
15181 public:
15182};
15183
15184GetStepSequenceResponse::GetStepSequenceResponse()
15185 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
15186 SharedCtor();
15187 // @@protoc_insertion_point(constructor:tensorflow.GetStepSequenceResponse)
15188}
15189GetStepSequenceResponse::GetStepSequenceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
15190 : ::PROTOBUF_NAMESPACE_ID::Message(),
15191 _internal_metadata_(arena),
15192 step_sequence_(arena) {
15193 SharedCtor();
15194 RegisterArenaDtor(arena);
15195 // @@protoc_insertion_point(arena_constructor:tensorflow.GetStepSequenceResponse)
15196}
15197GetStepSequenceResponse::GetStepSequenceResponse(const GetStepSequenceResponse& from)
15198 : ::PROTOBUF_NAMESPACE_ID::Message(),
15199 _internal_metadata_(nullptr),
15200 step_sequence_(from.step_sequence_) {
15201 _internal_metadata_.MergeFrom(from._internal_metadata_);
15202 // @@protoc_insertion_point(copy_constructor:tensorflow.GetStepSequenceResponse)
15203}
15204
15205void GetStepSequenceResponse::SharedCtor() {
15206 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
15207}
15208
15209GetStepSequenceResponse::~GetStepSequenceResponse() {
15210 // @@protoc_insertion_point(destructor:tensorflow.GetStepSequenceResponse)
15211 SharedDtor();
15212}
15213
15214void GetStepSequenceResponse::SharedDtor() {
15215 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
15216}
15217
15218void GetStepSequenceResponse::ArenaDtor(void* object) {
15219 GetStepSequenceResponse* _this = reinterpret_cast< GetStepSequenceResponse* >(object);
15220 (void)_this;
15221}
15222void GetStepSequenceResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
15223}
15224void GetStepSequenceResponse::SetCachedSize(int size) const {
15225 _cached_size_.Set(size);
15226}
15227const GetStepSequenceResponse& GetStepSequenceResponse::default_instance() {
15228 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStepSequenceResponse_tensorflow_2fcore_2fprotobuf_2fworker_2eproto.base);
15229 return *internal_default_instance();
15230}
15231
15232
15233void GetStepSequenceResponse::Clear() {
15234// @@protoc_insertion_point(message_clear_start:tensorflow.GetStepSequenceResponse)
15235 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15236 // Prevent compiler warnings about cached_has_bits being unused
15237 (void) cached_has_bits;
15238
15239 step_sequence_.Clear();
15240 _internal_metadata_.Clear();
15241}
15242
15243#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
15244const char* GetStepSequenceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
15245#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15246 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
15247 while (!ctx->Done(&ptr)) {
15248 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
15249 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
15250 CHK_(ptr);
15251 switch (tag >> 3) {
15252 // repeated .tensorflow.StepSequence step_sequence = 1;
15253 case 1:
15254 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
15255 ptr -= 1;
15256 do {
15257 ptr += 1;
15258 ptr = ctx->ParseMessage(add_step_sequence(), ptr);
15259 CHK_(ptr);
15260 if (!ctx->DataAvailable(ptr)) break;
15261 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
15262 } else goto handle_unusual;
15263 continue;
15264 default: {
15265 handle_unusual:
15266 if ((tag & 7) == 4 || tag == 0) {
15267 ctx->SetLastTag(tag);
15268 goto success;
15269 }
15270 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
15271 CHK_(ptr != nullptr);
15272 continue;
15273 }
15274 } // switch
15275 } // while
15276success:
15277 return ptr;
15278failure:
15279 ptr = nullptr;
15280 goto success;
15281#undef CHK_
15282}
15283#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
15284bool GetStepSequenceResponse::MergePartialFromCodedStream(
15285 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
15286#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
15287 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
15288 // @@protoc_insertion_point(parse_start:tensorflow.GetStepSequenceResponse)
15289 for (;;) {
15290 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
15291 tag = p.first;
15292 if (!p.second) goto handle_unusual;
15293 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
15294 // repeated .tensorflow.StepSequence step_sequence = 1;
15295 case 1: {
15296 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
15297 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
15298 input, add_step_sequence()));
15299 } else {
15300 goto handle_unusual;
15301 }
15302 break;
15303 }
15304
15305 default: {
15306 handle_unusual:
15307 if (tag == 0) {
15308 goto success;
15309 }
15310 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
15311 input, tag, _internal_metadata_.mutable_unknown_fields()));
15312 break;
15313 }
15314 }
15315 }
15316success:
15317 // @@protoc_insertion_point(parse_success:tensorflow.GetStepSequenceResponse)
15318 return true;
15319failure:
15320 // @@protoc_insertion_point(parse_failure:tensorflow.GetStepSequenceResponse)
15321 return false;
15322#undef DO_
15323}
15324#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
15325
15326void GetStepSequenceResponse::SerializeWithCachedSizes(
15327 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
15328 // @@protoc_insertion_point(serialize_start:tensorflow.GetStepSequenceResponse)
15329 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15330 (void) cached_has_bits;
15331
15332 // repeated .tensorflow.StepSequence step_sequence = 1;
15333 for (unsigned int i = 0,
15334 n = static_cast<unsigned int>(this->step_sequence_size()); i < n; i++) {
15335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
15336 1,
15337 this->step_sequence(static_cast<int>(i)),
15338 output);
15339 }
15340
15341 if (_internal_metadata_.have_unknown_fields()) {
15342 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
15343 _internal_metadata_.unknown_fields(), output);
15344 }
15345 // @@protoc_insertion_point(serialize_end:tensorflow.GetStepSequenceResponse)
15346}
15347
15348::PROTOBUF_NAMESPACE_ID::uint8* GetStepSequenceResponse::InternalSerializeWithCachedSizesToArray(
15349 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
15350 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetStepSequenceResponse)
15351 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15352 (void) cached_has_bits;
15353
15354 // repeated .tensorflow.StepSequence step_sequence = 1;
15355 for (unsigned int i = 0,
15356 n = static_cast<unsigned int>(this->step_sequence_size()); i < n; i++) {
15357 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15358 InternalWriteMessageToArray(
15359 1, this->step_sequence(static_cast<int>(i)), target);
15360 }
15361
15362 if (_internal_metadata_.have_unknown_fields()) {
15363 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
15364 _internal_metadata_.unknown_fields(), target);
15365 }
15366 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetStepSequenceResponse)
15367 return target;
15368}
15369
15370size_t GetStepSequenceResponse::ByteSizeLong() const {
15371// @@protoc_insertion_point(message_byte_size_start:tensorflow.GetStepSequenceResponse)
15372 size_t total_size = 0;
15373
15374 if (_internal_metadata_.have_unknown_fields()) {
15375 total_size +=
15376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
15377 _internal_metadata_.unknown_fields());
15378 }
15379 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15380 // Prevent compiler warnings about cached_has_bits being unused
15381 (void) cached_has_bits;
15382
15383 // repeated .tensorflow.StepSequence step_sequence = 1;
15384 {
15385 unsigned int count = static_cast<unsigned int>(this->step_sequence_size());
15386 total_size += 1UL * count;
15387 for (unsigned int i = 0; i < count; i++) {
15388 total_size +=
15389 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
15390 this->step_sequence(static_cast<int>(i)));
15391 }
15392 }
15393
15394 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
15395 SetCachedSize(cached_size);
15396 return total_size;
15397}
15398
15399void GetStepSequenceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15400// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetStepSequenceResponse)
15401 GOOGLE_DCHECK_NE(&from, this);
15402 const GetStepSequenceResponse* source =
15403 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetStepSequenceResponse>(
15404 &from);
15405 if (source == nullptr) {
15406 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetStepSequenceResponse)
15407 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
15408 } else {
15409 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetStepSequenceResponse)
15410 MergeFrom(*source);
15411 }
15412}
15413
15414void GetStepSequenceResponse::MergeFrom(const GetStepSequenceResponse& from) {
15415// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetStepSequenceResponse)
15416 GOOGLE_DCHECK_NE(&from, this);
15417 _internal_metadata_.MergeFrom(from._internal_metadata_);
15418 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15419 (void) cached_has_bits;
15420
15421 step_sequence_.MergeFrom(from.step_sequence_);
15422}
15423
15424void GetStepSequenceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15425// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetStepSequenceResponse)
15426 if (&from == this) return;
15427 Clear();
15428 MergeFrom(from);
15429}
15430
15431void GetStepSequenceResponse::CopyFrom(const GetStepSequenceResponse& from) {
15432// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetStepSequenceResponse)
15433 if (&from == this) return;
15434 Clear();
15435 MergeFrom(from);
15436}
15437
15438bool GetStepSequenceResponse::IsInitialized() const {
15439 return true;
15440}
15441
15442void GetStepSequenceResponse::InternalSwap(GetStepSequenceResponse* other) {
15443 using std::swap;
15444 _internal_metadata_.Swap(&other->_internal_metadata_);
15445 CastToBase(&step_sequence_)->InternalSwap(CastToBase(&other->step_sequence_));
15446}
15447
15448::PROTOBUF_NAMESPACE_ID::Metadata GetStepSequenceResponse::GetMetadata() const {
15449 return GetMetadataStatic();
15450}
15451
15452
15453// @@protoc_insertion_point(namespace_scope)
15454} // namespace tensorflow
15455PROTOBUF_NAMESPACE_OPEN
15456template<> PROTOBUF_NOINLINE ::tensorflow::GetStatusRequest* Arena::CreateMaybeMessage< ::tensorflow::GetStatusRequest >(Arena* arena) {
15457 return Arena::CreateMessageInternal< ::tensorflow::GetStatusRequest >(arena);
15458}
15459template<> PROTOBUF_NOINLINE ::tensorflow::GetStatusResponse* Arena::CreateMaybeMessage< ::tensorflow::GetStatusResponse >(Arena* arena) {
15460 return Arena::CreateMessageInternal< ::tensorflow::GetStatusResponse >(arena);
15461}
15462template<> PROTOBUF_NOINLINE ::tensorflow::CreateWorkerSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::CreateWorkerSessionRequest >(Arena* arena) {
15463 return Arena::CreateMessageInternal< ::tensorflow::CreateWorkerSessionRequest >(arena);
15464}
15465template<> PROTOBUF_NOINLINE ::tensorflow::CreateWorkerSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::CreateWorkerSessionResponse >(Arena* arena) {
15466 return Arena::CreateMessageInternal< ::tensorflow::CreateWorkerSessionResponse >(arena);
15467}
15468template<> PROTOBUF_NOINLINE ::tensorflow::DeleteWorkerSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::DeleteWorkerSessionRequest >(Arena* arena) {
15469 return Arena::CreateMessageInternal< ::tensorflow::DeleteWorkerSessionRequest >(arena);
15470}
15471template<> PROTOBUF_NOINLINE ::tensorflow::DeleteWorkerSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::DeleteWorkerSessionResponse >(Arena* arena) {
15472 return Arena::CreateMessageInternal< ::tensorflow::DeleteWorkerSessionResponse >(arena);
15473}
15474template<> PROTOBUF_NOINLINE ::tensorflow::RegisterGraphRequest* Arena::CreateMaybeMessage< ::tensorflow::RegisterGraphRequest >(Arena* arena) {
15475 return Arena::CreateMessageInternal< ::tensorflow::RegisterGraphRequest >(arena);
15476}
15477template<> PROTOBUF_NOINLINE ::tensorflow::RegisterGraphResponse* Arena::CreateMaybeMessage< ::tensorflow::RegisterGraphResponse >(Arena* arena) {
15478 return Arena::CreateMessageInternal< ::tensorflow::RegisterGraphResponse >(arena);
15479}
15480template<> PROTOBUF_NOINLINE ::tensorflow::DeregisterGraphRequest* Arena::CreateMaybeMessage< ::tensorflow::DeregisterGraphRequest >(Arena* arena) {
15481 return Arena::CreateMessageInternal< ::tensorflow::DeregisterGraphRequest >(arena);
15482}
15483template<> PROTOBUF_NOINLINE ::tensorflow::DeregisterGraphResponse* Arena::CreateMaybeMessage< ::tensorflow::DeregisterGraphResponse >(Arena* arena) {
15484 return Arena::CreateMessageInternal< ::tensorflow::DeregisterGraphResponse >(arena);
15485}
15486template<> PROTOBUF_NOINLINE ::tensorflow::CleanupAllRequest* Arena::CreateMaybeMessage< ::tensorflow::CleanupAllRequest >(Arena* arena) {
15487 return Arena::CreateMessageInternal< ::tensorflow::CleanupAllRequest >(arena);
15488}
15489template<> PROTOBUF_NOINLINE ::tensorflow::CleanupAllResponse* Arena::CreateMaybeMessage< ::tensorflow::CleanupAllResponse >(Arena* arena) {
15490 return Arena::CreateMessageInternal< ::tensorflow::CleanupAllResponse >(arena);
15491}
15492template<> PROTOBUF_NOINLINE ::tensorflow::ExecutorOpts* Arena::CreateMaybeMessage< ::tensorflow::ExecutorOpts >(Arena* arena) {
15493 return Arena::CreateMessageInternal< ::tensorflow::ExecutorOpts >(arena);
15494}
15495template<> PROTOBUF_NOINLINE ::tensorflow::RunGraphRequest* Arena::CreateMaybeMessage< ::tensorflow::RunGraphRequest >(Arena* arena) {
15496 return Arena::CreateMessageInternal< ::tensorflow::RunGraphRequest >(arena);
15497}
15498template<> PROTOBUF_NOINLINE ::tensorflow::RunGraphResponse* Arena::CreateMaybeMessage< ::tensorflow::RunGraphResponse >(Arena* arena) {
15499 return Arena::CreateMessageInternal< ::tensorflow::RunGraphResponse >(arena);
15500}
15501template<> PROTOBUF_NOINLINE ::tensorflow::CleanupGraphRequest* Arena::CreateMaybeMessage< ::tensorflow::CleanupGraphRequest >(Arena* arena) {
15502 return Arena::CreateMessageInternal< ::tensorflow::CleanupGraphRequest >(arena);
15503}
15504template<> PROTOBUF_NOINLINE ::tensorflow::CleanupGraphResponse* Arena::CreateMaybeMessage< ::tensorflow::CleanupGraphResponse >(Arena* arena) {
15505 return Arena::CreateMessageInternal< ::tensorflow::CleanupGraphResponse >(arena);
15506}
15507template<> PROTOBUF_NOINLINE ::tensorflow::RecvTensorRequest* Arena::CreateMaybeMessage< ::tensorflow::RecvTensorRequest >(Arena* arena) {
15508 return Arena::CreateMessageInternal< ::tensorflow::RecvTensorRequest >(arena);
15509}
15510template<> PROTOBUF_NOINLINE ::tensorflow::RecvTensorResponse* Arena::CreateMaybeMessage< ::tensorflow::RecvTensorResponse >(Arena* arena) {
15511 return Arena::CreateMessageInternal< ::tensorflow::RecvTensorResponse >(arena);
15512}
15513template<> PROTOBUF_NOINLINE ::tensorflow::MarkRecvFinishedRequest* Arena::CreateMaybeMessage< ::tensorflow::MarkRecvFinishedRequest >(Arena* arena) {
15514 return Arena::CreateMessageInternal< ::tensorflow::MarkRecvFinishedRequest >(arena);
15515}
15516template<> PROTOBUF_NOINLINE ::tensorflow::MarkRecvFinishedResponse* Arena::CreateMaybeMessage< ::tensorflow::MarkRecvFinishedResponse >(Arena* arena) {
15517 return Arena::CreateMessageInternal< ::tensorflow::MarkRecvFinishedResponse >(arena);
15518}
15519template<> PROTOBUF_NOINLINE ::tensorflow::LoggingRequest* Arena::CreateMaybeMessage< ::tensorflow::LoggingRequest >(Arena* arena) {
15520 return Arena::CreateMessageInternal< ::tensorflow::LoggingRequest >(arena);
15521}
15522template<> PROTOBUF_NOINLINE ::tensorflow::LabeledStepStats* Arena::CreateMaybeMessage< ::tensorflow::LabeledStepStats >(Arena* arena) {
15523 return Arena::CreateMessageInternal< ::tensorflow::LabeledStepStats >(arena);
15524}
15525template<> PROTOBUF_NOINLINE ::tensorflow::LoggingResponse* Arena::CreateMaybeMessage< ::tensorflow::LoggingResponse >(Arena* arena) {
15526 return Arena::CreateMessageInternal< ::tensorflow::LoggingResponse >(arena);
15527}
15528template<> PROTOBUF_NOINLINE ::tensorflow::TraceOpts* Arena::CreateMaybeMessage< ::tensorflow::TraceOpts >(Arena* arena) {
15529 return Arena::CreateMessageInternal< ::tensorflow::TraceOpts >(arena);
15530}
15531template<> PROTOBUF_NOINLINE ::tensorflow::TracingRequest* Arena::CreateMaybeMessage< ::tensorflow::TracingRequest >(Arena* arena) {
15532 return Arena::CreateMessageInternal< ::tensorflow::TracingRequest >(arena);
15533}
15534template<> PROTOBUF_NOINLINE ::tensorflow::TracingResponse* Arena::CreateMaybeMessage< ::tensorflow::TracingResponse >(Arena* arena) {
15535 return Arena::CreateMessageInternal< ::tensorflow::TracingResponse >(arena);
15536}
15537template<> PROTOBUF_NOINLINE ::tensorflow::RecvBufRequest* Arena::CreateMaybeMessage< ::tensorflow::RecvBufRequest >(Arena* arena) {
15538 return Arena::CreateMessageInternal< ::tensorflow::RecvBufRequest >(arena);
15539}
15540template<> PROTOBUF_NOINLINE ::tensorflow::RecvBufResponse* Arena::CreateMaybeMessage< ::tensorflow::RecvBufResponse >(Arena* arena) {
15541 return Arena::CreateMessageInternal< ::tensorflow::RecvBufResponse >(arena);
15542}
15543template<> PROTOBUF_NOINLINE ::tensorflow::CompleteGroupRequest* Arena::CreateMaybeMessage< ::tensorflow::CompleteGroupRequest >(Arena* arena) {
15544 return Arena::CreateMessageInternal< ::tensorflow::CompleteGroupRequest >(arena);
15545}
15546template<> PROTOBUF_NOINLINE ::tensorflow::CompleteGroupResponse* Arena::CreateMaybeMessage< ::tensorflow::CompleteGroupResponse >(Arena* arena) {
15547 return Arena::CreateMessageInternal< ::tensorflow::CompleteGroupResponse >(arena);
15548}
15549template<> PROTOBUF_NOINLINE ::tensorflow::CompleteInstanceRequest* Arena::CreateMaybeMessage< ::tensorflow::CompleteInstanceRequest >(Arena* arena) {
15550 return Arena::CreateMessageInternal< ::tensorflow::CompleteInstanceRequest >(arena);
15551}
15552template<> PROTOBUF_NOINLINE ::tensorflow::CompleteInstanceResponse* Arena::CreateMaybeMessage< ::tensorflow::CompleteInstanceResponse >(Arena* arena) {
15553 return Arena::CreateMessageInternal< ::tensorflow::CompleteInstanceResponse >(arena);
15554}
15555template<> PROTOBUF_NOINLINE ::tensorflow::GetStepSequenceRequest* Arena::CreateMaybeMessage< ::tensorflow::GetStepSequenceRequest >(Arena* arena) {
15556 return Arena::CreateMessageInternal< ::tensorflow::GetStepSequenceRequest >(arena);
15557}
15558template<> PROTOBUF_NOINLINE ::tensorflow::StepSequence* Arena::CreateMaybeMessage< ::tensorflow::StepSequence >(Arena* arena) {
15559 return Arena::CreateMessageInternal< ::tensorflow::StepSequence >(arena);
15560}
15561template<> PROTOBUF_NOINLINE ::tensorflow::GetStepSequenceResponse* Arena::CreateMaybeMessage< ::tensorflow::GetStepSequenceResponse >(Arena* arena) {
15562 return Arena::CreateMessageInternal< ::tensorflow::GetStepSequenceResponse >(arena);
15563}
15564PROTOBUF_NAMESPACE_CLOSE
15565
15566// @@protoc_insertion_point(global_scope)
15567#include <google/protobuf/port_undef.inc>
15568