1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/coordination_service.proto |
3 | |
4 | #include "tensorflow/core/protobuf/coordination_service.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
21 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto; |
22 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
23 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
24 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto; |
25 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcompiler_2fxla_2fpjrt_2fdistributed_2fprotocol_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GlobalTopologyProto_tensorflow_2fcompiler_2fxla_2fpjrt_2fdistributed_2fprotocol_2eproto; |
26 | namespace tensorflow { |
27 | class CoordinatedTaskDefaultTypeInternal { |
28 | public: |
29 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CoordinatedTask> _instance; |
30 | } _CoordinatedTask_default_instance_; |
31 | class CoordinationServiceErrorDefaultTypeInternal { |
32 | public: |
33 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CoordinationServiceError> _instance; |
34 | } _CoordinationServiceError_default_instance_; |
35 | class TfDeviceListDefaultTypeInternal { |
36 | public: |
37 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TfDeviceList> _instance; |
38 | } _TfDeviceList_default_instance_; |
39 | class XlaDeviceListDefaultTypeInternal { |
40 | public: |
41 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<XlaDeviceList> _instance; |
42 | } _XlaDeviceList_default_instance_; |
43 | class CoordinationServiceDeviceInfoDefaultTypeInternal { |
44 | public: |
45 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CoordinationServiceDeviceInfo> _instance; |
46 | const ::tensorflow::TfDeviceList* tf_; |
47 | const ::tensorflow::XlaDeviceList* xla_; |
48 | } _CoordinationServiceDeviceInfo_default_instance_; |
49 | class RegisterTaskRequestDefaultTypeInternal { |
50 | public: |
51 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegisterTaskRequest> _instance; |
52 | } _RegisterTaskRequest_default_instance_; |
53 | class RegisterTaskResponseDefaultTypeInternal { |
54 | public: |
55 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegisterTaskResponse> _instance; |
56 | } _RegisterTaskResponse_default_instance_; |
57 | class HeartbeatRequestDefaultTypeInternal { |
58 | public: |
59 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<HeartbeatRequest> _instance; |
60 | } _HeartbeatRequest_default_instance_; |
61 | class HeartbeatResponseDefaultTypeInternal { |
62 | public: |
63 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<HeartbeatResponse> _instance; |
64 | } _HeartbeatResponse_default_instance_; |
65 | class WaitForAllTasksRequestDefaultTypeInternal { |
66 | public: |
67 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WaitForAllTasksRequest> _instance; |
68 | } _WaitForAllTasksRequest_default_instance_; |
69 | class WaitForAllTasksResponseDefaultTypeInternal { |
70 | public: |
71 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WaitForAllTasksResponse> _instance; |
72 | } _WaitForAllTasksResponse_default_instance_; |
73 | class ShutdownTaskRequestDefaultTypeInternal { |
74 | public: |
75 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShutdownTaskRequest> _instance; |
76 | } _ShutdownTaskRequest_default_instance_; |
77 | class ShutdownTaskResponseDefaultTypeInternal { |
78 | public: |
79 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShutdownTaskResponse> _instance; |
80 | } _ShutdownTaskResponse_default_instance_; |
81 | class ResetTaskRequestDefaultTypeInternal { |
82 | public: |
83 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResetTaskRequest> _instance; |
84 | } _ResetTaskRequest_default_instance_; |
85 | class ResetTaskResponseDefaultTypeInternal { |
86 | public: |
87 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResetTaskResponse> _instance; |
88 | } _ResetTaskResponse_default_instance_; |
89 | class ReportErrorToTaskRequestDefaultTypeInternal { |
90 | public: |
91 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReportErrorToTaskRequest> _instance; |
92 | } _ReportErrorToTaskRequest_default_instance_; |
93 | class ReportErrorToTaskResponseDefaultTypeInternal { |
94 | public: |
95 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReportErrorToTaskResponse> _instance; |
96 | } _ReportErrorToTaskResponse_default_instance_; |
97 | class ReportErrorToServiceRequestDefaultTypeInternal { |
98 | public: |
99 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReportErrorToServiceRequest> _instance; |
100 | } _ReportErrorToServiceRequest_default_instance_; |
101 | class ReportErrorToServiceResponseDefaultTypeInternal { |
102 | public: |
103 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReportErrorToServiceResponse> _instance; |
104 | } _ReportErrorToServiceResponse_default_instance_; |
105 | class KeyValueEntryDefaultTypeInternal { |
106 | public: |
107 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<KeyValueEntry> _instance; |
108 | } _KeyValueEntry_default_instance_; |
109 | class InsertKeyValueRequestDefaultTypeInternal { |
110 | public: |
111 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<InsertKeyValueRequest> _instance; |
112 | } _InsertKeyValueRequest_default_instance_; |
113 | class InsertKeyValueResponseDefaultTypeInternal { |
114 | public: |
115 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<InsertKeyValueResponse> _instance; |
116 | } _InsertKeyValueResponse_default_instance_; |
117 | class GetKeyValueRequestDefaultTypeInternal { |
118 | public: |
119 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetKeyValueRequest> _instance; |
120 | } _GetKeyValueRequest_default_instance_; |
121 | class GetKeyValueResponseDefaultTypeInternal { |
122 | public: |
123 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetKeyValueResponse> _instance; |
124 | } _GetKeyValueResponse_default_instance_; |
125 | class TryGetKeyValueRequestDefaultTypeInternal { |
126 | public: |
127 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TryGetKeyValueRequest> _instance; |
128 | } _TryGetKeyValueRequest_default_instance_; |
129 | class TryGetKeyValueResponseDefaultTypeInternal { |
130 | public: |
131 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TryGetKeyValueResponse> _instance; |
132 | } _TryGetKeyValueResponse_default_instance_; |
133 | class GetKeyValueDirRequestDefaultTypeInternal { |
134 | public: |
135 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetKeyValueDirRequest> _instance; |
136 | } _GetKeyValueDirRequest_default_instance_; |
137 | class GetKeyValueDirResponseDefaultTypeInternal { |
138 | public: |
139 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetKeyValueDirResponse> _instance; |
140 | } _GetKeyValueDirResponse_default_instance_; |
141 | class DeleteKeyValueRequestDefaultTypeInternal { |
142 | public: |
143 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeleteKeyValueRequest> _instance; |
144 | } _DeleteKeyValueRequest_default_instance_; |
145 | class DeleteKeyValueResponseDefaultTypeInternal { |
146 | public: |
147 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DeleteKeyValueResponse> _instance; |
148 | } _DeleteKeyValueResponse_default_instance_; |
149 | class BarrierRequestDefaultTypeInternal { |
150 | public: |
151 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BarrierRequest> _instance; |
152 | } _BarrierRequest_default_instance_; |
153 | class BarrierResponseDefaultTypeInternal { |
154 | public: |
155 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BarrierResponse> _instance; |
156 | } _BarrierResponse_default_instance_; |
157 | class CancelBarrierRequestDefaultTypeInternal { |
158 | public: |
159 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CancelBarrierRequest> _instance; |
160 | } _CancelBarrierRequest_default_instance_; |
161 | class CancelBarrierResponseDefaultTypeInternal { |
162 | public: |
163 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CancelBarrierResponse> _instance; |
164 | } _CancelBarrierResponse_default_instance_; |
165 | } // namespace tensorflow |
166 | static void InitDefaultsscc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
167 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
168 | |
169 | { |
170 | void* ptr = &::tensorflow::_BarrierRequest_default_instance_; |
171 | new (ptr) ::tensorflow::BarrierRequest(); |
172 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
173 | } |
174 | ::tensorflow::BarrierRequest::InitAsDefaultInstance(); |
175 | } |
176 | |
177 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
178 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
179 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
180 | |
181 | static void InitDefaultsscc_info_BarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
182 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
183 | |
184 | { |
185 | void* ptr = &::tensorflow::_BarrierResponse_default_instance_; |
186 | new (ptr) ::tensorflow::BarrierResponse(); |
187 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
188 | } |
189 | ::tensorflow::BarrierResponse::InitAsDefaultInstance(); |
190 | } |
191 | |
192 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
193 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_BarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
194 | |
195 | static void InitDefaultsscc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
196 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
197 | |
198 | { |
199 | void* ptr = &::tensorflow::_CancelBarrierRequest_default_instance_; |
200 | new (ptr) ::tensorflow::CancelBarrierRequest(); |
201 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
202 | } |
203 | ::tensorflow::CancelBarrierRequest::InitAsDefaultInstance(); |
204 | } |
205 | |
206 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
207 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
208 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
209 | |
210 | static void InitDefaultsscc_info_CancelBarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
211 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
212 | |
213 | { |
214 | void* ptr = &::tensorflow::_CancelBarrierResponse_default_instance_; |
215 | new (ptr) ::tensorflow::CancelBarrierResponse(); |
216 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
217 | } |
218 | ::tensorflow::CancelBarrierResponse::InitAsDefaultInstance(); |
219 | } |
220 | |
221 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CancelBarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
222 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CancelBarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
223 | |
224 | static void InitDefaultsscc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
225 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
226 | |
227 | { |
228 | void* ptr = &::tensorflow::_CoordinatedTask_default_instance_; |
229 | new (ptr) ::tensorflow::CoordinatedTask(); |
230 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
231 | } |
232 | ::tensorflow::CoordinatedTask::InitAsDefaultInstance(); |
233 | } |
234 | |
235 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
236 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
237 | |
238 | static void InitDefaultsscc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
240 | |
241 | { |
242 | void* ptr = &::tensorflow::_CoordinationServiceDeviceInfo_default_instance_; |
243 | new (ptr) ::tensorflow::CoordinationServiceDeviceInfo(); |
244 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
245 | } |
246 | ::tensorflow::CoordinationServiceDeviceInfo::InitAsDefaultInstance(); |
247 | } |
248 | |
249 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
250 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
251 | &scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
252 | &scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
253 | |
254 | static void InitDefaultsscc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
255 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
256 | |
257 | { |
258 | void* ptr = &::tensorflow::_CoordinationServiceError_default_instance_; |
259 | new (ptr) ::tensorflow::CoordinationServiceError(); |
260 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
261 | } |
262 | ::tensorflow::CoordinationServiceError::InitAsDefaultInstance(); |
263 | } |
264 | |
265 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
266 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
267 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
268 | |
269 | static void InitDefaultsscc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
270 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
271 | |
272 | { |
273 | void* ptr = &::tensorflow::_DeleteKeyValueRequest_default_instance_; |
274 | new (ptr) ::tensorflow::DeleteKeyValueRequest(); |
275 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
276 | } |
277 | ::tensorflow::DeleteKeyValueRequest::InitAsDefaultInstance(); |
278 | } |
279 | |
280 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
281 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
282 | |
283 | static void InitDefaultsscc_info_DeleteKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
284 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
285 | |
286 | { |
287 | void* ptr = &::tensorflow::_DeleteKeyValueResponse_default_instance_; |
288 | new (ptr) ::tensorflow::DeleteKeyValueResponse(); |
289 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
290 | } |
291 | ::tensorflow::DeleteKeyValueResponse::InitAsDefaultInstance(); |
292 | } |
293 | |
294 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
295 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
296 | |
297 | static void InitDefaultsscc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
298 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
299 | |
300 | { |
301 | void* ptr = &::tensorflow::_GetKeyValueDirRequest_default_instance_; |
302 | new (ptr) ::tensorflow::GetKeyValueDirRequest(); |
303 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
304 | } |
305 | ::tensorflow::GetKeyValueDirRequest::InitAsDefaultInstance(); |
306 | } |
307 | |
308 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
309 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
310 | |
311 | static void InitDefaultsscc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
312 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
313 | |
314 | { |
315 | void* ptr = &::tensorflow::_GetKeyValueDirResponse_default_instance_; |
316 | new (ptr) ::tensorflow::GetKeyValueDirResponse(); |
317 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
318 | } |
319 | ::tensorflow::GetKeyValueDirResponse::InitAsDefaultInstance(); |
320 | } |
321 | |
322 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
323 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
324 | &scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
325 | |
326 | static void InitDefaultsscc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
327 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
328 | |
329 | { |
330 | void* ptr = &::tensorflow::_GetKeyValueRequest_default_instance_; |
331 | new (ptr) ::tensorflow::GetKeyValueRequest(); |
332 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
333 | } |
334 | ::tensorflow::GetKeyValueRequest::InitAsDefaultInstance(); |
335 | } |
336 | |
337 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
338 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
339 | |
340 | static void InitDefaultsscc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
341 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
342 | |
343 | { |
344 | void* ptr = &::tensorflow::_GetKeyValueResponse_default_instance_; |
345 | new (ptr) ::tensorflow::GetKeyValueResponse(); |
346 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
347 | } |
348 | ::tensorflow::GetKeyValueResponse::InitAsDefaultInstance(); |
349 | } |
350 | |
351 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
352 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
353 | &scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
354 | |
355 | static void InitDefaultsscc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
356 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
357 | |
358 | { |
359 | void* ptr = &::tensorflow::_HeartbeatRequest_default_instance_; |
360 | new (ptr) ::tensorflow::HeartbeatRequest(); |
361 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
362 | } |
363 | ::tensorflow::HeartbeatRequest::InitAsDefaultInstance(); |
364 | } |
365 | |
366 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
367 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
368 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
369 | |
370 | static void InitDefaultsscc_info_HeartbeatResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
371 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
372 | |
373 | { |
374 | void* ptr = &::tensorflow::_HeartbeatResponse_default_instance_; |
375 | new (ptr) ::tensorflow::HeartbeatResponse(); |
376 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
377 | } |
378 | ::tensorflow::HeartbeatResponse::InitAsDefaultInstance(); |
379 | } |
380 | |
381 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HeartbeatResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
382 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_HeartbeatResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
383 | |
384 | static void InitDefaultsscc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
385 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
386 | |
387 | { |
388 | void* ptr = &::tensorflow::_InsertKeyValueRequest_default_instance_; |
389 | new (ptr) ::tensorflow::InsertKeyValueRequest(); |
390 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
391 | } |
392 | ::tensorflow::InsertKeyValueRequest::InitAsDefaultInstance(); |
393 | } |
394 | |
395 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
396 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
397 | &scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
398 | |
399 | static void InitDefaultsscc_info_InsertKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
400 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
401 | |
402 | { |
403 | void* ptr = &::tensorflow::_InsertKeyValueResponse_default_instance_; |
404 | new (ptr) ::tensorflow::InsertKeyValueResponse(); |
405 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
406 | } |
407 | ::tensorflow::InsertKeyValueResponse::InitAsDefaultInstance(); |
408 | } |
409 | |
410 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InsertKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
411 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_InsertKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
412 | |
413 | static void InitDefaultsscc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
414 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
415 | |
416 | { |
417 | void* ptr = &::tensorflow::_KeyValueEntry_default_instance_; |
418 | new (ptr) ::tensorflow::KeyValueEntry(); |
419 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
420 | } |
421 | ::tensorflow::KeyValueEntry::InitAsDefaultInstance(); |
422 | } |
423 | |
424 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
425 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
426 | |
427 | static void InitDefaultsscc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
428 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
429 | |
430 | { |
431 | void* ptr = &::tensorflow::_RegisterTaskRequest_default_instance_; |
432 | new (ptr) ::tensorflow::RegisterTaskRequest(); |
433 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
434 | } |
435 | ::tensorflow::RegisterTaskRequest::InitAsDefaultInstance(); |
436 | } |
437 | |
438 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
439 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
440 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
441 | |
442 | static void InitDefaultsscc_info_RegisterTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
443 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
444 | |
445 | { |
446 | void* ptr = &::tensorflow::_RegisterTaskResponse_default_instance_; |
447 | new (ptr) ::tensorflow::RegisterTaskResponse(); |
448 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
449 | } |
450 | ::tensorflow::RegisterTaskResponse::InitAsDefaultInstance(); |
451 | } |
452 | |
453 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RegisterTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
454 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RegisterTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
455 | |
456 | static void InitDefaultsscc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
457 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
458 | |
459 | { |
460 | void* ptr = &::tensorflow::_ReportErrorToServiceRequest_default_instance_; |
461 | new (ptr) ::tensorflow::ReportErrorToServiceRequest(); |
462 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
463 | } |
464 | ::tensorflow::ReportErrorToServiceRequest::InitAsDefaultInstance(); |
465 | } |
466 | |
467 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
468 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
469 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
470 | |
471 | static void InitDefaultsscc_info_ReportErrorToServiceResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
472 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
473 | |
474 | { |
475 | void* ptr = &::tensorflow::_ReportErrorToServiceResponse_default_instance_; |
476 | new (ptr) ::tensorflow::ReportErrorToServiceResponse(); |
477 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
478 | } |
479 | ::tensorflow::ReportErrorToServiceResponse::InitAsDefaultInstance(); |
480 | } |
481 | |
482 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportErrorToServiceResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
483 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ReportErrorToServiceResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
484 | |
485 | static void InitDefaultsscc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
486 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
487 | |
488 | { |
489 | void* ptr = &::tensorflow::_ReportErrorToTaskRequest_default_instance_; |
490 | new (ptr) ::tensorflow::ReportErrorToTaskRequest(); |
491 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
492 | } |
493 | ::tensorflow::ReportErrorToTaskRequest::InitAsDefaultInstance(); |
494 | } |
495 | |
496 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
497 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
498 | &scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
499 | |
500 | static void InitDefaultsscc_info_ReportErrorToTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
501 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
502 | |
503 | { |
504 | void* ptr = &::tensorflow::_ReportErrorToTaskResponse_default_instance_; |
505 | new (ptr) ::tensorflow::ReportErrorToTaskResponse(); |
506 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
507 | } |
508 | ::tensorflow::ReportErrorToTaskResponse::InitAsDefaultInstance(); |
509 | } |
510 | |
511 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportErrorToTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
512 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ReportErrorToTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
513 | |
514 | static void InitDefaultsscc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
515 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
516 | |
517 | { |
518 | void* ptr = &::tensorflow::_ResetTaskRequest_default_instance_; |
519 | new (ptr) ::tensorflow::ResetTaskRequest(); |
520 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
521 | } |
522 | ::tensorflow::ResetTaskRequest::InitAsDefaultInstance(); |
523 | } |
524 | |
525 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
526 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
527 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
528 | |
529 | static void InitDefaultsscc_info_ResetTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
530 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
531 | |
532 | { |
533 | void* ptr = &::tensorflow::_ResetTaskResponse_default_instance_; |
534 | new (ptr) ::tensorflow::ResetTaskResponse(); |
535 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
536 | } |
537 | ::tensorflow::ResetTaskResponse::InitAsDefaultInstance(); |
538 | } |
539 | |
540 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResetTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
541 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ResetTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
542 | |
543 | static void InitDefaultsscc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
544 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
545 | |
546 | { |
547 | void* ptr = &::tensorflow::_ShutdownTaskRequest_default_instance_; |
548 | new (ptr) ::tensorflow::ShutdownTaskRequest(); |
549 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
550 | } |
551 | ::tensorflow::ShutdownTaskRequest::InitAsDefaultInstance(); |
552 | } |
553 | |
554 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
555 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
556 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
557 | |
558 | static void InitDefaultsscc_info_ShutdownTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
559 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
560 | |
561 | { |
562 | void* ptr = &::tensorflow::_ShutdownTaskResponse_default_instance_; |
563 | new (ptr) ::tensorflow::ShutdownTaskResponse(); |
564 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
565 | } |
566 | ::tensorflow::ShutdownTaskResponse::InitAsDefaultInstance(); |
567 | } |
568 | |
569 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ShutdownTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
570 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ShutdownTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
571 | |
572 | static void InitDefaultsscc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
573 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
574 | |
575 | { |
576 | void* ptr = &::tensorflow::_TfDeviceList_default_instance_; |
577 | new (ptr) ::tensorflow::TfDeviceList(); |
578 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
579 | } |
580 | ::tensorflow::TfDeviceList::InitAsDefaultInstance(); |
581 | } |
582 | |
583 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
584 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
585 | &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}}; |
586 | |
587 | static void InitDefaultsscc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
588 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
589 | |
590 | { |
591 | void* ptr = &::tensorflow::_TryGetKeyValueRequest_default_instance_; |
592 | new (ptr) ::tensorflow::TryGetKeyValueRequest(); |
593 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
594 | } |
595 | ::tensorflow::TryGetKeyValueRequest::InitAsDefaultInstance(); |
596 | } |
597 | |
598 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
599 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, {}}; |
600 | |
601 | static void InitDefaultsscc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
602 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
603 | |
604 | { |
605 | void* ptr = &::tensorflow::_TryGetKeyValueResponse_default_instance_; |
606 | new (ptr) ::tensorflow::TryGetKeyValueResponse(); |
607 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
608 | } |
609 | ::tensorflow::TryGetKeyValueResponse::InitAsDefaultInstance(); |
610 | } |
611 | |
612 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
613 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
614 | &scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
615 | |
616 | static void InitDefaultsscc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
617 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
618 | |
619 | { |
620 | void* ptr = &::tensorflow::_WaitForAllTasksRequest_default_instance_; |
621 | new (ptr) ::tensorflow::WaitForAllTasksRequest(); |
622 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
623 | } |
624 | ::tensorflow::WaitForAllTasksRequest::InitAsDefaultInstance(); |
625 | } |
626 | |
627 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
628 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
629 | &scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
630 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
631 | |
632 | static void InitDefaultsscc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
633 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
634 | |
635 | { |
636 | void* ptr = &::tensorflow::_WaitForAllTasksResponse_default_instance_; |
637 | new (ptr) ::tensorflow::WaitForAllTasksResponse(); |
638 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
639 | } |
640 | ::tensorflow::WaitForAllTasksResponse::InitAsDefaultInstance(); |
641 | } |
642 | |
643 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
644 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
645 | &scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base,}}; |
646 | |
647 | static void InitDefaultsscc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto() { |
648 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
649 | |
650 | { |
651 | void* ptr = &::tensorflow::_XlaDeviceList_default_instance_; |
652 | new (ptr) ::tensorflow::XlaDeviceList(); |
653 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
654 | } |
655 | ::tensorflow::XlaDeviceList::InitAsDefaultInstance(); |
656 | } |
657 | |
658 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = |
659 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto}, { |
660 | &scc_info_GlobalTopologyProto_tensorflow_2fcompiler_2fxla_2fpjrt_2fdistributed_2fprotocol_2eproto.base,}}; |
661 | |
662 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto[34]; |
663 | static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto[1]; |
664 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = nullptr; |
665 | |
666 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
667 | ~0u, // no _has_bits_ |
668 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinatedTask, _internal_metadata_), |
669 | ~0u, // no _extensions_ |
670 | ~0u, // no _oneof_case_ |
671 | ~0u, // no _weak_field_map_ |
672 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinatedTask, job_name_), |
673 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinatedTask, task_id_), |
674 | ~0u, // no _has_bits_ |
675 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceError, _internal_metadata_), |
676 | ~0u, // no _extensions_ |
677 | ~0u, // no _oneof_case_ |
678 | ~0u, // no _weak_field_map_ |
679 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceError, is_reported_error_), |
680 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceError, source_task_), |
681 | ~0u, // no _has_bits_ |
682 | PROTOBUF_FIELD_OFFSET(::tensorflow::TfDeviceList, _internal_metadata_), |
683 | ~0u, // no _extensions_ |
684 | ~0u, // no _oneof_case_ |
685 | ~0u, // no _weak_field_map_ |
686 | PROTOBUF_FIELD_OFFSET(::tensorflow::TfDeviceList, devices_), |
687 | ~0u, // no _has_bits_ |
688 | PROTOBUF_FIELD_OFFSET(::tensorflow::XlaDeviceList, _internal_metadata_), |
689 | ~0u, // no _extensions_ |
690 | ~0u, // no _oneof_case_ |
691 | ~0u, // no _weak_field_map_ |
692 | PROTOBUF_FIELD_OFFSET(::tensorflow::XlaDeviceList, devices_), |
693 | ~0u, // no _has_bits_ |
694 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceDeviceInfo, _internal_metadata_), |
695 | ~0u, // no _extensions_ |
696 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceDeviceInfo, _oneof_case_[0]), |
697 | ~0u, // no _weak_field_map_ |
698 | offsetof(::tensorflow::CoordinationServiceDeviceInfoDefaultTypeInternal, tf_), |
699 | offsetof(::tensorflow::CoordinationServiceDeviceInfoDefaultTypeInternal, xla_), |
700 | PROTOBUF_FIELD_OFFSET(::tensorflow::CoordinationServiceDeviceInfo, type_), |
701 | ~0u, // no _has_bits_ |
702 | PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterTaskRequest, _internal_metadata_), |
703 | ~0u, // no _extensions_ |
704 | ~0u, // no _oneof_case_ |
705 | ~0u, // no _weak_field_map_ |
706 | PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterTaskRequest, incarnation_), |
707 | PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterTaskRequest, source_task_), |
708 | ~0u, // no _has_bits_ |
709 | PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterTaskResponse, _internal_metadata_), |
710 | ~0u, // no _extensions_ |
711 | ~0u, // no _oneof_case_ |
712 | ~0u, // no _weak_field_map_ |
713 | PROTOBUF_FIELD_OFFSET(::tensorflow::RegisterTaskResponse, leader_incarnation_), |
714 | ~0u, // no _has_bits_ |
715 | PROTOBUF_FIELD_OFFSET(::tensorflow::HeartbeatRequest, _internal_metadata_), |
716 | ~0u, // no _extensions_ |
717 | ~0u, // no _oneof_case_ |
718 | ~0u, // no _weak_field_map_ |
719 | PROTOBUF_FIELD_OFFSET(::tensorflow::HeartbeatRequest, incarnation_), |
720 | PROTOBUF_FIELD_OFFSET(::tensorflow::HeartbeatRequest, source_task_), |
721 | ~0u, // no _has_bits_ |
722 | PROTOBUF_FIELD_OFFSET(::tensorflow::HeartbeatResponse, _internal_metadata_), |
723 | ~0u, // no _extensions_ |
724 | ~0u, // no _oneof_case_ |
725 | ~0u, // no _weak_field_map_ |
726 | PROTOBUF_FIELD_OFFSET(::tensorflow::HeartbeatResponse, leader_incarnation_), |
727 | ~0u, // no _has_bits_ |
728 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksRequest, _internal_metadata_), |
729 | ~0u, // no _extensions_ |
730 | ~0u, // no _oneof_case_ |
731 | ~0u, // no _weak_field_map_ |
732 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksRequest, local_device_info_), |
733 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksRequest, source_task_), |
734 | ~0u, // no _has_bits_ |
735 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksResponse, _internal_metadata_), |
736 | ~0u, // no _extensions_ |
737 | ~0u, // no _oneof_case_ |
738 | ~0u, // no _weak_field_map_ |
739 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksResponse, leader_incarnation_), |
740 | PROTOBUF_FIELD_OFFSET(::tensorflow::WaitForAllTasksResponse, cluster_device_info_), |
741 | ~0u, // no _has_bits_ |
742 | PROTOBUF_FIELD_OFFSET(::tensorflow::ShutdownTaskRequest, _internal_metadata_), |
743 | ~0u, // no _extensions_ |
744 | ~0u, // no _oneof_case_ |
745 | ~0u, // no _weak_field_map_ |
746 | PROTOBUF_FIELD_OFFSET(::tensorflow::ShutdownTaskRequest, source_task_), |
747 | ~0u, // no _has_bits_ |
748 | PROTOBUF_FIELD_OFFSET(::tensorflow::ShutdownTaskResponse, _internal_metadata_), |
749 | ~0u, // no _extensions_ |
750 | ~0u, // no _oneof_case_ |
751 | ~0u, // no _weak_field_map_ |
752 | ~0u, // no _has_bits_ |
753 | PROTOBUF_FIELD_OFFSET(::tensorflow::ResetTaskRequest, _internal_metadata_), |
754 | ~0u, // no _extensions_ |
755 | ~0u, // no _oneof_case_ |
756 | ~0u, // no _weak_field_map_ |
757 | PROTOBUF_FIELD_OFFSET(::tensorflow::ResetTaskRequest, source_task_), |
758 | ~0u, // no _has_bits_ |
759 | PROTOBUF_FIELD_OFFSET(::tensorflow::ResetTaskResponse, _internal_metadata_), |
760 | ~0u, // no _extensions_ |
761 | ~0u, // no _oneof_case_ |
762 | ~0u, // no _weak_field_map_ |
763 | ~0u, // no _has_bits_ |
764 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToTaskRequest, _internal_metadata_), |
765 | ~0u, // no _extensions_ |
766 | ~0u, // no _oneof_case_ |
767 | ~0u, // no _weak_field_map_ |
768 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToTaskRequest, error_code_), |
769 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToTaskRequest, error_message_), |
770 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToTaskRequest, error_payload_), |
771 | ~0u, // no _has_bits_ |
772 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToTaskResponse, _internal_metadata_), |
773 | ~0u, // no _extensions_ |
774 | ~0u, // no _oneof_case_ |
775 | ~0u, // no _weak_field_map_ |
776 | ~0u, // no _has_bits_ |
777 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToServiceRequest, _internal_metadata_), |
778 | ~0u, // no _extensions_ |
779 | ~0u, // no _oneof_case_ |
780 | ~0u, // no _weak_field_map_ |
781 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToServiceRequest, error_code_), |
782 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToServiceRequest, error_message_), |
783 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToServiceRequest, error_origin_), |
784 | ~0u, // no _has_bits_ |
785 | PROTOBUF_FIELD_OFFSET(::tensorflow::ReportErrorToServiceResponse, _internal_metadata_), |
786 | ~0u, // no _extensions_ |
787 | ~0u, // no _oneof_case_ |
788 | ~0u, // no _weak_field_map_ |
789 | ~0u, // no _has_bits_ |
790 | PROTOBUF_FIELD_OFFSET(::tensorflow::KeyValueEntry, _internal_metadata_), |
791 | ~0u, // no _extensions_ |
792 | ~0u, // no _oneof_case_ |
793 | ~0u, // no _weak_field_map_ |
794 | PROTOBUF_FIELD_OFFSET(::tensorflow::KeyValueEntry, key_), |
795 | PROTOBUF_FIELD_OFFSET(::tensorflow::KeyValueEntry, value_), |
796 | ~0u, // no _has_bits_ |
797 | PROTOBUF_FIELD_OFFSET(::tensorflow::InsertKeyValueRequest, _internal_metadata_), |
798 | ~0u, // no _extensions_ |
799 | ~0u, // no _oneof_case_ |
800 | ~0u, // no _weak_field_map_ |
801 | PROTOBUF_FIELD_OFFSET(::tensorflow::InsertKeyValueRequest, kv_), |
802 | ~0u, // no _has_bits_ |
803 | PROTOBUF_FIELD_OFFSET(::tensorflow::InsertKeyValueResponse, _internal_metadata_), |
804 | ~0u, // no _extensions_ |
805 | ~0u, // no _oneof_case_ |
806 | ~0u, // no _weak_field_map_ |
807 | ~0u, // no _has_bits_ |
808 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueRequest, _internal_metadata_), |
809 | ~0u, // no _extensions_ |
810 | ~0u, // no _oneof_case_ |
811 | ~0u, // no _weak_field_map_ |
812 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueRequest, key_), |
813 | ~0u, // no _has_bits_ |
814 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueResponse, _internal_metadata_), |
815 | ~0u, // no _extensions_ |
816 | ~0u, // no _oneof_case_ |
817 | ~0u, // no _weak_field_map_ |
818 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueResponse, kv_), |
819 | ~0u, // no _has_bits_ |
820 | PROTOBUF_FIELD_OFFSET(::tensorflow::TryGetKeyValueRequest, _internal_metadata_), |
821 | ~0u, // no _extensions_ |
822 | ~0u, // no _oneof_case_ |
823 | ~0u, // no _weak_field_map_ |
824 | PROTOBUF_FIELD_OFFSET(::tensorflow::TryGetKeyValueRequest, key_), |
825 | ~0u, // no _has_bits_ |
826 | PROTOBUF_FIELD_OFFSET(::tensorflow::TryGetKeyValueResponse, _internal_metadata_), |
827 | ~0u, // no _extensions_ |
828 | ~0u, // no _oneof_case_ |
829 | ~0u, // no _weak_field_map_ |
830 | PROTOBUF_FIELD_OFFSET(::tensorflow::TryGetKeyValueResponse, kv_), |
831 | ~0u, // no _has_bits_ |
832 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueDirRequest, _internal_metadata_), |
833 | ~0u, // no _extensions_ |
834 | ~0u, // no _oneof_case_ |
835 | ~0u, // no _weak_field_map_ |
836 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueDirRequest, directory_key_), |
837 | ~0u, // no _has_bits_ |
838 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueDirResponse, _internal_metadata_), |
839 | ~0u, // no _extensions_ |
840 | ~0u, // no _oneof_case_ |
841 | ~0u, // no _weak_field_map_ |
842 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueDirResponse, directory_key_), |
843 | PROTOBUF_FIELD_OFFSET(::tensorflow::GetKeyValueDirResponse, kv_), |
844 | ~0u, // no _has_bits_ |
845 | PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteKeyValueRequest, _internal_metadata_), |
846 | ~0u, // no _extensions_ |
847 | ~0u, // no _oneof_case_ |
848 | ~0u, // no _weak_field_map_ |
849 | PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteKeyValueRequest, key_), |
850 | PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteKeyValueRequest, is_directory_), |
851 | ~0u, // no _has_bits_ |
852 | PROTOBUF_FIELD_OFFSET(::tensorflow::DeleteKeyValueResponse, _internal_metadata_), |
853 | ~0u, // no _extensions_ |
854 | ~0u, // no _oneof_case_ |
855 | ~0u, // no _weak_field_map_ |
856 | ~0u, // no _has_bits_ |
857 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierRequest, _internal_metadata_), |
858 | ~0u, // no _extensions_ |
859 | ~0u, // no _oneof_case_ |
860 | ~0u, // no _weak_field_map_ |
861 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierRequest, barrier_id_), |
862 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierRequest, barrier_timeout_in_ms_), |
863 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierRequest, tasks_), |
864 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierRequest, source_task_), |
865 | ~0u, // no _has_bits_ |
866 | PROTOBUF_FIELD_OFFSET(::tensorflow::BarrierResponse, _internal_metadata_), |
867 | ~0u, // no _extensions_ |
868 | ~0u, // no _oneof_case_ |
869 | ~0u, // no _weak_field_map_ |
870 | ~0u, // no _has_bits_ |
871 | PROTOBUF_FIELD_OFFSET(::tensorflow::CancelBarrierRequest, _internal_metadata_), |
872 | ~0u, // no _extensions_ |
873 | ~0u, // no _oneof_case_ |
874 | ~0u, // no _weak_field_map_ |
875 | PROTOBUF_FIELD_OFFSET(::tensorflow::CancelBarrierRequest, barrier_id_), |
876 | PROTOBUF_FIELD_OFFSET(::tensorflow::CancelBarrierRequest, source_task_), |
877 | ~0u, // no _has_bits_ |
878 | PROTOBUF_FIELD_OFFSET(::tensorflow::CancelBarrierResponse, _internal_metadata_), |
879 | ~0u, // no _extensions_ |
880 | ~0u, // no _oneof_case_ |
881 | ~0u, // no _weak_field_map_ |
882 | }; |
883 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
884 | { 0, -1, sizeof(::tensorflow::CoordinatedTask)}, |
885 | { 7, -1, sizeof(::tensorflow::CoordinationServiceError)}, |
886 | { 14, -1, sizeof(::tensorflow::TfDeviceList)}, |
887 | { 20, -1, sizeof(::tensorflow::XlaDeviceList)}, |
888 | { 26, -1, sizeof(::tensorflow::CoordinationServiceDeviceInfo)}, |
889 | { 34, -1, sizeof(::tensorflow::RegisterTaskRequest)}, |
890 | { 41, -1, sizeof(::tensorflow::RegisterTaskResponse)}, |
891 | { 47, -1, sizeof(::tensorflow::HeartbeatRequest)}, |
892 | { 54, -1, sizeof(::tensorflow::HeartbeatResponse)}, |
893 | { 60, -1, sizeof(::tensorflow::WaitForAllTasksRequest)}, |
894 | { 67, -1, sizeof(::tensorflow::WaitForAllTasksResponse)}, |
895 | { 74, -1, sizeof(::tensorflow::ShutdownTaskRequest)}, |
896 | { 80, -1, sizeof(::tensorflow::ShutdownTaskResponse)}, |
897 | { 85, -1, sizeof(::tensorflow::ResetTaskRequest)}, |
898 | { 91, -1, sizeof(::tensorflow::ResetTaskResponse)}, |
899 | { 96, -1, sizeof(::tensorflow::ReportErrorToTaskRequest)}, |
900 | { 104, -1, sizeof(::tensorflow::ReportErrorToTaskResponse)}, |
901 | { 109, -1, sizeof(::tensorflow::ReportErrorToServiceRequest)}, |
902 | { 117, -1, sizeof(::tensorflow::ReportErrorToServiceResponse)}, |
903 | { 122, -1, sizeof(::tensorflow::KeyValueEntry)}, |
904 | { 129, -1, sizeof(::tensorflow::InsertKeyValueRequest)}, |
905 | { 135, -1, sizeof(::tensorflow::InsertKeyValueResponse)}, |
906 | { 140, -1, sizeof(::tensorflow::GetKeyValueRequest)}, |
907 | { 146, -1, sizeof(::tensorflow::GetKeyValueResponse)}, |
908 | { 152, -1, sizeof(::tensorflow::TryGetKeyValueRequest)}, |
909 | { 158, -1, sizeof(::tensorflow::TryGetKeyValueResponse)}, |
910 | { 164, -1, sizeof(::tensorflow::GetKeyValueDirRequest)}, |
911 | { 170, -1, sizeof(::tensorflow::GetKeyValueDirResponse)}, |
912 | { 177, -1, sizeof(::tensorflow::DeleteKeyValueRequest)}, |
913 | { 184, -1, sizeof(::tensorflow::DeleteKeyValueResponse)}, |
914 | { 189, -1, sizeof(::tensorflow::BarrierRequest)}, |
915 | { 198, -1, sizeof(::tensorflow::BarrierResponse)}, |
916 | { 203, -1, sizeof(::tensorflow::CancelBarrierRequest)}, |
917 | { 210, -1, sizeof(::tensorflow::CancelBarrierResponse)}, |
918 | }; |
919 | |
920 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
921 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CoordinatedTask_default_instance_), |
922 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CoordinationServiceError_default_instance_), |
923 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TfDeviceList_default_instance_), |
924 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_XlaDeviceList_default_instance_), |
925 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CoordinationServiceDeviceInfo_default_instance_), |
926 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RegisterTaskRequest_default_instance_), |
927 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RegisterTaskResponse_default_instance_), |
928 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_HeartbeatRequest_default_instance_), |
929 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_HeartbeatResponse_default_instance_), |
930 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_WaitForAllTasksRequest_default_instance_), |
931 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_WaitForAllTasksResponse_default_instance_), |
932 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ShutdownTaskRequest_default_instance_), |
933 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ShutdownTaskResponse_default_instance_), |
934 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ResetTaskRequest_default_instance_), |
935 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ResetTaskResponse_default_instance_), |
936 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReportErrorToTaskRequest_default_instance_), |
937 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReportErrorToTaskResponse_default_instance_), |
938 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReportErrorToServiceRequest_default_instance_), |
939 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReportErrorToServiceResponse_default_instance_), |
940 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_KeyValueEntry_default_instance_), |
941 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_InsertKeyValueRequest_default_instance_), |
942 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_InsertKeyValueResponse_default_instance_), |
943 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetKeyValueRequest_default_instance_), |
944 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetKeyValueResponse_default_instance_), |
945 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TryGetKeyValueRequest_default_instance_), |
946 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TryGetKeyValueResponse_default_instance_), |
947 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetKeyValueDirRequest_default_instance_), |
948 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GetKeyValueDirResponse_default_instance_), |
949 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeleteKeyValueRequest_default_instance_), |
950 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_DeleteKeyValueResponse_default_instance_), |
951 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BarrierRequest_default_instance_), |
952 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BarrierResponse_default_instance_), |
953 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CancelBarrierRequest_default_instance_), |
954 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CancelBarrierResponse_default_instance_), |
955 | }; |
956 | |
957 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
958 | "\n3tensorflow/core/protobuf/coordination_" |
959 | "service.proto\022\ntensorflow\0327tensorflow/co" |
960 | "mpiler/xla/pjrt/distributed/protocol.pro" |
961 | "to\0321tensorflow/core/framework/device_att" |
962 | "ributes.proto\"4\n\017CoordinatedTask\022\020\n\010job_" |
963 | "name\030\001 \001(\t\022\017\n\007task_id\030\002 \001(\005\"s\n\030Coordinat" |
964 | "ionServiceError\022\031\n\021is_reported_error\030\003 \001" |
965 | "(\010\0220\n\013source_task\030\004 \001(\0132\033.tensorflow.Coo" |
966 | "rdinatedTaskJ\004\010\001\020\002J\004\010\002\020\003\"=\n\014TfDeviceList" |
967 | "\022-\n\007devices\030\001 \003(\0132\034.tensorflow.DeviceAtt" |
968 | "ributes\":\n\rXlaDeviceList\022)\n\007devices\030\001 \001(" |
969 | "\0132\030.xla.GlobalTopologyProto\"y\n\035Coordinat" |
970 | "ionServiceDeviceInfo\022&\n\002tf\030\001 \001(\0132\030.tenso" |
971 | "rflow.TfDeviceListH\000\022(\n\003xla\030\002 \001(\0132\031.tens" |
972 | "orflow.XlaDeviceListH\000B\006\n\004type\"n\n\023Regist" |
973 | "erTaskRequest\022\023\n\013incarnation\030\003 \001(\006\0220\n\013so" |
974 | "urce_task\030\005 \001(\0132\033.tensorflow.Coordinated" |
975 | "TaskJ\004\010\001\020\002J\004\010\002\020\003J\004\010\004\020\005\"2\n\024RegisterTaskRe" |
976 | "sponse\022\032\n\022leader_incarnation\030\001 \001(\006\"e\n\020He" |
977 | "artbeatRequest\022\023\n\013incarnation\030\003 \001(\006\0220\n\013s" |
978 | "ource_task\030\004 \001(\0132\033.tensorflow.Coordinate" |
979 | "dTaskJ\004\010\001\020\002J\004\010\002\020\003\"/\n\021HeartbeatResponse\022\032" |
980 | "\n\022leader_incarnation\030\001 \001(\006\"\242\001\n\026WaitForAl" |
981 | "lTasksRequest\022D\n\021local_device_info\030\004 \001(\013" |
982 | "2).tensorflow.CoordinationServiceDeviceI" |
983 | "nfo\0220\n\013source_task\030\005 \001(\0132\033.tensorflow.Co" |
984 | "ordinatedTaskJ\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004\"\203\001\n\027Wait" |
985 | "ForAllTasksResponse\022\032\n\022leader_incarnatio" |
986 | "n\030\001 \001(\006\022F\n\023cluster_device_info\030\003 \001(\0132).t" |
987 | "ensorflow.CoordinationServiceDeviceInfoJ" |
988 | "\004\010\002\020\003\"G\n\023ShutdownTaskRequest\0220\n\013source_t" |
989 | "ask\030\001 \001(\0132\033.tensorflow.CoordinatedTask\"\026" |
990 | "\n\024ShutdownTaskResponse\"D\n\020ResetTaskReque" |
991 | "st\0220\n\013source_task\030\001 \001(\0132\033.tensorflow.Coo" |
992 | "rdinatedTask\"\023\n\021ResetTaskResponse\"\216\001\n\030Re" |
993 | "portErrorToTaskRequest\022\022\n\nerror_code\030\001 \001" |
994 | "(\005\022\025\n\rerror_message\030\002 \001(\t\022;\n\rerror_paylo" |
995 | "ad\030\005 \001(\0132$.tensorflow.CoordinationServic" |
996 | "eErrorJ\004\010\003\020\004J\004\010\004\020\005\"\033\n\031ReportErrorToTaskR" |
997 | "esponse\"\207\001\n\033ReportErrorToServiceRequest\022" |
998 | "\022\n\nerror_code\030\001 \001(\005\022\025\n\rerror_message\030\002 \001" |
999 | "(\t\0221\n\014error_origin\030\005 \001(\0132\033.tensorflow.Co" |
1000 | "ordinatedTaskJ\004\010\003\020\004J\004\010\004\020\005\"\036\n\034ReportError" |
1001 | "ToServiceResponse\"+\n\rKeyValueEntry\022\013\n\003ke" |
1002 | "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\014\">\n\025InsertKeyValue" |
1003 | "Request\022%\n\002kv\030\001 \001(\0132\031.tensorflow.KeyValu" |
1004 | "eEntry\"\030\n\026InsertKeyValueResponse\"!\n\022GetK" |
1005 | "eyValueRequest\022\013\n\003key\030\001 \001(\t\"<\n\023GetKeyVal" |
1006 | "ueResponse\022%\n\002kv\030\001 \001(\0132\031.tensorflow.KeyV" |
1007 | "alueEntry\"$\n\025TryGetKeyValueRequest\022\013\n\003ke" |
1008 | "y\030\001 \001(\t\"\?\n\026TryGetKeyValueResponse\022%\n\002kv\030" |
1009 | "\001 \001(\0132\031.tensorflow.KeyValueEntry\".\n\025GetK" |
1010 | "eyValueDirRequest\022\025\n\rdirectory_key\030\001 \001(\t" |
1011 | "\"V\n\026GetKeyValueDirResponse\022\025\n\rdirectory_" |
1012 | "key\030\001 \001(\t\022%\n\002kv\030\002 \003(\0132\031.tensorflow.KeyVa" |
1013 | "lueEntry\":\n\025DeleteKeyValueRequest\022\013\n\003key" |
1014 | "\030\001 \001(\t\022\024\n\014is_directory\030\002 \001(\010\"\030\n\026DeleteKe" |
1015 | "yValueResponse\"\241\001\n\016BarrierRequest\022\022\n\nbar" |
1016 | "rier_id\030\001 \001(\t\022\035\n\025barrier_timeout_in_ms\030\002" |
1017 | " \001(\003\022*\n\005tasks\030\003 \003(\0132\033.tensorflow.Coordin" |
1018 | "atedTask\0220\n\013source_task\030\004 \001(\0132\033.tensorfl" |
1019 | "ow.CoordinatedTask\"\021\n\017BarrierResponse\"\\\n" |
1020 | "\024CancelBarrierRequest\022\022\n\nbarrier_id\030\001 \001(" |
1021 | "\t\0220\n\013source_task\030\002 \001(\0132\033.tensorflow.Coor" |
1022 | "dinatedTask\"\027\n\025CancelBarrierResponse*\230\001\n" |
1023 | "\024CoordinatedTaskState\022\031\n\025TASKSTATE_UNSPE" |
1024 | "CIFIED\020\000\022\033\n\027TASKSTATE_UNINITIALIZED\020\001\022\032\n" |
1025 | "\026TASKSTATE_DISCONNECTED\020\002\022\027\n\023TASKSTATE_C" |
1026 | "ONNECTED\020\003\022\023\n\017TASKSTATE_ERROR\020\0042\306\t\n\023Coor" |
1027 | "dinationService\022Q\n\014RegisterTask\022\037.tensor" |
1028 | "flow.RegisterTaskRequest\032 .tensorflow.Re" |
1029 | "gisterTaskResponse\022H\n\tHeartbeat\022\034.tensor" |
1030 | "flow.HeartbeatRequest\032\035.tensorflow.Heart" |
1031 | "beatResponse\022Z\n\017WaitForAllTasks\022\".tensor" |
1032 | "flow.WaitForAllTasksRequest\032#.tensorflow" |
1033 | ".WaitForAllTasksResponse\022Q\n\014ShutdownTask" |
1034 | "\022\037.tensorflow.ShutdownTaskRequest\032 .tens" |
1035 | "orflow.ShutdownTaskResponse\022H\n\tResetTask" |
1036 | "\022\034.tensorflow.ResetTaskRequest\032\035.tensorf" |
1037 | "low.ResetTaskResponse\022`\n\021ReportErrorToTa" |
1038 | "sk\022$.tensorflow.ReportErrorToTaskRequest" |
1039 | "\032%.tensorflow.ReportErrorToTaskResponse\022" |
1040 | "i\n\024ReportErrorToService\022\'.tensorflow.Rep" |
1041 | "ortErrorToServiceRequest\032(.tensorflow.Re" |
1042 | "portErrorToServiceResponse\022W\n\016InsertKeyV" |
1043 | "alue\022!.tensorflow.InsertKeyValueRequest\032" |
1044 | "\".tensorflow.InsertKeyValueResponse\022N\n\013G" |
1045 | "etKeyValue\022\036.tensorflow.GetKeyValueReque" |
1046 | "st\032\037.tensorflow.GetKeyValueResponse\022W\n\016T" |
1047 | "ryGetKeyValue\022!.tensorflow.TryGetKeyValu" |
1048 | "eRequest\032\".tensorflow.TryGetKeyValueResp" |
1049 | "onse\022W\n\016GetKeyValueDir\022!.tensorflow.GetK" |
1050 | "eyValueDirRequest\032\".tensorflow.GetKeyVal" |
1051 | "ueDirResponse\022W\n\016DeleteKeyValue\022!.tensor" |
1052 | "flow.DeleteKeyValueRequest\032\".tensorflow." |
1053 | "DeleteKeyValueResponse\022B\n\007Barrier\022\032.tens" |
1054 | "orflow.BarrierRequest\032\033.tensorflow.Barri" |
1055 | "erResponse\022T\n\rCancelBarrier\022 .tensorflow" |
1056 | ".CancelBarrierRequest\032!.tensorflow.Cance" |
1057 | "lBarrierResponseBWZUgithub.com/tensorflo" |
1058 | "w/tensorflow/tensorflow/go/core/protobuf" |
1059 | "/for_core_protos_go_protob\006proto3" |
1060 | ; |
1061 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_deps[2] = { |
1062 | &::descriptor_table_tensorflow_2fcompiler_2fxla_2fpjrt_2fdistributed_2fprotocol_2eproto, |
1063 | &::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto, |
1064 | }; |
1065 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_sccs[34] = { |
1066 | &scc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1067 | &scc_info_BarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1068 | &scc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1069 | &scc_info_CancelBarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1070 | &scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1071 | &scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1072 | &scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1073 | &scc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1074 | &scc_info_DeleteKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1075 | &scc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1076 | &scc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1077 | &scc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1078 | &scc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1079 | &scc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1080 | &scc_info_HeartbeatResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1081 | &scc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1082 | &scc_info_InsertKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1083 | &scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1084 | &scc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1085 | &scc_info_RegisterTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1086 | &scc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1087 | &scc_info_ReportErrorToServiceResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1088 | &scc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1089 | &scc_info_ReportErrorToTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1090 | &scc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1091 | &scc_info_ResetTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1092 | &scc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1093 | &scc_info_ShutdownTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1094 | &scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1095 | &scc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1096 | &scc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1097 | &scc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1098 | &scc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1099 | &scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base, |
1100 | }; |
1101 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_once; |
1102 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_initialized = false; |
1103 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = { |
1104 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto, "tensorflow/core/protobuf/coordination_service.proto" , 4073, |
1105 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto_deps, 34, 2, |
1106 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto::offsets, |
1107 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto, 34, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto, |
1108 | }; |
1109 | |
1110 | // Force running AddDescriptors() at dynamic initialization time. |
1111 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto), true); |
1112 | namespace tensorflow { |
1113 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CoordinatedTaskState_descriptor() { |
1114 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto); |
1115 | return file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto[0]; |
1116 | } |
1117 | bool CoordinatedTaskState_IsValid(int value) { |
1118 | switch (value) { |
1119 | case 0: |
1120 | case 1: |
1121 | case 2: |
1122 | case 3: |
1123 | case 4: |
1124 | return true; |
1125 | default: |
1126 | return false; |
1127 | } |
1128 | } |
1129 | |
1130 | |
1131 | // =================================================================== |
1132 | |
1133 | void CoordinatedTask::InitAsDefaultInstance() { |
1134 | } |
1135 | class CoordinatedTask::_Internal { |
1136 | public: |
1137 | }; |
1138 | |
1139 | CoordinatedTask::CoordinatedTask() |
1140 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1141 | SharedCtor(); |
1142 | // @@protoc_insertion_point(constructor:tensorflow.CoordinatedTask) |
1143 | } |
1144 | CoordinatedTask::CoordinatedTask(const CoordinatedTask& from) |
1145 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1146 | _internal_metadata_(nullptr) { |
1147 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1148 | job_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1149 | if (!from.job_name().empty()) { |
1150 | job_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.job_name_); |
1151 | } |
1152 | task_id_ = from.task_id_; |
1153 | // @@protoc_insertion_point(copy_constructor:tensorflow.CoordinatedTask) |
1154 | } |
1155 | |
1156 | void CoordinatedTask::SharedCtor() { |
1157 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1158 | job_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1159 | task_id_ = 0; |
1160 | } |
1161 | |
1162 | CoordinatedTask::~CoordinatedTask() { |
1163 | // @@protoc_insertion_point(destructor:tensorflow.CoordinatedTask) |
1164 | SharedDtor(); |
1165 | } |
1166 | |
1167 | void CoordinatedTask::SharedDtor() { |
1168 | job_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1169 | } |
1170 | |
1171 | void CoordinatedTask::SetCachedSize(int size) const { |
1172 | _cached_size_.Set(size); |
1173 | } |
1174 | const CoordinatedTask& CoordinatedTask::default_instance() { |
1175 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CoordinatedTask_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1176 | return *internal_default_instance(); |
1177 | } |
1178 | |
1179 | |
1180 | void CoordinatedTask::Clear() { |
1181 | // @@protoc_insertion_point(message_clear_start:tensorflow.CoordinatedTask) |
1182 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1183 | // Prevent compiler warnings about cached_has_bits being unused |
1184 | (void) cached_has_bits; |
1185 | |
1186 | job_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1187 | task_id_ = 0; |
1188 | _internal_metadata_.Clear(); |
1189 | } |
1190 | |
1191 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1192 | const char* CoordinatedTask::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1193 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1194 | while (!ctx->Done(&ptr)) { |
1195 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1196 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1197 | CHK_(ptr); |
1198 | switch (tag >> 3) { |
1199 | // string job_name = 1; |
1200 | case 1: |
1201 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1202 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_job_name(), ptr, ctx, "tensorflow.CoordinatedTask.job_name" ); |
1203 | CHK_(ptr); |
1204 | } else goto handle_unusual; |
1205 | continue; |
1206 | // int32 task_id = 2; |
1207 | case 2: |
1208 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
1209 | task_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1210 | CHK_(ptr); |
1211 | } else goto handle_unusual; |
1212 | continue; |
1213 | default: { |
1214 | handle_unusual: |
1215 | if ((tag & 7) == 4 || tag == 0) { |
1216 | ctx->SetLastTag(tag); |
1217 | goto success; |
1218 | } |
1219 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1220 | CHK_(ptr != nullptr); |
1221 | continue; |
1222 | } |
1223 | } // switch |
1224 | } // while |
1225 | success: |
1226 | return ptr; |
1227 | failure: |
1228 | ptr = nullptr; |
1229 | goto success; |
1230 | #undef CHK_ |
1231 | } |
1232 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1233 | bool CoordinatedTask::MergePartialFromCodedStream( |
1234 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1235 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1236 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1237 | // @@protoc_insertion_point(parse_start:tensorflow.CoordinatedTask) |
1238 | for (;;) { |
1239 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1240 | tag = p.first; |
1241 | if (!p.second) goto handle_unusual; |
1242 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1243 | // string job_name = 1; |
1244 | case 1: { |
1245 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1246 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1247 | input, this->mutable_job_name())); |
1248 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1249 | this->job_name().data(), static_cast<int>(this->job_name().length()), |
1250 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1251 | "tensorflow.CoordinatedTask.job_name" )); |
1252 | } else { |
1253 | goto handle_unusual; |
1254 | } |
1255 | break; |
1256 | } |
1257 | |
1258 | // int32 task_id = 2; |
1259 | case 2: { |
1260 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
1261 | |
1262 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1263 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
1264 | input, &task_id_))); |
1265 | } else { |
1266 | goto handle_unusual; |
1267 | } |
1268 | break; |
1269 | } |
1270 | |
1271 | default: { |
1272 | handle_unusual: |
1273 | if (tag == 0) { |
1274 | goto success; |
1275 | } |
1276 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1277 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1278 | break; |
1279 | } |
1280 | } |
1281 | } |
1282 | success: |
1283 | // @@protoc_insertion_point(parse_success:tensorflow.CoordinatedTask) |
1284 | return true; |
1285 | failure: |
1286 | // @@protoc_insertion_point(parse_failure:tensorflow.CoordinatedTask) |
1287 | return false; |
1288 | #undef DO_ |
1289 | } |
1290 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1291 | |
1292 | void CoordinatedTask::SerializeWithCachedSizes( |
1293 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1294 | // @@protoc_insertion_point(serialize_start:tensorflow.CoordinatedTask) |
1295 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1296 | (void) cached_has_bits; |
1297 | |
1298 | // string job_name = 1; |
1299 | if (this->job_name().size() > 0) { |
1300 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1301 | this->job_name().data(), static_cast<int>(this->job_name().length()), |
1302 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1303 | "tensorflow.CoordinatedTask.job_name" ); |
1304 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1305 | 1, this->job_name(), output); |
1306 | } |
1307 | |
1308 | // int32 task_id = 2; |
1309 | if (this->task_id() != 0) { |
1310 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->task_id(), output); |
1311 | } |
1312 | |
1313 | if (_internal_metadata_.have_unknown_fields()) { |
1314 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1315 | _internal_metadata_.unknown_fields(), output); |
1316 | } |
1317 | // @@protoc_insertion_point(serialize_end:tensorflow.CoordinatedTask) |
1318 | } |
1319 | |
1320 | ::PROTOBUF_NAMESPACE_ID::uint8* CoordinatedTask::InternalSerializeWithCachedSizesToArray( |
1321 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1322 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CoordinatedTask) |
1323 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1324 | (void) cached_has_bits; |
1325 | |
1326 | // string job_name = 1; |
1327 | if (this->job_name().size() > 0) { |
1328 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1329 | this->job_name().data(), static_cast<int>(this->job_name().length()), |
1330 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1331 | "tensorflow.CoordinatedTask.job_name" ); |
1332 | target = |
1333 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1334 | 1, this->job_name(), target); |
1335 | } |
1336 | |
1337 | // int32 task_id = 2; |
1338 | if (this->task_id() != 0) { |
1339 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->task_id(), target); |
1340 | } |
1341 | |
1342 | if (_internal_metadata_.have_unknown_fields()) { |
1343 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1344 | _internal_metadata_.unknown_fields(), target); |
1345 | } |
1346 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CoordinatedTask) |
1347 | return target; |
1348 | } |
1349 | |
1350 | size_t CoordinatedTask::ByteSizeLong() const { |
1351 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CoordinatedTask) |
1352 | size_t total_size = 0; |
1353 | |
1354 | if (_internal_metadata_.have_unknown_fields()) { |
1355 | total_size += |
1356 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1357 | _internal_metadata_.unknown_fields()); |
1358 | } |
1359 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1360 | // Prevent compiler warnings about cached_has_bits being unused |
1361 | (void) cached_has_bits; |
1362 | |
1363 | // string job_name = 1; |
1364 | if (this->job_name().size() > 0) { |
1365 | total_size += 1 + |
1366 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1367 | this->job_name()); |
1368 | } |
1369 | |
1370 | // int32 task_id = 2; |
1371 | if (this->task_id() != 0) { |
1372 | total_size += 1 + |
1373 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
1374 | this->task_id()); |
1375 | } |
1376 | |
1377 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1378 | SetCachedSize(cached_size); |
1379 | return total_size; |
1380 | } |
1381 | |
1382 | void CoordinatedTask::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1383 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CoordinatedTask) |
1384 | GOOGLE_DCHECK_NE(&from, this); |
1385 | const CoordinatedTask* source = |
1386 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CoordinatedTask>( |
1387 | &from); |
1388 | if (source == nullptr) { |
1389 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CoordinatedTask) |
1390 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1391 | } else { |
1392 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CoordinatedTask) |
1393 | MergeFrom(*source); |
1394 | } |
1395 | } |
1396 | |
1397 | void CoordinatedTask::MergeFrom(const CoordinatedTask& from) { |
1398 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CoordinatedTask) |
1399 | GOOGLE_DCHECK_NE(&from, this); |
1400 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1401 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1402 | (void) cached_has_bits; |
1403 | |
1404 | if (from.job_name().size() > 0) { |
1405 | |
1406 | job_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.job_name_); |
1407 | } |
1408 | if (from.task_id() != 0) { |
1409 | set_task_id(from.task_id()); |
1410 | } |
1411 | } |
1412 | |
1413 | void CoordinatedTask::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1414 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CoordinatedTask) |
1415 | if (&from == this) return; |
1416 | Clear(); |
1417 | MergeFrom(from); |
1418 | } |
1419 | |
1420 | void CoordinatedTask::CopyFrom(const CoordinatedTask& from) { |
1421 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CoordinatedTask) |
1422 | if (&from == this) return; |
1423 | Clear(); |
1424 | MergeFrom(from); |
1425 | } |
1426 | |
1427 | bool CoordinatedTask::IsInitialized() const { |
1428 | return true; |
1429 | } |
1430 | |
1431 | void CoordinatedTask::InternalSwap(CoordinatedTask* other) { |
1432 | using std::swap; |
1433 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1434 | job_name_.Swap(&other->job_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1435 | GetArenaNoVirtual()); |
1436 | swap(task_id_, other->task_id_); |
1437 | } |
1438 | |
1439 | ::PROTOBUF_NAMESPACE_ID::Metadata CoordinatedTask::GetMetadata() const { |
1440 | return GetMetadataStatic(); |
1441 | } |
1442 | |
1443 | |
1444 | // =================================================================== |
1445 | |
1446 | void CoordinationServiceError::InitAsDefaultInstance() { |
1447 | ::tensorflow::_CoordinationServiceError_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
1448 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
1449 | } |
1450 | class CoordinationServiceError::_Internal { |
1451 | public: |
1452 | static const ::tensorflow::CoordinatedTask& source_task(const CoordinationServiceError* msg); |
1453 | }; |
1454 | |
1455 | const ::tensorflow::CoordinatedTask& |
1456 | CoordinationServiceError::_Internal::source_task(const CoordinationServiceError* msg) { |
1457 | return *msg->source_task_; |
1458 | } |
1459 | CoordinationServiceError::CoordinationServiceError() |
1460 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1461 | SharedCtor(); |
1462 | // @@protoc_insertion_point(constructor:tensorflow.CoordinationServiceError) |
1463 | } |
1464 | CoordinationServiceError::CoordinationServiceError(const CoordinationServiceError& from) |
1465 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1466 | _internal_metadata_(nullptr) { |
1467 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1468 | if (from.has_source_task()) { |
1469 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
1470 | } else { |
1471 | source_task_ = nullptr; |
1472 | } |
1473 | is_reported_error_ = from.is_reported_error_; |
1474 | // @@protoc_insertion_point(copy_constructor:tensorflow.CoordinationServiceError) |
1475 | } |
1476 | |
1477 | void CoordinationServiceError::SharedCtor() { |
1478 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1479 | ::memset(&source_task_, 0, static_cast<size_t>( |
1480 | reinterpret_cast<char*>(&is_reported_error_) - |
1481 | reinterpret_cast<char*>(&source_task_)) + sizeof(is_reported_error_)); |
1482 | } |
1483 | |
1484 | CoordinationServiceError::~CoordinationServiceError() { |
1485 | // @@protoc_insertion_point(destructor:tensorflow.CoordinationServiceError) |
1486 | SharedDtor(); |
1487 | } |
1488 | |
1489 | void CoordinationServiceError::SharedDtor() { |
1490 | if (this != internal_default_instance()) delete source_task_; |
1491 | } |
1492 | |
1493 | void CoordinationServiceError::SetCachedSize(int size) const { |
1494 | _cached_size_.Set(size); |
1495 | } |
1496 | const CoordinationServiceError& CoordinationServiceError::default_instance() { |
1497 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CoordinationServiceError_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1498 | return *internal_default_instance(); |
1499 | } |
1500 | |
1501 | |
1502 | void CoordinationServiceError::Clear() { |
1503 | // @@protoc_insertion_point(message_clear_start:tensorflow.CoordinationServiceError) |
1504 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1505 | // Prevent compiler warnings about cached_has_bits being unused |
1506 | (void) cached_has_bits; |
1507 | |
1508 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
1509 | delete source_task_; |
1510 | } |
1511 | source_task_ = nullptr; |
1512 | is_reported_error_ = false; |
1513 | _internal_metadata_.Clear(); |
1514 | } |
1515 | |
1516 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1517 | const char* CoordinationServiceError::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1518 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1519 | while (!ctx->Done(&ptr)) { |
1520 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1521 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1522 | CHK_(ptr); |
1523 | switch (tag >> 3) { |
1524 | // bool is_reported_error = 3; |
1525 | case 3: |
1526 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
1527 | is_reported_error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1528 | CHK_(ptr); |
1529 | } else goto handle_unusual; |
1530 | continue; |
1531 | // .tensorflow.CoordinatedTask source_task = 4; |
1532 | case 4: |
1533 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
1534 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
1535 | CHK_(ptr); |
1536 | } else goto handle_unusual; |
1537 | continue; |
1538 | default: { |
1539 | handle_unusual: |
1540 | if ((tag & 7) == 4 || tag == 0) { |
1541 | ctx->SetLastTag(tag); |
1542 | goto success; |
1543 | } |
1544 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1545 | CHK_(ptr != nullptr); |
1546 | continue; |
1547 | } |
1548 | } // switch |
1549 | } // while |
1550 | success: |
1551 | return ptr; |
1552 | failure: |
1553 | ptr = nullptr; |
1554 | goto success; |
1555 | #undef CHK_ |
1556 | } |
1557 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1558 | bool CoordinationServiceError::MergePartialFromCodedStream( |
1559 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1560 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1561 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1562 | // @@protoc_insertion_point(parse_start:tensorflow.CoordinationServiceError) |
1563 | for (;;) { |
1564 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1565 | tag = p.first; |
1566 | if (!p.second) goto handle_unusual; |
1567 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1568 | // bool is_reported_error = 3; |
1569 | case 3: { |
1570 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
1571 | |
1572 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1573 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
1574 | input, &is_reported_error_))); |
1575 | } else { |
1576 | goto handle_unusual; |
1577 | } |
1578 | break; |
1579 | } |
1580 | |
1581 | // .tensorflow.CoordinatedTask source_task = 4; |
1582 | case 4: { |
1583 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
1584 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1585 | input, mutable_source_task())); |
1586 | } else { |
1587 | goto handle_unusual; |
1588 | } |
1589 | break; |
1590 | } |
1591 | |
1592 | default: { |
1593 | handle_unusual: |
1594 | if (tag == 0) { |
1595 | goto success; |
1596 | } |
1597 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1598 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1599 | break; |
1600 | } |
1601 | } |
1602 | } |
1603 | success: |
1604 | // @@protoc_insertion_point(parse_success:tensorflow.CoordinationServiceError) |
1605 | return true; |
1606 | failure: |
1607 | // @@protoc_insertion_point(parse_failure:tensorflow.CoordinationServiceError) |
1608 | return false; |
1609 | #undef DO_ |
1610 | } |
1611 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1612 | |
1613 | void CoordinationServiceError::SerializeWithCachedSizes( |
1614 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1615 | // @@protoc_insertion_point(serialize_start:tensorflow.CoordinationServiceError) |
1616 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1617 | (void) cached_has_bits; |
1618 | |
1619 | // bool is_reported_error = 3; |
1620 | if (this->is_reported_error() != 0) { |
1621 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->is_reported_error(), output); |
1622 | } |
1623 | |
1624 | // .tensorflow.CoordinatedTask source_task = 4; |
1625 | if (this->has_source_task()) { |
1626 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1627 | 4, _Internal::source_task(this), output); |
1628 | } |
1629 | |
1630 | if (_internal_metadata_.have_unknown_fields()) { |
1631 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1632 | _internal_metadata_.unknown_fields(), output); |
1633 | } |
1634 | // @@protoc_insertion_point(serialize_end:tensorflow.CoordinationServiceError) |
1635 | } |
1636 | |
1637 | ::PROTOBUF_NAMESPACE_ID::uint8* CoordinationServiceError::InternalSerializeWithCachedSizesToArray( |
1638 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1639 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CoordinationServiceError) |
1640 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1641 | (void) cached_has_bits; |
1642 | |
1643 | // bool is_reported_error = 3; |
1644 | if (this->is_reported_error() != 0) { |
1645 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->is_reported_error(), target); |
1646 | } |
1647 | |
1648 | // .tensorflow.CoordinatedTask source_task = 4; |
1649 | if (this->has_source_task()) { |
1650 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1651 | InternalWriteMessageToArray( |
1652 | 4, _Internal::source_task(this), target); |
1653 | } |
1654 | |
1655 | if (_internal_metadata_.have_unknown_fields()) { |
1656 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1657 | _internal_metadata_.unknown_fields(), target); |
1658 | } |
1659 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CoordinationServiceError) |
1660 | return target; |
1661 | } |
1662 | |
1663 | size_t CoordinationServiceError::ByteSizeLong() const { |
1664 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CoordinationServiceError) |
1665 | size_t total_size = 0; |
1666 | |
1667 | if (_internal_metadata_.have_unknown_fields()) { |
1668 | total_size += |
1669 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1670 | _internal_metadata_.unknown_fields()); |
1671 | } |
1672 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1673 | // Prevent compiler warnings about cached_has_bits being unused |
1674 | (void) cached_has_bits; |
1675 | |
1676 | // .tensorflow.CoordinatedTask source_task = 4; |
1677 | if (this->has_source_task()) { |
1678 | total_size += 1 + |
1679 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1680 | *source_task_); |
1681 | } |
1682 | |
1683 | // bool is_reported_error = 3; |
1684 | if (this->is_reported_error() != 0) { |
1685 | total_size += 1 + 1; |
1686 | } |
1687 | |
1688 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1689 | SetCachedSize(cached_size); |
1690 | return total_size; |
1691 | } |
1692 | |
1693 | void CoordinationServiceError::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1694 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CoordinationServiceError) |
1695 | GOOGLE_DCHECK_NE(&from, this); |
1696 | const CoordinationServiceError* source = |
1697 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CoordinationServiceError>( |
1698 | &from); |
1699 | if (source == nullptr) { |
1700 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CoordinationServiceError) |
1701 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1702 | } else { |
1703 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CoordinationServiceError) |
1704 | MergeFrom(*source); |
1705 | } |
1706 | } |
1707 | |
1708 | void CoordinationServiceError::MergeFrom(const CoordinationServiceError& from) { |
1709 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CoordinationServiceError) |
1710 | GOOGLE_DCHECK_NE(&from, this); |
1711 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1712 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1713 | (void) cached_has_bits; |
1714 | |
1715 | if (from.has_source_task()) { |
1716 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
1717 | } |
1718 | if (from.is_reported_error() != 0) { |
1719 | set_is_reported_error(from.is_reported_error()); |
1720 | } |
1721 | } |
1722 | |
1723 | void CoordinationServiceError::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1724 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CoordinationServiceError) |
1725 | if (&from == this) return; |
1726 | Clear(); |
1727 | MergeFrom(from); |
1728 | } |
1729 | |
1730 | void CoordinationServiceError::CopyFrom(const CoordinationServiceError& from) { |
1731 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CoordinationServiceError) |
1732 | if (&from == this) return; |
1733 | Clear(); |
1734 | MergeFrom(from); |
1735 | } |
1736 | |
1737 | bool CoordinationServiceError::IsInitialized() const { |
1738 | return true; |
1739 | } |
1740 | |
1741 | void CoordinationServiceError::InternalSwap(CoordinationServiceError* other) { |
1742 | using std::swap; |
1743 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1744 | swap(source_task_, other->source_task_); |
1745 | swap(is_reported_error_, other->is_reported_error_); |
1746 | } |
1747 | |
1748 | ::PROTOBUF_NAMESPACE_ID::Metadata CoordinationServiceError::GetMetadata() const { |
1749 | return GetMetadataStatic(); |
1750 | } |
1751 | |
1752 | |
1753 | // =================================================================== |
1754 | |
1755 | void TfDeviceList::InitAsDefaultInstance() { |
1756 | } |
1757 | class TfDeviceList::_Internal { |
1758 | public: |
1759 | }; |
1760 | |
1761 | void TfDeviceList::clear_devices() { |
1762 | devices_.Clear(); |
1763 | } |
1764 | TfDeviceList::TfDeviceList() |
1765 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1766 | SharedCtor(); |
1767 | // @@protoc_insertion_point(constructor:tensorflow.TfDeviceList) |
1768 | } |
1769 | TfDeviceList::TfDeviceList(const TfDeviceList& from) |
1770 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1771 | _internal_metadata_(nullptr), |
1772 | devices_(from.devices_) { |
1773 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1774 | // @@protoc_insertion_point(copy_constructor:tensorflow.TfDeviceList) |
1775 | } |
1776 | |
1777 | void TfDeviceList::SharedCtor() { |
1778 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1779 | } |
1780 | |
1781 | TfDeviceList::~TfDeviceList() { |
1782 | // @@protoc_insertion_point(destructor:tensorflow.TfDeviceList) |
1783 | SharedDtor(); |
1784 | } |
1785 | |
1786 | void TfDeviceList::SharedDtor() { |
1787 | } |
1788 | |
1789 | void TfDeviceList::SetCachedSize(int size) const { |
1790 | _cached_size_.Set(size); |
1791 | } |
1792 | const TfDeviceList& TfDeviceList::default_instance() { |
1793 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TfDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
1794 | return *internal_default_instance(); |
1795 | } |
1796 | |
1797 | |
1798 | void TfDeviceList::Clear() { |
1799 | // @@protoc_insertion_point(message_clear_start:tensorflow.TfDeviceList) |
1800 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1801 | // Prevent compiler warnings about cached_has_bits being unused |
1802 | (void) cached_has_bits; |
1803 | |
1804 | devices_.Clear(); |
1805 | _internal_metadata_.Clear(); |
1806 | } |
1807 | |
1808 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1809 | const char* TfDeviceList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1810 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1811 | while (!ctx->Done(&ptr)) { |
1812 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1813 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1814 | CHK_(ptr); |
1815 | switch (tag >> 3) { |
1816 | // repeated .tensorflow.DeviceAttributes devices = 1; |
1817 | case 1: |
1818 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1819 | ptr -= 1; |
1820 | do { |
1821 | ptr += 1; |
1822 | ptr = ctx->ParseMessage(add_devices(), ptr); |
1823 | CHK_(ptr); |
1824 | if (!ctx->DataAvailable(ptr)) break; |
1825 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
1826 | } else goto handle_unusual; |
1827 | continue; |
1828 | default: { |
1829 | handle_unusual: |
1830 | if ((tag & 7) == 4 || tag == 0) { |
1831 | ctx->SetLastTag(tag); |
1832 | goto success; |
1833 | } |
1834 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1835 | CHK_(ptr != nullptr); |
1836 | continue; |
1837 | } |
1838 | } // switch |
1839 | } // while |
1840 | success: |
1841 | return ptr; |
1842 | failure: |
1843 | ptr = nullptr; |
1844 | goto success; |
1845 | #undef CHK_ |
1846 | } |
1847 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1848 | bool TfDeviceList::MergePartialFromCodedStream( |
1849 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1850 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1851 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1852 | // @@protoc_insertion_point(parse_start:tensorflow.TfDeviceList) |
1853 | for (;;) { |
1854 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1855 | tag = p.first; |
1856 | if (!p.second) goto handle_unusual; |
1857 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1858 | // repeated .tensorflow.DeviceAttributes devices = 1; |
1859 | case 1: { |
1860 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1861 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1862 | input, add_devices())); |
1863 | } else { |
1864 | goto handle_unusual; |
1865 | } |
1866 | break; |
1867 | } |
1868 | |
1869 | default: { |
1870 | handle_unusual: |
1871 | if (tag == 0) { |
1872 | goto success; |
1873 | } |
1874 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1875 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1876 | break; |
1877 | } |
1878 | } |
1879 | } |
1880 | success: |
1881 | // @@protoc_insertion_point(parse_success:tensorflow.TfDeviceList) |
1882 | return true; |
1883 | failure: |
1884 | // @@protoc_insertion_point(parse_failure:tensorflow.TfDeviceList) |
1885 | return false; |
1886 | #undef DO_ |
1887 | } |
1888 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1889 | |
1890 | void TfDeviceList::SerializeWithCachedSizes( |
1891 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1892 | // @@protoc_insertion_point(serialize_start:tensorflow.TfDeviceList) |
1893 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1894 | (void) cached_has_bits; |
1895 | |
1896 | // repeated .tensorflow.DeviceAttributes devices = 1; |
1897 | for (unsigned int i = 0, |
1898 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
1899 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1900 | 1, |
1901 | this->devices(static_cast<int>(i)), |
1902 | output); |
1903 | } |
1904 | |
1905 | if (_internal_metadata_.have_unknown_fields()) { |
1906 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1907 | _internal_metadata_.unknown_fields(), output); |
1908 | } |
1909 | // @@protoc_insertion_point(serialize_end:tensorflow.TfDeviceList) |
1910 | } |
1911 | |
1912 | ::PROTOBUF_NAMESPACE_ID::uint8* TfDeviceList::InternalSerializeWithCachedSizesToArray( |
1913 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1914 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TfDeviceList) |
1915 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1916 | (void) cached_has_bits; |
1917 | |
1918 | // repeated .tensorflow.DeviceAttributes devices = 1; |
1919 | for (unsigned int i = 0, |
1920 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
1921 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1922 | InternalWriteMessageToArray( |
1923 | 1, this->devices(static_cast<int>(i)), target); |
1924 | } |
1925 | |
1926 | if (_internal_metadata_.have_unknown_fields()) { |
1927 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1928 | _internal_metadata_.unknown_fields(), target); |
1929 | } |
1930 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TfDeviceList) |
1931 | return target; |
1932 | } |
1933 | |
1934 | size_t TfDeviceList::ByteSizeLong() const { |
1935 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TfDeviceList) |
1936 | size_t total_size = 0; |
1937 | |
1938 | if (_internal_metadata_.have_unknown_fields()) { |
1939 | total_size += |
1940 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1941 | _internal_metadata_.unknown_fields()); |
1942 | } |
1943 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1944 | // Prevent compiler warnings about cached_has_bits being unused |
1945 | (void) cached_has_bits; |
1946 | |
1947 | // repeated .tensorflow.DeviceAttributes devices = 1; |
1948 | { |
1949 | unsigned int count = static_cast<unsigned int>(this->devices_size()); |
1950 | total_size += 1UL * count; |
1951 | for (unsigned int i = 0; i < count; i++) { |
1952 | total_size += |
1953 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1954 | this->devices(static_cast<int>(i))); |
1955 | } |
1956 | } |
1957 | |
1958 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1959 | SetCachedSize(cached_size); |
1960 | return total_size; |
1961 | } |
1962 | |
1963 | void TfDeviceList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1964 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TfDeviceList) |
1965 | GOOGLE_DCHECK_NE(&from, this); |
1966 | const TfDeviceList* source = |
1967 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TfDeviceList>( |
1968 | &from); |
1969 | if (source == nullptr) { |
1970 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TfDeviceList) |
1971 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1972 | } else { |
1973 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TfDeviceList) |
1974 | MergeFrom(*source); |
1975 | } |
1976 | } |
1977 | |
1978 | void TfDeviceList::MergeFrom(const TfDeviceList& from) { |
1979 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TfDeviceList) |
1980 | GOOGLE_DCHECK_NE(&from, this); |
1981 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1982 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1983 | (void) cached_has_bits; |
1984 | |
1985 | devices_.MergeFrom(from.devices_); |
1986 | } |
1987 | |
1988 | void TfDeviceList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1989 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TfDeviceList) |
1990 | if (&from == this) return; |
1991 | Clear(); |
1992 | MergeFrom(from); |
1993 | } |
1994 | |
1995 | void TfDeviceList::CopyFrom(const TfDeviceList& from) { |
1996 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TfDeviceList) |
1997 | if (&from == this) return; |
1998 | Clear(); |
1999 | MergeFrom(from); |
2000 | } |
2001 | |
2002 | bool TfDeviceList::IsInitialized() const { |
2003 | return true; |
2004 | } |
2005 | |
2006 | void TfDeviceList::InternalSwap(TfDeviceList* other) { |
2007 | using std::swap; |
2008 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2009 | CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_)); |
2010 | } |
2011 | |
2012 | ::PROTOBUF_NAMESPACE_ID::Metadata TfDeviceList::GetMetadata() const { |
2013 | return GetMetadataStatic(); |
2014 | } |
2015 | |
2016 | |
2017 | // =================================================================== |
2018 | |
2019 | void XlaDeviceList::InitAsDefaultInstance() { |
2020 | ::tensorflow::_XlaDeviceList_default_instance_._instance.get_mutable()->devices_ = const_cast< ::xla::GlobalTopologyProto*>( |
2021 | ::xla::GlobalTopologyProto::internal_default_instance()); |
2022 | } |
2023 | class XlaDeviceList::_Internal { |
2024 | public: |
2025 | static const ::xla::GlobalTopologyProto& devices(const XlaDeviceList* msg); |
2026 | }; |
2027 | |
2028 | const ::xla::GlobalTopologyProto& |
2029 | XlaDeviceList::_Internal::devices(const XlaDeviceList* msg) { |
2030 | return *msg->devices_; |
2031 | } |
2032 | void XlaDeviceList::clear_devices() { |
2033 | if (GetArenaNoVirtual() == nullptr && devices_ != nullptr) { |
2034 | delete devices_; |
2035 | } |
2036 | devices_ = nullptr; |
2037 | } |
2038 | XlaDeviceList::XlaDeviceList() |
2039 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2040 | SharedCtor(); |
2041 | // @@protoc_insertion_point(constructor:tensorflow.XlaDeviceList) |
2042 | } |
2043 | XlaDeviceList::XlaDeviceList(const XlaDeviceList& from) |
2044 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2045 | _internal_metadata_(nullptr) { |
2046 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2047 | if (from.has_devices()) { |
2048 | devices_ = new ::xla::GlobalTopologyProto(*from.devices_); |
2049 | } else { |
2050 | devices_ = nullptr; |
2051 | } |
2052 | // @@protoc_insertion_point(copy_constructor:tensorflow.XlaDeviceList) |
2053 | } |
2054 | |
2055 | void XlaDeviceList::SharedCtor() { |
2056 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2057 | devices_ = nullptr; |
2058 | } |
2059 | |
2060 | XlaDeviceList::~XlaDeviceList() { |
2061 | // @@protoc_insertion_point(destructor:tensorflow.XlaDeviceList) |
2062 | SharedDtor(); |
2063 | } |
2064 | |
2065 | void XlaDeviceList::SharedDtor() { |
2066 | if (this != internal_default_instance()) delete devices_; |
2067 | } |
2068 | |
2069 | void XlaDeviceList::SetCachedSize(int size) const { |
2070 | _cached_size_.Set(size); |
2071 | } |
2072 | const XlaDeviceList& XlaDeviceList::default_instance() { |
2073 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_XlaDeviceList_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2074 | return *internal_default_instance(); |
2075 | } |
2076 | |
2077 | |
2078 | void XlaDeviceList::Clear() { |
2079 | // @@protoc_insertion_point(message_clear_start:tensorflow.XlaDeviceList) |
2080 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2081 | // Prevent compiler warnings about cached_has_bits being unused |
2082 | (void) cached_has_bits; |
2083 | |
2084 | if (GetArenaNoVirtual() == nullptr && devices_ != nullptr) { |
2085 | delete devices_; |
2086 | } |
2087 | devices_ = nullptr; |
2088 | _internal_metadata_.Clear(); |
2089 | } |
2090 | |
2091 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2092 | const char* XlaDeviceList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2093 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2094 | while (!ctx->Done(&ptr)) { |
2095 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2096 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2097 | CHK_(ptr); |
2098 | switch (tag >> 3) { |
2099 | // .xla.GlobalTopologyProto devices = 1; |
2100 | case 1: |
2101 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2102 | ptr = ctx->ParseMessage(mutable_devices(), ptr); |
2103 | CHK_(ptr); |
2104 | } else goto handle_unusual; |
2105 | continue; |
2106 | default: { |
2107 | handle_unusual: |
2108 | if ((tag & 7) == 4 || tag == 0) { |
2109 | ctx->SetLastTag(tag); |
2110 | goto success; |
2111 | } |
2112 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2113 | CHK_(ptr != nullptr); |
2114 | continue; |
2115 | } |
2116 | } // switch |
2117 | } // while |
2118 | success: |
2119 | return ptr; |
2120 | failure: |
2121 | ptr = nullptr; |
2122 | goto success; |
2123 | #undef CHK_ |
2124 | } |
2125 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2126 | bool XlaDeviceList::MergePartialFromCodedStream( |
2127 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2128 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2129 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2130 | // @@protoc_insertion_point(parse_start:tensorflow.XlaDeviceList) |
2131 | for (;;) { |
2132 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2133 | tag = p.first; |
2134 | if (!p.second) goto handle_unusual; |
2135 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2136 | // .xla.GlobalTopologyProto devices = 1; |
2137 | case 1: { |
2138 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2139 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2140 | input, mutable_devices())); |
2141 | } else { |
2142 | goto handle_unusual; |
2143 | } |
2144 | break; |
2145 | } |
2146 | |
2147 | default: { |
2148 | handle_unusual: |
2149 | if (tag == 0) { |
2150 | goto success; |
2151 | } |
2152 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2153 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2154 | break; |
2155 | } |
2156 | } |
2157 | } |
2158 | success: |
2159 | // @@protoc_insertion_point(parse_success:tensorflow.XlaDeviceList) |
2160 | return true; |
2161 | failure: |
2162 | // @@protoc_insertion_point(parse_failure:tensorflow.XlaDeviceList) |
2163 | return false; |
2164 | #undef DO_ |
2165 | } |
2166 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2167 | |
2168 | void XlaDeviceList::SerializeWithCachedSizes( |
2169 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2170 | // @@protoc_insertion_point(serialize_start:tensorflow.XlaDeviceList) |
2171 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2172 | (void) cached_has_bits; |
2173 | |
2174 | // .xla.GlobalTopologyProto devices = 1; |
2175 | if (this->has_devices()) { |
2176 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2177 | 1, _Internal::devices(this), output); |
2178 | } |
2179 | |
2180 | if (_internal_metadata_.have_unknown_fields()) { |
2181 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2182 | _internal_metadata_.unknown_fields(), output); |
2183 | } |
2184 | // @@protoc_insertion_point(serialize_end:tensorflow.XlaDeviceList) |
2185 | } |
2186 | |
2187 | ::PROTOBUF_NAMESPACE_ID::uint8* XlaDeviceList::InternalSerializeWithCachedSizesToArray( |
2188 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2189 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.XlaDeviceList) |
2190 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2191 | (void) cached_has_bits; |
2192 | |
2193 | // .xla.GlobalTopologyProto devices = 1; |
2194 | if (this->has_devices()) { |
2195 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2196 | InternalWriteMessageToArray( |
2197 | 1, _Internal::devices(this), target); |
2198 | } |
2199 | |
2200 | if (_internal_metadata_.have_unknown_fields()) { |
2201 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2202 | _internal_metadata_.unknown_fields(), target); |
2203 | } |
2204 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.XlaDeviceList) |
2205 | return target; |
2206 | } |
2207 | |
2208 | size_t XlaDeviceList::ByteSizeLong() const { |
2209 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.XlaDeviceList) |
2210 | size_t total_size = 0; |
2211 | |
2212 | if (_internal_metadata_.have_unknown_fields()) { |
2213 | total_size += |
2214 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2215 | _internal_metadata_.unknown_fields()); |
2216 | } |
2217 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2218 | // Prevent compiler warnings about cached_has_bits being unused |
2219 | (void) cached_has_bits; |
2220 | |
2221 | // .xla.GlobalTopologyProto devices = 1; |
2222 | if (this->has_devices()) { |
2223 | total_size += 1 + |
2224 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2225 | *devices_); |
2226 | } |
2227 | |
2228 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2229 | SetCachedSize(cached_size); |
2230 | return total_size; |
2231 | } |
2232 | |
2233 | void XlaDeviceList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2234 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.XlaDeviceList) |
2235 | GOOGLE_DCHECK_NE(&from, this); |
2236 | const XlaDeviceList* source = |
2237 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<XlaDeviceList>( |
2238 | &from); |
2239 | if (source == nullptr) { |
2240 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.XlaDeviceList) |
2241 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2242 | } else { |
2243 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.XlaDeviceList) |
2244 | MergeFrom(*source); |
2245 | } |
2246 | } |
2247 | |
2248 | void XlaDeviceList::MergeFrom(const XlaDeviceList& from) { |
2249 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.XlaDeviceList) |
2250 | GOOGLE_DCHECK_NE(&from, this); |
2251 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2252 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2253 | (void) cached_has_bits; |
2254 | |
2255 | if (from.has_devices()) { |
2256 | mutable_devices()->::xla::GlobalTopologyProto::MergeFrom(from.devices()); |
2257 | } |
2258 | } |
2259 | |
2260 | void XlaDeviceList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2261 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.XlaDeviceList) |
2262 | if (&from == this) return; |
2263 | Clear(); |
2264 | MergeFrom(from); |
2265 | } |
2266 | |
2267 | void XlaDeviceList::CopyFrom(const XlaDeviceList& from) { |
2268 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.XlaDeviceList) |
2269 | if (&from == this) return; |
2270 | Clear(); |
2271 | MergeFrom(from); |
2272 | } |
2273 | |
2274 | bool XlaDeviceList::IsInitialized() const { |
2275 | return true; |
2276 | } |
2277 | |
2278 | void XlaDeviceList::InternalSwap(XlaDeviceList* other) { |
2279 | using std::swap; |
2280 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2281 | swap(devices_, other->devices_); |
2282 | } |
2283 | |
2284 | ::PROTOBUF_NAMESPACE_ID::Metadata XlaDeviceList::GetMetadata() const { |
2285 | return GetMetadataStatic(); |
2286 | } |
2287 | |
2288 | |
2289 | // =================================================================== |
2290 | |
2291 | void CoordinationServiceDeviceInfo::InitAsDefaultInstance() { |
2292 | ::tensorflow::_CoordinationServiceDeviceInfo_default_instance_.tf_ = const_cast< ::tensorflow::TfDeviceList*>( |
2293 | ::tensorflow::TfDeviceList::internal_default_instance()); |
2294 | ::tensorflow::_CoordinationServiceDeviceInfo_default_instance_.xla_ = const_cast< ::tensorflow::XlaDeviceList*>( |
2295 | ::tensorflow::XlaDeviceList::internal_default_instance()); |
2296 | } |
2297 | class CoordinationServiceDeviceInfo::_Internal { |
2298 | public: |
2299 | static const ::tensorflow::TfDeviceList& tf(const CoordinationServiceDeviceInfo* msg); |
2300 | static const ::tensorflow::XlaDeviceList& xla(const CoordinationServiceDeviceInfo* msg); |
2301 | }; |
2302 | |
2303 | const ::tensorflow::TfDeviceList& |
2304 | CoordinationServiceDeviceInfo::_Internal::tf(const CoordinationServiceDeviceInfo* msg) { |
2305 | return *msg->type_.tf_; |
2306 | } |
2307 | const ::tensorflow::XlaDeviceList& |
2308 | CoordinationServiceDeviceInfo::_Internal::xla(const CoordinationServiceDeviceInfo* msg) { |
2309 | return *msg->type_.xla_; |
2310 | } |
2311 | void CoordinationServiceDeviceInfo::set_allocated_tf(::tensorflow::TfDeviceList* tf) { |
2312 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2313 | clear_type(); |
2314 | if (tf) { |
2315 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2316 | if (message_arena != submessage_arena) { |
2317 | tf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2318 | message_arena, tf, submessage_arena); |
2319 | } |
2320 | set_has_tf(); |
2321 | type_.tf_ = tf; |
2322 | } |
2323 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CoordinationServiceDeviceInfo.tf) |
2324 | } |
2325 | void CoordinationServiceDeviceInfo::set_allocated_xla(::tensorflow::XlaDeviceList* xla) { |
2326 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2327 | clear_type(); |
2328 | if (xla) { |
2329 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2330 | if (message_arena != submessage_arena) { |
2331 | xla = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2332 | message_arena, xla, submessage_arena); |
2333 | } |
2334 | set_has_xla(); |
2335 | type_.xla_ = xla; |
2336 | } |
2337 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CoordinationServiceDeviceInfo.xla) |
2338 | } |
2339 | CoordinationServiceDeviceInfo::CoordinationServiceDeviceInfo() |
2340 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2341 | SharedCtor(); |
2342 | // @@protoc_insertion_point(constructor:tensorflow.CoordinationServiceDeviceInfo) |
2343 | } |
2344 | CoordinationServiceDeviceInfo::CoordinationServiceDeviceInfo(const CoordinationServiceDeviceInfo& from) |
2345 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2346 | _internal_metadata_(nullptr) { |
2347 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2348 | clear_has_type(); |
2349 | switch (from.type_case()) { |
2350 | case kTf: { |
2351 | mutable_tf()->::tensorflow::TfDeviceList::MergeFrom(from.tf()); |
2352 | break; |
2353 | } |
2354 | case kXla: { |
2355 | mutable_xla()->::tensorflow::XlaDeviceList::MergeFrom(from.xla()); |
2356 | break; |
2357 | } |
2358 | case TYPE_NOT_SET: { |
2359 | break; |
2360 | } |
2361 | } |
2362 | // @@protoc_insertion_point(copy_constructor:tensorflow.CoordinationServiceDeviceInfo) |
2363 | } |
2364 | |
2365 | void CoordinationServiceDeviceInfo::SharedCtor() { |
2366 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2367 | clear_has_type(); |
2368 | } |
2369 | |
2370 | CoordinationServiceDeviceInfo::~CoordinationServiceDeviceInfo() { |
2371 | // @@protoc_insertion_point(destructor:tensorflow.CoordinationServiceDeviceInfo) |
2372 | SharedDtor(); |
2373 | } |
2374 | |
2375 | void CoordinationServiceDeviceInfo::SharedDtor() { |
2376 | if (has_type()) { |
2377 | clear_type(); |
2378 | } |
2379 | } |
2380 | |
2381 | void CoordinationServiceDeviceInfo::SetCachedSize(int size) const { |
2382 | _cached_size_.Set(size); |
2383 | } |
2384 | const CoordinationServiceDeviceInfo& CoordinationServiceDeviceInfo::default_instance() { |
2385 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CoordinationServiceDeviceInfo_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2386 | return *internal_default_instance(); |
2387 | } |
2388 | |
2389 | |
2390 | void CoordinationServiceDeviceInfo::clear_type() { |
2391 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.CoordinationServiceDeviceInfo) |
2392 | switch (type_case()) { |
2393 | case kTf: { |
2394 | delete type_.tf_; |
2395 | break; |
2396 | } |
2397 | case kXla: { |
2398 | delete type_.xla_; |
2399 | break; |
2400 | } |
2401 | case TYPE_NOT_SET: { |
2402 | break; |
2403 | } |
2404 | } |
2405 | _oneof_case_[0] = TYPE_NOT_SET; |
2406 | } |
2407 | |
2408 | |
2409 | void CoordinationServiceDeviceInfo::Clear() { |
2410 | // @@protoc_insertion_point(message_clear_start:tensorflow.CoordinationServiceDeviceInfo) |
2411 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2412 | // Prevent compiler warnings about cached_has_bits being unused |
2413 | (void) cached_has_bits; |
2414 | |
2415 | clear_type(); |
2416 | _internal_metadata_.Clear(); |
2417 | } |
2418 | |
2419 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2420 | const char* CoordinationServiceDeviceInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2421 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2422 | while (!ctx->Done(&ptr)) { |
2423 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2424 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2425 | CHK_(ptr); |
2426 | switch (tag >> 3) { |
2427 | // .tensorflow.TfDeviceList tf = 1; |
2428 | case 1: |
2429 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2430 | ptr = ctx->ParseMessage(mutable_tf(), ptr); |
2431 | CHK_(ptr); |
2432 | } else goto handle_unusual; |
2433 | continue; |
2434 | // .tensorflow.XlaDeviceList xla = 2; |
2435 | case 2: |
2436 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2437 | ptr = ctx->ParseMessage(mutable_xla(), ptr); |
2438 | CHK_(ptr); |
2439 | } else goto handle_unusual; |
2440 | continue; |
2441 | default: { |
2442 | handle_unusual: |
2443 | if ((tag & 7) == 4 || tag == 0) { |
2444 | ctx->SetLastTag(tag); |
2445 | goto success; |
2446 | } |
2447 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2448 | CHK_(ptr != nullptr); |
2449 | continue; |
2450 | } |
2451 | } // switch |
2452 | } // while |
2453 | success: |
2454 | return ptr; |
2455 | failure: |
2456 | ptr = nullptr; |
2457 | goto success; |
2458 | #undef CHK_ |
2459 | } |
2460 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2461 | bool CoordinationServiceDeviceInfo::MergePartialFromCodedStream( |
2462 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2463 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2464 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2465 | // @@protoc_insertion_point(parse_start:tensorflow.CoordinationServiceDeviceInfo) |
2466 | for (;;) { |
2467 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2468 | tag = p.first; |
2469 | if (!p.second) goto handle_unusual; |
2470 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2471 | // .tensorflow.TfDeviceList tf = 1; |
2472 | case 1: { |
2473 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2474 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2475 | input, mutable_tf())); |
2476 | } else { |
2477 | goto handle_unusual; |
2478 | } |
2479 | break; |
2480 | } |
2481 | |
2482 | // .tensorflow.XlaDeviceList xla = 2; |
2483 | case 2: { |
2484 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
2485 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2486 | input, mutable_xla())); |
2487 | } else { |
2488 | goto handle_unusual; |
2489 | } |
2490 | break; |
2491 | } |
2492 | |
2493 | default: { |
2494 | handle_unusual: |
2495 | if (tag == 0) { |
2496 | goto success; |
2497 | } |
2498 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2499 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2500 | break; |
2501 | } |
2502 | } |
2503 | } |
2504 | success: |
2505 | // @@protoc_insertion_point(parse_success:tensorflow.CoordinationServiceDeviceInfo) |
2506 | return true; |
2507 | failure: |
2508 | // @@protoc_insertion_point(parse_failure:tensorflow.CoordinationServiceDeviceInfo) |
2509 | return false; |
2510 | #undef DO_ |
2511 | } |
2512 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2513 | |
2514 | void CoordinationServiceDeviceInfo::SerializeWithCachedSizes( |
2515 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2516 | // @@protoc_insertion_point(serialize_start:tensorflow.CoordinationServiceDeviceInfo) |
2517 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2518 | (void) cached_has_bits; |
2519 | |
2520 | // .tensorflow.TfDeviceList tf = 1; |
2521 | if (has_tf()) { |
2522 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2523 | 1, _Internal::tf(this), output); |
2524 | } |
2525 | |
2526 | // .tensorflow.XlaDeviceList xla = 2; |
2527 | if (has_xla()) { |
2528 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2529 | 2, _Internal::xla(this), output); |
2530 | } |
2531 | |
2532 | if (_internal_metadata_.have_unknown_fields()) { |
2533 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2534 | _internal_metadata_.unknown_fields(), output); |
2535 | } |
2536 | // @@protoc_insertion_point(serialize_end:tensorflow.CoordinationServiceDeviceInfo) |
2537 | } |
2538 | |
2539 | ::PROTOBUF_NAMESPACE_ID::uint8* CoordinationServiceDeviceInfo::InternalSerializeWithCachedSizesToArray( |
2540 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2541 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CoordinationServiceDeviceInfo) |
2542 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2543 | (void) cached_has_bits; |
2544 | |
2545 | // .tensorflow.TfDeviceList tf = 1; |
2546 | if (has_tf()) { |
2547 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2548 | InternalWriteMessageToArray( |
2549 | 1, _Internal::tf(this), target); |
2550 | } |
2551 | |
2552 | // .tensorflow.XlaDeviceList xla = 2; |
2553 | if (has_xla()) { |
2554 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2555 | InternalWriteMessageToArray( |
2556 | 2, _Internal::xla(this), target); |
2557 | } |
2558 | |
2559 | if (_internal_metadata_.have_unknown_fields()) { |
2560 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2561 | _internal_metadata_.unknown_fields(), target); |
2562 | } |
2563 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CoordinationServiceDeviceInfo) |
2564 | return target; |
2565 | } |
2566 | |
2567 | size_t CoordinationServiceDeviceInfo::ByteSizeLong() const { |
2568 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CoordinationServiceDeviceInfo) |
2569 | size_t total_size = 0; |
2570 | |
2571 | if (_internal_metadata_.have_unknown_fields()) { |
2572 | total_size += |
2573 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2574 | _internal_metadata_.unknown_fields()); |
2575 | } |
2576 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2577 | // Prevent compiler warnings about cached_has_bits being unused |
2578 | (void) cached_has_bits; |
2579 | |
2580 | switch (type_case()) { |
2581 | // .tensorflow.TfDeviceList tf = 1; |
2582 | case kTf: { |
2583 | total_size += 1 + |
2584 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2585 | *type_.tf_); |
2586 | break; |
2587 | } |
2588 | // .tensorflow.XlaDeviceList xla = 2; |
2589 | case kXla: { |
2590 | total_size += 1 + |
2591 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2592 | *type_.xla_); |
2593 | break; |
2594 | } |
2595 | case TYPE_NOT_SET: { |
2596 | break; |
2597 | } |
2598 | } |
2599 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2600 | SetCachedSize(cached_size); |
2601 | return total_size; |
2602 | } |
2603 | |
2604 | void CoordinationServiceDeviceInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2605 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CoordinationServiceDeviceInfo) |
2606 | GOOGLE_DCHECK_NE(&from, this); |
2607 | const CoordinationServiceDeviceInfo* source = |
2608 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CoordinationServiceDeviceInfo>( |
2609 | &from); |
2610 | if (source == nullptr) { |
2611 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CoordinationServiceDeviceInfo) |
2612 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2613 | } else { |
2614 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CoordinationServiceDeviceInfo) |
2615 | MergeFrom(*source); |
2616 | } |
2617 | } |
2618 | |
2619 | void CoordinationServiceDeviceInfo::MergeFrom(const CoordinationServiceDeviceInfo& from) { |
2620 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CoordinationServiceDeviceInfo) |
2621 | GOOGLE_DCHECK_NE(&from, this); |
2622 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2623 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2624 | (void) cached_has_bits; |
2625 | |
2626 | switch (from.type_case()) { |
2627 | case kTf: { |
2628 | mutable_tf()->::tensorflow::TfDeviceList::MergeFrom(from.tf()); |
2629 | break; |
2630 | } |
2631 | case kXla: { |
2632 | mutable_xla()->::tensorflow::XlaDeviceList::MergeFrom(from.xla()); |
2633 | break; |
2634 | } |
2635 | case TYPE_NOT_SET: { |
2636 | break; |
2637 | } |
2638 | } |
2639 | } |
2640 | |
2641 | void CoordinationServiceDeviceInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2642 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CoordinationServiceDeviceInfo) |
2643 | if (&from == this) return; |
2644 | Clear(); |
2645 | MergeFrom(from); |
2646 | } |
2647 | |
2648 | void CoordinationServiceDeviceInfo::CopyFrom(const CoordinationServiceDeviceInfo& from) { |
2649 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CoordinationServiceDeviceInfo) |
2650 | if (&from == this) return; |
2651 | Clear(); |
2652 | MergeFrom(from); |
2653 | } |
2654 | |
2655 | bool CoordinationServiceDeviceInfo::IsInitialized() const { |
2656 | return true; |
2657 | } |
2658 | |
2659 | void CoordinationServiceDeviceInfo::InternalSwap(CoordinationServiceDeviceInfo* other) { |
2660 | using std::swap; |
2661 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2662 | swap(type_, other->type_); |
2663 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
2664 | } |
2665 | |
2666 | ::PROTOBUF_NAMESPACE_ID::Metadata CoordinationServiceDeviceInfo::GetMetadata() const { |
2667 | return GetMetadataStatic(); |
2668 | } |
2669 | |
2670 | |
2671 | // =================================================================== |
2672 | |
2673 | void RegisterTaskRequest::InitAsDefaultInstance() { |
2674 | ::tensorflow::_RegisterTaskRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
2675 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
2676 | } |
2677 | class RegisterTaskRequest::_Internal { |
2678 | public: |
2679 | static const ::tensorflow::CoordinatedTask& source_task(const RegisterTaskRequest* msg); |
2680 | }; |
2681 | |
2682 | const ::tensorflow::CoordinatedTask& |
2683 | RegisterTaskRequest::_Internal::source_task(const RegisterTaskRequest* msg) { |
2684 | return *msg->source_task_; |
2685 | } |
2686 | RegisterTaskRequest::RegisterTaskRequest() |
2687 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2688 | SharedCtor(); |
2689 | // @@protoc_insertion_point(constructor:tensorflow.RegisterTaskRequest) |
2690 | } |
2691 | RegisterTaskRequest::RegisterTaskRequest(const RegisterTaskRequest& from) |
2692 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2693 | _internal_metadata_(nullptr) { |
2694 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2695 | if (from.has_source_task()) { |
2696 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
2697 | } else { |
2698 | source_task_ = nullptr; |
2699 | } |
2700 | incarnation_ = from.incarnation_; |
2701 | // @@protoc_insertion_point(copy_constructor:tensorflow.RegisterTaskRequest) |
2702 | } |
2703 | |
2704 | void RegisterTaskRequest::SharedCtor() { |
2705 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2706 | ::memset(&source_task_, 0, static_cast<size_t>( |
2707 | reinterpret_cast<char*>(&incarnation_) - |
2708 | reinterpret_cast<char*>(&source_task_)) + sizeof(incarnation_)); |
2709 | } |
2710 | |
2711 | RegisterTaskRequest::~RegisterTaskRequest() { |
2712 | // @@protoc_insertion_point(destructor:tensorflow.RegisterTaskRequest) |
2713 | SharedDtor(); |
2714 | } |
2715 | |
2716 | void RegisterTaskRequest::SharedDtor() { |
2717 | if (this != internal_default_instance()) delete source_task_; |
2718 | } |
2719 | |
2720 | void RegisterTaskRequest::SetCachedSize(int size) const { |
2721 | _cached_size_.Set(size); |
2722 | } |
2723 | const RegisterTaskRequest& RegisterTaskRequest::default_instance() { |
2724 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RegisterTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
2725 | return *internal_default_instance(); |
2726 | } |
2727 | |
2728 | |
2729 | void RegisterTaskRequest::Clear() { |
2730 | // @@protoc_insertion_point(message_clear_start:tensorflow.RegisterTaskRequest) |
2731 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2732 | // Prevent compiler warnings about cached_has_bits being unused |
2733 | (void) cached_has_bits; |
2734 | |
2735 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
2736 | delete source_task_; |
2737 | } |
2738 | source_task_ = nullptr; |
2739 | incarnation_ = PROTOBUF_ULONGLONG(0); |
2740 | _internal_metadata_.Clear(); |
2741 | } |
2742 | |
2743 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2744 | const char* RegisterTaskRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2745 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2746 | while (!ctx->Done(&ptr)) { |
2747 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2748 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2749 | CHK_(ptr); |
2750 | switch (tag >> 3) { |
2751 | // fixed64 incarnation = 3; |
2752 | case 3: |
2753 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { |
2754 | incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr); |
2755 | ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64); |
2756 | } else goto handle_unusual; |
2757 | continue; |
2758 | // .tensorflow.CoordinatedTask source_task = 5; |
2759 | case 5: |
2760 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
2761 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
2762 | CHK_(ptr); |
2763 | } else goto handle_unusual; |
2764 | continue; |
2765 | default: { |
2766 | handle_unusual: |
2767 | if ((tag & 7) == 4 || tag == 0) { |
2768 | ctx->SetLastTag(tag); |
2769 | goto success; |
2770 | } |
2771 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2772 | CHK_(ptr != nullptr); |
2773 | continue; |
2774 | } |
2775 | } // switch |
2776 | } // while |
2777 | success: |
2778 | return ptr; |
2779 | failure: |
2780 | ptr = nullptr; |
2781 | goto success; |
2782 | #undef CHK_ |
2783 | } |
2784 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2785 | bool RegisterTaskRequest::MergePartialFromCodedStream( |
2786 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2787 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2788 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2789 | // @@protoc_insertion_point(parse_start:tensorflow.RegisterTaskRequest) |
2790 | for (;;) { |
2791 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2792 | tag = p.first; |
2793 | if (!p.second) goto handle_unusual; |
2794 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2795 | // fixed64 incarnation = 3; |
2796 | case 3: { |
2797 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { |
2798 | |
2799 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2800 | ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>( |
2801 | input, &incarnation_))); |
2802 | } else { |
2803 | goto handle_unusual; |
2804 | } |
2805 | break; |
2806 | } |
2807 | |
2808 | // .tensorflow.CoordinatedTask source_task = 5; |
2809 | case 5: { |
2810 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
2811 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2812 | input, mutable_source_task())); |
2813 | } else { |
2814 | goto handle_unusual; |
2815 | } |
2816 | break; |
2817 | } |
2818 | |
2819 | default: { |
2820 | handle_unusual: |
2821 | if (tag == 0) { |
2822 | goto success; |
2823 | } |
2824 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2825 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2826 | break; |
2827 | } |
2828 | } |
2829 | } |
2830 | success: |
2831 | // @@protoc_insertion_point(parse_success:tensorflow.RegisterTaskRequest) |
2832 | return true; |
2833 | failure: |
2834 | // @@protoc_insertion_point(parse_failure:tensorflow.RegisterTaskRequest) |
2835 | return false; |
2836 | #undef DO_ |
2837 | } |
2838 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2839 | |
2840 | void RegisterTaskRequest::SerializeWithCachedSizes( |
2841 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2842 | // @@protoc_insertion_point(serialize_start:tensorflow.RegisterTaskRequest) |
2843 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2844 | (void) cached_has_bits; |
2845 | |
2846 | // fixed64 incarnation = 3; |
2847 | if (this->incarnation() != 0) { |
2848 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(3, this->incarnation(), output); |
2849 | } |
2850 | |
2851 | // .tensorflow.CoordinatedTask source_task = 5; |
2852 | if (this->has_source_task()) { |
2853 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2854 | 5, _Internal::source_task(this), output); |
2855 | } |
2856 | |
2857 | if (_internal_metadata_.have_unknown_fields()) { |
2858 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2859 | _internal_metadata_.unknown_fields(), output); |
2860 | } |
2861 | // @@protoc_insertion_point(serialize_end:tensorflow.RegisterTaskRequest) |
2862 | } |
2863 | |
2864 | ::PROTOBUF_NAMESPACE_ID::uint8* RegisterTaskRequest::InternalSerializeWithCachedSizesToArray( |
2865 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2866 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RegisterTaskRequest) |
2867 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2868 | (void) cached_has_bits; |
2869 | |
2870 | // fixed64 incarnation = 3; |
2871 | if (this->incarnation() != 0) { |
2872 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(3, this->incarnation(), target); |
2873 | } |
2874 | |
2875 | // .tensorflow.CoordinatedTask source_task = 5; |
2876 | if (this->has_source_task()) { |
2877 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2878 | InternalWriteMessageToArray( |
2879 | 5, _Internal::source_task(this), target); |
2880 | } |
2881 | |
2882 | if (_internal_metadata_.have_unknown_fields()) { |
2883 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2884 | _internal_metadata_.unknown_fields(), target); |
2885 | } |
2886 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RegisterTaskRequest) |
2887 | return target; |
2888 | } |
2889 | |
2890 | size_t RegisterTaskRequest::ByteSizeLong() const { |
2891 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.RegisterTaskRequest) |
2892 | size_t total_size = 0; |
2893 | |
2894 | if (_internal_metadata_.have_unknown_fields()) { |
2895 | total_size += |
2896 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2897 | _internal_metadata_.unknown_fields()); |
2898 | } |
2899 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2900 | // Prevent compiler warnings about cached_has_bits being unused |
2901 | (void) cached_has_bits; |
2902 | |
2903 | // .tensorflow.CoordinatedTask source_task = 5; |
2904 | if (this->has_source_task()) { |
2905 | total_size += 1 + |
2906 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2907 | *source_task_); |
2908 | } |
2909 | |
2910 | // fixed64 incarnation = 3; |
2911 | if (this->incarnation() != 0) { |
2912 | total_size += 1 + 8; |
2913 | } |
2914 | |
2915 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2916 | SetCachedSize(cached_size); |
2917 | return total_size; |
2918 | } |
2919 | |
2920 | void RegisterTaskRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2921 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RegisterTaskRequest) |
2922 | GOOGLE_DCHECK_NE(&from, this); |
2923 | const RegisterTaskRequest* source = |
2924 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegisterTaskRequest>( |
2925 | &from); |
2926 | if (source == nullptr) { |
2927 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RegisterTaskRequest) |
2928 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2929 | } else { |
2930 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RegisterTaskRequest) |
2931 | MergeFrom(*source); |
2932 | } |
2933 | } |
2934 | |
2935 | void RegisterTaskRequest::MergeFrom(const RegisterTaskRequest& from) { |
2936 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RegisterTaskRequest) |
2937 | GOOGLE_DCHECK_NE(&from, this); |
2938 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2939 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2940 | (void) cached_has_bits; |
2941 | |
2942 | if (from.has_source_task()) { |
2943 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
2944 | } |
2945 | if (from.incarnation() != 0) { |
2946 | set_incarnation(from.incarnation()); |
2947 | } |
2948 | } |
2949 | |
2950 | void RegisterTaskRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2951 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RegisterTaskRequest) |
2952 | if (&from == this) return; |
2953 | Clear(); |
2954 | MergeFrom(from); |
2955 | } |
2956 | |
2957 | void RegisterTaskRequest::CopyFrom(const RegisterTaskRequest& from) { |
2958 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RegisterTaskRequest) |
2959 | if (&from == this) return; |
2960 | Clear(); |
2961 | MergeFrom(from); |
2962 | } |
2963 | |
2964 | bool RegisterTaskRequest::IsInitialized() const { |
2965 | return true; |
2966 | } |
2967 | |
2968 | void RegisterTaskRequest::InternalSwap(RegisterTaskRequest* other) { |
2969 | using std::swap; |
2970 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2971 | swap(source_task_, other->source_task_); |
2972 | swap(incarnation_, other->incarnation_); |
2973 | } |
2974 | |
2975 | ::PROTOBUF_NAMESPACE_ID::Metadata RegisterTaskRequest::GetMetadata() const { |
2976 | return GetMetadataStatic(); |
2977 | } |
2978 | |
2979 | |
2980 | // =================================================================== |
2981 | |
2982 | void RegisterTaskResponse::InitAsDefaultInstance() { |
2983 | } |
2984 | class RegisterTaskResponse::_Internal { |
2985 | public: |
2986 | }; |
2987 | |
2988 | RegisterTaskResponse::RegisterTaskResponse() |
2989 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2990 | SharedCtor(); |
2991 | // @@protoc_insertion_point(constructor:tensorflow.RegisterTaskResponse) |
2992 | } |
2993 | RegisterTaskResponse::RegisterTaskResponse(const RegisterTaskResponse& from) |
2994 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2995 | _internal_metadata_(nullptr) { |
2996 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2997 | leader_incarnation_ = from.leader_incarnation_; |
2998 | // @@protoc_insertion_point(copy_constructor:tensorflow.RegisterTaskResponse) |
2999 | } |
3000 | |
3001 | void RegisterTaskResponse::SharedCtor() { |
3002 | leader_incarnation_ = PROTOBUF_ULONGLONG(0); |
3003 | } |
3004 | |
3005 | RegisterTaskResponse::~RegisterTaskResponse() { |
3006 | // @@protoc_insertion_point(destructor:tensorflow.RegisterTaskResponse) |
3007 | SharedDtor(); |
3008 | } |
3009 | |
3010 | void RegisterTaskResponse::SharedDtor() { |
3011 | } |
3012 | |
3013 | void RegisterTaskResponse::SetCachedSize(int size) const { |
3014 | _cached_size_.Set(size); |
3015 | } |
3016 | const RegisterTaskResponse& RegisterTaskResponse::default_instance() { |
3017 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RegisterTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3018 | return *internal_default_instance(); |
3019 | } |
3020 | |
3021 | |
3022 | void RegisterTaskResponse::Clear() { |
3023 | // @@protoc_insertion_point(message_clear_start:tensorflow.RegisterTaskResponse) |
3024 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3025 | // Prevent compiler warnings about cached_has_bits being unused |
3026 | (void) cached_has_bits; |
3027 | |
3028 | leader_incarnation_ = PROTOBUF_ULONGLONG(0); |
3029 | _internal_metadata_.Clear(); |
3030 | } |
3031 | |
3032 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3033 | const char* RegisterTaskResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3034 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3035 | while (!ctx->Done(&ptr)) { |
3036 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3037 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3038 | CHK_(ptr); |
3039 | switch (tag >> 3) { |
3040 | // fixed64 leader_incarnation = 1; |
3041 | case 1: |
3042 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
3043 | leader_incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr); |
3044 | ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64); |
3045 | } else goto handle_unusual; |
3046 | continue; |
3047 | default: { |
3048 | handle_unusual: |
3049 | if ((tag & 7) == 4 || tag == 0) { |
3050 | ctx->SetLastTag(tag); |
3051 | goto success; |
3052 | } |
3053 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3054 | CHK_(ptr != nullptr); |
3055 | continue; |
3056 | } |
3057 | } // switch |
3058 | } // while |
3059 | success: |
3060 | return ptr; |
3061 | failure: |
3062 | ptr = nullptr; |
3063 | goto success; |
3064 | #undef CHK_ |
3065 | } |
3066 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3067 | bool RegisterTaskResponse::MergePartialFromCodedStream( |
3068 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3069 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3070 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3071 | // @@protoc_insertion_point(parse_start:tensorflow.RegisterTaskResponse) |
3072 | for (;;) { |
3073 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3074 | tag = p.first; |
3075 | if (!p.second) goto handle_unusual; |
3076 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3077 | // fixed64 leader_incarnation = 1; |
3078 | case 1: { |
3079 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { |
3080 | |
3081 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3082 | ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>( |
3083 | input, &leader_incarnation_))); |
3084 | } else { |
3085 | goto handle_unusual; |
3086 | } |
3087 | break; |
3088 | } |
3089 | |
3090 | default: { |
3091 | handle_unusual: |
3092 | if (tag == 0) { |
3093 | goto success; |
3094 | } |
3095 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3096 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3097 | break; |
3098 | } |
3099 | } |
3100 | } |
3101 | success: |
3102 | // @@protoc_insertion_point(parse_success:tensorflow.RegisterTaskResponse) |
3103 | return true; |
3104 | failure: |
3105 | // @@protoc_insertion_point(parse_failure:tensorflow.RegisterTaskResponse) |
3106 | return false; |
3107 | #undef DO_ |
3108 | } |
3109 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3110 | |
3111 | void RegisterTaskResponse::SerializeWithCachedSizes( |
3112 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3113 | // @@protoc_insertion_point(serialize_start:tensorflow.RegisterTaskResponse) |
3114 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3115 | (void) cached_has_bits; |
3116 | |
3117 | // fixed64 leader_incarnation = 1; |
3118 | if (this->leader_incarnation() != 0) { |
3119 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->leader_incarnation(), output); |
3120 | } |
3121 | |
3122 | if (_internal_metadata_.have_unknown_fields()) { |
3123 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3124 | _internal_metadata_.unknown_fields(), output); |
3125 | } |
3126 | // @@protoc_insertion_point(serialize_end:tensorflow.RegisterTaskResponse) |
3127 | } |
3128 | |
3129 | ::PROTOBUF_NAMESPACE_ID::uint8* RegisterTaskResponse::InternalSerializeWithCachedSizesToArray( |
3130 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3131 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RegisterTaskResponse) |
3132 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3133 | (void) cached_has_bits; |
3134 | |
3135 | // fixed64 leader_incarnation = 1; |
3136 | if (this->leader_incarnation() != 0) { |
3137 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->leader_incarnation(), target); |
3138 | } |
3139 | |
3140 | if (_internal_metadata_.have_unknown_fields()) { |
3141 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3142 | _internal_metadata_.unknown_fields(), target); |
3143 | } |
3144 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RegisterTaskResponse) |
3145 | return target; |
3146 | } |
3147 | |
3148 | size_t RegisterTaskResponse::ByteSizeLong() const { |
3149 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.RegisterTaskResponse) |
3150 | size_t total_size = 0; |
3151 | |
3152 | if (_internal_metadata_.have_unknown_fields()) { |
3153 | total_size += |
3154 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3155 | _internal_metadata_.unknown_fields()); |
3156 | } |
3157 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3158 | // Prevent compiler warnings about cached_has_bits being unused |
3159 | (void) cached_has_bits; |
3160 | |
3161 | // fixed64 leader_incarnation = 1; |
3162 | if (this->leader_incarnation() != 0) { |
3163 | total_size += 1 + 8; |
3164 | } |
3165 | |
3166 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3167 | SetCachedSize(cached_size); |
3168 | return total_size; |
3169 | } |
3170 | |
3171 | void RegisterTaskResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3172 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RegisterTaskResponse) |
3173 | GOOGLE_DCHECK_NE(&from, this); |
3174 | const RegisterTaskResponse* source = |
3175 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegisterTaskResponse>( |
3176 | &from); |
3177 | if (source == nullptr) { |
3178 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RegisterTaskResponse) |
3179 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3180 | } else { |
3181 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RegisterTaskResponse) |
3182 | MergeFrom(*source); |
3183 | } |
3184 | } |
3185 | |
3186 | void RegisterTaskResponse::MergeFrom(const RegisterTaskResponse& from) { |
3187 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RegisterTaskResponse) |
3188 | GOOGLE_DCHECK_NE(&from, this); |
3189 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3190 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3191 | (void) cached_has_bits; |
3192 | |
3193 | if (from.leader_incarnation() != 0) { |
3194 | set_leader_incarnation(from.leader_incarnation()); |
3195 | } |
3196 | } |
3197 | |
3198 | void RegisterTaskResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3199 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RegisterTaskResponse) |
3200 | if (&from == this) return; |
3201 | Clear(); |
3202 | MergeFrom(from); |
3203 | } |
3204 | |
3205 | void RegisterTaskResponse::CopyFrom(const RegisterTaskResponse& from) { |
3206 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RegisterTaskResponse) |
3207 | if (&from == this) return; |
3208 | Clear(); |
3209 | MergeFrom(from); |
3210 | } |
3211 | |
3212 | bool RegisterTaskResponse::IsInitialized() const { |
3213 | return true; |
3214 | } |
3215 | |
3216 | void RegisterTaskResponse::InternalSwap(RegisterTaskResponse* other) { |
3217 | using std::swap; |
3218 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3219 | swap(leader_incarnation_, other->leader_incarnation_); |
3220 | } |
3221 | |
3222 | ::PROTOBUF_NAMESPACE_ID::Metadata RegisterTaskResponse::GetMetadata() const { |
3223 | return GetMetadataStatic(); |
3224 | } |
3225 | |
3226 | |
3227 | // =================================================================== |
3228 | |
3229 | void HeartbeatRequest::InitAsDefaultInstance() { |
3230 | ::tensorflow::_HeartbeatRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
3231 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
3232 | } |
3233 | class HeartbeatRequest::_Internal { |
3234 | public: |
3235 | static const ::tensorflow::CoordinatedTask& source_task(const HeartbeatRequest* msg); |
3236 | }; |
3237 | |
3238 | const ::tensorflow::CoordinatedTask& |
3239 | HeartbeatRequest::_Internal::source_task(const HeartbeatRequest* msg) { |
3240 | return *msg->source_task_; |
3241 | } |
3242 | HeartbeatRequest::HeartbeatRequest() |
3243 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3244 | SharedCtor(); |
3245 | // @@protoc_insertion_point(constructor:tensorflow.HeartbeatRequest) |
3246 | } |
3247 | HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) |
3248 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3249 | _internal_metadata_(nullptr) { |
3250 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3251 | if (from.has_source_task()) { |
3252 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
3253 | } else { |
3254 | source_task_ = nullptr; |
3255 | } |
3256 | incarnation_ = from.incarnation_; |
3257 | // @@protoc_insertion_point(copy_constructor:tensorflow.HeartbeatRequest) |
3258 | } |
3259 | |
3260 | void HeartbeatRequest::SharedCtor() { |
3261 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3262 | ::memset(&source_task_, 0, static_cast<size_t>( |
3263 | reinterpret_cast<char*>(&incarnation_) - |
3264 | reinterpret_cast<char*>(&source_task_)) + sizeof(incarnation_)); |
3265 | } |
3266 | |
3267 | HeartbeatRequest::~HeartbeatRequest() { |
3268 | // @@protoc_insertion_point(destructor:tensorflow.HeartbeatRequest) |
3269 | SharedDtor(); |
3270 | } |
3271 | |
3272 | void HeartbeatRequest::SharedDtor() { |
3273 | if (this != internal_default_instance()) delete source_task_; |
3274 | } |
3275 | |
3276 | void HeartbeatRequest::SetCachedSize(int size) const { |
3277 | _cached_size_.Set(size); |
3278 | } |
3279 | const HeartbeatRequest& HeartbeatRequest::default_instance() { |
3280 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HeartbeatRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3281 | return *internal_default_instance(); |
3282 | } |
3283 | |
3284 | |
3285 | void HeartbeatRequest::Clear() { |
3286 | // @@protoc_insertion_point(message_clear_start:tensorflow.HeartbeatRequest) |
3287 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3288 | // Prevent compiler warnings about cached_has_bits being unused |
3289 | (void) cached_has_bits; |
3290 | |
3291 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
3292 | delete source_task_; |
3293 | } |
3294 | source_task_ = nullptr; |
3295 | incarnation_ = PROTOBUF_ULONGLONG(0); |
3296 | _internal_metadata_.Clear(); |
3297 | } |
3298 | |
3299 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3300 | const char* HeartbeatRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3301 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3302 | while (!ctx->Done(&ptr)) { |
3303 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3304 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3305 | CHK_(ptr); |
3306 | switch (tag >> 3) { |
3307 | // fixed64 incarnation = 3; |
3308 | case 3: |
3309 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { |
3310 | incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr); |
3311 | ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64); |
3312 | } else goto handle_unusual; |
3313 | continue; |
3314 | // .tensorflow.CoordinatedTask source_task = 4; |
3315 | case 4: |
3316 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
3317 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
3318 | CHK_(ptr); |
3319 | } else goto handle_unusual; |
3320 | continue; |
3321 | default: { |
3322 | handle_unusual: |
3323 | if ((tag & 7) == 4 || tag == 0) { |
3324 | ctx->SetLastTag(tag); |
3325 | goto success; |
3326 | } |
3327 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3328 | CHK_(ptr != nullptr); |
3329 | continue; |
3330 | } |
3331 | } // switch |
3332 | } // while |
3333 | success: |
3334 | return ptr; |
3335 | failure: |
3336 | ptr = nullptr; |
3337 | goto success; |
3338 | #undef CHK_ |
3339 | } |
3340 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3341 | bool HeartbeatRequest::MergePartialFromCodedStream( |
3342 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3343 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3344 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3345 | // @@protoc_insertion_point(parse_start:tensorflow.HeartbeatRequest) |
3346 | for (;;) { |
3347 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3348 | tag = p.first; |
3349 | if (!p.second) goto handle_unusual; |
3350 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3351 | // fixed64 incarnation = 3; |
3352 | case 3: { |
3353 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { |
3354 | |
3355 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3356 | ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>( |
3357 | input, &incarnation_))); |
3358 | } else { |
3359 | goto handle_unusual; |
3360 | } |
3361 | break; |
3362 | } |
3363 | |
3364 | // .tensorflow.CoordinatedTask source_task = 4; |
3365 | case 4: { |
3366 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
3367 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3368 | input, mutable_source_task())); |
3369 | } else { |
3370 | goto handle_unusual; |
3371 | } |
3372 | break; |
3373 | } |
3374 | |
3375 | default: { |
3376 | handle_unusual: |
3377 | if (tag == 0) { |
3378 | goto success; |
3379 | } |
3380 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3381 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3382 | break; |
3383 | } |
3384 | } |
3385 | } |
3386 | success: |
3387 | // @@protoc_insertion_point(parse_success:tensorflow.HeartbeatRequest) |
3388 | return true; |
3389 | failure: |
3390 | // @@protoc_insertion_point(parse_failure:tensorflow.HeartbeatRequest) |
3391 | return false; |
3392 | #undef DO_ |
3393 | } |
3394 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3395 | |
3396 | void HeartbeatRequest::SerializeWithCachedSizes( |
3397 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3398 | // @@protoc_insertion_point(serialize_start:tensorflow.HeartbeatRequest) |
3399 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3400 | (void) cached_has_bits; |
3401 | |
3402 | // fixed64 incarnation = 3; |
3403 | if (this->incarnation() != 0) { |
3404 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(3, this->incarnation(), output); |
3405 | } |
3406 | |
3407 | // .tensorflow.CoordinatedTask source_task = 4; |
3408 | if (this->has_source_task()) { |
3409 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3410 | 4, _Internal::source_task(this), output); |
3411 | } |
3412 | |
3413 | if (_internal_metadata_.have_unknown_fields()) { |
3414 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3415 | _internal_metadata_.unknown_fields(), output); |
3416 | } |
3417 | // @@protoc_insertion_point(serialize_end:tensorflow.HeartbeatRequest) |
3418 | } |
3419 | |
3420 | ::PROTOBUF_NAMESPACE_ID::uint8* HeartbeatRequest::InternalSerializeWithCachedSizesToArray( |
3421 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3422 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.HeartbeatRequest) |
3423 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3424 | (void) cached_has_bits; |
3425 | |
3426 | // fixed64 incarnation = 3; |
3427 | if (this->incarnation() != 0) { |
3428 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(3, this->incarnation(), target); |
3429 | } |
3430 | |
3431 | // .tensorflow.CoordinatedTask source_task = 4; |
3432 | if (this->has_source_task()) { |
3433 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3434 | InternalWriteMessageToArray( |
3435 | 4, _Internal::source_task(this), target); |
3436 | } |
3437 | |
3438 | if (_internal_metadata_.have_unknown_fields()) { |
3439 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3440 | _internal_metadata_.unknown_fields(), target); |
3441 | } |
3442 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.HeartbeatRequest) |
3443 | return target; |
3444 | } |
3445 | |
3446 | size_t HeartbeatRequest::ByteSizeLong() const { |
3447 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.HeartbeatRequest) |
3448 | size_t total_size = 0; |
3449 | |
3450 | if (_internal_metadata_.have_unknown_fields()) { |
3451 | total_size += |
3452 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3453 | _internal_metadata_.unknown_fields()); |
3454 | } |
3455 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3456 | // Prevent compiler warnings about cached_has_bits being unused |
3457 | (void) cached_has_bits; |
3458 | |
3459 | // .tensorflow.CoordinatedTask source_task = 4; |
3460 | if (this->has_source_task()) { |
3461 | total_size += 1 + |
3462 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3463 | *source_task_); |
3464 | } |
3465 | |
3466 | // fixed64 incarnation = 3; |
3467 | if (this->incarnation() != 0) { |
3468 | total_size += 1 + 8; |
3469 | } |
3470 | |
3471 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3472 | SetCachedSize(cached_size); |
3473 | return total_size; |
3474 | } |
3475 | |
3476 | void HeartbeatRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3477 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.HeartbeatRequest) |
3478 | GOOGLE_DCHECK_NE(&from, this); |
3479 | const HeartbeatRequest* source = |
3480 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<HeartbeatRequest>( |
3481 | &from); |
3482 | if (source == nullptr) { |
3483 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.HeartbeatRequest) |
3484 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3485 | } else { |
3486 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.HeartbeatRequest) |
3487 | MergeFrom(*source); |
3488 | } |
3489 | } |
3490 | |
3491 | void HeartbeatRequest::MergeFrom(const HeartbeatRequest& from) { |
3492 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.HeartbeatRequest) |
3493 | GOOGLE_DCHECK_NE(&from, this); |
3494 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3495 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3496 | (void) cached_has_bits; |
3497 | |
3498 | if (from.has_source_task()) { |
3499 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
3500 | } |
3501 | if (from.incarnation() != 0) { |
3502 | set_incarnation(from.incarnation()); |
3503 | } |
3504 | } |
3505 | |
3506 | void HeartbeatRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3507 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.HeartbeatRequest) |
3508 | if (&from == this) return; |
3509 | Clear(); |
3510 | MergeFrom(from); |
3511 | } |
3512 | |
3513 | void HeartbeatRequest::CopyFrom(const HeartbeatRequest& from) { |
3514 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.HeartbeatRequest) |
3515 | if (&from == this) return; |
3516 | Clear(); |
3517 | MergeFrom(from); |
3518 | } |
3519 | |
3520 | bool HeartbeatRequest::IsInitialized() const { |
3521 | return true; |
3522 | } |
3523 | |
3524 | void HeartbeatRequest::InternalSwap(HeartbeatRequest* other) { |
3525 | using std::swap; |
3526 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3527 | swap(source_task_, other->source_task_); |
3528 | swap(incarnation_, other->incarnation_); |
3529 | } |
3530 | |
3531 | ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatRequest::GetMetadata() const { |
3532 | return GetMetadataStatic(); |
3533 | } |
3534 | |
3535 | |
3536 | // =================================================================== |
3537 | |
3538 | void HeartbeatResponse::InitAsDefaultInstance() { |
3539 | } |
3540 | class HeartbeatResponse::_Internal { |
3541 | public: |
3542 | }; |
3543 | |
3544 | HeartbeatResponse::HeartbeatResponse() |
3545 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3546 | SharedCtor(); |
3547 | // @@protoc_insertion_point(constructor:tensorflow.HeartbeatResponse) |
3548 | } |
3549 | HeartbeatResponse::HeartbeatResponse(const HeartbeatResponse& from) |
3550 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3551 | _internal_metadata_(nullptr) { |
3552 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3553 | leader_incarnation_ = from.leader_incarnation_; |
3554 | // @@protoc_insertion_point(copy_constructor:tensorflow.HeartbeatResponse) |
3555 | } |
3556 | |
3557 | void HeartbeatResponse::SharedCtor() { |
3558 | leader_incarnation_ = PROTOBUF_ULONGLONG(0); |
3559 | } |
3560 | |
3561 | HeartbeatResponse::~HeartbeatResponse() { |
3562 | // @@protoc_insertion_point(destructor:tensorflow.HeartbeatResponse) |
3563 | SharedDtor(); |
3564 | } |
3565 | |
3566 | void HeartbeatResponse::SharedDtor() { |
3567 | } |
3568 | |
3569 | void HeartbeatResponse::SetCachedSize(int size) const { |
3570 | _cached_size_.Set(size); |
3571 | } |
3572 | const HeartbeatResponse& HeartbeatResponse::default_instance() { |
3573 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HeartbeatResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3574 | return *internal_default_instance(); |
3575 | } |
3576 | |
3577 | |
3578 | void HeartbeatResponse::Clear() { |
3579 | // @@protoc_insertion_point(message_clear_start:tensorflow.HeartbeatResponse) |
3580 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3581 | // Prevent compiler warnings about cached_has_bits being unused |
3582 | (void) cached_has_bits; |
3583 | |
3584 | leader_incarnation_ = PROTOBUF_ULONGLONG(0); |
3585 | _internal_metadata_.Clear(); |
3586 | } |
3587 | |
3588 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3589 | const char* HeartbeatResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3590 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3591 | while (!ctx->Done(&ptr)) { |
3592 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3593 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3594 | CHK_(ptr); |
3595 | switch (tag >> 3) { |
3596 | // fixed64 leader_incarnation = 1; |
3597 | case 1: |
3598 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
3599 | leader_incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr); |
3600 | ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64); |
3601 | } else goto handle_unusual; |
3602 | continue; |
3603 | default: { |
3604 | handle_unusual: |
3605 | if ((tag & 7) == 4 || tag == 0) { |
3606 | ctx->SetLastTag(tag); |
3607 | goto success; |
3608 | } |
3609 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3610 | CHK_(ptr != nullptr); |
3611 | continue; |
3612 | } |
3613 | } // switch |
3614 | } // while |
3615 | success: |
3616 | return ptr; |
3617 | failure: |
3618 | ptr = nullptr; |
3619 | goto success; |
3620 | #undef CHK_ |
3621 | } |
3622 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3623 | bool HeartbeatResponse::MergePartialFromCodedStream( |
3624 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3625 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3626 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3627 | // @@protoc_insertion_point(parse_start:tensorflow.HeartbeatResponse) |
3628 | for (;;) { |
3629 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3630 | tag = p.first; |
3631 | if (!p.second) goto handle_unusual; |
3632 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3633 | // fixed64 leader_incarnation = 1; |
3634 | case 1: { |
3635 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { |
3636 | |
3637 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3638 | ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>( |
3639 | input, &leader_incarnation_))); |
3640 | } else { |
3641 | goto handle_unusual; |
3642 | } |
3643 | break; |
3644 | } |
3645 | |
3646 | default: { |
3647 | handle_unusual: |
3648 | if (tag == 0) { |
3649 | goto success; |
3650 | } |
3651 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3652 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3653 | break; |
3654 | } |
3655 | } |
3656 | } |
3657 | success: |
3658 | // @@protoc_insertion_point(parse_success:tensorflow.HeartbeatResponse) |
3659 | return true; |
3660 | failure: |
3661 | // @@protoc_insertion_point(parse_failure:tensorflow.HeartbeatResponse) |
3662 | return false; |
3663 | #undef DO_ |
3664 | } |
3665 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3666 | |
3667 | void HeartbeatResponse::SerializeWithCachedSizes( |
3668 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3669 | // @@protoc_insertion_point(serialize_start:tensorflow.HeartbeatResponse) |
3670 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3671 | (void) cached_has_bits; |
3672 | |
3673 | // fixed64 leader_incarnation = 1; |
3674 | if (this->leader_incarnation() != 0) { |
3675 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->leader_incarnation(), output); |
3676 | } |
3677 | |
3678 | if (_internal_metadata_.have_unknown_fields()) { |
3679 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3680 | _internal_metadata_.unknown_fields(), output); |
3681 | } |
3682 | // @@protoc_insertion_point(serialize_end:tensorflow.HeartbeatResponse) |
3683 | } |
3684 | |
3685 | ::PROTOBUF_NAMESPACE_ID::uint8* HeartbeatResponse::InternalSerializeWithCachedSizesToArray( |
3686 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3687 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.HeartbeatResponse) |
3688 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3689 | (void) cached_has_bits; |
3690 | |
3691 | // fixed64 leader_incarnation = 1; |
3692 | if (this->leader_incarnation() != 0) { |
3693 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->leader_incarnation(), target); |
3694 | } |
3695 | |
3696 | if (_internal_metadata_.have_unknown_fields()) { |
3697 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3698 | _internal_metadata_.unknown_fields(), target); |
3699 | } |
3700 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.HeartbeatResponse) |
3701 | return target; |
3702 | } |
3703 | |
3704 | size_t HeartbeatResponse::ByteSizeLong() const { |
3705 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.HeartbeatResponse) |
3706 | size_t total_size = 0; |
3707 | |
3708 | if (_internal_metadata_.have_unknown_fields()) { |
3709 | total_size += |
3710 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3711 | _internal_metadata_.unknown_fields()); |
3712 | } |
3713 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3714 | // Prevent compiler warnings about cached_has_bits being unused |
3715 | (void) cached_has_bits; |
3716 | |
3717 | // fixed64 leader_incarnation = 1; |
3718 | if (this->leader_incarnation() != 0) { |
3719 | total_size += 1 + 8; |
3720 | } |
3721 | |
3722 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3723 | SetCachedSize(cached_size); |
3724 | return total_size; |
3725 | } |
3726 | |
3727 | void HeartbeatResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3728 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.HeartbeatResponse) |
3729 | GOOGLE_DCHECK_NE(&from, this); |
3730 | const HeartbeatResponse* source = |
3731 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<HeartbeatResponse>( |
3732 | &from); |
3733 | if (source == nullptr) { |
3734 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.HeartbeatResponse) |
3735 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3736 | } else { |
3737 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.HeartbeatResponse) |
3738 | MergeFrom(*source); |
3739 | } |
3740 | } |
3741 | |
3742 | void HeartbeatResponse::MergeFrom(const HeartbeatResponse& from) { |
3743 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.HeartbeatResponse) |
3744 | GOOGLE_DCHECK_NE(&from, this); |
3745 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3746 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3747 | (void) cached_has_bits; |
3748 | |
3749 | if (from.leader_incarnation() != 0) { |
3750 | set_leader_incarnation(from.leader_incarnation()); |
3751 | } |
3752 | } |
3753 | |
3754 | void HeartbeatResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3755 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.HeartbeatResponse) |
3756 | if (&from == this) return; |
3757 | Clear(); |
3758 | MergeFrom(from); |
3759 | } |
3760 | |
3761 | void HeartbeatResponse::CopyFrom(const HeartbeatResponse& from) { |
3762 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.HeartbeatResponse) |
3763 | if (&from == this) return; |
3764 | Clear(); |
3765 | MergeFrom(from); |
3766 | } |
3767 | |
3768 | bool HeartbeatResponse::IsInitialized() const { |
3769 | return true; |
3770 | } |
3771 | |
3772 | void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) { |
3773 | using std::swap; |
3774 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3775 | swap(leader_incarnation_, other->leader_incarnation_); |
3776 | } |
3777 | |
3778 | ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const { |
3779 | return GetMetadataStatic(); |
3780 | } |
3781 | |
3782 | |
3783 | // =================================================================== |
3784 | |
3785 | void WaitForAllTasksRequest::InitAsDefaultInstance() { |
3786 | ::tensorflow::_WaitForAllTasksRequest_default_instance_._instance.get_mutable()->local_device_info_ = const_cast< ::tensorflow::CoordinationServiceDeviceInfo*>( |
3787 | ::tensorflow::CoordinationServiceDeviceInfo::internal_default_instance()); |
3788 | ::tensorflow::_WaitForAllTasksRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
3789 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
3790 | } |
3791 | class WaitForAllTasksRequest::_Internal { |
3792 | public: |
3793 | static const ::tensorflow::CoordinationServiceDeviceInfo& local_device_info(const WaitForAllTasksRequest* msg); |
3794 | static const ::tensorflow::CoordinatedTask& source_task(const WaitForAllTasksRequest* msg); |
3795 | }; |
3796 | |
3797 | const ::tensorflow::CoordinationServiceDeviceInfo& |
3798 | WaitForAllTasksRequest::_Internal::local_device_info(const WaitForAllTasksRequest* msg) { |
3799 | return *msg->local_device_info_; |
3800 | } |
3801 | const ::tensorflow::CoordinatedTask& |
3802 | WaitForAllTasksRequest::_Internal::source_task(const WaitForAllTasksRequest* msg) { |
3803 | return *msg->source_task_; |
3804 | } |
3805 | WaitForAllTasksRequest::WaitForAllTasksRequest() |
3806 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3807 | SharedCtor(); |
3808 | // @@protoc_insertion_point(constructor:tensorflow.WaitForAllTasksRequest) |
3809 | } |
3810 | WaitForAllTasksRequest::WaitForAllTasksRequest(const WaitForAllTasksRequest& from) |
3811 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3812 | _internal_metadata_(nullptr) { |
3813 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3814 | if (from.has_local_device_info()) { |
3815 | local_device_info_ = new ::tensorflow::CoordinationServiceDeviceInfo(*from.local_device_info_); |
3816 | } else { |
3817 | local_device_info_ = nullptr; |
3818 | } |
3819 | if (from.has_source_task()) { |
3820 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
3821 | } else { |
3822 | source_task_ = nullptr; |
3823 | } |
3824 | // @@protoc_insertion_point(copy_constructor:tensorflow.WaitForAllTasksRequest) |
3825 | } |
3826 | |
3827 | void WaitForAllTasksRequest::SharedCtor() { |
3828 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3829 | ::memset(&local_device_info_, 0, static_cast<size_t>( |
3830 | reinterpret_cast<char*>(&source_task_) - |
3831 | reinterpret_cast<char*>(&local_device_info_)) + sizeof(source_task_)); |
3832 | } |
3833 | |
3834 | WaitForAllTasksRequest::~WaitForAllTasksRequest() { |
3835 | // @@protoc_insertion_point(destructor:tensorflow.WaitForAllTasksRequest) |
3836 | SharedDtor(); |
3837 | } |
3838 | |
3839 | void WaitForAllTasksRequest::SharedDtor() { |
3840 | if (this != internal_default_instance()) delete local_device_info_; |
3841 | if (this != internal_default_instance()) delete source_task_; |
3842 | } |
3843 | |
3844 | void WaitForAllTasksRequest::SetCachedSize(int size) const { |
3845 | _cached_size_.Set(size); |
3846 | } |
3847 | const WaitForAllTasksRequest& WaitForAllTasksRequest::default_instance() { |
3848 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WaitForAllTasksRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
3849 | return *internal_default_instance(); |
3850 | } |
3851 | |
3852 | |
3853 | void WaitForAllTasksRequest::Clear() { |
3854 | // @@protoc_insertion_point(message_clear_start:tensorflow.WaitForAllTasksRequest) |
3855 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3856 | // Prevent compiler warnings about cached_has_bits being unused |
3857 | (void) cached_has_bits; |
3858 | |
3859 | if (GetArenaNoVirtual() == nullptr && local_device_info_ != nullptr) { |
3860 | delete local_device_info_; |
3861 | } |
3862 | local_device_info_ = nullptr; |
3863 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
3864 | delete source_task_; |
3865 | } |
3866 | source_task_ = nullptr; |
3867 | _internal_metadata_.Clear(); |
3868 | } |
3869 | |
3870 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3871 | const char* WaitForAllTasksRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3872 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3873 | while (!ctx->Done(&ptr)) { |
3874 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3875 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3876 | CHK_(ptr); |
3877 | switch (tag >> 3) { |
3878 | // .tensorflow.CoordinationServiceDeviceInfo local_device_info = 4; |
3879 | case 4: |
3880 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
3881 | ptr = ctx->ParseMessage(mutable_local_device_info(), ptr); |
3882 | CHK_(ptr); |
3883 | } else goto handle_unusual; |
3884 | continue; |
3885 | // .tensorflow.CoordinatedTask source_task = 5; |
3886 | case 5: |
3887 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
3888 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
3889 | CHK_(ptr); |
3890 | } else goto handle_unusual; |
3891 | continue; |
3892 | default: { |
3893 | handle_unusual: |
3894 | if ((tag & 7) == 4 || tag == 0) { |
3895 | ctx->SetLastTag(tag); |
3896 | goto success; |
3897 | } |
3898 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3899 | CHK_(ptr != nullptr); |
3900 | continue; |
3901 | } |
3902 | } // switch |
3903 | } // while |
3904 | success: |
3905 | return ptr; |
3906 | failure: |
3907 | ptr = nullptr; |
3908 | goto success; |
3909 | #undef CHK_ |
3910 | } |
3911 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3912 | bool WaitForAllTasksRequest::MergePartialFromCodedStream( |
3913 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3914 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3915 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3916 | // @@protoc_insertion_point(parse_start:tensorflow.WaitForAllTasksRequest) |
3917 | for (;;) { |
3918 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3919 | tag = p.first; |
3920 | if (!p.second) goto handle_unusual; |
3921 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3922 | // .tensorflow.CoordinationServiceDeviceInfo local_device_info = 4; |
3923 | case 4: { |
3924 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
3925 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3926 | input, mutable_local_device_info())); |
3927 | } else { |
3928 | goto handle_unusual; |
3929 | } |
3930 | break; |
3931 | } |
3932 | |
3933 | // .tensorflow.CoordinatedTask source_task = 5; |
3934 | case 5: { |
3935 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
3936 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3937 | input, mutable_source_task())); |
3938 | } else { |
3939 | goto handle_unusual; |
3940 | } |
3941 | break; |
3942 | } |
3943 | |
3944 | default: { |
3945 | handle_unusual: |
3946 | if (tag == 0) { |
3947 | goto success; |
3948 | } |
3949 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3950 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3951 | break; |
3952 | } |
3953 | } |
3954 | } |
3955 | success: |
3956 | // @@protoc_insertion_point(parse_success:tensorflow.WaitForAllTasksRequest) |
3957 | return true; |
3958 | failure: |
3959 | // @@protoc_insertion_point(parse_failure:tensorflow.WaitForAllTasksRequest) |
3960 | return false; |
3961 | #undef DO_ |
3962 | } |
3963 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3964 | |
3965 | void WaitForAllTasksRequest::SerializeWithCachedSizes( |
3966 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3967 | // @@protoc_insertion_point(serialize_start:tensorflow.WaitForAllTasksRequest) |
3968 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3969 | (void) cached_has_bits; |
3970 | |
3971 | // .tensorflow.CoordinationServiceDeviceInfo local_device_info = 4; |
3972 | if (this->has_local_device_info()) { |
3973 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3974 | 4, _Internal::local_device_info(this), output); |
3975 | } |
3976 | |
3977 | // .tensorflow.CoordinatedTask source_task = 5; |
3978 | if (this->has_source_task()) { |
3979 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3980 | 5, _Internal::source_task(this), output); |
3981 | } |
3982 | |
3983 | if (_internal_metadata_.have_unknown_fields()) { |
3984 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3985 | _internal_metadata_.unknown_fields(), output); |
3986 | } |
3987 | // @@protoc_insertion_point(serialize_end:tensorflow.WaitForAllTasksRequest) |
3988 | } |
3989 | |
3990 | ::PROTOBUF_NAMESPACE_ID::uint8* WaitForAllTasksRequest::InternalSerializeWithCachedSizesToArray( |
3991 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3992 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.WaitForAllTasksRequest) |
3993 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3994 | (void) cached_has_bits; |
3995 | |
3996 | // .tensorflow.CoordinationServiceDeviceInfo local_device_info = 4; |
3997 | if (this->has_local_device_info()) { |
3998 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3999 | InternalWriteMessageToArray( |
4000 | 4, _Internal::local_device_info(this), target); |
4001 | } |
4002 | |
4003 | // .tensorflow.CoordinatedTask source_task = 5; |
4004 | if (this->has_source_task()) { |
4005 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4006 | InternalWriteMessageToArray( |
4007 | 5, _Internal::source_task(this), target); |
4008 | } |
4009 | |
4010 | if (_internal_metadata_.have_unknown_fields()) { |
4011 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4012 | _internal_metadata_.unknown_fields(), target); |
4013 | } |
4014 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.WaitForAllTasksRequest) |
4015 | return target; |
4016 | } |
4017 | |
4018 | size_t WaitForAllTasksRequest::ByteSizeLong() const { |
4019 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.WaitForAllTasksRequest) |
4020 | size_t total_size = 0; |
4021 | |
4022 | if (_internal_metadata_.have_unknown_fields()) { |
4023 | total_size += |
4024 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4025 | _internal_metadata_.unknown_fields()); |
4026 | } |
4027 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4028 | // Prevent compiler warnings about cached_has_bits being unused |
4029 | (void) cached_has_bits; |
4030 | |
4031 | // .tensorflow.CoordinationServiceDeviceInfo local_device_info = 4; |
4032 | if (this->has_local_device_info()) { |
4033 | total_size += 1 + |
4034 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4035 | *local_device_info_); |
4036 | } |
4037 | |
4038 | // .tensorflow.CoordinatedTask source_task = 5; |
4039 | if (this->has_source_task()) { |
4040 | total_size += 1 + |
4041 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4042 | *source_task_); |
4043 | } |
4044 | |
4045 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4046 | SetCachedSize(cached_size); |
4047 | return total_size; |
4048 | } |
4049 | |
4050 | void WaitForAllTasksRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4051 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.WaitForAllTasksRequest) |
4052 | GOOGLE_DCHECK_NE(&from, this); |
4053 | const WaitForAllTasksRequest* source = |
4054 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WaitForAllTasksRequest>( |
4055 | &from); |
4056 | if (source == nullptr) { |
4057 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.WaitForAllTasksRequest) |
4058 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4059 | } else { |
4060 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.WaitForAllTasksRequest) |
4061 | MergeFrom(*source); |
4062 | } |
4063 | } |
4064 | |
4065 | void WaitForAllTasksRequest::MergeFrom(const WaitForAllTasksRequest& from) { |
4066 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.WaitForAllTasksRequest) |
4067 | GOOGLE_DCHECK_NE(&from, this); |
4068 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4069 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4070 | (void) cached_has_bits; |
4071 | |
4072 | if (from.has_local_device_info()) { |
4073 | mutable_local_device_info()->::tensorflow::CoordinationServiceDeviceInfo::MergeFrom(from.local_device_info()); |
4074 | } |
4075 | if (from.has_source_task()) { |
4076 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
4077 | } |
4078 | } |
4079 | |
4080 | void WaitForAllTasksRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4081 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.WaitForAllTasksRequest) |
4082 | if (&from == this) return; |
4083 | Clear(); |
4084 | MergeFrom(from); |
4085 | } |
4086 | |
4087 | void WaitForAllTasksRequest::CopyFrom(const WaitForAllTasksRequest& from) { |
4088 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.WaitForAllTasksRequest) |
4089 | if (&from == this) return; |
4090 | Clear(); |
4091 | MergeFrom(from); |
4092 | } |
4093 | |
4094 | bool WaitForAllTasksRequest::IsInitialized() const { |
4095 | return true; |
4096 | } |
4097 | |
4098 | void WaitForAllTasksRequest::InternalSwap(WaitForAllTasksRequest* other) { |
4099 | using std::swap; |
4100 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4101 | swap(local_device_info_, other->local_device_info_); |
4102 | swap(source_task_, other->source_task_); |
4103 | } |
4104 | |
4105 | ::PROTOBUF_NAMESPACE_ID::Metadata WaitForAllTasksRequest::GetMetadata() const { |
4106 | return GetMetadataStatic(); |
4107 | } |
4108 | |
4109 | |
4110 | // =================================================================== |
4111 | |
4112 | void WaitForAllTasksResponse::InitAsDefaultInstance() { |
4113 | ::tensorflow::_WaitForAllTasksResponse_default_instance_._instance.get_mutable()->cluster_device_info_ = const_cast< ::tensorflow::CoordinationServiceDeviceInfo*>( |
4114 | ::tensorflow::CoordinationServiceDeviceInfo::internal_default_instance()); |
4115 | } |
4116 | class WaitForAllTasksResponse::_Internal { |
4117 | public: |
4118 | static const ::tensorflow::CoordinationServiceDeviceInfo& cluster_device_info(const WaitForAllTasksResponse* msg); |
4119 | }; |
4120 | |
4121 | const ::tensorflow::CoordinationServiceDeviceInfo& |
4122 | WaitForAllTasksResponse::_Internal::cluster_device_info(const WaitForAllTasksResponse* msg) { |
4123 | return *msg->cluster_device_info_; |
4124 | } |
4125 | WaitForAllTasksResponse::WaitForAllTasksResponse() |
4126 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4127 | SharedCtor(); |
4128 | // @@protoc_insertion_point(constructor:tensorflow.WaitForAllTasksResponse) |
4129 | } |
4130 | WaitForAllTasksResponse::WaitForAllTasksResponse(const WaitForAllTasksResponse& from) |
4131 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4132 | _internal_metadata_(nullptr) { |
4133 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4134 | if (from.has_cluster_device_info()) { |
4135 | cluster_device_info_ = new ::tensorflow::CoordinationServiceDeviceInfo(*from.cluster_device_info_); |
4136 | } else { |
4137 | cluster_device_info_ = nullptr; |
4138 | } |
4139 | leader_incarnation_ = from.leader_incarnation_; |
4140 | // @@protoc_insertion_point(copy_constructor:tensorflow.WaitForAllTasksResponse) |
4141 | } |
4142 | |
4143 | void WaitForAllTasksResponse::SharedCtor() { |
4144 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4145 | ::memset(&cluster_device_info_, 0, static_cast<size_t>( |
4146 | reinterpret_cast<char*>(&leader_incarnation_) - |
4147 | reinterpret_cast<char*>(&cluster_device_info_)) + sizeof(leader_incarnation_)); |
4148 | } |
4149 | |
4150 | WaitForAllTasksResponse::~WaitForAllTasksResponse() { |
4151 | // @@protoc_insertion_point(destructor:tensorflow.WaitForAllTasksResponse) |
4152 | SharedDtor(); |
4153 | } |
4154 | |
4155 | void WaitForAllTasksResponse::SharedDtor() { |
4156 | if (this != internal_default_instance()) delete cluster_device_info_; |
4157 | } |
4158 | |
4159 | void WaitForAllTasksResponse::SetCachedSize(int size) const { |
4160 | _cached_size_.Set(size); |
4161 | } |
4162 | const WaitForAllTasksResponse& WaitForAllTasksResponse::default_instance() { |
4163 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WaitForAllTasksResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4164 | return *internal_default_instance(); |
4165 | } |
4166 | |
4167 | |
4168 | void WaitForAllTasksResponse::Clear() { |
4169 | // @@protoc_insertion_point(message_clear_start:tensorflow.WaitForAllTasksResponse) |
4170 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4171 | // Prevent compiler warnings about cached_has_bits being unused |
4172 | (void) cached_has_bits; |
4173 | |
4174 | if (GetArenaNoVirtual() == nullptr && cluster_device_info_ != nullptr) { |
4175 | delete cluster_device_info_; |
4176 | } |
4177 | cluster_device_info_ = nullptr; |
4178 | leader_incarnation_ = PROTOBUF_ULONGLONG(0); |
4179 | _internal_metadata_.Clear(); |
4180 | } |
4181 | |
4182 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4183 | const char* WaitForAllTasksResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4184 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4185 | while (!ctx->Done(&ptr)) { |
4186 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4187 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4188 | CHK_(ptr); |
4189 | switch (tag >> 3) { |
4190 | // fixed64 leader_incarnation = 1; |
4191 | case 1: |
4192 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
4193 | leader_incarnation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr); |
4194 | ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64); |
4195 | } else goto handle_unusual; |
4196 | continue; |
4197 | // .tensorflow.CoordinationServiceDeviceInfo cluster_device_info = 3; |
4198 | case 3: |
4199 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
4200 | ptr = ctx->ParseMessage(mutable_cluster_device_info(), ptr); |
4201 | CHK_(ptr); |
4202 | } else goto handle_unusual; |
4203 | continue; |
4204 | default: { |
4205 | handle_unusual: |
4206 | if ((tag & 7) == 4 || tag == 0) { |
4207 | ctx->SetLastTag(tag); |
4208 | goto success; |
4209 | } |
4210 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4211 | CHK_(ptr != nullptr); |
4212 | continue; |
4213 | } |
4214 | } // switch |
4215 | } // while |
4216 | success: |
4217 | return ptr; |
4218 | failure: |
4219 | ptr = nullptr; |
4220 | goto success; |
4221 | #undef CHK_ |
4222 | } |
4223 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4224 | bool WaitForAllTasksResponse::MergePartialFromCodedStream( |
4225 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4226 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4227 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4228 | // @@protoc_insertion_point(parse_start:tensorflow.WaitForAllTasksResponse) |
4229 | for (;;) { |
4230 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4231 | tag = p.first; |
4232 | if (!p.second) goto handle_unusual; |
4233 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4234 | // fixed64 leader_incarnation = 1; |
4235 | case 1: { |
4236 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { |
4237 | |
4238 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
4239 | ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>( |
4240 | input, &leader_incarnation_))); |
4241 | } else { |
4242 | goto handle_unusual; |
4243 | } |
4244 | break; |
4245 | } |
4246 | |
4247 | // .tensorflow.CoordinationServiceDeviceInfo cluster_device_info = 3; |
4248 | case 3: { |
4249 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
4250 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4251 | input, mutable_cluster_device_info())); |
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 | } |
4269 | success: |
4270 | // @@protoc_insertion_point(parse_success:tensorflow.WaitForAllTasksResponse) |
4271 | return true; |
4272 | failure: |
4273 | // @@protoc_insertion_point(parse_failure:tensorflow.WaitForAllTasksResponse) |
4274 | return false; |
4275 | #undef DO_ |
4276 | } |
4277 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4278 | |
4279 | void WaitForAllTasksResponse::SerializeWithCachedSizes( |
4280 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4281 | // @@protoc_insertion_point(serialize_start:tensorflow.WaitForAllTasksResponse) |
4282 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4283 | (void) cached_has_bits; |
4284 | |
4285 | // fixed64 leader_incarnation = 1; |
4286 | if (this->leader_incarnation() != 0) { |
4287 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->leader_incarnation(), output); |
4288 | } |
4289 | |
4290 | // .tensorflow.CoordinationServiceDeviceInfo cluster_device_info = 3; |
4291 | if (this->has_cluster_device_info()) { |
4292 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4293 | 3, _Internal::cluster_device_info(this), output); |
4294 | } |
4295 | |
4296 | if (_internal_metadata_.have_unknown_fields()) { |
4297 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4298 | _internal_metadata_.unknown_fields(), output); |
4299 | } |
4300 | // @@protoc_insertion_point(serialize_end:tensorflow.WaitForAllTasksResponse) |
4301 | } |
4302 | |
4303 | ::PROTOBUF_NAMESPACE_ID::uint8* WaitForAllTasksResponse::InternalSerializeWithCachedSizesToArray( |
4304 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4305 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.WaitForAllTasksResponse) |
4306 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4307 | (void) cached_has_bits; |
4308 | |
4309 | // fixed64 leader_incarnation = 1; |
4310 | if (this->leader_incarnation() != 0) { |
4311 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->leader_incarnation(), target); |
4312 | } |
4313 | |
4314 | // .tensorflow.CoordinationServiceDeviceInfo cluster_device_info = 3; |
4315 | if (this->has_cluster_device_info()) { |
4316 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4317 | InternalWriteMessageToArray( |
4318 | 3, _Internal::cluster_device_info(this), target); |
4319 | } |
4320 | |
4321 | if (_internal_metadata_.have_unknown_fields()) { |
4322 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4323 | _internal_metadata_.unknown_fields(), target); |
4324 | } |
4325 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.WaitForAllTasksResponse) |
4326 | return target; |
4327 | } |
4328 | |
4329 | size_t WaitForAllTasksResponse::ByteSizeLong() const { |
4330 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.WaitForAllTasksResponse) |
4331 | size_t total_size = 0; |
4332 | |
4333 | if (_internal_metadata_.have_unknown_fields()) { |
4334 | total_size += |
4335 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4336 | _internal_metadata_.unknown_fields()); |
4337 | } |
4338 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4339 | // Prevent compiler warnings about cached_has_bits being unused |
4340 | (void) cached_has_bits; |
4341 | |
4342 | // .tensorflow.CoordinationServiceDeviceInfo cluster_device_info = 3; |
4343 | if (this->has_cluster_device_info()) { |
4344 | total_size += 1 + |
4345 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4346 | *cluster_device_info_); |
4347 | } |
4348 | |
4349 | // fixed64 leader_incarnation = 1; |
4350 | if (this->leader_incarnation() != 0) { |
4351 | total_size += 1 + 8; |
4352 | } |
4353 | |
4354 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4355 | SetCachedSize(cached_size); |
4356 | return total_size; |
4357 | } |
4358 | |
4359 | void WaitForAllTasksResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4360 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.WaitForAllTasksResponse) |
4361 | GOOGLE_DCHECK_NE(&from, this); |
4362 | const WaitForAllTasksResponse* source = |
4363 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WaitForAllTasksResponse>( |
4364 | &from); |
4365 | if (source == nullptr) { |
4366 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.WaitForAllTasksResponse) |
4367 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4368 | } else { |
4369 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.WaitForAllTasksResponse) |
4370 | MergeFrom(*source); |
4371 | } |
4372 | } |
4373 | |
4374 | void WaitForAllTasksResponse::MergeFrom(const WaitForAllTasksResponse& from) { |
4375 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.WaitForAllTasksResponse) |
4376 | GOOGLE_DCHECK_NE(&from, this); |
4377 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4378 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4379 | (void) cached_has_bits; |
4380 | |
4381 | if (from.has_cluster_device_info()) { |
4382 | mutable_cluster_device_info()->::tensorflow::CoordinationServiceDeviceInfo::MergeFrom(from.cluster_device_info()); |
4383 | } |
4384 | if (from.leader_incarnation() != 0) { |
4385 | set_leader_incarnation(from.leader_incarnation()); |
4386 | } |
4387 | } |
4388 | |
4389 | void WaitForAllTasksResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4390 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.WaitForAllTasksResponse) |
4391 | if (&from == this) return; |
4392 | Clear(); |
4393 | MergeFrom(from); |
4394 | } |
4395 | |
4396 | void WaitForAllTasksResponse::CopyFrom(const WaitForAllTasksResponse& from) { |
4397 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.WaitForAllTasksResponse) |
4398 | if (&from == this) return; |
4399 | Clear(); |
4400 | MergeFrom(from); |
4401 | } |
4402 | |
4403 | bool WaitForAllTasksResponse::IsInitialized() const { |
4404 | return true; |
4405 | } |
4406 | |
4407 | void WaitForAllTasksResponse::InternalSwap(WaitForAllTasksResponse* other) { |
4408 | using std::swap; |
4409 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4410 | swap(cluster_device_info_, other->cluster_device_info_); |
4411 | swap(leader_incarnation_, other->leader_incarnation_); |
4412 | } |
4413 | |
4414 | ::PROTOBUF_NAMESPACE_ID::Metadata WaitForAllTasksResponse::GetMetadata() const { |
4415 | return GetMetadataStatic(); |
4416 | } |
4417 | |
4418 | |
4419 | // =================================================================== |
4420 | |
4421 | void ShutdownTaskRequest::InitAsDefaultInstance() { |
4422 | ::tensorflow::_ShutdownTaskRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
4423 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
4424 | } |
4425 | class ShutdownTaskRequest::_Internal { |
4426 | public: |
4427 | static const ::tensorflow::CoordinatedTask& source_task(const ShutdownTaskRequest* msg); |
4428 | }; |
4429 | |
4430 | const ::tensorflow::CoordinatedTask& |
4431 | ShutdownTaskRequest::_Internal::source_task(const ShutdownTaskRequest* msg) { |
4432 | return *msg->source_task_; |
4433 | } |
4434 | ShutdownTaskRequest::ShutdownTaskRequest() |
4435 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4436 | SharedCtor(); |
4437 | // @@protoc_insertion_point(constructor:tensorflow.ShutdownTaskRequest) |
4438 | } |
4439 | ShutdownTaskRequest::ShutdownTaskRequest(const ShutdownTaskRequest& from) |
4440 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4441 | _internal_metadata_(nullptr) { |
4442 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4443 | if (from.has_source_task()) { |
4444 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
4445 | } else { |
4446 | source_task_ = nullptr; |
4447 | } |
4448 | // @@protoc_insertion_point(copy_constructor:tensorflow.ShutdownTaskRequest) |
4449 | } |
4450 | |
4451 | void ShutdownTaskRequest::SharedCtor() { |
4452 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4453 | source_task_ = nullptr; |
4454 | } |
4455 | |
4456 | ShutdownTaskRequest::~ShutdownTaskRequest() { |
4457 | // @@protoc_insertion_point(destructor:tensorflow.ShutdownTaskRequest) |
4458 | SharedDtor(); |
4459 | } |
4460 | |
4461 | void ShutdownTaskRequest::SharedDtor() { |
4462 | if (this != internal_default_instance()) delete source_task_; |
4463 | } |
4464 | |
4465 | void ShutdownTaskRequest::SetCachedSize(int size) const { |
4466 | _cached_size_.Set(size); |
4467 | } |
4468 | const ShutdownTaskRequest& ShutdownTaskRequest::default_instance() { |
4469 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShutdownTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4470 | return *internal_default_instance(); |
4471 | } |
4472 | |
4473 | |
4474 | void ShutdownTaskRequest::Clear() { |
4475 | // @@protoc_insertion_point(message_clear_start:tensorflow.ShutdownTaskRequest) |
4476 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4477 | // Prevent compiler warnings about cached_has_bits being unused |
4478 | (void) cached_has_bits; |
4479 | |
4480 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
4481 | delete source_task_; |
4482 | } |
4483 | source_task_ = nullptr; |
4484 | _internal_metadata_.Clear(); |
4485 | } |
4486 | |
4487 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4488 | const char* ShutdownTaskRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4489 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4490 | while (!ctx->Done(&ptr)) { |
4491 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4492 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4493 | CHK_(ptr); |
4494 | switch (tag >> 3) { |
4495 | // .tensorflow.CoordinatedTask source_task = 1; |
4496 | case 1: |
4497 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4498 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
4499 | CHK_(ptr); |
4500 | } else goto handle_unusual; |
4501 | continue; |
4502 | default: { |
4503 | handle_unusual: |
4504 | if ((tag & 7) == 4 || tag == 0) { |
4505 | ctx->SetLastTag(tag); |
4506 | goto success; |
4507 | } |
4508 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4509 | CHK_(ptr != nullptr); |
4510 | continue; |
4511 | } |
4512 | } // switch |
4513 | } // while |
4514 | success: |
4515 | return ptr; |
4516 | failure: |
4517 | ptr = nullptr; |
4518 | goto success; |
4519 | #undef CHK_ |
4520 | } |
4521 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4522 | bool ShutdownTaskRequest::MergePartialFromCodedStream( |
4523 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4524 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4525 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4526 | // @@protoc_insertion_point(parse_start:tensorflow.ShutdownTaskRequest) |
4527 | for (;;) { |
4528 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4529 | tag = p.first; |
4530 | if (!p.second) goto handle_unusual; |
4531 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4532 | // .tensorflow.CoordinatedTask source_task = 1; |
4533 | case 1: { |
4534 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
4535 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4536 | input, mutable_source_task())); |
4537 | } else { |
4538 | goto handle_unusual; |
4539 | } |
4540 | break; |
4541 | } |
4542 | |
4543 | default: { |
4544 | handle_unusual: |
4545 | if (tag == 0) { |
4546 | goto success; |
4547 | } |
4548 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4549 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4550 | break; |
4551 | } |
4552 | } |
4553 | } |
4554 | success: |
4555 | // @@protoc_insertion_point(parse_success:tensorflow.ShutdownTaskRequest) |
4556 | return true; |
4557 | failure: |
4558 | // @@protoc_insertion_point(parse_failure:tensorflow.ShutdownTaskRequest) |
4559 | return false; |
4560 | #undef DO_ |
4561 | } |
4562 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4563 | |
4564 | void ShutdownTaskRequest::SerializeWithCachedSizes( |
4565 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4566 | // @@protoc_insertion_point(serialize_start:tensorflow.ShutdownTaskRequest) |
4567 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4568 | (void) cached_has_bits; |
4569 | |
4570 | // .tensorflow.CoordinatedTask source_task = 1; |
4571 | if (this->has_source_task()) { |
4572 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4573 | 1, _Internal::source_task(this), output); |
4574 | } |
4575 | |
4576 | if (_internal_metadata_.have_unknown_fields()) { |
4577 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4578 | _internal_metadata_.unknown_fields(), output); |
4579 | } |
4580 | // @@protoc_insertion_point(serialize_end:tensorflow.ShutdownTaskRequest) |
4581 | } |
4582 | |
4583 | ::PROTOBUF_NAMESPACE_ID::uint8* ShutdownTaskRequest::InternalSerializeWithCachedSizesToArray( |
4584 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4585 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ShutdownTaskRequest) |
4586 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4587 | (void) cached_has_bits; |
4588 | |
4589 | // .tensorflow.CoordinatedTask source_task = 1; |
4590 | if (this->has_source_task()) { |
4591 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4592 | InternalWriteMessageToArray( |
4593 | 1, _Internal::source_task(this), target); |
4594 | } |
4595 | |
4596 | if (_internal_metadata_.have_unknown_fields()) { |
4597 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4598 | _internal_metadata_.unknown_fields(), target); |
4599 | } |
4600 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ShutdownTaskRequest) |
4601 | return target; |
4602 | } |
4603 | |
4604 | size_t ShutdownTaskRequest::ByteSizeLong() const { |
4605 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ShutdownTaskRequest) |
4606 | size_t total_size = 0; |
4607 | |
4608 | if (_internal_metadata_.have_unknown_fields()) { |
4609 | total_size += |
4610 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4611 | _internal_metadata_.unknown_fields()); |
4612 | } |
4613 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4614 | // Prevent compiler warnings about cached_has_bits being unused |
4615 | (void) cached_has_bits; |
4616 | |
4617 | // .tensorflow.CoordinatedTask source_task = 1; |
4618 | if (this->has_source_task()) { |
4619 | total_size += 1 + |
4620 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4621 | *source_task_); |
4622 | } |
4623 | |
4624 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4625 | SetCachedSize(cached_size); |
4626 | return total_size; |
4627 | } |
4628 | |
4629 | void ShutdownTaskRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4630 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ShutdownTaskRequest) |
4631 | GOOGLE_DCHECK_NE(&from, this); |
4632 | const ShutdownTaskRequest* source = |
4633 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShutdownTaskRequest>( |
4634 | &from); |
4635 | if (source == nullptr) { |
4636 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ShutdownTaskRequest) |
4637 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4638 | } else { |
4639 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ShutdownTaskRequest) |
4640 | MergeFrom(*source); |
4641 | } |
4642 | } |
4643 | |
4644 | void ShutdownTaskRequest::MergeFrom(const ShutdownTaskRequest& from) { |
4645 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ShutdownTaskRequest) |
4646 | GOOGLE_DCHECK_NE(&from, this); |
4647 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4648 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4649 | (void) cached_has_bits; |
4650 | |
4651 | if (from.has_source_task()) { |
4652 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
4653 | } |
4654 | } |
4655 | |
4656 | void ShutdownTaskRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4657 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ShutdownTaskRequest) |
4658 | if (&from == this) return; |
4659 | Clear(); |
4660 | MergeFrom(from); |
4661 | } |
4662 | |
4663 | void ShutdownTaskRequest::CopyFrom(const ShutdownTaskRequest& from) { |
4664 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ShutdownTaskRequest) |
4665 | if (&from == this) return; |
4666 | Clear(); |
4667 | MergeFrom(from); |
4668 | } |
4669 | |
4670 | bool ShutdownTaskRequest::IsInitialized() const { |
4671 | return true; |
4672 | } |
4673 | |
4674 | void ShutdownTaskRequest::InternalSwap(ShutdownTaskRequest* other) { |
4675 | using std::swap; |
4676 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4677 | swap(source_task_, other->source_task_); |
4678 | } |
4679 | |
4680 | ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownTaskRequest::GetMetadata() const { |
4681 | return GetMetadataStatic(); |
4682 | } |
4683 | |
4684 | |
4685 | // =================================================================== |
4686 | |
4687 | void ShutdownTaskResponse::InitAsDefaultInstance() { |
4688 | } |
4689 | class ShutdownTaskResponse::_Internal { |
4690 | public: |
4691 | }; |
4692 | |
4693 | ShutdownTaskResponse::ShutdownTaskResponse() |
4694 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4695 | SharedCtor(); |
4696 | // @@protoc_insertion_point(constructor:tensorflow.ShutdownTaskResponse) |
4697 | } |
4698 | ShutdownTaskResponse::ShutdownTaskResponse(const ShutdownTaskResponse& from) |
4699 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4700 | _internal_metadata_(nullptr) { |
4701 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4702 | // @@protoc_insertion_point(copy_constructor:tensorflow.ShutdownTaskResponse) |
4703 | } |
4704 | |
4705 | void ShutdownTaskResponse::SharedCtor() { |
4706 | } |
4707 | |
4708 | ShutdownTaskResponse::~ShutdownTaskResponse() { |
4709 | // @@protoc_insertion_point(destructor:tensorflow.ShutdownTaskResponse) |
4710 | SharedDtor(); |
4711 | } |
4712 | |
4713 | void ShutdownTaskResponse::SharedDtor() { |
4714 | } |
4715 | |
4716 | void ShutdownTaskResponse::SetCachedSize(int size) const { |
4717 | _cached_size_.Set(size); |
4718 | } |
4719 | const ShutdownTaskResponse& ShutdownTaskResponse::default_instance() { |
4720 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShutdownTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4721 | return *internal_default_instance(); |
4722 | } |
4723 | |
4724 | |
4725 | void ShutdownTaskResponse::Clear() { |
4726 | // @@protoc_insertion_point(message_clear_start:tensorflow.ShutdownTaskResponse) |
4727 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4728 | // Prevent compiler warnings about cached_has_bits being unused |
4729 | (void) cached_has_bits; |
4730 | |
4731 | _internal_metadata_.Clear(); |
4732 | } |
4733 | |
4734 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4735 | const char* ShutdownTaskResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4736 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4737 | while (!ctx->Done(&ptr)) { |
4738 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4739 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4740 | CHK_(ptr); |
4741 | switch (tag >> 3) { |
4742 | default: { |
4743 | if ((tag & 7) == 4 || tag == 0) { |
4744 | ctx->SetLastTag(tag); |
4745 | goto success; |
4746 | } |
4747 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4748 | CHK_(ptr != nullptr); |
4749 | continue; |
4750 | } |
4751 | } // switch |
4752 | } // while |
4753 | success: |
4754 | return ptr; |
4755 | failure: |
4756 | ptr = nullptr; |
4757 | goto success; |
4758 | #undef CHK_ |
4759 | } |
4760 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4761 | bool ShutdownTaskResponse::MergePartialFromCodedStream( |
4762 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4763 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4764 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4765 | // @@protoc_insertion_point(parse_start:tensorflow.ShutdownTaskResponse) |
4766 | for (;;) { |
4767 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4768 | tag = p.first; |
4769 | if (!p.second) goto handle_unusual; |
4770 | handle_unusual: |
4771 | if (tag == 0) { |
4772 | goto success; |
4773 | } |
4774 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4775 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4776 | } |
4777 | success: |
4778 | // @@protoc_insertion_point(parse_success:tensorflow.ShutdownTaskResponse) |
4779 | return true; |
4780 | failure: |
4781 | // @@protoc_insertion_point(parse_failure:tensorflow.ShutdownTaskResponse) |
4782 | return false; |
4783 | #undef DO_ |
4784 | } |
4785 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4786 | |
4787 | void ShutdownTaskResponse::SerializeWithCachedSizes( |
4788 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4789 | // @@protoc_insertion_point(serialize_start:tensorflow.ShutdownTaskResponse) |
4790 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4791 | (void) cached_has_bits; |
4792 | |
4793 | if (_internal_metadata_.have_unknown_fields()) { |
4794 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4795 | _internal_metadata_.unknown_fields(), output); |
4796 | } |
4797 | // @@protoc_insertion_point(serialize_end:tensorflow.ShutdownTaskResponse) |
4798 | } |
4799 | |
4800 | ::PROTOBUF_NAMESPACE_ID::uint8* ShutdownTaskResponse::InternalSerializeWithCachedSizesToArray( |
4801 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4802 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ShutdownTaskResponse) |
4803 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4804 | (void) cached_has_bits; |
4805 | |
4806 | if (_internal_metadata_.have_unknown_fields()) { |
4807 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4808 | _internal_metadata_.unknown_fields(), target); |
4809 | } |
4810 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ShutdownTaskResponse) |
4811 | return target; |
4812 | } |
4813 | |
4814 | size_t ShutdownTaskResponse::ByteSizeLong() const { |
4815 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ShutdownTaskResponse) |
4816 | size_t total_size = 0; |
4817 | |
4818 | if (_internal_metadata_.have_unknown_fields()) { |
4819 | total_size += |
4820 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4821 | _internal_metadata_.unknown_fields()); |
4822 | } |
4823 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4824 | // Prevent compiler warnings about cached_has_bits being unused |
4825 | (void) cached_has_bits; |
4826 | |
4827 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4828 | SetCachedSize(cached_size); |
4829 | return total_size; |
4830 | } |
4831 | |
4832 | void ShutdownTaskResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4833 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ShutdownTaskResponse) |
4834 | GOOGLE_DCHECK_NE(&from, this); |
4835 | const ShutdownTaskResponse* source = |
4836 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShutdownTaskResponse>( |
4837 | &from); |
4838 | if (source == nullptr) { |
4839 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ShutdownTaskResponse) |
4840 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4841 | } else { |
4842 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ShutdownTaskResponse) |
4843 | MergeFrom(*source); |
4844 | } |
4845 | } |
4846 | |
4847 | void ShutdownTaskResponse::MergeFrom(const ShutdownTaskResponse& from) { |
4848 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ShutdownTaskResponse) |
4849 | GOOGLE_DCHECK_NE(&from, this); |
4850 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4851 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4852 | (void) cached_has_bits; |
4853 | |
4854 | } |
4855 | |
4856 | void ShutdownTaskResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4857 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ShutdownTaskResponse) |
4858 | if (&from == this) return; |
4859 | Clear(); |
4860 | MergeFrom(from); |
4861 | } |
4862 | |
4863 | void ShutdownTaskResponse::CopyFrom(const ShutdownTaskResponse& from) { |
4864 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ShutdownTaskResponse) |
4865 | if (&from == this) return; |
4866 | Clear(); |
4867 | MergeFrom(from); |
4868 | } |
4869 | |
4870 | bool ShutdownTaskResponse::IsInitialized() const { |
4871 | return true; |
4872 | } |
4873 | |
4874 | void ShutdownTaskResponse::InternalSwap(ShutdownTaskResponse* other) { |
4875 | using std::swap; |
4876 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4877 | } |
4878 | |
4879 | ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownTaskResponse::GetMetadata() const { |
4880 | return GetMetadataStatic(); |
4881 | } |
4882 | |
4883 | |
4884 | // =================================================================== |
4885 | |
4886 | void ResetTaskRequest::InitAsDefaultInstance() { |
4887 | ::tensorflow::_ResetTaskRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
4888 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
4889 | } |
4890 | class ResetTaskRequest::_Internal { |
4891 | public: |
4892 | static const ::tensorflow::CoordinatedTask& source_task(const ResetTaskRequest* msg); |
4893 | }; |
4894 | |
4895 | const ::tensorflow::CoordinatedTask& |
4896 | ResetTaskRequest::_Internal::source_task(const ResetTaskRequest* msg) { |
4897 | return *msg->source_task_; |
4898 | } |
4899 | ResetTaskRequest::ResetTaskRequest() |
4900 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4901 | SharedCtor(); |
4902 | // @@protoc_insertion_point(constructor:tensorflow.ResetTaskRequest) |
4903 | } |
4904 | ResetTaskRequest::ResetTaskRequest(const ResetTaskRequest& from) |
4905 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4906 | _internal_metadata_(nullptr) { |
4907 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4908 | if (from.has_source_task()) { |
4909 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
4910 | } else { |
4911 | source_task_ = nullptr; |
4912 | } |
4913 | // @@protoc_insertion_point(copy_constructor:tensorflow.ResetTaskRequest) |
4914 | } |
4915 | |
4916 | void ResetTaskRequest::SharedCtor() { |
4917 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4918 | source_task_ = nullptr; |
4919 | } |
4920 | |
4921 | ResetTaskRequest::~ResetTaskRequest() { |
4922 | // @@protoc_insertion_point(destructor:tensorflow.ResetTaskRequest) |
4923 | SharedDtor(); |
4924 | } |
4925 | |
4926 | void ResetTaskRequest::SharedDtor() { |
4927 | if (this != internal_default_instance()) delete source_task_; |
4928 | } |
4929 | |
4930 | void ResetTaskRequest::SetCachedSize(int size) const { |
4931 | _cached_size_.Set(size); |
4932 | } |
4933 | const ResetTaskRequest& ResetTaskRequest::default_instance() { |
4934 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResetTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
4935 | return *internal_default_instance(); |
4936 | } |
4937 | |
4938 | |
4939 | void ResetTaskRequest::Clear() { |
4940 | // @@protoc_insertion_point(message_clear_start:tensorflow.ResetTaskRequest) |
4941 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4942 | // Prevent compiler warnings about cached_has_bits being unused |
4943 | (void) cached_has_bits; |
4944 | |
4945 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
4946 | delete source_task_; |
4947 | } |
4948 | source_task_ = nullptr; |
4949 | _internal_metadata_.Clear(); |
4950 | } |
4951 | |
4952 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4953 | const char* ResetTaskRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4954 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4955 | while (!ctx->Done(&ptr)) { |
4956 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4957 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4958 | CHK_(ptr); |
4959 | switch (tag >> 3) { |
4960 | // .tensorflow.CoordinatedTask source_task = 1; |
4961 | case 1: |
4962 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4963 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
4964 | CHK_(ptr); |
4965 | } else goto handle_unusual; |
4966 | continue; |
4967 | default: { |
4968 | handle_unusual: |
4969 | if ((tag & 7) == 4 || tag == 0) { |
4970 | ctx->SetLastTag(tag); |
4971 | goto success; |
4972 | } |
4973 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4974 | CHK_(ptr != nullptr); |
4975 | continue; |
4976 | } |
4977 | } // switch |
4978 | } // while |
4979 | success: |
4980 | return ptr; |
4981 | failure: |
4982 | ptr = nullptr; |
4983 | goto success; |
4984 | #undef CHK_ |
4985 | } |
4986 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4987 | bool ResetTaskRequest::MergePartialFromCodedStream( |
4988 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4989 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4990 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4991 | // @@protoc_insertion_point(parse_start:tensorflow.ResetTaskRequest) |
4992 | for (;;) { |
4993 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4994 | tag = p.first; |
4995 | if (!p.second) goto handle_unusual; |
4996 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4997 | // .tensorflow.CoordinatedTask source_task = 1; |
4998 | case 1: { |
4999 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
5000 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5001 | input, mutable_source_task())); |
5002 | } else { |
5003 | goto handle_unusual; |
5004 | } |
5005 | break; |
5006 | } |
5007 | |
5008 | default: { |
5009 | handle_unusual: |
5010 | if (tag == 0) { |
5011 | goto success; |
5012 | } |
5013 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5014 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5015 | break; |
5016 | } |
5017 | } |
5018 | } |
5019 | success: |
5020 | // @@protoc_insertion_point(parse_success:tensorflow.ResetTaskRequest) |
5021 | return true; |
5022 | failure: |
5023 | // @@protoc_insertion_point(parse_failure:tensorflow.ResetTaskRequest) |
5024 | return false; |
5025 | #undef DO_ |
5026 | } |
5027 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5028 | |
5029 | void ResetTaskRequest::SerializeWithCachedSizes( |
5030 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5031 | // @@protoc_insertion_point(serialize_start:tensorflow.ResetTaskRequest) |
5032 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5033 | (void) cached_has_bits; |
5034 | |
5035 | // .tensorflow.CoordinatedTask source_task = 1; |
5036 | if (this->has_source_task()) { |
5037 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5038 | 1, _Internal::source_task(this), output); |
5039 | } |
5040 | |
5041 | if (_internal_metadata_.have_unknown_fields()) { |
5042 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5043 | _internal_metadata_.unknown_fields(), output); |
5044 | } |
5045 | // @@protoc_insertion_point(serialize_end:tensorflow.ResetTaskRequest) |
5046 | } |
5047 | |
5048 | ::PROTOBUF_NAMESPACE_ID::uint8* ResetTaskRequest::InternalSerializeWithCachedSizesToArray( |
5049 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5050 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ResetTaskRequest) |
5051 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5052 | (void) cached_has_bits; |
5053 | |
5054 | // .tensorflow.CoordinatedTask source_task = 1; |
5055 | if (this->has_source_task()) { |
5056 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5057 | InternalWriteMessageToArray( |
5058 | 1, _Internal::source_task(this), target); |
5059 | } |
5060 | |
5061 | if (_internal_metadata_.have_unknown_fields()) { |
5062 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5063 | _internal_metadata_.unknown_fields(), target); |
5064 | } |
5065 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ResetTaskRequest) |
5066 | return target; |
5067 | } |
5068 | |
5069 | size_t ResetTaskRequest::ByteSizeLong() const { |
5070 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ResetTaskRequest) |
5071 | size_t total_size = 0; |
5072 | |
5073 | if (_internal_metadata_.have_unknown_fields()) { |
5074 | total_size += |
5075 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5076 | _internal_metadata_.unknown_fields()); |
5077 | } |
5078 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5079 | // Prevent compiler warnings about cached_has_bits being unused |
5080 | (void) cached_has_bits; |
5081 | |
5082 | // .tensorflow.CoordinatedTask source_task = 1; |
5083 | if (this->has_source_task()) { |
5084 | total_size += 1 + |
5085 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5086 | *source_task_); |
5087 | } |
5088 | |
5089 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5090 | SetCachedSize(cached_size); |
5091 | return total_size; |
5092 | } |
5093 | |
5094 | void ResetTaskRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5095 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ResetTaskRequest) |
5096 | GOOGLE_DCHECK_NE(&from, this); |
5097 | const ResetTaskRequest* source = |
5098 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResetTaskRequest>( |
5099 | &from); |
5100 | if (source == nullptr) { |
5101 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ResetTaskRequest) |
5102 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5103 | } else { |
5104 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ResetTaskRequest) |
5105 | MergeFrom(*source); |
5106 | } |
5107 | } |
5108 | |
5109 | void ResetTaskRequest::MergeFrom(const ResetTaskRequest& from) { |
5110 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ResetTaskRequest) |
5111 | GOOGLE_DCHECK_NE(&from, this); |
5112 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5113 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5114 | (void) cached_has_bits; |
5115 | |
5116 | if (from.has_source_task()) { |
5117 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
5118 | } |
5119 | } |
5120 | |
5121 | void ResetTaskRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5122 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ResetTaskRequest) |
5123 | if (&from == this) return; |
5124 | Clear(); |
5125 | MergeFrom(from); |
5126 | } |
5127 | |
5128 | void ResetTaskRequest::CopyFrom(const ResetTaskRequest& from) { |
5129 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ResetTaskRequest) |
5130 | if (&from == this) return; |
5131 | Clear(); |
5132 | MergeFrom(from); |
5133 | } |
5134 | |
5135 | bool ResetTaskRequest::IsInitialized() const { |
5136 | return true; |
5137 | } |
5138 | |
5139 | void ResetTaskRequest::InternalSwap(ResetTaskRequest* other) { |
5140 | using std::swap; |
5141 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5142 | swap(source_task_, other->source_task_); |
5143 | } |
5144 | |
5145 | ::PROTOBUF_NAMESPACE_ID::Metadata ResetTaskRequest::GetMetadata() const { |
5146 | return GetMetadataStatic(); |
5147 | } |
5148 | |
5149 | |
5150 | // =================================================================== |
5151 | |
5152 | void ResetTaskResponse::InitAsDefaultInstance() { |
5153 | } |
5154 | class ResetTaskResponse::_Internal { |
5155 | public: |
5156 | }; |
5157 | |
5158 | ResetTaskResponse::ResetTaskResponse() |
5159 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5160 | SharedCtor(); |
5161 | // @@protoc_insertion_point(constructor:tensorflow.ResetTaskResponse) |
5162 | } |
5163 | ResetTaskResponse::ResetTaskResponse(const ResetTaskResponse& from) |
5164 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5165 | _internal_metadata_(nullptr) { |
5166 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5167 | // @@protoc_insertion_point(copy_constructor:tensorflow.ResetTaskResponse) |
5168 | } |
5169 | |
5170 | void ResetTaskResponse::SharedCtor() { |
5171 | } |
5172 | |
5173 | ResetTaskResponse::~ResetTaskResponse() { |
5174 | // @@protoc_insertion_point(destructor:tensorflow.ResetTaskResponse) |
5175 | SharedDtor(); |
5176 | } |
5177 | |
5178 | void ResetTaskResponse::SharedDtor() { |
5179 | } |
5180 | |
5181 | void ResetTaskResponse::SetCachedSize(int size) const { |
5182 | _cached_size_.Set(size); |
5183 | } |
5184 | const ResetTaskResponse& ResetTaskResponse::default_instance() { |
5185 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResetTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5186 | return *internal_default_instance(); |
5187 | } |
5188 | |
5189 | |
5190 | void ResetTaskResponse::Clear() { |
5191 | // @@protoc_insertion_point(message_clear_start:tensorflow.ResetTaskResponse) |
5192 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5193 | // Prevent compiler warnings about cached_has_bits being unused |
5194 | (void) cached_has_bits; |
5195 | |
5196 | _internal_metadata_.Clear(); |
5197 | } |
5198 | |
5199 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5200 | const char* ResetTaskResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5201 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5202 | while (!ctx->Done(&ptr)) { |
5203 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5204 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5205 | CHK_(ptr); |
5206 | switch (tag >> 3) { |
5207 | default: { |
5208 | if ((tag & 7) == 4 || tag == 0) { |
5209 | ctx->SetLastTag(tag); |
5210 | goto success; |
5211 | } |
5212 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5213 | CHK_(ptr != nullptr); |
5214 | continue; |
5215 | } |
5216 | } // switch |
5217 | } // while |
5218 | success: |
5219 | return ptr; |
5220 | failure: |
5221 | ptr = nullptr; |
5222 | goto success; |
5223 | #undef CHK_ |
5224 | } |
5225 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5226 | bool ResetTaskResponse::MergePartialFromCodedStream( |
5227 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5228 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5229 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5230 | // @@protoc_insertion_point(parse_start:tensorflow.ResetTaskResponse) |
5231 | for (;;) { |
5232 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5233 | tag = p.first; |
5234 | if (!p.second) goto handle_unusual; |
5235 | handle_unusual: |
5236 | if (tag == 0) { |
5237 | goto success; |
5238 | } |
5239 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5240 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5241 | } |
5242 | success: |
5243 | // @@protoc_insertion_point(parse_success:tensorflow.ResetTaskResponse) |
5244 | return true; |
5245 | failure: |
5246 | // @@protoc_insertion_point(parse_failure:tensorflow.ResetTaskResponse) |
5247 | return false; |
5248 | #undef DO_ |
5249 | } |
5250 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5251 | |
5252 | void ResetTaskResponse::SerializeWithCachedSizes( |
5253 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5254 | // @@protoc_insertion_point(serialize_start:tensorflow.ResetTaskResponse) |
5255 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5256 | (void) cached_has_bits; |
5257 | |
5258 | if (_internal_metadata_.have_unknown_fields()) { |
5259 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5260 | _internal_metadata_.unknown_fields(), output); |
5261 | } |
5262 | // @@protoc_insertion_point(serialize_end:tensorflow.ResetTaskResponse) |
5263 | } |
5264 | |
5265 | ::PROTOBUF_NAMESPACE_ID::uint8* ResetTaskResponse::InternalSerializeWithCachedSizesToArray( |
5266 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5267 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ResetTaskResponse) |
5268 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5269 | (void) cached_has_bits; |
5270 | |
5271 | if (_internal_metadata_.have_unknown_fields()) { |
5272 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5273 | _internal_metadata_.unknown_fields(), target); |
5274 | } |
5275 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ResetTaskResponse) |
5276 | return target; |
5277 | } |
5278 | |
5279 | size_t ResetTaskResponse::ByteSizeLong() const { |
5280 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ResetTaskResponse) |
5281 | size_t total_size = 0; |
5282 | |
5283 | if (_internal_metadata_.have_unknown_fields()) { |
5284 | total_size += |
5285 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5286 | _internal_metadata_.unknown_fields()); |
5287 | } |
5288 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5289 | // Prevent compiler warnings about cached_has_bits being unused |
5290 | (void) cached_has_bits; |
5291 | |
5292 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5293 | SetCachedSize(cached_size); |
5294 | return total_size; |
5295 | } |
5296 | |
5297 | void ResetTaskResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5298 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ResetTaskResponse) |
5299 | GOOGLE_DCHECK_NE(&from, this); |
5300 | const ResetTaskResponse* source = |
5301 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResetTaskResponse>( |
5302 | &from); |
5303 | if (source == nullptr) { |
5304 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ResetTaskResponse) |
5305 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5306 | } else { |
5307 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ResetTaskResponse) |
5308 | MergeFrom(*source); |
5309 | } |
5310 | } |
5311 | |
5312 | void ResetTaskResponse::MergeFrom(const ResetTaskResponse& from) { |
5313 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ResetTaskResponse) |
5314 | GOOGLE_DCHECK_NE(&from, this); |
5315 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5316 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5317 | (void) cached_has_bits; |
5318 | |
5319 | } |
5320 | |
5321 | void ResetTaskResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5322 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ResetTaskResponse) |
5323 | if (&from == this) return; |
5324 | Clear(); |
5325 | MergeFrom(from); |
5326 | } |
5327 | |
5328 | void ResetTaskResponse::CopyFrom(const ResetTaskResponse& from) { |
5329 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ResetTaskResponse) |
5330 | if (&from == this) return; |
5331 | Clear(); |
5332 | MergeFrom(from); |
5333 | } |
5334 | |
5335 | bool ResetTaskResponse::IsInitialized() const { |
5336 | return true; |
5337 | } |
5338 | |
5339 | void ResetTaskResponse::InternalSwap(ResetTaskResponse* other) { |
5340 | using std::swap; |
5341 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5342 | } |
5343 | |
5344 | ::PROTOBUF_NAMESPACE_ID::Metadata ResetTaskResponse::GetMetadata() const { |
5345 | return GetMetadataStatic(); |
5346 | } |
5347 | |
5348 | |
5349 | // =================================================================== |
5350 | |
5351 | void ReportErrorToTaskRequest::InitAsDefaultInstance() { |
5352 | ::tensorflow::_ReportErrorToTaskRequest_default_instance_._instance.get_mutable()->error_payload_ = const_cast< ::tensorflow::CoordinationServiceError*>( |
5353 | ::tensorflow::CoordinationServiceError::internal_default_instance()); |
5354 | } |
5355 | class ReportErrorToTaskRequest::_Internal { |
5356 | public: |
5357 | static const ::tensorflow::CoordinationServiceError& error_payload(const ReportErrorToTaskRequest* msg); |
5358 | }; |
5359 | |
5360 | const ::tensorflow::CoordinationServiceError& |
5361 | ReportErrorToTaskRequest::_Internal::error_payload(const ReportErrorToTaskRequest* msg) { |
5362 | return *msg->error_payload_; |
5363 | } |
5364 | ReportErrorToTaskRequest::ReportErrorToTaskRequest() |
5365 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5366 | SharedCtor(); |
5367 | // @@protoc_insertion_point(constructor:tensorflow.ReportErrorToTaskRequest) |
5368 | } |
5369 | ReportErrorToTaskRequest::ReportErrorToTaskRequest(const ReportErrorToTaskRequest& from) |
5370 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5371 | _internal_metadata_(nullptr) { |
5372 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5373 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5374 | if (!from.error_message().empty()) { |
5375 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
5376 | } |
5377 | if (from.has_error_payload()) { |
5378 | error_payload_ = new ::tensorflow::CoordinationServiceError(*from.error_payload_); |
5379 | } else { |
5380 | error_payload_ = nullptr; |
5381 | } |
5382 | error_code_ = from.error_code_; |
5383 | // @@protoc_insertion_point(copy_constructor:tensorflow.ReportErrorToTaskRequest) |
5384 | } |
5385 | |
5386 | void ReportErrorToTaskRequest::SharedCtor() { |
5387 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5388 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5389 | ::memset(&error_payload_, 0, static_cast<size_t>( |
5390 | reinterpret_cast<char*>(&error_code_) - |
5391 | reinterpret_cast<char*>(&error_payload_)) + sizeof(error_code_)); |
5392 | } |
5393 | |
5394 | ReportErrorToTaskRequest::~ReportErrorToTaskRequest() { |
5395 | // @@protoc_insertion_point(destructor:tensorflow.ReportErrorToTaskRequest) |
5396 | SharedDtor(); |
5397 | } |
5398 | |
5399 | void ReportErrorToTaskRequest::SharedDtor() { |
5400 | error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5401 | if (this != internal_default_instance()) delete error_payload_; |
5402 | } |
5403 | |
5404 | void ReportErrorToTaskRequest::SetCachedSize(int size) const { |
5405 | _cached_size_.Set(size); |
5406 | } |
5407 | const ReportErrorToTaskRequest& ReportErrorToTaskRequest::default_instance() { |
5408 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportErrorToTaskRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5409 | return *internal_default_instance(); |
5410 | } |
5411 | |
5412 | |
5413 | void ReportErrorToTaskRequest::Clear() { |
5414 | // @@protoc_insertion_point(message_clear_start:tensorflow.ReportErrorToTaskRequest) |
5415 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5416 | // Prevent compiler warnings about cached_has_bits being unused |
5417 | (void) cached_has_bits; |
5418 | |
5419 | error_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5420 | if (GetArenaNoVirtual() == nullptr && error_payload_ != nullptr) { |
5421 | delete error_payload_; |
5422 | } |
5423 | error_payload_ = nullptr; |
5424 | error_code_ = 0; |
5425 | _internal_metadata_.Clear(); |
5426 | } |
5427 | |
5428 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5429 | const char* ReportErrorToTaskRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5430 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5431 | while (!ctx->Done(&ptr)) { |
5432 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5433 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5434 | CHK_(ptr); |
5435 | switch (tag >> 3) { |
5436 | // int32 error_code = 1; |
5437 | case 1: |
5438 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
5439 | error_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
5440 | CHK_(ptr); |
5441 | } else goto handle_unusual; |
5442 | continue; |
5443 | // string error_message = 2; |
5444 | case 2: |
5445 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
5446 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_error_message(), ptr, ctx, "tensorflow.ReportErrorToTaskRequest.error_message" ); |
5447 | CHK_(ptr); |
5448 | } else goto handle_unusual; |
5449 | continue; |
5450 | // .tensorflow.CoordinationServiceError error_payload = 5; |
5451 | case 5: |
5452 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
5453 | ptr = ctx->ParseMessage(mutable_error_payload(), ptr); |
5454 | CHK_(ptr); |
5455 | } else goto handle_unusual; |
5456 | continue; |
5457 | default: { |
5458 | handle_unusual: |
5459 | if ((tag & 7) == 4 || tag == 0) { |
5460 | ctx->SetLastTag(tag); |
5461 | goto success; |
5462 | } |
5463 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5464 | CHK_(ptr != nullptr); |
5465 | continue; |
5466 | } |
5467 | } // switch |
5468 | } // while |
5469 | success: |
5470 | return ptr; |
5471 | failure: |
5472 | ptr = nullptr; |
5473 | goto success; |
5474 | #undef CHK_ |
5475 | } |
5476 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5477 | bool ReportErrorToTaskRequest::MergePartialFromCodedStream( |
5478 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5479 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5480 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5481 | // @@protoc_insertion_point(parse_start:tensorflow.ReportErrorToTaskRequest) |
5482 | for (;;) { |
5483 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5484 | tag = p.first; |
5485 | if (!p.second) goto handle_unusual; |
5486 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5487 | // int32 error_code = 1; |
5488 | case 1: { |
5489 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
5490 | |
5491 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
5492 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
5493 | input, &error_code_))); |
5494 | } else { |
5495 | goto handle_unusual; |
5496 | } |
5497 | break; |
5498 | } |
5499 | |
5500 | // string error_message = 2; |
5501 | case 2: { |
5502 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
5503 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
5504 | input, this->mutable_error_message())); |
5505 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5506 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5507 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
5508 | "tensorflow.ReportErrorToTaskRequest.error_message" )); |
5509 | } else { |
5510 | goto handle_unusual; |
5511 | } |
5512 | break; |
5513 | } |
5514 | |
5515 | // .tensorflow.CoordinationServiceError error_payload = 5; |
5516 | case 5: { |
5517 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
5518 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5519 | input, mutable_error_payload())); |
5520 | } else { |
5521 | goto handle_unusual; |
5522 | } |
5523 | break; |
5524 | } |
5525 | |
5526 | default: { |
5527 | handle_unusual: |
5528 | if (tag == 0) { |
5529 | goto success; |
5530 | } |
5531 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5532 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5533 | break; |
5534 | } |
5535 | } |
5536 | } |
5537 | success: |
5538 | // @@protoc_insertion_point(parse_success:tensorflow.ReportErrorToTaskRequest) |
5539 | return true; |
5540 | failure: |
5541 | // @@protoc_insertion_point(parse_failure:tensorflow.ReportErrorToTaskRequest) |
5542 | return false; |
5543 | #undef DO_ |
5544 | } |
5545 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5546 | |
5547 | void ReportErrorToTaskRequest::SerializeWithCachedSizes( |
5548 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5549 | // @@protoc_insertion_point(serialize_start:tensorflow.ReportErrorToTaskRequest) |
5550 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5551 | (void) cached_has_bits; |
5552 | |
5553 | // int32 error_code = 1; |
5554 | if (this->error_code() != 0) { |
5555 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->error_code(), output); |
5556 | } |
5557 | |
5558 | // string error_message = 2; |
5559 | if (this->error_message().size() > 0) { |
5560 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5561 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5562 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5563 | "tensorflow.ReportErrorToTaskRequest.error_message" ); |
5564 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5565 | 2, this->error_message(), output); |
5566 | } |
5567 | |
5568 | // .tensorflow.CoordinationServiceError error_payload = 5; |
5569 | if (this->has_error_payload()) { |
5570 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5571 | 5, _Internal::error_payload(this), output); |
5572 | } |
5573 | |
5574 | if (_internal_metadata_.have_unknown_fields()) { |
5575 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5576 | _internal_metadata_.unknown_fields(), output); |
5577 | } |
5578 | // @@protoc_insertion_point(serialize_end:tensorflow.ReportErrorToTaskRequest) |
5579 | } |
5580 | |
5581 | ::PROTOBUF_NAMESPACE_ID::uint8* ReportErrorToTaskRequest::InternalSerializeWithCachedSizesToArray( |
5582 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5583 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReportErrorToTaskRequest) |
5584 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5585 | (void) cached_has_bits; |
5586 | |
5587 | // int32 error_code = 1; |
5588 | if (this->error_code() != 0) { |
5589 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->error_code(), target); |
5590 | } |
5591 | |
5592 | // string error_message = 2; |
5593 | if (this->error_message().size() > 0) { |
5594 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5595 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5596 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5597 | "tensorflow.ReportErrorToTaskRequest.error_message" ); |
5598 | target = |
5599 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5600 | 2, this->error_message(), target); |
5601 | } |
5602 | |
5603 | // .tensorflow.CoordinationServiceError error_payload = 5; |
5604 | if (this->has_error_payload()) { |
5605 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5606 | InternalWriteMessageToArray( |
5607 | 5, _Internal::error_payload(this), target); |
5608 | } |
5609 | |
5610 | if (_internal_metadata_.have_unknown_fields()) { |
5611 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5612 | _internal_metadata_.unknown_fields(), target); |
5613 | } |
5614 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReportErrorToTaskRequest) |
5615 | return target; |
5616 | } |
5617 | |
5618 | size_t ReportErrorToTaskRequest::ByteSizeLong() const { |
5619 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ReportErrorToTaskRequest) |
5620 | size_t total_size = 0; |
5621 | |
5622 | if (_internal_metadata_.have_unknown_fields()) { |
5623 | total_size += |
5624 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5625 | _internal_metadata_.unknown_fields()); |
5626 | } |
5627 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5628 | // Prevent compiler warnings about cached_has_bits being unused |
5629 | (void) cached_has_bits; |
5630 | |
5631 | // string error_message = 2; |
5632 | if (this->error_message().size() > 0) { |
5633 | total_size += 1 + |
5634 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5635 | this->error_message()); |
5636 | } |
5637 | |
5638 | // .tensorflow.CoordinationServiceError error_payload = 5; |
5639 | if (this->has_error_payload()) { |
5640 | total_size += 1 + |
5641 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5642 | *error_payload_); |
5643 | } |
5644 | |
5645 | // int32 error_code = 1; |
5646 | if (this->error_code() != 0) { |
5647 | total_size += 1 + |
5648 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
5649 | this->error_code()); |
5650 | } |
5651 | |
5652 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5653 | SetCachedSize(cached_size); |
5654 | return total_size; |
5655 | } |
5656 | |
5657 | void ReportErrorToTaskRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5658 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReportErrorToTaskRequest) |
5659 | GOOGLE_DCHECK_NE(&from, this); |
5660 | const ReportErrorToTaskRequest* source = |
5661 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReportErrorToTaskRequest>( |
5662 | &from); |
5663 | if (source == nullptr) { |
5664 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReportErrorToTaskRequest) |
5665 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5666 | } else { |
5667 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReportErrorToTaskRequest) |
5668 | MergeFrom(*source); |
5669 | } |
5670 | } |
5671 | |
5672 | void ReportErrorToTaskRequest::MergeFrom(const ReportErrorToTaskRequest& from) { |
5673 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReportErrorToTaskRequest) |
5674 | GOOGLE_DCHECK_NE(&from, this); |
5675 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5676 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5677 | (void) cached_has_bits; |
5678 | |
5679 | if (from.error_message().size() > 0) { |
5680 | |
5681 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
5682 | } |
5683 | if (from.has_error_payload()) { |
5684 | mutable_error_payload()->::tensorflow::CoordinationServiceError::MergeFrom(from.error_payload()); |
5685 | } |
5686 | if (from.error_code() != 0) { |
5687 | set_error_code(from.error_code()); |
5688 | } |
5689 | } |
5690 | |
5691 | void ReportErrorToTaskRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5692 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReportErrorToTaskRequest) |
5693 | if (&from == this) return; |
5694 | Clear(); |
5695 | MergeFrom(from); |
5696 | } |
5697 | |
5698 | void ReportErrorToTaskRequest::CopyFrom(const ReportErrorToTaskRequest& from) { |
5699 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReportErrorToTaskRequest) |
5700 | if (&from == this) return; |
5701 | Clear(); |
5702 | MergeFrom(from); |
5703 | } |
5704 | |
5705 | bool ReportErrorToTaskRequest::IsInitialized() const { |
5706 | return true; |
5707 | } |
5708 | |
5709 | void ReportErrorToTaskRequest::InternalSwap(ReportErrorToTaskRequest* other) { |
5710 | using std::swap; |
5711 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5712 | error_message_.Swap(&other->error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5713 | GetArenaNoVirtual()); |
5714 | swap(error_payload_, other->error_payload_); |
5715 | swap(error_code_, other->error_code_); |
5716 | } |
5717 | |
5718 | ::PROTOBUF_NAMESPACE_ID::Metadata ReportErrorToTaskRequest::GetMetadata() const { |
5719 | return GetMetadataStatic(); |
5720 | } |
5721 | |
5722 | |
5723 | // =================================================================== |
5724 | |
5725 | void ReportErrorToTaskResponse::InitAsDefaultInstance() { |
5726 | } |
5727 | class ReportErrorToTaskResponse::_Internal { |
5728 | public: |
5729 | }; |
5730 | |
5731 | ReportErrorToTaskResponse::ReportErrorToTaskResponse() |
5732 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5733 | SharedCtor(); |
5734 | // @@protoc_insertion_point(constructor:tensorflow.ReportErrorToTaskResponse) |
5735 | } |
5736 | ReportErrorToTaskResponse::ReportErrorToTaskResponse(const ReportErrorToTaskResponse& from) |
5737 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5738 | _internal_metadata_(nullptr) { |
5739 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5740 | // @@protoc_insertion_point(copy_constructor:tensorflow.ReportErrorToTaskResponse) |
5741 | } |
5742 | |
5743 | void ReportErrorToTaskResponse::SharedCtor() { |
5744 | } |
5745 | |
5746 | ReportErrorToTaskResponse::~ReportErrorToTaskResponse() { |
5747 | // @@protoc_insertion_point(destructor:tensorflow.ReportErrorToTaskResponse) |
5748 | SharedDtor(); |
5749 | } |
5750 | |
5751 | void ReportErrorToTaskResponse::SharedDtor() { |
5752 | } |
5753 | |
5754 | void ReportErrorToTaskResponse::SetCachedSize(int size) const { |
5755 | _cached_size_.Set(size); |
5756 | } |
5757 | const ReportErrorToTaskResponse& ReportErrorToTaskResponse::default_instance() { |
5758 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportErrorToTaskResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5759 | return *internal_default_instance(); |
5760 | } |
5761 | |
5762 | |
5763 | void ReportErrorToTaskResponse::Clear() { |
5764 | // @@protoc_insertion_point(message_clear_start:tensorflow.ReportErrorToTaskResponse) |
5765 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5766 | // Prevent compiler warnings about cached_has_bits being unused |
5767 | (void) cached_has_bits; |
5768 | |
5769 | _internal_metadata_.Clear(); |
5770 | } |
5771 | |
5772 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5773 | const char* ReportErrorToTaskResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5774 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5775 | while (!ctx->Done(&ptr)) { |
5776 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5777 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5778 | CHK_(ptr); |
5779 | switch (tag >> 3) { |
5780 | default: { |
5781 | if ((tag & 7) == 4 || tag == 0) { |
5782 | ctx->SetLastTag(tag); |
5783 | goto success; |
5784 | } |
5785 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5786 | CHK_(ptr != nullptr); |
5787 | continue; |
5788 | } |
5789 | } // switch |
5790 | } // while |
5791 | success: |
5792 | return ptr; |
5793 | failure: |
5794 | ptr = nullptr; |
5795 | goto success; |
5796 | #undef CHK_ |
5797 | } |
5798 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5799 | bool ReportErrorToTaskResponse::MergePartialFromCodedStream( |
5800 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5801 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5802 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5803 | // @@protoc_insertion_point(parse_start:tensorflow.ReportErrorToTaskResponse) |
5804 | for (;;) { |
5805 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5806 | tag = p.first; |
5807 | if (!p.second) goto handle_unusual; |
5808 | handle_unusual: |
5809 | if (tag == 0) { |
5810 | goto success; |
5811 | } |
5812 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5813 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5814 | } |
5815 | success: |
5816 | // @@protoc_insertion_point(parse_success:tensorflow.ReportErrorToTaskResponse) |
5817 | return true; |
5818 | failure: |
5819 | // @@protoc_insertion_point(parse_failure:tensorflow.ReportErrorToTaskResponse) |
5820 | return false; |
5821 | #undef DO_ |
5822 | } |
5823 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5824 | |
5825 | void ReportErrorToTaskResponse::SerializeWithCachedSizes( |
5826 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5827 | // @@protoc_insertion_point(serialize_start:tensorflow.ReportErrorToTaskResponse) |
5828 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5829 | (void) cached_has_bits; |
5830 | |
5831 | if (_internal_metadata_.have_unknown_fields()) { |
5832 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5833 | _internal_metadata_.unknown_fields(), output); |
5834 | } |
5835 | // @@protoc_insertion_point(serialize_end:tensorflow.ReportErrorToTaskResponse) |
5836 | } |
5837 | |
5838 | ::PROTOBUF_NAMESPACE_ID::uint8* ReportErrorToTaskResponse::InternalSerializeWithCachedSizesToArray( |
5839 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5840 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReportErrorToTaskResponse) |
5841 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5842 | (void) cached_has_bits; |
5843 | |
5844 | if (_internal_metadata_.have_unknown_fields()) { |
5845 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5846 | _internal_metadata_.unknown_fields(), target); |
5847 | } |
5848 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReportErrorToTaskResponse) |
5849 | return target; |
5850 | } |
5851 | |
5852 | size_t ReportErrorToTaskResponse::ByteSizeLong() const { |
5853 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ReportErrorToTaskResponse) |
5854 | size_t total_size = 0; |
5855 | |
5856 | if (_internal_metadata_.have_unknown_fields()) { |
5857 | total_size += |
5858 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5859 | _internal_metadata_.unknown_fields()); |
5860 | } |
5861 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5862 | // Prevent compiler warnings about cached_has_bits being unused |
5863 | (void) cached_has_bits; |
5864 | |
5865 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5866 | SetCachedSize(cached_size); |
5867 | return total_size; |
5868 | } |
5869 | |
5870 | void ReportErrorToTaskResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5871 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReportErrorToTaskResponse) |
5872 | GOOGLE_DCHECK_NE(&from, this); |
5873 | const ReportErrorToTaskResponse* source = |
5874 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReportErrorToTaskResponse>( |
5875 | &from); |
5876 | if (source == nullptr) { |
5877 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReportErrorToTaskResponse) |
5878 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5879 | } else { |
5880 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReportErrorToTaskResponse) |
5881 | MergeFrom(*source); |
5882 | } |
5883 | } |
5884 | |
5885 | void ReportErrorToTaskResponse::MergeFrom(const ReportErrorToTaskResponse& from) { |
5886 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReportErrorToTaskResponse) |
5887 | GOOGLE_DCHECK_NE(&from, this); |
5888 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5889 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5890 | (void) cached_has_bits; |
5891 | |
5892 | } |
5893 | |
5894 | void ReportErrorToTaskResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5895 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReportErrorToTaskResponse) |
5896 | if (&from == this) return; |
5897 | Clear(); |
5898 | MergeFrom(from); |
5899 | } |
5900 | |
5901 | void ReportErrorToTaskResponse::CopyFrom(const ReportErrorToTaskResponse& from) { |
5902 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReportErrorToTaskResponse) |
5903 | if (&from == this) return; |
5904 | Clear(); |
5905 | MergeFrom(from); |
5906 | } |
5907 | |
5908 | bool ReportErrorToTaskResponse::IsInitialized() const { |
5909 | return true; |
5910 | } |
5911 | |
5912 | void ReportErrorToTaskResponse::InternalSwap(ReportErrorToTaskResponse* other) { |
5913 | using std::swap; |
5914 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5915 | } |
5916 | |
5917 | ::PROTOBUF_NAMESPACE_ID::Metadata ReportErrorToTaskResponse::GetMetadata() const { |
5918 | return GetMetadataStatic(); |
5919 | } |
5920 | |
5921 | |
5922 | // =================================================================== |
5923 | |
5924 | void ReportErrorToServiceRequest::InitAsDefaultInstance() { |
5925 | ::tensorflow::_ReportErrorToServiceRequest_default_instance_._instance.get_mutable()->error_origin_ = const_cast< ::tensorflow::CoordinatedTask*>( |
5926 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
5927 | } |
5928 | class ReportErrorToServiceRequest::_Internal { |
5929 | public: |
5930 | static const ::tensorflow::CoordinatedTask& error_origin(const ReportErrorToServiceRequest* msg); |
5931 | }; |
5932 | |
5933 | const ::tensorflow::CoordinatedTask& |
5934 | ReportErrorToServiceRequest::_Internal::error_origin(const ReportErrorToServiceRequest* msg) { |
5935 | return *msg->error_origin_; |
5936 | } |
5937 | ReportErrorToServiceRequest::ReportErrorToServiceRequest() |
5938 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5939 | SharedCtor(); |
5940 | // @@protoc_insertion_point(constructor:tensorflow.ReportErrorToServiceRequest) |
5941 | } |
5942 | ReportErrorToServiceRequest::ReportErrorToServiceRequest(const ReportErrorToServiceRequest& from) |
5943 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5944 | _internal_metadata_(nullptr) { |
5945 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5946 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5947 | if (!from.error_message().empty()) { |
5948 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
5949 | } |
5950 | if (from.has_error_origin()) { |
5951 | error_origin_ = new ::tensorflow::CoordinatedTask(*from.error_origin_); |
5952 | } else { |
5953 | error_origin_ = nullptr; |
5954 | } |
5955 | error_code_ = from.error_code_; |
5956 | // @@protoc_insertion_point(copy_constructor:tensorflow.ReportErrorToServiceRequest) |
5957 | } |
5958 | |
5959 | void ReportErrorToServiceRequest::SharedCtor() { |
5960 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5961 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5962 | ::memset(&error_origin_, 0, static_cast<size_t>( |
5963 | reinterpret_cast<char*>(&error_code_) - |
5964 | reinterpret_cast<char*>(&error_origin_)) + sizeof(error_code_)); |
5965 | } |
5966 | |
5967 | ReportErrorToServiceRequest::~ReportErrorToServiceRequest() { |
5968 | // @@protoc_insertion_point(destructor:tensorflow.ReportErrorToServiceRequest) |
5969 | SharedDtor(); |
5970 | } |
5971 | |
5972 | void ReportErrorToServiceRequest::SharedDtor() { |
5973 | error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5974 | if (this != internal_default_instance()) delete error_origin_; |
5975 | } |
5976 | |
5977 | void ReportErrorToServiceRequest::SetCachedSize(int size) const { |
5978 | _cached_size_.Set(size); |
5979 | } |
5980 | const ReportErrorToServiceRequest& ReportErrorToServiceRequest::default_instance() { |
5981 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportErrorToServiceRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
5982 | return *internal_default_instance(); |
5983 | } |
5984 | |
5985 | |
5986 | void ReportErrorToServiceRequest::Clear() { |
5987 | // @@protoc_insertion_point(message_clear_start:tensorflow.ReportErrorToServiceRequest) |
5988 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5989 | // Prevent compiler warnings about cached_has_bits being unused |
5990 | (void) cached_has_bits; |
5991 | |
5992 | error_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5993 | if (GetArenaNoVirtual() == nullptr && error_origin_ != nullptr) { |
5994 | delete error_origin_; |
5995 | } |
5996 | error_origin_ = nullptr; |
5997 | error_code_ = 0; |
5998 | _internal_metadata_.Clear(); |
5999 | } |
6000 | |
6001 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6002 | const char* ReportErrorToServiceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6003 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6004 | while (!ctx->Done(&ptr)) { |
6005 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6006 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6007 | CHK_(ptr); |
6008 | switch (tag >> 3) { |
6009 | // int32 error_code = 1; |
6010 | case 1: |
6011 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
6012 | error_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
6013 | CHK_(ptr); |
6014 | } else goto handle_unusual; |
6015 | continue; |
6016 | // string error_message = 2; |
6017 | case 2: |
6018 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
6019 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_error_message(), ptr, ctx, "tensorflow.ReportErrorToServiceRequest.error_message" ); |
6020 | CHK_(ptr); |
6021 | } else goto handle_unusual; |
6022 | continue; |
6023 | // .tensorflow.CoordinatedTask error_origin = 5; |
6024 | case 5: |
6025 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
6026 | ptr = ctx->ParseMessage(mutable_error_origin(), ptr); |
6027 | CHK_(ptr); |
6028 | } else goto handle_unusual; |
6029 | continue; |
6030 | default: { |
6031 | handle_unusual: |
6032 | if ((tag & 7) == 4 || tag == 0) { |
6033 | ctx->SetLastTag(tag); |
6034 | goto success; |
6035 | } |
6036 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6037 | CHK_(ptr != nullptr); |
6038 | continue; |
6039 | } |
6040 | } // switch |
6041 | } // while |
6042 | success: |
6043 | return ptr; |
6044 | failure: |
6045 | ptr = nullptr; |
6046 | goto success; |
6047 | #undef CHK_ |
6048 | } |
6049 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6050 | bool ReportErrorToServiceRequest::MergePartialFromCodedStream( |
6051 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6052 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6053 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6054 | // @@protoc_insertion_point(parse_start:tensorflow.ReportErrorToServiceRequest) |
6055 | for (;;) { |
6056 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6057 | tag = p.first; |
6058 | if (!p.second) goto handle_unusual; |
6059 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6060 | // int32 error_code = 1; |
6061 | case 1: { |
6062 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
6063 | |
6064 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
6065 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
6066 | input, &error_code_))); |
6067 | } else { |
6068 | goto handle_unusual; |
6069 | } |
6070 | break; |
6071 | } |
6072 | |
6073 | // string error_message = 2; |
6074 | case 2: { |
6075 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6076 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6077 | input, this->mutable_error_message())); |
6078 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6079 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
6080 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6081 | "tensorflow.ReportErrorToServiceRequest.error_message" )); |
6082 | } else { |
6083 | goto handle_unusual; |
6084 | } |
6085 | break; |
6086 | } |
6087 | |
6088 | // .tensorflow.CoordinatedTask error_origin = 5; |
6089 | case 5: { |
6090 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
6091 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6092 | input, mutable_error_origin())); |
6093 | } else { |
6094 | goto handle_unusual; |
6095 | } |
6096 | break; |
6097 | } |
6098 | |
6099 | default: { |
6100 | handle_unusual: |
6101 | if (tag == 0) { |
6102 | goto success; |
6103 | } |
6104 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6105 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6106 | break; |
6107 | } |
6108 | } |
6109 | } |
6110 | success: |
6111 | // @@protoc_insertion_point(parse_success:tensorflow.ReportErrorToServiceRequest) |
6112 | return true; |
6113 | failure: |
6114 | // @@protoc_insertion_point(parse_failure:tensorflow.ReportErrorToServiceRequest) |
6115 | return false; |
6116 | #undef DO_ |
6117 | } |
6118 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6119 | |
6120 | void ReportErrorToServiceRequest::SerializeWithCachedSizes( |
6121 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6122 | // @@protoc_insertion_point(serialize_start:tensorflow.ReportErrorToServiceRequest) |
6123 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6124 | (void) cached_has_bits; |
6125 | |
6126 | // int32 error_code = 1; |
6127 | if (this->error_code() != 0) { |
6128 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->error_code(), output); |
6129 | } |
6130 | |
6131 | // string error_message = 2; |
6132 | if (this->error_message().size() > 0) { |
6133 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6134 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
6135 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6136 | "tensorflow.ReportErrorToServiceRequest.error_message" ); |
6137 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6138 | 2, this->error_message(), output); |
6139 | } |
6140 | |
6141 | // .tensorflow.CoordinatedTask error_origin = 5; |
6142 | if (this->has_error_origin()) { |
6143 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6144 | 5, _Internal::error_origin(this), output); |
6145 | } |
6146 | |
6147 | if (_internal_metadata_.have_unknown_fields()) { |
6148 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6149 | _internal_metadata_.unknown_fields(), output); |
6150 | } |
6151 | // @@protoc_insertion_point(serialize_end:tensorflow.ReportErrorToServiceRequest) |
6152 | } |
6153 | |
6154 | ::PROTOBUF_NAMESPACE_ID::uint8* ReportErrorToServiceRequest::InternalSerializeWithCachedSizesToArray( |
6155 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6156 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReportErrorToServiceRequest) |
6157 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6158 | (void) cached_has_bits; |
6159 | |
6160 | // int32 error_code = 1; |
6161 | if (this->error_code() != 0) { |
6162 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->error_code(), target); |
6163 | } |
6164 | |
6165 | // string error_message = 2; |
6166 | if (this->error_message().size() > 0) { |
6167 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6168 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
6169 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6170 | "tensorflow.ReportErrorToServiceRequest.error_message" ); |
6171 | target = |
6172 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6173 | 2, this->error_message(), target); |
6174 | } |
6175 | |
6176 | // .tensorflow.CoordinatedTask error_origin = 5; |
6177 | if (this->has_error_origin()) { |
6178 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6179 | InternalWriteMessageToArray( |
6180 | 5, _Internal::error_origin(this), target); |
6181 | } |
6182 | |
6183 | if (_internal_metadata_.have_unknown_fields()) { |
6184 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6185 | _internal_metadata_.unknown_fields(), target); |
6186 | } |
6187 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReportErrorToServiceRequest) |
6188 | return target; |
6189 | } |
6190 | |
6191 | size_t ReportErrorToServiceRequest::ByteSizeLong() const { |
6192 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ReportErrorToServiceRequest) |
6193 | size_t total_size = 0; |
6194 | |
6195 | if (_internal_metadata_.have_unknown_fields()) { |
6196 | total_size += |
6197 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6198 | _internal_metadata_.unknown_fields()); |
6199 | } |
6200 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6201 | // Prevent compiler warnings about cached_has_bits being unused |
6202 | (void) cached_has_bits; |
6203 | |
6204 | // string error_message = 2; |
6205 | if (this->error_message().size() > 0) { |
6206 | total_size += 1 + |
6207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6208 | this->error_message()); |
6209 | } |
6210 | |
6211 | // .tensorflow.CoordinatedTask error_origin = 5; |
6212 | if (this->has_error_origin()) { |
6213 | total_size += 1 + |
6214 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6215 | *error_origin_); |
6216 | } |
6217 | |
6218 | // int32 error_code = 1; |
6219 | if (this->error_code() != 0) { |
6220 | total_size += 1 + |
6221 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
6222 | this->error_code()); |
6223 | } |
6224 | |
6225 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6226 | SetCachedSize(cached_size); |
6227 | return total_size; |
6228 | } |
6229 | |
6230 | void ReportErrorToServiceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6231 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReportErrorToServiceRequest) |
6232 | GOOGLE_DCHECK_NE(&from, this); |
6233 | const ReportErrorToServiceRequest* source = |
6234 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReportErrorToServiceRequest>( |
6235 | &from); |
6236 | if (source == nullptr) { |
6237 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReportErrorToServiceRequest) |
6238 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6239 | } else { |
6240 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReportErrorToServiceRequest) |
6241 | MergeFrom(*source); |
6242 | } |
6243 | } |
6244 | |
6245 | void ReportErrorToServiceRequest::MergeFrom(const ReportErrorToServiceRequest& from) { |
6246 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReportErrorToServiceRequest) |
6247 | GOOGLE_DCHECK_NE(&from, this); |
6248 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6249 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6250 | (void) cached_has_bits; |
6251 | |
6252 | if (from.error_message().size() > 0) { |
6253 | |
6254 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
6255 | } |
6256 | if (from.has_error_origin()) { |
6257 | mutable_error_origin()->::tensorflow::CoordinatedTask::MergeFrom(from.error_origin()); |
6258 | } |
6259 | if (from.error_code() != 0) { |
6260 | set_error_code(from.error_code()); |
6261 | } |
6262 | } |
6263 | |
6264 | void ReportErrorToServiceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6265 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReportErrorToServiceRequest) |
6266 | if (&from == this) return; |
6267 | Clear(); |
6268 | MergeFrom(from); |
6269 | } |
6270 | |
6271 | void ReportErrorToServiceRequest::CopyFrom(const ReportErrorToServiceRequest& from) { |
6272 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReportErrorToServiceRequest) |
6273 | if (&from == this) return; |
6274 | Clear(); |
6275 | MergeFrom(from); |
6276 | } |
6277 | |
6278 | bool ReportErrorToServiceRequest::IsInitialized() const { |
6279 | return true; |
6280 | } |
6281 | |
6282 | void ReportErrorToServiceRequest::InternalSwap(ReportErrorToServiceRequest* other) { |
6283 | using std::swap; |
6284 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6285 | error_message_.Swap(&other->error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6286 | GetArenaNoVirtual()); |
6287 | swap(error_origin_, other->error_origin_); |
6288 | swap(error_code_, other->error_code_); |
6289 | } |
6290 | |
6291 | ::PROTOBUF_NAMESPACE_ID::Metadata ReportErrorToServiceRequest::GetMetadata() const { |
6292 | return GetMetadataStatic(); |
6293 | } |
6294 | |
6295 | |
6296 | // =================================================================== |
6297 | |
6298 | void ReportErrorToServiceResponse::InitAsDefaultInstance() { |
6299 | } |
6300 | class ReportErrorToServiceResponse::_Internal { |
6301 | public: |
6302 | }; |
6303 | |
6304 | ReportErrorToServiceResponse::ReportErrorToServiceResponse() |
6305 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6306 | SharedCtor(); |
6307 | // @@protoc_insertion_point(constructor:tensorflow.ReportErrorToServiceResponse) |
6308 | } |
6309 | ReportErrorToServiceResponse::ReportErrorToServiceResponse(const ReportErrorToServiceResponse& from) |
6310 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6311 | _internal_metadata_(nullptr) { |
6312 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6313 | // @@protoc_insertion_point(copy_constructor:tensorflow.ReportErrorToServiceResponse) |
6314 | } |
6315 | |
6316 | void ReportErrorToServiceResponse::SharedCtor() { |
6317 | } |
6318 | |
6319 | ReportErrorToServiceResponse::~ReportErrorToServiceResponse() { |
6320 | // @@protoc_insertion_point(destructor:tensorflow.ReportErrorToServiceResponse) |
6321 | SharedDtor(); |
6322 | } |
6323 | |
6324 | void ReportErrorToServiceResponse::SharedDtor() { |
6325 | } |
6326 | |
6327 | void ReportErrorToServiceResponse::SetCachedSize(int size) const { |
6328 | _cached_size_.Set(size); |
6329 | } |
6330 | const ReportErrorToServiceResponse& ReportErrorToServiceResponse::default_instance() { |
6331 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportErrorToServiceResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
6332 | return *internal_default_instance(); |
6333 | } |
6334 | |
6335 | |
6336 | void ReportErrorToServiceResponse::Clear() { |
6337 | // @@protoc_insertion_point(message_clear_start:tensorflow.ReportErrorToServiceResponse) |
6338 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6339 | // Prevent compiler warnings about cached_has_bits being unused |
6340 | (void) cached_has_bits; |
6341 | |
6342 | _internal_metadata_.Clear(); |
6343 | } |
6344 | |
6345 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6346 | const char* ReportErrorToServiceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6347 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6348 | while (!ctx->Done(&ptr)) { |
6349 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6350 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6351 | CHK_(ptr); |
6352 | switch (tag >> 3) { |
6353 | default: { |
6354 | if ((tag & 7) == 4 || tag == 0) { |
6355 | ctx->SetLastTag(tag); |
6356 | goto success; |
6357 | } |
6358 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6359 | CHK_(ptr != nullptr); |
6360 | continue; |
6361 | } |
6362 | } // switch |
6363 | } // while |
6364 | success: |
6365 | return ptr; |
6366 | failure: |
6367 | ptr = nullptr; |
6368 | goto success; |
6369 | #undef CHK_ |
6370 | } |
6371 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6372 | bool ReportErrorToServiceResponse::MergePartialFromCodedStream( |
6373 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6374 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6375 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6376 | // @@protoc_insertion_point(parse_start:tensorflow.ReportErrorToServiceResponse) |
6377 | for (;;) { |
6378 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6379 | tag = p.first; |
6380 | if (!p.second) goto handle_unusual; |
6381 | handle_unusual: |
6382 | if (tag == 0) { |
6383 | goto success; |
6384 | } |
6385 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6386 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6387 | } |
6388 | success: |
6389 | // @@protoc_insertion_point(parse_success:tensorflow.ReportErrorToServiceResponse) |
6390 | return true; |
6391 | failure: |
6392 | // @@protoc_insertion_point(parse_failure:tensorflow.ReportErrorToServiceResponse) |
6393 | return false; |
6394 | #undef DO_ |
6395 | } |
6396 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6397 | |
6398 | void ReportErrorToServiceResponse::SerializeWithCachedSizes( |
6399 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6400 | // @@protoc_insertion_point(serialize_start:tensorflow.ReportErrorToServiceResponse) |
6401 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6402 | (void) cached_has_bits; |
6403 | |
6404 | if (_internal_metadata_.have_unknown_fields()) { |
6405 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6406 | _internal_metadata_.unknown_fields(), output); |
6407 | } |
6408 | // @@protoc_insertion_point(serialize_end:tensorflow.ReportErrorToServiceResponse) |
6409 | } |
6410 | |
6411 | ::PROTOBUF_NAMESPACE_ID::uint8* ReportErrorToServiceResponse::InternalSerializeWithCachedSizesToArray( |
6412 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6413 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReportErrorToServiceResponse) |
6414 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6415 | (void) cached_has_bits; |
6416 | |
6417 | if (_internal_metadata_.have_unknown_fields()) { |
6418 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6419 | _internal_metadata_.unknown_fields(), target); |
6420 | } |
6421 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReportErrorToServiceResponse) |
6422 | return target; |
6423 | } |
6424 | |
6425 | size_t ReportErrorToServiceResponse::ByteSizeLong() const { |
6426 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ReportErrorToServiceResponse) |
6427 | size_t total_size = 0; |
6428 | |
6429 | if (_internal_metadata_.have_unknown_fields()) { |
6430 | total_size += |
6431 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6432 | _internal_metadata_.unknown_fields()); |
6433 | } |
6434 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6435 | // Prevent compiler warnings about cached_has_bits being unused |
6436 | (void) cached_has_bits; |
6437 | |
6438 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6439 | SetCachedSize(cached_size); |
6440 | return total_size; |
6441 | } |
6442 | |
6443 | void ReportErrorToServiceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6444 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReportErrorToServiceResponse) |
6445 | GOOGLE_DCHECK_NE(&from, this); |
6446 | const ReportErrorToServiceResponse* source = |
6447 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReportErrorToServiceResponse>( |
6448 | &from); |
6449 | if (source == nullptr) { |
6450 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReportErrorToServiceResponse) |
6451 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6452 | } else { |
6453 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReportErrorToServiceResponse) |
6454 | MergeFrom(*source); |
6455 | } |
6456 | } |
6457 | |
6458 | void ReportErrorToServiceResponse::MergeFrom(const ReportErrorToServiceResponse& from) { |
6459 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReportErrorToServiceResponse) |
6460 | GOOGLE_DCHECK_NE(&from, this); |
6461 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6462 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6463 | (void) cached_has_bits; |
6464 | |
6465 | } |
6466 | |
6467 | void ReportErrorToServiceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6468 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReportErrorToServiceResponse) |
6469 | if (&from == this) return; |
6470 | Clear(); |
6471 | MergeFrom(from); |
6472 | } |
6473 | |
6474 | void ReportErrorToServiceResponse::CopyFrom(const ReportErrorToServiceResponse& from) { |
6475 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReportErrorToServiceResponse) |
6476 | if (&from == this) return; |
6477 | Clear(); |
6478 | MergeFrom(from); |
6479 | } |
6480 | |
6481 | bool ReportErrorToServiceResponse::IsInitialized() const { |
6482 | return true; |
6483 | } |
6484 | |
6485 | void ReportErrorToServiceResponse::InternalSwap(ReportErrorToServiceResponse* other) { |
6486 | using std::swap; |
6487 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6488 | } |
6489 | |
6490 | ::PROTOBUF_NAMESPACE_ID::Metadata ReportErrorToServiceResponse::GetMetadata() const { |
6491 | return GetMetadataStatic(); |
6492 | } |
6493 | |
6494 | |
6495 | // =================================================================== |
6496 | |
6497 | void KeyValueEntry::InitAsDefaultInstance() { |
6498 | } |
6499 | class KeyValueEntry::_Internal { |
6500 | public: |
6501 | }; |
6502 | |
6503 | KeyValueEntry::KeyValueEntry() |
6504 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6505 | SharedCtor(); |
6506 | // @@protoc_insertion_point(constructor:tensorflow.KeyValueEntry) |
6507 | } |
6508 | KeyValueEntry::KeyValueEntry(const KeyValueEntry& from) |
6509 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6510 | _internal_metadata_(nullptr) { |
6511 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6512 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6513 | if (!from.key().empty()) { |
6514 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
6515 | } |
6516 | value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6517 | if (!from.value().empty()) { |
6518 | value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); |
6519 | } |
6520 | // @@protoc_insertion_point(copy_constructor:tensorflow.KeyValueEntry) |
6521 | } |
6522 | |
6523 | void KeyValueEntry::SharedCtor() { |
6524 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
6525 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6526 | value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6527 | } |
6528 | |
6529 | KeyValueEntry::~KeyValueEntry() { |
6530 | // @@protoc_insertion_point(destructor:tensorflow.KeyValueEntry) |
6531 | SharedDtor(); |
6532 | } |
6533 | |
6534 | void KeyValueEntry::SharedDtor() { |
6535 | key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6536 | value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6537 | } |
6538 | |
6539 | void KeyValueEntry::SetCachedSize(int size) const { |
6540 | _cached_size_.Set(size); |
6541 | } |
6542 | const KeyValueEntry& KeyValueEntry::default_instance() { |
6543 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValueEntry_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
6544 | return *internal_default_instance(); |
6545 | } |
6546 | |
6547 | |
6548 | void KeyValueEntry::Clear() { |
6549 | // @@protoc_insertion_point(message_clear_start:tensorflow.KeyValueEntry) |
6550 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6551 | // Prevent compiler warnings about cached_has_bits being unused |
6552 | (void) cached_has_bits; |
6553 | |
6554 | key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6555 | value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6556 | _internal_metadata_.Clear(); |
6557 | } |
6558 | |
6559 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6560 | const char* KeyValueEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6561 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6562 | while (!ctx->Done(&ptr)) { |
6563 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6564 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6565 | CHK_(ptr); |
6566 | switch (tag >> 3) { |
6567 | // string key = 1; |
6568 | case 1: |
6569 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
6570 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "tensorflow.KeyValueEntry.key" ); |
6571 | CHK_(ptr); |
6572 | } else goto handle_unusual; |
6573 | continue; |
6574 | // bytes value = 2; |
6575 | case 2: |
6576 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
6577 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_value(), ptr, ctx); |
6578 | CHK_(ptr); |
6579 | } else goto handle_unusual; |
6580 | continue; |
6581 | default: { |
6582 | handle_unusual: |
6583 | if ((tag & 7) == 4 || tag == 0) { |
6584 | ctx->SetLastTag(tag); |
6585 | goto success; |
6586 | } |
6587 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6588 | CHK_(ptr != nullptr); |
6589 | continue; |
6590 | } |
6591 | } // switch |
6592 | } // while |
6593 | success: |
6594 | return ptr; |
6595 | failure: |
6596 | ptr = nullptr; |
6597 | goto success; |
6598 | #undef CHK_ |
6599 | } |
6600 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6601 | bool KeyValueEntry::MergePartialFromCodedStream( |
6602 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6603 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6604 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6605 | // @@protoc_insertion_point(parse_start:tensorflow.KeyValueEntry) |
6606 | for (;;) { |
6607 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6608 | tag = p.first; |
6609 | if (!p.second) goto handle_unusual; |
6610 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6611 | // string key = 1; |
6612 | case 1: { |
6613 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
6614 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6615 | input, this->mutable_key())); |
6616 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6617 | this->key().data(), static_cast<int>(this->key().length()), |
6618 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6619 | "tensorflow.KeyValueEntry.key" )); |
6620 | } else { |
6621 | goto handle_unusual; |
6622 | } |
6623 | break; |
6624 | } |
6625 | |
6626 | // bytes value = 2; |
6627 | case 2: { |
6628 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6629 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
6630 | input, this->mutable_value())); |
6631 | } else { |
6632 | goto handle_unusual; |
6633 | } |
6634 | break; |
6635 | } |
6636 | |
6637 | default: { |
6638 | handle_unusual: |
6639 | if (tag == 0) { |
6640 | goto success; |
6641 | } |
6642 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6643 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6644 | break; |
6645 | } |
6646 | } |
6647 | } |
6648 | success: |
6649 | // @@protoc_insertion_point(parse_success:tensorflow.KeyValueEntry) |
6650 | return true; |
6651 | failure: |
6652 | // @@protoc_insertion_point(parse_failure:tensorflow.KeyValueEntry) |
6653 | return false; |
6654 | #undef DO_ |
6655 | } |
6656 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6657 | |
6658 | void KeyValueEntry::SerializeWithCachedSizes( |
6659 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6660 | // @@protoc_insertion_point(serialize_start:tensorflow.KeyValueEntry) |
6661 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6662 | (void) cached_has_bits; |
6663 | |
6664 | // string key = 1; |
6665 | if (this->key().size() > 0) { |
6666 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6667 | this->key().data(), static_cast<int>(this->key().length()), |
6668 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6669 | "tensorflow.KeyValueEntry.key" ); |
6670 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6671 | 1, this->key(), output); |
6672 | } |
6673 | |
6674 | // bytes value = 2; |
6675 | if (this->value().size() > 0) { |
6676 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( |
6677 | 2, this->value(), output); |
6678 | } |
6679 | |
6680 | if (_internal_metadata_.have_unknown_fields()) { |
6681 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6682 | _internal_metadata_.unknown_fields(), output); |
6683 | } |
6684 | // @@protoc_insertion_point(serialize_end:tensorflow.KeyValueEntry) |
6685 | } |
6686 | |
6687 | ::PROTOBUF_NAMESPACE_ID::uint8* KeyValueEntry::InternalSerializeWithCachedSizesToArray( |
6688 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6689 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.KeyValueEntry) |
6690 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6691 | (void) cached_has_bits; |
6692 | |
6693 | // string key = 1; |
6694 | if (this->key().size() > 0) { |
6695 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6696 | this->key().data(), static_cast<int>(this->key().length()), |
6697 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6698 | "tensorflow.KeyValueEntry.key" ); |
6699 | target = |
6700 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6701 | 1, this->key(), target); |
6702 | } |
6703 | |
6704 | // bytes value = 2; |
6705 | if (this->value().size() > 0) { |
6706 | target = |
6707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( |
6708 | 2, this->value(), target); |
6709 | } |
6710 | |
6711 | if (_internal_metadata_.have_unknown_fields()) { |
6712 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6713 | _internal_metadata_.unknown_fields(), target); |
6714 | } |
6715 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.KeyValueEntry) |
6716 | return target; |
6717 | } |
6718 | |
6719 | size_t KeyValueEntry::ByteSizeLong() const { |
6720 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.KeyValueEntry) |
6721 | size_t total_size = 0; |
6722 | |
6723 | if (_internal_metadata_.have_unknown_fields()) { |
6724 | total_size += |
6725 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6726 | _internal_metadata_.unknown_fields()); |
6727 | } |
6728 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6729 | // Prevent compiler warnings about cached_has_bits being unused |
6730 | (void) cached_has_bits; |
6731 | |
6732 | // string key = 1; |
6733 | if (this->key().size() > 0) { |
6734 | total_size += 1 + |
6735 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6736 | this->key()); |
6737 | } |
6738 | |
6739 | // bytes value = 2; |
6740 | if (this->value().size() > 0) { |
6741 | total_size += 1 + |
6742 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
6743 | this->value()); |
6744 | } |
6745 | |
6746 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6747 | SetCachedSize(cached_size); |
6748 | return total_size; |
6749 | } |
6750 | |
6751 | void KeyValueEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6752 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.KeyValueEntry) |
6753 | GOOGLE_DCHECK_NE(&from, this); |
6754 | const KeyValueEntry* source = |
6755 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<KeyValueEntry>( |
6756 | &from); |
6757 | if (source == nullptr) { |
6758 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.KeyValueEntry) |
6759 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6760 | } else { |
6761 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.KeyValueEntry) |
6762 | MergeFrom(*source); |
6763 | } |
6764 | } |
6765 | |
6766 | void KeyValueEntry::MergeFrom(const KeyValueEntry& from) { |
6767 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.KeyValueEntry) |
6768 | GOOGLE_DCHECK_NE(&from, this); |
6769 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6770 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6771 | (void) cached_has_bits; |
6772 | |
6773 | if (from.key().size() > 0) { |
6774 | |
6775 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
6776 | } |
6777 | if (from.value().size() > 0) { |
6778 | |
6779 | value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); |
6780 | } |
6781 | } |
6782 | |
6783 | void KeyValueEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6784 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.KeyValueEntry) |
6785 | if (&from == this) return; |
6786 | Clear(); |
6787 | MergeFrom(from); |
6788 | } |
6789 | |
6790 | void KeyValueEntry::CopyFrom(const KeyValueEntry& from) { |
6791 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.KeyValueEntry) |
6792 | if (&from == this) return; |
6793 | Clear(); |
6794 | MergeFrom(from); |
6795 | } |
6796 | |
6797 | bool KeyValueEntry::IsInitialized() const { |
6798 | return true; |
6799 | } |
6800 | |
6801 | void KeyValueEntry::InternalSwap(KeyValueEntry* other) { |
6802 | using std::swap; |
6803 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6804 | key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6805 | GetArenaNoVirtual()); |
6806 | value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6807 | GetArenaNoVirtual()); |
6808 | } |
6809 | |
6810 | ::PROTOBUF_NAMESPACE_ID::Metadata KeyValueEntry::GetMetadata() const { |
6811 | return GetMetadataStatic(); |
6812 | } |
6813 | |
6814 | |
6815 | // =================================================================== |
6816 | |
6817 | void InsertKeyValueRequest::InitAsDefaultInstance() { |
6818 | ::tensorflow::_InsertKeyValueRequest_default_instance_._instance.get_mutable()->kv_ = const_cast< ::tensorflow::KeyValueEntry*>( |
6819 | ::tensorflow::KeyValueEntry::internal_default_instance()); |
6820 | } |
6821 | class InsertKeyValueRequest::_Internal { |
6822 | public: |
6823 | static const ::tensorflow::KeyValueEntry& kv(const InsertKeyValueRequest* msg); |
6824 | }; |
6825 | |
6826 | const ::tensorflow::KeyValueEntry& |
6827 | InsertKeyValueRequest::_Internal::kv(const InsertKeyValueRequest* msg) { |
6828 | return *msg->kv_; |
6829 | } |
6830 | InsertKeyValueRequest::InsertKeyValueRequest() |
6831 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6832 | SharedCtor(); |
6833 | // @@protoc_insertion_point(constructor:tensorflow.InsertKeyValueRequest) |
6834 | } |
6835 | InsertKeyValueRequest::InsertKeyValueRequest(const InsertKeyValueRequest& from) |
6836 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6837 | _internal_metadata_(nullptr) { |
6838 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6839 | if (from.has_kv()) { |
6840 | kv_ = new ::tensorflow::KeyValueEntry(*from.kv_); |
6841 | } else { |
6842 | kv_ = nullptr; |
6843 | } |
6844 | // @@protoc_insertion_point(copy_constructor:tensorflow.InsertKeyValueRequest) |
6845 | } |
6846 | |
6847 | void InsertKeyValueRequest::SharedCtor() { |
6848 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
6849 | kv_ = nullptr; |
6850 | } |
6851 | |
6852 | InsertKeyValueRequest::~InsertKeyValueRequest() { |
6853 | // @@protoc_insertion_point(destructor:tensorflow.InsertKeyValueRequest) |
6854 | SharedDtor(); |
6855 | } |
6856 | |
6857 | void InsertKeyValueRequest::SharedDtor() { |
6858 | if (this != internal_default_instance()) delete kv_; |
6859 | } |
6860 | |
6861 | void InsertKeyValueRequest::SetCachedSize(int size) const { |
6862 | _cached_size_.Set(size); |
6863 | } |
6864 | const InsertKeyValueRequest& InsertKeyValueRequest::default_instance() { |
6865 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
6866 | return *internal_default_instance(); |
6867 | } |
6868 | |
6869 | |
6870 | void InsertKeyValueRequest::Clear() { |
6871 | // @@protoc_insertion_point(message_clear_start:tensorflow.InsertKeyValueRequest) |
6872 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6873 | // Prevent compiler warnings about cached_has_bits being unused |
6874 | (void) cached_has_bits; |
6875 | |
6876 | if (GetArenaNoVirtual() == nullptr && kv_ != nullptr) { |
6877 | delete kv_; |
6878 | } |
6879 | kv_ = nullptr; |
6880 | _internal_metadata_.Clear(); |
6881 | } |
6882 | |
6883 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6884 | const char* InsertKeyValueRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6885 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6886 | while (!ctx->Done(&ptr)) { |
6887 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6888 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6889 | CHK_(ptr); |
6890 | switch (tag >> 3) { |
6891 | // .tensorflow.KeyValueEntry kv = 1; |
6892 | case 1: |
6893 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
6894 | ptr = ctx->ParseMessage(mutable_kv(), ptr); |
6895 | CHK_(ptr); |
6896 | } else goto handle_unusual; |
6897 | continue; |
6898 | default: { |
6899 | handle_unusual: |
6900 | if ((tag & 7) == 4 || tag == 0) { |
6901 | ctx->SetLastTag(tag); |
6902 | goto success; |
6903 | } |
6904 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6905 | CHK_(ptr != nullptr); |
6906 | continue; |
6907 | } |
6908 | } // switch |
6909 | } // while |
6910 | success: |
6911 | return ptr; |
6912 | failure: |
6913 | ptr = nullptr; |
6914 | goto success; |
6915 | #undef CHK_ |
6916 | } |
6917 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6918 | bool InsertKeyValueRequest::MergePartialFromCodedStream( |
6919 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6920 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6921 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6922 | // @@protoc_insertion_point(parse_start:tensorflow.InsertKeyValueRequest) |
6923 | for (;;) { |
6924 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6925 | tag = p.first; |
6926 | if (!p.second) goto handle_unusual; |
6927 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6928 | // .tensorflow.KeyValueEntry kv = 1; |
6929 | case 1: { |
6930 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
6931 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6932 | input, mutable_kv())); |
6933 | } else { |
6934 | goto handle_unusual; |
6935 | } |
6936 | break; |
6937 | } |
6938 | |
6939 | default: { |
6940 | handle_unusual: |
6941 | if (tag == 0) { |
6942 | goto success; |
6943 | } |
6944 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6945 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6946 | break; |
6947 | } |
6948 | } |
6949 | } |
6950 | success: |
6951 | // @@protoc_insertion_point(parse_success:tensorflow.InsertKeyValueRequest) |
6952 | return true; |
6953 | failure: |
6954 | // @@protoc_insertion_point(parse_failure:tensorflow.InsertKeyValueRequest) |
6955 | return false; |
6956 | #undef DO_ |
6957 | } |
6958 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6959 | |
6960 | void InsertKeyValueRequest::SerializeWithCachedSizes( |
6961 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6962 | // @@protoc_insertion_point(serialize_start:tensorflow.InsertKeyValueRequest) |
6963 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6964 | (void) cached_has_bits; |
6965 | |
6966 | // .tensorflow.KeyValueEntry kv = 1; |
6967 | if (this->has_kv()) { |
6968 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6969 | 1, _Internal::kv(this), output); |
6970 | } |
6971 | |
6972 | if (_internal_metadata_.have_unknown_fields()) { |
6973 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6974 | _internal_metadata_.unknown_fields(), output); |
6975 | } |
6976 | // @@protoc_insertion_point(serialize_end:tensorflow.InsertKeyValueRequest) |
6977 | } |
6978 | |
6979 | ::PROTOBUF_NAMESPACE_ID::uint8* InsertKeyValueRequest::InternalSerializeWithCachedSizesToArray( |
6980 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6981 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.InsertKeyValueRequest) |
6982 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6983 | (void) cached_has_bits; |
6984 | |
6985 | // .tensorflow.KeyValueEntry kv = 1; |
6986 | if (this->has_kv()) { |
6987 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6988 | InternalWriteMessageToArray( |
6989 | 1, _Internal::kv(this), target); |
6990 | } |
6991 | |
6992 | if (_internal_metadata_.have_unknown_fields()) { |
6993 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6994 | _internal_metadata_.unknown_fields(), target); |
6995 | } |
6996 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.InsertKeyValueRequest) |
6997 | return target; |
6998 | } |
6999 | |
7000 | size_t InsertKeyValueRequest::ByteSizeLong() const { |
7001 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.InsertKeyValueRequest) |
7002 | size_t total_size = 0; |
7003 | |
7004 | if (_internal_metadata_.have_unknown_fields()) { |
7005 | total_size += |
7006 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
7007 | _internal_metadata_.unknown_fields()); |
7008 | } |
7009 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7010 | // Prevent compiler warnings about cached_has_bits being unused |
7011 | (void) cached_has_bits; |
7012 | |
7013 | // .tensorflow.KeyValueEntry kv = 1; |
7014 | if (this->has_kv()) { |
7015 | total_size += 1 + |
7016 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7017 | *kv_); |
7018 | } |
7019 | |
7020 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
7021 | SetCachedSize(cached_size); |
7022 | return total_size; |
7023 | } |
7024 | |
7025 | void InsertKeyValueRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7026 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.InsertKeyValueRequest) |
7027 | GOOGLE_DCHECK_NE(&from, this); |
7028 | const InsertKeyValueRequest* source = |
7029 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<InsertKeyValueRequest>( |
7030 | &from); |
7031 | if (source == nullptr) { |
7032 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.InsertKeyValueRequest) |
7033 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
7034 | } else { |
7035 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.InsertKeyValueRequest) |
7036 | MergeFrom(*source); |
7037 | } |
7038 | } |
7039 | |
7040 | void InsertKeyValueRequest::MergeFrom(const InsertKeyValueRequest& from) { |
7041 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.InsertKeyValueRequest) |
7042 | GOOGLE_DCHECK_NE(&from, this); |
7043 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7044 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7045 | (void) cached_has_bits; |
7046 | |
7047 | if (from.has_kv()) { |
7048 | mutable_kv()->::tensorflow::KeyValueEntry::MergeFrom(from.kv()); |
7049 | } |
7050 | } |
7051 | |
7052 | void InsertKeyValueRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7053 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.InsertKeyValueRequest) |
7054 | if (&from == this) return; |
7055 | Clear(); |
7056 | MergeFrom(from); |
7057 | } |
7058 | |
7059 | void InsertKeyValueRequest::CopyFrom(const InsertKeyValueRequest& from) { |
7060 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.InsertKeyValueRequest) |
7061 | if (&from == this) return; |
7062 | Clear(); |
7063 | MergeFrom(from); |
7064 | } |
7065 | |
7066 | bool InsertKeyValueRequest::IsInitialized() const { |
7067 | return true; |
7068 | } |
7069 | |
7070 | void InsertKeyValueRequest::InternalSwap(InsertKeyValueRequest* other) { |
7071 | using std::swap; |
7072 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7073 | swap(kv_, other->kv_); |
7074 | } |
7075 | |
7076 | ::PROTOBUF_NAMESPACE_ID::Metadata InsertKeyValueRequest::GetMetadata() const { |
7077 | return GetMetadataStatic(); |
7078 | } |
7079 | |
7080 | |
7081 | // =================================================================== |
7082 | |
7083 | void InsertKeyValueResponse::InitAsDefaultInstance() { |
7084 | } |
7085 | class InsertKeyValueResponse::_Internal { |
7086 | public: |
7087 | }; |
7088 | |
7089 | InsertKeyValueResponse::InsertKeyValueResponse() |
7090 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
7091 | SharedCtor(); |
7092 | // @@protoc_insertion_point(constructor:tensorflow.InsertKeyValueResponse) |
7093 | } |
7094 | InsertKeyValueResponse::InsertKeyValueResponse(const InsertKeyValueResponse& from) |
7095 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7096 | _internal_metadata_(nullptr) { |
7097 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7098 | // @@protoc_insertion_point(copy_constructor:tensorflow.InsertKeyValueResponse) |
7099 | } |
7100 | |
7101 | void InsertKeyValueResponse::SharedCtor() { |
7102 | } |
7103 | |
7104 | InsertKeyValueResponse::~InsertKeyValueResponse() { |
7105 | // @@protoc_insertion_point(destructor:tensorflow.InsertKeyValueResponse) |
7106 | SharedDtor(); |
7107 | } |
7108 | |
7109 | void InsertKeyValueResponse::SharedDtor() { |
7110 | } |
7111 | |
7112 | void InsertKeyValueResponse::SetCachedSize(int size) const { |
7113 | _cached_size_.Set(size); |
7114 | } |
7115 | const InsertKeyValueResponse& InsertKeyValueResponse::default_instance() { |
7116 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7117 | return *internal_default_instance(); |
7118 | } |
7119 | |
7120 | |
7121 | void InsertKeyValueResponse::Clear() { |
7122 | // @@protoc_insertion_point(message_clear_start:tensorflow.InsertKeyValueResponse) |
7123 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7124 | // Prevent compiler warnings about cached_has_bits being unused |
7125 | (void) cached_has_bits; |
7126 | |
7127 | _internal_metadata_.Clear(); |
7128 | } |
7129 | |
7130 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7131 | const char* InsertKeyValueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
7132 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7133 | while (!ctx->Done(&ptr)) { |
7134 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7135 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
7136 | CHK_(ptr); |
7137 | switch (tag >> 3) { |
7138 | default: { |
7139 | if ((tag & 7) == 4 || tag == 0) { |
7140 | ctx->SetLastTag(tag); |
7141 | goto success; |
7142 | } |
7143 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
7144 | CHK_(ptr != nullptr); |
7145 | continue; |
7146 | } |
7147 | } // switch |
7148 | } // while |
7149 | success: |
7150 | return ptr; |
7151 | failure: |
7152 | ptr = nullptr; |
7153 | goto success; |
7154 | #undef CHK_ |
7155 | } |
7156 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7157 | bool InsertKeyValueResponse::MergePartialFromCodedStream( |
7158 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
7159 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
7160 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7161 | // @@protoc_insertion_point(parse_start:tensorflow.InsertKeyValueResponse) |
7162 | for (;;) { |
7163 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7164 | tag = p.first; |
7165 | if (!p.second) goto handle_unusual; |
7166 | handle_unusual: |
7167 | if (tag == 0) { |
7168 | goto success; |
7169 | } |
7170 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
7171 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7172 | } |
7173 | success: |
7174 | // @@protoc_insertion_point(parse_success:tensorflow.InsertKeyValueResponse) |
7175 | return true; |
7176 | failure: |
7177 | // @@protoc_insertion_point(parse_failure:tensorflow.InsertKeyValueResponse) |
7178 | return false; |
7179 | #undef DO_ |
7180 | } |
7181 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7182 | |
7183 | void InsertKeyValueResponse::SerializeWithCachedSizes( |
7184 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
7185 | // @@protoc_insertion_point(serialize_start:tensorflow.InsertKeyValueResponse) |
7186 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7187 | (void) cached_has_bits; |
7188 | |
7189 | if (_internal_metadata_.have_unknown_fields()) { |
7190 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
7191 | _internal_metadata_.unknown_fields(), output); |
7192 | } |
7193 | // @@protoc_insertion_point(serialize_end:tensorflow.InsertKeyValueResponse) |
7194 | } |
7195 | |
7196 | ::PROTOBUF_NAMESPACE_ID::uint8* InsertKeyValueResponse::InternalSerializeWithCachedSizesToArray( |
7197 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
7198 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.InsertKeyValueResponse) |
7199 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7200 | (void) cached_has_bits; |
7201 | |
7202 | if (_internal_metadata_.have_unknown_fields()) { |
7203 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
7204 | _internal_metadata_.unknown_fields(), target); |
7205 | } |
7206 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.InsertKeyValueResponse) |
7207 | return target; |
7208 | } |
7209 | |
7210 | size_t InsertKeyValueResponse::ByteSizeLong() const { |
7211 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.InsertKeyValueResponse) |
7212 | size_t total_size = 0; |
7213 | |
7214 | if (_internal_metadata_.have_unknown_fields()) { |
7215 | total_size += |
7216 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
7217 | _internal_metadata_.unknown_fields()); |
7218 | } |
7219 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7220 | // Prevent compiler warnings about cached_has_bits being unused |
7221 | (void) cached_has_bits; |
7222 | |
7223 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
7224 | SetCachedSize(cached_size); |
7225 | return total_size; |
7226 | } |
7227 | |
7228 | void InsertKeyValueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7229 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.InsertKeyValueResponse) |
7230 | GOOGLE_DCHECK_NE(&from, this); |
7231 | const InsertKeyValueResponse* source = |
7232 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<InsertKeyValueResponse>( |
7233 | &from); |
7234 | if (source == nullptr) { |
7235 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.InsertKeyValueResponse) |
7236 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
7237 | } else { |
7238 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.InsertKeyValueResponse) |
7239 | MergeFrom(*source); |
7240 | } |
7241 | } |
7242 | |
7243 | void InsertKeyValueResponse::MergeFrom(const InsertKeyValueResponse& from) { |
7244 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.InsertKeyValueResponse) |
7245 | GOOGLE_DCHECK_NE(&from, this); |
7246 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7247 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7248 | (void) cached_has_bits; |
7249 | |
7250 | } |
7251 | |
7252 | void InsertKeyValueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7253 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.InsertKeyValueResponse) |
7254 | if (&from == this) return; |
7255 | Clear(); |
7256 | MergeFrom(from); |
7257 | } |
7258 | |
7259 | void InsertKeyValueResponse::CopyFrom(const InsertKeyValueResponse& from) { |
7260 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.InsertKeyValueResponse) |
7261 | if (&from == this) return; |
7262 | Clear(); |
7263 | MergeFrom(from); |
7264 | } |
7265 | |
7266 | bool InsertKeyValueResponse::IsInitialized() const { |
7267 | return true; |
7268 | } |
7269 | |
7270 | void InsertKeyValueResponse::InternalSwap(InsertKeyValueResponse* other) { |
7271 | using std::swap; |
7272 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7273 | } |
7274 | |
7275 | ::PROTOBUF_NAMESPACE_ID::Metadata InsertKeyValueResponse::GetMetadata() const { |
7276 | return GetMetadataStatic(); |
7277 | } |
7278 | |
7279 | |
7280 | // =================================================================== |
7281 | |
7282 | void GetKeyValueRequest::InitAsDefaultInstance() { |
7283 | } |
7284 | class GetKeyValueRequest::_Internal { |
7285 | public: |
7286 | }; |
7287 | |
7288 | GetKeyValueRequest::GetKeyValueRequest() |
7289 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
7290 | SharedCtor(); |
7291 | // @@protoc_insertion_point(constructor:tensorflow.GetKeyValueRequest) |
7292 | } |
7293 | GetKeyValueRequest::GetKeyValueRequest(const GetKeyValueRequest& from) |
7294 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7295 | _internal_metadata_(nullptr) { |
7296 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7297 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7298 | if (!from.key().empty()) { |
7299 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
7300 | } |
7301 | // @@protoc_insertion_point(copy_constructor:tensorflow.GetKeyValueRequest) |
7302 | } |
7303 | |
7304 | void GetKeyValueRequest::SharedCtor() { |
7305 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7306 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7307 | } |
7308 | |
7309 | GetKeyValueRequest::~GetKeyValueRequest() { |
7310 | // @@protoc_insertion_point(destructor:tensorflow.GetKeyValueRequest) |
7311 | SharedDtor(); |
7312 | } |
7313 | |
7314 | void GetKeyValueRequest::SharedDtor() { |
7315 | key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7316 | } |
7317 | |
7318 | void GetKeyValueRequest::SetCachedSize(int size) const { |
7319 | _cached_size_.Set(size); |
7320 | } |
7321 | const GetKeyValueRequest& GetKeyValueRequest::default_instance() { |
7322 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7323 | return *internal_default_instance(); |
7324 | } |
7325 | |
7326 | |
7327 | void GetKeyValueRequest::Clear() { |
7328 | // @@protoc_insertion_point(message_clear_start:tensorflow.GetKeyValueRequest) |
7329 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7330 | // Prevent compiler warnings about cached_has_bits being unused |
7331 | (void) cached_has_bits; |
7332 | |
7333 | key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7334 | _internal_metadata_.Clear(); |
7335 | } |
7336 | |
7337 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7338 | const char* GetKeyValueRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
7339 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7340 | while (!ctx->Done(&ptr)) { |
7341 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7342 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
7343 | CHK_(ptr); |
7344 | switch (tag >> 3) { |
7345 | // string key = 1; |
7346 | case 1: |
7347 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
7348 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "tensorflow.GetKeyValueRequest.key" ); |
7349 | CHK_(ptr); |
7350 | } else goto handle_unusual; |
7351 | continue; |
7352 | default: { |
7353 | handle_unusual: |
7354 | if ((tag & 7) == 4 || tag == 0) { |
7355 | ctx->SetLastTag(tag); |
7356 | goto success; |
7357 | } |
7358 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
7359 | CHK_(ptr != nullptr); |
7360 | continue; |
7361 | } |
7362 | } // switch |
7363 | } // while |
7364 | success: |
7365 | return ptr; |
7366 | failure: |
7367 | ptr = nullptr; |
7368 | goto success; |
7369 | #undef CHK_ |
7370 | } |
7371 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7372 | bool GetKeyValueRequest::MergePartialFromCodedStream( |
7373 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
7374 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
7375 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7376 | // @@protoc_insertion_point(parse_start:tensorflow.GetKeyValueRequest) |
7377 | for (;;) { |
7378 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7379 | tag = p.first; |
7380 | if (!p.second) goto handle_unusual; |
7381 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7382 | // string key = 1; |
7383 | case 1: { |
7384 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
7385 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7386 | input, this->mutable_key())); |
7387 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7388 | this->key().data(), static_cast<int>(this->key().length()), |
7389 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7390 | "tensorflow.GetKeyValueRequest.key" )); |
7391 | } else { |
7392 | goto handle_unusual; |
7393 | } |
7394 | break; |
7395 | } |
7396 | |
7397 | default: { |
7398 | handle_unusual: |
7399 | if (tag == 0) { |
7400 | goto success; |
7401 | } |
7402 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
7403 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7404 | break; |
7405 | } |
7406 | } |
7407 | } |
7408 | success: |
7409 | // @@protoc_insertion_point(parse_success:tensorflow.GetKeyValueRequest) |
7410 | return true; |
7411 | failure: |
7412 | // @@protoc_insertion_point(parse_failure:tensorflow.GetKeyValueRequest) |
7413 | return false; |
7414 | #undef DO_ |
7415 | } |
7416 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7417 | |
7418 | void GetKeyValueRequest::SerializeWithCachedSizes( |
7419 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
7420 | // @@protoc_insertion_point(serialize_start:tensorflow.GetKeyValueRequest) |
7421 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7422 | (void) cached_has_bits; |
7423 | |
7424 | // string key = 1; |
7425 | if (this->key().size() > 0) { |
7426 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7427 | this->key().data(), static_cast<int>(this->key().length()), |
7428 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7429 | "tensorflow.GetKeyValueRequest.key" ); |
7430 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7431 | 1, this->key(), output); |
7432 | } |
7433 | |
7434 | if (_internal_metadata_.have_unknown_fields()) { |
7435 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
7436 | _internal_metadata_.unknown_fields(), output); |
7437 | } |
7438 | // @@protoc_insertion_point(serialize_end:tensorflow.GetKeyValueRequest) |
7439 | } |
7440 | |
7441 | ::PROTOBUF_NAMESPACE_ID::uint8* GetKeyValueRequest::InternalSerializeWithCachedSizesToArray( |
7442 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
7443 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetKeyValueRequest) |
7444 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7445 | (void) cached_has_bits; |
7446 | |
7447 | // string key = 1; |
7448 | if (this->key().size() > 0) { |
7449 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7450 | this->key().data(), static_cast<int>(this->key().length()), |
7451 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7452 | "tensorflow.GetKeyValueRequest.key" ); |
7453 | target = |
7454 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7455 | 1, this->key(), target); |
7456 | } |
7457 | |
7458 | if (_internal_metadata_.have_unknown_fields()) { |
7459 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
7460 | _internal_metadata_.unknown_fields(), target); |
7461 | } |
7462 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetKeyValueRequest) |
7463 | return target; |
7464 | } |
7465 | |
7466 | size_t GetKeyValueRequest::ByteSizeLong() const { |
7467 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.GetKeyValueRequest) |
7468 | size_t total_size = 0; |
7469 | |
7470 | if (_internal_metadata_.have_unknown_fields()) { |
7471 | total_size += |
7472 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
7473 | _internal_metadata_.unknown_fields()); |
7474 | } |
7475 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7476 | // Prevent compiler warnings about cached_has_bits being unused |
7477 | (void) cached_has_bits; |
7478 | |
7479 | // string key = 1; |
7480 | if (this->key().size() > 0) { |
7481 | total_size += 1 + |
7482 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7483 | this->key()); |
7484 | } |
7485 | |
7486 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
7487 | SetCachedSize(cached_size); |
7488 | return total_size; |
7489 | } |
7490 | |
7491 | void GetKeyValueRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7492 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetKeyValueRequest) |
7493 | GOOGLE_DCHECK_NE(&from, this); |
7494 | const GetKeyValueRequest* source = |
7495 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetKeyValueRequest>( |
7496 | &from); |
7497 | if (source == nullptr) { |
7498 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetKeyValueRequest) |
7499 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
7500 | } else { |
7501 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetKeyValueRequest) |
7502 | MergeFrom(*source); |
7503 | } |
7504 | } |
7505 | |
7506 | void GetKeyValueRequest::MergeFrom(const GetKeyValueRequest& from) { |
7507 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetKeyValueRequest) |
7508 | GOOGLE_DCHECK_NE(&from, this); |
7509 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7510 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7511 | (void) cached_has_bits; |
7512 | |
7513 | if (from.key().size() > 0) { |
7514 | |
7515 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
7516 | } |
7517 | } |
7518 | |
7519 | void GetKeyValueRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7520 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetKeyValueRequest) |
7521 | if (&from == this) return; |
7522 | Clear(); |
7523 | MergeFrom(from); |
7524 | } |
7525 | |
7526 | void GetKeyValueRequest::CopyFrom(const GetKeyValueRequest& from) { |
7527 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetKeyValueRequest) |
7528 | if (&from == this) return; |
7529 | Clear(); |
7530 | MergeFrom(from); |
7531 | } |
7532 | |
7533 | bool GetKeyValueRequest::IsInitialized() const { |
7534 | return true; |
7535 | } |
7536 | |
7537 | void GetKeyValueRequest::InternalSwap(GetKeyValueRequest* other) { |
7538 | using std::swap; |
7539 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7540 | key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
7541 | GetArenaNoVirtual()); |
7542 | } |
7543 | |
7544 | ::PROTOBUF_NAMESPACE_ID::Metadata GetKeyValueRequest::GetMetadata() const { |
7545 | return GetMetadataStatic(); |
7546 | } |
7547 | |
7548 | |
7549 | // =================================================================== |
7550 | |
7551 | void GetKeyValueResponse::InitAsDefaultInstance() { |
7552 | ::tensorflow::_GetKeyValueResponse_default_instance_._instance.get_mutable()->kv_ = const_cast< ::tensorflow::KeyValueEntry*>( |
7553 | ::tensorflow::KeyValueEntry::internal_default_instance()); |
7554 | } |
7555 | class GetKeyValueResponse::_Internal { |
7556 | public: |
7557 | static const ::tensorflow::KeyValueEntry& kv(const GetKeyValueResponse* msg); |
7558 | }; |
7559 | |
7560 | const ::tensorflow::KeyValueEntry& |
7561 | GetKeyValueResponse::_Internal::kv(const GetKeyValueResponse* msg) { |
7562 | return *msg->kv_; |
7563 | } |
7564 | GetKeyValueResponse::GetKeyValueResponse() |
7565 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
7566 | SharedCtor(); |
7567 | // @@protoc_insertion_point(constructor:tensorflow.GetKeyValueResponse) |
7568 | } |
7569 | GetKeyValueResponse::GetKeyValueResponse(const GetKeyValueResponse& from) |
7570 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7571 | _internal_metadata_(nullptr) { |
7572 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7573 | if (from.has_kv()) { |
7574 | kv_ = new ::tensorflow::KeyValueEntry(*from.kv_); |
7575 | } else { |
7576 | kv_ = nullptr; |
7577 | } |
7578 | // @@protoc_insertion_point(copy_constructor:tensorflow.GetKeyValueResponse) |
7579 | } |
7580 | |
7581 | void GetKeyValueResponse::SharedCtor() { |
7582 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7583 | kv_ = nullptr; |
7584 | } |
7585 | |
7586 | GetKeyValueResponse::~GetKeyValueResponse() { |
7587 | // @@protoc_insertion_point(destructor:tensorflow.GetKeyValueResponse) |
7588 | SharedDtor(); |
7589 | } |
7590 | |
7591 | void GetKeyValueResponse::SharedDtor() { |
7592 | if (this != internal_default_instance()) delete kv_; |
7593 | } |
7594 | |
7595 | void GetKeyValueResponse::SetCachedSize(int size) const { |
7596 | _cached_size_.Set(size); |
7597 | } |
7598 | const GetKeyValueResponse& GetKeyValueResponse::default_instance() { |
7599 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7600 | return *internal_default_instance(); |
7601 | } |
7602 | |
7603 | |
7604 | void GetKeyValueResponse::Clear() { |
7605 | // @@protoc_insertion_point(message_clear_start:tensorflow.GetKeyValueResponse) |
7606 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7607 | // Prevent compiler warnings about cached_has_bits being unused |
7608 | (void) cached_has_bits; |
7609 | |
7610 | if (GetArenaNoVirtual() == nullptr && kv_ != nullptr) { |
7611 | delete kv_; |
7612 | } |
7613 | kv_ = nullptr; |
7614 | _internal_metadata_.Clear(); |
7615 | } |
7616 | |
7617 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7618 | const char* GetKeyValueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
7619 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
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 | // .tensorflow.KeyValueEntry kv = 1; |
7626 | case 1: |
7627 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
7628 | ptr = ctx->ParseMessage(mutable_kv(), ptr); |
7629 | CHK_(ptr); |
7630 | } else goto handle_unusual; |
7631 | continue; |
7632 | default: { |
7633 | handle_unusual: |
7634 | if ((tag & 7) == 4 || tag == 0) { |
7635 | ctx->SetLastTag(tag); |
7636 | goto success; |
7637 | } |
7638 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
7639 | CHK_(ptr != nullptr); |
7640 | continue; |
7641 | } |
7642 | } // switch |
7643 | } // while |
7644 | success: |
7645 | return ptr; |
7646 | failure: |
7647 | ptr = nullptr; |
7648 | goto success; |
7649 | #undef CHK_ |
7650 | } |
7651 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7652 | bool GetKeyValueResponse::MergePartialFromCodedStream( |
7653 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
7654 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
7655 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7656 | // @@protoc_insertion_point(parse_start:tensorflow.GetKeyValueResponse) |
7657 | for (;;) { |
7658 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7659 | tag = p.first; |
7660 | if (!p.second) goto handle_unusual; |
7661 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7662 | // .tensorflow.KeyValueEntry kv = 1; |
7663 | case 1: { |
7664 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
7665 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7666 | input, mutable_kv())); |
7667 | } else { |
7668 | goto handle_unusual; |
7669 | } |
7670 | break; |
7671 | } |
7672 | |
7673 | default: { |
7674 | handle_unusual: |
7675 | if (tag == 0) { |
7676 | goto success; |
7677 | } |
7678 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
7679 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7680 | break; |
7681 | } |
7682 | } |
7683 | } |
7684 | success: |
7685 | // @@protoc_insertion_point(parse_success:tensorflow.GetKeyValueResponse) |
7686 | return true; |
7687 | failure: |
7688 | // @@protoc_insertion_point(parse_failure:tensorflow.GetKeyValueResponse) |
7689 | return false; |
7690 | #undef DO_ |
7691 | } |
7692 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7693 | |
7694 | void GetKeyValueResponse::SerializeWithCachedSizes( |
7695 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
7696 | // @@protoc_insertion_point(serialize_start:tensorflow.GetKeyValueResponse) |
7697 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7698 | (void) cached_has_bits; |
7699 | |
7700 | // .tensorflow.KeyValueEntry kv = 1; |
7701 | if (this->has_kv()) { |
7702 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7703 | 1, _Internal::kv(this), output); |
7704 | } |
7705 | |
7706 | if (_internal_metadata_.have_unknown_fields()) { |
7707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
7708 | _internal_metadata_.unknown_fields(), output); |
7709 | } |
7710 | // @@protoc_insertion_point(serialize_end:tensorflow.GetKeyValueResponse) |
7711 | } |
7712 | |
7713 | ::PROTOBUF_NAMESPACE_ID::uint8* GetKeyValueResponse::InternalSerializeWithCachedSizesToArray( |
7714 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
7715 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetKeyValueResponse) |
7716 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7717 | (void) cached_has_bits; |
7718 | |
7719 | // .tensorflow.KeyValueEntry kv = 1; |
7720 | if (this->has_kv()) { |
7721 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7722 | InternalWriteMessageToArray( |
7723 | 1, _Internal::kv(this), target); |
7724 | } |
7725 | |
7726 | if (_internal_metadata_.have_unknown_fields()) { |
7727 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
7728 | _internal_metadata_.unknown_fields(), target); |
7729 | } |
7730 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetKeyValueResponse) |
7731 | return target; |
7732 | } |
7733 | |
7734 | size_t GetKeyValueResponse::ByteSizeLong() const { |
7735 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.GetKeyValueResponse) |
7736 | size_t total_size = 0; |
7737 | |
7738 | if (_internal_metadata_.have_unknown_fields()) { |
7739 | total_size += |
7740 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
7741 | _internal_metadata_.unknown_fields()); |
7742 | } |
7743 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7744 | // Prevent compiler warnings about cached_has_bits being unused |
7745 | (void) cached_has_bits; |
7746 | |
7747 | // .tensorflow.KeyValueEntry kv = 1; |
7748 | if (this->has_kv()) { |
7749 | total_size += 1 + |
7750 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7751 | *kv_); |
7752 | } |
7753 | |
7754 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
7755 | SetCachedSize(cached_size); |
7756 | return total_size; |
7757 | } |
7758 | |
7759 | void GetKeyValueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7760 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetKeyValueResponse) |
7761 | GOOGLE_DCHECK_NE(&from, this); |
7762 | const GetKeyValueResponse* source = |
7763 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetKeyValueResponse>( |
7764 | &from); |
7765 | if (source == nullptr) { |
7766 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetKeyValueResponse) |
7767 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
7768 | } else { |
7769 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetKeyValueResponse) |
7770 | MergeFrom(*source); |
7771 | } |
7772 | } |
7773 | |
7774 | void GetKeyValueResponse::MergeFrom(const GetKeyValueResponse& from) { |
7775 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetKeyValueResponse) |
7776 | GOOGLE_DCHECK_NE(&from, this); |
7777 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7778 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7779 | (void) cached_has_bits; |
7780 | |
7781 | if (from.has_kv()) { |
7782 | mutable_kv()->::tensorflow::KeyValueEntry::MergeFrom(from.kv()); |
7783 | } |
7784 | } |
7785 | |
7786 | void GetKeyValueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7787 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetKeyValueResponse) |
7788 | if (&from == this) return; |
7789 | Clear(); |
7790 | MergeFrom(from); |
7791 | } |
7792 | |
7793 | void GetKeyValueResponse::CopyFrom(const GetKeyValueResponse& from) { |
7794 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetKeyValueResponse) |
7795 | if (&from == this) return; |
7796 | Clear(); |
7797 | MergeFrom(from); |
7798 | } |
7799 | |
7800 | bool GetKeyValueResponse::IsInitialized() const { |
7801 | return true; |
7802 | } |
7803 | |
7804 | void GetKeyValueResponse::InternalSwap(GetKeyValueResponse* other) { |
7805 | using std::swap; |
7806 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7807 | swap(kv_, other->kv_); |
7808 | } |
7809 | |
7810 | ::PROTOBUF_NAMESPACE_ID::Metadata GetKeyValueResponse::GetMetadata() const { |
7811 | return GetMetadataStatic(); |
7812 | } |
7813 | |
7814 | |
7815 | // =================================================================== |
7816 | |
7817 | void TryGetKeyValueRequest::InitAsDefaultInstance() { |
7818 | } |
7819 | class TryGetKeyValueRequest::_Internal { |
7820 | public: |
7821 | }; |
7822 | |
7823 | TryGetKeyValueRequest::TryGetKeyValueRequest() |
7824 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
7825 | SharedCtor(); |
7826 | // @@protoc_insertion_point(constructor:tensorflow.TryGetKeyValueRequest) |
7827 | } |
7828 | TryGetKeyValueRequest::TryGetKeyValueRequest(const TryGetKeyValueRequest& from) |
7829 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7830 | _internal_metadata_(nullptr) { |
7831 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7832 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7833 | if (!from.key().empty()) { |
7834 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
7835 | } |
7836 | // @@protoc_insertion_point(copy_constructor:tensorflow.TryGetKeyValueRequest) |
7837 | } |
7838 | |
7839 | void TryGetKeyValueRequest::SharedCtor() { |
7840 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7841 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7842 | } |
7843 | |
7844 | TryGetKeyValueRequest::~TryGetKeyValueRequest() { |
7845 | // @@protoc_insertion_point(destructor:tensorflow.TryGetKeyValueRequest) |
7846 | SharedDtor(); |
7847 | } |
7848 | |
7849 | void TryGetKeyValueRequest::SharedDtor() { |
7850 | key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7851 | } |
7852 | |
7853 | void TryGetKeyValueRequest::SetCachedSize(int size) const { |
7854 | _cached_size_.Set(size); |
7855 | } |
7856 | const TryGetKeyValueRequest& TryGetKeyValueRequest::default_instance() { |
7857 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TryGetKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
7858 | return *internal_default_instance(); |
7859 | } |
7860 | |
7861 | |
7862 | void TryGetKeyValueRequest::Clear() { |
7863 | // @@protoc_insertion_point(message_clear_start:tensorflow.TryGetKeyValueRequest) |
7864 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7865 | // Prevent compiler warnings about cached_has_bits being unused |
7866 | (void) cached_has_bits; |
7867 | |
7868 | key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7869 | _internal_metadata_.Clear(); |
7870 | } |
7871 | |
7872 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7873 | const char* TryGetKeyValueRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
7874 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7875 | while (!ctx->Done(&ptr)) { |
7876 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7877 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
7878 | CHK_(ptr); |
7879 | switch (tag >> 3) { |
7880 | // string key = 1; |
7881 | case 1: |
7882 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
7883 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "tensorflow.TryGetKeyValueRequest.key" ); |
7884 | CHK_(ptr); |
7885 | } else goto handle_unusual; |
7886 | continue; |
7887 | default: { |
7888 | handle_unusual: |
7889 | if ((tag & 7) == 4 || tag == 0) { |
7890 | ctx->SetLastTag(tag); |
7891 | goto success; |
7892 | } |
7893 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
7894 | CHK_(ptr != nullptr); |
7895 | continue; |
7896 | } |
7897 | } // switch |
7898 | } // while |
7899 | success: |
7900 | return ptr; |
7901 | failure: |
7902 | ptr = nullptr; |
7903 | goto success; |
7904 | #undef CHK_ |
7905 | } |
7906 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7907 | bool TryGetKeyValueRequest::MergePartialFromCodedStream( |
7908 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
7909 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
7910 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7911 | // @@protoc_insertion_point(parse_start:tensorflow.TryGetKeyValueRequest) |
7912 | for (;;) { |
7913 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7914 | tag = p.first; |
7915 | if (!p.second) goto handle_unusual; |
7916 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7917 | // string key = 1; |
7918 | case 1: { |
7919 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
7920 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7921 | input, this->mutable_key())); |
7922 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7923 | this->key().data(), static_cast<int>(this->key().length()), |
7924 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7925 | "tensorflow.TryGetKeyValueRequest.key" )); |
7926 | } else { |
7927 | goto handle_unusual; |
7928 | } |
7929 | break; |
7930 | } |
7931 | |
7932 | default: { |
7933 | handle_unusual: |
7934 | if (tag == 0) { |
7935 | goto success; |
7936 | } |
7937 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
7938 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7939 | break; |
7940 | } |
7941 | } |
7942 | } |
7943 | success: |
7944 | // @@protoc_insertion_point(parse_success:tensorflow.TryGetKeyValueRequest) |
7945 | return true; |
7946 | failure: |
7947 | // @@protoc_insertion_point(parse_failure:tensorflow.TryGetKeyValueRequest) |
7948 | return false; |
7949 | #undef DO_ |
7950 | } |
7951 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7952 | |
7953 | void TryGetKeyValueRequest::SerializeWithCachedSizes( |
7954 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
7955 | // @@protoc_insertion_point(serialize_start:tensorflow.TryGetKeyValueRequest) |
7956 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7957 | (void) cached_has_bits; |
7958 | |
7959 | // string key = 1; |
7960 | if (this->key().size() > 0) { |
7961 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7962 | this->key().data(), static_cast<int>(this->key().length()), |
7963 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7964 | "tensorflow.TryGetKeyValueRequest.key" ); |
7965 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7966 | 1, this->key(), output); |
7967 | } |
7968 | |
7969 | if (_internal_metadata_.have_unknown_fields()) { |
7970 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
7971 | _internal_metadata_.unknown_fields(), output); |
7972 | } |
7973 | // @@protoc_insertion_point(serialize_end:tensorflow.TryGetKeyValueRequest) |
7974 | } |
7975 | |
7976 | ::PROTOBUF_NAMESPACE_ID::uint8* TryGetKeyValueRequest::InternalSerializeWithCachedSizesToArray( |
7977 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
7978 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TryGetKeyValueRequest) |
7979 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7980 | (void) cached_has_bits; |
7981 | |
7982 | // string key = 1; |
7983 | if (this->key().size() > 0) { |
7984 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7985 | this->key().data(), static_cast<int>(this->key().length()), |
7986 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7987 | "tensorflow.TryGetKeyValueRequest.key" ); |
7988 | target = |
7989 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7990 | 1, this->key(), target); |
7991 | } |
7992 | |
7993 | if (_internal_metadata_.have_unknown_fields()) { |
7994 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
7995 | _internal_metadata_.unknown_fields(), target); |
7996 | } |
7997 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TryGetKeyValueRequest) |
7998 | return target; |
7999 | } |
8000 | |
8001 | size_t TryGetKeyValueRequest::ByteSizeLong() const { |
8002 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TryGetKeyValueRequest) |
8003 | size_t total_size = 0; |
8004 | |
8005 | if (_internal_metadata_.have_unknown_fields()) { |
8006 | total_size += |
8007 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
8008 | _internal_metadata_.unknown_fields()); |
8009 | } |
8010 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8011 | // Prevent compiler warnings about cached_has_bits being unused |
8012 | (void) cached_has_bits; |
8013 | |
8014 | // string key = 1; |
8015 | if (this->key().size() > 0) { |
8016 | total_size += 1 + |
8017 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
8018 | this->key()); |
8019 | } |
8020 | |
8021 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
8022 | SetCachedSize(cached_size); |
8023 | return total_size; |
8024 | } |
8025 | |
8026 | void TryGetKeyValueRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8027 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TryGetKeyValueRequest) |
8028 | GOOGLE_DCHECK_NE(&from, this); |
8029 | const TryGetKeyValueRequest* source = |
8030 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TryGetKeyValueRequest>( |
8031 | &from); |
8032 | if (source == nullptr) { |
8033 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TryGetKeyValueRequest) |
8034 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
8035 | } else { |
8036 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TryGetKeyValueRequest) |
8037 | MergeFrom(*source); |
8038 | } |
8039 | } |
8040 | |
8041 | void TryGetKeyValueRequest::MergeFrom(const TryGetKeyValueRequest& from) { |
8042 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TryGetKeyValueRequest) |
8043 | GOOGLE_DCHECK_NE(&from, this); |
8044 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8045 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8046 | (void) cached_has_bits; |
8047 | |
8048 | if (from.key().size() > 0) { |
8049 | |
8050 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
8051 | } |
8052 | } |
8053 | |
8054 | void TryGetKeyValueRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8055 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TryGetKeyValueRequest) |
8056 | if (&from == this) return; |
8057 | Clear(); |
8058 | MergeFrom(from); |
8059 | } |
8060 | |
8061 | void TryGetKeyValueRequest::CopyFrom(const TryGetKeyValueRequest& from) { |
8062 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TryGetKeyValueRequest) |
8063 | if (&from == this) return; |
8064 | Clear(); |
8065 | MergeFrom(from); |
8066 | } |
8067 | |
8068 | bool TryGetKeyValueRequest::IsInitialized() const { |
8069 | return true; |
8070 | } |
8071 | |
8072 | void TryGetKeyValueRequest::InternalSwap(TryGetKeyValueRequest* other) { |
8073 | using std::swap; |
8074 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8075 | key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
8076 | GetArenaNoVirtual()); |
8077 | } |
8078 | |
8079 | ::PROTOBUF_NAMESPACE_ID::Metadata TryGetKeyValueRequest::GetMetadata() const { |
8080 | return GetMetadataStatic(); |
8081 | } |
8082 | |
8083 | |
8084 | // =================================================================== |
8085 | |
8086 | void TryGetKeyValueResponse::InitAsDefaultInstance() { |
8087 | ::tensorflow::_TryGetKeyValueResponse_default_instance_._instance.get_mutable()->kv_ = const_cast< ::tensorflow::KeyValueEntry*>( |
8088 | ::tensorflow::KeyValueEntry::internal_default_instance()); |
8089 | } |
8090 | class TryGetKeyValueResponse::_Internal { |
8091 | public: |
8092 | static const ::tensorflow::KeyValueEntry& kv(const TryGetKeyValueResponse* msg); |
8093 | }; |
8094 | |
8095 | const ::tensorflow::KeyValueEntry& |
8096 | TryGetKeyValueResponse::_Internal::kv(const TryGetKeyValueResponse* msg) { |
8097 | return *msg->kv_; |
8098 | } |
8099 | TryGetKeyValueResponse::TryGetKeyValueResponse() |
8100 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
8101 | SharedCtor(); |
8102 | // @@protoc_insertion_point(constructor:tensorflow.TryGetKeyValueResponse) |
8103 | } |
8104 | TryGetKeyValueResponse::TryGetKeyValueResponse(const TryGetKeyValueResponse& from) |
8105 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
8106 | _internal_metadata_(nullptr) { |
8107 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8108 | if (from.has_kv()) { |
8109 | kv_ = new ::tensorflow::KeyValueEntry(*from.kv_); |
8110 | } else { |
8111 | kv_ = nullptr; |
8112 | } |
8113 | // @@protoc_insertion_point(copy_constructor:tensorflow.TryGetKeyValueResponse) |
8114 | } |
8115 | |
8116 | void TryGetKeyValueResponse::SharedCtor() { |
8117 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8118 | kv_ = nullptr; |
8119 | } |
8120 | |
8121 | TryGetKeyValueResponse::~TryGetKeyValueResponse() { |
8122 | // @@protoc_insertion_point(destructor:tensorflow.TryGetKeyValueResponse) |
8123 | SharedDtor(); |
8124 | } |
8125 | |
8126 | void TryGetKeyValueResponse::SharedDtor() { |
8127 | if (this != internal_default_instance()) delete kv_; |
8128 | } |
8129 | |
8130 | void TryGetKeyValueResponse::SetCachedSize(int size) const { |
8131 | _cached_size_.Set(size); |
8132 | } |
8133 | const TryGetKeyValueResponse& TryGetKeyValueResponse::default_instance() { |
8134 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TryGetKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8135 | return *internal_default_instance(); |
8136 | } |
8137 | |
8138 | |
8139 | void TryGetKeyValueResponse::Clear() { |
8140 | // @@protoc_insertion_point(message_clear_start:tensorflow.TryGetKeyValueResponse) |
8141 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8142 | // Prevent compiler warnings about cached_has_bits being unused |
8143 | (void) cached_has_bits; |
8144 | |
8145 | if (GetArenaNoVirtual() == nullptr && kv_ != nullptr) { |
8146 | delete kv_; |
8147 | } |
8148 | kv_ = nullptr; |
8149 | _internal_metadata_.Clear(); |
8150 | } |
8151 | |
8152 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8153 | const char* TryGetKeyValueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
8154 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8155 | while (!ctx->Done(&ptr)) { |
8156 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8157 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
8158 | CHK_(ptr); |
8159 | switch (tag >> 3) { |
8160 | // .tensorflow.KeyValueEntry kv = 1; |
8161 | case 1: |
8162 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
8163 | ptr = ctx->ParseMessage(mutable_kv(), ptr); |
8164 | CHK_(ptr); |
8165 | } else goto handle_unusual; |
8166 | continue; |
8167 | default: { |
8168 | handle_unusual: |
8169 | if ((tag & 7) == 4 || tag == 0) { |
8170 | ctx->SetLastTag(tag); |
8171 | goto success; |
8172 | } |
8173 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
8174 | CHK_(ptr != nullptr); |
8175 | continue; |
8176 | } |
8177 | } // switch |
8178 | } // while |
8179 | success: |
8180 | return ptr; |
8181 | failure: |
8182 | ptr = nullptr; |
8183 | goto success; |
8184 | #undef CHK_ |
8185 | } |
8186 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8187 | bool TryGetKeyValueResponse::MergePartialFromCodedStream( |
8188 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
8189 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
8190 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8191 | // @@protoc_insertion_point(parse_start:tensorflow.TryGetKeyValueResponse) |
8192 | for (;;) { |
8193 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8194 | tag = p.first; |
8195 | if (!p.second) goto handle_unusual; |
8196 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8197 | // .tensorflow.KeyValueEntry kv = 1; |
8198 | case 1: { |
8199 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
8200 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
8201 | input, mutable_kv())); |
8202 | } else { |
8203 | goto handle_unusual; |
8204 | } |
8205 | break; |
8206 | } |
8207 | |
8208 | default: { |
8209 | handle_unusual: |
8210 | if (tag == 0) { |
8211 | goto success; |
8212 | } |
8213 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
8214 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8215 | break; |
8216 | } |
8217 | } |
8218 | } |
8219 | success: |
8220 | // @@protoc_insertion_point(parse_success:tensorflow.TryGetKeyValueResponse) |
8221 | return true; |
8222 | failure: |
8223 | // @@protoc_insertion_point(parse_failure:tensorflow.TryGetKeyValueResponse) |
8224 | return false; |
8225 | #undef DO_ |
8226 | } |
8227 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8228 | |
8229 | void TryGetKeyValueResponse::SerializeWithCachedSizes( |
8230 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
8231 | // @@protoc_insertion_point(serialize_start:tensorflow.TryGetKeyValueResponse) |
8232 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8233 | (void) cached_has_bits; |
8234 | |
8235 | // .tensorflow.KeyValueEntry kv = 1; |
8236 | if (this->has_kv()) { |
8237 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
8238 | 1, _Internal::kv(this), output); |
8239 | } |
8240 | |
8241 | if (_internal_metadata_.have_unknown_fields()) { |
8242 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
8243 | _internal_metadata_.unknown_fields(), output); |
8244 | } |
8245 | // @@protoc_insertion_point(serialize_end:tensorflow.TryGetKeyValueResponse) |
8246 | } |
8247 | |
8248 | ::PROTOBUF_NAMESPACE_ID::uint8* TryGetKeyValueResponse::InternalSerializeWithCachedSizesToArray( |
8249 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
8250 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TryGetKeyValueResponse) |
8251 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8252 | (void) cached_has_bits; |
8253 | |
8254 | // .tensorflow.KeyValueEntry kv = 1; |
8255 | if (this->has_kv()) { |
8256 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8257 | InternalWriteMessageToArray( |
8258 | 1, _Internal::kv(this), target); |
8259 | } |
8260 | |
8261 | if (_internal_metadata_.have_unknown_fields()) { |
8262 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
8263 | _internal_metadata_.unknown_fields(), target); |
8264 | } |
8265 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TryGetKeyValueResponse) |
8266 | return target; |
8267 | } |
8268 | |
8269 | size_t TryGetKeyValueResponse::ByteSizeLong() const { |
8270 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TryGetKeyValueResponse) |
8271 | size_t total_size = 0; |
8272 | |
8273 | if (_internal_metadata_.have_unknown_fields()) { |
8274 | total_size += |
8275 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
8276 | _internal_metadata_.unknown_fields()); |
8277 | } |
8278 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8279 | // Prevent compiler warnings about cached_has_bits being unused |
8280 | (void) cached_has_bits; |
8281 | |
8282 | // .tensorflow.KeyValueEntry kv = 1; |
8283 | if (this->has_kv()) { |
8284 | total_size += 1 + |
8285 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8286 | *kv_); |
8287 | } |
8288 | |
8289 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
8290 | SetCachedSize(cached_size); |
8291 | return total_size; |
8292 | } |
8293 | |
8294 | void TryGetKeyValueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8295 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TryGetKeyValueResponse) |
8296 | GOOGLE_DCHECK_NE(&from, this); |
8297 | const TryGetKeyValueResponse* source = |
8298 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TryGetKeyValueResponse>( |
8299 | &from); |
8300 | if (source == nullptr) { |
8301 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TryGetKeyValueResponse) |
8302 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
8303 | } else { |
8304 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TryGetKeyValueResponse) |
8305 | MergeFrom(*source); |
8306 | } |
8307 | } |
8308 | |
8309 | void TryGetKeyValueResponse::MergeFrom(const TryGetKeyValueResponse& from) { |
8310 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TryGetKeyValueResponse) |
8311 | GOOGLE_DCHECK_NE(&from, this); |
8312 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8313 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8314 | (void) cached_has_bits; |
8315 | |
8316 | if (from.has_kv()) { |
8317 | mutable_kv()->::tensorflow::KeyValueEntry::MergeFrom(from.kv()); |
8318 | } |
8319 | } |
8320 | |
8321 | void TryGetKeyValueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8322 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TryGetKeyValueResponse) |
8323 | if (&from == this) return; |
8324 | Clear(); |
8325 | MergeFrom(from); |
8326 | } |
8327 | |
8328 | void TryGetKeyValueResponse::CopyFrom(const TryGetKeyValueResponse& from) { |
8329 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TryGetKeyValueResponse) |
8330 | if (&from == this) return; |
8331 | Clear(); |
8332 | MergeFrom(from); |
8333 | } |
8334 | |
8335 | bool TryGetKeyValueResponse::IsInitialized() const { |
8336 | return true; |
8337 | } |
8338 | |
8339 | void TryGetKeyValueResponse::InternalSwap(TryGetKeyValueResponse* other) { |
8340 | using std::swap; |
8341 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8342 | swap(kv_, other->kv_); |
8343 | } |
8344 | |
8345 | ::PROTOBUF_NAMESPACE_ID::Metadata TryGetKeyValueResponse::GetMetadata() const { |
8346 | return GetMetadataStatic(); |
8347 | } |
8348 | |
8349 | |
8350 | // =================================================================== |
8351 | |
8352 | void GetKeyValueDirRequest::InitAsDefaultInstance() { |
8353 | } |
8354 | class GetKeyValueDirRequest::_Internal { |
8355 | public: |
8356 | }; |
8357 | |
8358 | GetKeyValueDirRequest::GetKeyValueDirRequest() |
8359 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
8360 | SharedCtor(); |
8361 | // @@protoc_insertion_point(constructor:tensorflow.GetKeyValueDirRequest) |
8362 | } |
8363 | GetKeyValueDirRequest::GetKeyValueDirRequest(const GetKeyValueDirRequest& from) |
8364 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
8365 | _internal_metadata_(nullptr) { |
8366 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8367 | directory_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8368 | if (!from.directory_key().empty()) { |
8369 | directory_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_key_); |
8370 | } |
8371 | // @@protoc_insertion_point(copy_constructor:tensorflow.GetKeyValueDirRequest) |
8372 | } |
8373 | |
8374 | void GetKeyValueDirRequest::SharedCtor() { |
8375 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8376 | directory_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8377 | } |
8378 | |
8379 | GetKeyValueDirRequest::~GetKeyValueDirRequest() { |
8380 | // @@protoc_insertion_point(destructor:tensorflow.GetKeyValueDirRequest) |
8381 | SharedDtor(); |
8382 | } |
8383 | |
8384 | void GetKeyValueDirRequest::SharedDtor() { |
8385 | directory_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8386 | } |
8387 | |
8388 | void GetKeyValueDirRequest::SetCachedSize(int size) const { |
8389 | _cached_size_.Set(size); |
8390 | } |
8391 | const GetKeyValueDirRequest& GetKeyValueDirRequest::default_instance() { |
8392 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetKeyValueDirRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8393 | return *internal_default_instance(); |
8394 | } |
8395 | |
8396 | |
8397 | void GetKeyValueDirRequest::Clear() { |
8398 | // @@protoc_insertion_point(message_clear_start:tensorflow.GetKeyValueDirRequest) |
8399 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8400 | // Prevent compiler warnings about cached_has_bits being unused |
8401 | (void) cached_has_bits; |
8402 | |
8403 | directory_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8404 | _internal_metadata_.Clear(); |
8405 | } |
8406 | |
8407 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8408 | const char* GetKeyValueDirRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
8409 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8410 | while (!ctx->Done(&ptr)) { |
8411 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8412 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
8413 | CHK_(ptr); |
8414 | switch (tag >> 3) { |
8415 | // string directory_key = 1; |
8416 | case 1: |
8417 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
8418 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_directory_key(), ptr, ctx, "tensorflow.GetKeyValueDirRequest.directory_key" ); |
8419 | CHK_(ptr); |
8420 | } else goto handle_unusual; |
8421 | continue; |
8422 | default: { |
8423 | handle_unusual: |
8424 | if ((tag & 7) == 4 || tag == 0) { |
8425 | ctx->SetLastTag(tag); |
8426 | goto success; |
8427 | } |
8428 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
8429 | CHK_(ptr != nullptr); |
8430 | continue; |
8431 | } |
8432 | } // switch |
8433 | } // while |
8434 | success: |
8435 | return ptr; |
8436 | failure: |
8437 | ptr = nullptr; |
8438 | goto success; |
8439 | #undef CHK_ |
8440 | } |
8441 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8442 | bool GetKeyValueDirRequest::MergePartialFromCodedStream( |
8443 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
8444 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
8445 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8446 | // @@protoc_insertion_point(parse_start:tensorflow.GetKeyValueDirRequest) |
8447 | for (;;) { |
8448 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8449 | tag = p.first; |
8450 | if (!p.second) goto handle_unusual; |
8451 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8452 | // string directory_key = 1; |
8453 | case 1: { |
8454 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
8455 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
8456 | input, this->mutable_directory_key())); |
8457 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8458 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8459 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
8460 | "tensorflow.GetKeyValueDirRequest.directory_key" )); |
8461 | } else { |
8462 | goto handle_unusual; |
8463 | } |
8464 | break; |
8465 | } |
8466 | |
8467 | default: { |
8468 | handle_unusual: |
8469 | if (tag == 0) { |
8470 | goto success; |
8471 | } |
8472 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
8473 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8474 | break; |
8475 | } |
8476 | } |
8477 | } |
8478 | success: |
8479 | // @@protoc_insertion_point(parse_success:tensorflow.GetKeyValueDirRequest) |
8480 | return true; |
8481 | failure: |
8482 | // @@protoc_insertion_point(parse_failure:tensorflow.GetKeyValueDirRequest) |
8483 | return false; |
8484 | #undef DO_ |
8485 | } |
8486 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8487 | |
8488 | void GetKeyValueDirRequest::SerializeWithCachedSizes( |
8489 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
8490 | // @@protoc_insertion_point(serialize_start:tensorflow.GetKeyValueDirRequest) |
8491 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8492 | (void) cached_has_bits; |
8493 | |
8494 | // string directory_key = 1; |
8495 | if (this->directory_key().size() > 0) { |
8496 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8497 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8498 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
8499 | "tensorflow.GetKeyValueDirRequest.directory_key" ); |
8500 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
8501 | 1, this->directory_key(), output); |
8502 | } |
8503 | |
8504 | if (_internal_metadata_.have_unknown_fields()) { |
8505 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
8506 | _internal_metadata_.unknown_fields(), output); |
8507 | } |
8508 | // @@protoc_insertion_point(serialize_end:tensorflow.GetKeyValueDirRequest) |
8509 | } |
8510 | |
8511 | ::PROTOBUF_NAMESPACE_ID::uint8* GetKeyValueDirRequest::InternalSerializeWithCachedSizesToArray( |
8512 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
8513 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetKeyValueDirRequest) |
8514 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8515 | (void) cached_has_bits; |
8516 | |
8517 | // string directory_key = 1; |
8518 | if (this->directory_key().size() > 0) { |
8519 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8520 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8521 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
8522 | "tensorflow.GetKeyValueDirRequest.directory_key" ); |
8523 | target = |
8524 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
8525 | 1, this->directory_key(), target); |
8526 | } |
8527 | |
8528 | if (_internal_metadata_.have_unknown_fields()) { |
8529 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
8530 | _internal_metadata_.unknown_fields(), target); |
8531 | } |
8532 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetKeyValueDirRequest) |
8533 | return target; |
8534 | } |
8535 | |
8536 | size_t GetKeyValueDirRequest::ByteSizeLong() const { |
8537 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.GetKeyValueDirRequest) |
8538 | size_t total_size = 0; |
8539 | |
8540 | if (_internal_metadata_.have_unknown_fields()) { |
8541 | total_size += |
8542 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
8543 | _internal_metadata_.unknown_fields()); |
8544 | } |
8545 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8546 | // Prevent compiler warnings about cached_has_bits being unused |
8547 | (void) cached_has_bits; |
8548 | |
8549 | // string directory_key = 1; |
8550 | if (this->directory_key().size() > 0) { |
8551 | total_size += 1 + |
8552 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
8553 | this->directory_key()); |
8554 | } |
8555 | |
8556 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
8557 | SetCachedSize(cached_size); |
8558 | return total_size; |
8559 | } |
8560 | |
8561 | void GetKeyValueDirRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8562 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetKeyValueDirRequest) |
8563 | GOOGLE_DCHECK_NE(&from, this); |
8564 | const GetKeyValueDirRequest* source = |
8565 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetKeyValueDirRequest>( |
8566 | &from); |
8567 | if (source == nullptr) { |
8568 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetKeyValueDirRequest) |
8569 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
8570 | } else { |
8571 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetKeyValueDirRequest) |
8572 | MergeFrom(*source); |
8573 | } |
8574 | } |
8575 | |
8576 | void GetKeyValueDirRequest::MergeFrom(const GetKeyValueDirRequest& from) { |
8577 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetKeyValueDirRequest) |
8578 | GOOGLE_DCHECK_NE(&from, this); |
8579 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8580 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8581 | (void) cached_has_bits; |
8582 | |
8583 | if (from.directory_key().size() > 0) { |
8584 | |
8585 | directory_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_key_); |
8586 | } |
8587 | } |
8588 | |
8589 | void GetKeyValueDirRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8590 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetKeyValueDirRequest) |
8591 | if (&from == this) return; |
8592 | Clear(); |
8593 | MergeFrom(from); |
8594 | } |
8595 | |
8596 | void GetKeyValueDirRequest::CopyFrom(const GetKeyValueDirRequest& from) { |
8597 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetKeyValueDirRequest) |
8598 | if (&from == this) return; |
8599 | Clear(); |
8600 | MergeFrom(from); |
8601 | } |
8602 | |
8603 | bool GetKeyValueDirRequest::IsInitialized() const { |
8604 | return true; |
8605 | } |
8606 | |
8607 | void GetKeyValueDirRequest::InternalSwap(GetKeyValueDirRequest* other) { |
8608 | using std::swap; |
8609 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8610 | directory_key_.Swap(&other->directory_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
8611 | GetArenaNoVirtual()); |
8612 | } |
8613 | |
8614 | ::PROTOBUF_NAMESPACE_ID::Metadata GetKeyValueDirRequest::GetMetadata() const { |
8615 | return GetMetadataStatic(); |
8616 | } |
8617 | |
8618 | |
8619 | // =================================================================== |
8620 | |
8621 | void GetKeyValueDirResponse::InitAsDefaultInstance() { |
8622 | } |
8623 | class GetKeyValueDirResponse::_Internal { |
8624 | public: |
8625 | }; |
8626 | |
8627 | GetKeyValueDirResponse::GetKeyValueDirResponse() |
8628 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
8629 | SharedCtor(); |
8630 | // @@protoc_insertion_point(constructor:tensorflow.GetKeyValueDirResponse) |
8631 | } |
8632 | GetKeyValueDirResponse::GetKeyValueDirResponse(const GetKeyValueDirResponse& from) |
8633 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
8634 | _internal_metadata_(nullptr), |
8635 | kv_(from.kv_) { |
8636 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8637 | directory_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8638 | if (!from.directory_key().empty()) { |
8639 | directory_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_key_); |
8640 | } |
8641 | // @@protoc_insertion_point(copy_constructor:tensorflow.GetKeyValueDirResponse) |
8642 | } |
8643 | |
8644 | void GetKeyValueDirResponse::SharedCtor() { |
8645 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8646 | directory_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8647 | } |
8648 | |
8649 | GetKeyValueDirResponse::~GetKeyValueDirResponse() { |
8650 | // @@protoc_insertion_point(destructor:tensorflow.GetKeyValueDirResponse) |
8651 | SharedDtor(); |
8652 | } |
8653 | |
8654 | void GetKeyValueDirResponse::SharedDtor() { |
8655 | directory_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8656 | } |
8657 | |
8658 | void GetKeyValueDirResponse::SetCachedSize(int size) const { |
8659 | _cached_size_.Set(size); |
8660 | } |
8661 | const GetKeyValueDirResponse& GetKeyValueDirResponse::default_instance() { |
8662 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetKeyValueDirResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8663 | return *internal_default_instance(); |
8664 | } |
8665 | |
8666 | |
8667 | void GetKeyValueDirResponse::Clear() { |
8668 | // @@protoc_insertion_point(message_clear_start:tensorflow.GetKeyValueDirResponse) |
8669 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8670 | // Prevent compiler warnings about cached_has_bits being unused |
8671 | (void) cached_has_bits; |
8672 | |
8673 | kv_.Clear(); |
8674 | directory_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8675 | _internal_metadata_.Clear(); |
8676 | } |
8677 | |
8678 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8679 | const char* GetKeyValueDirResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
8680 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8681 | while (!ctx->Done(&ptr)) { |
8682 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8683 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
8684 | CHK_(ptr); |
8685 | switch (tag >> 3) { |
8686 | // string directory_key = 1; |
8687 | case 1: |
8688 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
8689 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_directory_key(), ptr, ctx, "tensorflow.GetKeyValueDirResponse.directory_key" ); |
8690 | CHK_(ptr); |
8691 | } else goto handle_unusual; |
8692 | continue; |
8693 | // repeated .tensorflow.KeyValueEntry kv = 2; |
8694 | case 2: |
8695 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
8696 | ptr -= 1; |
8697 | do { |
8698 | ptr += 1; |
8699 | ptr = ctx->ParseMessage(add_kv(), ptr); |
8700 | CHK_(ptr); |
8701 | if (!ctx->DataAvailable(ptr)) break; |
8702 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
8703 | } else goto handle_unusual; |
8704 | continue; |
8705 | default: { |
8706 | handle_unusual: |
8707 | if ((tag & 7) == 4 || tag == 0) { |
8708 | ctx->SetLastTag(tag); |
8709 | goto success; |
8710 | } |
8711 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
8712 | CHK_(ptr != nullptr); |
8713 | continue; |
8714 | } |
8715 | } // switch |
8716 | } // while |
8717 | success: |
8718 | return ptr; |
8719 | failure: |
8720 | ptr = nullptr; |
8721 | goto success; |
8722 | #undef CHK_ |
8723 | } |
8724 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8725 | bool GetKeyValueDirResponse::MergePartialFromCodedStream( |
8726 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
8727 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
8728 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
8729 | // @@protoc_insertion_point(parse_start:tensorflow.GetKeyValueDirResponse) |
8730 | for (;;) { |
8731 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8732 | tag = p.first; |
8733 | if (!p.second) goto handle_unusual; |
8734 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8735 | // string directory_key = 1; |
8736 | case 1: { |
8737 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
8738 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
8739 | input, this->mutable_directory_key())); |
8740 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8741 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8742 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
8743 | "tensorflow.GetKeyValueDirResponse.directory_key" )); |
8744 | } else { |
8745 | goto handle_unusual; |
8746 | } |
8747 | break; |
8748 | } |
8749 | |
8750 | // repeated .tensorflow.KeyValueEntry kv = 2; |
8751 | case 2: { |
8752 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
8753 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
8754 | input, add_kv())); |
8755 | } else { |
8756 | goto handle_unusual; |
8757 | } |
8758 | break; |
8759 | } |
8760 | |
8761 | default: { |
8762 | handle_unusual: |
8763 | if (tag == 0) { |
8764 | goto success; |
8765 | } |
8766 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
8767 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8768 | break; |
8769 | } |
8770 | } |
8771 | } |
8772 | success: |
8773 | // @@protoc_insertion_point(parse_success:tensorflow.GetKeyValueDirResponse) |
8774 | return true; |
8775 | failure: |
8776 | // @@protoc_insertion_point(parse_failure:tensorflow.GetKeyValueDirResponse) |
8777 | return false; |
8778 | #undef DO_ |
8779 | } |
8780 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
8781 | |
8782 | void GetKeyValueDirResponse::SerializeWithCachedSizes( |
8783 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
8784 | // @@protoc_insertion_point(serialize_start:tensorflow.GetKeyValueDirResponse) |
8785 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8786 | (void) cached_has_bits; |
8787 | |
8788 | // string directory_key = 1; |
8789 | if (this->directory_key().size() > 0) { |
8790 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8791 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8792 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
8793 | "tensorflow.GetKeyValueDirResponse.directory_key" ); |
8794 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
8795 | 1, this->directory_key(), output); |
8796 | } |
8797 | |
8798 | // repeated .tensorflow.KeyValueEntry kv = 2; |
8799 | for (unsigned int i = 0, |
8800 | n = static_cast<unsigned int>(this->kv_size()); i < n; i++) { |
8801 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
8802 | 2, |
8803 | this->kv(static_cast<int>(i)), |
8804 | output); |
8805 | } |
8806 | |
8807 | if (_internal_metadata_.have_unknown_fields()) { |
8808 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
8809 | _internal_metadata_.unknown_fields(), output); |
8810 | } |
8811 | // @@protoc_insertion_point(serialize_end:tensorflow.GetKeyValueDirResponse) |
8812 | } |
8813 | |
8814 | ::PROTOBUF_NAMESPACE_ID::uint8* GetKeyValueDirResponse::InternalSerializeWithCachedSizesToArray( |
8815 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
8816 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GetKeyValueDirResponse) |
8817 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8818 | (void) cached_has_bits; |
8819 | |
8820 | // string directory_key = 1; |
8821 | if (this->directory_key().size() > 0) { |
8822 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
8823 | this->directory_key().data(), static_cast<int>(this->directory_key().length()), |
8824 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
8825 | "tensorflow.GetKeyValueDirResponse.directory_key" ); |
8826 | target = |
8827 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
8828 | 1, this->directory_key(), target); |
8829 | } |
8830 | |
8831 | // repeated .tensorflow.KeyValueEntry kv = 2; |
8832 | for (unsigned int i = 0, |
8833 | n = static_cast<unsigned int>(this->kv_size()); i < n; i++) { |
8834 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8835 | InternalWriteMessageToArray( |
8836 | 2, this->kv(static_cast<int>(i)), target); |
8837 | } |
8838 | |
8839 | if (_internal_metadata_.have_unknown_fields()) { |
8840 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
8841 | _internal_metadata_.unknown_fields(), target); |
8842 | } |
8843 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GetKeyValueDirResponse) |
8844 | return target; |
8845 | } |
8846 | |
8847 | size_t GetKeyValueDirResponse::ByteSizeLong() const { |
8848 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.GetKeyValueDirResponse) |
8849 | size_t total_size = 0; |
8850 | |
8851 | if (_internal_metadata_.have_unknown_fields()) { |
8852 | total_size += |
8853 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
8854 | _internal_metadata_.unknown_fields()); |
8855 | } |
8856 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8857 | // Prevent compiler warnings about cached_has_bits being unused |
8858 | (void) cached_has_bits; |
8859 | |
8860 | // repeated .tensorflow.KeyValueEntry kv = 2; |
8861 | { |
8862 | unsigned int count = static_cast<unsigned int>(this->kv_size()); |
8863 | total_size += 1UL * count; |
8864 | for (unsigned int i = 0; i < count; i++) { |
8865 | total_size += |
8866 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8867 | this->kv(static_cast<int>(i))); |
8868 | } |
8869 | } |
8870 | |
8871 | // string directory_key = 1; |
8872 | if (this->directory_key().size() > 0) { |
8873 | total_size += 1 + |
8874 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
8875 | this->directory_key()); |
8876 | } |
8877 | |
8878 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
8879 | SetCachedSize(cached_size); |
8880 | return total_size; |
8881 | } |
8882 | |
8883 | void GetKeyValueDirResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8884 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GetKeyValueDirResponse) |
8885 | GOOGLE_DCHECK_NE(&from, this); |
8886 | const GetKeyValueDirResponse* source = |
8887 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetKeyValueDirResponse>( |
8888 | &from); |
8889 | if (source == nullptr) { |
8890 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GetKeyValueDirResponse) |
8891 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
8892 | } else { |
8893 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GetKeyValueDirResponse) |
8894 | MergeFrom(*source); |
8895 | } |
8896 | } |
8897 | |
8898 | void GetKeyValueDirResponse::MergeFrom(const GetKeyValueDirResponse& from) { |
8899 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GetKeyValueDirResponse) |
8900 | GOOGLE_DCHECK_NE(&from, this); |
8901 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8902 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8903 | (void) cached_has_bits; |
8904 | |
8905 | kv_.MergeFrom(from.kv_); |
8906 | if (from.directory_key().size() > 0) { |
8907 | |
8908 | directory_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_key_); |
8909 | } |
8910 | } |
8911 | |
8912 | void GetKeyValueDirResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
8913 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GetKeyValueDirResponse) |
8914 | if (&from == this) return; |
8915 | Clear(); |
8916 | MergeFrom(from); |
8917 | } |
8918 | |
8919 | void GetKeyValueDirResponse::CopyFrom(const GetKeyValueDirResponse& from) { |
8920 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GetKeyValueDirResponse) |
8921 | if (&from == this) return; |
8922 | Clear(); |
8923 | MergeFrom(from); |
8924 | } |
8925 | |
8926 | bool GetKeyValueDirResponse::IsInitialized() const { |
8927 | return true; |
8928 | } |
8929 | |
8930 | void GetKeyValueDirResponse::InternalSwap(GetKeyValueDirResponse* other) { |
8931 | using std::swap; |
8932 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8933 | CastToBase(&kv_)->InternalSwap(CastToBase(&other->kv_)); |
8934 | directory_key_.Swap(&other->directory_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
8935 | GetArenaNoVirtual()); |
8936 | } |
8937 | |
8938 | ::PROTOBUF_NAMESPACE_ID::Metadata GetKeyValueDirResponse::GetMetadata() const { |
8939 | return GetMetadataStatic(); |
8940 | } |
8941 | |
8942 | |
8943 | // =================================================================== |
8944 | |
8945 | void DeleteKeyValueRequest::InitAsDefaultInstance() { |
8946 | } |
8947 | class DeleteKeyValueRequest::_Internal { |
8948 | public: |
8949 | }; |
8950 | |
8951 | DeleteKeyValueRequest::DeleteKeyValueRequest() |
8952 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
8953 | SharedCtor(); |
8954 | // @@protoc_insertion_point(constructor:tensorflow.DeleteKeyValueRequest) |
8955 | } |
8956 | DeleteKeyValueRequest::DeleteKeyValueRequest(const DeleteKeyValueRequest& from) |
8957 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
8958 | _internal_metadata_(nullptr) { |
8959 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8960 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8961 | if (!from.key().empty()) { |
8962 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
8963 | } |
8964 | is_directory_ = from.is_directory_; |
8965 | // @@protoc_insertion_point(copy_constructor:tensorflow.DeleteKeyValueRequest) |
8966 | } |
8967 | |
8968 | void DeleteKeyValueRequest::SharedCtor() { |
8969 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8970 | key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8971 | is_directory_ = false; |
8972 | } |
8973 | |
8974 | DeleteKeyValueRequest::~DeleteKeyValueRequest() { |
8975 | // @@protoc_insertion_point(destructor:tensorflow.DeleteKeyValueRequest) |
8976 | SharedDtor(); |
8977 | } |
8978 | |
8979 | void DeleteKeyValueRequest::SharedDtor() { |
8980 | key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8981 | } |
8982 | |
8983 | void DeleteKeyValueRequest::SetCachedSize(int size) const { |
8984 | _cached_size_.Set(size); |
8985 | } |
8986 | const DeleteKeyValueRequest& DeleteKeyValueRequest::default_instance() { |
8987 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteKeyValueRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
8988 | return *internal_default_instance(); |
8989 | } |
8990 | |
8991 | |
8992 | void DeleteKeyValueRequest::Clear() { |
8993 | // @@protoc_insertion_point(message_clear_start:tensorflow.DeleteKeyValueRequest) |
8994 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
8995 | // Prevent compiler warnings about cached_has_bits being unused |
8996 | (void) cached_has_bits; |
8997 | |
8998 | key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
8999 | is_directory_ = false; |
9000 | _internal_metadata_.Clear(); |
9001 | } |
9002 | |
9003 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9004 | const char* DeleteKeyValueRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
9005 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9006 | while (!ctx->Done(&ptr)) { |
9007 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9008 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
9009 | CHK_(ptr); |
9010 | switch (tag >> 3) { |
9011 | // string key = 1; |
9012 | case 1: |
9013 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
9014 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "tensorflow.DeleteKeyValueRequest.key" ); |
9015 | CHK_(ptr); |
9016 | } else goto handle_unusual; |
9017 | continue; |
9018 | // bool is_directory = 2; |
9019 | case 2: |
9020 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
9021 | is_directory_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
9022 | CHK_(ptr); |
9023 | } else goto handle_unusual; |
9024 | continue; |
9025 | default: { |
9026 | handle_unusual: |
9027 | if ((tag & 7) == 4 || tag == 0) { |
9028 | ctx->SetLastTag(tag); |
9029 | goto success; |
9030 | } |
9031 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
9032 | CHK_(ptr != nullptr); |
9033 | continue; |
9034 | } |
9035 | } // switch |
9036 | } // while |
9037 | success: |
9038 | return ptr; |
9039 | failure: |
9040 | ptr = nullptr; |
9041 | goto success; |
9042 | #undef CHK_ |
9043 | } |
9044 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9045 | bool DeleteKeyValueRequest::MergePartialFromCodedStream( |
9046 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
9047 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
9048 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9049 | // @@protoc_insertion_point(parse_start:tensorflow.DeleteKeyValueRequest) |
9050 | for (;;) { |
9051 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9052 | tag = p.first; |
9053 | if (!p.second) goto handle_unusual; |
9054 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9055 | // string key = 1; |
9056 | case 1: { |
9057 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
9058 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
9059 | input, this->mutable_key())); |
9060 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9061 | this->key().data(), static_cast<int>(this->key().length()), |
9062 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
9063 | "tensorflow.DeleteKeyValueRequest.key" )); |
9064 | } else { |
9065 | goto handle_unusual; |
9066 | } |
9067 | break; |
9068 | } |
9069 | |
9070 | // bool is_directory = 2; |
9071 | case 2: { |
9072 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
9073 | |
9074 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
9075 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
9076 | input, &is_directory_))); |
9077 | } else { |
9078 | goto handle_unusual; |
9079 | } |
9080 | break; |
9081 | } |
9082 | |
9083 | default: { |
9084 | handle_unusual: |
9085 | if (tag == 0) { |
9086 | goto success; |
9087 | } |
9088 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
9089 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9090 | break; |
9091 | } |
9092 | } |
9093 | } |
9094 | success: |
9095 | // @@protoc_insertion_point(parse_success:tensorflow.DeleteKeyValueRequest) |
9096 | return true; |
9097 | failure: |
9098 | // @@protoc_insertion_point(parse_failure:tensorflow.DeleteKeyValueRequest) |
9099 | return false; |
9100 | #undef DO_ |
9101 | } |
9102 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9103 | |
9104 | void DeleteKeyValueRequest::SerializeWithCachedSizes( |
9105 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
9106 | // @@protoc_insertion_point(serialize_start:tensorflow.DeleteKeyValueRequest) |
9107 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9108 | (void) cached_has_bits; |
9109 | |
9110 | // string key = 1; |
9111 | if (this->key().size() > 0) { |
9112 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9113 | this->key().data(), static_cast<int>(this->key().length()), |
9114 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
9115 | "tensorflow.DeleteKeyValueRequest.key" ); |
9116 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
9117 | 1, this->key(), output); |
9118 | } |
9119 | |
9120 | // bool is_directory = 2; |
9121 | if (this->is_directory() != 0) { |
9122 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->is_directory(), output); |
9123 | } |
9124 | |
9125 | if (_internal_metadata_.have_unknown_fields()) { |
9126 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
9127 | _internal_metadata_.unknown_fields(), output); |
9128 | } |
9129 | // @@protoc_insertion_point(serialize_end:tensorflow.DeleteKeyValueRequest) |
9130 | } |
9131 | |
9132 | ::PROTOBUF_NAMESPACE_ID::uint8* DeleteKeyValueRequest::InternalSerializeWithCachedSizesToArray( |
9133 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
9134 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeleteKeyValueRequest) |
9135 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9136 | (void) cached_has_bits; |
9137 | |
9138 | // string key = 1; |
9139 | if (this->key().size() > 0) { |
9140 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9141 | this->key().data(), static_cast<int>(this->key().length()), |
9142 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
9143 | "tensorflow.DeleteKeyValueRequest.key" ); |
9144 | target = |
9145 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
9146 | 1, this->key(), target); |
9147 | } |
9148 | |
9149 | // bool is_directory = 2; |
9150 | if (this->is_directory() != 0) { |
9151 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->is_directory(), target); |
9152 | } |
9153 | |
9154 | if (_internal_metadata_.have_unknown_fields()) { |
9155 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
9156 | _internal_metadata_.unknown_fields(), target); |
9157 | } |
9158 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeleteKeyValueRequest) |
9159 | return target; |
9160 | } |
9161 | |
9162 | size_t DeleteKeyValueRequest::ByteSizeLong() const { |
9163 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DeleteKeyValueRequest) |
9164 | size_t total_size = 0; |
9165 | |
9166 | if (_internal_metadata_.have_unknown_fields()) { |
9167 | total_size += |
9168 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
9169 | _internal_metadata_.unknown_fields()); |
9170 | } |
9171 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9172 | // Prevent compiler warnings about cached_has_bits being unused |
9173 | (void) cached_has_bits; |
9174 | |
9175 | // string key = 1; |
9176 | if (this->key().size() > 0) { |
9177 | total_size += 1 + |
9178 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
9179 | this->key()); |
9180 | } |
9181 | |
9182 | // bool is_directory = 2; |
9183 | if (this->is_directory() != 0) { |
9184 | total_size += 1 + 1; |
9185 | } |
9186 | |
9187 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
9188 | SetCachedSize(cached_size); |
9189 | return total_size; |
9190 | } |
9191 | |
9192 | void DeleteKeyValueRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9193 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeleteKeyValueRequest) |
9194 | GOOGLE_DCHECK_NE(&from, this); |
9195 | const DeleteKeyValueRequest* source = |
9196 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeleteKeyValueRequest>( |
9197 | &from); |
9198 | if (source == nullptr) { |
9199 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeleteKeyValueRequest) |
9200 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
9201 | } else { |
9202 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeleteKeyValueRequest) |
9203 | MergeFrom(*source); |
9204 | } |
9205 | } |
9206 | |
9207 | void DeleteKeyValueRequest::MergeFrom(const DeleteKeyValueRequest& from) { |
9208 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeleteKeyValueRequest) |
9209 | GOOGLE_DCHECK_NE(&from, this); |
9210 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9211 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9212 | (void) cached_has_bits; |
9213 | |
9214 | if (from.key().size() > 0) { |
9215 | |
9216 | key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); |
9217 | } |
9218 | if (from.is_directory() != 0) { |
9219 | set_is_directory(from.is_directory()); |
9220 | } |
9221 | } |
9222 | |
9223 | void DeleteKeyValueRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9224 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeleteKeyValueRequest) |
9225 | if (&from == this) return; |
9226 | Clear(); |
9227 | MergeFrom(from); |
9228 | } |
9229 | |
9230 | void DeleteKeyValueRequest::CopyFrom(const DeleteKeyValueRequest& from) { |
9231 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeleteKeyValueRequest) |
9232 | if (&from == this) return; |
9233 | Clear(); |
9234 | MergeFrom(from); |
9235 | } |
9236 | |
9237 | bool DeleteKeyValueRequest::IsInitialized() const { |
9238 | return true; |
9239 | } |
9240 | |
9241 | void DeleteKeyValueRequest::InternalSwap(DeleteKeyValueRequest* other) { |
9242 | using std::swap; |
9243 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9244 | key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
9245 | GetArenaNoVirtual()); |
9246 | swap(is_directory_, other->is_directory_); |
9247 | } |
9248 | |
9249 | ::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyValueRequest::GetMetadata() const { |
9250 | return GetMetadataStatic(); |
9251 | } |
9252 | |
9253 | |
9254 | // =================================================================== |
9255 | |
9256 | void DeleteKeyValueResponse::InitAsDefaultInstance() { |
9257 | } |
9258 | class DeleteKeyValueResponse::_Internal { |
9259 | public: |
9260 | }; |
9261 | |
9262 | DeleteKeyValueResponse::DeleteKeyValueResponse() |
9263 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
9264 | SharedCtor(); |
9265 | // @@protoc_insertion_point(constructor:tensorflow.DeleteKeyValueResponse) |
9266 | } |
9267 | DeleteKeyValueResponse::DeleteKeyValueResponse(const DeleteKeyValueResponse& from) |
9268 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
9269 | _internal_metadata_(nullptr) { |
9270 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9271 | // @@protoc_insertion_point(copy_constructor:tensorflow.DeleteKeyValueResponse) |
9272 | } |
9273 | |
9274 | void DeleteKeyValueResponse::SharedCtor() { |
9275 | } |
9276 | |
9277 | DeleteKeyValueResponse::~DeleteKeyValueResponse() { |
9278 | // @@protoc_insertion_point(destructor:tensorflow.DeleteKeyValueResponse) |
9279 | SharedDtor(); |
9280 | } |
9281 | |
9282 | void DeleteKeyValueResponse::SharedDtor() { |
9283 | } |
9284 | |
9285 | void DeleteKeyValueResponse::SetCachedSize(int size) const { |
9286 | _cached_size_.Set(size); |
9287 | } |
9288 | const DeleteKeyValueResponse& DeleteKeyValueResponse::default_instance() { |
9289 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteKeyValueResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
9290 | return *internal_default_instance(); |
9291 | } |
9292 | |
9293 | |
9294 | void DeleteKeyValueResponse::Clear() { |
9295 | // @@protoc_insertion_point(message_clear_start:tensorflow.DeleteKeyValueResponse) |
9296 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9297 | // Prevent compiler warnings about cached_has_bits being unused |
9298 | (void) cached_has_bits; |
9299 | |
9300 | _internal_metadata_.Clear(); |
9301 | } |
9302 | |
9303 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9304 | const char* DeleteKeyValueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
9305 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9306 | while (!ctx->Done(&ptr)) { |
9307 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9308 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
9309 | CHK_(ptr); |
9310 | switch (tag >> 3) { |
9311 | default: { |
9312 | if ((tag & 7) == 4 || tag == 0) { |
9313 | ctx->SetLastTag(tag); |
9314 | goto success; |
9315 | } |
9316 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
9317 | CHK_(ptr != nullptr); |
9318 | continue; |
9319 | } |
9320 | } // switch |
9321 | } // while |
9322 | success: |
9323 | return ptr; |
9324 | failure: |
9325 | ptr = nullptr; |
9326 | goto success; |
9327 | #undef CHK_ |
9328 | } |
9329 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9330 | bool DeleteKeyValueResponse::MergePartialFromCodedStream( |
9331 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
9332 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
9333 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9334 | // @@protoc_insertion_point(parse_start:tensorflow.DeleteKeyValueResponse) |
9335 | for (;;) { |
9336 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9337 | tag = p.first; |
9338 | if (!p.second) goto handle_unusual; |
9339 | handle_unusual: |
9340 | if (tag == 0) { |
9341 | goto success; |
9342 | } |
9343 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
9344 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9345 | } |
9346 | success: |
9347 | // @@protoc_insertion_point(parse_success:tensorflow.DeleteKeyValueResponse) |
9348 | return true; |
9349 | failure: |
9350 | // @@protoc_insertion_point(parse_failure:tensorflow.DeleteKeyValueResponse) |
9351 | return false; |
9352 | #undef DO_ |
9353 | } |
9354 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9355 | |
9356 | void DeleteKeyValueResponse::SerializeWithCachedSizes( |
9357 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
9358 | // @@protoc_insertion_point(serialize_start:tensorflow.DeleteKeyValueResponse) |
9359 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9360 | (void) cached_has_bits; |
9361 | |
9362 | if (_internal_metadata_.have_unknown_fields()) { |
9363 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
9364 | _internal_metadata_.unknown_fields(), output); |
9365 | } |
9366 | // @@protoc_insertion_point(serialize_end:tensorflow.DeleteKeyValueResponse) |
9367 | } |
9368 | |
9369 | ::PROTOBUF_NAMESPACE_ID::uint8* DeleteKeyValueResponse::InternalSerializeWithCachedSizesToArray( |
9370 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
9371 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.DeleteKeyValueResponse) |
9372 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9373 | (void) cached_has_bits; |
9374 | |
9375 | if (_internal_metadata_.have_unknown_fields()) { |
9376 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
9377 | _internal_metadata_.unknown_fields(), target); |
9378 | } |
9379 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.DeleteKeyValueResponse) |
9380 | return target; |
9381 | } |
9382 | |
9383 | size_t DeleteKeyValueResponse::ByteSizeLong() const { |
9384 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.DeleteKeyValueResponse) |
9385 | size_t total_size = 0; |
9386 | |
9387 | if (_internal_metadata_.have_unknown_fields()) { |
9388 | total_size += |
9389 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
9390 | _internal_metadata_.unknown_fields()); |
9391 | } |
9392 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9393 | // Prevent compiler warnings about cached_has_bits being unused |
9394 | (void) cached_has_bits; |
9395 | |
9396 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
9397 | SetCachedSize(cached_size); |
9398 | return total_size; |
9399 | } |
9400 | |
9401 | void DeleteKeyValueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9402 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.DeleteKeyValueResponse) |
9403 | GOOGLE_DCHECK_NE(&from, this); |
9404 | const DeleteKeyValueResponse* source = |
9405 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DeleteKeyValueResponse>( |
9406 | &from); |
9407 | if (source == nullptr) { |
9408 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.DeleteKeyValueResponse) |
9409 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
9410 | } else { |
9411 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.DeleteKeyValueResponse) |
9412 | MergeFrom(*source); |
9413 | } |
9414 | } |
9415 | |
9416 | void DeleteKeyValueResponse::MergeFrom(const DeleteKeyValueResponse& from) { |
9417 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.DeleteKeyValueResponse) |
9418 | GOOGLE_DCHECK_NE(&from, this); |
9419 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9420 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9421 | (void) cached_has_bits; |
9422 | |
9423 | } |
9424 | |
9425 | void DeleteKeyValueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9426 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.DeleteKeyValueResponse) |
9427 | if (&from == this) return; |
9428 | Clear(); |
9429 | MergeFrom(from); |
9430 | } |
9431 | |
9432 | void DeleteKeyValueResponse::CopyFrom(const DeleteKeyValueResponse& from) { |
9433 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.DeleteKeyValueResponse) |
9434 | if (&from == this) return; |
9435 | Clear(); |
9436 | MergeFrom(from); |
9437 | } |
9438 | |
9439 | bool DeleteKeyValueResponse::IsInitialized() const { |
9440 | return true; |
9441 | } |
9442 | |
9443 | void DeleteKeyValueResponse::InternalSwap(DeleteKeyValueResponse* other) { |
9444 | using std::swap; |
9445 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9446 | } |
9447 | |
9448 | ::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyValueResponse::GetMetadata() const { |
9449 | return GetMetadataStatic(); |
9450 | } |
9451 | |
9452 | |
9453 | // =================================================================== |
9454 | |
9455 | void BarrierRequest::InitAsDefaultInstance() { |
9456 | ::tensorflow::_BarrierRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
9457 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
9458 | } |
9459 | class BarrierRequest::_Internal { |
9460 | public: |
9461 | static const ::tensorflow::CoordinatedTask& source_task(const BarrierRequest* msg); |
9462 | }; |
9463 | |
9464 | const ::tensorflow::CoordinatedTask& |
9465 | BarrierRequest::_Internal::source_task(const BarrierRequest* msg) { |
9466 | return *msg->source_task_; |
9467 | } |
9468 | BarrierRequest::BarrierRequest() |
9469 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
9470 | SharedCtor(); |
9471 | // @@protoc_insertion_point(constructor:tensorflow.BarrierRequest) |
9472 | } |
9473 | BarrierRequest::BarrierRequest(const BarrierRequest& from) |
9474 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
9475 | _internal_metadata_(nullptr), |
9476 | tasks_(from.tasks_) { |
9477 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9478 | barrier_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
9479 | if (!from.barrier_id().empty()) { |
9480 | barrier_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.barrier_id_); |
9481 | } |
9482 | if (from.has_source_task()) { |
9483 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
9484 | } else { |
9485 | source_task_ = nullptr; |
9486 | } |
9487 | barrier_timeout_in_ms_ = from.barrier_timeout_in_ms_; |
9488 | // @@protoc_insertion_point(copy_constructor:tensorflow.BarrierRequest) |
9489 | } |
9490 | |
9491 | void BarrierRequest::SharedCtor() { |
9492 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
9493 | barrier_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
9494 | ::memset(&source_task_, 0, static_cast<size_t>( |
9495 | reinterpret_cast<char*>(&barrier_timeout_in_ms_) - |
9496 | reinterpret_cast<char*>(&source_task_)) + sizeof(barrier_timeout_in_ms_)); |
9497 | } |
9498 | |
9499 | BarrierRequest::~BarrierRequest() { |
9500 | // @@protoc_insertion_point(destructor:tensorflow.BarrierRequest) |
9501 | SharedDtor(); |
9502 | } |
9503 | |
9504 | void BarrierRequest::SharedDtor() { |
9505 | barrier_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
9506 | if (this != internal_default_instance()) delete source_task_; |
9507 | } |
9508 | |
9509 | void BarrierRequest::SetCachedSize(int size) const { |
9510 | _cached_size_.Set(size); |
9511 | } |
9512 | const BarrierRequest& BarrierRequest::default_instance() { |
9513 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
9514 | return *internal_default_instance(); |
9515 | } |
9516 | |
9517 | |
9518 | void BarrierRequest::Clear() { |
9519 | // @@protoc_insertion_point(message_clear_start:tensorflow.BarrierRequest) |
9520 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9521 | // Prevent compiler warnings about cached_has_bits being unused |
9522 | (void) cached_has_bits; |
9523 | |
9524 | tasks_.Clear(); |
9525 | barrier_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
9526 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
9527 | delete source_task_; |
9528 | } |
9529 | source_task_ = nullptr; |
9530 | barrier_timeout_in_ms_ = PROTOBUF_LONGLONG(0); |
9531 | _internal_metadata_.Clear(); |
9532 | } |
9533 | |
9534 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9535 | const char* BarrierRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
9536 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9537 | while (!ctx->Done(&ptr)) { |
9538 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9539 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
9540 | CHK_(ptr); |
9541 | switch (tag >> 3) { |
9542 | // string barrier_id = 1; |
9543 | case 1: |
9544 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
9545 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_barrier_id(), ptr, ctx, "tensorflow.BarrierRequest.barrier_id" ); |
9546 | CHK_(ptr); |
9547 | } else goto handle_unusual; |
9548 | continue; |
9549 | // int64 barrier_timeout_in_ms = 2; |
9550 | case 2: |
9551 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
9552 | barrier_timeout_in_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
9553 | CHK_(ptr); |
9554 | } else goto handle_unusual; |
9555 | continue; |
9556 | // repeated .tensorflow.CoordinatedTask tasks = 3; |
9557 | case 3: |
9558 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
9559 | ptr -= 1; |
9560 | do { |
9561 | ptr += 1; |
9562 | ptr = ctx->ParseMessage(add_tasks(), ptr); |
9563 | CHK_(ptr); |
9564 | if (!ctx->DataAvailable(ptr)) break; |
9565 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); |
9566 | } else goto handle_unusual; |
9567 | continue; |
9568 | // .tensorflow.CoordinatedTask source_task = 4; |
9569 | case 4: |
9570 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
9571 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
9572 | CHK_(ptr); |
9573 | } else goto handle_unusual; |
9574 | continue; |
9575 | default: { |
9576 | handle_unusual: |
9577 | if ((tag & 7) == 4 || tag == 0) { |
9578 | ctx->SetLastTag(tag); |
9579 | goto success; |
9580 | } |
9581 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
9582 | CHK_(ptr != nullptr); |
9583 | continue; |
9584 | } |
9585 | } // switch |
9586 | } // while |
9587 | success: |
9588 | return ptr; |
9589 | failure: |
9590 | ptr = nullptr; |
9591 | goto success; |
9592 | #undef CHK_ |
9593 | } |
9594 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9595 | bool BarrierRequest::MergePartialFromCodedStream( |
9596 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
9597 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
9598 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9599 | // @@protoc_insertion_point(parse_start:tensorflow.BarrierRequest) |
9600 | for (;;) { |
9601 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9602 | tag = p.first; |
9603 | if (!p.second) goto handle_unusual; |
9604 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9605 | // string barrier_id = 1; |
9606 | case 1: { |
9607 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
9608 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
9609 | input, this->mutable_barrier_id())); |
9610 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9611 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
9612 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
9613 | "tensorflow.BarrierRequest.barrier_id" )); |
9614 | } else { |
9615 | goto handle_unusual; |
9616 | } |
9617 | break; |
9618 | } |
9619 | |
9620 | // int64 barrier_timeout_in_ms = 2; |
9621 | case 2: { |
9622 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
9623 | |
9624 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
9625 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
9626 | input, &barrier_timeout_in_ms_))); |
9627 | } else { |
9628 | goto handle_unusual; |
9629 | } |
9630 | break; |
9631 | } |
9632 | |
9633 | // repeated .tensorflow.CoordinatedTask tasks = 3; |
9634 | case 3: { |
9635 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
9636 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
9637 | input, add_tasks())); |
9638 | } else { |
9639 | goto handle_unusual; |
9640 | } |
9641 | break; |
9642 | } |
9643 | |
9644 | // .tensorflow.CoordinatedTask source_task = 4; |
9645 | case 4: { |
9646 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
9647 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
9648 | input, mutable_source_task())); |
9649 | } else { |
9650 | goto handle_unusual; |
9651 | } |
9652 | break; |
9653 | } |
9654 | |
9655 | default: { |
9656 | handle_unusual: |
9657 | if (tag == 0) { |
9658 | goto success; |
9659 | } |
9660 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
9661 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9662 | break; |
9663 | } |
9664 | } |
9665 | } |
9666 | success: |
9667 | // @@protoc_insertion_point(parse_success:tensorflow.BarrierRequest) |
9668 | return true; |
9669 | failure: |
9670 | // @@protoc_insertion_point(parse_failure:tensorflow.BarrierRequest) |
9671 | return false; |
9672 | #undef DO_ |
9673 | } |
9674 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9675 | |
9676 | void BarrierRequest::SerializeWithCachedSizes( |
9677 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
9678 | // @@protoc_insertion_point(serialize_start:tensorflow.BarrierRequest) |
9679 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9680 | (void) cached_has_bits; |
9681 | |
9682 | // string barrier_id = 1; |
9683 | if (this->barrier_id().size() > 0) { |
9684 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9685 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
9686 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
9687 | "tensorflow.BarrierRequest.barrier_id" ); |
9688 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
9689 | 1, this->barrier_id(), output); |
9690 | } |
9691 | |
9692 | // int64 barrier_timeout_in_ms = 2; |
9693 | if (this->barrier_timeout_in_ms() != 0) { |
9694 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->barrier_timeout_in_ms(), output); |
9695 | } |
9696 | |
9697 | // repeated .tensorflow.CoordinatedTask tasks = 3; |
9698 | for (unsigned int i = 0, |
9699 | n = static_cast<unsigned int>(this->tasks_size()); i < n; i++) { |
9700 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
9701 | 3, |
9702 | this->tasks(static_cast<int>(i)), |
9703 | output); |
9704 | } |
9705 | |
9706 | // .tensorflow.CoordinatedTask source_task = 4; |
9707 | if (this->has_source_task()) { |
9708 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
9709 | 4, _Internal::source_task(this), output); |
9710 | } |
9711 | |
9712 | if (_internal_metadata_.have_unknown_fields()) { |
9713 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
9714 | _internal_metadata_.unknown_fields(), output); |
9715 | } |
9716 | // @@protoc_insertion_point(serialize_end:tensorflow.BarrierRequest) |
9717 | } |
9718 | |
9719 | ::PROTOBUF_NAMESPACE_ID::uint8* BarrierRequest::InternalSerializeWithCachedSizesToArray( |
9720 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
9721 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.BarrierRequest) |
9722 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9723 | (void) cached_has_bits; |
9724 | |
9725 | // string barrier_id = 1; |
9726 | if (this->barrier_id().size() > 0) { |
9727 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
9728 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
9729 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
9730 | "tensorflow.BarrierRequest.barrier_id" ); |
9731 | target = |
9732 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
9733 | 1, this->barrier_id(), target); |
9734 | } |
9735 | |
9736 | // int64 barrier_timeout_in_ms = 2; |
9737 | if (this->barrier_timeout_in_ms() != 0) { |
9738 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->barrier_timeout_in_ms(), target); |
9739 | } |
9740 | |
9741 | // repeated .tensorflow.CoordinatedTask tasks = 3; |
9742 | for (unsigned int i = 0, |
9743 | n = static_cast<unsigned int>(this->tasks_size()); i < n; i++) { |
9744 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9745 | InternalWriteMessageToArray( |
9746 | 3, this->tasks(static_cast<int>(i)), target); |
9747 | } |
9748 | |
9749 | // .tensorflow.CoordinatedTask source_task = 4; |
9750 | if (this->has_source_task()) { |
9751 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9752 | InternalWriteMessageToArray( |
9753 | 4, _Internal::source_task(this), target); |
9754 | } |
9755 | |
9756 | if (_internal_metadata_.have_unknown_fields()) { |
9757 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
9758 | _internal_metadata_.unknown_fields(), target); |
9759 | } |
9760 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.BarrierRequest) |
9761 | return target; |
9762 | } |
9763 | |
9764 | size_t BarrierRequest::ByteSizeLong() const { |
9765 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.BarrierRequest) |
9766 | size_t total_size = 0; |
9767 | |
9768 | if (_internal_metadata_.have_unknown_fields()) { |
9769 | total_size += |
9770 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
9771 | _internal_metadata_.unknown_fields()); |
9772 | } |
9773 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9774 | // Prevent compiler warnings about cached_has_bits being unused |
9775 | (void) cached_has_bits; |
9776 | |
9777 | // repeated .tensorflow.CoordinatedTask tasks = 3; |
9778 | { |
9779 | unsigned int count = static_cast<unsigned int>(this->tasks_size()); |
9780 | total_size += 1UL * count; |
9781 | for (unsigned int i = 0; i < count; i++) { |
9782 | total_size += |
9783 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9784 | this->tasks(static_cast<int>(i))); |
9785 | } |
9786 | } |
9787 | |
9788 | // string barrier_id = 1; |
9789 | if (this->barrier_id().size() > 0) { |
9790 | total_size += 1 + |
9791 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
9792 | this->barrier_id()); |
9793 | } |
9794 | |
9795 | // .tensorflow.CoordinatedTask source_task = 4; |
9796 | if (this->has_source_task()) { |
9797 | total_size += 1 + |
9798 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9799 | *source_task_); |
9800 | } |
9801 | |
9802 | // int64 barrier_timeout_in_ms = 2; |
9803 | if (this->barrier_timeout_in_ms() != 0) { |
9804 | total_size += 1 + |
9805 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
9806 | this->barrier_timeout_in_ms()); |
9807 | } |
9808 | |
9809 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
9810 | SetCachedSize(cached_size); |
9811 | return total_size; |
9812 | } |
9813 | |
9814 | void BarrierRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9815 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.BarrierRequest) |
9816 | GOOGLE_DCHECK_NE(&from, this); |
9817 | const BarrierRequest* source = |
9818 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BarrierRequest>( |
9819 | &from); |
9820 | if (source == nullptr) { |
9821 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.BarrierRequest) |
9822 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
9823 | } else { |
9824 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.BarrierRequest) |
9825 | MergeFrom(*source); |
9826 | } |
9827 | } |
9828 | |
9829 | void BarrierRequest::MergeFrom(const BarrierRequest& from) { |
9830 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.BarrierRequest) |
9831 | GOOGLE_DCHECK_NE(&from, this); |
9832 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9833 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9834 | (void) cached_has_bits; |
9835 | |
9836 | tasks_.MergeFrom(from.tasks_); |
9837 | if (from.barrier_id().size() > 0) { |
9838 | |
9839 | barrier_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.barrier_id_); |
9840 | } |
9841 | if (from.has_source_task()) { |
9842 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
9843 | } |
9844 | if (from.barrier_timeout_in_ms() != 0) { |
9845 | set_barrier_timeout_in_ms(from.barrier_timeout_in_ms()); |
9846 | } |
9847 | } |
9848 | |
9849 | void BarrierRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
9850 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.BarrierRequest) |
9851 | if (&from == this) return; |
9852 | Clear(); |
9853 | MergeFrom(from); |
9854 | } |
9855 | |
9856 | void BarrierRequest::CopyFrom(const BarrierRequest& from) { |
9857 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.BarrierRequest) |
9858 | if (&from == this) return; |
9859 | Clear(); |
9860 | MergeFrom(from); |
9861 | } |
9862 | |
9863 | bool BarrierRequest::IsInitialized() const { |
9864 | return true; |
9865 | } |
9866 | |
9867 | void BarrierRequest::InternalSwap(BarrierRequest* other) { |
9868 | using std::swap; |
9869 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9870 | CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); |
9871 | barrier_id_.Swap(&other->barrier_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
9872 | GetArenaNoVirtual()); |
9873 | swap(source_task_, other->source_task_); |
9874 | swap(barrier_timeout_in_ms_, other->barrier_timeout_in_ms_); |
9875 | } |
9876 | |
9877 | ::PROTOBUF_NAMESPACE_ID::Metadata BarrierRequest::GetMetadata() const { |
9878 | return GetMetadataStatic(); |
9879 | } |
9880 | |
9881 | |
9882 | // =================================================================== |
9883 | |
9884 | void BarrierResponse::InitAsDefaultInstance() { |
9885 | } |
9886 | class BarrierResponse::_Internal { |
9887 | public: |
9888 | }; |
9889 | |
9890 | BarrierResponse::BarrierResponse() |
9891 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
9892 | SharedCtor(); |
9893 | // @@protoc_insertion_point(constructor:tensorflow.BarrierResponse) |
9894 | } |
9895 | BarrierResponse::BarrierResponse(const BarrierResponse& from) |
9896 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
9897 | _internal_metadata_(nullptr) { |
9898 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9899 | // @@protoc_insertion_point(copy_constructor:tensorflow.BarrierResponse) |
9900 | } |
9901 | |
9902 | void BarrierResponse::SharedCtor() { |
9903 | } |
9904 | |
9905 | BarrierResponse::~BarrierResponse() { |
9906 | // @@protoc_insertion_point(destructor:tensorflow.BarrierResponse) |
9907 | SharedDtor(); |
9908 | } |
9909 | |
9910 | void BarrierResponse::SharedDtor() { |
9911 | } |
9912 | |
9913 | void BarrierResponse::SetCachedSize(int size) const { |
9914 | _cached_size_.Set(size); |
9915 | } |
9916 | const BarrierResponse& BarrierResponse::default_instance() { |
9917 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
9918 | return *internal_default_instance(); |
9919 | } |
9920 | |
9921 | |
9922 | void BarrierResponse::Clear() { |
9923 | // @@protoc_insertion_point(message_clear_start:tensorflow.BarrierResponse) |
9924 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9925 | // Prevent compiler warnings about cached_has_bits being unused |
9926 | (void) cached_has_bits; |
9927 | |
9928 | _internal_metadata_.Clear(); |
9929 | } |
9930 | |
9931 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9932 | const char* BarrierResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
9933 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9934 | while (!ctx->Done(&ptr)) { |
9935 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9936 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
9937 | CHK_(ptr); |
9938 | switch (tag >> 3) { |
9939 | default: { |
9940 | if ((tag & 7) == 4 || tag == 0) { |
9941 | ctx->SetLastTag(tag); |
9942 | goto success; |
9943 | } |
9944 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
9945 | CHK_(ptr != nullptr); |
9946 | continue; |
9947 | } |
9948 | } // switch |
9949 | } // while |
9950 | success: |
9951 | return ptr; |
9952 | failure: |
9953 | ptr = nullptr; |
9954 | goto success; |
9955 | #undef CHK_ |
9956 | } |
9957 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9958 | bool BarrierResponse::MergePartialFromCodedStream( |
9959 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
9960 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
9961 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
9962 | // @@protoc_insertion_point(parse_start:tensorflow.BarrierResponse) |
9963 | for (;;) { |
9964 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9965 | tag = p.first; |
9966 | if (!p.second) goto handle_unusual; |
9967 | handle_unusual: |
9968 | if (tag == 0) { |
9969 | goto success; |
9970 | } |
9971 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
9972 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9973 | } |
9974 | success: |
9975 | // @@protoc_insertion_point(parse_success:tensorflow.BarrierResponse) |
9976 | return true; |
9977 | failure: |
9978 | // @@protoc_insertion_point(parse_failure:tensorflow.BarrierResponse) |
9979 | return false; |
9980 | #undef DO_ |
9981 | } |
9982 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
9983 | |
9984 | void BarrierResponse::SerializeWithCachedSizes( |
9985 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
9986 | // @@protoc_insertion_point(serialize_start:tensorflow.BarrierResponse) |
9987 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
9988 | (void) cached_has_bits; |
9989 | |
9990 | if (_internal_metadata_.have_unknown_fields()) { |
9991 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
9992 | _internal_metadata_.unknown_fields(), output); |
9993 | } |
9994 | // @@protoc_insertion_point(serialize_end:tensorflow.BarrierResponse) |
9995 | } |
9996 | |
9997 | ::PROTOBUF_NAMESPACE_ID::uint8* BarrierResponse::InternalSerializeWithCachedSizesToArray( |
9998 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
9999 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.BarrierResponse) |
10000 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10001 | (void) cached_has_bits; |
10002 | |
10003 | if (_internal_metadata_.have_unknown_fields()) { |
10004 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
10005 | _internal_metadata_.unknown_fields(), target); |
10006 | } |
10007 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.BarrierResponse) |
10008 | return target; |
10009 | } |
10010 | |
10011 | size_t BarrierResponse::ByteSizeLong() const { |
10012 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.BarrierResponse) |
10013 | size_t total_size = 0; |
10014 | |
10015 | if (_internal_metadata_.have_unknown_fields()) { |
10016 | total_size += |
10017 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
10018 | _internal_metadata_.unknown_fields()); |
10019 | } |
10020 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10021 | // Prevent compiler warnings about cached_has_bits being unused |
10022 | (void) cached_has_bits; |
10023 | |
10024 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
10025 | SetCachedSize(cached_size); |
10026 | return total_size; |
10027 | } |
10028 | |
10029 | void BarrierResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10030 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.BarrierResponse) |
10031 | GOOGLE_DCHECK_NE(&from, this); |
10032 | const BarrierResponse* source = |
10033 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BarrierResponse>( |
10034 | &from); |
10035 | if (source == nullptr) { |
10036 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.BarrierResponse) |
10037 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
10038 | } else { |
10039 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.BarrierResponse) |
10040 | MergeFrom(*source); |
10041 | } |
10042 | } |
10043 | |
10044 | void BarrierResponse::MergeFrom(const BarrierResponse& from) { |
10045 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.BarrierResponse) |
10046 | GOOGLE_DCHECK_NE(&from, this); |
10047 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10048 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10049 | (void) cached_has_bits; |
10050 | |
10051 | } |
10052 | |
10053 | void BarrierResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10054 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.BarrierResponse) |
10055 | if (&from == this) return; |
10056 | Clear(); |
10057 | MergeFrom(from); |
10058 | } |
10059 | |
10060 | void BarrierResponse::CopyFrom(const BarrierResponse& from) { |
10061 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.BarrierResponse) |
10062 | if (&from == this) return; |
10063 | Clear(); |
10064 | MergeFrom(from); |
10065 | } |
10066 | |
10067 | bool BarrierResponse::IsInitialized() const { |
10068 | return true; |
10069 | } |
10070 | |
10071 | void BarrierResponse::InternalSwap(BarrierResponse* other) { |
10072 | using std::swap; |
10073 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10074 | } |
10075 | |
10076 | ::PROTOBUF_NAMESPACE_ID::Metadata BarrierResponse::GetMetadata() const { |
10077 | return GetMetadataStatic(); |
10078 | } |
10079 | |
10080 | |
10081 | // =================================================================== |
10082 | |
10083 | void CancelBarrierRequest::InitAsDefaultInstance() { |
10084 | ::tensorflow::_CancelBarrierRequest_default_instance_._instance.get_mutable()->source_task_ = const_cast< ::tensorflow::CoordinatedTask*>( |
10085 | ::tensorflow::CoordinatedTask::internal_default_instance()); |
10086 | } |
10087 | class CancelBarrierRequest::_Internal { |
10088 | public: |
10089 | static const ::tensorflow::CoordinatedTask& source_task(const CancelBarrierRequest* msg); |
10090 | }; |
10091 | |
10092 | const ::tensorflow::CoordinatedTask& |
10093 | CancelBarrierRequest::_Internal::source_task(const CancelBarrierRequest* msg) { |
10094 | return *msg->source_task_; |
10095 | } |
10096 | CancelBarrierRequest::CancelBarrierRequest() |
10097 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
10098 | SharedCtor(); |
10099 | // @@protoc_insertion_point(constructor:tensorflow.CancelBarrierRequest) |
10100 | } |
10101 | CancelBarrierRequest::CancelBarrierRequest(const CancelBarrierRequest& from) |
10102 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
10103 | _internal_metadata_(nullptr) { |
10104 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10105 | barrier_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
10106 | if (!from.barrier_id().empty()) { |
10107 | barrier_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.barrier_id_); |
10108 | } |
10109 | if (from.has_source_task()) { |
10110 | source_task_ = new ::tensorflow::CoordinatedTask(*from.source_task_); |
10111 | } else { |
10112 | source_task_ = nullptr; |
10113 | } |
10114 | // @@protoc_insertion_point(copy_constructor:tensorflow.CancelBarrierRequest) |
10115 | } |
10116 | |
10117 | void CancelBarrierRequest::SharedCtor() { |
10118 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
10119 | barrier_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
10120 | source_task_ = nullptr; |
10121 | } |
10122 | |
10123 | CancelBarrierRequest::~CancelBarrierRequest() { |
10124 | // @@protoc_insertion_point(destructor:tensorflow.CancelBarrierRequest) |
10125 | SharedDtor(); |
10126 | } |
10127 | |
10128 | void CancelBarrierRequest::SharedDtor() { |
10129 | barrier_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
10130 | if (this != internal_default_instance()) delete source_task_; |
10131 | } |
10132 | |
10133 | void CancelBarrierRequest::SetCachedSize(int size) const { |
10134 | _cached_size_.Set(size); |
10135 | } |
10136 | const CancelBarrierRequest& CancelBarrierRequest::default_instance() { |
10137 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CancelBarrierRequest_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
10138 | return *internal_default_instance(); |
10139 | } |
10140 | |
10141 | |
10142 | void CancelBarrierRequest::Clear() { |
10143 | // @@protoc_insertion_point(message_clear_start:tensorflow.CancelBarrierRequest) |
10144 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10145 | // Prevent compiler warnings about cached_has_bits being unused |
10146 | (void) cached_has_bits; |
10147 | |
10148 | barrier_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
10149 | if (GetArenaNoVirtual() == nullptr && source_task_ != nullptr) { |
10150 | delete source_task_; |
10151 | } |
10152 | source_task_ = nullptr; |
10153 | _internal_metadata_.Clear(); |
10154 | } |
10155 | |
10156 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10157 | const char* CancelBarrierRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
10158 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10159 | while (!ctx->Done(&ptr)) { |
10160 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
10161 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
10162 | CHK_(ptr); |
10163 | switch (tag >> 3) { |
10164 | // string barrier_id = 1; |
10165 | case 1: |
10166 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
10167 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_barrier_id(), ptr, ctx, "tensorflow.CancelBarrierRequest.barrier_id" ); |
10168 | CHK_(ptr); |
10169 | } else goto handle_unusual; |
10170 | continue; |
10171 | // .tensorflow.CoordinatedTask source_task = 2; |
10172 | case 2: |
10173 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
10174 | ptr = ctx->ParseMessage(mutable_source_task(), ptr); |
10175 | CHK_(ptr); |
10176 | } else goto handle_unusual; |
10177 | continue; |
10178 | default: { |
10179 | handle_unusual: |
10180 | if ((tag & 7) == 4 || tag == 0) { |
10181 | ctx->SetLastTag(tag); |
10182 | goto success; |
10183 | } |
10184 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
10185 | CHK_(ptr != nullptr); |
10186 | continue; |
10187 | } |
10188 | } // switch |
10189 | } // while |
10190 | success: |
10191 | return ptr; |
10192 | failure: |
10193 | ptr = nullptr; |
10194 | goto success; |
10195 | #undef CHK_ |
10196 | } |
10197 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10198 | bool CancelBarrierRequest::MergePartialFromCodedStream( |
10199 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
10200 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
10201 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
10202 | // @@protoc_insertion_point(parse_start:tensorflow.CancelBarrierRequest) |
10203 | for (;;) { |
10204 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10205 | tag = p.first; |
10206 | if (!p.second) goto handle_unusual; |
10207 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10208 | // string barrier_id = 1; |
10209 | case 1: { |
10210 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
10211 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
10212 | input, this->mutable_barrier_id())); |
10213 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
10214 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
10215 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
10216 | "tensorflow.CancelBarrierRequest.barrier_id" )); |
10217 | } else { |
10218 | goto handle_unusual; |
10219 | } |
10220 | break; |
10221 | } |
10222 | |
10223 | // .tensorflow.CoordinatedTask source_task = 2; |
10224 | case 2: { |
10225 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
10226 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
10227 | input, mutable_source_task())); |
10228 | } else { |
10229 | goto handle_unusual; |
10230 | } |
10231 | break; |
10232 | } |
10233 | |
10234 | default: { |
10235 | handle_unusual: |
10236 | if (tag == 0) { |
10237 | goto success; |
10238 | } |
10239 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
10240 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10241 | break; |
10242 | } |
10243 | } |
10244 | } |
10245 | success: |
10246 | // @@protoc_insertion_point(parse_success:tensorflow.CancelBarrierRequest) |
10247 | return true; |
10248 | failure: |
10249 | // @@protoc_insertion_point(parse_failure:tensorflow.CancelBarrierRequest) |
10250 | return false; |
10251 | #undef DO_ |
10252 | } |
10253 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10254 | |
10255 | void CancelBarrierRequest::SerializeWithCachedSizes( |
10256 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
10257 | // @@protoc_insertion_point(serialize_start:tensorflow.CancelBarrierRequest) |
10258 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10259 | (void) cached_has_bits; |
10260 | |
10261 | // string barrier_id = 1; |
10262 | if (this->barrier_id().size() > 0) { |
10263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
10264 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
10265 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
10266 | "tensorflow.CancelBarrierRequest.barrier_id" ); |
10267 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
10268 | 1, this->barrier_id(), output); |
10269 | } |
10270 | |
10271 | // .tensorflow.CoordinatedTask source_task = 2; |
10272 | if (this->has_source_task()) { |
10273 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
10274 | 2, _Internal::source_task(this), output); |
10275 | } |
10276 | |
10277 | if (_internal_metadata_.have_unknown_fields()) { |
10278 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
10279 | _internal_metadata_.unknown_fields(), output); |
10280 | } |
10281 | // @@protoc_insertion_point(serialize_end:tensorflow.CancelBarrierRequest) |
10282 | } |
10283 | |
10284 | ::PROTOBUF_NAMESPACE_ID::uint8* CancelBarrierRequest::InternalSerializeWithCachedSizesToArray( |
10285 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
10286 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CancelBarrierRequest) |
10287 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10288 | (void) cached_has_bits; |
10289 | |
10290 | // string barrier_id = 1; |
10291 | if (this->barrier_id().size() > 0) { |
10292 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
10293 | this->barrier_id().data(), static_cast<int>(this->barrier_id().length()), |
10294 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
10295 | "tensorflow.CancelBarrierRequest.barrier_id" ); |
10296 | target = |
10297 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
10298 | 1, this->barrier_id(), target); |
10299 | } |
10300 | |
10301 | // .tensorflow.CoordinatedTask source_task = 2; |
10302 | if (this->has_source_task()) { |
10303 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
10304 | InternalWriteMessageToArray( |
10305 | 2, _Internal::source_task(this), target); |
10306 | } |
10307 | |
10308 | if (_internal_metadata_.have_unknown_fields()) { |
10309 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
10310 | _internal_metadata_.unknown_fields(), target); |
10311 | } |
10312 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CancelBarrierRequest) |
10313 | return target; |
10314 | } |
10315 | |
10316 | size_t CancelBarrierRequest::ByteSizeLong() const { |
10317 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CancelBarrierRequest) |
10318 | size_t total_size = 0; |
10319 | |
10320 | if (_internal_metadata_.have_unknown_fields()) { |
10321 | total_size += |
10322 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
10323 | _internal_metadata_.unknown_fields()); |
10324 | } |
10325 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10326 | // Prevent compiler warnings about cached_has_bits being unused |
10327 | (void) cached_has_bits; |
10328 | |
10329 | // string barrier_id = 1; |
10330 | if (this->barrier_id().size() > 0) { |
10331 | total_size += 1 + |
10332 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
10333 | this->barrier_id()); |
10334 | } |
10335 | |
10336 | // .tensorflow.CoordinatedTask source_task = 2; |
10337 | if (this->has_source_task()) { |
10338 | total_size += 1 + |
10339 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10340 | *source_task_); |
10341 | } |
10342 | |
10343 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
10344 | SetCachedSize(cached_size); |
10345 | return total_size; |
10346 | } |
10347 | |
10348 | void CancelBarrierRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10349 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CancelBarrierRequest) |
10350 | GOOGLE_DCHECK_NE(&from, this); |
10351 | const CancelBarrierRequest* source = |
10352 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CancelBarrierRequest>( |
10353 | &from); |
10354 | if (source == nullptr) { |
10355 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CancelBarrierRequest) |
10356 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
10357 | } else { |
10358 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CancelBarrierRequest) |
10359 | MergeFrom(*source); |
10360 | } |
10361 | } |
10362 | |
10363 | void CancelBarrierRequest::MergeFrom(const CancelBarrierRequest& from) { |
10364 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CancelBarrierRequest) |
10365 | GOOGLE_DCHECK_NE(&from, this); |
10366 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10367 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10368 | (void) cached_has_bits; |
10369 | |
10370 | if (from.barrier_id().size() > 0) { |
10371 | |
10372 | barrier_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.barrier_id_); |
10373 | } |
10374 | if (from.has_source_task()) { |
10375 | mutable_source_task()->::tensorflow::CoordinatedTask::MergeFrom(from.source_task()); |
10376 | } |
10377 | } |
10378 | |
10379 | void CancelBarrierRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10380 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CancelBarrierRequest) |
10381 | if (&from == this) return; |
10382 | Clear(); |
10383 | MergeFrom(from); |
10384 | } |
10385 | |
10386 | void CancelBarrierRequest::CopyFrom(const CancelBarrierRequest& from) { |
10387 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CancelBarrierRequest) |
10388 | if (&from == this) return; |
10389 | Clear(); |
10390 | MergeFrom(from); |
10391 | } |
10392 | |
10393 | bool CancelBarrierRequest::IsInitialized() const { |
10394 | return true; |
10395 | } |
10396 | |
10397 | void CancelBarrierRequest::InternalSwap(CancelBarrierRequest* other) { |
10398 | using std::swap; |
10399 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10400 | barrier_id_.Swap(&other->barrier_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
10401 | GetArenaNoVirtual()); |
10402 | swap(source_task_, other->source_task_); |
10403 | } |
10404 | |
10405 | ::PROTOBUF_NAMESPACE_ID::Metadata CancelBarrierRequest::GetMetadata() const { |
10406 | return GetMetadataStatic(); |
10407 | } |
10408 | |
10409 | |
10410 | // =================================================================== |
10411 | |
10412 | void CancelBarrierResponse::InitAsDefaultInstance() { |
10413 | } |
10414 | class CancelBarrierResponse::_Internal { |
10415 | public: |
10416 | }; |
10417 | |
10418 | CancelBarrierResponse::CancelBarrierResponse() |
10419 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
10420 | SharedCtor(); |
10421 | // @@protoc_insertion_point(constructor:tensorflow.CancelBarrierResponse) |
10422 | } |
10423 | CancelBarrierResponse::CancelBarrierResponse(const CancelBarrierResponse& from) |
10424 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
10425 | _internal_metadata_(nullptr) { |
10426 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10427 | // @@protoc_insertion_point(copy_constructor:tensorflow.CancelBarrierResponse) |
10428 | } |
10429 | |
10430 | void CancelBarrierResponse::SharedCtor() { |
10431 | } |
10432 | |
10433 | CancelBarrierResponse::~CancelBarrierResponse() { |
10434 | // @@protoc_insertion_point(destructor:tensorflow.CancelBarrierResponse) |
10435 | SharedDtor(); |
10436 | } |
10437 | |
10438 | void CancelBarrierResponse::SharedDtor() { |
10439 | } |
10440 | |
10441 | void CancelBarrierResponse::SetCachedSize(int size) const { |
10442 | _cached_size_.Set(size); |
10443 | } |
10444 | const CancelBarrierResponse& CancelBarrierResponse::default_instance() { |
10445 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CancelBarrierResponse_tensorflow_2fcore_2fprotobuf_2fcoordination_5fservice_2eproto.base); |
10446 | return *internal_default_instance(); |
10447 | } |
10448 | |
10449 | |
10450 | void CancelBarrierResponse::Clear() { |
10451 | // @@protoc_insertion_point(message_clear_start:tensorflow.CancelBarrierResponse) |
10452 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10453 | // Prevent compiler warnings about cached_has_bits being unused |
10454 | (void) cached_has_bits; |
10455 | |
10456 | _internal_metadata_.Clear(); |
10457 | } |
10458 | |
10459 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10460 | const char* CancelBarrierResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
10461 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10462 | while (!ctx->Done(&ptr)) { |
10463 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
10464 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
10465 | CHK_(ptr); |
10466 | switch (tag >> 3) { |
10467 | default: { |
10468 | if ((tag & 7) == 4 || tag == 0) { |
10469 | ctx->SetLastTag(tag); |
10470 | goto success; |
10471 | } |
10472 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
10473 | CHK_(ptr != nullptr); |
10474 | continue; |
10475 | } |
10476 | } // switch |
10477 | } // while |
10478 | success: |
10479 | return ptr; |
10480 | failure: |
10481 | ptr = nullptr; |
10482 | goto success; |
10483 | #undef CHK_ |
10484 | } |
10485 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10486 | bool CancelBarrierResponse::MergePartialFromCodedStream( |
10487 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
10488 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
10489 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
10490 | // @@protoc_insertion_point(parse_start:tensorflow.CancelBarrierResponse) |
10491 | for (;;) { |
10492 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10493 | tag = p.first; |
10494 | if (!p.second) goto handle_unusual; |
10495 | handle_unusual: |
10496 | if (tag == 0) { |
10497 | goto success; |
10498 | } |
10499 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
10500 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10501 | } |
10502 | success: |
10503 | // @@protoc_insertion_point(parse_success:tensorflow.CancelBarrierResponse) |
10504 | return true; |
10505 | failure: |
10506 | // @@protoc_insertion_point(parse_failure:tensorflow.CancelBarrierResponse) |
10507 | return false; |
10508 | #undef DO_ |
10509 | } |
10510 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
10511 | |
10512 | void CancelBarrierResponse::SerializeWithCachedSizes( |
10513 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
10514 | // @@protoc_insertion_point(serialize_start:tensorflow.CancelBarrierResponse) |
10515 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10516 | (void) cached_has_bits; |
10517 | |
10518 | if (_internal_metadata_.have_unknown_fields()) { |
10519 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
10520 | _internal_metadata_.unknown_fields(), output); |
10521 | } |
10522 | // @@protoc_insertion_point(serialize_end:tensorflow.CancelBarrierResponse) |
10523 | } |
10524 | |
10525 | ::PROTOBUF_NAMESPACE_ID::uint8* CancelBarrierResponse::InternalSerializeWithCachedSizesToArray( |
10526 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
10527 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CancelBarrierResponse) |
10528 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10529 | (void) cached_has_bits; |
10530 | |
10531 | if (_internal_metadata_.have_unknown_fields()) { |
10532 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
10533 | _internal_metadata_.unknown_fields(), target); |
10534 | } |
10535 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CancelBarrierResponse) |
10536 | return target; |
10537 | } |
10538 | |
10539 | size_t CancelBarrierResponse::ByteSizeLong() const { |
10540 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CancelBarrierResponse) |
10541 | size_t total_size = 0; |
10542 | |
10543 | if (_internal_metadata_.have_unknown_fields()) { |
10544 | total_size += |
10545 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
10546 | _internal_metadata_.unknown_fields()); |
10547 | } |
10548 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10549 | // Prevent compiler warnings about cached_has_bits being unused |
10550 | (void) cached_has_bits; |
10551 | |
10552 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
10553 | SetCachedSize(cached_size); |
10554 | return total_size; |
10555 | } |
10556 | |
10557 | void CancelBarrierResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10558 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CancelBarrierResponse) |
10559 | GOOGLE_DCHECK_NE(&from, this); |
10560 | const CancelBarrierResponse* source = |
10561 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CancelBarrierResponse>( |
10562 | &from); |
10563 | if (source == nullptr) { |
10564 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CancelBarrierResponse) |
10565 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
10566 | } else { |
10567 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CancelBarrierResponse) |
10568 | MergeFrom(*source); |
10569 | } |
10570 | } |
10571 | |
10572 | void CancelBarrierResponse::MergeFrom(const CancelBarrierResponse& from) { |
10573 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CancelBarrierResponse) |
10574 | GOOGLE_DCHECK_NE(&from, this); |
10575 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10576 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
10577 | (void) cached_has_bits; |
10578 | |
10579 | } |
10580 | |
10581 | void CancelBarrierResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
10582 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CancelBarrierResponse) |
10583 | if (&from == this) return; |
10584 | Clear(); |
10585 | MergeFrom(from); |
10586 | } |
10587 | |
10588 | void CancelBarrierResponse::CopyFrom(const CancelBarrierResponse& from) { |
10589 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CancelBarrierResponse) |
10590 | if (&from == this) return; |
10591 | Clear(); |
10592 | MergeFrom(from); |
10593 | } |
10594 | |
10595 | bool CancelBarrierResponse::IsInitialized() const { |
10596 | return true; |
10597 | } |
10598 | |
10599 | void CancelBarrierResponse::InternalSwap(CancelBarrierResponse* other) { |
10600 | using std::swap; |
10601 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10602 | } |
10603 | |
10604 | ::PROTOBUF_NAMESPACE_ID::Metadata CancelBarrierResponse::GetMetadata() const { |
10605 | return GetMetadataStatic(); |
10606 | } |
10607 | |
10608 | |
10609 | // @@protoc_insertion_point(namespace_scope) |
10610 | } // namespace tensorflow |
10611 | PROTOBUF_NAMESPACE_OPEN |
10612 | template<> PROTOBUF_NOINLINE ::tensorflow::CoordinatedTask* Arena::CreateMaybeMessage< ::tensorflow::CoordinatedTask >(Arena* arena) { |
10613 | return Arena::CreateInternal< ::tensorflow::CoordinatedTask >(arena); |
10614 | } |
10615 | template<> PROTOBUF_NOINLINE ::tensorflow::CoordinationServiceError* Arena::CreateMaybeMessage< ::tensorflow::CoordinationServiceError >(Arena* arena) { |
10616 | return Arena::CreateInternal< ::tensorflow::CoordinationServiceError >(arena); |
10617 | } |
10618 | template<> PROTOBUF_NOINLINE ::tensorflow::TfDeviceList* Arena::CreateMaybeMessage< ::tensorflow::TfDeviceList >(Arena* arena) { |
10619 | return Arena::CreateInternal< ::tensorflow::TfDeviceList >(arena); |
10620 | } |
10621 | template<> PROTOBUF_NOINLINE ::tensorflow::XlaDeviceList* Arena::CreateMaybeMessage< ::tensorflow::XlaDeviceList >(Arena* arena) { |
10622 | return Arena::CreateInternal< ::tensorflow::XlaDeviceList >(arena); |
10623 | } |
10624 | template<> PROTOBUF_NOINLINE ::tensorflow::CoordinationServiceDeviceInfo* Arena::CreateMaybeMessage< ::tensorflow::CoordinationServiceDeviceInfo >(Arena* arena) { |
10625 | return Arena::CreateInternal< ::tensorflow::CoordinationServiceDeviceInfo >(arena); |
10626 | } |
10627 | template<> PROTOBUF_NOINLINE ::tensorflow::RegisterTaskRequest* Arena::CreateMaybeMessage< ::tensorflow::RegisterTaskRequest >(Arena* arena) { |
10628 | return Arena::CreateInternal< ::tensorflow::RegisterTaskRequest >(arena); |
10629 | } |
10630 | template<> PROTOBUF_NOINLINE ::tensorflow::RegisterTaskResponse* Arena::CreateMaybeMessage< ::tensorflow::RegisterTaskResponse >(Arena* arena) { |
10631 | return Arena::CreateInternal< ::tensorflow::RegisterTaskResponse >(arena); |
10632 | } |
10633 | template<> PROTOBUF_NOINLINE ::tensorflow::HeartbeatRequest* Arena::CreateMaybeMessage< ::tensorflow::HeartbeatRequest >(Arena* arena) { |
10634 | return Arena::CreateInternal< ::tensorflow::HeartbeatRequest >(arena); |
10635 | } |
10636 | template<> PROTOBUF_NOINLINE ::tensorflow::HeartbeatResponse* Arena::CreateMaybeMessage< ::tensorflow::HeartbeatResponse >(Arena* arena) { |
10637 | return Arena::CreateInternal< ::tensorflow::HeartbeatResponse >(arena); |
10638 | } |
10639 | template<> PROTOBUF_NOINLINE ::tensorflow::WaitForAllTasksRequest* Arena::CreateMaybeMessage< ::tensorflow::WaitForAllTasksRequest >(Arena* arena) { |
10640 | return Arena::CreateInternal< ::tensorflow::WaitForAllTasksRequest >(arena); |
10641 | } |
10642 | template<> PROTOBUF_NOINLINE ::tensorflow::WaitForAllTasksResponse* Arena::CreateMaybeMessage< ::tensorflow::WaitForAllTasksResponse >(Arena* arena) { |
10643 | return Arena::CreateInternal< ::tensorflow::WaitForAllTasksResponse >(arena); |
10644 | } |
10645 | template<> PROTOBUF_NOINLINE ::tensorflow::ShutdownTaskRequest* Arena::CreateMaybeMessage< ::tensorflow::ShutdownTaskRequest >(Arena* arena) { |
10646 | return Arena::CreateInternal< ::tensorflow::ShutdownTaskRequest >(arena); |
10647 | } |
10648 | template<> PROTOBUF_NOINLINE ::tensorflow::ShutdownTaskResponse* Arena::CreateMaybeMessage< ::tensorflow::ShutdownTaskResponse >(Arena* arena) { |
10649 | return Arena::CreateInternal< ::tensorflow::ShutdownTaskResponse >(arena); |
10650 | } |
10651 | template<> PROTOBUF_NOINLINE ::tensorflow::ResetTaskRequest* Arena::CreateMaybeMessage< ::tensorflow::ResetTaskRequest >(Arena* arena) { |
10652 | return Arena::CreateInternal< ::tensorflow::ResetTaskRequest >(arena); |
10653 | } |
10654 | template<> PROTOBUF_NOINLINE ::tensorflow::ResetTaskResponse* Arena::CreateMaybeMessage< ::tensorflow::ResetTaskResponse >(Arena* arena) { |
10655 | return Arena::CreateInternal< ::tensorflow::ResetTaskResponse >(arena); |
10656 | } |
10657 | template<> PROTOBUF_NOINLINE ::tensorflow::ReportErrorToTaskRequest* Arena::CreateMaybeMessage< ::tensorflow::ReportErrorToTaskRequest >(Arena* arena) { |
10658 | return Arena::CreateInternal< ::tensorflow::ReportErrorToTaskRequest >(arena); |
10659 | } |
10660 | template<> PROTOBUF_NOINLINE ::tensorflow::ReportErrorToTaskResponse* Arena::CreateMaybeMessage< ::tensorflow::ReportErrorToTaskResponse >(Arena* arena) { |
10661 | return Arena::CreateInternal< ::tensorflow::ReportErrorToTaskResponse >(arena); |
10662 | } |
10663 | template<> PROTOBUF_NOINLINE ::tensorflow::ReportErrorToServiceRequest* Arena::CreateMaybeMessage< ::tensorflow::ReportErrorToServiceRequest >(Arena* arena) { |
10664 | return Arena::CreateInternal< ::tensorflow::ReportErrorToServiceRequest >(arena); |
10665 | } |
10666 | template<> PROTOBUF_NOINLINE ::tensorflow::ReportErrorToServiceResponse* Arena::CreateMaybeMessage< ::tensorflow::ReportErrorToServiceResponse >(Arena* arena) { |
10667 | return Arena::CreateInternal< ::tensorflow::ReportErrorToServiceResponse >(arena); |
10668 | } |
10669 | template<> PROTOBUF_NOINLINE ::tensorflow::KeyValueEntry* Arena::CreateMaybeMessage< ::tensorflow::KeyValueEntry >(Arena* arena) { |
10670 | return Arena::CreateInternal< ::tensorflow::KeyValueEntry >(arena); |
10671 | } |
10672 | template<> PROTOBUF_NOINLINE ::tensorflow::InsertKeyValueRequest* Arena::CreateMaybeMessage< ::tensorflow::InsertKeyValueRequest >(Arena* arena) { |
10673 | return Arena::CreateInternal< ::tensorflow::InsertKeyValueRequest >(arena); |
10674 | } |
10675 | template<> PROTOBUF_NOINLINE ::tensorflow::InsertKeyValueResponse* Arena::CreateMaybeMessage< ::tensorflow::InsertKeyValueResponse >(Arena* arena) { |
10676 | return Arena::CreateInternal< ::tensorflow::InsertKeyValueResponse >(arena); |
10677 | } |
10678 | template<> PROTOBUF_NOINLINE ::tensorflow::GetKeyValueRequest* Arena::CreateMaybeMessage< ::tensorflow::GetKeyValueRequest >(Arena* arena) { |
10679 | return Arena::CreateInternal< ::tensorflow::GetKeyValueRequest >(arena); |
10680 | } |
10681 | template<> PROTOBUF_NOINLINE ::tensorflow::GetKeyValueResponse* Arena::CreateMaybeMessage< ::tensorflow::GetKeyValueResponse >(Arena* arena) { |
10682 | return Arena::CreateInternal< ::tensorflow::GetKeyValueResponse >(arena); |
10683 | } |
10684 | template<> PROTOBUF_NOINLINE ::tensorflow::TryGetKeyValueRequest* Arena::CreateMaybeMessage< ::tensorflow::TryGetKeyValueRequest >(Arena* arena) { |
10685 | return Arena::CreateInternal< ::tensorflow::TryGetKeyValueRequest >(arena); |
10686 | } |
10687 | template<> PROTOBUF_NOINLINE ::tensorflow::TryGetKeyValueResponse* Arena::CreateMaybeMessage< ::tensorflow::TryGetKeyValueResponse >(Arena* arena) { |
10688 | return Arena::CreateInternal< ::tensorflow::TryGetKeyValueResponse >(arena); |
10689 | } |
10690 | template<> PROTOBUF_NOINLINE ::tensorflow::GetKeyValueDirRequest* Arena::CreateMaybeMessage< ::tensorflow::GetKeyValueDirRequest >(Arena* arena) { |
10691 | return Arena::CreateInternal< ::tensorflow::GetKeyValueDirRequest >(arena); |
10692 | } |
10693 | template<> PROTOBUF_NOINLINE ::tensorflow::GetKeyValueDirResponse* Arena::CreateMaybeMessage< ::tensorflow::GetKeyValueDirResponse >(Arena* arena) { |
10694 | return Arena::CreateInternal< ::tensorflow::GetKeyValueDirResponse >(arena); |
10695 | } |
10696 | template<> PROTOBUF_NOINLINE ::tensorflow::DeleteKeyValueRequest* Arena::CreateMaybeMessage< ::tensorflow::DeleteKeyValueRequest >(Arena* arena) { |
10697 | return Arena::CreateInternal< ::tensorflow::DeleteKeyValueRequest >(arena); |
10698 | } |
10699 | template<> PROTOBUF_NOINLINE ::tensorflow::DeleteKeyValueResponse* Arena::CreateMaybeMessage< ::tensorflow::DeleteKeyValueResponse >(Arena* arena) { |
10700 | return Arena::CreateInternal< ::tensorflow::DeleteKeyValueResponse >(arena); |
10701 | } |
10702 | template<> PROTOBUF_NOINLINE ::tensorflow::BarrierRequest* Arena::CreateMaybeMessage< ::tensorflow::BarrierRequest >(Arena* arena) { |
10703 | return Arena::CreateInternal< ::tensorflow::BarrierRequest >(arena); |
10704 | } |
10705 | template<> PROTOBUF_NOINLINE ::tensorflow::BarrierResponse* Arena::CreateMaybeMessage< ::tensorflow::BarrierResponse >(Arena* arena) { |
10706 | return Arena::CreateInternal< ::tensorflow::BarrierResponse >(arena); |
10707 | } |
10708 | template<> PROTOBUF_NOINLINE ::tensorflow::CancelBarrierRequest* Arena::CreateMaybeMessage< ::tensorflow::CancelBarrierRequest >(Arena* arena) { |
10709 | return Arena::CreateInternal< ::tensorflow::CancelBarrierRequest >(arena); |
10710 | } |
10711 | template<> PROTOBUF_NOINLINE ::tensorflow::CancelBarrierResponse* Arena::CreateMaybeMessage< ::tensorflow::CancelBarrierResponse >(Arena* arena) { |
10712 | return Arena::CreateInternal< ::tensorflow::CancelBarrierResponse >(arena); |
10713 | } |
10714 | PROTOBUF_NAMESPACE_CLOSE |
10715 | |
10716 | // @@protoc_insertion_point(global_scope) |
10717 | #include <google/protobuf/port_undef.inc> |
10718 | |