1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/eager_service.proto
3
4#include "tensorflow/core/protobuf/eager_service.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffunction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_FunctionDef_tensorflow_2fcore_2fframework_2ffunction_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffunction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_FunctionDefLibrary_tensorflow_2fcore_2fframework_2ffunction_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ServerDef_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fversions_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
29extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
30extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
31extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
32extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
33extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RemoteTensorHandle_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto;
34extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
35extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
36extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
37extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
38extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto;
39namespace tensorflow {
40namespace eager {
41class Operation_InputDefaultTypeInternal {
42 public:
43 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Operation_Input> _instance;
44 const ::tensorflow::eager::RemoteTensorHandle* remote_handle_;
45 const ::tensorflow::TensorProto* tensor_;
46} _Operation_Input_default_instance_;
47class Operation_AttrsEntry_DoNotUseDefaultTypeInternal {
48 public:
49 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Operation_AttrsEntry_DoNotUse> _instance;
50} _Operation_AttrsEntry_DoNotUse_default_instance_;
51class OperationDefaultTypeInternal {
52 public:
53 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Operation> _instance;
54} _Operation_default_instance_;
55class QueueItemDefaultTypeInternal {
56 public:
57 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueueItem> _instance;
58 const ::tensorflow::eager::RemoteTensorHandle* handle_to_decref_;
59 const ::tensorflow::eager::Operation* operation_;
60 const ::tensorflow::eager::SendTensorOp* send_tensor_;
61 const ::tensorflow::eager::RegisterFunctionOp* register_function_;
62 const ::tensorflow::eager::CleanupFunctionOp* cleanup_function_;
63 const ::tensorflow::eager::SyncRemoteExecutorForStream* sync_remote_executor_for_stream_;
64 const ::tensorflow::eager::SendPackedHandleOp* send_packed_handle_;
65} _QueueItem_default_instance_;
66class QueueResponseDefaultTypeInternal {
67 public:
68 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueueResponse> _instance;
69} _QueueResponse_default_instance_;
70class CreateContextRequestDefaultTypeInternal {
71 public:
72 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateContextRequest> _instance;
73} _CreateContextRequest_default_instance_;
74class CreateContextResponseDefaultTypeInternal {
75 public:
76 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateContextResponse> _instance;
77} _CreateContextResponse_default_instance_;
78class UpdateContextRequestDefaultTypeInternal {
79 public:
80 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<UpdateContextRequest> _instance;
81} _UpdateContextRequest_default_instance_;
82class UpdateContextResponseDefaultTypeInternal {
83 public:
84 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<UpdateContextResponse> _instance;
85} _UpdateContextResponse_default_instance_;
86class EnqueueRequestDefaultTypeInternal {
87 public:
88 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnqueueRequest> _instance;
89} _EnqueueRequest_default_instance_;
90class EnqueueResponseDefaultTypeInternal {
91 public:
92 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnqueueResponse> _instance;
93} _EnqueueResponse_default_instance_;
94class WaitQueueDoneRequestDefaultTypeInternal {
95 public:
96 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WaitQueueDoneRequest> _instance;
97} _WaitQueueDoneRequest_default_instance_;
98class WaitQueueDoneResponseDefaultTypeInternal {
99 public:
100 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WaitQueueDoneResponse> _instance;
101} _WaitQueueDoneResponse_default_instance_;
102class RunComponentFunctionRequestDefaultTypeInternal {
103 public:
104 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunComponentFunctionRequest> _instance;
105} _RunComponentFunctionRequest_default_instance_;
106class RunComponentFunctionResponseDefaultTypeInternal {
107 public:
108 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunComponentFunctionResponse> _instance;
109} _RunComponentFunctionResponse_default_instance_;
110class KeepAliveRequestDefaultTypeInternal {
111 public:
112 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<KeepAliveRequest> _instance;
113} _KeepAliveRequest_default_instance_;
114class KeepAliveResponseDefaultTypeInternal {
115 public:
116 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<KeepAliveResponse> _instance;
117} _KeepAliveResponse_default_instance_;
118class CloseContextRequestDefaultTypeInternal {
119 public:
120 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CloseContextRequest> _instance;
121} _CloseContextRequest_default_instance_;
122class CloseContextResponseDefaultTypeInternal {
123 public:
124 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CloseContextResponse> _instance;
125} _CloseContextResponse_default_instance_;
126class RegisterFunctionOpDefaultTypeInternal {
127 public:
128 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegisterFunctionOp> _instance;
129} _RegisterFunctionOp_default_instance_;
130class CleanupFunctionOpDefaultTypeInternal {
131 public:
132 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CleanupFunctionOp> _instance;
133} _CleanupFunctionOp_default_instance_;
134class SyncRemoteExecutorForStreamDefaultTypeInternal {
135 public:
136 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SyncRemoteExecutorForStream> _instance;
137} _SyncRemoteExecutorForStream_default_instance_;
138class SendTensorOpDefaultTypeInternal {
139 public:
140 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SendTensorOp> _instance;
141} _SendTensorOp_default_instance_;
142class SendPackedHandleOp_LocalTensorHandleDefaultTypeInternal {
143 public:
144 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SendPackedHandleOp_LocalTensorHandle> _instance;
145} _SendPackedHandleOp_LocalTensorHandle_default_instance_;
146class SendPackedHandleOp_HandleDefaultTypeInternal {
147 public:
148 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SendPackedHandleOp_Handle> _instance;
149 const ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle* local_handle_;
150 const ::tensorflow::eager::RemoteTensorHandle* remote_handle_;
151} _SendPackedHandleOp_Handle_default_instance_;
152class SendPackedHandleOpDefaultTypeInternal {
153 public:
154 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SendPackedHandleOp> _instance;
155} _SendPackedHandleOp_default_instance_;
156} // namespace eager
157} // namespace tensorflow
158static void InitDefaultsscc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
159 GOOGLE_PROTOBUF_VERIFY_VERSION;
160
161 {
162 void* ptr = &::tensorflow::eager::_CleanupFunctionOp_default_instance_;
163 new (ptr) ::tensorflow::eager::CleanupFunctionOp();
164 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
165 }
166 ::tensorflow::eager::CleanupFunctionOp::InitAsDefaultInstance();
167}
168
169::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
170 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
171
172static void InitDefaultsscc_info_CloseContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
173 GOOGLE_PROTOBUF_VERIFY_VERSION;
174
175 {
176 void* ptr = &::tensorflow::eager::_CloseContextRequest_default_instance_;
177 new (ptr) ::tensorflow::eager::CloseContextRequest();
178 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
179 }
180 ::tensorflow::eager::CloseContextRequest::InitAsDefaultInstance();
181}
182
183::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CloseContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
184 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CloseContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
185
186static void InitDefaultsscc_info_CloseContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
187 GOOGLE_PROTOBUF_VERIFY_VERSION;
188
189 {
190 void* ptr = &::tensorflow::eager::_CloseContextResponse_default_instance_;
191 new (ptr) ::tensorflow::eager::CloseContextResponse();
192 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
193 }
194 ::tensorflow::eager::CloseContextResponse::InitAsDefaultInstance();
195}
196
197::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CloseContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
198 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CloseContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
199
200static void InitDefaultsscc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
201 GOOGLE_PROTOBUF_VERIFY_VERSION;
202
203 {
204 void* ptr = &::tensorflow::eager::_CreateContextRequest_default_instance_;
205 new (ptr) ::tensorflow::eager::CreateContextRequest();
206 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
207 }
208 ::tensorflow::eager::CreateContextRequest::InitAsDefaultInstance();
209}
210
211::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
212 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
213 &scc_info_ServerDef_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto.base,
214 &scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto.base,
215 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
216
217static void InitDefaultsscc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
218 GOOGLE_PROTOBUF_VERIFY_VERSION;
219
220 {
221 void* ptr = &::tensorflow::eager::_CreateContextResponse_default_instance_;
222 new (ptr) ::tensorflow::eager::CreateContextResponse();
223 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
224 }
225 ::tensorflow::eager::CreateContextResponse::InitAsDefaultInstance();
226}
227
228::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
229 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
230 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
231
232static void InitDefaultsscc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
233 GOOGLE_PROTOBUF_VERIFY_VERSION;
234
235 {
236 void* ptr = &::tensorflow::eager::_EnqueueRequest_default_instance_;
237 new (ptr) ::tensorflow::eager::EnqueueRequest();
238 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
239 }
240 ::tensorflow::eager::EnqueueRequest::InitAsDefaultInstance();
241}
242
243::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
244 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
245 &scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
246
247static void InitDefaultsscc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
248 GOOGLE_PROTOBUF_VERIFY_VERSION;
249
250 {
251 void* ptr = &::tensorflow::eager::_EnqueueResponse_default_instance_;
252 new (ptr) ::tensorflow::eager::EnqueueResponse();
253 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
254 }
255 ::tensorflow::eager::EnqueueResponse::InitAsDefaultInstance();
256}
257
258::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
259 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
260 &scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
261
262static void InitDefaultsscc_info_KeepAliveRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
263 GOOGLE_PROTOBUF_VERIFY_VERSION;
264
265 {
266 void* ptr = &::tensorflow::eager::_KeepAliveRequest_default_instance_;
267 new (ptr) ::tensorflow::eager::KeepAliveRequest();
268 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
269 }
270 ::tensorflow::eager::KeepAliveRequest::InitAsDefaultInstance();
271}
272
273::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeepAliveRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
274 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_KeepAliveRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
275
276static void InitDefaultsscc_info_KeepAliveResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
277 GOOGLE_PROTOBUF_VERIFY_VERSION;
278
279 {
280 void* ptr = &::tensorflow::eager::_KeepAliveResponse_default_instance_;
281 new (ptr) ::tensorflow::eager::KeepAliveResponse();
282 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
283 }
284 ::tensorflow::eager::KeepAliveResponse::InitAsDefaultInstance();
285}
286
287::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeepAliveResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
288 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_KeepAliveResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
289
290static void InitDefaultsscc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
291 GOOGLE_PROTOBUF_VERIFY_VERSION;
292
293 {
294 void* ptr = &::tensorflow::eager::_Operation_default_instance_;
295 new (ptr) ::tensorflow::eager::Operation();
296 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
297 }
298 ::tensorflow::eager::Operation::InitAsDefaultInstance();
299}
300
301::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
302 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
303 &scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
304 &scc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
305
306static void InitDefaultsscc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
307 GOOGLE_PROTOBUF_VERIFY_VERSION;
308
309 {
310 void* ptr = &::tensorflow::eager::_Operation_AttrsEntry_DoNotUse_default_instance_;
311 new (ptr) ::tensorflow::eager::Operation_AttrsEntry_DoNotUse();
312 }
313 ::tensorflow::eager::Operation_AttrsEntry_DoNotUse::InitAsDefaultInstance();
314}
315
316::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
317 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
318 &scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto.base,}};
319
320static void InitDefaultsscc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
321 GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323 {
324 void* ptr = &::tensorflow::eager::_Operation_Input_default_instance_;
325 new (ptr) ::tensorflow::eager::Operation_Input();
326 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
327 }
328 ::tensorflow::eager::Operation_Input::InitAsDefaultInstance();
329}
330
331::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
332 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
333 &scc_info_RemoteTensorHandle_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto.base,
334 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
335
336static void InitDefaultsscc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
337 GOOGLE_PROTOBUF_VERIFY_VERSION;
338
339 {
340 void* ptr = &::tensorflow::eager::_QueueItem_default_instance_;
341 new (ptr) ::tensorflow::eager::QueueItem();
342 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
343 }
344 ::tensorflow::eager::QueueItem::InitAsDefaultInstance();
345}
346
347::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
348 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsscc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
349 &scc_info_RemoteTensorHandle_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto.base,
350 &scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
351 &scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
352 &scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
353 &scc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
354 &scc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
355 &scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
356
357static void InitDefaultsscc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
358 GOOGLE_PROTOBUF_VERIFY_VERSION;
359
360 {
361 void* ptr = &::tensorflow::eager::_QueueResponse_default_instance_;
362 new (ptr) ::tensorflow::eager::QueueResponse();
363 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
364 }
365 ::tensorflow::eager::QueueResponse::InitAsDefaultInstance();
366}
367
368::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
369 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
370 &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,
371 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
372
373static void InitDefaultsscc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
374 GOOGLE_PROTOBUF_VERIFY_VERSION;
375
376 {
377 void* ptr = &::tensorflow::eager::_RegisterFunctionOp_default_instance_;
378 new (ptr) ::tensorflow::eager::RegisterFunctionOp();
379 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
380 }
381 ::tensorflow::eager::RegisterFunctionOp::InitAsDefaultInstance();
382}
383
384::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
385 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
386 &scc_info_FunctionDef_tensorflow_2fcore_2fframework_2ffunction_2eproto.base,
387 &scc_info_FunctionDefLibrary_tensorflow_2fcore_2fframework_2ffunction_2eproto.base,}};
388
389static void InitDefaultsscc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
390 GOOGLE_PROTOBUF_VERIFY_VERSION;
391
392 {
393 void* ptr = &::tensorflow::eager::_RunComponentFunctionRequest_default_instance_;
394 new (ptr) ::tensorflow::eager::RunComponentFunctionRequest();
395 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
396 }
397 ::tensorflow::eager::RunComponentFunctionRequest::InitAsDefaultInstance();
398}
399
400::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
401 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
402 &scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
403
404static void InitDefaultsscc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
405 GOOGLE_PROTOBUF_VERIFY_VERSION;
406
407 {
408 void* ptr = &::tensorflow::eager::_RunComponentFunctionResponse_default_instance_;
409 new (ptr) ::tensorflow::eager::RunComponentFunctionResponse();
410 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
411 }
412 ::tensorflow::eager::RunComponentFunctionResponse::InitAsDefaultInstance();
413}
414
415::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
416 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
417 &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,
418 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
419
420static void InitDefaultsscc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
421 GOOGLE_PROTOBUF_VERIFY_VERSION;
422
423 {
424 void* ptr = &::tensorflow::eager::_SendPackedHandleOp_default_instance_;
425 new (ptr) ::tensorflow::eager::SendPackedHandleOp();
426 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
427 }
428 ::tensorflow::eager::SendPackedHandleOp::InitAsDefaultInstance();
429}
430
431::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
432 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
433 &scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,}};
434
435static void InitDefaultsscc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
436 GOOGLE_PROTOBUF_VERIFY_VERSION;
437
438 {
439 void* ptr = &::tensorflow::eager::_SendPackedHandleOp_Handle_default_instance_;
440 new (ptr) ::tensorflow::eager::SendPackedHandleOp_Handle();
441 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
442 }
443 ::tensorflow::eager::SendPackedHandleOp_Handle::InitAsDefaultInstance();
444}
445
446::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
447 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
448 &scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
449 &scc_info_RemoteTensorHandle_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto.base,}};
450
451static void InitDefaultsscc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
452 GOOGLE_PROTOBUF_VERIFY_VERSION;
453
454 {
455 void* ptr = &::tensorflow::eager::_SendPackedHandleOp_LocalTensorHandle_default_instance_;
456 new (ptr) ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle();
457 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
458 }
459 ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle::InitAsDefaultInstance();
460}
461
462::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
463 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
464 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
465
466static void InitDefaultsscc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
467 GOOGLE_PROTOBUF_VERIFY_VERSION;
468
469 {
470 void* ptr = &::tensorflow::eager::_SendTensorOp_default_instance_;
471 new (ptr) ::tensorflow::eager::SendTensorOp();
472 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
473 }
474 ::tensorflow::eager::SendTensorOp::InitAsDefaultInstance();
475}
476
477::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
478 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
479 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
480
481static void InitDefaultsscc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
482 GOOGLE_PROTOBUF_VERIFY_VERSION;
483
484 {
485 void* ptr = &::tensorflow::eager::_SyncRemoteExecutorForStream_default_instance_;
486 new (ptr) ::tensorflow::eager::SyncRemoteExecutorForStream();
487 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
488 }
489 ::tensorflow::eager::SyncRemoteExecutorForStream::InitAsDefaultInstance();
490}
491
492::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
493 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
494
495static void InitDefaultsscc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
496 GOOGLE_PROTOBUF_VERIFY_VERSION;
497
498 {
499 void* ptr = &::tensorflow::eager::_UpdateContextRequest_default_instance_;
500 new (ptr) ::tensorflow::eager::UpdateContextRequest();
501 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
502 }
503 ::tensorflow::eager::UpdateContextRequest::InitAsDefaultInstance();
504}
505
506::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
507 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
508 &scc_info_ServerDef_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto.base,
509 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
510
511static void InitDefaultsscc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
512 GOOGLE_PROTOBUF_VERIFY_VERSION;
513
514 {
515 void* ptr = &::tensorflow::eager::_UpdateContextResponse_default_instance_;
516 new (ptr) ::tensorflow::eager::UpdateContextResponse();
517 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
518 }
519 ::tensorflow::eager::UpdateContextResponse::InitAsDefaultInstance();
520}
521
522::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
523 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {
524 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
525
526static void InitDefaultsscc_info_WaitQueueDoneRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
527 GOOGLE_PROTOBUF_VERIFY_VERSION;
528
529 {
530 void* ptr = &::tensorflow::eager::_WaitQueueDoneRequest_default_instance_;
531 new (ptr) ::tensorflow::eager::WaitQueueDoneRequest();
532 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
533 }
534 ::tensorflow::eager::WaitQueueDoneRequest::InitAsDefaultInstance();
535}
536
537::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WaitQueueDoneRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
538 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_WaitQueueDoneRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
539
540static void InitDefaultsscc_info_WaitQueueDoneResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto() {
541 GOOGLE_PROTOBUF_VERIFY_VERSION;
542
543 {
544 void* ptr = &::tensorflow::eager::_WaitQueueDoneResponse_default_instance_;
545 new (ptr) ::tensorflow::eager::WaitQueueDoneResponse();
546 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
547 }
548 ::tensorflow::eager::WaitQueueDoneResponse::InitAsDefaultInstance();
549}
550
551::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WaitQueueDoneResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto =
552 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_WaitQueueDoneResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto}, {}};
553
554static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto[26];
555static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto = nullptr;
556static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto = nullptr;
557
558const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
559 ~0u, // no _has_bits_
560 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_Input, _internal_metadata_),
561 ~0u, // no _extensions_
562 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_Input, _oneof_case_[0]),
563 ~0u, // no _weak_field_map_
564 offsetof(::tensorflow::eager::Operation_InputDefaultTypeInternal, remote_handle_),
565 offsetof(::tensorflow::eager::Operation_InputDefaultTypeInternal, tensor_),
566 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_Input, item_),
567 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_AttrsEntry_DoNotUse, _has_bits_),
568 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_AttrsEntry_DoNotUse, _internal_metadata_),
569 ~0u, // no _extensions_
570 ~0u, // no _oneof_case_
571 ~0u, // no _weak_field_map_
572 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_AttrsEntry_DoNotUse, key_),
573 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation_AttrsEntry_DoNotUse, value_),
574 0,
575 1,
576 ~0u, // no _has_bits_
577 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, _internal_metadata_),
578 ~0u, // no _extensions_
579 ~0u, // no _oneof_case_
580 ~0u, // no _weak_field_map_
581 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, id_),
582 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, name_),
583 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, op_inputs_),
584 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, control_op_ids_),
585 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, attrs_),
586 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, device_),
587 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, is_component_function_),
588 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, func_step_id_),
589 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::Operation, is_function_),
590 ~0u, // no _has_bits_
591 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueItem, _internal_metadata_),
592 ~0u, // no _extensions_
593 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueItem, _oneof_case_[0]),
594 ~0u, // no _weak_field_map_
595 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, handle_to_decref_),
596 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, operation_),
597 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, send_tensor_),
598 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, register_function_),
599 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, cleanup_function_),
600 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, sync_remote_executor_for_stream_),
601 offsetof(::tensorflow::eager::QueueItemDefaultTypeInternal, send_packed_handle_),
602 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueItem, item_),
603 ~0u, // no _has_bits_
604 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueResponse, _internal_metadata_),
605 ~0u, // no _extensions_
606 ~0u, // no _oneof_case_
607 ~0u, // no _weak_field_map_
608 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueResponse, shape_),
609 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueResponse, device_),
610 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::QueueResponse, tensor_),
611 ~0u, // no _has_bits_
612 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, _internal_metadata_),
613 ~0u, // no _extensions_
614 ~0u, // no _oneof_case_
615 ~0u, // no _weak_field_map_
616 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, server_def_),
617 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, async_),
618 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, keep_alive_secs_),
619 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, version_def_),
620 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, cluster_device_attributes_),
621 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, context_id_),
622 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, context_view_id_),
623 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextRequest, lazy_copy_remote_function_inputs_),
624 ~0u, // no _has_bits_
625 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextResponse, _internal_metadata_),
626 ~0u, // no _extensions_
627 ~0u, // no _oneof_case_
628 ~0u, // no _weak_field_map_
629 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CreateContextResponse, device_attributes_),
630 ~0u, // no _has_bits_
631 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextRequest, _internal_metadata_),
632 ~0u, // no _extensions_
633 ~0u, // no _oneof_case_
634 ~0u, // no _weak_field_map_
635 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextRequest, server_def_),
636 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextRequest, cluster_device_attributes_),
637 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextRequest, context_id_),
638 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextRequest, context_view_id_),
639 ~0u, // no _has_bits_
640 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextResponse, _internal_metadata_),
641 ~0u, // no _extensions_
642 ~0u, // no _oneof_case_
643 ~0u, // no _weak_field_map_
644 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::UpdateContextResponse, device_attributes_),
645 ~0u, // no _has_bits_
646 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::EnqueueRequest, _internal_metadata_),
647 ~0u, // no _extensions_
648 ~0u, // no _oneof_case_
649 ~0u, // no _weak_field_map_
650 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::EnqueueRequest, context_id_),
651 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::EnqueueRequest, queue_),
652 ~0u, // no _has_bits_
653 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::EnqueueResponse, _internal_metadata_),
654 ~0u, // no _extensions_
655 ~0u, // no _oneof_case_
656 ~0u, // no _weak_field_map_
657 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::EnqueueResponse, queue_response_),
658 ~0u, // no _has_bits_
659 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::WaitQueueDoneRequest, _internal_metadata_),
660 ~0u, // no _extensions_
661 ~0u, // no _oneof_case_
662 ~0u, // no _weak_field_map_
663 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::WaitQueueDoneRequest, context_id_),
664 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::WaitQueueDoneRequest, op_id_),
665 ~0u, // no _has_bits_
666 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::WaitQueueDoneResponse, _internal_metadata_),
667 ~0u, // no _extensions_
668 ~0u, // no _oneof_case_
669 ~0u, // no _weak_field_map_
670 ~0u, // no _has_bits_
671 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionRequest, _internal_metadata_),
672 ~0u, // no _extensions_
673 ~0u, // no _oneof_case_
674 ~0u, // no _weak_field_map_
675 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionRequest, context_id_),
676 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionRequest, operation_),
677 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionRequest, output_num_),
678 ~0u, // no _has_bits_
679 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionResponse, _internal_metadata_),
680 ~0u, // no _extensions_
681 ~0u, // no _oneof_case_
682 ~0u, // no _weak_field_map_
683 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionResponse, shape_),
684 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RunComponentFunctionResponse, tensor_),
685 ~0u, // no _has_bits_
686 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::KeepAliveRequest, _internal_metadata_),
687 ~0u, // no _extensions_
688 ~0u, // no _oneof_case_
689 ~0u, // no _weak_field_map_
690 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::KeepAliveRequest, context_id_),
691 ~0u, // no _has_bits_
692 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::KeepAliveResponse, _internal_metadata_),
693 ~0u, // no _extensions_
694 ~0u, // no _oneof_case_
695 ~0u, // no _weak_field_map_
696 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::KeepAliveResponse, context_view_id_),
697 ~0u, // no _has_bits_
698 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CloseContextRequest, _internal_metadata_),
699 ~0u, // no _extensions_
700 ~0u, // no _oneof_case_
701 ~0u, // no _weak_field_map_
702 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CloseContextRequest, context_id_),
703 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CloseContextRequest, context_view_id_),
704 ~0u, // no _has_bits_
705 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CloseContextResponse, _internal_metadata_),
706 ~0u, // no _extensions_
707 ~0u, // no _oneof_case_
708 ~0u, // no _weak_field_map_
709 ~0u, // no _has_bits_
710 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RegisterFunctionOp, _internal_metadata_),
711 ~0u, // no _extensions_
712 ~0u, // no _oneof_case_
713 ~0u, // no _weak_field_map_
714 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RegisterFunctionOp, function_def_),
715 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RegisterFunctionOp, is_component_function_),
716 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::RegisterFunctionOp, library_),
717 ~0u, // no _has_bits_
718 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CleanupFunctionOp, _internal_metadata_),
719 ~0u, // no _extensions_
720 ~0u, // no _oneof_case_
721 ~0u, // no _weak_field_map_
722 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::CleanupFunctionOp, step_id_),
723 ~0u, // no _has_bits_
724 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SyncRemoteExecutorForStream, _internal_metadata_),
725 ~0u, // no _extensions_
726 ~0u, // no _oneof_case_
727 ~0u, // no _weak_field_map_
728 ~0u, // no _has_bits_
729 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendTensorOp, _internal_metadata_),
730 ~0u, // no _extensions_
731 ~0u, // no _oneof_case_
732 ~0u, // no _weak_field_map_
733 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendTensorOp, op_id_),
734 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendTensorOp, tensors_),
735 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendTensorOp, device_name_),
736 ~0u, // no _has_bits_
737 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle, _internal_metadata_),
738 ~0u, // no _extensions_
739 ~0u, // no _oneof_case_
740 ~0u, // no _weak_field_map_
741 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle, tensor_),
742 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle, device_),
743 ~0u, // no _has_bits_
744 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_Handle, _internal_metadata_),
745 ~0u, // no _extensions_
746 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_Handle, _oneof_case_[0]),
747 ~0u, // no _weak_field_map_
748 offsetof(::tensorflow::eager::SendPackedHandleOp_HandleDefaultTypeInternal, local_handle_),
749 offsetof(::tensorflow::eager::SendPackedHandleOp_HandleDefaultTypeInternal, remote_handle_),
750 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp_Handle, item_),
751 ~0u, // no _has_bits_
752 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp, _internal_metadata_),
753 ~0u, // no _extensions_
754 ~0u, // no _oneof_case_
755 ~0u, // no _weak_field_map_
756 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp, op_id_),
757 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp, handles_),
758 PROTOBUF_FIELD_OFFSET(::tensorflow::eager::SendPackedHandleOp, device_name_),
759};
760static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
761 { 0, -1, sizeof(::tensorflow::eager::Operation_Input)},
762 { 8, 15, sizeof(::tensorflow::eager::Operation_AttrsEntry_DoNotUse)},
763 { 17, -1, sizeof(::tensorflow::eager::Operation)},
764 { 31, -1, sizeof(::tensorflow::eager::QueueItem)},
765 { 44, -1, sizeof(::tensorflow::eager::QueueResponse)},
766 { 52, -1, sizeof(::tensorflow::eager::CreateContextRequest)},
767 { 65, -1, sizeof(::tensorflow::eager::CreateContextResponse)},
768 { 71, -1, sizeof(::tensorflow::eager::UpdateContextRequest)},
769 { 80, -1, sizeof(::tensorflow::eager::UpdateContextResponse)},
770 { 86, -1, sizeof(::tensorflow::eager::EnqueueRequest)},
771 { 93, -1, sizeof(::tensorflow::eager::EnqueueResponse)},
772 { 99, -1, sizeof(::tensorflow::eager::WaitQueueDoneRequest)},
773 { 106, -1, sizeof(::tensorflow::eager::WaitQueueDoneResponse)},
774 { 111, -1, sizeof(::tensorflow::eager::RunComponentFunctionRequest)},
775 { 119, -1, sizeof(::tensorflow::eager::RunComponentFunctionResponse)},
776 { 126, -1, sizeof(::tensorflow::eager::KeepAliveRequest)},
777 { 132, -1, sizeof(::tensorflow::eager::KeepAliveResponse)},
778 { 138, -1, sizeof(::tensorflow::eager::CloseContextRequest)},
779 { 145, -1, sizeof(::tensorflow::eager::CloseContextResponse)},
780 { 150, -1, sizeof(::tensorflow::eager::RegisterFunctionOp)},
781 { 158, -1, sizeof(::tensorflow::eager::CleanupFunctionOp)},
782 { 164, -1, sizeof(::tensorflow::eager::SyncRemoteExecutorForStream)},
783 { 169, -1, sizeof(::tensorflow::eager::SendTensorOp)},
784 { 177, -1, sizeof(::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle)},
785 { 184, -1, sizeof(::tensorflow::eager::SendPackedHandleOp_Handle)},
786 { 192, -1, sizeof(::tensorflow::eager::SendPackedHandleOp)},
787};
788
789static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
790 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_Operation_Input_default_instance_),
791 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_Operation_AttrsEntry_DoNotUse_default_instance_),
792 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_Operation_default_instance_),
793 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_QueueItem_default_instance_),
794 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_QueueResponse_default_instance_),
795 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_CreateContextRequest_default_instance_),
796 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_CreateContextResponse_default_instance_),
797 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_UpdateContextRequest_default_instance_),
798 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_UpdateContextResponse_default_instance_),
799 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_EnqueueRequest_default_instance_),
800 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_EnqueueResponse_default_instance_),
801 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_WaitQueueDoneRequest_default_instance_),
802 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_WaitQueueDoneResponse_default_instance_),
803 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_RunComponentFunctionRequest_default_instance_),
804 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_RunComponentFunctionResponse_default_instance_),
805 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_KeepAliveRequest_default_instance_),
806 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_KeepAliveResponse_default_instance_),
807 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_CloseContextRequest_default_instance_),
808 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_CloseContextResponse_default_instance_),
809 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_RegisterFunctionOp_default_instance_),
810 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_CleanupFunctionOp_default_instance_),
811 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_SyncRemoteExecutorForStream_default_instance_),
812 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_SendTensorOp_default_instance_),
813 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_SendPackedHandleOp_LocalTensorHandle_default_instance_),
814 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_SendPackedHandleOp_Handle_default_instance_),
815 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::eager::_SendPackedHandleOp_default_instance_),
816};
817
818const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
819 "\n,tensorflow/core/protobuf/eager_service"
820 ".proto\022\020tensorflow.eager\032*tensorflow/cor"
821 "e/framework/attr_value.proto\0321tensorflow"
822 "/core/framework/device_attributes.proto\032"
823 "(tensorflow/core/framework/function.prot"
824 "o\032&tensorflow/core/framework/tensor.prot"
825 "o\032,tensorflow/core/framework/tensor_shap"
826 "e.proto\032(tensorflow/core/framework/versi"
827 "ons.proto\0323tensorflow/core/protobuf/remo"
828 "te_tensor_handle.proto\0320tensorflow/core/"
829 "protobuf/tensorflow_server.proto\"\312\003\n\tOpe"
830 "ration\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\0224\n\top_i"
831 "nputs\030\n \003(\0132!.tensorflow.eager.Operation"
832 ".Input\022\026\n\016control_op_ids\030\004 \003(\003\0225\n\005attrs\030"
833 "\005 \003(\0132&.tensorflow.eager.Operation.Attrs"
834 "Entry\022\016\n\006device\030\006 \001(\t\022\035\n\025is_component_fu"
835 "nction\030\007 \001(\010\022\024\n\014func_step_id\030\010 \001(\003\022\023\n\013is"
836 "_function\030\t \001(\010\032y\n\005Input\022=\n\rremote_handl"
837 "e\030\001 \001(\0132$.tensorflow.eager.RemoteTensorH"
838 "andleH\000\022)\n\006tensor\030\002 \001(\0132\027.tensorflow.Ten"
839 "sorProtoH\000B\006\n\004item\032C\n\nAttrsEntry\022\013\n\003key\030"
840 "\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrVa"
841 "lue:\0028\001J\004\010\003\020\004\"\340\003\n\tQueueItem\022@\n\020handle_to"
842 "_decref\030\001 \001(\0132$.tensorflow.eager.RemoteT"
843 "ensorHandleH\000\0220\n\toperation\030\002 \001(\0132\033.tenso"
844 "rflow.eager.OperationH\000\0225\n\013send_tensor\030\003"
845 " \001(\0132\036.tensorflow.eager.SendTensorOpH\000\022A"
846 "\n\021register_function\030\004 \001(\0132$.tensorflow.e"
847 "ager.RegisterFunctionOpH\000\022\?\n\020cleanup_fun"
848 "ction\030\005 \001(\0132#.tensorflow.eager.CleanupFu"
849 "nctionOpH\000\022X\n\037sync_remote_executor_for_s"
850 "tream\030\006 \001(\0132-.tensorflow.eager.SyncRemot"
851 "eExecutorForStreamH\000\022B\n\022send_packed_hand"
852 "le\030\007 \001(\0132$.tensorflow.eager.SendPackedHa"
853 "ndleOpH\000B\006\n\004item\"u\n\rQueueResponse\022+\n\005sha"
854 "pe\030\001 \003(\0132\034.tensorflow.TensorShapeProto\022\016"
855 "\n\006device\030\003 \003(\t\022\'\n\006tensor\030\002 \003(\0132\027.tensorf"
856 "low.TensorProto\"\264\002\n\024CreateContextRequest"
857 "\022)\n\nserver_def\030\001 \001(\0132\025.tensorflow.Server"
858 "Def\022\r\n\005async\030\002 \001(\010\022\027\n\017keep_alive_secs\030\003 "
859 "\001(\003\022+\n\013version_def\030\004 \001(\0132\026.tensorflow.Ve"
860 "rsionDef\022\?\n\031cluster_device_attributes\030\006 "
861 "\003(\0132\034.tensorflow.DeviceAttributes\022\022\n\ncon"
862 "text_id\030\007 \001(\006\022\027\n\017context_view_id\030\010 \001(\006\022("
863 "\n lazy_copy_remote_function_inputs\030\t \001(\010"
864 "J\004\010\005\020\006\"V\n\025CreateContextResponse\0227\n\021devic"
865 "e_attributes\030\002 \003(\0132\034.tensorflow.DeviceAt"
866 "tributesJ\004\010\001\020\002\"\257\001\n\024UpdateContextRequest\022"
867 ")\n\nserver_def\030\001 \001(\0132\025.tensorflow.ServerD"
868 "ef\022\?\n\031cluster_device_attributes\030\002 \003(\0132\034."
869 "tensorflow.DeviceAttributes\022\022\n\ncontext_i"
870 "d\030\003 \001(\006\022\027\n\017context_view_id\030\004 \001(\006\"P\n\025Upda"
871 "teContextResponse\0227\n\021device_attributes\030\001"
872 " \003(\0132\034.tensorflow.DeviceAttributes\"P\n\016En"
873 "queueRequest\022\022\n\ncontext_id\030\001 \001(\006\022*\n\005queu"
874 "e\030\003 \003(\0132\033.tensorflow.eager.QueueItem\"J\n\017"
875 "EnqueueResponse\0227\n\016queue_response\030\001 \003(\0132"
876 "\037.tensorflow.eager.QueueResponse\"9\n\024Wait"
877 "QueueDoneRequest\022\022\n\ncontext_id\030\001 \001(\006\022\r\n\005"
878 "op_id\030\002 \003(\003\"\027\n\025WaitQueueDoneResponse\"u\n\033"
879 "RunComponentFunctionRequest\022\022\n\ncontext_i"
880 "d\030\001 \001(\006\022.\n\toperation\030\002 \001(\0132\033.tensorflow."
881 "eager.Operation\022\022\n\noutput_num\030\003 \003(\005\"t\n\034R"
882 "unComponentFunctionResponse\022+\n\005shape\030\001 \003"
883 "(\0132\034.tensorflow.TensorShapeProto\022\'\n\006tens"
884 "or\030\002 \003(\0132\027.tensorflow.TensorProto\"&\n\020Kee"
885 "pAliveRequest\022\022\n\ncontext_id\030\001 \001(\006\",\n\021Kee"
886 "pAliveResponse\022\027\n\017context_view_id\030\001 \001(\006\""
887 "B\n\023CloseContextRequest\022\022\n\ncontext_id\030\001 \001"
888 "(\006\022\027\n\017context_view_id\030\002 \001(\006\"\026\n\024CloseCont"
889 "extResponse\"\223\001\n\022RegisterFunctionOp\022-\n\014fu"
890 "nction_def\030\001 \001(\0132\027.tensorflow.FunctionDe"
891 "f\022\035\n\025is_component_function\030\002 \001(\010\022/\n\007libr"
892 "ary\030\003 \001(\0132\036.tensorflow.FunctionDefLibrar"
893 "y\"$\n\021CleanupFunctionOp\022\017\n\007step_id\030\001 \001(\003\""
894 "\035\n\033SyncRemoteExecutorForStream\"\\\n\014SendTe"
895 "nsorOp\022\r\n\005op_id\030\001 \001(\003\022(\n\007tensors\030\002 \003(\0132\027"
896 ".tensorflow.TensorProto\022\023\n\013device_name\030\003"
897 " \001(\t\"\346\002\n\022SendPackedHandleOp\022\r\n\005op_id\030\001 \001"
898 "(\003\022<\n\007handles\030\002 \003(\0132+.tensorflow.eager.S"
899 "endPackedHandleOp.Handle\022\023\n\013device_name\030"
900 "\003 \001(\t\032L\n\021LocalTensorHandle\022\'\n\006tensor\030\001 \001"
901 "(\0132\027.tensorflow.TensorProto\022\016\n\006device\030\002 "
902 "\001(\t\032\237\001\n\006Handle\022N\n\014local_handle\030\001 \001(\01326.t"
903 "ensorflow.eager.SendPackedHandleOp.Local"
904 "TensorHandleH\000\022=\n\rremote_handle\030\002 \001(\0132$."
905 "tensorflow.eager.RemoteTensorHandleH\000B\006\n"
906 "\004item2\215\006\n\014EagerService\022`\n\rCreateContext\022"
907 "&.tensorflow.eager.CreateContextRequest\032"
908 "\'.tensorflow.eager.CreateContextResponse"
909 "\022`\n\rUpdateContext\022&.tensorflow.eager.Upd"
910 "ateContextRequest\032\'.tensorflow.eager.Upd"
911 "ateContextResponse\022N\n\007Enqueue\022 .tensorfl"
912 "ow.eager.EnqueueRequest\032!.tensorflow.eag"
913 "er.EnqueueResponse\022[\n\020StreamingEnqueue\022 "
914 ".tensorflow.eager.EnqueueRequest\032!.tenso"
915 "rflow.eager.EnqueueResponse(\0010\001\022`\n\rWaitQ"
916 "ueueDone\022&.tensorflow.eager.WaitQueueDon"
917 "eRequest\032\'.tensorflow.eager.WaitQueueDon"
918 "eResponse\022u\n\024RunComponentFunction\022-.tens"
919 "orflow.eager.RunComponentFunctionRequest"
920 "\032..tensorflow.eager.RunComponentFunction"
921 "Response\022T\n\tKeepAlive\022\".tensorflow.eager"
922 ".KeepAliveRequest\032#.tensorflow.eager.Kee"
923 "pAliveResponse\022]\n\014CloseContext\022%.tensorf"
924 "low.eager.CloseContextRequest\032&.tensorfl"
925 "ow.eager.CloseContextResponseBWZUgithub."
926 "com/tensorflow/tensorflow/tensorflow/go/"
927 "core/protobuf/for_core_protos_go_protob\006"
928 "proto3"
929 ;
930static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_deps[8] = {
931 &::descriptor_table_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto,
932 &::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto,
933 &::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto,
934 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
935 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto,
936 &::descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto,
937 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto,
938 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto,
939};
940static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_sccs[26] = {
941 &scc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
942 &scc_info_CloseContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
943 &scc_info_CloseContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
944 &scc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
945 &scc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
946 &scc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
947 &scc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
948 &scc_info_KeepAliveRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
949 &scc_info_KeepAliveResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
950 &scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
951 &scc_info_Operation_AttrsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
952 &scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
953 &scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
954 &scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
955 &scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
956 &scc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
957 &scc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
958 &scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
959 &scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
960 &scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
961 &scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
962 &scc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
963 &scc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
964 &scc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
965 &scc_info_WaitQueueDoneRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
966 &scc_info_WaitQueueDoneResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base,
967};
968static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_once;
969static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_initialized = false;
970const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto = {
971 &descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto, "tensorflow/core/protobuf/eager_service.proto", 4366,
972 &descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto_deps, 26, 8,
973 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto::offsets,
974 file_level_metadata_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto, 26, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto,
975};
976
977// Force running AddDescriptors() at dynamic initialization time.
978static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto), true);
979namespace tensorflow {
980namespace eager {
981
982// ===================================================================
983
984void Operation_Input::InitAsDefaultInstance() {
985 ::tensorflow::eager::_Operation_Input_default_instance_.remote_handle_ = const_cast< ::tensorflow::eager::RemoteTensorHandle*>(
986 ::tensorflow::eager::RemoteTensorHandle::internal_default_instance());
987 ::tensorflow::eager::_Operation_Input_default_instance_.tensor_ = const_cast< ::tensorflow::TensorProto*>(
988 ::tensorflow::TensorProto::internal_default_instance());
989}
990class Operation_Input::_Internal {
991 public:
992 static const ::tensorflow::eager::RemoteTensorHandle& remote_handle(const Operation_Input* msg);
993 static const ::tensorflow::TensorProto& tensor(const Operation_Input* msg);
994};
995
996const ::tensorflow::eager::RemoteTensorHandle&
997Operation_Input::_Internal::remote_handle(const Operation_Input* msg) {
998 return *msg->item_.remote_handle_;
999}
1000const ::tensorflow::TensorProto&
1001Operation_Input::_Internal::tensor(const Operation_Input* msg) {
1002 return *msg->item_.tensor_;
1003}
1004void Operation_Input::set_allocated_remote_handle(::tensorflow::eager::RemoteTensorHandle* remote_handle) {
1005 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1006 clear_item();
1007 if (remote_handle) {
1008 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1009 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(remote_handle)->GetArena();
1010 if (message_arena != submessage_arena) {
1011 remote_handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1012 message_arena, remote_handle, submessage_arena);
1013 }
1014 set_has_remote_handle();
1015 item_.remote_handle_ = remote_handle;
1016 }
1017 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.Operation.Input.remote_handle)
1018}
1019void Operation_Input::clear_remote_handle() {
1020 if (has_remote_handle()) {
1021 delete item_.remote_handle_;
1022 clear_has_item();
1023 }
1024}
1025void Operation_Input::set_allocated_tensor(::tensorflow::TensorProto* tensor) {
1026 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1027 clear_item();
1028 if (tensor) {
1029 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1030 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor)->GetArena();
1031 if (message_arena != submessage_arena) {
1032 tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1033 message_arena, tensor, submessage_arena);
1034 }
1035 set_has_tensor();
1036 item_.tensor_ = tensor;
1037 }
1038 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.Operation.Input.tensor)
1039}
1040void Operation_Input::clear_tensor() {
1041 if (has_tensor()) {
1042 delete item_.tensor_;
1043 clear_has_item();
1044 }
1045}
1046Operation_Input::Operation_Input()
1047 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1048 SharedCtor();
1049 // @@protoc_insertion_point(constructor:tensorflow.eager.Operation.Input)
1050}
1051Operation_Input::Operation_Input(const Operation_Input& from)
1052 : ::PROTOBUF_NAMESPACE_ID::Message(),
1053 _internal_metadata_(nullptr) {
1054 _internal_metadata_.MergeFrom(from._internal_metadata_);
1055 clear_has_item();
1056 switch (from.item_case()) {
1057 case kRemoteHandle: {
1058 mutable_remote_handle()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.remote_handle());
1059 break;
1060 }
1061 case kTensor: {
1062 mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor());
1063 break;
1064 }
1065 case ITEM_NOT_SET: {
1066 break;
1067 }
1068 }
1069 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.Operation.Input)
1070}
1071
1072void Operation_Input::SharedCtor() {
1073 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
1074 clear_has_item();
1075}
1076
1077Operation_Input::~Operation_Input() {
1078 // @@protoc_insertion_point(destructor:tensorflow.eager.Operation.Input)
1079 SharedDtor();
1080}
1081
1082void Operation_Input::SharedDtor() {
1083 if (has_item()) {
1084 clear_item();
1085 }
1086}
1087
1088void Operation_Input::SetCachedSize(int size) const {
1089 _cached_size_.Set(size);
1090}
1091const Operation_Input& Operation_Input::default_instance() {
1092 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Operation_Input_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
1093 return *internal_default_instance();
1094}
1095
1096
1097void Operation_Input::clear_item() {
1098// @@protoc_insertion_point(one_of_clear_start:tensorflow.eager.Operation.Input)
1099 switch (item_case()) {
1100 case kRemoteHandle: {
1101 delete item_.remote_handle_;
1102 break;
1103 }
1104 case kTensor: {
1105 delete item_.tensor_;
1106 break;
1107 }
1108 case ITEM_NOT_SET: {
1109 break;
1110 }
1111 }
1112 _oneof_case_[0] = ITEM_NOT_SET;
1113}
1114
1115
1116void Operation_Input::Clear() {
1117// @@protoc_insertion_point(message_clear_start:tensorflow.eager.Operation.Input)
1118 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1119 // Prevent compiler warnings about cached_has_bits being unused
1120 (void) cached_has_bits;
1121
1122 clear_item();
1123 _internal_metadata_.Clear();
1124}
1125
1126#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1127const char* Operation_Input::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1128#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1129 while (!ctx->Done(&ptr)) {
1130 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1131 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1132 CHK_(ptr);
1133 switch (tag >> 3) {
1134 // .tensorflow.eager.RemoteTensorHandle remote_handle = 1;
1135 case 1:
1136 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1137 ptr = ctx->ParseMessage(mutable_remote_handle(), ptr);
1138 CHK_(ptr);
1139 } else goto handle_unusual;
1140 continue;
1141 // .tensorflow.TensorProto tensor = 2;
1142 case 2:
1143 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1144 ptr = ctx->ParseMessage(mutable_tensor(), ptr);
1145 CHK_(ptr);
1146 } else goto handle_unusual;
1147 continue;
1148 default: {
1149 handle_unusual:
1150 if ((tag & 7) == 4 || tag == 0) {
1151 ctx->SetLastTag(tag);
1152 goto success;
1153 }
1154 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1155 CHK_(ptr != nullptr);
1156 continue;
1157 }
1158 } // switch
1159 } // while
1160success:
1161 return ptr;
1162failure:
1163 ptr = nullptr;
1164 goto success;
1165#undef CHK_
1166}
1167#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1168bool Operation_Input::MergePartialFromCodedStream(
1169 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1170#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1171 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1172 // @@protoc_insertion_point(parse_start:tensorflow.eager.Operation.Input)
1173 for (;;) {
1174 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1175 tag = p.first;
1176 if (!p.second) goto handle_unusual;
1177 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1178 // .tensorflow.eager.RemoteTensorHandle remote_handle = 1;
1179 case 1: {
1180 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1181 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1182 input, mutable_remote_handle()));
1183 } else {
1184 goto handle_unusual;
1185 }
1186 break;
1187 }
1188
1189 // .tensorflow.TensorProto tensor = 2;
1190 case 2: {
1191 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1192 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1193 input, mutable_tensor()));
1194 } else {
1195 goto handle_unusual;
1196 }
1197 break;
1198 }
1199
1200 default: {
1201 handle_unusual:
1202 if (tag == 0) {
1203 goto success;
1204 }
1205 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1206 input, tag, _internal_metadata_.mutable_unknown_fields()));
1207 break;
1208 }
1209 }
1210 }
1211success:
1212 // @@protoc_insertion_point(parse_success:tensorflow.eager.Operation.Input)
1213 return true;
1214failure:
1215 // @@protoc_insertion_point(parse_failure:tensorflow.eager.Operation.Input)
1216 return false;
1217#undef DO_
1218}
1219#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1220
1221void Operation_Input::SerializeWithCachedSizes(
1222 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1223 // @@protoc_insertion_point(serialize_start:tensorflow.eager.Operation.Input)
1224 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1225 (void) cached_has_bits;
1226
1227 // .tensorflow.eager.RemoteTensorHandle remote_handle = 1;
1228 if (has_remote_handle()) {
1229 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1230 1, _Internal::remote_handle(this), output);
1231 }
1232
1233 // .tensorflow.TensorProto tensor = 2;
1234 if (has_tensor()) {
1235 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1236 2, _Internal::tensor(this), output);
1237 }
1238
1239 if (_internal_metadata_.have_unknown_fields()) {
1240 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1241 _internal_metadata_.unknown_fields(), output);
1242 }
1243 // @@protoc_insertion_point(serialize_end:tensorflow.eager.Operation.Input)
1244}
1245
1246::PROTOBUF_NAMESPACE_ID::uint8* Operation_Input::InternalSerializeWithCachedSizesToArray(
1247 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1248 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.Operation.Input)
1249 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1250 (void) cached_has_bits;
1251
1252 // .tensorflow.eager.RemoteTensorHandle remote_handle = 1;
1253 if (has_remote_handle()) {
1254 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1255 InternalWriteMessageToArray(
1256 1, _Internal::remote_handle(this), target);
1257 }
1258
1259 // .tensorflow.TensorProto tensor = 2;
1260 if (has_tensor()) {
1261 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1262 InternalWriteMessageToArray(
1263 2, _Internal::tensor(this), target);
1264 }
1265
1266 if (_internal_metadata_.have_unknown_fields()) {
1267 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1268 _internal_metadata_.unknown_fields(), target);
1269 }
1270 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.Operation.Input)
1271 return target;
1272}
1273
1274size_t Operation_Input::ByteSizeLong() const {
1275// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.Operation.Input)
1276 size_t total_size = 0;
1277
1278 if (_internal_metadata_.have_unknown_fields()) {
1279 total_size +=
1280 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1281 _internal_metadata_.unknown_fields());
1282 }
1283 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1284 // Prevent compiler warnings about cached_has_bits being unused
1285 (void) cached_has_bits;
1286
1287 switch (item_case()) {
1288 // .tensorflow.eager.RemoteTensorHandle remote_handle = 1;
1289 case kRemoteHandle: {
1290 total_size += 1 +
1291 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1292 *item_.remote_handle_);
1293 break;
1294 }
1295 // .tensorflow.TensorProto tensor = 2;
1296 case kTensor: {
1297 total_size += 1 +
1298 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1299 *item_.tensor_);
1300 break;
1301 }
1302 case ITEM_NOT_SET: {
1303 break;
1304 }
1305 }
1306 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1307 SetCachedSize(cached_size);
1308 return total_size;
1309}
1310
1311void Operation_Input::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1312// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.Operation.Input)
1313 GOOGLE_DCHECK_NE(&from, this);
1314 const Operation_Input* source =
1315 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Operation_Input>(
1316 &from);
1317 if (source == nullptr) {
1318 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.Operation.Input)
1319 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1320 } else {
1321 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.Operation.Input)
1322 MergeFrom(*source);
1323 }
1324}
1325
1326void Operation_Input::MergeFrom(const Operation_Input& from) {
1327// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.Operation.Input)
1328 GOOGLE_DCHECK_NE(&from, this);
1329 _internal_metadata_.MergeFrom(from._internal_metadata_);
1330 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1331 (void) cached_has_bits;
1332
1333 switch (from.item_case()) {
1334 case kRemoteHandle: {
1335 mutable_remote_handle()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.remote_handle());
1336 break;
1337 }
1338 case kTensor: {
1339 mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor());
1340 break;
1341 }
1342 case ITEM_NOT_SET: {
1343 break;
1344 }
1345 }
1346}
1347
1348void Operation_Input::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1349// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.Operation.Input)
1350 if (&from == this) return;
1351 Clear();
1352 MergeFrom(from);
1353}
1354
1355void Operation_Input::CopyFrom(const Operation_Input& from) {
1356// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.Operation.Input)
1357 if (&from == this) return;
1358 Clear();
1359 MergeFrom(from);
1360}
1361
1362bool Operation_Input::IsInitialized() const {
1363 return true;
1364}
1365
1366void Operation_Input::InternalSwap(Operation_Input* other) {
1367 using std::swap;
1368 _internal_metadata_.Swap(&other->_internal_metadata_);
1369 swap(item_, other->item_);
1370 swap(_oneof_case_[0], other->_oneof_case_[0]);
1371}
1372
1373::PROTOBUF_NAMESPACE_ID::Metadata Operation_Input::GetMetadata() const {
1374 return GetMetadataStatic();
1375}
1376
1377
1378// ===================================================================
1379
1380Operation_AttrsEntry_DoNotUse::Operation_AttrsEntry_DoNotUse() {}
1381Operation_AttrsEntry_DoNotUse::Operation_AttrsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1382 : SuperType(arena) {}
1383void Operation_AttrsEntry_DoNotUse::MergeFrom(const Operation_AttrsEntry_DoNotUse& other) {
1384 MergeFromInternal(other);
1385}
1386::PROTOBUF_NAMESPACE_ID::Metadata Operation_AttrsEntry_DoNotUse::GetMetadata() const {
1387 return GetMetadataStatic();
1388}
1389void Operation_AttrsEntry_DoNotUse::MergeFrom(
1390 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
1391 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
1392}
1393
1394
1395// ===================================================================
1396
1397void Operation::InitAsDefaultInstance() {
1398}
1399class Operation::_Internal {
1400 public:
1401};
1402
1403void Operation::clear_attrs() {
1404 attrs_.Clear();
1405}
1406Operation::Operation()
1407 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1408 SharedCtor();
1409 // @@protoc_insertion_point(constructor:tensorflow.eager.Operation)
1410}
1411Operation::Operation(const Operation& from)
1412 : ::PROTOBUF_NAMESPACE_ID::Message(),
1413 _internal_metadata_(nullptr),
1414 control_op_ids_(from.control_op_ids_),
1415 op_inputs_(from.op_inputs_) {
1416 _internal_metadata_.MergeFrom(from._internal_metadata_);
1417 attrs_.MergeFrom(from.attrs_);
1418 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1419 if (!from.name().empty()) {
1420 name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
1421 }
1422 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1423 if (!from.device().empty()) {
1424 device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_);
1425 }
1426 ::memcpy(&id_, &from.id_,
1427 static_cast<size_t>(reinterpret_cast<char*>(&is_function_) -
1428 reinterpret_cast<char*>(&id_)) + sizeof(is_function_));
1429 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.Operation)
1430}
1431
1432void Operation::SharedCtor() {
1433 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
1434 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1435 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1436 ::memset(&id_, 0, static_cast<size_t>(
1437 reinterpret_cast<char*>(&is_function_) -
1438 reinterpret_cast<char*>(&id_)) + sizeof(is_function_));
1439}
1440
1441Operation::~Operation() {
1442 // @@protoc_insertion_point(destructor:tensorflow.eager.Operation)
1443 SharedDtor();
1444}
1445
1446void Operation::SharedDtor() {
1447 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1448 device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1449}
1450
1451void Operation::SetCachedSize(int size) const {
1452 _cached_size_.Set(size);
1453}
1454const Operation& Operation::default_instance() {
1455 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Operation_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
1456 return *internal_default_instance();
1457}
1458
1459
1460void Operation::Clear() {
1461// @@protoc_insertion_point(message_clear_start:tensorflow.eager.Operation)
1462 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1463 // Prevent compiler warnings about cached_has_bits being unused
1464 (void) cached_has_bits;
1465
1466 control_op_ids_.Clear();
1467 attrs_.Clear();
1468 op_inputs_.Clear();
1469 name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1470 device_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1471 ::memset(&id_, 0, static_cast<size_t>(
1472 reinterpret_cast<char*>(&is_function_) -
1473 reinterpret_cast<char*>(&id_)) + sizeof(is_function_));
1474 _internal_metadata_.Clear();
1475}
1476
1477#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1478const char* Operation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1479#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1480 while (!ctx->Done(&ptr)) {
1481 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1482 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1483 CHK_(ptr);
1484 switch (tag >> 3) {
1485 // int64 id = 1;
1486 case 1:
1487 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
1488 id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1489 CHK_(ptr);
1490 } else goto handle_unusual;
1491 continue;
1492 // string name = 2;
1493 case 2:
1494 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1495 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.eager.Operation.name");
1496 CHK_(ptr);
1497 } else goto handle_unusual;
1498 continue;
1499 // repeated int64 control_op_ids = 4;
1500 case 4:
1501 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1502 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_control_op_ids(), ptr, ctx);
1503 CHK_(ptr);
1504 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) {
1505 add_control_op_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
1506 CHK_(ptr);
1507 } else goto handle_unusual;
1508 continue;
1509 // map<string, .tensorflow.AttrValue> attrs = 5;
1510 case 5:
1511 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1512 ptr -= 1;
1513 do {
1514 ptr += 1;
1515 ptr = ctx->ParseMessage(&attrs_, ptr);
1516 CHK_(ptr);
1517 if (!ctx->DataAvailable(ptr)) break;
1518 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42);
1519 } else goto handle_unusual;
1520 continue;
1521 // string device = 6;
1522 case 6:
1523 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
1524 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device(), ptr, ctx, "tensorflow.eager.Operation.device");
1525 CHK_(ptr);
1526 } else goto handle_unusual;
1527 continue;
1528 // bool is_component_function = 7;
1529 case 7:
1530 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
1531 is_component_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1532 CHK_(ptr);
1533 } else goto handle_unusual;
1534 continue;
1535 // int64 func_step_id = 8;
1536 case 8:
1537 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
1538 func_step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1539 CHK_(ptr);
1540 } else goto handle_unusual;
1541 continue;
1542 // bool is_function = 9;
1543 case 9:
1544 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
1545 is_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1546 CHK_(ptr);
1547 } else goto handle_unusual;
1548 continue;
1549 // repeated .tensorflow.eager.Operation.Input op_inputs = 10;
1550 case 10:
1551 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
1552 ptr -= 1;
1553 do {
1554 ptr += 1;
1555 ptr = ctx->ParseMessage(add_op_inputs(), ptr);
1556 CHK_(ptr);
1557 if (!ctx->DataAvailable(ptr)) break;
1558 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82);
1559 } else goto handle_unusual;
1560 continue;
1561 default: {
1562 handle_unusual:
1563 if ((tag & 7) == 4 || tag == 0) {
1564 ctx->SetLastTag(tag);
1565 goto success;
1566 }
1567 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1568 CHK_(ptr != nullptr);
1569 continue;
1570 }
1571 } // switch
1572 } // while
1573success:
1574 return ptr;
1575failure:
1576 ptr = nullptr;
1577 goto success;
1578#undef CHK_
1579}
1580#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1581bool Operation::MergePartialFromCodedStream(
1582 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1583#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1584 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1585 // @@protoc_insertion_point(parse_start:tensorflow.eager.Operation)
1586 for (;;) {
1587 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1588 tag = p.first;
1589 if (!p.second) goto handle_unusual;
1590 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1591 // int64 id = 1;
1592 case 1: {
1593 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
1594
1595 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1596 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1597 input, &id_)));
1598 } else {
1599 goto handle_unusual;
1600 }
1601 break;
1602 }
1603
1604 // string name = 2;
1605 case 2: {
1606 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1607 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1608 input, this->mutable_name()));
1609 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1610 this->name().data(), static_cast<int>(this->name().length()),
1611 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1612 "tensorflow.eager.Operation.name"));
1613 } else {
1614 goto handle_unusual;
1615 }
1616 break;
1617 }
1618
1619 // repeated int64 control_op_ids = 4;
1620 case 4: {
1621 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1622 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
1623 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1624 input, this->mutable_control_op_ids())));
1625 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
1626 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1627 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1628 1, 34u, input, this->mutable_control_op_ids())));
1629 } else {
1630 goto handle_unusual;
1631 }
1632 break;
1633 }
1634
1635 // map<string, .tensorflow.AttrValue> attrs = 5;
1636 case 5: {
1637 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
1638 Operation_AttrsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
1639 Operation_AttrsEntry_DoNotUse,
1640 std::string, ::tensorflow::AttrValue,
1641 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1642 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
1643 0 >,
1644 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue > > parser(&attrs_);
1645 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
1646 input, &parser));
1647 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1648 parser.key().data(), static_cast<int>(parser.key().length()),
1649 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1650 "tensorflow.eager.Operation.AttrsEntry.key"));
1651 } else {
1652 goto handle_unusual;
1653 }
1654 break;
1655 }
1656
1657 // string device = 6;
1658 case 6: {
1659 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
1660 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1661 input, this->mutable_device()));
1662 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1663 this->device().data(), static_cast<int>(this->device().length()),
1664 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1665 "tensorflow.eager.Operation.device"));
1666 } else {
1667 goto handle_unusual;
1668 }
1669 break;
1670 }
1671
1672 // bool is_component_function = 7;
1673 case 7: {
1674 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
1675
1676 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1677 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1678 input, &is_component_function_)));
1679 } else {
1680 goto handle_unusual;
1681 }
1682 break;
1683 }
1684
1685 // int64 func_step_id = 8;
1686 case 8: {
1687 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) {
1688
1689 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1690 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1691 input, &func_step_id_)));
1692 } else {
1693 goto handle_unusual;
1694 }
1695 break;
1696 }
1697
1698 // bool is_function = 9;
1699 case 9: {
1700 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
1701
1702 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1703 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1704 input, &is_function_)));
1705 } else {
1706 goto handle_unusual;
1707 }
1708 break;
1709 }
1710
1711 // repeated .tensorflow.eager.Operation.Input op_inputs = 10;
1712 case 10: {
1713 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
1714 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1715 input, add_op_inputs()));
1716 } else {
1717 goto handle_unusual;
1718 }
1719 break;
1720 }
1721
1722 default: {
1723 handle_unusual:
1724 if (tag == 0) {
1725 goto success;
1726 }
1727 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1728 input, tag, _internal_metadata_.mutable_unknown_fields()));
1729 break;
1730 }
1731 }
1732 }
1733success:
1734 // @@protoc_insertion_point(parse_success:tensorflow.eager.Operation)
1735 return true;
1736failure:
1737 // @@protoc_insertion_point(parse_failure:tensorflow.eager.Operation)
1738 return false;
1739#undef DO_
1740}
1741#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1742
1743void Operation::SerializeWithCachedSizes(
1744 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1745 // @@protoc_insertion_point(serialize_start:tensorflow.eager.Operation)
1746 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1747 (void) cached_has_bits;
1748
1749 // int64 id = 1;
1750 if (this->id() != 0) {
1751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
1752 }
1753
1754 // string name = 2;
1755 if (this->name().size() > 0) {
1756 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1757 this->name().data(), static_cast<int>(this->name().length()),
1758 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1759 "tensorflow.eager.Operation.name");
1760 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1761 2, this->name(), output);
1762 }
1763
1764 // repeated int64 control_op_ids = 4;
1765 if (this->control_op_ids_size() > 0) {
1766 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1767 output->WriteVarint32(_control_op_ids_cached_byte_size_.load(
1768 std::memory_order_relaxed));
1769 }
1770 for (int i = 0, n = this->control_op_ids_size(); i < n; i++) {
1771 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
1772 this->control_op_ids(i), output);
1773 }
1774
1775 // map<string, .tensorflow.AttrValue> attrs = 5;
1776 if (!this->attrs().empty()) {
1777 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_pointer
1778 ConstPtr;
1779 typedef ConstPtr SortItem;
1780 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1781 struct Utf8Check {
1782 static void Check(ConstPtr p) {
1783 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1784 p->first.data(), static_cast<int>(p->first.length()),
1785 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1786 "tensorflow.eager.Operation.AttrsEntry.key");
1787 }
1788 };
1789
1790 if (output->IsSerializationDeterministic() &&
1791 this->attrs().size() > 1) {
1792 ::std::unique_ptr<SortItem[]> items(
1793 new SortItem[this->attrs().size()]);
1794 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::size_type size_type;
1795 size_type n = 0;
1796 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
1797 it = this->attrs().begin();
1798 it != this->attrs().end(); ++it, ++n) {
1799 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1800 }
1801 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1802 for (size_type i = 0; i < n; i++) {
1803 Operation_AttrsEntry_DoNotUse::Funcs::SerializeToCodedStream(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
1804 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1805 }
1806 } else {
1807 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
1808 it = this->attrs().begin();
1809 it != this->attrs().end(); ++it) {
1810 Operation_AttrsEntry_DoNotUse::Funcs::SerializeToCodedStream(5, it->first, it->second, output);
1811 Utf8Check::Check(&(*it));
1812 }
1813 }
1814 }
1815
1816 // string device = 6;
1817 if (this->device().size() > 0) {
1818 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1819 this->device().data(), static_cast<int>(this->device().length()),
1820 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1821 "tensorflow.eager.Operation.device");
1822 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1823 6, this->device(), output);
1824 }
1825
1826 // bool is_component_function = 7;
1827 if (this->is_component_function() != 0) {
1828 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->is_component_function(), output);
1829 }
1830
1831 // int64 func_step_id = 8;
1832 if (this->func_step_id() != 0) {
1833 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(8, this->func_step_id(), output);
1834 }
1835
1836 // bool is_function = 9;
1837 if (this->is_function() != 0) {
1838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(9, this->is_function(), output);
1839 }
1840
1841 // repeated .tensorflow.eager.Operation.Input op_inputs = 10;
1842 for (unsigned int i = 0,
1843 n = static_cast<unsigned int>(this->op_inputs_size()); i < n; i++) {
1844 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1845 10,
1846 this->op_inputs(static_cast<int>(i)),
1847 output);
1848 }
1849
1850 if (_internal_metadata_.have_unknown_fields()) {
1851 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1852 _internal_metadata_.unknown_fields(), output);
1853 }
1854 // @@protoc_insertion_point(serialize_end:tensorflow.eager.Operation)
1855}
1856
1857::PROTOBUF_NAMESPACE_ID::uint8* Operation::InternalSerializeWithCachedSizesToArray(
1858 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1859 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.Operation)
1860 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1861 (void) cached_has_bits;
1862
1863 // int64 id = 1;
1864 if (this->id() != 0) {
1865 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
1866 }
1867
1868 // string name = 2;
1869 if (this->name().size() > 0) {
1870 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1871 this->name().data(), static_cast<int>(this->name().length()),
1872 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1873 "tensorflow.eager.Operation.name");
1874 target =
1875 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1876 2, this->name(), target);
1877 }
1878
1879 // repeated int64 control_op_ids = 4;
1880 if (this->control_op_ids_size() > 0) {
1881 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
1882 4,
1883 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1884 target);
1885 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
1886 _control_op_ids_cached_byte_size_.load(std::memory_order_relaxed),
1887 target);
1888 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1889 WriteInt64NoTagToArray(this->control_op_ids_, target);
1890 }
1891
1892 // map<string, .tensorflow.AttrValue> attrs = 5;
1893 if (!this->attrs().empty()) {
1894 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_pointer
1895 ConstPtr;
1896 typedef ConstPtr SortItem;
1897 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1898 struct Utf8Check {
1899 static void Check(ConstPtr p) {
1900 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1901 p->first.data(), static_cast<int>(p->first.length()),
1902 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1903 "tensorflow.eager.Operation.AttrsEntry.key");
1904 }
1905 };
1906
1907 if (false &&
1908 this->attrs().size() > 1) {
1909 ::std::unique_ptr<SortItem[]> items(
1910 new SortItem[this->attrs().size()]);
1911 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::size_type size_type;
1912 size_type n = 0;
1913 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
1914 it = this->attrs().begin();
1915 it != this->attrs().end(); ++it, ++n) {
1916 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1917 }
1918 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1919 for (size_type i = 0; i < n; i++) {
1920 target = Operation_AttrsEntry_DoNotUse::Funcs::SerializeToArray(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
1921 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1922 }
1923 } else {
1924 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
1925 it = this->attrs().begin();
1926 it != this->attrs().end(); ++it) {
1927 target = Operation_AttrsEntry_DoNotUse::Funcs::SerializeToArray(5, it->first, it->second, target);
1928 Utf8Check::Check(&(*it));
1929 }
1930 }
1931 }
1932
1933 // string device = 6;
1934 if (this->device().size() > 0) {
1935 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1936 this->device().data(), static_cast<int>(this->device().length()),
1937 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1938 "tensorflow.eager.Operation.device");
1939 target =
1940 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1941 6, this->device(), target);
1942 }
1943
1944 // bool is_component_function = 7;
1945 if (this->is_component_function() != 0) {
1946 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->is_component_function(), target);
1947 }
1948
1949 // int64 func_step_id = 8;
1950 if (this->func_step_id() != 0) {
1951 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->func_step_id(), target);
1952 }
1953
1954 // bool is_function = 9;
1955 if (this->is_function() != 0) {
1956 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->is_function(), target);
1957 }
1958
1959 // repeated .tensorflow.eager.Operation.Input op_inputs = 10;
1960 for (unsigned int i = 0,
1961 n = static_cast<unsigned int>(this->op_inputs_size()); i < n; i++) {
1962 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1963 InternalWriteMessageToArray(
1964 10, this->op_inputs(static_cast<int>(i)), target);
1965 }
1966
1967 if (_internal_metadata_.have_unknown_fields()) {
1968 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1969 _internal_metadata_.unknown_fields(), target);
1970 }
1971 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.Operation)
1972 return target;
1973}
1974
1975size_t Operation::ByteSizeLong() const {
1976// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.Operation)
1977 size_t total_size = 0;
1978
1979 if (_internal_metadata_.have_unknown_fields()) {
1980 total_size +=
1981 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1982 _internal_metadata_.unknown_fields());
1983 }
1984 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1985 // Prevent compiler warnings about cached_has_bits being unused
1986 (void) cached_has_bits;
1987
1988 // repeated int64 control_op_ids = 4;
1989 {
1990 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1991 Int64Size(this->control_op_ids_);
1992 if (data_size > 0) {
1993 total_size += 1 +
1994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1995 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
1996 }
1997 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
1998 _control_op_ids_cached_byte_size_.store(cached_size,
1999 std::memory_order_relaxed);
2000 total_size += data_size;
2001 }
2002
2003 // map<string, .tensorflow.AttrValue> attrs = 5;
2004 total_size += 1 *
2005 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->attrs_size());
2006 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >::const_iterator
2007 it = this->attrs().begin();
2008 it != this->attrs().end(); ++it) {
2009 total_size += Operation_AttrsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
2010 }
2011
2012 // repeated .tensorflow.eager.Operation.Input op_inputs = 10;
2013 {
2014 unsigned int count = static_cast<unsigned int>(this->op_inputs_size());
2015 total_size += 1UL * count;
2016 for (unsigned int i = 0; i < count; i++) {
2017 total_size +=
2018 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2019 this->op_inputs(static_cast<int>(i)));
2020 }
2021 }
2022
2023 // string name = 2;
2024 if (this->name().size() > 0) {
2025 total_size += 1 +
2026 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2027 this->name());
2028 }
2029
2030 // string device = 6;
2031 if (this->device().size() > 0) {
2032 total_size += 1 +
2033 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2034 this->device());
2035 }
2036
2037 // int64 id = 1;
2038 if (this->id() != 0) {
2039 total_size += 1 +
2040 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
2041 this->id());
2042 }
2043
2044 // int64 func_step_id = 8;
2045 if (this->func_step_id() != 0) {
2046 total_size += 1 +
2047 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
2048 this->func_step_id());
2049 }
2050
2051 // bool is_component_function = 7;
2052 if (this->is_component_function() != 0) {
2053 total_size += 1 + 1;
2054 }
2055
2056 // bool is_function = 9;
2057 if (this->is_function() != 0) {
2058 total_size += 1 + 1;
2059 }
2060
2061 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2062 SetCachedSize(cached_size);
2063 return total_size;
2064}
2065
2066void Operation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2067// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.Operation)
2068 GOOGLE_DCHECK_NE(&from, this);
2069 const Operation* source =
2070 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Operation>(
2071 &from);
2072 if (source == nullptr) {
2073 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.Operation)
2074 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2075 } else {
2076 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.Operation)
2077 MergeFrom(*source);
2078 }
2079}
2080
2081void Operation::MergeFrom(const Operation& from) {
2082// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.Operation)
2083 GOOGLE_DCHECK_NE(&from, this);
2084 _internal_metadata_.MergeFrom(from._internal_metadata_);
2085 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2086 (void) cached_has_bits;
2087
2088 control_op_ids_.MergeFrom(from.control_op_ids_);
2089 attrs_.MergeFrom(from.attrs_);
2090 op_inputs_.MergeFrom(from.op_inputs_);
2091 if (from.name().size() > 0) {
2092
2093 name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
2094 }
2095 if (from.device().size() > 0) {
2096
2097 device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_);
2098 }
2099 if (from.id() != 0) {
2100 set_id(from.id());
2101 }
2102 if (from.func_step_id() != 0) {
2103 set_func_step_id(from.func_step_id());
2104 }
2105 if (from.is_component_function() != 0) {
2106 set_is_component_function(from.is_component_function());
2107 }
2108 if (from.is_function() != 0) {
2109 set_is_function(from.is_function());
2110 }
2111}
2112
2113void Operation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2114// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.Operation)
2115 if (&from == this) return;
2116 Clear();
2117 MergeFrom(from);
2118}
2119
2120void Operation::CopyFrom(const Operation& from) {
2121// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.Operation)
2122 if (&from == this) return;
2123 Clear();
2124 MergeFrom(from);
2125}
2126
2127bool Operation::IsInitialized() const {
2128 return true;
2129}
2130
2131void Operation::InternalSwap(Operation* other) {
2132 using std::swap;
2133 _internal_metadata_.Swap(&other->_internal_metadata_);
2134 control_op_ids_.InternalSwap(&other->control_op_ids_);
2135 attrs_.Swap(&other->attrs_);
2136 CastToBase(&op_inputs_)->InternalSwap(CastToBase(&other->op_inputs_));
2137 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2138 GetArenaNoVirtual());
2139 device_.Swap(&other->device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2140 GetArenaNoVirtual());
2141 swap(id_, other->id_);
2142 swap(func_step_id_, other->func_step_id_);
2143 swap(is_component_function_, other->is_component_function_);
2144 swap(is_function_, other->is_function_);
2145}
2146
2147::PROTOBUF_NAMESPACE_ID::Metadata Operation::GetMetadata() const {
2148 return GetMetadataStatic();
2149}
2150
2151
2152// ===================================================================
2153
2154void QueueItem::InitAsDefaultInstance() {
2155 ::tensorflow::eager::_QueueItem_default_instance_.handle_to_decref_ = const_cast< ::tensorflow::eager::RemoteTensorHandle*>(
2156 ::tensorflow::eager::RemoteTensorHandle::internal_default_instance());
2157 ::tensorflow::eager::_QueueItem_default_instance_.operation_ = const_cast< ::tensorflow::eager::Operation*>(
2158 ::tensorflow::eager::Operation::internal_default_instance());
2159 ::tensorflow::eager::_QueueItem_default_instance_.send_tensor_ = const_cast< ::tensorflow::eager::SendTensorOp*>(
2160 ::tensorflow::eager::SendTensorOp::internal_default_instance());
2161 ::tensorflow::eager::_QueueItem_default_instance_.register_function_ = const_cast< ::tensorflow::eager::RegisterFunctionOp*>(
2162 ::tensorflow::eager::RegisterFunctionOp::internal_default_instance());
2163 ::tensorflow::eager::_QueueItem_default_instance_.cleanup_function_ = const_cast< ::tensorflow::eager::CleanupFunctionOp*>(
2164 ::tensorflow::eager::CleanupFunctionOp::internal_default_instance());
2165 ::tensorflow::eager::_QueueItem_default_instance_.sync_remote_executor_for_stream_ = const_cast< ::tensorflow::eager::SyncRemoteExecutorForStream*>(
2166 ::tensorflow::eager::SyncRemoteExecutorForStream::internal_default_instance());
2167 ::tensorflow::eager::_QueueItem_default_instance_.send_packed_handle_ = const_cast< ::tensorflow::eager::SendPackedHandleOp*>(
2168 ::tensorflow::eager::SendPackedHandleOp::internal_default_instance());
2169}
2170class QueueItem::_Internal {
2171 public:
2172 static const ::tensorflow::eager::RemoteTensorHandle& handle_to_decref(const QueueItem* msg);
2173 static const ::tensorflow::eager::Operation& operation(const QueueItem* msg);
2174 static const ::tensorflow::eager::SendTensorOp& send_tensor(const QueueItem* msg);
2175 static const ::tensorflow::eager::RegisterFunctionOp& register_function(const QueueItem* msg);
2176 static const ::tensorflow::eager::CleanupFunctionOp& cleanup_function(const QueueItem* msg);
2177 static const ::tensorflow::eager::SyncRemoteExecutorForStream& sync_remote_executor_for_stream(const QueueItem* msg);
2178 static const ::tensorflow::eager::SendPackedHandleOp& send_packed_handle(const QueueItem* msg);
2179};
2180
2181const ::tensorflow::eager::RemoteTensorHandle&
2182QueueItem::_Internal::handle_to_decref(const QueueItem* msg) {
2183 return *msg->item_.handle_to_decref_;
2184}
2185const ::tensorflow::eager::Operation&
2186QueueItem::_Internal::operation(const QueueItem* msg) {
2187 return *msg->item_.operation_;
2188}
2189const ::tensorflow::eager::SendTensorOp&
2190QueueItem::_Internal::send_tensor(const QueueItem* msg) {
2191 return *msg->item_.send_tensor_;
2192}
2193const ::tensorflow::eager::RegisterFunctionOp&
2194QueueItem::_Internal::register_function(const QueueItem* msg) {
2195 return *msg->item_.register_function_;
2196}
2197const ::tensorflow::eager::CleanupFunctionOp&
2198QueueItem::_Internal::cleanup_function(const QueueItem* msg) {
2199 return *msg->item_.cleanup_function_;
2200}
2201const ::tensorflow::eager::SyncRemoteExecutorForStream&
2202QueueItem::_Internal::sync_remote_executor_for_stream(const QueueItem* msg) {
2203 return *msg->item_.sync_remote_executor_for_stream_;
2204}
2205const ::tensorflow::eager::SendPackedHandleOp&
2206QueueItem::_Internal::send_packed_handle(const QueueItem* msg) {
2207 return *msg->item_.send_packed_handle_;
2208}
2209void QueueItem::set_allocated_handle_to_decref(::tensorflow::eager::RemoteTensorHandle* handle_to_decref) {
2210 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2211 clear_item();
2212 if (handle_to_decref) {
2213 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2214 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(handle_to_decref)->GetArena();
2215 if (message_arena != submessage_arena) {
2216 handle_to_decref = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2217 message_arena, handle_to_decref, submessage_arena);
2218 }
2219 set_has_handle_to_decref();
2220 item_.handle_to_decref_ = handle_to_decref;
2221 }
2222 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.handle_to_decref)
2223}
2224void QueueItem::clear_handle_to_decref() {
2225 if (has_handle_to_decref()) {
2226 delete item_.handle_to_decref_;
2227 clear_has_item();
2228 }
2229}
2230void QueueItem::set_allocated_operation(::tensorflow::eager::Operation* operation) {
2231 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2232 clear_item();
2233 if (operation) {
2234 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2235 if (message_arena != submessage_arena) {
2236 operation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2237 message_arena, operation, submessage_arena);
2238 }
2239 set_has_operation();
2240 item_.operation_ = operation;
2241 }
2242 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.operation)
2243}
2244void QueueItem::set_allocated_send_tensor(::tensorflow::eager::SendTensorOp* send_tensor) {
2245 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2246 clear_item();
2247 if (send_tensor) {
2248 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2249 if (message_arena != submessage_arena) {
2250 send_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2251 message_arena, send_tensor, submessage_arena);
2252 }
2253 set_has_send_tensor();
2254 item_.send_tensor_ = send_tensor;
2255 }
2256 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.send_tensor)
2257}
2258void QueueItem::set_allocated_register_function(::tensorflow::eager::RegisterFunctionOp* register_function) {
2259 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2260 clear_item();
2261 if (register_function) {
2262 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2263 if (message_arena != submessage_arena) {
2264 register_function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2265 message_arena, register_function, submessage_arena);
2266 }
2267 set_has_register_function();
2268 item_.register_function_ = register_function;
2269 }
2270 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.register_function)
2271}
2272void QueueItem::set_allocated_cleanup_function(::tensorflow::eager::CleanupFunctionOp* cleanup_function) {
2273 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2274 clear_item();
2275 if (cleanup_function) {
2276 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2277 if (message_arena != submessage_arena) {
2278 cleanup_function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2279 message_arena, cleanup_function, submessage_arena);
2280 }
2281 set_has_cleanup_function();
2282 item_.cleanup_function_ = cleanup_function;
2283 }
2284 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.cleanup_function)
2285}
2286void QueueItem::set_allocated_sync_remote_executor_for_stream(::tensorflow::eager::SyncRemoteExecutorForStream* sync_remote_executor_for_stream) {
2287 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2288 clear_item();
2289 if (sync_remote_executor_for_stream) {
2290 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2291 if (message_arena != submessage_arena) {
2292 sync_remote_executor_for_stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2293 message_arena, sync_remote_executor_for_stream, submessage_arena);
2294 }
2295 set_has_sync_remote_executor_for_stream();
2296 item_.sync_remote_executor_for_stream_ = sync_remote_executor_for_stream;
2297 }
2298 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.sync_remote_executor_for_stream)
2299}
2300void QueueItem::set_allocated_send_packed_handle(::tensorflow::eager::SendPackedHandleOp* send_packed_handle) {
2301 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2302 clear_item();
2303 if (send_packed_handle) {
2304 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2305 if (message_arena != submessage_arena) {
2306 send_packed_handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2307 message_arena, send_packed_handle, submessage_arena);
2308 }
2309 set_has_send_packed_handle();
2310 item_.send_packed_handle_ = send_packed_handle;
2311 }
2312 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.QueueItem.send_packed_handle)
2313}
2314QueueItem::QueueItem()
2315 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2316 SharedCtor();
2317 // @@protoc_insertion_point(constructor:tensorflow.eager.QueueItem)
2318}
2319QueueItem::QueueItem(const QueueItem& from)
2320 : ::PROTOBUF_NAMESPACE_ID::Message(),
2321 _internal_metadata_(nullptr) {
2322 _internal_metadata_.MergeFrom(from._internal_metadata_);
2323 clear_has_item();
2324 switch (from.item_case()) {
2325 case kHandleToDecref: {
2326 mutable_handle_to_decref()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.handle_to_decref());
2327 break;
2328 }
2329 case kOperation: {
2330 mutable_operation()->::tensorflow::eager::Operation::MergeFrom(from.operation());
2331 break;
2332 }
2333 case kSendTensor: {
2334 mutable_send_tensor()->::tensorflow::eager::SendTensorOp::MergeFrom(from.send_tensor());
2335 break;
2336 }
2337 case kRegisterFunction: {
2338 mutable_register_function()->::tensorflow::eager::RegisterFunctionOp::MergeFrom(from.register_function());
2339 break;
2340 }
2341 case kCleanupFunction: {
2342 mutable_cleanup_function()->::tensorflow::eager::CleanupFunctionOp::MergeFrom(from.cleanup_function());
2343 break;
2344 }
2345 case kSyncRemoteExecutorForStream: {
2346 mutable_sync_remote_executor_for_stream()->::tensorflow::eager::SyncRemoteExecutorForStream::MergeFrom(from.sync_remote_executor_for_stream());
2347 break;
2348 }
2349 case kSendPackedHandle: {
2350 mutable_send_packed_handle()->::tensorflow::eager::SendPackedHandleOp::MergeFrom(from.send_packed_handle());
2351 break;
2352 }
2353 case ITEM_NOT_SET: {
2354 break;
2355 }
2356 }
2357 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.QueueItem)
2358}
2359
2360void QueueItem::SharedCtor() {
2361 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
2362 clear_has_item();
2363}
2364
2365QueueItem::~QueueItem() {
2366 // @@protoc_insertion_point(destructor:tensorflow.eager.QueueItem)
2367 SharedDtor();
2368}
2369
2370void QueueItem::SharedDtor() {
2371 if (has_item()) {
2372 clear_item();
2373 }
2374}
2375
2376void QueueItem::SetCachedSize(int size) const {
2377 _cached_size_.Set(size);
2378}
2379const QueueItem& QueueItem::default_instance() {
2380 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueueItem_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
2381 return *internal_default_instance();
2382}
2383
2384
2385void QueueItem::clear_item() {
2386// @@protoc_insertion_point(one_of_clear_start:tensorflow.eager.QueueItem)
2387 switch (item_case()) {
2388 case kHandleToDecref: {
2389 delete item_.handle_to_decref_;
2390 break;
2391 }
2392 case kOperation: {
2393 delete item_.operation_;
2394 break;
2395 }
2396 case kSendTensor: {
2397 delete item_.send_tensor_;
2398 break;
2399 }
2400 case kRegisterFunction: {
2401 delete item_.register_function_;
2402 break;
2403 }
2404 case kCleanupFunction: {
2405 delete item_.cleanup_function_;
2406 break;
2407 }
2408 case kSyncRemoteExecutorForStream: {
2409 delete item_.sync_remote_executor_for_stream_;
2410 break;
2411 }
2412 case kSendPackedHandle: {
2413 delete item_.send_packed_handle_;
2414 break;
2415 }
2416 case ITEM_NOT_SET: {
2417 break;
2418 }
2419 }
2420 _oneof_case_[0] = ITEM_NOT_SET;
2421}
2422
2423
2424void QueueItem::Clear() {
2425// @@protoc_insertion_point(message_clear_start:tensorflow.eager.QueueItem)
2426 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2427 // Prevent compiler warnings about cached_has_bits being unused
2428 (void) cached_has_bits;
2429
2430 clear_item();
2431 _internal_metadata_.Clear();
2432}
2433
2434#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2435const char* QueueItem::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2436#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2437 while (!ctx->Done(&ptr)) {
2438 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2439 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2440 CHK_(ptr);
2441 switch (tag >> 3) {
2442 // .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
2443 case 1:
2444 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2445 ptr = ctx->ParseMessage(mutable_handle_to_decref(), ptr);
2446 CHK_(ptr);
2447 } else goto handle_unusual;
2448 continue;
2449 // .tensorflow.eager.Operation operation = 2;
2450 case 2:
2451 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2452 ptr = ctx->ParseMessage(mutable_operation(), ptr);
2453 CHK_(ptr);
2454 } else goto handle_unusual;
2455 continue;
2456 // .tensorflow.eager.SendTensorOp send_tensor = 3;
2457 case 3:
2458 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2459 ptr = ctx->ParseMessage(mutable_send_tensor(), ptr);
2460 CHK_(ptr);
2461 } else goto handle_unusual;
2462 continue;
2463 // .tensorflow.eager.RegisterFunctionOp register_function = 4;
2464 case 4:
2465 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
2466 ptr = ctx->ParseMessage(mutable_register_function(), ptr);
2467 CHK_(ptr);
2468 } else goto handle_unusual;
2469 continue;
2470 // .tensorflow.eager.CleanupFunctionOp cleanup_function = 5;
2471 case 5:
2472 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
2473 ptr = ctx->ParseMessage(mutable_cleanup_function(), ptr);
2474 CHK_(ptr);
2475 } else goto handle_unusual;
2476 continue;
2477 // .tensorflow.eager.SyncRemoteExecutorForStream sync_remote_executor_for_stream = 6;
2478 case 6:
2479 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
2480 ptr = ctx->ParseMessage(mutable_sync_remote_executor_for_stream(), ptr);
2481 CHK_(ptr);
2482 } else goto handle_unusual;
2483 continue;
2484 // .tensorflow.eager.SendPackedHandleOp send_packed_handle = 7;
2485 case 7:
2486 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
2487 ptr = ctx->ParseMessage(mutable_send_packed_handle(), ptr);
2488 CHK_(ptr);
2489 } else goto handle_unusual;
2490 continue;
2491 default: {
2492 handle_unusual:
2493 if ((tag & 7) == 4 || tag == 0) {
2494 ctx->SetLastTag(tag);
2495 goto success;
2496 }
2497 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2498 CHK_(ptr != nullptr);
2499 continue;
2500 }
2501 } // switch
2502 } // while
2503success:
2504 return ptr;
2505failure:
2506 ptr = nullptr;
2507 goto success;
2508#undef CHK_
2509}
2510#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2511bool QueueItem::MergePartialFromCodedStream(
2512 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2513#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2514 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2515 // @@protoc_insertion_point(parse_start:tensorflow.eager.QueueItem)
2516 for (;;) {
2517 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2518 tag = p.first;
2519 if (!p.second) goto handle_unusual;
2520 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2521 // .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
2522 case 1: {
2523 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2524 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2525 input, mutable_handle_to_decref()));
2526 } else {
2527 goto handle_unusual;
2528 }
2529 break;
2530 }
2531
2532 // .tensorflow.eager.Operation operation = 2;
2533 case 2: {
2534 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2535 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2536 input, mutable_operation()));
2537 } else {
2538 goto handle_unusual;
2539 }
2540 break;
2541 }
2542
2543 // .tensorflow.eager.SendTensorOp send_tensor = 3;
2544 case 3: {
2545 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2546 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2547 input, mutable_send_tensor()));
2548 } else {
2549 goto handle_unusual;
2550 }
2551 break;
2552 }
2553
2554 // .tensorflow.eager.RegisterFunctionOp register_function = 4;
2555 case 4: {
2556 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
2557 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2558 input, mutable_register_function()));
2559 } else {
2560 goto handle_unusual;
2561 }
2562 break;
2563 }
2564
2565 // .tensorflow.eager.CleanupFunctionOp cleanup_function = 5;
2566 case 5: {
2567 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
2568 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2569 input, mutable_cleanup_function()));
2570 } else {
2571 goto handle_unusual;
2572 }
2573 break;
2574 }
2575
2576 // .tensorflow.eager.SyncRemoteExecutorForStream sync_remote_executor_for_stream = 6;
2577 case 6: {
2578 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
2579 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2580 input, mutable_sync_remote_executor_for_stream()));
2581 } else {
2582 goto handle_unusual;
2583 }
2584 break;
2585 }
2586
2587 // .tensorflow.eager.SendPackedHandleOp send_packed_handle = 7;
2588 case 7: {
2589 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
2590 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2591 input, mutable_send_packed_handle()));
2592 } else {
2593 goto handle_unusual;
2594 }
2595 break;
2596 }
2597
2598 default: {
2599 handle_unusual:
2600 if (tag == 0) {
2601 goto success;
2602 }
2603 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2604 input, tag, _internal_metadata_.mutable_unknown_fields()));
2605 break;
2606 }
2607 }
2608 }
2609success:
2610 // @@protoc_insertion_point(parse_success:tensorflow.eager.QueueItem)
2611 return true;
2612failure:
2613 // @@protoc_insertion_point(parse_failure:tensorflow.eager.QueueItem)
2614 return false;
2615#undef DO_
2616}
2617#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2618
2619void QueueItem::SerializeWithCachedSizes(
2620 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2621 // @@protoc_insertion_point(serialize_start:tensorflow.eager.QueueItem)
2622 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2623 (void) cached_has_bits;
2624
2625 // .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
2626 if (has_handle_to_decref()) {
2627 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2628 1, _Internal::handle_to_decref(this), output);
2629 }
2630
2631 // .tensorflow.eager.Operation operation = 2;
2632 if (has_operation()) {
2633 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2634 2, _Internal::operation(this), output);
2635 }
2636
2637 // .tensorflow.eager.SendTensorOp send_tensor = 3;
2638 if (has_send_tensor()) {
2639 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2640 3, _Internal::send_tensor(this), output);
2641 }
2642
2643 // .tensorflow.eager.RegisterFunctionOp register_function = 4;
2644 if (has_register_function()) {
2645 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2646 4, _Internal::register_function(this), output);
2647 }
2648
2649 // .tensorflow.eager.CleanupFunctionOp cleanup_function = 5;
2650 if (has_cleanup_function()) {
2651 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2652 5, _Internal::cleanup_function(this), output);
2653 }
2654
2655 // .tensorflow.eager.SyncRemoteExecutorForStream sync_remote_executor_for_stream = 6;
2656 if (has_sync_remote_executor_for_stream()) {
2657 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2658 6, _Internal::sync_remote_executor_for_stream(this), output);
2659 }
2660
2661 // .tensorflow.eager.SendPackedHandleOp send_packed_handle = 7;
2662 if (has_send_packed_handle()) {
2663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2664 7, _Internal::send_packed_handle(this), output);
2665 }
2666
2667 if (_internal_metadata_.have_unknown_fields()) {
2668 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2669 _internal_metadata_.unknown_fields(), output);
2670 }
2671 // @@protoc_insertion_point(serialize_end:tensorflow.eager.QueueItem)
2672}
2673
2674::PROTOBUF_NAMESPACE_ID::uint8* QueueItem::InternalSerializeWithCachedSizesToArray(
2675 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2676 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.QueueItem)
2677 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2678 (void) cached_has_bits;
2679
2680 // .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
2681 if (has_handle_to_decref()) {
2682 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2683 InternalWriteMessageToArray(
2684 1, _Internal::handle_to_decref(this), target);
2685 }
2686
2687 // .tensorflow.eager.Operation operation = 2;
2688 if (has_operation()) {
2689 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2690 InternalWriteMessageToArray(
2691 2, _Internal::operation(this), target);
2692 }
2693
2694 // .tensorflow.eager.SendTensorOp send_tensor = 3;
2695 if (has_send_tensor()) {
2696 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2697 InternalWriteMessageToArray(
2698 3, _Internal::send_tensor(this), target);
2699 }
2700
2701 // .tensorflow.eager.RegisterFunctionOp register_function = 4;
2702 if (has_register_function()) {
2703 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2704 InternalWriteMessageToArray(
2705 4, _Internal::register_function(this), target);
2706 }
2707
2708 // .tensorflow.eager.CleanupFunctionOp cleanup_function = 5;
2709 if (has_cleanup_function()) {
2710 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2711 InternalWriteMessageToArray(
2712 5, _Internal::cleanup_function(this), target);
2713 }
2714
2715 // .tensorflow.eager.SyncRemoteExecutorForStream sync_remote_executor_for_stream = 6;
2716 if (has_sync_remote_executor_for_stream()) {
2717 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2718 InternalWriteMessageToArray(
2719 6, _Internal::sync_remote_executor_for_stream(this), target);
2720 }
2721
2722 // .tensorflow.eager.SendPackedHandleOp send_packed_handle = 7;
2723 if (has_send_packed_handle()) {
2724 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2725 InternalWriteMessageToArray(
2726 7, _Internal::send_packed_handle(this), target);
2727 }
2728
2729 if (_internal_metadata_.have_unknown_fields()) {
2730 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2731 _internal_metadata_.unknown_fields(), target);
2732 }
2733 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.QueueItem)
2734 return target;
2735}
2736
2737size_t QueueItem::ByteSizeLong() const {
2738// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.QueueItem)
2739 size_t total_size = 0;
2740
2741 if (_internal_metadata_.have_unknown_fields()) {
2742 total_size +=
2743 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2744 _internal_metadata_.unknown_fields());
2745 }
2746 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2747 // Prevent compiler warnings about cached_has_bits being unused
2748 (void) cached_has_bits;
2749
2750 switch (item_case()) {
2751 // .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
2752 case kHandleToDecref: {
2753 total_size += 1 +
2754 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2755 *item_.handle_to_decref_);
2756 break;
2757 }
2758 // .tensorflow.eager.Operation operation = 2;
2759 case kOperation: {
2760 total_size += 1 +
2761 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2762 *item_.operation_);
2763 break;
2764 }
2765 // .tensorflow.eager.SendTensorOp send_tensor = 3;
2766 case kSendTensor: {
2767 total_size += 1 +
2768 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2769 *item_.send_tensor_);
2770 break;
2771 }
2772 // .tensorflow.eager.RegisterFunctionOp register_function = 4;
2773 case kRegisterFunction: {
2774 total_size += 1 +
2775 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2776 *item_.register_function_);
2777 break;
2778 }
2779 // .tensorflow.eager.CleanupFunctionOp cleanup_function = 5;
2780 case kCleanupFunction: {
2781 total_size += 1 +
2782 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2783 *item_.cleanup_function_);
2784 break;
2785 }
2786 // .tensorflow.eager.SyncRemoteExecutorForStream sync_remote_executor_for_stream = 6;
2787 case kSyncRemoteExecutorForStream: {
2788 total_size += 1 +
2789 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2790 *item_.sync_remote_executor_for_stream_);
2791 break;
2792 }
2793 // .tensorflow.eager.SendPackedHandleOp send_packed_handle = 7;
2794 case kSendPackedHandle: {
2795 total_size += 1 +
2796 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2797 *item_.send_packed_handle_);
2798 break;
2799 }
2800 case ITEM_NOT_SET: {
2801 break;
2802 }
2803 }
2804 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2805 SetCachedSize(cached_size);
2806 return total_size;
2807}
2808
2809void QueueItem::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2810// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.QueueItem)
2811 GOOGLE_DCHECK_NE(&from, this);
2812 const QueueItem* source =
2813 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueueItem>(
2814 &from);
2815 if (source == nullptr) {
2816 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.QueueItem)
2817 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2818 } else {
2819 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.QueueItem)
2820 MergeFrom(*source);
2821 }
2822}
2823
2824void QueueItem::MergeFrom(const QueueItem& from) {
2825// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.QueueItem)
2826 GOOGLE_DCHECK_NE(&from, this);
2827 _internal_metadata_.MergeFrom(from._internal_metadata_);
2828 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2829 (void) cached_has_bits;
2830
2831 switch (from.item_case()) {
2832 case kHandleToDecref: {
2833 mutable_handle_to_decref()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.handle_to_decref());
2834 break;
2835 }
2836 case kOperation: {
2837 mutable_operation()->::tensorflow::eager::Operation::MergeFrom(from.operation());
2838 break;
2839 }
2840 case kSendTensor: {
2841 mutable_send_tensor()->::tensorflow::eager::SendTensorOp::MergeFrom(from.send_tensor());
2842 break;
2843 }
2844 case kRegisterFunction: {
2845 mutable_register_function()->::tensorflow::eager::RegisterFunctionOp::MergeFrom(from.register_function());
2846 break;
2847 }
2848 case kCleanupFunction: {
2849 mutable_cleanup_function()->::tensorflow::eager::CleanupFunctionOp::MergeFrom(from.cleanup_function());
2850 break;
2851 }
2852 case kSyncRemoteExecutorForStream: {
2853 mutable_sync_remote_executor_for_stream()->::tensorflow::eager::SyncRemoteExecutorForStream::MergeFrom(from.sync_remote_executor_for_stream());
2854 break;
2855 }
2856 case kSendPackedHandle: {
2857 mutable_send_packed_handle()->::tensorflow::eager::SendPackedHandleOp::MergeFrom(from.send_packed_handle());
2858 break;
2859 }
2860 case ITEM_NOT_SET: {
2861 break;
2862 }
2863 }
2864}
2865
2866void QueueItem::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2867// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.QueueItem)
2868 if (&from == this) return;
2869 Clear();
2870 MergeFrom(from);
2871}
2872
2873void QueueItem::CopyFrom(const QueueItem& from) {
2874// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.QueueItem)
2875 if (&from == this) return;
2876 Clear();
2877 MergeFrom(from);
2878}
2879
2880bool QueueItem::IsInitialized() const {
2881 return true;
2882}
2883
2884void QueueItem::InternalSwap(QueueItem* other) {
2885 using std::swap;
2886 _internal_metadata_.Swap(&other->_internal_metadata_);
2887 swap(item_, other->item_);
2888 swap(_oneof_case_[0], other->_oneof_case_[0]);
2889}
2890
2891::PROTOBUF_NAMESPACE_ID::Metadata QueueItem::GetMetadata() const {
2892 return GetMetadataStatic();
2893}
2894
2895
2896// ===================================================================
2897
2898void QueueResponse::InitAsDefaultInstance() {
2899}
2900class QueueResponse::_Internal {
2901 public:
2902};
2903
2904void QueueResponse::clear_shape() {
2905 shape_.Clear();
2906}
2907void QueueResponse::clear_tensor() {
2908 tensor_.Clear();
2909}
2910QueueResponse::QueueResponse()
2911 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2912 SharedCtor();
2913 // @@protoc_insertion_point(constructor:tensorflow.eager.QueueResponse)
2914}
2915QueueResponse::QueueResponse(const QueueResponse& from)
2916 : ::PROTOBUF_NAMESPACE_ID::Message(),
2917 _internal_metadata_(nullptr),
2918 shape_(from.shape_),
2919 tensor_(from.tensor_),
2920 device_(from.device_) {
2921 _internal_metadata_.MergeFrom(from._internal_metadata_);
2922 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.QueueResponse)
2923}
2924
2925void QueueResponse::SharedCtor() {
2926 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
2927}
2928
2929QueueResponse::~QueueResponse() {
2930 // @@protoc_insertion_point(destructor:tensorflow.eager.QueueResponse)
2931 SharedDtor();
2932}
2933
2934void QueueResponse::SharedDtor() {
2935}
2936
2937void QueueResponse::SetCachedSize(int size) const {
2938 _cached_size_.Set(size);
2939}
2940const QueueResponse& QueueResponse::default_instance() {
2941 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
2942 return *internal_default_instance();
2943}
2944
2945
2946void QueueResponse::Clear() {
2947// @@protoc_insertion_point(message_clear_start:tensorflow.eager.QueueResponse)
2948 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2949 // Prevent compiler warnings about cached_has_bits being unused
2950 (void) cached_has_bits;
2951
2952 shape_.Clear();
2953 tensor_.Clear();
2954 device_.Clear();
2955 _internal_metadata_.Clear();
2956}
2957
2958#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2959const char* QueueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2960#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2961 while (!ctx->Done(&ptr)) {
2962 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2963 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2964 CHK_(ptr);
2965 switch (tag >> 3) {
2966 // repeated .tensorflow.TensorShapeProto shape = 1;
2967 case 1:
2968 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2969 ptr -= 1;
2970 do {
2971 ptr += 1;
2972 ptr = ctx->ParseMessage(add_shape(), ptr);
2973 CHK_(ptr);
2974 if (!ctx->DataAvailable(ptr)) break;
2975 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
2976 } else goto handle_unusual;
2977 continue;
2978 // repeated .tensorflow.TensorProto tensor = 2;
2979 case 2:
2980 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2981 ptr -= 1;
2982 do {
2983 ptr += 1;
2984 ptr = ctx->ParseMessage(add_tensor(), ptr);
2985 CHK_(ptr);
2986 if (!ctx->DataAvailable(ptr)) break;
2987 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
2988 } else goto handle_unusual;
2989 continue;
2990 // repeated string device = 3;
2991 case 3:
2992 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2993 ptr -= 1;
2994 do {
2995 ptr += 1;
2996 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_device(), ptr, ctx, "tensorflow.eager.QueueResponse.device");
2997 CHK_(ptr);
2998 if (!ctx->DataAvailable(ptr)) break;
2999 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
3000 } else goto handle_unusual;
3001 continue;
3002 default: {
3003 handle_unusual:
3004 if ((tag & 7) == 4 || tag == 0) {
3005 ctx->SetLastTag(tag);
3006 goto success;
3007 }
3008 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3009 CHK_(ptr != nullptr);
3010 continue;
3011 }
3012 } // switch
3013 } // while
3014success:
3015 return ptr;
3016failure:
3017 ptr = nullptr;
3018 goto success;
3019#undef CHK_
3020}
3021#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3022bool QueueResponse::MergePartialFromCodedStream(
3023 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3024#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3025 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3026 // @@protoc_insertion_point(parse_start:tensorflow.eager.QueueResponse)
3027 for (;;) {
3028 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3029 tag = p.first;
3030 if (!p.second) goto handle_unusual;
3031 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3032 // repeated .tensorflow.TensorShapeProto shape = 1;
3033 case 1: {
3034 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3035 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3036 input, add_shape()));
3037 } else {
3038 goto handle_unusual;
3039 }
3040 break;
3041 }
3042
3043 // repeated .tensorflow.TensorProto tensor = 2;
3044 case 2: {
3045 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3046 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3047 input, add_tensor()));
3048 } else {
3049 goto handle_unusual;
3050 }
3051 break;
3052 }
3053
3054 // repeated string device = 3;
3055 case 3: {
3056 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
3057 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3058 input, this->add_device()));
3059 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3060 this->device(this->device_size() - 1).data(),
3061 static_cast<int>(this->device(this->device_size() - 1).length()),
3062 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3063 "tensorflow.eager.QueueResponse.device"));
3064 } else {
3065 goto handle_unusual;
3066 }
3067 break;
3068 }
3069
3070 default: {
3071 handle_unusual:
3072 if (tag == 0) {
3073 goto success;
3074 }
3075 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3076 input, tag, _internal_metadata_.mutable_unknown_fields()));
3077 break;
3078 }
3079 }
3080 }
3081success:
3082 // @@protoc_insertion_point(parse_success:tensorflow.eager.QueueResponse)
3083 return true;
3084failure:
3085 // @@protoc_insertion_point(parse_failure:tensorflow.eager.QueueResponse)
3086 return false;
3087#undef DO_
3088}
3089#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3090
3091void QueueResponse::SerializeWithCachedSizes(
3092 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3093 // @@protoc_insertion_point(serialize_start:tensorflow.eager.QueueResponse)
3094 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3095 (void) cached_has_bits;
3096
3097 // repeated .tensorflow.TensorShapeProto shape = 1;
3098 for (unsigned int i = 0,
3099 n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
3100 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3101 1,
3102 this->shape(static_cast<int>(i)),
3103 output);
3104 }
3105
3106 // repeated .tensorflow.TensorProto tensor = 2;
3107 for (unsigned int i = 0,
3108 n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {
3109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3110 2,
3111 this->tensor(static_cast<int>(i)),
3112 output);
3113 }
3114
3115 // repeated string device = 3;
3116 for (int i = 0, n = this->device_size(); i < n; i++) {
3117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3118 this->device(i).data(), static_cast<int>(this->device(i).length()),
3119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3120 "tensorflow.eager.QueueResponse.device");
3121 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3122 3, this->device(i), output);
3123 }
3124
3125 if (_internal_metadata_.have_unknown_fields()) {
3126 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3127 _internal_metadata_.unknown_fields(), output);
3128 }
3129 // @@protoc_insertion_point(serialize_end:tensorflow.eager.QueueResponse)
3130}
3131
3132::PROTOBUF_NAMESPACE_ID::uint8* QueueResponse::InternalSerializeWithCachedSizesToArray(
3133 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3134 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.QueueResponse)
3135 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3136 (void) cached_has_bits;
3137
3138 // repeated .tensorflow.TensorShapeProto shape = 1;
3139 for (unsigned int i = 0,
3140 n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
3141 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3142 InternalWriteMessageToArray(
3143 1, this->shape(static_cast<int>(i)), target);
3144 }
3145
3146 // repeated .tensorflow.TensorProto tensor = 2;
3147 for (unsigned int i = 0,
3148 n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {
3149 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3150 InternalWriteMessageToArray(
3151 2, this->tensor(static_cast<int>(i)), target);
3152 }
3153
3154 // repeated string device = 3;
3155 for (int i = 0, n = this->device_size(); i < n; i++) {
3156 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3157 this->device(i).data(), static_cast<int>(this->device(i).length()),
3158 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3159 "tensorflow.eager.QueueResponse.device");
3160 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3161 WriteStringToArray(3, this->device(i), target);
3162 }
3163
3164 if (_internal_metadata_.have_unknown_fields()) {
3165 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3166 _internal_metadata_.unknown_fields(), target);
3167 }
3168 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.QueueResponse)
3169 return target;
3170}
3171
3172size_t QueueResponse::ByteSizeLong() const {
3173// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.QueueResponse)
3174 size_t total_size = 0;
3175
3176 if (_internal_metadata_.have_unknown_fields()) {
3177 total_size +=
3178 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3179 _internal_metadata_.unknown_fields());
3180 }
3181 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3182 // Prevent compiler warnings about cached_has_bits being unused
3183 (void) cached_has_bits;
3184
3185 // repeated .tensorflow.TensorShapeProto shape = 1;
3186 {
3187 unsigned int count = static_cast<unsigned int>(this->shape_size());
3188 total_size += 1UL * count;
3189 for (unsigned int i = 0; i < count; i++) {
3190 total_size +=
3191 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3192 this->shape(static_cast<int>(i)));
3193 }
3194 }
3195
3196 // repeated .tensorflow.TensorProto tensor = 2;
3197 {
3198 unsigned int count = static_cast<unsigned int>(this->tensor_size());
3199 total_size += 1UL * count;
3200 for (unsigned int i = 0; i < count; i++) {
3201 total_size +=
3202 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3203 this->tensor(static_cast<int>(i)));
3204 }
3205 }
3206
3207 // repeated string device = 3;
3208 total_size += 1 *
3209 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->device_size());
3210 for (int i = 0, n = this->device_size(); i < n; i++) {
3211 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3212 this->device(i));
3213 }
3214
3215 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3216 SetCachedSize(cached_size);
3217 return total_size;
3218}
3219
3220void QueueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3221// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.QueueResponse)
3222 GOOGLE_DCHECK_NE(&from, this);
3223 const QueueResponse* source =
3224 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueueResponse>(
3225 &from);
3226 if (source == nullptr) {
3227 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.QueueResponse)
3228 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3229 } else {
3230 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.QueueResponse)
3231 MergeFrom(*source);
3232 }
3233}
3234
3235void QueueResponse::MergeFrom(const QueueResponse& from) {
3236// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.QueueResponse)
3237 GOOGLE_DCHECK_NE(&from, this);
3238 _internal_metadata_.MergeFrom(from._internal_metadata_);
3239 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3240 (void) cached_has_bits;
3241
3242 shape_.MergeFrom(from.shape_);
3243 tensor_.MergeFrom(from.tensor_);
3244 device_.MergeFrom(from.device_);
3245}
3246
3247void QueueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3248// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.QueueResponse)
3249 if (&from == this) return;
3250 Clear();
3251 MergeFrom(from);
3252}
3253
3254void QueueResponse::CopyFrom(const QueueResponse& from) {
3255// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.QueueResponse)
3256 if (&from == this) return;
3257 Clear();
3258 MergeFrom(from);
3259}
3260
3261bool QueueResponse::IsInitialized() const {
3262 return true;
3263}
3264
3265void QueueResponse::InternalSwap(QueueResponse* other) {
3266 using std::swap;
3267 _internal_metadata_.Swap(&other->_internal_metadata_);
3268 CastToBase(&shape_)->InternalSwap(CastToBase(&other->shape_));
3269 CastToBase(&tensor_)->InternalSwap(CastToBase(&other->tensor_));
3270 device_.InternalSwap(CastToBase(&other->device_));
3271}
3272
3273::PROTOBUF_NAMESPACE_ID::Metadata QueueResponse::GetMetadata() const {
3274 return GetMetadataStatic();
3275}
3276
3277
3278// ===================================================================
3279
3280void CreateContextRequest::InitAsDefaultInstance() {
3281 ::tensorflow::eager::_CreateContextRequest_default_instance_._instance.get_mutable()->server_def_ = const_cast< ::tensorflow::ServerDef*>(
3282 ::tensorflow::ServerDef::internal_default_instance());
3283 ::tensorflow::eager::_CreateContextRequest_default_instance_._instance.get_mutable()->version_def_ = const_cast< ::tensorflow::VersionDef*>(
3284 ::tensorflow::VersionDef::internal_default_instance());
3285}
3286class CreateContextRequest::_Internal {
3287 public:
3288 static const ::tensorflow::ServerDef& server_def(const CreateContextRequest* msg);
3289 static const ::tensorflow::VersionDef& version_def(const CreateContextRequest* msg);
3290};
3291
3292const ::tensorflow::ServerDef&
3293CreateContextRequest::_Internal::server_def(const CreateContextRequest* msg) {
3294 return *msg->server_def_;
3295}
3296const ::tensorflow::VersionDef&
3297CreateContextRequest::_Internal::version_def(const CreateContextRequest* msg) {
3298 return *msg->version_def_;
3299}
3300void CreateContextRequest::clear_server_def() {
3301 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
3302 delete server_def_;
3303 }
3304 server_def_ = nullptr;
3305}
3306void CreateContextRequest::clear_version_def() {
3307 if (GetArenaNoVirtual() == nullptr && version_def_ != nullptr) {
3308 delete version_def_;
3309 }
3310 version_def_ = nullptr;
3311}
3312void CreateContextRequest::clear_cluster_device_attributes() {
3313 cluster_device_attributes_.Clear();
3314}
3315CreateContextRequest::CreateContextRequest()
3316 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3317 SharedCtor();
3318 // @@protoc_insertion_point(constructor:tensorflow.eager.CreateContextRequest)
3319}
3320CreateContextRequest::CreateContextRequest(const CreateContextRequest& from)
3321 : ::PROTOBUF_NAMESPACE_ID::Message(),
3322 _internal_metadata_(nullptr),
3323 cluster_device_attributes_(from.cluster_device_attributes_) {
3324 _internal_metadata_.MergeFrom(from._internal_metadata_);
3325 if (from.has_server_def()) {
3326 server_def_ = new ::tensorflow::ServerDef(*from.server_def_);
3327 } else {
3328 server_def_ = nullptr;
3329 }
3330 if (from.has_version_def()) {
3331 version_def_ = new ::tensorflow::VersionDef(*from.version_def_);
3332 } else {
3333 version_def_ = nullptr;
3334 }
3335 ::memcpy(&keep_alive_secs_, &from.keep_alive_secs_,
3336 static_cast<size_t>(reinterpret_cast<char*>(&lazy_copy_remote_function_inputs_) -
3337 reinterpret_cast<char*>(&keep_alive_secs_)) + sizeof(lazy_copy_remote_function_inputs_));
3338 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.CreateContextRequest)
3339}
3340
3341void CreateContextRequest::SharedCtor() {
3342 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
3343 ::memset(&server_def_, 0, static_cast<size_t>(
3344 reinterpret_cast<char*>(&lazy_copy_remote_function_inputs_) -
3345 reinterpret_cast<char*>(&server_def_)) + sizeof(lazy_copy_remote_function_inputs_));
3346}
3347
3348CreateContextRequest::~CreateContextRequest() {
3349 // @@protoc_insertion_point(destructor:tensorflow.eager.CreateContextRequest)
3350 SharedDtor();
3351}
3352
3353void CreateContextRequest::SharedDtor() {
3354 if (this != internal_default_instance()) delete server_def_;
3355 if (this != internal_default_instance()) delete version_def_;
3356}
3357
3358void CreateContextRequest::SetCachedSize(int size) const {
3359 _cached_size_.Set(size);
3360}
3361const CreateContextRequest& CreateContextRequest::default_instance() {
3362 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
3363 return *internal_default_instance();
3364}
3365
3366
3367void CreateContextRequest::Clear() {
3368// @@protoc_insertion_point(message_clear_start:tensorflow.eager.CreateContextRequest)
3369 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3370 // Prevent compiler warnings about cached_has_bits being unused
3371 (void) cached_has_bits;
3372
3373 cluster_device_attributes_.Clear();
3374 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
3375 delete server_def_;
3376 }
3377 server_def_ = nullptr;
3378 if (GetArenaNoVirtual() == nullptr && version_def_ != nullptr) {
3379 delete version_def_;
3380 }
3381 version_def_ = nullptr;
3382 ::memset(&keep_alive_secs_, 0, static_cast<size_t>(
3383 reinterpret_cast<char*>(&lazy_copy_remote_function_inputs_) -
3384 reinterpret_cast<char*>(&keep_alive_secs_)) + sizeof(lazy_copy_remote_function_inputs_));
3385 _internal_metadata_.Clear();
3386}
3387
3388#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3389const char* CreateContextRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3390#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3391 while (!ctx->Done(&ptr)) {
3392 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3393 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3394 CHK_(ptr);
3395 switch (tag >> 3) {
3396 // .tensorflow.ServerDef server_def = 1;
3397 case 1:
3398 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3399 ptr = ctx->ParseMessage(mutable_server_def(), ptr);
3400 CHK_(ptr);
3401 } else goto handle_unusual;
3402 continue;
3403 // bool async = 2;
3404 case 2:
3405 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
3406 async_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3407 CHK_(ptr);
3408 } else goto handle_unusual;
3409 continue;
3410 // int64 keep_alive_secs = 3;
3411 case 3:
3412 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
3413 keep_alive_secs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3414 CHK_(ptr);
3415 } else goto handle_unusual;
3416 continue;
3417 // .tensorflow.VersionDef version_def = 4;
3418 case 4:
3419 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3420 ptr = ctx->ParseMessage(mutable_version_def(), ptr);
3421 CHK_(ptr);
3422 } else goto handle_unusual;
3423 continue;
3424 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
3425 case 6:
3426 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
3427 ptr -= 1;
3428 do {
3429 ptr += 1;
3430 ptr = ctx->ParseMessage(add_cluster_device_attributes(), ptr);
3431 CHK_(ptr);
3432 if (!ctx->DataAvailable(ptr)) break;
3433 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
3434 } else goto handle_unusual;
3435 continue;
3436 // fixed64 context_id = 7;
3437 case 7:
3438 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) {
3439 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
3440 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
3441 } else goto handle_unusual;
3442 continue;
3443 // fixed64 context_view_id = 8;
3444 case 8:
3445 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) {
3446 context_view_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
3447 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
3448 } else goto handle_unusual;
3449 continue;
3450 // bool lazy_copy_remote_function_inputs = 9;
3451 case 9:
3452 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
3453 lazy_copy_remote_function_inputs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3454 CHK_(ptr);
3455 } else goto handle_unusual;
3456 continue;
3457 default: {
3458 handle_unusual:
3459 if ((tag & 7) == 4 || tag == 0) {
3460 ctx->SetLastTag(tag);
3461 goto success;
3462 }
3463 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3464 CHK_(ptr != nullptr);
3465 continue;
3466 }
3467 } // switch
3468 } // while
3469success:
3470 return ptr;
3471failure:
3472 ptr = nullptr;
3473 goto success;
3474#undef CHK_
3475}
3476#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3477bool CreateContextRequest::MergePartialFromCodedStream(
3478 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3479#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3480 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3481 // @@protoc_insertion_point(parse_start:tensorflow.eager.CreateContextRequest)
3482 for (;;) {
3483 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3484 tag = p.first;
3485 if (!p.second) goto handle_unusual;
3486 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3487 // .tensorflow.ServerDef server_def = 1;
3488 case 1: {
3489 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3490 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3491 input, mutable_server_def()));
3492 } else {
3493 goto handle_unusual;
3494 }
3495 break;
3496 }
3497
3498 // bool async = 2;
3499 case 2: {
3500 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
3501
3502 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3503 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
3504 input, &async_)));
3505 } else {
3506 goto handle_unusual;
3507 }
3508 break;
3509 }
3510
3511 // int64 keep_alive_secs = 3;
3512 case 3: {
3513 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
3514
3515 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3516 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
3517 input, &keep_alive_secs_)));
3518 } else {
3519 goto handle_unusual;
3520 }
3521 break;
3522 }
3523
3524 // .tensorflow.VersionDef version_def = 4;
3525 case 4: {
3526 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3527 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3528 input, mutable_version_def()));
3529 } else {
3530 goto handle_unusual;
3531 }
3532 break;
3533 }
3534
3535 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
3536 case 6: {
3537 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
3538 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3539 input, add_cluster_device_attributes()));
3540 } else {
3541 goto handle_unusual;
3542 }
3543 break;
3544 }
3545
3546 // fixed64 context_id = 7;
3547 case 7: {
3548 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (57 & 0xFF)) {
3549
3550 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3551 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
3552 input, &context_id_)));
3553 } else {
3554 goto handle_unusual;
3555 }
3556 break;
3557 }
3558
3559 // fixed64 context_view_id = 8;
3560 case 8: {
3561 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (65 & 0xFF)) {
3562
3563 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3564 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
3565 input, &context_view_id_)));
3566 } else {
3567 goto handle_unusual;
3568 }
3569 break;
3570 }
3571
3572 // bool lazy_copy_remote_function_inputs = 9;
3573 case 9: {
3574 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
3575
3576 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3577 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
3578 input, &lazy_copy_remote_function_inputs_)));
3579 } else {
3580 goto handle_unusual;
3581 }
3582 break;
3583 }
3584
3585 default: {
3586 handle_unusual:
3587 if (tag == 0) {
3588 goto success;
3589 }
3590 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3591 input, tag, _internal_metadata_.mutable_unknown_fields()));
3592 break;
3593 }
3594 }
3595 }
3596success:
3597 // @@protoc_insertion_point(parse_success:tensorflow.eager.CreateContextRequest)
3598 return true;
3599failure:
3600 // @@protoc_insertion_point(parse_failure:tensorflow.eager.CreateContextRequest)
3601 return false;
3602#undef DO_
3603}
3604#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3605
3606void CreateContextRequest::SerializeWithCachedSizes(
3607 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3608 // @@protoc_insertion_point(serialize_start:tensorflow.eager.CreateContextRequest)
3609 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3610 (void) cached_has_bits;
3611
3612 // .tensorflow.ServerDef server_def = 1;
3613 if (this->has_server_def()) {
3614 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3615 1, _Internal::server_def(this), output);
3616 }
3617
3618 // bool async = 2;
3619 if (this->async() != 0) {
3620 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->async(), output);
3621 }
3622
3623 // int64 keep_alive_secs = 3;
3624 if (this->keep_alive_secs() != 0) {
3625 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->keep_alive_secs(), output);
3626 }
3627
3628 // .tensorflow.VersionDef version_def = 4;
3629 if (this->has_version_def()) {
3630 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3631 4, _Internal::version_def(this), output);
3632 }
3633
3634 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
3635 for (unsigned int i = 0,
3636 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
3637 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3638 6,
3639 this->cluster_device_attributes(static_cast<int>(i)),
3640 output);
3641 }
3642
3643 // fixed64 context_id = 7;
3644 if (this->context_id() != 0) {
3645 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(7, this->context_id(), output);
3646 }
3647
3648 // fixed64 context_view_id = 8;
3649 if (this->context_view_id() != 0) {
3650 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(8, this->context_view_id(), output);
3651 }
3652
3653 // bool lazy_copy_remote_function_inputs = 9;
3654 if (this->lazy_copy_remote_function_inputs() != 0) {
3655 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(9, this->lazy_copy_remote_function_inputs(), output);
3656 }
3657
3658 if (_internal_metadata_.have_unknown_fields()) {
3659 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3660 _internal_metadata_.unknown_fields(), output);
3661 }
3662 // @@protoc_insertion_point(serialize_end:tensorflow.eager.CreateContextRequest)
3663}
3664
3665::PROTOBUF_NAMESPACE_ID::uint8* CreateContextRequest::InternalSerializeWithCachedSizesToArray(
3666 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3667 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.CreateContextRequest)
3668 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3669 (void) cached_has_bits;
3670
3671 // .tensorflow.ServerDef server_def = 1;
3672 if (this->has_server_def()) {
3673 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3674 InternalWriteMessageToArray(
3675 1, _Internal::server_def(this), target);
3676 }
3677
3678 // bool async = 2;
3679 if (this->async() != 0) {
3680 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->async(), target);
3681 }
3682
3683 // int64 keep_alive_secs = 3;
3684 if (this->keep_alive_secs() != 0) {
3685 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->keep_alive_secs(), target);
3686 }
3687
3688 // .tensorflow.VersionDef version_def = 4;
3689 if (this->has_version_def()) {
3690 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3691 InternalWriteMessageToArray(
3692 4, _Internal::version_def(this), target);
3693 }
3694
3695 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
3696 for (unsigned int i = 0,
3697 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
3698 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3699 InternalWriteMessageToArray(
3700 6, this->cluster_device_attributes(static_cast<int>(i)), target);
3701 }
3702
3703 // fixed64 context_id = 7;
3704 if (this->context_id() != 0) {
3705 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(7, this->context_id(), target);
3706 }
3707
3708 // fixed64 context_view_id = 8;
3709 if (this->context_view_id() != 0) {
3710 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(8, this->context_view_id(), target);
3711 }
3712
3713 // bool lazy_copy_remote_function_inputs = 9;
3714 if (this->lazy_copy_remote_function_inputs() != 0) {
3715 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->lazy_copy_remote_function_inputs(), target);
3716 }
3717
3718 if (_internal_metadata_.have_unknown_fields()) {
3719 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3720 _internal_metadata_.unknown_fields(), target);
3721 }
3722 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.CreateContextRequest)
3723 return target;
3724}
3725
3726size_t CreateContextRequest::ByteSizeLong() const {
3727// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.CreateContextRequest)
3728 size_t total_size = 0;
3729
3730 if (_internal_metadata_.have_unknown_fields()) {
3731 total_size +=
3732 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3733 _internal_metadata_.unknown_fields());
3734 }
3735 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3736 // Prevent compiler warnings about cached_has_bits being unused
3737 (void) cached_has_bits;
3738
3739 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
3740 {
3741 unsigned int count = static_cast<unsigned int>(this->cluster_device_attributes_size());
3742 total_size += 1UL * count;
3743 for (unsigned int i = 0; i < count; i++) {
3744 total_size +=
3745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3746 this->cluster_device_attributes(static_cast<int>(i)));
3747 }
3748 }
3749
3750 // .tensorflow.ServerDef server_def = 1;
3751 if (this->has_server_def()) {
3752 total_size += 1 +
3753 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3754 *server_def_);
3755 }
3756
3757 // .tensorflow.VersionDef version_def = 4;
3758 if (this->has_version_def()) {
3759 total_size += 1 +
3760 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3761 *version_def_);
3762 }
3763
3764 // int64 keep_alive_secs = 3;
3765 if (this->keep_alive_secs() != 0) {
3766 total_size += 1 +
3767 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
3768 this->keep_alive_secs());
3769 }
3770
3771 // fixed64 context_id = 7;
3772 if (this->context_id() != 0) {
3773 total_size += 1 + 8;
3774 }
3775
3776 // fixed64 context_view_id = 8;
3777 if (this->context_view_id() != 0) {
3778 total_size += 1 + 8;
3779 }
3780
3781 // bool async = 2;
3782 if (this->async() != 0) {
3783 total_size += 1 + 1;
3784 }
3785
3786 // bool lazy_copy_remote_function_inputs = 9;
3787 if (this->lazy_copy_remote_function_inputs() != 0) {
3788 total_size += 1 + 1;
3789 }
3790
3791 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3792 SetCachedSize(cached_size);
3793 return total_size;
3794}
3795
3796void CreateContextRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3797// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.CreateContextRequest)
3798 GOOGLE_DCHECK_NE(&from, this);
3799 const CreateContextRequest* source =
3800 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateContextRequest>(
3801 &from);
3802 if (source == nullptr) {
3803 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.CreateContextRequest)
3804 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3805 } else {
3806 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.CreateContextRequest)
3807 MergeFrom(*source);
3808 }
3809}
3810
3811void CreateContextRequest::MergeFrom(const CreateContextRequest& from) {
3812// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.CreateContextRequest)
3813 GOOGLE_DCHECK_NE(&from, this);
3814 _internal_metadata_.MergeFrom(from._internal_metadata_);
3815 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3816 (void) cached_has_bits;
3817
3818 cluster_device_attributes_.MergeFrom(from.cluster_device_attributes_);
3819 if (from.has_server_def()) {
3820 mutable_server_def()->::tensorflow::ServerDef::MergeFrom(from.server_def());
3821 }
3822 if (from.has_version_def()) {
3823 mutable_version_def()->::tensorflow::VersionDef::MergeFrom(from.version_def());
3824 }
3825 if (from.keep_alive_secs() != 0) {
3826 set_keep_alive_secs(from.keep_alive_secs());
3827 }
3828 if (from.context_id() != 0) {
3829 set_context_id(from.context_id());
3830 }
3831 if (from.context_view_id() != 0) {
3832 set_context_view_id(from.context_view_id());
3833 }
3834 if (from.async() != 0) {
3835 set_async(from.async());
3836 }
3837 if (from.lazy_copy_remote_function_inputs() != 0) {
3838 set_lazy_copy_remote_function_inputs(from.lazy_copy_remote_function_inputs());
3839 }
3840}
3841
3842void CreateContextRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3843// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.CreateContextRequest)
3844 if (&from == this) return;
3845 Clear();
3846 MergeFrom(from);
3847}
3848
3849void CreateContextRequest::CopyFrom(const CreateContextRequest& from) {
3850// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.CreateContextRequest)
3851 if (&from == this) return;
3852 Clear();
3853 MergeFrom(from);
3854}
3855
3856bool CreateContextRequest::IsInitialized() const {
3857 return true;
3858}
3859
3860void CreateContextRequest::InternalSwap(CreateContextRequest* other) {
3861 using std::swap;
3862 _internal_metadata_.Swap(&other->_internal_metadata_);
3863 CastToBase(&cluster_device_attributes_)->InternalSwap(CastToBase(&other->cluster_device_attributes_));
3864 swap(server_def_, other->server_def_);
3865 swap(version_def_, other->version_def_);
3866 swap(keep_alive_secs_, other->keep_alive_secs_);
3867 swap(context_id_, other->context_id_);
3868 swap(context_view_id_, other->context_view_id_);
3869 swap(async_, other->async_);
3870 swap(lazy_copy_remote_function_inputs_, other->lazy_copy_remote_function_inputs_);
3871}
3872
3873::PROTOBUF_NAMESPACE_ID::Metadata CreateContextRequest::GetMetadata() const {
3874 return GetMetadataStatic();
3875}
3876
3877
3878// ===================================================================
3879
3880void CreateContextResponse::InitAsDefaultInstance() {
3881}
3882class CreateContextResponse::_Internal {
3883 public:
3884};
3885
3886void CreateContextResponse::clear_device_attributes() {
3887 device_attributes_.Clear();
3888}
3889CreateContextResponse::CreateContextResponse()
3890 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3891 SharedCtor();
3892 // @@protoc_insertion_point(constructor:tensorflow.eager.CreateContextResponse)
3893}
3894CreateContextResponse::CreateContextResponse(const CreateContextResponse& from)
3895 : ::PROTOBUF_NAMESPACE_ID::Message(),
3896 _internal_metadata_(nullptr),
3897 device_attributes_(from.device_attributes_) {
3898 _internal_metadata_.MergeFrom(from._internal_metadata_);
3899 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.CreateContextResponse)
3900}
3901
3902void CreateContextResponse::SharedCtor() {
3903 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
3904}
3905
3906CreateContextResponse::~CreateContextResponse() {
3907 // @@protoc_insertion_point(destructor:tensorflow.eager.CreateContextResponse)
3908 SharedDtor();
3909}
3910
3911void CreateContextResponse::SharedDtor() {
3912}
3913
3914void CreateContextResponse::SetCachedSize(int size) const {
3915 _cached_size_.Set(size);
3916}
3917const CreateContextResponse& CreateContextResponse::default_instance() {
3918 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
3919 return *internal_default_instance();
3920}
3921
3922
3923void CreateContextResponse::Clear() {
3924// @@protoc_insertion_point(message_clear_start:tensorflow.eager.CreateContextResponse)
3925 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3926 // Prevent compiler warnings about cached_has_bits being unused
3927 (void) cached_has_bits;
3928
3929 device_attributes_.Clear();
3930 _internal_metadata_.Clear();
3931}
3932
3933#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3934const char* CreateContextResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3935#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3936 while (!ctx->Done(&ptr)) {
3937 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3938 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3939 CHK_(ptr);
3940 switch (tag >> 3) {
3941 // repeated .tensorflow.DeviceAttributes device_attributes = 2;
3942 case 2:
3943 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3944 ptr -= 1;
3945 do {
3946 ptr += 1;
3947 ptr = ctx->ParseMessage(add_device_attributes(), ptr);
3948 CHK_(ptr);
3949 if (!ctx->DataAvailable(ptr)) break;
3950 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
3951 } else goto handle_unusual;
3952 continue;
3953 default: {
3954 handle_unusual:
3955 if ((tag & 7) == 4 || tag == 0) {
3956 ctx->SetLastTag(tag);
3957 goto success;
3958 }
3959 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3960 CHK_(ptr != nullptr);
3961 continue;
3962 }
3963 } // switch
3964 } // while
3965success:
3966 return ptr;
3967failure:
3968 ptr = nullptr;
3969 goto success;
3970#undef CHK_
3971}
3972#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3973bool CreateContextResponse::MergePartialFromCodedStream(
3974 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3975#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3976 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3977 // @@protoc_insertion_point(parse_start:tensorflow.eager.CreateContextResponse)
3978 for (;;) {
3979 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3980 tag = p.first;
3981 if (!p.second) goto handle_unusual;
3982 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3983 // repeated .tensorflow.DeviceAttributes device_attributes = 2;
3984 case 2: {
3985 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3986 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3987 input, add_device_attributes()));
3988 } else {
3989 goto handle_unusual;
3990 }
3991 break;
3992 }
3993
3994 default: {
3995 handle_unusual:
3996 if (tag == 0) {
3997 goto success;
3998 }
3999 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4000 input, tag, _internal_metadata_.mutable_unknown_fields()));
4001 break;
4002 }
4003 }
4004 }
4005success:
4006 // @@protoc_insertion_point(parse_success:tensorflow.eager.CreateContextResponse)
4007 return true;
4008failure:
4009 // @@protoc_insertion_point(parse_failure:tensorflow.eager.CreateContextResponse)
4010 return false;
4011#undef DO_
4012}
4013#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4014
4015void CreateContextResponse::SerializeWithCachedSizes(
4016 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4017 // @@protoc_insertion_point(serialize_start:tensorflow.eager.CreateContextResponse)
4018 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4019 (void) cached_has_bits;
4020
4021 // repeated .tensorflow.DeviceAttributes device_attributes = 2;
4022 for (unsigned int i = 0,
4023 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
4024 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4025 2,
4026 this->device_attributes(static_cast<int>(i)),
4027 output);
4028 }
4029
4030 if (_internal_metadata_.have_unknown_fields()) {
4031 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4032 _internal_metadata_.unknown_fields(), output);
4033 }
4034 // @@protoc_insertion_point(serialize_end:tensorflow.eager.CreateContextResponse)
4035}
4036
4037::PROTOBUF_NAMESPACE_ID::uint8* CreateContextResponse::InternalSerializeWithCachedSizesToArray(
4038 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4039 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.CreateContextResponse)
4040 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4041 (void) cached_has_bits;
4042
4043 // repeated .tensorflow.DeviceAttributes device_attributes = 2;
4044 for (unsigned int i = 0,
4045 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
4046 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4047 InternalWriteMessageToArray(
4048 2, this->device_attributes(static_cast<int>(i)), target);
4049 }
4050
4051 if (_internal_metadata_.have_unknown_fields()) {
4052 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4053 _internal_metadata_.unknown_fields(), target);
4054 }
4055 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.CreateContextResponse)
4056 return target;
4057}
4058
4059size_t CreateContextResponse::ByteSizeLong() const {
4060// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.CreateContextResponse)
4061 size_t total_size = 0;
4062
4063 if (_internal_metadata_.have_unknown_fields()) {
4064 total_size +=
4065 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4066 _internal_metadata_.unknown_fields());
4067 }
4068 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4069 // Prevent compiler warnings about cached_has_bits being unused
4070 (void) cached_has_bits;
4071
4072 // repeated .tensorflow.DeviceAttributes device_attributes = 2;
4073 {
4074 unsigned int count = static_cast<unsigned int>(this->device_attributes_size());
4075 total_size += 1UL * count;
4076 for (unsigned int i = 0; i < count; i++) {
4077 total_size +=
4078 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4079 this->device_attributes(static_cast<int>(i)));
4080 }
4081 }
4082
4083 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4084 SetCachedSize(cached_size);
4085 return total_size;
4086}
4087
4088void CreateContextResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4089// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.CreateContextResponse)
4090 GOOGLE_DCHECK_NE(&from, this);
4091 const CreateContextResponse* source =
4092 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateContextResponse>(
4093 &from);
4094 if (source == nullptr) {
4095 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.CreateContextResponse)
4096 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4097 } else {
4098 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.CreateContextResponse)
4099 MergeFrom(*source);
4100 }
4101}
4102
4103void CreateContextResponse::MergeFrom(const CreateContextResponse& from) {
4104// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.CreateContextResponse)
4105 GOOGLE_DCHECK_NE(&from, this);
4106 _internal_metadata_.MergeFrom(from._internal_metadata_);
4107 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4108 (void) cached_has_bits;
4109
4110 device_attributes_.MergeFrom(from.device_attributes_);
4111}
4112
4113void CreateContextResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4114// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.CreateContextResponse)
4115 if (&from == this) return;
4116 Clear();
4117 MergeFrom(from);
4118}
4119
4120void CreateContextResponse::CopyFrom(const CreateContextResponse& from) {
4121// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.CreateContextResponse)
4122 if (&from == this) return;
4123 Clear();
4124 MergeFrom(from);
4125}
4126
4127bool CreateContextResponse::IsInitialized() const {
4128 return true;
4129}
4130
4131void CreateContextResponse::InternalSwap(CreateContextResponse* other) {
4132 using std::swap;
4133 _internal_metadata_.Swap(&other->_internal_metadata_);
4134 CastToBase(&device_attributes_)->InternalSwap(CastToBase(&other->device_attributes_));
4135}
4136
4137::PROTOBUF_NAMESPACE_ID::Metadata CreateContextResponse::GetMetadata() const {
4138 return GetMetadataStatic();
4139}
4140
4141
4142// ===================================================================
4143
4144void UpdateContextRequest::InitAsDefaultInstance() {
4145 ::tensorflow::eager::_UpdateContextRequest_default_instance_._instance.get_mutable()->server_def_ = const_cast< ::tensorflow::ServerDef*>(
4146 ::tensorflow::ServerDef::internal_default_instance());
4147}
4148class UpdateContextRequest::_Internal {
4149 public:
4150 static const ::tensorflow::ServerDef& server_def(const UpdateContextRequest* msg);
4151};
4152
4153const ::tensorflow::ServerDef&
4154UpdateContextRequest::_Internal::server_def(const UpdateContextRequest* msg) {
4155 return *msg->server_def_;
4156}
4157void UpdateContextRequest::clear_server_def() {
4158 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
4159 delete server_def_;
4160 }
4161 server_def_ = nullptr;
4162}
4163void UpdateContextRequest::clear_cluster_device_attributes() {
4164 cluster_device_attributes_.Clear();
4165}
4166UpdateContextRequest::UpdateContextRequest()
4167 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4168 SharedCtor();
4169 // @@protoc_insertion_point(constructor:tensorflow.eager.UpdateContextRequest)
4170}
4171UpdateContextRequest::UpdateContextRequest(const UpdateContextRequest& from)
4172 : ::PROTOBUF_NAMESPACE_ID::Message(),
4173 _internal_metadata_(nullptr),
4174 cluster_device_attributes_(from.cluster_device_attributes_) {
4175 _internal_metadata_.MergeFrom(from._internal_metadata_);
4176 if (from.has_server_def()) {
4177 server_def_ = new ::tensorflow::ServerDef(*from.server_def_);
4178 } else {
4179 server_def_ = nullptr;
4180 }
4181 ::memcpy(&context_id_, &from.context_id_,
4182 static_cast<size_t>(reinterpret_cast<char*>(&context_view_id_) -
4183 reinterpret_cast<char*>(&context_id_)) + sizeof(context_view_id_));
4184 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.UpdateContextRequest)
4185}
4186
4187void UpdateContextRequest::SharedCtor() {
4188 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4189 ::memset(&server_def_, 0, static_cast<size_t>(
4190 reinterpret_cast<char*>(&context_view_id_) -
4191 reinterpret_cast<char*>(&server_def_)) + sizeof(context_view_id_));
4192}
4193
4194UpdateContextRequest::~UpdateContextRequest() {
4195 // @@protoc_insertion_point(destructor:tensorflow.eager.UpdateContextRequest)
4196 SharedDtor();
4197}
4198
4199void UpdateContextRequest::SharedDtor() {
4200 if (this != internal_default_instance()) delete server_def_;
4201}
4202
4203void UpdateContextRequest::SetCachedSize(int size) const {
4204 _cached_size_.Set(size);
4205}
4206const UpdateContextRequest& UpdateContextRequest::default_instance() {
4207 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UpdateContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4208 return *internal_default_instance();
4209}
4210
4211
4212void UpdateContextRequest::Clear() {
4213// @@protoc_insertion_point(message_clear_start:tensorflow.eager.UpdateContextRequest)
4214 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4215 // Prevent compiler warnings about cached_has_bits being unused
4216 (void) cached_has_bits;
4217
4218 cluster_device_attributes_.Clear();
4219 if (GetArenaNoVirtual() == nullptr && server_def_ != nullptr) {
4220 delete server_def_;
4221 }
4222 server_def_ = nullptr;
4223 ::memset(&context_id_, 0, static_cast<size_t>(
4224 reinterpret_cast<char*>(&context_view_id_) -
4225 reinterpret_cast<char*>(&context_id_)) + sizeof(context_view_id_));
4226 _internal_metadata_.Clear();
4227}
4228
4229#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4230const char* UpdateContextRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4231#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4232 while (!ctx->Done(&ptr)) {
4233 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4234 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4235 CHK_(ptr);
4236 switch (tag >> 3) {
4237 // .tensorflow.ServerDef server_def = 1;
4238 case 1:
4239 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4240 ptr = ctx->ParseMessage(mutable_server_def(), ptr);
4241 CHK_(ptr);
4242 } else goto handle_unusual;
4243 continue;
4244 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 2;
4245 case 2:
4246 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4247 ptr -= 1;
4248 do {
4249 ptr += 1;
4250 ptr = ctx->ParseMessage(add_cluster_device_attributes(), ptr);
4251 CHK_(ptr);
4252 if (!ctx->DataAvailable(ptr)) break;
4253 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
4254 } else goto handle_unusual;
4255 continue;
4256 // fixed64 context_id = 3;
4257 case 3:
4258 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) {
4259 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
4260 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
4261 } else goto handle_unusual;
4262 continue;
4263 // fixed64 context_view_id = 4;
4264 case 4:
4265 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) {
4266 context_view_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
4267 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
4268 } else goto handle_unusual;
4269 continue;
4270 default: {
4271 handle_unusual:
4272 if ((tag & 7) == 4 || tag == 0) {
4273 ctx->SetLastTag(tag);
4274 goto success;
4275 }
4276 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4277 CHK_(ptr != nullptr);
4278 continue;
4279 }
4280 } // switch
4281 } // while
4282success:
4283 return ptr;
4284failure:
4285 ptr = nullptr;
4286 goto success;
4287#undef CHK_
4288}
4289#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4290bool UpdateContextRequest::MergePartialFromCodedStream(
4291 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4292#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4293 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4294 // @@protoc_insertion_point(parse_start:tensorflow.eager.UpdateContextRequest)
4295 for (;;) {
4296 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4297 tag = p.first;
4298 if (!p.second) goto handle_unusual;
4299 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4300 // .tensorflow.ServerDef server_def = 1;
4301 case 1: {
4302 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4303 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
4304 input, mutable_server_def()));
4305 } else {
4306 goto handle_unusual;
4307 }
4308 break;
4309 }
4310
4311 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 2;
4312 case 2: {
4313 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
4314 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
4315 input, add_cluster_device_attributes()));
4316 } else {
4317 goto handle_unusual;
4318 }
4319 break;
4320 }
4321
4322 // fixed64 context_id = 3;
4323 case 3: {
4324 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) {
4325
4326 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4327 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
4328 input, &context_id_)));
4329 } else {
4330 goto handle_unusual;
4331 }
4332 break;
4333 }
4334
4335 // fixed64 context_view_id = 4;
4336 case 4: {
4337 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (33 & 0xFF)) {
4338
4339 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4340 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
4341 input, &context_view_id_)));
4342 } else {
4343 goto handle_unusual;
4344 }
4345 break;
4346 }
4347
4348 default: {
4349 handle_unusual:
4350 if (tag == 0) {
4351 goto success;
4352 }
4353 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4354 input, tag, _internal_metadata_.mutable_unknown_fields()));
4355 break;
4356 }
4357 }
4358 }
4359success:
4360 // @@protoc_insertion_point(parse_success:tensorflow.eager.UpdateContextRequest)
4361 return true;
4362failure:
4363 // @@protoc_insertion_point(parse_failure:tensorflow.eager.UpdateContextRequest)
4364 return false;
4365#undef DO_
4366}
4367#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4368
4369void UpdateContextRequest::SerializeWithCachedSizes(
4370 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4371 // @@protoc_insertion_point(serialize_start:tensorflow.eager.UpdateContextRequest)
4372 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4373 (void) cached_has_bits;
4374
4375 // .tensorflow.ServerDef server_def = 1;
4376 if (this->has_server_def()) {
4377 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4378 1, _Internal::server_def(this), output);
4379 }
4380
4381 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 2;
4382 for (unsigned int i = 0,
4383 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
4384 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4385 2,
4386 this->cluster_device_attributes(static_cast<int>(i)),
4387 output);
4388 }
4389
4390 // fixed64 context_id = 3;
4391 if (this->context_id() != 0) {
4392 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(3, this->context_id(), output);
4393 }
4394
4395 // fixed64 context_view_id = 4;
4396 if (this->context_view_id() != 0) {
4397 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(4, this->context_view_id(), output);
4398 }
4399
4400 if (_internal_metadata_.have_unknown_fields()) {
4401 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4402 _internal_metadata_.unknown_fields(), output);
4403 }
4404 // @@protoc_insertion_point(serialize_end:tensorflow.eager.UpdateContextRequest)
4405}
4406
4407::PROTOBUF_NAMESPACE_ID::uint8* UpdateContextRequest::InternalSerializeWithCachedSizesToArray(
4408 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4409 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.UpdateContextRequest)
4410 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4411 (void) cached_has_bits;
4412
4413 // .tensorflow.ServerDef server_def = 1;
4414 if (this->has_server_def()) {
4415 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4416 InternalWriteMessageToArray(
4417 1, _Internal::server_def(this), target);
4418 }
4419
4420 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 2;
4421 for (unsigned int i = 0,
4422 n = static_cast<unsigned int>(this->cluster_device_attributes_size()); i < n; i++) {
4423 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4424 InternalWriteMessageToArray(
4425 2, this->cluster_device_attributes(static_cast<int>(i)), target);
4426 }
4427
4428 // fixed64 context_id = 3;
4429 if (this->context_id() != 0) {
4430 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(3, this->context_id(), target);
4431 }
4432
4433 // fixed64 context_view_id = 4;
4434 if (this->context_view_id() != 0) {
4435 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(4, this->context_view_id(), target);
4436 }
4437
4438 if (_internal_metadata_.have_unknown_fields()) {
4439 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4440 _internal_metadata_.unknown_fields(), target);
4441 }
4442 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.UpdateContextRequest)
4443 return target;
4444}
4445
4446size_t UpdateContextRequest::ByteSizeLong() const {
4447// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.UpdateContextRequest)
4448 size_t total_size = 0;
4449
4450 if (_internal_metadata_.have_unknown_fields()) {
4451 total_size +=
4452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4453 _internal_metadata_.unknown_fields());
4454 }
4455 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4456 // Prevent compiler warnings about cached_has_bits being unused
4457 (void) cached_has_bits;
4458
4459 // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 2;
4460 {
4461 unsigned int count = static_cast<unsigned int>(this->cluster_device_attributes_size());
4462 total_size += 1UL * count;
4463 for (unsigned int i = 0; i < count; i++) {
4464 total_size +=
4465 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4466 this->cluster_device_attributes(static_cast<int>(i)));
4467 }
4468 }
4469
4470 // .tensorflow.ServerDef server_def = 1;
4471 if (this->has_server_def()) {
4472 total_size += 1 +
4473 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4474 *server_def_);
4475 }
4476
4477 // fixed64 context_id = 3;
4478 if (this->context_id() != 0) {
4479 total_size += 1 + 8;
4480 }
4481
4482 // fixed64 context_view_id = 4;
4483 if (this->context_view_id() != 0) {
4484 total_size += 1 + 8;
4485 }
4486
4487 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4488 SetCachedSize(cached_size);
4489 return total_size;
4490}
4491
4492void UpdateContextRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4493// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.UpdateContextRequest)
4494 GOOGLE_DCHECK_NE(&from, this);
4495 const UpdateContextRequest* source =
4496 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UpdateContextRequest>(
4497 &from);
4498 if (source == nullptr) {
4499 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.UpdateContextRequest)
4500 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4501 } else {
4502 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.UpdateContextRequest)
4503 MergeFrom(*source);
4504 }
4505}
4506
4507void UpdateContextRequest::MergeFrom(const UpdateContextRequest& from) {
4508// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.UpdateContextRequest)
4509 GOOGLE_DCHECK_NE(&from, this);
4510 _internal_metadata_.MergeFrom(from._internal_metadata_);
4511 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4512 (void) cached_has_bits;
4513
4514 cluster_device_attributes_.MergeFrom(from.cluster_device_attributes_);
4515 if (from.has_server_def()) {
4516 mutable_server_def()->::tensorflow::ServerDef::MergeFrom(from.server_def());
4517 }
4518 if (from.context_id() != 0) {
4519 set_context_id(from.context_id());
4520 }
4521 if (from.context_view_id() != 0) {
4522 set_context_view_id(from.context_view_id());
4523 }
4524}
4525
4526void UpdateContextRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4527// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.UpdateContextRequest)
4528 if (&from == this) return;
4529 Clear();
4530 MergeFrom(from);
4531}
4532
4533void UpdateContextRequest::CopyFrom(const UpdateContextRequest& from) {
4534// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.UpdateContextRequest)
4535 if (&from == this) return;
4536 Clear();
4537 MergeFrom(from);
4538}
4539
4540bool UpdateContextRequest::IsInitialized() const {
4541 return true;
4542}
4543
4544void UpdateContextRequest::InternalSwap(UpdateContextRequest* other) {
4545 using std::swap;
4546 _internal_metadata_.Swap(&other->_internal_metadata_);
4547 CastToBase(&cluster_device_attributes_)->InternalSwap(CastToBase(&other->cluster_device_attributes_));
4548 swap(server_def_, other->server_def_);
4549 swap(context_id_, other->context_id_);
4550 swap(context_view_id_, other->context_view_id_);
4551}
4552
4553::PROTOBUF_NAMESPACE_ID::Metadata UpdateContextRequest::GetMetadata() const {
4554 return GetMetadataStatic();
4555}
4556
4557
4558// ===================================================================
4559
4560void UpdateContextResponse::InitAsDefaultInstance() {
4561}
4562class UpdateContextResponse::_Internal {
4563 public:
4564};
4565
4566void UpdateContextResponse::clear_device_attributes() {
4567 device_attributes_.Clear();
4568}
4569UpdateContextResponse::UpdateContextResponse()
4570 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4571 SharedCtor();
4572 // @@protoc_insertion_point(constructor:tensorflow.eager.UpdateContextResponse)
4573}
4574UpdateContextResponse::UpdateContextResponse(const UpdateContextResponse& from)
4575 : ::PROTOBUF_NAMESPACE_ID::Message(),
4576 _internal_metadata_(nullptr),
4577 device_attributes_(from.device_attributes_) {
4578 _internal_metadata_.MergeFrom(from._internal_metadata_);
4579 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.UpdateContextResponse)
4580}
4581
4582void UpdateContextResponse::SharedCtor() {
4583 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4584}
4585
4586UpdateContextResponse::~UpdateContextResponse() {
4587 // @@protoc_insertion_point(destructor:tensorflow.eager.UpdateContextResponse)
4588 SharedDtor();
4589}
4590
4591void UpdateContextResponse::SharedDtor() {
4592}
4593
4594void UpdateContextResponse::SetCachedSize(int size) const {
4595 _cached_size_.Set(size);
4596}
4597const UpdateContextResponse& UpdateContextResponse::default_instance() {
4598 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UpdateContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4599 return *internal_default_instance();
4600}
4601
4602
4603void UpdateContextResponse::Clear() {
4604// @@protoc_insertion_point(message_clear_start:tensorflow.eager.UpdateContextResponse)
4605 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4606 // Prevent compiler warnings about cached_has_bits being unused
4607 (void) cached_has_bits;
4608
4609 device_attributes_.Clear();
4610 _internal_metadata_.Clear();
4611}
4612
4613#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4614const char* UpdateContextResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4615#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4616 while (!ctx->Done(&ptr)) {
4617 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4618 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4619 CHK_(ptr);
4620 switch (tag >> 3) {
4621 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
4622 case 1:
4623 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4624 ptr -= 1;
4625 do {
4626 ptr += 1;
4627 ptr = ctx->ParseMessage(add_device_attributes(), ptr);
4628 CHK_(ptr);
4629 if (!ctx->DataAvailable(ptr)) break;
4630 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
4631 } else goto handle_unusual;
4632 continue;
4633 default: {
4634 handle_unusual:
4635 if ((tag & 7) == 4 || tag == 0) {
4636 ctx->SetLastTag(tag);
4637 goto success;
4638 }
4639 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4640 CHK_(ptr != nullptr);
4641 continue;
4642 }
4643 } // switch
4644 } // while
4645success:
4646 return ptr;
4647failure:
4648 ptr = nullptr;
4649 goto success;
4650#undef CHK_
4651}
4652#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4653bool UpdateContextResponse::MergePartialFromCodedStream(
4654 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4655#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4656 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4657 // @@protoc_insertion_point(parse_start:tensorflow.eager.UpdateContextResponse)
4658 for (;;) {
4659 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4660 tag = p.first;
4661 if (!p.second) goto handle_unusual;
4662 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4663 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
4664 case 1: {
4665 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4666 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
4667 input, add_device_attributes()));
4668 } else {
4669 goto handle_unusual;
4670 }
4671 break;
4672 }
4673
4674 default: {
4675 handle_unusual:
4676 if (tag == 0) {
4677 goto success;
4678 }
4679 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4680 input, tag, _internal_metadata_.mutable_unknown_fields()));
4681 break;
4682 }
4683 }
4684 }
4685success:
4686 // @@protoc_insertion_point(parse_success:tensorflow.eager.UpdateContextResponse)
4687 return true;
4688failure:
4689 // @@protoc_insertion_point(parse_failure:tensorflow.eager.UpdateContextResponse)
4690 return false;
4691#undef DO_
4692}
4693#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4694
4695void UpdateContextResponse::SerializeWithCachedSizes(
4696 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4697 // @@protoc_insertion_point(serialize_start:tensorflow.eager.UpdateContextResponse)
4698 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4699 (void) cached_has_bits;
4700
4701 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
4702 for (unsigned int i = 0,
4703 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
4704 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4705 1,
4706 this->device_attributes(static_cast<int>(i)),
4707 output);
4708 }
4709
4710 if (_internal_metadata_.have_unknown_fields()) {
4711 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4712 _internal_metadata_.unknown_fields(), output);
4713 }
4714 // @@protoc_insertion_point(serialize_end:tensorflow.eager.UpdateContextResponse)
4715}
4716
4717::PROTOBUF_NAMESPACE_ID::uint8* UpdateContextResponse::InternalSerializeWithCachedSizesToArray(
4718 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4719 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.UpdateContextResponse)
4720 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4721 (void) cached_has_bits;
4722
4723 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
4724 for (unsigned int i = 0,
4725 n = static_cast<unsigned int>(this->device_attributes_size()); i < n; i++) {
4726 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4727 InternalWriteMessageToArray(
4728 1, this->device_attributes(static_cast<int>(i)), target);
4729 }
4730
4731 if (_internal_metadata_.have_unknown_fields()) {
4732 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4733 _internal_metadata_.unknown_fields(), target);
4734 }
4735 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.UpdateContextResponse)
4736 return target;
4737}
4738
4739size_t UpdateContextResponse::ByteSizeLong() const {
4740// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.UpdateContextResponse)
4741 size_t total_size = 0;
4742
4743 if (_internal_metadata_.have_unknown_fields()) {
4744 total_size +=
4745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4746 _internal_metadata_.unknown_fields());
4747 }
4748 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4749 // Prevent compiler warnings about cached_has_bits being unused
4750 (void) cached_has_bits;
4751
4752 // repeated .tensorflow.DeviceAttributes device_attributes = 1;
4753 {
4754 unsigned int count = static_cast<unsigned int>(this->device_attributes_size());
4755 total_size += 1UL * count;
4756 for (unsigned int i = 0; i < count; i++) {
4757 total_size +=
4758 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4759 this->device_attributes(static_cast<int>(i)));
4760 }
4761 }
4762
4763 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4764 SetCachedSize(cached_size);
4765 return total_size;
4766}
4767
4768void UpdateContextResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4769// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.UpdateContextResponse)
4770 GOOGLE_DCHECK_NE(&from, this);
4771 const UpdateContextResponse* source =
4772 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UpdateContextResponse>(
4773 &from);
4774 if (source == nullptr) {
4775 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.UpdateContextResponse)
4776 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4777 } else {
4778 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.UpdateContextResponse)
4779 MergeFrom(*source);
4780 }
4781}
4782
4783void UpdateContextResponse::MergeFrom(const UpdateContextResponse& from) {
4784// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.UpdateContextResponse)
4785 GOOGLE_DCHECK_NE(&from, this);
4786 _internal_metadata_.MergeFrom(from._internal_metadata_);
4787 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4788 (void) cached_has_bits;
4789
4790 device_attributes_.MergeFrom(from.device_attributes_);
4791}
4792
4793void UpdateContextResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4794// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.UpdateContextResponse)
4795 if (&from == this) return;
4796 Clear();
4797 MergeFrom(from);
4798}
4799
4800void UpdateContextResponse::CopyFrom(const UpdateContextResponse& from) {
4801// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.UpdateContextResponse)
4802 if (&from == this) return;
4803 Clear();
4804 MergeFrom(from);
4805}
4806
4807bool UpdateContextResponse::IsInitialized() const {
4808 return true;
4809}
4810
4811void UpdateContextResponse::InternalSwap(UpdateContextResponse* other) {
4812 using std::swap;
4813 _internal_metadata_.Swap(&other->_internal_metadata_);
4814 CastToBase(&device_attributes_)->InternalSwap(CastToBase(&other->device_attributes_));
4815}
4816
4817::PROTOBUF_NAMESPACE_ID::Metadata UpdateContextResponse::GetMetadata() const {
4818 return GetMetadataStatic();
4819}
4820
4821
4822// ===================================================================
4823
4824void EnqueueRequest::InitAsDefaultInstance() {
4825}
4826class EnqueueRequest::_Internal {
4827 public:
4828};
4829
4830EnqueueRequest::EnqueueRequest()
4831 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4832 SharedCtor();
4833 // @@protoc_insertion_point(constructor:tensorflow.eager.EnqueueRequest)
4834}
4835EnqueueRequest::EnqueueRequest(const EnqueueRequest& from)
4836 : ::PROTOBUF_NAMESPACE_ID::Message(),
4837 _internal_metadata_(nullptr),
4838 queue_(from.queue_) {
4839 _internal_metadata_.MergeFrom(from._internal_metadata_);
4840 context_id_ = from.context_id_;
4841 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.EnqueueRequest)
4842}
4843
4844void EnqueueRequest::SharedCtor() {
4845 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4846 context_id_ = PROTOBUF_ULONGLONG(0);
4847}
4848
4849EnqueueRequest::~EnqueueRequest() {
4850 // @@protoc_insertion_point(destructor:tensorflow.eager.EnqueueRequest)
4851 SharedDtor();
4852}
4853
4854void EnqueueRequest::SharedDtor() {
4855}
4856
4857void EnqueueRequest::SetCachedSize(int size) const {
4858 _cached_size_.Set(size);
4859}
4860const EnqueueRequest& EnqueueRequest::default_instance() {
4861 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnqueueRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
4862 return *internal_default_instance();
4863}
4864
4865
4866void EnqueueRequest::Clear() {
4867// @@protoc_insertion_point(message_clear_start:tensorflow.eager.EnqueueRequest)
4868 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4869 // Prevent compiler warnings about cached_has_bits being unused
4870 (void) cached_has_bits;
4871
4872 queue_.Clear();
4873 context_id_ = PROTOBUF_ULONGLONG(0);
4874 _internal_metadata_.Clear();
4875}
4876
4877#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4878const char* EnqueueRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4879#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4880 while (!ctx->Done(&ptr)) {
4881 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4882 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4883 CHK_(ptr);
4884 switch (tag >> 3) {
4885 // fixed64 context_id = 1;
4886 case 1:
4887 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
4888 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
4889 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
4890 } else goto handle_unusual;
4891 continue;
4892 // repeated .tensorflow.eager.QueueItem queue = 3;
4893 case 3:
4894 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
4895 ptr -= 1;
4896 do {
4897 ptr += 1;
4898 ptr = ctx->ParseMessage(add_queue(), ptr);
4899 CHK_(ptr);
4900 if (!ctx->DataAvailable(ptr)) break;
4901 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
4902 } else goto handle_unusual;
4903 continue;
4904 default: {
4905 handle_unusual:
4906 if ((tag & 7) == 4 || tag == 0) {
4907 ctx->SetLastTag(tag);
4908 goto success;
4909 }
4910 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4911 CHK_(ptr != nullptr);
4912 continue;
4913 }
4914 } // switch
4915 } // while
4916success:
4917 return ptr;
4918failure:
4919 ptr = nullptr;
4920 goto success;
4921#undef CHK_
4922}
4923#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4924bool EnqueueRequest::MergePartialFromCodedStream(
4925 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4926#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4927 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4928 // @@protoc_insertion_point(parse_start:tensorflow.eager.EnqueueRequest)
4929 for (;;) {
4930 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4931 tag = p.first;
4932 if (!p.second) goto handle_unusual;
4933 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4934 // fixed64 context_id = 1;
4935 case 1: {
4936 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
4937
4938 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4939 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
4940 input, &context_id_)));
4941 } else {
4942 goto handle_unusual;
4943 }
4944 break;
4945 }
4946
4947 // repeated .tensorflow.eager.QueueItem queue = 3;
4948 case 3: {
4949 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
4950 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
4951 input, add_queue()));
4952 } else {
4953 goto handle_unusual;
4954 }
4955 break;
4956 }
4957
4958 default: {
4959 handle_unusual:
4960 if (tag == 0) {
4961 goto success;
4962 }
4963 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4964 input, tag, _internal_metadata_.mutable_unknown_fields()));
4965 break;
4966 }
4967 }
4968 }
4969success:
4970 // @@protoc_insertion_point(parse_success:tensorflow.eager.EnqueueRequest)
4971 return true;
4972failure:
4973 // @@protoc_insertion_point(parse_failure:tensorflow.eager.EnqueueRequest)
4974 return false;
4975#undef DO_
4976}
4977#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4978
4979void EnqueueRequest::SerializeWithCachedSizes(
4980 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4981 // @@protoc_insertion_point(serialize_start:tensorflow.eager.EnqueueRequest)
4982 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4983 (void) cached_has_bits;
4984
4985 // fixed64 context_id = 1;
4986 if (this->context_id() != 0) {
4987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_id(), output);
4988 }
4989
4990 // repeated .tensorflow.eager.QueueItem queue = 3;
4991 for (unsigned int i = 0,
4992 n = static_cast<unsigned int>(this->queue_size()); i < n; i++) {
4993 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4994 3,
4995 this->queue(static_cast<int>(i)),
4996 output);
4997 }
4998
4999 if (_internal_metadata_.have_unknown_fields()) {
5000 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5001 _internal_metadata_.unknown_fields(), output);
5002 }
5003 // @@protoc_insertion_point(serialize_end:tensorflow.eager.EnqueueRequest)
5004}
5005
5006::PROTOBUF_NAMESPACE_ID::uint8* EnqueueRequest::InternalSerializeWithCachedSizesToArray(
5007 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5008 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.EnqueueRequest)
5009 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5010 (void) cached_has_bits;
5011
5012 // fixed64 context_id = 1;
5013 if (this->context_id() != 0) {
5014 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_id(), target);
5015 }
5016
5017 // repeated .tensorflow.eager.QueueItem queue = 3;
5018 for (unsigned int i = 0,
5019 n = static_cast<unsigned int>(this->queue_size()); i < n; i++) {
5020 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5021 InternalWriteMessageToArray(
5022 3, this->queue(static_cast<int>(i)), target);
5023 }
5024
5025 if (_internal_metadata_.have_unknown_fields()) {
5026 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5027 _internal_metadata_.unknown_fields(), target);
5028 }
5029 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.EnqueueRequest)
5030 return target;
5031}
5032
5033size_t EnqueueRequest::ByteSizeLong() const {
5034// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.EnqueueRequest)
5035 size_t total_size = 0;
5036
5037 if (_internal_metadata_.have_unknown_fields()) {
5038 total_size +=
5039 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5040 _internal_metadata_.unknown_fields());
5041 }
5042 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5043 // Prevent compiler warnings about cached_has_bits being unused
5044 (void) cached_has_bits;
5045
5046 // repeated .tensorflow.eager.QueueItem queue = 3;
5047 {
5048 unsigned int count = static_cast<unsigned int>(this->queue_size());
5049 total_size += 1UL * count;
5050 for (unsigned int i = 0; i < count; i++) {
5051 total_size +=
5052 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5053 this->queue(static_cast<int>(i)));
5054 }
5055 }
5056
5057 // fixed64 context_id = 1;
5058 if (this->context_id() != 0) {
5059 total_size += 1 + 8;
5060 }
5061
5062 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5063 SetCachedSize(cached_size);
5064 return total_size;
5065}
5066
5067void EnqueueRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5068// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.EnqueueRequest)
5069 GOOGLE_DCHECK_NE(&from, this);
5070 const EnqueueRequest* source =
5071 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnqueueRequest>(
5072 &from);
5073 if (source == nullptr) {
5074 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.EnqueueRequest)
5075 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5076 } else {
5077 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.EnqueueRequest)
5078 MergeFrom(*source);
5079 }
5080}
5081
5082void EnqueueRequest::MergeFrom(const EnqueueRequest& from) {
5083// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.EnqueueRequest)
5084 GOOGLE_DCHECK_NE(&from, this);
5085 _internal_metadata_.MergeFrom(from._internal_metadata_);
5086 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5087 (void) cached_has_bits;
5088
5089 queue_.MergeFrom(from.queue_);
5090 if (from.context_id() != 0) {
5091 set_context_id(from.context_id());
5092 }
5093}
5094
5095void EnqueueRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5096// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.EnqueueRequest)
5097 if (&from == this) return;
5098 Clear();
5099 MergeFrom(from);
5100}
5101
5102void EnqueueRequest::CopyFrom(const EnqueueRequest& from) {
5103// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.EnqueueRequest)
5104 if (&from == this) return;
5105 Clear();
5106 MergeFrom(from);
5107}
5108
5109bool EnqueueRequest::IsInitialized() const {
5110 return true;
5111}
5112
5113void EnqueueRequest::InternalSwap(EnqueueRequest* other) {
5114 using std::swap;
5115 _internal_metadata_.Swap(&other->_internal_metadata_);
5116 CastToBase(&queue_)->InternalSwap(CastToBase(&other->queue_));
5117 swap(context_id_, other->context_id_);
5118}
5119
5120::PROTOBUF_NAMESPACE_ID::Metadata EnqueueRequest::GetMetadata() const {
5121 return GetMetadataStatic();
5122}
5123
5124
5125// ===================================================================
5126
5127void EnqueueResponse::InitAsDefaultInstance() {
5128}
5129class EnqueueResponse::_Internal {
5130 public:
5131};
5132
5133EnqueueResponse::EnqueueResponse()
5134 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5135 SharedCtor();
5136 // @@protoc_insertion_point(constructor:tensorflow.eager.EnqueueResponse)
5137}
5138EnqueueResponse::EnqueueResponse(const EnqueueResponse& from)
5139 : ::PROTOBUF_NAMESPACE_ID::Message(),
5140 _internal_metadata_(nullptr),
5141 queue_response_(from.queue_response_) {
5142 _internal_metadata_.MergeFrom(from._internal_metadata_);
5143 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.EnqueueResponse)
5144}
5145
5146void EnqueueResponse::SharedCtor() {
5147 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5148}
5149
5150EnqueueResponse::~EnqueueResponse() {
5151 // @@protoc_insertion_point(destructor:tensorflow.eager.EnqueueResponse)
5152 SharedDtor();
5153}
5154
5155void EnqueueResponse::SharedDtor() {
5156}
5157
5158void EnqueueResponse::SetCachedSize(int size) const {
5159 _cached_size_.Set(size);
5160}
5161const EnqueueResponse& EnqueueResponse::default_instance() {
5162 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnqueueResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5163 return *internal_default_instance();
5164}
5165
5166
5167void EnqueueResponse::Clear() {
5168// @@protoc_insertion_point(message_clear_start:tensorflow.eager.EnqueueResponse)
5169 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5170 // Prevent compiler warnings about cached_has_bits being unused
5171 (void) cached_has_bits;
5172
5173 queue_response_.Clear();
5174 _internal_metadata_.Clear();
5175}
5176
5177#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5178const char* EnqueueResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5179#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5180 while (!ctx->Done(&ptr)) {
5181 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5182 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5183 CHK_(ptr);
5184 switch (tag >> 3) {
5185 // repeated .tensorflow.eager.QueueResponse queue_response = 1;
5186 case 1:
5187 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5188 ptr -= 1;
5189 do {
5190 ptr += 1;
5191 ptr = ctx->ParseMessage(add_queue_response(), ptr);
5192 CHK_(ptr);
5193 if (!ctx->DataAvailable(ptr)) break;
5194 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
5195 } else goto handle_unusual;
5196 continue;
5197 default: {
5198 handle_unusual:
5199 if ((tag & 7) == 4 || tag == 0) {
5200 ctx->SetLastTag(tag);
5201 goto success;
5202 }
5203 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5204 CHK_(ptr != nullptr);
5205 continue;
5206 }
5207 } // switch
5208 } // while
5209success:
5210 return ptr;
5211failure:
5212 ptr = nullptr;
5213 goto success;
5214#undef CHK_
5215}
5216#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5217bool EnqueueResponse::MergePartialFromCodedStream(
5218 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5219#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5220 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5221 // @@protoc_insertion_point(parse_start:tensorflow.eager.EnqueueResponse)
5222 for (;;) {
5223 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5224 tag = p.first;
5225 if (!p.second) goto handle_unusual;
5226 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5227 // repeated .tensorflow.eager.QueueResponse queue_response = 1;
5228 case 1: {
5229 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5230 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5231 input, add_queue_response()));
5232 } else {
5233 goto handle_unusual;
5234 }
5235 break;
5236 }
5237
5238 default: {
5239 handle_unusual:
5240 if (tag == 0) {
5241 goto success;
5242 }
5243 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5244 input, tag, _internal_metadata_.mutable_unknown_fields()));
5245 break;
5246 }
5247 }
5248 }
5249success:
5250 // @@protoc_insertion_point(parse_success:tensorflow.eager.EnqueueResponse)
5251 return true;
5252failure:
5253 // @@protoc_insertion_point(parse_failure:tensorflow.eager.EnqueueResponse)
5254 return false;
5255#undef DO_
5256}
5257#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5258
5259void EnqueueResponse::SerializeWithCachedSizes(
5260 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5261 // @@protoc_insertion_point(serialize_start:tensorflow.eager.EnqueueResponse)
5262 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5263 (void) cached_has_bits;
5264
5265 // repeated .tensorflow.eager.QueueResponse queue_response = 1;
5266 for (unsigned int i = 0,
5267 n = static_cast<unsigned int>(this->queue_response_size()); i < n; i++) {
5268 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5269 1,
5270 this->queue_response(static_cast<int>(i)),
5271 output);
5272 }
5273
5274 if (_internal_metadata_.have_unknown_fields()) {
5275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5276 _internal_metadata_.unknown_fields(), output);
5277 }
5278 // @@protoc_insertion_point(serialize_end:tensorflow.eager.EnqueueResponse)
5279}
5280
5281::PROTOBUF_NAMESPACE_ID::uint8* EnqueueResponse::InternalSerializeWithCachedSizesToArray(
5282 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5283 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.EnqueueResponse)
5284 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5285 (void) cached_has_bits;
5286
5287 // repeated .tensorflow.eager.QueueResponse queue_response = 1;
5288 for (unsigned int i = 0,
5289 n = static_cast<unsigned int>(this->queue_response_size()); i < n; i++) {
5290 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5291 InternalWriteMessageToArray(
5292 1, this->queue_response(static_cast<int>(i)), target);
5293 }
5294
5295 if (_internal_metadata_.have_unknown_fields()) {
5296 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5297 _internal_metadata_.unknown_fields(), target);
5298 }
5299 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.EnqueueResponse)
5300 return target;
5301}
5302
5303size_t EnqueueResponse::ByteSizeLong() const {
5304// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.EnqueueResponse)
5305 size_t total_size = 0;
5306
5307 if (_internal_metadata_.have_unknown_fields()) {
5308 total_size +=
5309 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5310 _internal_metadata_.unknown_fields());
5311 }
5312 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5313 // Prevent compiler warnings about cached_has_bits being unused
5314 (void) cached_has_bits;
5315
5316 // repeated .tensorflow.eager.QueueResponse queue_response = 1;
5317 {
5318 unsigned int count = static_cast<unsigned int>(this->queue_response_size());
5319 total_size += 1UL * count;
5320 for (unsigned int i = 0; i < count; i++) {
5321 total_size +=
5322 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5323 this->queue_response(static_cast<int>(i)));
5324 }
5325 }
5326
5327 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5328 SetCachedSize(cached_size);
5329 return total_size;
5330}
5331
5332void EnqueueResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5333// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.EnqueueResponse)
5334 GOOGLE_DCHECK_NE(&from, this);
5335 const EnqueueResponse* source =
5336 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnqueueResponse>(
5337 &from);
5338 if (source == nullptr) {
5339 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.EnqueueResponse)
5340 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5341 } else {
5342 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.EnqueueResponse)
5343 MergeFrom(*source);
5344 }
5345}
5346
5347void EnqueueResponse::MergeFrom(const EnqueueResponse& from) {
5348// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.EnqueueResponse)
5349 GOOGLE_DCHECK_NE(&from, this);
5350 _internal_metadata_.MergeFrom(from._internal_metadata_);
5351 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5352 (void) cached_has_bits;
5353
5354 queue_response_.MergeFrom(from.queue_response_);
5355}
5356
5357void EnqueueResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5358// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.EnqueueResponse)
5359 if (&from == this) return;
5360 Clear();
5361 MergeFrom(from);
5362}
5363
5364void EnqueueResponse::CopyFrom(const EnqueueResponse& from) {
5365// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.EnqueueResponse)
5366 if (&from == this) return;
5367 Clear();
5368 MergeFrom(from);
5369}
5370
5371bool EnqueueResponse::IsInitialized() const {
5372 return true;
5373}
5374
5375void EnqueueResponse::InternalSwap(EnqueueResponse* other) {
5376 using std::swap;
5377 _internal_metadata_.Swap(&other->_internal_metadata_);
5378 CastToBase(&queue_response_)->InternalSwap(CastToBase(&other->queue_response_));
5379}
5380
5381::PROTOBUF_NAMESPACE_ID::Metadata EnqueueResponse::GetMetadata() const {
5382 return GetMetadataStatic();
5383}
5384
5385
5386// ===================================================================
5387
5388void WaitQueueDoneRequest::InitAsDefaultInstance() {
5389}
5390class WaitQueueDoneRequest::_Internal {
5391 public:
5392};
5393
5394WaitQueueDoneRequest::WaitQueueDoneRequest()
5395 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5396 SharedCtor();
5397 // @@protoc_insertion_point(constructor:tensorflow.eager.WaitQueueDoneRequest)
5398}
5399WaitQueueDoneRequest::WaitQueueDoneRequest(const WaitQueueDoneRequest& from)
5400 : ::PROTOBUF_NAMESPACE_ID::Message(),
5401 _internal_metadata_(nullptr),
5402 op_id_(from.op_id_) {
5403 _internal_metadata_.MergeFrom(from._internal_metadata_);
5404 context_id_ = from.context_id_;
5405 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.WaitQueueDoneRequest)
5406}
5407
5408void WaitQueueDoneRequest::SharedCtor() {
5409 context_id_ = PROTOBUF_ULONGLONG(0);
5410}
5411
5412WaitQueueDoneRequest::~WaitQueueDoneRequest() {
5413 // @@protoc_insertion_point(destructor:tensorflow.eager.WaitQueueDoneRequest)
5414 SharedDtor();
5415}
5416
5417void WaitQueueDoneRequest::SharedDtor() {
5418}
5419
5420void WaitQueueDoneRequest::SetCachedSize(int size) const {
5421 _cached_size_.Set(size);
5422}
5423const WaitQueueDoneRequest& WaitQueueDoneRequest::default_instance() {
5424 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WaitQueueDoneRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5425 return *internal_default_instance();
5426}
5427
5428
5429void WaitQueueDoneRequest::Clear() {
5430// @@protoc_insertion_point(message_clear_start:tensorflow.eager.WaitQueueDoneRequest)
5431 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5432 // Prevent compiler warnings about cached_has_bits being unused
5433 (void) cached_has_bits;
5434
5435 op_id_.Clear();
5436 context_id_ = PROTOBUF_ULONGLONG(0);
5437 _internal_metadata_.Clear();
5438}
5439
5440#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5441const char* WaitQueueDoneRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5442#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5443 while (!ctx->Done(&ptr)) {
5444 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5445 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5446 CHK_(ptr);
5447 switch (tag >> 3) {
5448 // fixed64 context_id = 1;
5449 case 1:
5450 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
5451 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
5452 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
5453 } else goto handle_unusual;
5454 continue;
5455 // repeated int64 op_id = 2;
5456 case 2:
5457 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5458 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_op_id(), ptr, ctx);
5459 CHK_(ptr);
5460 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
5461 add_op_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
5462 CHK_(ptr);
5463 } else goto handle_unusual;
5464 continue;
5465 default: {
5466 handle_unusual:
5467 if ((tag & 7) == 4 || tag == 0) {
5468 ctx->SetLastTag(tag);
5469 goto success;
5470 }
5471 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5472 CHK_(ptr != nullptr);
5473 continue;
5474 }
5475 } // switch
5476 } // while
5477success:
5478 return ptr;
5479failure:
5480 ptr = nullptr;
5481 goto success;
5482#undef CHK_
5483}
5484#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5485bool WaitQueueDoneRequest::MergePartialFromCodedStream(
5486 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5487#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5488 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5489 // @@protoc_insertion_point(parse_start:tensorflow.eager.WaitQueueDoneRequest)
5490 for (;;) {
5491 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5492 tag = p.first;
5493 if (!p.second) goto handle_unusual;
5494 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5495 // fixed64 context_id = 1;
5496 case 1: {
5497 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
5498
5499 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5500 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
5501 input, &context_id_)));
5502 } else {
5503 goto handle_unusual;
5504 }
5505 break;
5506 }
5507
5508 // repeated int64 op_id = 2;
5509 case 2: {
5510 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
5511 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
5512 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5513 input, this->mutable_op_id())));
5514 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
5515 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5516 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5517 1, 18u, input, this->mutable_op_id())));
5518 } else {
5519 goto handle_unusual;
5520 }
5521 break;
5522 }
5523
5524 default: {
5525 handle_unusual:
5526 if (tag == 0) {
5527 goto success;
5528 }
5529 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5530 input, tag, _internal_metadata_.mutable_unknown_fields()));
5531 break;
5532 }
5533 }
5534 }
5535success:
5536 // @@protoc_insertion_point(parse_success:tensorflow.eager.WaitQueueDoneRequest)
5537 return true;
5538failure:
5539 // @@protoc_insertion_point(parse_failure:tensorflow.eager.WaitQueueDoneRequest)
5540 return false;
5541#undef DO_
5542}
5543#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5544
5545void WaitQueueDoneRequest::SerializeWithCachedSizes(
5546 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5547 // @@protoc_insertion_point(serialize_start:tensorflow.eager.WaitQueueDoneRequest)
5548 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5549 (void) cached_has_bits;
5550
5551 // fixed64 context_id = 1;
5552 if (this->context_id() != 0) {
5553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_id(), output);
5554 }
5555
5556 // repeated int64 op_id = 2;
5557 if (this->op_id_size() > 0) {
5558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5559 output->WriteVarint32(_op_id_cached_byte_size_.load(
5560 std::memory_order_relaxed));
5561 }
5562 for (int i = 0, n = this->op_id_size(); i < n; i++) {
5563 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
5564 this->op_id(i), output);
5565 }
5566
5567 if (_internal_metadata_.have_unknown_fields()) {
5568 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5569 _internal_metadata_.unknown_fields(), output);
5570 }
5571 // @@protoc_insertion_point(serialize_end:tensorflow.eager.WaitQueueDoneRequest)
5572}
5573
5574::PROTOBUF_NAMESPACE_ID::uint8* WaitQueueDoneRequest::InternalSerializeWithCachedSizesToArray(
5575 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5576 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.WaitQueueDoneRequest)
5577 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5578 (void) cached_has_bits;
5579
5580 // fixed64 context_id = 1;
5581 if (this->context_id() != 0) {
5582 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_id(), target);
5583 }
5584
5585 // repeated int64 op_id = 2;
5586 if (this->op_id_size() > 0) {
5587 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
5588 2,
5589 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5590 target);
5591 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
5592 _op_id_cached_byte_size_.load(std::memory_order_relaxed),
5593 target);
5594 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5595 WriteInt64NoTagToArray(this->op_id_, target);
5596 }
5597
5598 if (_internal_metadata_.have_unknown_fields()) {
5599 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5600 _internal_metadata_.unknown_fields(), target);
5601 }
5602 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.WaitQueueDoneRequest)
5603 return target;
5604}
5605
5606size_t WaitQueueDoneRequest::ByteSizeLong() const {
5607// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.WaitQueueDoneRequest)
5608 size_t total_size = 0;
5609
5610 if (_internal_metadata_.have_unknown_fields()) {
5611 total_size +=
5612 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5613 _internal_metadata_.unknown_fields());
5614 }
5615 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5616 // Prevent compiler warnings about cached_has_bits being unused
5617 (void) cached_has_bits;
5618
5619 // repeated int64 op_id = 2;
5620 {
5621 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5622 Int64Size(this->op_id_);
5623 if (data_size > 0) {
5624 total_size += 1 +
5625 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5626 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
5627 }
5628 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
5629 _op_id_cached_byte_size_.store(cached_size,
5630 std::memory_order_relaxed);
5631 total_size += data_size;
5632 }
5633
5634 // fixed64 context_id = 1;
5635 if (this->context_id() != 0) {
5636 total_size += 1 + 8;
5637 }
5638
5639 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5640 SetCachedSize(cached_size);
5641 return total_size;
5642}
5643
5644void WaitQueueDoneRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5645// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.WaitQueueDoneRequest)
5646 GOOGLE_DCHECK_NE(&from, this);
5647 const WaitQueueDoneRequest* source =
5648 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WaitQueueDoneRequest>(
5649 &from);
5650 if (source == nullptr) {
5651 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.WaitQueueDoneRequest)
5652 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5653 } else {
5654 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.WaitQueueDoneRequest)
5655 MergeFrom(*source);
5656 }
5657}
5658
5659void WaitQueueDoneRequest::MergeFrom(const WaitQueueDoneRequest& from) {
5660// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.WaitQueueDoneRequest)
5661 GOOGLE_DCHECK_NE(&from, this);
5662 _internal_metadata_.MergeFrom(from._internal_metadata_);
5663 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5664 (void) cached_has_bits;
5665
5666 op_id_.MergeFrom(from.op_id_);
5667 if (from.context_id() != 0) {
5668 set_context_id(from.context_id());
5669 }
5670}
5671
5672void WaitQueueDoneRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5673// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.WaitQueueDoneRequest)
5674 if (&from == this) return;
5675 Clear();
5676 MergeFrom(from);
5677}
5678
5679void WaitQueueDoneRequest::CopyFrom(const WaitQueueDoneRequest& from) {
5680// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.WaitQueueDoneRequest)
5681 if (&from == this) return;
5682 Clear();
5683 MergeFrom(from);
5684}
5685
5686bool WaitQueueDoneRequest::IsInitialized() const {
5687 return true;
5688}
5689
5690void WaitQueueDoneRequest::InternalSwap(WaitQueueDoneRequest* other) {
5691 using std::swap;
5692 _internal_metadata_.Swap(&other->_internal_metadata_);
5693 op_id_.InternalSwap(&other->op_id_);
5694 swap(context_id_, other->context_id_);
5695}
5696
5697::PROTOBUF_NAMESPACE_ID::Metadata WaitQueueDoneRequest::GetMetadata() const {
5698 return GetMetadataStatic();
5699}
5700
5701
5702// ===================================================================
5703
5704void WaitQueueDoneResponse::InitAsDefaultInstance() {
5705}
5706class WaitQueueDoneResponse::_Internal {
5707 public:
5708};
5709
5710WaitQueueDoneResponse::WaitQueueDoneResponse()
5711 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5712 SharedCtor();
5713 // @@protoc_insertion_point(constructor:tensorflow.eager.WaitQueueDoneResponse)
5714}
5715WaitQueueDoneResponse::WaitQueueDoneResponse(const WaitQueueDoneResponse& from)
5716 : ::PROTOBUF_NAMESPACE_ID::Message(),
5717 _internal_metadata_(nullptr) {
5718 _internal_metadata_.MergeFrom(from._internal_metadata_);
5719 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.WaitQueueDoneResponse)
5720}
5721
5722void WaitQueueDoneResponse::SharedCtor() {
5723}
5724
5725WaitQueueDoneResponse::~WaitQueueDoneResponse() {
5726 // @@protoc_insertion_point(destructor:tensorflow.eager.WaitQueueDoneResponse)
5727 SharedDtor();
5728}
5729
5730void WaitQueueDoneResponse::SharedDtor() {
5731}
5732
5733void WaitQueueDoneResponse::SetCachedSize(int size) const {
5734 _cached_size_.Set(size);
5735}
5736const WaitQueueDoneResponse& WaitQueueDoneResponse::default_instance() {
5737 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WaitQueueDoneResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5738 return *internal_default_instance();
5739}
5740
5741
5742void WaitQueueDoneResponse::Clear() {
5743// @@protoc_insertion_point(message_clear_start:tensorflow.eager.WaitQueueDoneResponse)
5744 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5745 // Prevent compiler warnings about cached_has_bits being unused
5746 (void) cached_has_bits;
5747
5748 _internal_metadata_.Clear();
5749}
5750
5751#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5752const char* WaitQueueDoneResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5753#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5754 while (!ctx->Done(&ptr)) {
5755 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5756 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5757 CHK_(ptr);
5758 switch (tag >> 3) {
5759 default: {
5760 if ((tag & 7) == 4 || tag == 0) {
5761 ctx->SetLastTag(tag);
5762 goto success;
5763 }
5764 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5765 CHK_(ptr != nullptr);
5766 continue;
5767 }
5768 } // switch
5769 } // while
5770success:
5771 return ptr;
5772failure:
5773 ptr = nullptr;
5774 goto success;
5775#undef CHK_
5776}
5777#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5778bool WaitQueueDoneResponse::MergePartialFromCodedStream(
5779 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5780#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5781 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5782 // @@protoc_insertion_point(parse_start:tensorflow.eager.WaitQueueDoneResponse)
5783 for (;;) {
5784 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5785 tag = p.first;
5786 if (!p.second) goto handle_unusual;
5787 handle_unusual:
5788 if (tag == 0) {
5789 goto success;
5790 }
5791 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5792 input, tag, _internal_metadata_.mutable_unknown_fields()));
5793 }
5794success:
5795 // @@protoc_insertion_point(parse_success:tensorflow.eager.WaitQueueDoneResponse)
5796 return true;
5797failure:
5798 // @@protoc_insertion_point(parse_failure:tensorflow.eager.WaitQueueDoneResponse)
5799 return false;
5800#undef DO_
5801}
5802#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5803
5804void WaitQueueDoneResponse::SerializeWithCachedSizes(
5805 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5806 // @@protoc_insertion_point(serialize_start:tensorflow.eager.WaitQueueDoneResponse)
5807 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5808 (void) cached_has_bits;
5809
5810 if (_internal_metadata_.have_unknown_fields()) {
5811 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5812 _internal_metadata_.unknown_fields(), output);
5813 }
5814 // @@protoc_insertion_point(serialize_end:tensorflow.eager.WaitQueueDoneResponse)
5815}
5816
5817::PROTOBUF_NAMESPACE_ID::uint8* WaitQueueDoneResponse::InternalSerializeWithCachedSizesToArray(
5818 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5819 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.WaitQueueDoneResponse)
5820 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5821 (void) cached_has_bits;
5822
5823 if (_internal_metadata_.have_unknown_fields()) {
5824 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5825 _internal_metadata_.unknown_fields(), target);
5826 }
5827 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.WaitQueueDoneResponse)
5828 return target;
5829}
5830
5831size_t WaitQueueDoneResponse::ByteSizeLong() const {
5832// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.WaitQueueDoneResponse)
5833 size_t total_size = 0;
5834
5835 if (_internal_metadata_.have_unknown_fields()) {
5836 total_size +=
5837 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5838 _internal_metadata_.unknown_fields());
5839 }
5840 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5841 // Prevent compiler warnings about cached_has_bits being unused
5842 (void) cached_has_bits;
5843
5844 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5845 SetCachedSize(cached_size);
5846 return total_size;
5847}
5848
5849void WaitQueueDoneResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5850// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.WaitQueueDoneResponse)
5851 GOOGLE_DCHECK_NE(&from, this);
5852 const WaitQueueDoneResponse* source =
5853 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WaitQueueDoneResponse>(
5854 &from);
5855 if (source == nullptr) {
5856 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.WaitQueueDoneResponse)
5857 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5858 } else {
5859 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.WaitQueueDoneResponse)
5860 MergeFrom(*source);
5861 }
5862}
5863
5864void WaitQueueDoneResponse::MergeFrom(const WaitQueueDoneResponse& from) {
5865// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.WaitQueueDoneResponse)
5866 GOOGLE_DCHECK_NE(&from, this);
5867 _internal_metadata_.MergeFrom(from._internal_metadata_);
5868 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5869 (void) cached_has_bits;
5870
5871}
5872
5873void WaitQueueDoneResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5874// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.WaitQueueDoneResponse)
5875 if (&from == this) return;
5876 Clear();
5877 MergeFrom(from);
5878}
5879
5880void WaitQueueDoneResponse::CopyFrom(const WaitQueueDoneResponse& from) {
5881// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.WaitQueueDoneResponse)
5882 if (&from == this) return;
5883 Clear();
5884 MergeFrom(from);
5885}
5886
5887bool WaitQueueDoneResponse::IsInitialized() const {
5888 return true;
5889}
5890
5891void WaitQueueDoneResponse::InternalSwap(WaitQueueDoneResponse* other) {
5892 using std::swap;
5893 _internal_metadata_.Swap(&other->_internal_metadata_);
5894}
5895
5896::PROTOBUF_NAMESPACE_ID::Metadata WaitQueueDoneResponse::GetMetadata() const {
5897 return GetMetadataStatic();
5898}
5899
5900
5901// ===================================================================
5902
5903void RunComponentFunctionRequest::InitAsDefaultInstance() {
5904 ::tensorflow::eager::_RunComponentFunctionRequest_default_instance_._instance.get_mutable()->operation_ = const_cast< ::tensorflow::eager::Operation*>(
5905 ::tensorflow::eager::Operation::internal_default_instance());
5906}
5907class RunComponentFunctionRequest::_Internal {
5908 public:
5909 static const ::tensorflow::eager::Operation& operation(const RunComponentFunctionRequest* msg);
5910};
5911
5912const ::tensorflow::eager::Operation&
5913RunComponentFunctionRequest::_Internal::operation(const RunComponentFunctionRequest* msg) {
5914 return *msg->operation_;
5915}
5916RunComponentFunctionRequest::RunComponentFunctionRequest()
5917 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5918 SharedCtor();
5919 // @@protoc_insertion_point(constructor:tensorflow.eager.RunComponentFunctionRequest)
5920}
5921RunComponentFunctionRequest::RunComponentFunctionRequest(const RunComponentFunctionRequest& from)
5922 : ::PROTOBUF_NAMESPACE_ID::Message(),
5923 _internal_metadata_(nullptr),
5924 output_num_(from.output_num_) {
5925 _internal_metadata_.MergeFrom(from._internal_metadata_);
5926 if (from.has_operation()) {
5927 operation_ = new ::tensorflow::eager::Operation(*from.operation_);
5928 } else {
5929 operation_ = nullptr;
5930 }
5931 context_id_ = from.context_id_;
5932 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.RunComponentFunctionRequest)
5933}
5934
5935void RunComponentFunctionRequest::SharedCtor() {
5936 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5937 ::memset(&operation_, 0, static_cast<size_t>(
5938 reinterpret_cast<char*>(&context_id_) -
5939 reinterpret_cast<char*>(&operation_)) + sizeof(context_id_));
5940}
5941
5942RunComponentFunctionRequest::~RunComponentFunctionRequest() {
5943 // @@protoc_insertion_point(destructor:tensorflow.eager.RunComponentFunctionRequest)
5944 SharedDtor();
5945}
5946
5947void RunComponentFunctionRequest::SharedDtor() {
5948 if (this != internal_default_instance()) delete operation_;
5949}
5950
5951void RunComponentFunctionRequest::SetCachedSize(int size) const {
5952 _cached_size_.Set(size);
5953}
5954const RunComponentFunctionRequest& RunComponentFunctionRequest::default_instance() {
5955 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunComponentFunctionRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
5956 return *internal_default_instance();
5957}
5958
5959
5960void RunComponentFunctionRequest::Clear() {
5961// @@protoc_insertion_point(message_clear_start:tensorflow.eager.RunComponentFunctionRequest)
5962 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5963 // Prevent compiler warnings about cached_has_bits being unused
5964 (void) cached_has_bits;
5965
5966 output_num_.Clear();
5967 if (GetArenaNoVirtual() == nullptr && operation_ != nullptr) {
5968 delete operation_;
5969 }
5970 operation_ = nullptr;
5971 context_id_ = PROTOBUF_ULONGLONG(0);
5972 _internal_metadata_.Clear();
5973}
5974
5975#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5976const char* RunComponentFunctionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5977#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5978 while (!ctx->Done(&ptr)) {
5979 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5980 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5981 CHK_(ptr);
5982 switch (tag >> 3) {
5983 // fixed64 context_id = 1;
5984 case 1:
5985 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
5986 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
5987 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
5988 } else goto handle_unusual;
5989 continue;
5990 // .tensorflow.eager.Operation operation = 2;
5991 case 2:
5992 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5993 ptr = ctx->ParseMessage(mutable_operation(), ptr);
5994 CHK_(ptr);
5995 } else goto handle_unusual;
5996 continue;
5997 // repeated int32 output_num = 3;
5998 case 3:
5999 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6000 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_output_num(), ptr, ctx);
6001 CHK_(ptr);
6002 } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
6003 add_output_num(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
6004 CHK_(ptr);
6005 } else goto handle_unusual;
6006 continue;
6007 default: {
6008 handle_unusual:
6009 if ((tag & 7) == 4 || tag == 0) {
6010 ctx->SetLastTag(tag);
6011 goto success;
6012 }
6013 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6014 CHK_(ptr != nullptr);
6015 continue;
6016 }
6017 } // switch
6018 } // while
6019success:
6020 return ptr;
6021failure:
6022 ptr = nullptr;
6023 goto success;
6024#undef CHK_
6025}
6026#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6027bool RunComponentFunctionRequest::MergePartialFromCodedStream(
6028 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6029#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6030 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6031 // @@protoc_insertion_point(parse_start:tensorflow.eager.RunComponentFunctionRequest)
6032 for (;;) {
6033 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6034 tag = p.first;
6035 if (!p.second) goto handle_unusual;
6036 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6037 // fixed64 context_id = 1;
6038 case 1: {
6039 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
6040
6041 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6042 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
6043 input, &context_id_)));
6044 } else {
6045 goto handle_unusual;
6046 }
6047 break;
6048 }
6049
6050 // .tensorflow.eager.Operation operation = 2;
6051 case 2: {
6052 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
6053 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6054 input, mutable_operation()));
6055 } else {
6056 goto handle_unusual;
6057 }
6058 break;
6059 }
6060
6061 // repeated int32 output_num = 3;
6062 case 3: {
6063 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
6064 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
6065 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
6066 input, this->mutable_output_num())));
6067 } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
6068 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
6069 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
6070 1, 26u, input, this->mutable_output_num())));
6071 } else {
6072 goto handle_unusual;
6073 }
6074 break;
6075 }
6076
6077 default: {
6078 handle_unusual:
6079 if (tag == 0) {
6080 goto success;
6081 }
6082 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6083 input, tag, _internal_metadata_.mutable_unknown_fields()));
6084 break;
6085 }
6086 }
6087 }
6088success:
6089 // @@protoc_insertion_point(parse_success:tensorflow.eager.RunComponentFunctionRequest)
6090 return true;
6091failure:
6092 // @@protoc_insertion_point(parse_failure:tensorflow.eager.RunComponentFunctionRequest)
6093 return false;
6094#undef DO_
6095}
6096#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6097
6098void RunComponentFunctionRequest::SerializeWithCachedSizes(
6099 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6100 // @@protoc_insertion_point(serialize_start:tensorflow.eager.RunComponentFunctionRequest)
6101 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6102 (void) cached_has_bits;
6103
6104 // fixed64 context_id = 1;
6105 if (this->context_id() != 0) {
6106 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_id(), output);
6107 }
6108
6109 // .tensorflow.eager.Operation operation = 2;
6110 if (this->has_operation()) {
6111 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6112 2, _Internal::operation(this), output);
6113 }
6114
6115 // repeated int32 output_num = 3;
6116 if (this->output_num_size() > 0) {
6117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
6118 output->WriteVarint32(_output_num_cached_byte_size_.load(
6119 std::memory_order_relaxed));
6120 }
6121 for (int i = 0, n = this->output_num_size(); i < n; i++) {
6122 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
6123 this->output_num(i), output);
6124 }
6125
6126 if (_internal_metadata_.have_unknown_fields()) {
6127 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6128 _internal_metadata_.unknown_fields(), output);
6129 }
6130 // @@protoc_insertion_point(serialize_end:tensorflow.eager.RunComponentFunctionRequest)
6131}
6132
6133::PROTOBUF_NAMESPACE_ID::uint8* RunComponentFunctionRequest::InternalSerializeWithCachedSizesToArray(
6134 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6135 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.RunComponentFunctionRequest)
6136 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6137 (void) cached_has_bits;
6138
6139 // fixed64 context_id = 1;
6140 if (this->context_id() != 0) {
6141 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_id(), target);
6142 }
6143
6144 // .tensorflow.eager.Operation operation = 2;
6145 if (this->has_operation()) {
6146 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6147 InternalWriteMessageToArray(
6148 2, _Internal::operation(this), target);
6149 }
6150
6151 // repeated int32 output_num = 3;
6152 if (this->output_num_size() > 0) {
6153 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
6154 3,
6155 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
6156 target);
6157 target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
6158 _output_num_cached_byte_size_.load(std::memory_order_relaxed),
6159 target);
6160 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6161 WriteInt32NoTagToArray(this->output_num_, target);
6162 }
6163
6164 if (_internal_metadata_.have_unknown_fields()) {
6165 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6166 _internal_metadata_.unknown_fields(), target);
6167 }
6168 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.RunComponentFunctionRequest)
6169 return target;
6170}
6171
6172size_t RunComponentFunctionRequest::ByteSizeLong() const {
6173// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.RunComponentFunctionRequest)
6174 size_t total_size = 0;
6175
6176 if (_internal_metadata_.have_unknown_fields()) {
6177 total_size +=
6178 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6179 _internal_metadata_.unknown_fields());
6180 }
6181 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6182 // Prevent compiler warnings about cached_has_bits being unused
6183 (void) cached_has_bits;
6184
6185 // repeated int32 output_num = 3;
6186 {
6187 size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6188 Int32Size(this->output_num_);
6189 if (data_size > 0) {
6190 total_size += 1 +
6191 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
6192 static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
6193 }
6194 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
6195 _output_num_cached_byte_size_.store(cached_size,
6196 std::memory_order_relaxed);
6197 total_size += data_size;
6198 }
6199
6200 // .tensorflow.eager.Operation operation = 2;
6201 if (this->has_operation()) {
6202 total_size += 1 +
6203 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6204 *operation_);
6205 }
6206
6207 // fixed64 context_id = 1;
6208 if (this->context_id() != 0) {
6209 total_size += 1 + 8;
6210 }
6211
6212 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6213 SetCachedSize(cached_size);
6214 return total_size;
6215}
6216
6217void RunComponentFunctionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6218// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.RunComponentFunctionRequest)
6219 GOOGLE_DCHECK_NE(&from, this);
6220 const RunComponentFunctionRequest* source =
6221 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunComponentFunctionRequest>(
6222 &from);
6223 if (source == nullptr) {
6224 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.RunComponentFunctionRequest)
6225 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6226 } else {
6227 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.RunComponentFunctionRequest)
6228 MergeFrom(*source);
6229 }
6230}
6231
6232void RunComponentFunctionRequest::MergeFrom(const RunComponentFunctionRequest& from) {
6233// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.RunComponentFunctionRequest)
6234 GOOGLE_DCHECK_NE(&from, this);
6235 _internal_metadata_.MergeFrom(from._internal_metadata_);
6236 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6237 (void) cached_has_bits;
6238
6239 output_num_.MergeFrom(from.output_num_);
6240 if (from.has_operation()) {
6241 mutable_operation()->::tensorflow::eager::Operation::MergeFrom(from.operation());
6242 }
6243 if (from.context_id() != 0) {
6244 set_context_id(from.context_id());
6245 }
6246}
6247
6248void RunComponentFunctionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6249// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.RunComponentFunctionRequest)
6250 if (&from == this) return;
6251 Clear();
6252 MergeFrom(from);
6253}
6254
6255void RunComponentFunctionRequest::CopyFrom(const RunComponentFunctionRequest& from) {
6256// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.RunComponentFunctionRequest)
6257 if (&from == this) return;
6258 Clear();
6259 MergeFrom(from);
6260}
6261
6262bool RunComponentFunctionRequest::IsInitialized() const {
6263 return true;
6264}
6265
6266void RunComponentFunctionRequest::InternalSwap(RunComponentFunctionRequest* other) {
6267 using std::swap;
6268 _internal_metadata_.Swap(&other->_internal_metadata_);
6269 output_num_.InternalSwap(&other->output_num_);
6270 swap(operation_, other->operation_);
6271 swap(context_id_, other->context_id_);
6272}
6273
6274::PROTOBUF_NAMESPACE_ID::Metadata RunComponentFunctionRequest::GetMetadata() const {
6275 return GetMetadataStatic();
6276}
6277
6278
6279// ===================================================================
6280
6281void RunComponentFunctionResponse::InitAsDefaultInstance() {
6282}
6283class RunComponentFunctionResponse::_Internal {
6284 public:
6285};
6286
6287void RunComponentFunctionResponse::clear_shape() {
6288 shape_.Clear();
6289}
6290void RunComponentFunctionResponse::clear_tensor() {
6291 tensor_.Clear();
6292}
6293RunComponentFunctionResponse::RunComponentFunctionResponse()
6294 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6295 SharedCtor();
6296 // @@protoc_insertion_point(constructor:tensorflow.eager.RunComponentFunctionResponse)
6297}
6298RunComponentFunctionResponse::RunComponentFunctionResponse(const RunComponentFunctionResponse& from)
6299 : ::PROTOBUF_NAMESPACE_ID::Message(),
6300 _internal_metadata_(nullptr),
6301 shape_(from.shape_),
6302 tensor_(from.tensor_) {
6303 _internal_metadata_.MergeFrom(from._internal_metadata_);
6304 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.RunComponentFunctionResponse)
6305}
6306
6307void RunComponentFunctionResponse::SharedCtor() {
6308 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
6309}
6310
6311RunComponentFunctionResponse::~RunComponentFunctionResponse() {
6312 // @@protoc_insertion_point(destructor:tensorflow.eager.RunComponentFunctionResponse)
6313 SharedDtor();
6314}
6315
6316void RunComponentFunctionResponse::SharedDtor() {
6317}
6318
6319void RunComponentFunctionResponse::SetCachedSize(int size) const {
6320 _cached_size_.Set(size);
6321}
6322const RunComponentFunctionResponse& RunComponentFunctionResponse::default_instance() {
6323 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunComponentFunctionResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
6324 return *internal_default_instance();
6325}
6326
6327
6328void RunComponentFunctionResponse::Clear() {
6329// @@protoc_insertion_point(message_clear_start:tensorflow.eager.RunComponentFunctionResponse)
6330 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6331 // Prevent compiler warnings about cached_has_bits being unused
6332 (void) cached_has_bits;
6333
6334 shape_.Clear();
6335 tensor_.Clear();
6336 _internal_metadata_.Clear();
6337}
6338
6339#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6340const char* RunComponentFunctionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6341#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6342 while (!ctx->Done(&ptr)) {
6343 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6344 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6345 CHK_(ptr);
6346 switch (tag >> 3) {
6347 // repeated .tensorflow.TensorShapeProto shape = 1;
6348 case 1:
6349 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6350 ptr -= 1;
6351 do {
6352 ptr += 1;
6353 ptr = ctx->ParseMessage(add_shape(), ptr);
6354 CHK_(ptr);
6355 if (!ctx->DataAvailable(ptr)) break;
6356 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
6357 } else goto handle_unusual;
6358 continue;
6359 // repeated .tensorflow.TensorProto tensor = 2;
6360 case 2:
6361 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
6362 ptr -= 1;
6363 do {
6364 ptr += 1;
6365 ptr = ctx->ParseMessage(add_tensor(), ptr);
6366 CHK_(ptr);
6367 if (!ctx->DataAvailable(ptr)) break;
6368 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
6369 } else goto handle_unusual;
6370 continue;
6371 default: {
6372 handle_unusual:
6373 if ((tag & 7) == 4 || tag == 0) {
6374 ctx->SetLastTag(tag);
6375 goto success;
6376 }
6377 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6378 CHK_(ptr != nullptr);
6379 continue;
6380 }
6381 } // switch
6382 } // while
6383success:
6384 return ptr;
6385failure:
6386 ptr = nullptr;
6387 goto success;
6388#undef CHK_
6389}
6390#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6391bool RunComponentFunctionResponse::MergePartialFromCodedStream(
6392 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6393#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6394 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6395 // @@protoc_insertion_point(parse_start:tensorflow.eager.RunComponentFunctionResponse)
6396 for (;;) {
6397 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6398 tag = p.first;
6399 if (!p.second) goto handle_unusual;
6400 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6401 // repeated .tensorflow.TensorShapeProto shape = 1;
6402 case 1: {
6403 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
6404 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6405 input, add_shape()));
6406 } else {
6407 goto handle_unusual;
6408 }
6409 break;
6410 }
6411
6412 // repeated .tensorflow.TensorProto tensor = 2;
6413 case 2: {
6414 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
6415 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6416 input, add_tensor()));
6417 } else {
6418 goto handle_unusual;
6419 }
6420 break;
6421 }
6422
6423 default: {
6424 handle_unusual:
6425 if (tag == 0) {
6426 goto success;
6427 }
6428 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6429 input, tag, _internal_metadata_.mutable_unknown_fields()));
6430 break;
6431 }
6432 }
6433 }
6434success:
6435 // @@protoc_insertion_point(parse_success:tensorflow.eager.RunComponentFunctionResponse)
6436 return true;
6437failure:
6438 // @@protoc_insertion_point(parse_failure:tensorflow.eager.RunComponentFunctionResponse)
6439 return false;
6440#undef DO_
6441}
6442#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6443
6444void RunComponentFunctionResponse::SerializeWithCachedSizes(
6445 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6446 // @@protoc_insertion_point(serialize_start:tensorflow.eager.RunComponentFunctionResponse)
6447 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6448 (void) cached_has_bits;
6449
6450 // repeated .tensorflow.TensorShapeProto shape = 1;
6451 for (unsigned int i = 0,
6452 n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
6453 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6454 1,
6455 this->shape(static_cast<int>(i)),
6456 output);
6457 }
6458
6459 // repeated .tensorflow.TensorProto tensor = 2;
6460 for (unsigned int i = 0,
6461 n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {
6462 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6463 2,
6464 this->tensor(static_cast<int>(i)),
6465 output);
6466 }
6467
6468 if (_internal_metadata_.have_unknown_fields()) {
6469 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6470 _internal_metadata_.unknown_fields(), output);
6471 }
6472 // @@protoc_insertion_point(serialize_end:tensorflow.eager.RunComponentFunctionResponse)
6473}
6474
6475::PROTOBUF_NAMESPACE_ID::uint8* RunComponentFunctionResponse::InternalSerializeWithCachedSizesToArray(
6476 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6477 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.RunComponentFunctionResponse)
6478 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6479 (void) cached_has_bits;
6480
6481 // repeated .tensorflow.TensorShapeProto shape = 1;
6482 for (unsigned int i = 0,
6483 n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
6484 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6485 InternalWriteMessageToArray(
6486 1, this->shape(static_cast<int>(i)), target);
6487 }
6488
6489 // repeated .tensorflow.TensorProto tensor = 2;
6490 for (unsigned int i = 0,
6491 n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {
6492 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6493 InternalWriteMessageToArray(
6494 2, this->tensor(static_cast<int>(i)), target);
6495 }
6496
6497 if (_internal_metadata_.have_unknown_fields()) {
6498 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6499 _internal_metadata_.unknown_fields(), target);
6500 }
6501 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.RunComponentFunctionResponse)
6502 return target;
6503}
6504
6505size_t RunComponentFunctionResponse::ByteSizeLong() const {
6506// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.RunComponentFunctionResponse)
6507 size_t total_size = 0;
6508
6509 if (_internal_metadata_.have_unknown_fields()) {
6510 total_size +=
6511 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6512 _internal_metadata_.unknown_fields());
6513 }
6514 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6515 // Prevent compiler warnings about cached_has_bits being unused
6516 (void) cached_has_bits;
6517
6518 // repeated .tensorflow.TensorShapeProto shape = 1;
6519 {
6520 unsigned int count = static_cast<unsigned int>(this->shape_size());
6521 total_size += 1UL * count;
6522 for (unsigned int i = 0; i < count; i++) {
6523 total_size +=
6524 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6525 this->shape(static_cast<int>(i)));
6526 }
6527 }
6528
6529 // repeated .tensorflow.TensorProto tensor = 2;
6530 {
6531 unsigned int count = static_cast<unsigned int>(this->tensor_size());
6532 total_size += 1UL * count;
6533 for (unsigned int i = 0; i < count; i++) {
6534 total_size +=
6535 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6536 this->tensor(static_cast<int>(i)));
6537 }
6538 }
6539
6540 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6541 SetCachedSize(cached_size);
6542 return total_size;
6543}
6544
6545void RunComponentFunctionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6546// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.RunComponentFunctionResponse)
6547 GOOGLE_DCHECK_NE(&from, this);
6548 const RunComponentFunctionResponse* source =
6549 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunComponentFunctionResponse>(
6550 &from);
6551 if (source == nullptr) {
6552 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.RunComponentFunctionResponse)
6553 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6554 } else {
6555 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.RunComponentFunctionResponse)
6556 MergeFrom(*source);
6557 }
6558}
6559
6560void RunComponentFunctionResponse::MergeFrom(const RunComponentFunctionResponse& from) {
6561// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.RunComponentFunctionResponse)
6562 GOOGLE_DCHECK_NE(&from, this);
6563 _internal_metadata_.MergeFrom(from._internal_metadata_);
6564 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6565 (void) cached_has_bits;
6566
6567 shape_.MergeFrom(from.shape_);
6568 tensor_.MergeFrom(from.tensor_);
6569}
6570
6571void RunComponentFunctionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6572// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.RunComponentFunctionResponse)
6573 if (&from == this) return;
6574 Clear();
6575 MergeFrom(from);
6576}
6577
6578void RunComponentFunctionResponse::CopyFrom(const RunComponentFunctionResponse& from) {
6579// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.RunComponentFunctionResponse)
6580 if (&from == this) return;
6581 Clear();
6582 MergeFrom(from);
6583}
6584
6585bool RunComponentFunctionResponse::IsInitialized() const {
6586 return true;
6587}
6588
6589void RunComponentFunctionResponse::InternalSwap(RunComponentFunctionResponse* other) {
6590 using std::swap;
6591 _internal_metadata_.Swap(&other->_internal_metadata_);
6592 CastToBase(&shape_)->InternalSwap(CastToBase(&other->shape_));
6593 CastToBase(&tensor_)->InternalSwap(CastToBase(&other->tensor_));
6594}
6595
6596::PROTOBUF_NAMESPACE_ID::Metadata RunComponentFunctionResponse::GetMetadata() const {
6597 return GetMetadataStatic();
6598}
6599
6600
6601// ===================================================================
6602
6603void KeepAliveRequest::InitAsDefaultInstance() {
6604}
6605class KeepAliveRequest::_Internal {
6606 public:
6607};
6608
6609KeepAliveRequest::KeepAliveRequest()
6610 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6611 SharedCtor();
6612 // @@protoc_insertion_point(constructor:tensorflow.eager.KeepAliveRequest)
6613}
6614KeepAliveRequest::KeepAliveRequest(const KeepAliveRequest& from)
6615 : ::PROTOBUF_NAMESPACE_ID::Message(),
6616 _internal_metadata_(nullptr) {
6617 _internal_metadata_.MergeFrom(from._internal_metadata_);
6618 context_id_ = from.context_id_;
6619 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.KeepAliveRequest)
6620}
6621
6622void KeepAliveRequest::SharedCtor() {
6623 context_id_ = PROTOBUF_ULONGLONG(0);
6624}
6625
6626KeepAliveRequest::~KeepAliveRequest() {
6627 // @@protoc_insertion_point(destructor:tensorflow.eager.KeepAliveRequest)
6628 SharedDtor();
6629}
6630
6631void KeepAliveRequest::SharedDtor() {
6632}
6633
6634void KeepAliveRequest::SetCachedSize(int size) const {
6635 _cached_size_.Set(size);
6636}
6637const KeepAliveRequest& KeepAliveRequest::default_instance() {
6638 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeepAliveRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
6639 return *internal_default_instance();
6640}
6641
6642
6643void KeepAliveRequest::Clear() {
6644// @@protoc_insertion_point(message_clear_start:tensorflow.eager.KeepAliveRequest)
6645 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6646 // Prevent compiler warnings about cached_has_bits being unused
6647 (void) cached_has_bits;
6648
6649 context_id_ = PROTOBUF_ULONGLONG(0);
6650 _internal_metadata_.Clear();
6651}
6652
6653#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6654const char* KeepAliveRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6655#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6656 while (!ctx->Done(&ptr)) {
6657 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6658 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6659 CHK_(ptr);
6660 switch (tag >> 3) {
6661 // fixed64 context_id = 1;
6662 case 1:
6663 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
6664 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
6665 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
6666 } else goto handle_unusual;
6667 continue;
6668 default: {
6669 handle_unusual:
6670 if ((tag & 7) == 4 || tag == 0) {
6671 ctx->SetLastTag(tag);
6672 goto success;
6673 }
6674 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6675 CHK_(ptr != nullptr);
6676 continue;
6677 }
6678 } // switch
6679 } // while
6680success:
6681 return ptr;
6682failure:
6683 ptr = nullptr;
6684 goto success;
6685#undef CHK_
6686}
6687#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6688bool KeepAliveRequest::MergePartialFromCodedStream(
6689 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6690#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6691 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6692 // @@protoc_insertion_point(parse_start:tensorflow.eager.KeepAliveRequest)
6693 for (;;) {
6694 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6695 tag = p.first;
6696 if (!p.second) goto handle_unusual;
6697 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6698 // fixed64 context_id = 1;
6699 case 1: {
6700 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
6701
6702 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6703 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
6704 input, &context_id_)));
6705 } else {
6706 goto handle_unusual;
6707 }
6708 break;
6709 }
6710
6711 default: {
6712 handle_unusual:
6713 if (tag == 0) {
6714 goto success;
6715 }
6716 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6717 input, tag, _internal_metadata_.mutable_unknown_fields()));
6718 break;
6719 }
6720 }
6721 }
6722success:
6723 // @@protoc_insertion_point(parse_success:tensorflow.eager.KeepAliveRequest)
6724 return true;
6725failure:
6726 // @@protoc_insertion_point(parse_failure:tensorflow.eager.KeepAliveRequest)
6727 return false;
6728#undef DO_
6729}
6730#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6731
6732void KeepAliveRequest::SerializeWithCachedSizes(
6733 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6734 // @@protoc_insertion_point(serialize_start:tensorflow.eager.KeepAliveRequest)
6735 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6736 (void) cached_has_bits;
6737
6738 // fixed64 context_id = 1;
6739 if (this->context_id() != 0) {
6740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_id(), output);
6741 }
6742
6743 if (_internal_metadata_.have_unknown_fields()) {
6744 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6745 _internal_metadata_.unknown_fields(), output);
6746 }
6747 // @@protoc_insertion_point(serialize_end:tensorflow.eager.KeepAliveRequest)
6748}
6749
6750::PROTOBUF_NAMESPACE_ID::uint8* KeepAliveRequest::InternalSerializeWithCachedSizesToArray(
6751 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6752 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.KeepAliveRequest)
6753 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6754 (void) cached_has_bits;
6755
6756 // fixed64 context_id = 1;
6757 if (this->context_id() != 0) {
6758 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_id(), target);
6759 }
6760
6761 if (_internal_metadata_.have_unknown_fields()) {
6762 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6763 _internal_metadata_.unknown_fields(), target);
6764 }
6765 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.KeepAliveRequest)
6766 return target;
6767}
6768
6769size_t KeepAliveRequest::ByteSizeLong() const {
6770// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.KeepAliveRequest)
6771 size_t total_size = 0;
6772
6773 if (_internal_metadata_.have_unknown_fields()) {
6774 total_size +=
6775 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6776 _internal_metadata_.unknown_fields());
6777 }
6778 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6779 // Prevent compiler warnings about cached_has_bits being unused
6780 (void) cached_has_bits;
6781
6782 // fixed64 context_id = 1;
6783 if (this->context_id() != 0) {
6784 total_size += 1 + 8;
6785 }
6786
6787 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6788 SetCachedSize(cached_size);
6789 return total_size;
6790}
6791
6792void KeepAliveRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6793// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.KeepAliveRequest)
6794 GOOGLE_DCHECK_NE(&from, this);
6795 const KeepAliveRequest* source =
6796 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<KeepAliveRequest>(
6797 &from);
6798 if (source == nullptr) {
6799 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.KeepAliveRequest)
6800 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6801 } else {
6802 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.KeepAliveRequest)
6803 MergeFrom(*source);
6804 }
6805}
6806
6807void KeepAliveRequest::MergeFrom(const KeepAliveRequest& from) {
6808// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.KeepAliveRequest)
6809 GOOGLE_DCHECK_NE(&from, this);
6810 _internal_metadata_.MergeFrom(from._internal_metadata_);
6811 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6812 (void) cached_has_bits;
6813
6814 if (from.context_id() != 0) {
6815 set_context_id(from.context_id());
6816 }
6817}
6818
6819void KeepAliveRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6820// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.KeepAliveRequest)
6821 if (&from == this) return;
6822 Clear();
6823 MergeFrom(from);
6824}
6825
6826void KeepAliveRequest::CopyFrom(const KeepAliveRequest& from) {
6827// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.KeepAliveRequest)
6828 if (&from == this) return;
6829 Clear();
6830 MergeFrom(from);
6831}
6832
6833bool KeepAliveRequest::IsInitialized() const {
6834 return true;
6835}
6836
6837void KeepAliveRequest::InternalSwap(KeepAliveRequest* other) {
6838 using std::swap;
6839 _internal_metadata_.Swap(&other->_internal_metadata_);
6840 swap(context_id_, other->context_id_);
6841}
6842
6843::PROTOBUF_NAMESPACE_ID::Metadata KeepAliveRequest::GetMetadata() const {
6844 return GetMetadataStatic();
6845}
6846
6847
6848// ===================================================================
6849
6850void KeepAliveResponse::InitAsDefaultInstance() {
6851}
6852class KeepAliveResponse::_Internal {
6853 public:
6854};
6855
6856KeepAliveResponse::KeepAliveResponse()
6857 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6858 SharedCtor();
6859 // @@protoc_insertion_point(constructor:tensorflow.eager.KeepAliveResponse)
6860}
6861KeepAliveResponse::KeepAliveResponse(const KeepAliveResponse& from)
6862 : ::PROTOBUF_NAMESPACE_ID::Message(),
6863 _internal_metadata_(nullptr) {
6864 _internal_metadata_.MergeFrom(from._internal_metadata_);
6865 context_view_id_ = from.context_view_id_;
6866 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.KeepAliveResponse)
6867}
6868
6869void KeepAliveResponse::SharedCtor() {
6870 context_view_id_ = PROTOBUF_ULONGLONG(0);
6871}
6872
6873KeepAliveResponse::~KeepAliveResponse() {
6874 // @@protoc_insertion_point(destructor:tensorflow.eager.KeepAliveResponse)
6875 SharedDtor();
6876}
6877
6878void KeepAliveResponse::SharedDtor() {
6879}
6880
6881void KeepAliveResponse::SetCachedSize(int size) const {
6882 _cached_size_.Set(size);
6883}
6884const KeepAliveResponse& KeepAliveResponse::default_instance() {
6885 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeepAliveResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
6886 return *internal_default_instance();
6887}
6888
6889
6890void KeepAliveResponse::Clear() {
6891// @@protoc_insertion_point(message_clear_start:tensorflow.eager.KeepAliveResponse)
6892 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6893 // Prevent compiler warnings about cached_has_bits being unused
6894 (void) cached_has_bits;
6895
6896 context_view_id_ = PROTOBUF_ULONGLONG(0);
6897 _internal_metadata_.Clear();
6898}
6899
6900#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6901const char* KeepAliveResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6902#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6903 while (!ctx->Done(&ptr)) {
6904 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6905 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6906 CHK_(ptr);
6907 switch (tag >> 3) {
6908 // fixed64 context_view_id = 1;
6909 case 1:
6910 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
6911 context_view_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
6912 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
6913 } else goto handle_unusual;
6914 continue;
6915 default: {
6916 handle_unusual:
6917 if ((tag & 7) == 4 || tag == 0) {
6918 ctx->SetLastTag(tag);
6919 goto success;
6920 }
6921 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6922 CHK_(ptr != nullptr);
6923 continue;
6924 }
6925 } // switch
6926 } // while
6927success:
6928 return ptr;
6929failure:
6930 ptr = nullptr;
6931 goto success;
6932#undef CHK_
6933}
6934#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6935bool KeepAliveResponse::MergePartialFromCodedStream(
6936 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6937#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6938 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6939 // @@protoc_insertion_point(parse_start:tensorflow.eager.KeepAliveResponse)
6940 for (;;) {
6941 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6942 tag = p.first;
6943 if (!p.second) goto handle_unusual;
6944 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6945 // fixed64 context_view_id = 1;
6946 case 1: {
6947 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
6948
6949 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6950 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
6951 input, &context_view_id_)));
6952 } else {
6953 goto handle_unusual;
6954 }
6955 break;
6956 }
6957
6958 default: {
6959 handle_unusual:
6960 if (tag == 0) {
6961 goto success;
6962 }
6963 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6964 input, tag, _internal_metadata_.mutable_unknown_fields()));
6965 break;
6966 }
6967 }
6968 }
6969success:
6970 // @@protoc_insertion_point(parse_success:tensorflow.eager.KeepAliveResponse)
6971 return true;
6972failure:
6973 // @@protoc_insertion_point(parse_failure:tensorflow.eager.KeepAliveResponse)
6974 return false;
6975#undef DO_
6976}
6977#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6978
6979void KeepAliveResponse::SerializeWithCachedSizes(
6980 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6981 // @@protoc_insertion_point(serialize_start:tensorflow.eager.KeepAliveResponse)
6982 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6983 (void) cached_has_bits;
6984
6985 // fixed64 context_view_id = 1;
6986 if (this->context_view_id() != 0) {
6987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_view_id(), output);
6988 }
6989
6990 if (_internal_metadata_.have_unknown_fields()) {
6991 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6992 _internal_metadata_.unknown_fields(), output);
6993 }
6994 // @@protoc_insertion_point(serialize_end:tensorflow.eager.KeepAliveResponse)
6995}
6996
6997::PROTOBUF_NAMESPACE_ID::uint8* KeepAliveResponse::InternalSerializeWithCachedSizesToArray(
6998 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6999 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.KeepAliveResponse)
7000 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7001 (void) cached_has_bits;
7002
7003 // fixed64 context_view_id = 1;
7004 if (this->context_view_id() != 0) {
7005 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_view_id(), target);
7006 }
7007
7008 if (_internal_metadata_.have_unknown_fields()) {
7009 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7010 _internal_metadata_.unknown_fields(), target);
7011 }
7012 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.KeepAliveResponse)
7013 return target;
7014}
7015
7016size_t KeepAliveResponse::ByteSizeLong() const {
7017// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.KeepAliveResponse)
7018 size_t total_size = 0;
7019
7020 if (_internal_metadata_.have_unknown_fields()) {
7021 total_size +=
7022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7023 _internal_metadata_.unknown_fields());
7024 }
7025 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7026 // Prevent compiler warnings about cached_has_bits being unused
7027 (void) cached_has_bits;
7028
7029 // fixed64 context_view_id = 1;
7030 if (this->context_view_id() != 0) {
7031 total_size += 1 + 8;
7032 }
7033
7034 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7035 SetCachedSize(cached_size);
7036 return total_size;
7037}
7038
7039void KeepAliveResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7040// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.KeepAliveResponse)
7041 GOOGLE_DCHECK_NE(&from, this);
7042 const KeepAliveResponse* source =
7043 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<KeepAliveResponse>(
7044 &from);
7045 if (source == nullptr) {
7046 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.KeepAliveResponse)
7047 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7048 } else {
7049 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.KeepAliveResponse)
7050 MergeFrom(*source);
7051 }
7052}
7053
7054void KeepAliveResponse::MergeFrom(const KeepAliveResponse& from) {
7055// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.KeepAliveResponse)
7056 GOOGLE_DCHECK_NE(&from, this);
7057 _internal_metadata_.MergeFrom(from._internal_metadata_);
7058 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7059 (void) cached_has_bits;
7060
7061 if (from.context_view_id() != 0) {
7062 set_context_view_id(from.context_view_id());
7063 }
7064}
7065
7066void KeepAliveResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7067// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.KeepAliveResponse)
7068 if (&from == this) return;
7069 Clear();
7070 MergeFrom(from);
7071}
7072
7073void KeepAliveResponse::CopyFrom(const KeepAliveResponse& from) {
7074// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.KeepAliveResponse)
7075 if (&from == this) return;
7076 Clear();
7077 MergeFrom(from);
7078}
7079
7080bool KeepAliveResponse::IsInitialized() const {
7081 return true;
7082}
7083
7084void KeepAliveResponse::InternalSwap(KeepAliveResponse* other) {
7085 using std::swap;
7086 _internal_metadata_.Swap(&other->_internal_metadata_);
7087 swap(context_view_id_, other->context_view_id_);
7088}
7089
7090::PROTOBUF_NAMESPACE_ID::Metadata KeepAliveResponse::GetMetadata() const {
7091 return GetMetadataStatic();
7092}
7093
7094
7095// ===================================================================
7096
7097void CloseContextRequest::InitAsDefaultInstance() {
7098}
7099class CloseContextRequest::_Internal {
7100 public:
7101};
7102
7103CloseContextRequest::CloseContextRequest()
7104 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7105 SharedCtor();
7106 // @@protoc_insertion_point(constructor:tensorflow.eager.CloseContextRequest)
7107}
7108CloseContextRequest::CloseContextRequest(const CloseContextRequest& from)
7109 : ::PROTOBUF_NAMESPACE_ID::Message(),
7110 _internal_metadata_(nullptr) {
7111 _internal_metadata_.MergeFrom(from._internal_metadata_);
7112 ::memcpy(&context_id_, &from.context_id_,
7113 static_cast<size_t>(reinterpret_cast<char*>(&context_view_id_) -
7114 reinterpret_cast<char*>(&context_id_)) + sizeof(context_view_id_));
7115 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.CloseContextRequest)
7116}
7117
7118void CloseContextRequest::SharedCtor() {
7119 ::memset(&context_id_, 0, static_cast<size_t>(
7120 reinterpret_cast<char*>(&context_view_id_) -
7121 reinterpret_cast<char*>(&context_id_)) + sizeof(context_view_id_));
7122}
7123
7124CloseContextRequest::~CloseContextRequest() {
7125 // @@protoc_insertion_point(destructor:tensorflow.eager.CloseContextRequest)
7126 SharedDtor();
7127}
7128
7129void CloseContextRequest::SharedDtor() {
7130}
7131
7132void CloseContextRequest::SetCachedSize(int size) const {
7133 _cached_size_.Set(size);
7134}
7135const CloseContextRequest& CloseContextRequest::default_instance() {
7136 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CloseContextRequest_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
7137 return *internal_default_instance();
7138}
7139
7140
7141void CloseContextRequest::Clear() {
7142// @@protoc_insertion_point(message_clear_start:tensorflow.eager.CloseContextRequest)
7143 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7144 // Prevent compiler warnings about cached_has_bits being unused
7145 (void) cached_has_bits;
7146
7147 ::memset(&context_id_, 0, static_cast<size_t>(
7148 reinterpret_cast<char*>(&context_view_id_) -
7149 reinterpret_cast<char*>(&context_id_)) + sizeof(context_view_id_));
7150 _internal_metadata_.Clear();
7151}
7152
7153#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7154const char* CloseContextRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7155#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7156 while (!ctx->Done(&ptr)) {
7157 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7158 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7159 CHK_(ptr);
7160 switch (tag >> 3) {
7161 // fixed64 context_id = 1;
7162 case 1:
7163 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
7164 context_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
7165 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
7166 } else goto handle_unusual;
7167 continue;
7168 // fixed64 context_view_id = 2;
7169 case 2:
7170 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) {
7171 context_view_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint64>(ptr);
7172 ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint64);
7173 } else goto handle_unusual;
7174 continue;
7175 default: {
7176 handle_unusual:
7177 if ((tag & 7) == 4 || tag == 0) {
7178 ctx->SetLastTag(tag);
7179 goto success;
7180 }
7181 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7182 CHK_(ptr != nullptr);
7183 continue;
7184 }
7185 } // switch
7186 } // while
7187success:
7188 return ptr;
7189failure:
7190 ptr = nullptr;
7191 goto success;
7192#undef CHK_
7193}
7194#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7195bool CloseContextRequest::MergePartialFromCodedStream(
7196 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7197#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7198 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7199 // @@protoc_insertion_point(parse_start:tensorflow.eager.CloseContextRequest)
7200 for (;;) {
7201 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7202 tag = p.first;
7203 if (!p.second) goto handle_unusual;
7204 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7205 // fixed64 context_id = 1;
7206 case 1: {
7207 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
7208
7209 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7210 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
7211 input, &context_id_)));
7212 } else {
7213 goto handle_unusual;
7214 }
7215 break;
7216 }
7217
7218 // fixed64 context_view_id = 2;
7219 case 2: {
7220 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) {
7221
7222 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7223 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FIXED64>(
7224 input, &context_view_id_)));
7225 } else {
7226 goto handle_unusual;
7227 }
7228 break;
7229 }
7230
7231 default: {
7232 handle_unusual:
7233 if (tag == 0) {
7234 goto success;
7235 }
7236 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7237 input, tag, _internal_metadata_.mutable_unknown_fields()));
7238 break;
7239 }
7240 }
7241 }
7242success:
7243 // @@protoc_insertion_point(parse_success:tensorflow.eager.CloseContextRequest)
7244 return true;
7245failure:
7246 // @@protoc_insertion_point(parse_failure:tensorflow.eager.CloseContextRequest)
7247 return false;
7248#undef DO_
7249}
7250#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7251
7252void CloseContextRequest::SerializeWithCachedSizes(
7253 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7254 // @@protoc_insertion_point(serialize_start:tensorflow.eager.CloseContextRequest)
7255 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7256 (void) cached_has_bits;
7257
7258 // fixed64 context_id = 1;
7259 if (this->context_id() != 0) {
7260 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(1, this->context_id(), output);
7261 }
7262
7263 // fixed64 context_view_id = 2;
7264 if (this->context_view_id() != 0) {
7265 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64(2, this->context_view_id(), output);
7266 }
7267
7268 if (_internal_metadata_.have_unknown_fields()) {
7269 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7270 _internal_metadata_.unknown_fields(), output);
7271 }
7272 // @@protoc_insertion_point(serialize_end:tensorflow.eager.CloseContextRequest)
7273}
7274
7275::PROTOBUF_NAMESPACE_ID::uint8* CloseContextRequest::InternalSerializeWithCachedSizesToArray(
7276 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7277 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.CloseContextRequest)
7278 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7279 (void) cached_has_bits;
7280
7281 // fixed64 context_id = 1;
7282 if (this->context_id() != 0) {
7283 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->context_id(), target);
7284 }
7285
7286 // fixed64 context_view_id = 2;
7287 if (this->context_view_id() != 0) {
7288 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(2, this->context_view_id(), target);
7289 }
7290
7291 if (_internal_metadata_.have_unknown_fields()) {
7292 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7293 _internal_metadata_.unknown_fields(), target);
7294 }
7295 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.CloseContextRequest)
7296 return target;
7297}
7298
7299size_t CloseContextRequest::ByteSizeLong() const {
7300// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.CloseContextRequest)
7301 size_t total_size = 0;
7302
7303 if (_internal_metadata_.have_unknown_fields()) {
7304 total_size +=
7305 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7306 _internal_metadata_.unknown_fields());
7307 }
7308 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7309 // Prevent compiler warnings about cached_has_bits being unused
7310 (void) cached_has_bits;
7311
7312 // fixed64 context_id = 1;
7313 if (this->context_id() != 0) {
7314 total_size += 1 + 8;
7315 }
7316
7317 // fixed64 context_view_id = 2;
7318 if (this->context_view_id() != 0) {
7319 total_size += 1 + 8;
7320 }
7321
7322 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7323 SetCachedSize(cached_size);
7324 return total_size;
7325}
7326
7327void CloseContextRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7328// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.CloseContextRequest)
7329 GOOGLE_DCHECK_NE(&from, this);
7330 const CloseContextRequest* source =
7331 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CloseContextRequest>(
7332 &from);
7333 if (source == nullptr) {
7334 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.CloseContextRequest)
7335 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7336 } else {
7337 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.CloseContextRequest)
7338 MergeFrom(*source);
7339 }
7340}
7341
7342void CloseContextRequest::MergeFrom(const CloseContextRequest& from) {
7343// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.CloseContextRequest)
7344 GOOGLE_DCHECK_NE(&from, this);
7345 _internal_metadata_.MergeFrom(from._internal_metadata_);
7346 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7347 (void) cached_has_bits;
7348
7349 if (from.context_id() != 0) {
7350 set_context_id(from.context_id());
7351 }
7352 if (from.context_view_id() != 0) {
7353 set_context_view_id(from.context_view_id());
7354 }
7355}
7356
7357void CloseContextRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7358// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.CloseContextRequest)
7359 if (&from == this) return;
7360 Clear();
7361 MergeFrom(from);
7362}
7363
7364void CloseContextRequest::CopyFrom(const CloseContextRequest& from) {
7365// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.CloseContextRequest)
7366 if (&from == this) return;
7367 Clear();
7368 MergeFrom(from);
7369}
7370
7371bool CloseContextRequest::IsInitialized() const {
7372 return true;
7373}
7374
7375void CloseContextRequest::InternalSwap(CloseContextRequest* other) {
7376 using std::swap;
7377 _internal_metadata_.Swap(&other->_internal_metadata_);
7378 swap(context_id_, other->context_id_);
7379 swap(context_view_id_, other->context_view_id_);
7380}
7381
7382::PROTOBUF_NAMESPACE_ID::Metadata CloseContextRequest::GetMetadata() const {
7383 return GetMetadataStatic();
7384}
7385
7386
7387// ===================================================================
7388
7389void CloseContextResponse::InitAsDefaultInstance() {
7390}
7391class CloseContextResponse::_Internal {
7392 public:
7393};
7394
7395CloseContextResponse::CloseContextResponse()
7396 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7397 SharedCtor();
7398 // @@protoc_insertion_point(constructor:tensorflow.eager.CloseContextResponse)
7399}
7400CloseContextResponse::CloseContextResponse(const CloseContextResponse& from)
7401 : ::PROTOBUF_NAMESPACE_ID::Message(),
7402 _internal_metadata_(nullptr) {
7403 _internal_metadata_.MergeFrom(from._internal_metadata_);
7404 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.CloseContextResponse)
7405}
7406
7407void CloseContextResponse::SharedCtor() {
7408}
7409
7410CloseContextResponse::~CloseContextResponse() {
7411 // @@protoc_insertion_point(destructor:tensorflow.eager.CloseContextResponse)
7412 SharedDtor();
7413}
7414
7415void CloseContextResponse::SharedDtor() {
7416}
7417
7418void CloseContextResponse::SetCachedSize(int size) const {
7419 _cached_size_.Set(size);
7420}
7421const CloseContextResponse& CloseContextResponse::default_instance() {
7422 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CloseContextResponse_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
7423 return *internal_default_instance();
7424}
7425
7426
7427void CloseContextResponse::Clear() {
7428// @@protoc_insertion_point(message_clear_start:tensorflow.eager.CloseContextResponse)
7429 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7430 // Prevent compiler warnings about cached_has_bits being unused
7431 (void) cached_has_bits;
7432
7433 _internal_metadata_.Clear();
7434}
7435
7436#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7437const char* CloseContextResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7438#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7439 while (!ctx->Done(&ptr)) {
7440 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7441 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7442 CHK_(ptr);
7443 switch (tag >> 3) {
7444 default: {
7445 if ((tag & 7) == 4 || tag == 0) {
7446 ctx->SetLastTag(tag);
7447 goto success;
7448 }
7449 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7450 CHK_(ptr != nullptr);
7451 continue;
7452 }
7453 } // switch
7454 } // while
7455success:
7456 return ptr;
7457failure:
7458 ptr = nullptr;
7459 goto success;
7460#undef CHK_
7461}
7462#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7463bool CloseContextResponse::MergePartialFromCodedStream(
7464 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7465#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7466 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7467 // @@protoc_insertion_point(parse_start:tensorflow.eager.CloseContextResponse)
7468 for (;;) {
7469 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7470 tag = p.first;
7471 if (!p.second) goto handle_unusual;
7472 handle_unusual:
7473 if (tag == 0) {
7474 goto success;
7475 }
7476 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7477 input, tag, _internal_metadata_.mutable_unknown_fields()));
7478 }
7479success:
7480 // @@protoc_insertion_point(parse_success:tensorflow.eager.CloseContextResponse)
7481 return true;
7482failure:
7483 // @@protoc_insertion_point(parse_failure:tensorflow.eager.CloseContextResponse)
7484 return false;
7485#undef DO_
7486}
7487#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7488
7489void CloseContextResponse::SerializeWithCachedSizes(
7490 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7491 // @@protoc_insertion_point(serialize_start:tensorflow.eager.CloseContextResponse)
7492 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7493 (void) cached_has_bits;
7494
7495 if (_internal_metadata_.have_unknown_fields()) {
7496 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7497 _internal_metadata_.unknown_fields(), output);
7498 }
7499 // @@protoc_insertion_point(serialize_end:tensorflow.eager.CloseContextResponse)
7500}
7501
7502::PROTOBUF_NAMESPACE_ID::uint8* CloseContextResponse::InternalSerializeWithCachedSizesToArray(
7503 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7504 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.CloseContextResponse)
7505 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7506 (void) cached_has_bits;
7507
7508 if (_internal_metadata_.have_unknown_fields()) {
7509 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7510 _internal_metadata_.unknown_fields(), target);
7511 }
7512 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.CloseContextResponse)
7513 return target;
7514}
7515
7516size_t CloseContextResponse::ByteSizeLong() const {
7517// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.CloseContextResponse)
7518 size_t total_size = 0;
7519
7520 if (_internal_metadata_.have_unknown_fields()) {
7521 total_size +=
7522 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7523 _internal_metadata_.unknown_fields());
7524 }
7525 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7526 // Prevent compiler warnings about cached_has_bits being unused
7527 (void) cached_has_bits;
7528
7529 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7530 SetCachedSize(cached_size);
7531 return total_size;
7532}
7533
7534void CloseContextResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7535// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.CloseContextResponse)
7536 GOOGLE_DCHECK_NE(&from, this);
7537 const CloseContextResponse* source =
7538 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CloseContextResponse>(
7539 &from);
7540 if (source == nullptr) {
7541 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.CloseContextResponse)
7542 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7543 } else {
7544 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.CloseContextResponse)
7545 MergeFrom(*source);
7546 }
7547}
7548
7549void CloseContextResponse::MergeFrom(const CloseContextResponse& from) {
7550// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.CloseContextResponse)
7551 GOOGLE_DCHECK_NE(&from, this);
7552 _internal_metadata_.MergeFrom(from._internal_metadata_);
7553 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7554 (void) cached_has_bits;
7555
7556}
7557
7558void CloseContextResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7559// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.CloseContextResponse)
7560 if (&from == this) return;
7561 Clear();
7562 MergeFrom(from);
7563}
7564
7565void CloseContextResponse::CopyFrom(const CloseContextResponse& from) {
7566// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.CloseContextResponse)
7567 if (&from == this) return;
7568 Clear();
7569 MergeFrom(from);
7570}
7571
7572bool CloseContextResponse::IsInitialized() const {
7573 return true;
7574}
7575
7576void CloseContextResponse::InternalSwap(CloseContextResponse* other) {
7577 using std::swap;
7578 _internal_metadata_.Swap(&other->_internal_metadata_);
7579}
7580
7581::PROTOBUF_NAMESPACE_ID::Metadata CloseContextResponse::GetMetadata() const {
7582 return GetMetadataStatic();
7583}
7584
7585
7586// ===================================================================
7587
7588void RegisterFunctionOp::InitAsDefaultInstance() {
7589 ::tensorflow::eager::_RegisterFunctionOp_default_instance_._instance.get_mutable()->function_def_ = const_cast< ::tensorflow::FunctionDef*>(
7590 ::tensorflow::FunctionDef::internal_default_instance());
7591 ::tensorflow::eager::_RegisterFunctionOp_default_instance_._instance.get_mutable()->library_ = const_cast< ::tensorflow::FunctionDefLibrary*>(
7592 ::tensorflow::FunctionDefLibrary::internal_default_instance());
7593}
7594class RegisterFunctionOp::_Internal {
7595 public:
7596 static const ::tensorflow::FunctionDef& function_def(const RegisterFunctionOp* msg);
7597 static const ::tensorflow::FunctionDefLibrary& library(const RegisterFunctionOp* msg);
7598};
7599
7600const ::tensorflow::FunctionDef&
7601RegisterFunctionOp::_Internal::function_def(const RegisterFunctionOp* msg) {
7602 return *msg->function_def_;
7603}
7604const ::tensorflow::FunctionDefLibrary&
7605RegisterFunctionOp::_Internal::library(const RegisterFunctionOp* msg) {
7606 return *msg->library_;
7607}
7608void RegisterFunctionOp::clear_function_def() {
7609 if (GetArenaNoVirtual() == nullptr && function_def_ != nullptr) {
7610 delete function_def_;
7611 }
7612 function_def_ = nullptr;
7613}
7614void RegisterFunctionOp::clear_library() {
7615 if (GetArenaNoVirtual() == nullptr && library_ != nullptr) {
7616 delete library_;
7617 }
7618 library_ = nullptr;
7619}
7620RegisterFunctionOp::RegisterFunctionOp()
7621 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7622 SharedCtor();
7623 // @@protoc_insertion_point(constructor:tensorflow.eager.RegisterFunctionOp)
7624}
7625RegisterFunctionOp::RegisterFunctionOp(const RegisterFunctionOp& from)
7626 : ::PROTOBUF_NAMESPACE_ID::Message(),
7627 _internal_metadata_(nullptr) {
7628 _internal_metadata_.MergeFrom(from._internal_metadata_);
7629 if (from.has_function_def()) {
7630 function_def_ = new ::tensorflow::FunctionDef(*from.function_def_);
7631 } else {
7632 function_def_ = nullptr;
7633 }
7634 if (from.has_library()) {
7635 library_ = new ::tensorflow::FunctionDefLibrary(*from.library_);
7636 } else {
7637 library_ = nullptr;
7638 }
7639 is_component_function_ = from.is_component_function_;
7640 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.RegisterFunctionOp)
7641}
7642
7643void RegisterFunctionOp::SharedCtor() {
7644 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
7645 ::memset(&function_def_, 0, static_cast<size_t>(
7646 reinterpret_cast<char*>(&is_component_function_) -
7647 reinterpret_cast<char*>(&function_def_)) + sizeof(is_component_function_));
7648}
7649
7650RegisterFunctionOp::~RegisterFunctionOp() {
7651 // @@protoc_insertion_point(destructor:tensorflow.eager.RegisterFunctionOp)
7652 SharedDtor();
7653}
7654
7655void RegisterFunctionOp::SharedDtor() {
7656 if (this != internal_default_instance()) delete function_def_;
7657 if (this != internal_default_instance()) delete library_;
7658}
7659
7660void RegisterFunctionOp::SetCachedSize(int size) const {
7661 _cached_size_.Set(size);
7662}
7663const RegisterFunctionOp& RegisterFunctionOp::default_instance() {
7664 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RegisterFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
7665 return *internal_default_instance();
7666}
7667
7668
7669void RegisterFunctionOp::Clear() {
7670// @@protoc_insertion_point(message_clear_start:tensorflow.eager.RegisterFunctionOp)
7671 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7672 // Prevent compiler warnings about cached_has_bits being unused
7673 (void) cached_has_bits;
7674
7675 if (GetArenaNoVirtual() == nullptr && function_def_ != nullptr) {
7676 delete function_def_;
7677 }
7678 function_def_ = nullptr;
7679 if (GetArenaNoVirtual() == nullptr && library_ != nullptr) {
7680 delete library_;
7681 }
7682 library_ = nullptr;
7683 is_component_function_ = false;
7684 _internal_metadata_.Clear();
7685}
7686
7687#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7688const char* RegisterFunctionOp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7689#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7690 while (!ctx->Done(&ptr)) {
7691 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7692 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7693 CHK_(ptr);
7694 switch (tag >> 3) {
7695 // .tensorflow.FunctionDef function_def = 1;
7696 case 1:
7697 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7698 ptr = ctx->ParseMessage(mutable_function_def(), ptr);
7699 CHK_(ptr);
7700 } else goto handle_unusual;
7701 continue;
7702 // bool is_component_function = 2;
7703 case 2:
7704 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
7705 is_component_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7706 CHK_(ptr);
7707 } else goto handle_unusual;
7708 continue;
7709 // .tensorflow.FunctionDefLibrary library = 3;
7710 case 3:
7711 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
7712 ptr = ctx->ParseMessage(mutable_library(), ptr);
7713 CHK_(ptr);
7714 } else goto handle_unusual;
7715 continue;
7716 default: {
7717 handle_unusual:
7718 if ((tag & 7) == 4 || tag == 0) {
7719 ctx->SetLastTag(tag);
7720 goto success;
7721 }
7722 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7723 CHK_(ptr != nullptr);
7724 continue;
7725 }
7726 } // switch
7727 } // while
7728success:
7729 return ptr;
7730failure:
7731 ptr = nullptr;
7732 goto success;
7733#undef CHK_
7734}
7735#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7736bool RegisterFunctionOp::MergePartialFromCodedStream(
7737 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7738#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7739 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7740 // @@protoc_insertion_point(parse_start:tensorflow.eager.RegisterFunctionOp)
7741 for (;;) {
7742 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7743 tag = p.first;
7744 if (!p.second) goto handle_unusual;
7745 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7746 // .tensorflow.FunctionDef function_def = 1;
7747 case 1: {
7748 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
7749 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7750 input, mutable_function_def()));
7751 } else {
7752 goto handle_unusual;
7753 }
7754 break;
7755 }
7756
7757 // bool is_component_function = 2;
7758 case 2: {
7759 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
7760
7761 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7762 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
7763 input, &is_component_function_)));
7764 } else {
7765 goto handle_unusual;
7766 }
7767 break;
7768 }
7769
7770 // .tensorflow.FunctionDefLibrary library = 3;
7771 case 3: {
7772 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
7773 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7774 input, mutable_library()));
7775 } else {
7776 goto handle_unusual;
7777 }
7778 break;
7779 }
7780
7781 default: {
7782 handle_unusual:
7783 if (tag == 0) {
7784 goto success;
7785 }
7786 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7787 input, tag, _internal_metadata_.mutable_unknown_fields()));
7788 break;
7789 }
7790 }
7791 }
7792success:
7793 // @@protoc_insertion_point(parse_success:tensorflow.eager.RegisterFunctionOp)
7794 return true;
7795failure:
7796 // @@protoc_insertion_point(parse_failure:tensorflow.eager.RegisterFunctionOp)
7797 return false;
7798#undef DO_
7799}
7800#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7801
7802void RegisterFunctionOp::SerializeWithCachedSizes(
7803 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7804 // @@protoc_insertion_point(serialize_start:tensorflow.eager.RegisterFunctionOp)
7805 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7806 (void) cached_has_bits;
7807
7808 // .tensorflow.FunctionDef function_def = 1;
7809 if (this->has_function_def()) {
7810 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7811 1, _Internal::function_def(this), output);
7812 }
7813
7814 // bool is_component_function = 2;
7815 if (this->is_component_function() != 0) {
7816 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->is_component_function(), output);
7817 }
7818
7819 // .tensorflow.FunctionDefLibrary library = 3;
7820 if (this->has_library()) {
7821 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7822 3, _Internal::library(this), output);
7823 }
7824
7825 if (_internal_metadata_.have_unknown_fields()) {
7826 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7827 _internal_metadata_.unknown_fields(), output);
7828 }
7829 // @@protoc_insertion_point(serialize_end:tensorflow.eager.RegisterFunctionOp)
7830}
7831
7832::PROTOBUF_NAMESPACE_ID::uint8* RegisterFunctionOp::InternalSerializeWithCachedSizesToArray(
7833 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7834 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.RegisterFunctionOp)
7835 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7836 (void) cached_has_bits;
7837
7838 // .tensorflow.FunctionDef function_def = 1;
7839 if (this->has_function_def()) {
7840 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7841 InternalWriteMessageToArray(
7842 1, _Internal::function_def(this), target);
7843 }
7844
7845 // bool is_component_function = 2;
7846 if (this->is_component_function() != 0) {
7847 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->is_component_function(), target);
7848 }
7849
7850 // .tensorflow.FunctionDefLibrary library = 3;
7851 if (this->has_library()) {
7852 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7853 InternalWriteMessageToArray(
7854 3, _Internal::library(this), target);
7855 }
7856
7857 if (_internal_metadata_.have_unknown_fields()) {
7858 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7859 _internal_metadata_.unknown_fields(), target);
7860 }
7861 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.RegisterFunctionOp)
7862 return target;
7863}
7864
7865size_t RegisterFunctionOp::ByteSizeLong() const {
7866// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.RegisterFunctionOp)
7867 size_t total_size = 0;
7868
7869 if (_internal_metadata_.have_unknown_fields()) {
7870 total_size +=
7871 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7872 _internal_metadata_.unknown_fields());
7873 }
7874 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7875 // Prevent compiler warnings about cached_has_bits being unused
7876 (void) cached_has_bits;
7877
7878 // .tensorflow.FunctionDef function_def = 1;
7879 if (this->has_function_def()) {
7880 total_size += 1 +
7881 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7882 *function_def_);
7883 }
7884
7885 // .tensorflow.FunctionDefLibrary library = 3;
7886 if (this->has_library()) {
7887 total_size += 1 +
7888 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7889 *library_);
7890 }
7891
7892 // bool is_component_function = 2;
7893 if (this->is_component_function() != 0) {
7894 total_size += 1 + 1;
7895 }
7896
7897 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7898 SetCachedSize(cached_size);
7899 return total_size;
7900}
7901
7902void RegisterFunctionOp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7903// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.RegisterFunctionOp)
7904 GOOGLE_DCHECK_NE(&from, this);
7905 const RegisterFunctionOp* source =
7906 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegisterFunctionOp>(
7907 &from);
7908 if (source == nullptr) {
7909 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.RegisterFunctionOp)
7910 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7911 } else {
7912 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.RegisterFunctionOp)
7913 MergeFrom(*source);
7914 }
7915}
7916
7917void RegisterFunctionOp::MergeFrom(const RegisterFunctionOp& from) {
7918// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.RegisterFunctionOp)
7919 GOOGLE_DCHECK_NE(&from, this);
7920 _internal_metadata_.MergeFrom(from._internal_metadata_);
7921 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7922 (void) cached_has_bits;
7923
7924 if (from.has_function_def()) {
7925 mutable_function_def()->::tensorflow::FunctionDef::MergeFrom(from.function_def());
7926 }
7927 if (from.has_library()) {
7928 mutable_library()->::tensorflow::FunctionDefLibrary::MergeFrom(from.library());
7929 }
7930 if (from.is_component_function() != 0) {
7931 set_is_component_function(from.is_component_function());
7932 }
7933}
7934
7935void RegisterFunctionOp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7936// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.RegisterFunctionOp)
7937 if (&from == this) return;
7938 Clear();
7939 MergeFrom(from);
7940}
7941
7942void RegisterFunctionOp::CopyFrom(const RegisterFunctionOp& from) {
7943// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.RegisterFunctionOp)
7944 if (&from == this) return;
7945 Clear();
7946 MergeFrom(from);
7947}
7948
7949bool RegisterFunctionOp::IsInitialized() const {
7950 return true;
7951}
7952
7953void RegisterFunctionOp::InternalSwap(RegisterFunctionOp* other) {
7954 using std::swap;
7955 _internal_metadata_.Swap(&other->_internal_metadata_);
7956 swap(function_def_, other->function_def_);
7957 swap(library_, other->library_);
7958 swap(is_component_function_, other->is_component_function_);
7959}
7960
7961::PROTOBUF_NAMESPACE_ID::Metadata RegisterFunctionOp::GetMetadata() const {
7962 return GetMetadataStatic();
7963}
7964
7965
7966// ===================================================================
7967
7968void CleanupFunctionOp::InitAsDefaultInstance() {
7969}
7970class CleanupFunctionOp::_Internal {
7971 public:
7972};
7973
7974CleanupFunctionOp::CleanupFunctionOp()
7975 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7976 SharedCtor();
7977 // @@protoc_insertion_point(constructor:tensorflow.eager.CleanupFunctionOp)
7978}
7979CleanupFunctionOp::CleanupFunctionOp(const CleanupFunctionOp& from)
7980 : ::PROTOBUF_NAMESPACE_ID::Message(),
7981 _internal_metadata_(nullptr) {
7982 _internal_metadata_.MergeFrom(from._internal_metadata_);
7983 step_id_ = from.step_id_;
7984 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.CleanupFunctionOp)
7985}
7986
7987void CleanupFunctionOp::SharedCtor() {
7988 step_id_ = PROTOBUF_LONGLONG(0);
7989}
7990
7991CleanupFunctionOp::~CleanupFunctionOp() {
7992 // @@protoc_insertion_point(destructor:tensorflow.eager.CleanupFunctionOp)
7993 SharedDtor();
7994}
7995
7996void CleanupFunctionOp::SharedDtor() {
7997}
7998
7999void CleanupFunctionOp::SetCachedSize(int size) const {
8000 _cached_size_.Set(size);
8001}
8002const CleanupFunctionOp& CleanupFunctionOp::default_instance() {
8003 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanupFunctionOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8004 return *internal_default_instance();
8005}
8006
8007
8008void CleanupFunctionOp::Clear() {
8009// @@protoc_insertion_point(message_clear_start:tensorflow.eager.CleanupFunctionOp)
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 step_id_ = PROTOBUF_LONGLONG(0);
8015 _internal_metadata_.Clear();
8016}
8017
8018#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8019const char* CleanupFunctionOp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8020#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8021 while (!ctx->Done(&ptr)) {
8022 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8023 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8024 CHK_(ptr);
8025 switch (tag >> 3) {
8026 // int64 step_id = 1;
8027 case 1:
8028 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
8029 step_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8030 CHK_(ptr);
8031 } else goto handle_unusual;
8032 continue;
8033 default: {
8034 handle_unusual:
8035 if ((tag & 7) == 4 || tag == 0) {
8036 ctx->SetLastTag(tag);
8037 goto success;
8038 }
8039 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8040 CHK_(ptr != nullptr);
8041 continue;
8042 }
8043 } // switch
8044 } // while
8045success:
8046 return ptr;
8047failure:
8048 ptr = nullptr;
8049 goto success;
8050#undef CHK_
8051}
8052#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8053bool CleanupFunctionOp::MergePartialFromCodedStream(
8054 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8055#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8056 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8057 // @@protoc_insertion_point(parse_start:tensorflow.eager.CleanupFunctionOp)
8058 for (;;) {
8059 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8060 tag = p.first;
8061 if (!p.second) goto handle_unusual;
8062 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8063 // int64 step_id = 1;
8064 case 1: {
8065 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
8066
8067 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8068 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
8069 input, &step_id_)));
8070 } else {
8071 goto handle_unusual;
8072 }
8073 break;
8074 }
8075
8076 default: {
8077 handle_unusual:
8078 if (tag == 0) {
8079 goto success;
8080 }
8081 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8082 input, tag, _internal_metadata_.mutable_unknown_fields()));
8083 break;
8084 }
8085 }
8086 }
8087success:
8088 // @@protoc_insertion_point(parse_success:tensorflow.eager.CleanupFunctionOp)
8089 return true;
8090failure:
8091 // @@protoc_insertion_point(parse_failure:tensorflow.eager.CleanupFunctionOp)
8092 return false;
8093#undef DO_
8094}
8095#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8096
8097void CleanupFunctionOp::SerializeWithCachedSizes(
8098 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8099 // @@protoc_insertion_point(serialize_start:tensorflow.eager.CleanupFunctionOp)
8100 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8101 (void) cached_has_bits;
8102
8103 // int64 step_id = 1;
8104 if (this->step_id() != 0) {
8105 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->step_id(), output);
8106 }
8107
8108 if (_internal_metadata_.have_unknown_fields()) {
8109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8110 _internal_metadata_.unknown_fields(), output);
8111 }
8112 // @@protoc_insertion_point(serialize_end:tensorflow.eager.CleanupFunctionOp)
8113}
8114
8115::PROTOBUF_NAMESPACE_ID::uint8* CleanupFunctionOp::InternalSerializeWithCachedSizesToArray(
8116 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8117 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.CleanupFunctionOp)
8118 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8119 (void) cached_has_bits;
8120
8121 // int64 step_id = 1;
8122 if (this->step_id() != 0) {
8123 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->step_id(), target);
8124 }
8125
8126 if (_internal_metadata_.have_unknown_fields()) {
8127 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8128 _internal_metadata_.unknown_fields(), target);
8129 }
8130 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.CleanupFunctionOp)
8131 return target;
8132}
8133
8134size_t CleanupFunctionOp::ByteSizeLong() const {
8135// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.CleanupFunctionOp)
8136 size_t total_size = 0;
8137
8138 if (_internal_metadata_.have_unknown_fields()) {
8139 total_size +=
8140 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8141 _internal_metadata_.unknown_fields());
8142 }
8143 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8144 // Prevent compiler warnings about cached_has_bits being unused
8145 (void) cached_has_bits;
8146
8147 // int64 step_id = 1;
8148 if (this->step_id() != 0) {
8149 total_size += 1 +
8150 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
8151 this->step_id());
8152 }
8153
8154 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8155 SetCachedSize(cached_size);
8156 return total_size;
8157}
8158
8159void CleanupFunctionOp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8160// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.CleanupFunctionOp)
8161 GOOGLE_DCHECK_NE(&from, this);
8162 const CleanupFunctionOp* source =
8163 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CleanupFunctionOp>(
8164 &from);
8165 if (source == nullptr) {
8166 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.CleanupFunctionOp)
8167 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8168 } else {
8169 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.CleanupFunctionOp)
8170 MergeFrom(*source);
8171 }
8172}
8173
8174void CleanupFunctionOp::MergeFrom(const CleanupFunctionOp& from) {
8175// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.CleanupFunctionOp)
8176 GOOGLE_DCHECK_NE(&from, this);
8177 _internal_metadata_.MergeFrom(from._internal_metadata_);
8178 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8179 (void) cached_has_bits;
8180
8181 if (from.step_id() != 0) {
8182 set_step_id(from.step_id());
8183 }
8184}
8185
8186void CleanupFunctionOp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8187// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.CleanupFunctionOp)
8188 if (&from == this) return;
8189 Clear();
8190 MergeFrom(from);
8191}
8192
8193void CleanupFunctionOp::CopyFrom(const CleanupFunctionOp& from) {
8194// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.CleanupFunctionOp)
8195 if (&from == this) return;
8196 Clear();
8197 MergeFrom(from);
8198}
8199
8200bool CleanupFunctionOp::IsInitialized() const {
8201 return true;
8202}
8203
8204void CleanupFunctionOp::InternalSwap(CleanupFunctionOp* other) {
8205 using std::swap;
8206 _internal_metadata_.Swap(&other->_internal_metadata_);
8207 swap(step_id_, other->step_id_);
8208}
8209
8210::PROTOBUF_NAMESPACE_ID::Metadata CleanupFunctionOp::GetMetadata() const {
8211 return GetMetadataStatic();
8212}
8213
8214
8215// ===================================================================
8216
8217void SyncRemoteExecutorForStream::InitAsDefaultInstance() {
8218}
8219class SyncRemoteExecutorForStream::_Internal {
8220 public:
8221};
8222
8223SyncRemoteExecutorForStream::SyncRemoteExecutorForStream()
8224 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8225 SharedCtor();
8226 // @@protoc_insertion_point(constructor:tensorflow.eager.SyncRemoteExecutorForStream)
8227}
8228SyncRemoteExecutorForStream::SyncRemoteExecutorForStream(const SyncRemoteExecutorForStream& from)
8229 : ::PROTOBUF_NAMESPACE_ID::Message(),
8230 _internal_metadata_(nullptr) {
8231 _internal_metadata_.MergeFrom(from._internal_metadata_);
8232 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.SyncRemoteExecutorForStream)
8233}
8234
8235void SyncRemoteExecutorForStream::SharedCtor() {
8236}
8237
8238SyncRemoteExecutorForStream::~SyncRemoteExecutorForStream() {
8239 // @@protoc_insertion_point(destructor:tensorflow.eager.SyncRemoteExecutorForStream)
8240 SharedDtor();
8241}
8242
8243void SyncRemoteExecutorForStream::SharedDtor() {
8244}
8245
8246void SyncRemoteExecutorForStream::SetCachedSize(int size) const {
8247 _cached_size_.Set(size);
8248}
8249const SyncRemoteExecutorForStream& SyncRemoteExecutorForStream::default_instance() {
8250 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SyncRemoteExecutorForStream_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8251 return *internal_default_instance();
8252}
8253
8254
8255void SyncRemoteExecutorForStream::Clear() {
8256// @@protoc_insertion_point(message_clear_start:tensorflow.eager.SyncRemoteExecutorForStream)
8257 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8258 // Prevent compiler warnings about cached_has_bits being unused
8259 (void) cached_has_bits;
8260
8261 _internal_metadata_.Clear();
8262}
8263
8264#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8265const char* SyncRemoteExecutorForStream::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8266#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8267 while (!ctx->Done(&ptr)) {
8268 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8269 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8270 CHK_(ptr);
8271 switch (tag >> 3) {
8272 default: {
8273 if ((tag & 7) == 4 || tag == 0) {
8274 ctx->SetLastTag(tag);
8275 goto success;
8276 }
8277 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8278 CHK_(ptr != nullptr);
8279 continue;
8280 }
8281 } // switch
8282 } // while
8283success:
8284 return ptr;
8285failure:
8286 ptr = nullptr;
8287 goto success;
8288#undef CHK_
8289}
8290#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8291bool SyncRemoteExecutorForStream::MergePartialFromCodedStream(
8292 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8293#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8294 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8295 // @@protoc_insertion_point(parse_start:tensorflow.eager.SyncRemoteExecutorForStream)
8296 for (;;) {
8297 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8298 tag = p.first;
8299 if (!p.second) goto handle_unusual;
8300 handle_unusual:
8301 if (tag == 0) {
8302 goto success;
8303 }
8304 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8305 input, tag, _internal_metadata_.mutable_unknown_fields()));
8306 }
8307success:
8308 // @@protoc_insertion_point(parse_success:tensorflow.eager.SyncRemoteExecutorForStream)
8309 return true;
8310failure:
8311 // @@protoc_insertion_point(parse_failure:tensorflow.eager.SyncRemoteExecutorForStream)
8312 return false;
8313#undef DO_
8314}
8315#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8316
8317void SyncRemoteExecutorForStream::SerializeWithCachedSizes(
8318 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8319 // @@protoc_insertion_point(serialize_start:tensorflow.eager.SyncRemoteExecutorForStream)
8320 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8321 (void) cached_has_bits;
8322
8323 if (_internal_metadata_.have_unknown_fields()) {
8324 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8325 _internal_metadata_.unknown_fields(), output);
8326 }
8327 // @@protoc_insertion_point(serialize_end:tensorflow.eager.SyncRemoteExecutorForStream)
8328}
8329
8330::PROTOBUF_NAMESPACE_ID::uint8* SyncRemoteExecutorForStream::InternalSerializeWithCachedSizesToArray(
8331 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8332 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.SyncRemoteExecutorForStream)
8333 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8334 (void) cached_has_bits;
8335
8336 if (_internal_metadata_.have_unknown_fields()) {
8337 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8338 _internal_metadata_.unknown_fields(), target);
8339 }
8340 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.SyncRemoteExecutorForStream)
8341 return target;
8342}
8343
8344size_t SyncRemoteExecutorForStream::ByteSizeLong() const {
8345// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.SyncRemoteExecutorForStream)
8346 size_t total_size = 0;
8347
8348 if (_internal_metadata_.have_unknown_fields()) {
8349 total_size +=
8350 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8351 _internal_metadata_.unknown_fields());
8352 }
8353 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8354 // Prevent compiler warnings about cached_has_bits being unused
8355 (void) cached_has_bits;
8356
8357 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8358 SetCachedSize(cached_size);
8359 return total_size;
8360}
8361
8362void SyncRemoteExecutorForStream::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8363// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.SyncRemoteExecutorForStream)
8364 GOOGLE_DCHECK_NE(&from, this);
8365 const SyncRemoteExecutorForStream* source =
8366 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SyncRemoteExecutorForStream>(
8367 &from);
8368 if (source == nullptr) {
8369 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.SyncRemoteExecutorForStream)
8370 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8371 } else {
8372 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.SyncRemoteExecutorForStream)
8373 MergeFrom(*source);
8374 }
8375}
8376
8377void SyncRemoteExecutorForStream::MergeFrom(const SyncRemoteExecutorForStream& from) {
8378// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.SyncRemoteExecutorForStream)
8379 GOOGLE_DCHECK_NE(&from, this);
8380 _internal_metadata_.MergeFrom(from._internal_metadata_);
8381 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8382 (void) cached_has_bits;
8383
8384}
8385
8386void SyncRemoteExecutorForStream::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8387// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.SyncRemoteExecutorForStream)
8388 if (&from == this) return;
8389 Clear();
8390 MergeFrom(from);
8391}
8392
8393void SyncRemoteExecutorForStream::CopyFrom(const SyncRemoteExecutorForStream& from) {
8394// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.SyncRemoteExecutorForStream)
8395 if (&from == this) return;
8396 Clear();
8397 MergeFrom(from);
8398}
8399
8400bool SyncRemoteExecutorForStream::IsInitialized() const {
8401 return true;
8402}
8403
8404void SyncRemoteExecutorForStream::InternalSwap(SyncRemoteExecutorForStream* other) {
8405 using std::swap;
8406 _internal_metadata_.Swap(&other->_internal_metadata_);
8407}
8408
8409::PROTOBUF_NAMESPACE_ID::Metadata SyncRemoteExecutorForStream::GetMetadata() const {
8410 return GetMetadataStatic();
8411}
8412
8413
8414// ===================================================================
8415
8416void SendTensorOp::InitAsDefaultInstance() {
8417}
8418class SendTensorOp::_Internal {
8419 public:
8420};
8421
8422void SendTensorOp::clear_tensors() {
8423 tensors_.Clear();
8424}
8425SendTensorOp::SendTensorOp()
8426 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8427 SharedCtor();
8428 // @@protoc_insertion_point(constructor:tensorflow.eager.SendTensorOp)
8429}
8430SendTensorOp::SendTensorOp(const SendTensorOp& from)
8431 : ::PROTOBUF_NAMESPACE_ID::Message(),
8432 _internal_metadata_(nullptr),
8433 tensors_(from.tensors_) {
8434 _internal_metadata_.MergeFrom(from._internal_metadata_);
8435 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8436 if (!from.device_name().empty()) {
8437 device_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name_);
8438 }
8439 op_id_ = from.op_id_;
8440 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.SendTensorOp)
8441}
8442
8443void SendTensorOp::SharedCtor() {
8444 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8445 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8446 op_id_ = PROTOBUF_LONGLONG(0);
8447}
8448
8449SendTensorOp::~SendTensorOp() {
8450 // @@protoc_insertion_point(destructor:tensorflow.eager.SendTensorOp)
8451 SharedDtor();
8452}
8453
8454void SendTensorOp::SharedDtor() {
8455 device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8456}
8457
8458void SendTensorOp::SetCachedSize(int size) const {
8459 _cached_size_.Set(size);
8460}
8461const SendTensorOp& SendTensorOp::default_instance() {
8462 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendTensorOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8463 return *internal_default_instance();
8464}
8465
8466
8467void SendTensorOp::Clear() {
8468// @@protoc_insertion_point(message_clear_start:tensorflow.eager.SendTensorOp)
8469 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8470 // Prevent compiler warnings about cached_has_bits being unused
8471 (void) cached_has_bits;
8472
8473 tensors_.Clear();
8474 device_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8475 op_id_ = PROTOBUF_LONGLONG(0);
8476 _internal_metadata_.Clear();
8477}
8478
8479#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8480const char* SendTensorOp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8481#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8482 while (!ctx->Done(&ptr)) {
8483 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8484 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8485 CHK_(ptr);
8486 switch (tag >> 3) {
8487 // int64 op_id = 1;
8488 case 1:
8489 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
8490 op_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8491 CHK_(ptr);
8492 } else goto handle_unusual;
8493 continue;
8494 // repeated .tensorflow.TensorProto tensors = 2;
8495 case 2:
8496 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
8497 ptr -= 1;
8498 do {
8499 ptr += 1;
8500 ptr = ctx->ParseMessage(add_tensors(), ptr);
8501 CHK_(ptr);
8502 if (!ctx->DataAvailable(ptr)) break;
8503 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
8504 } else goto handle_unusual;
8505 continue;
8506 // string device_name = 3;
8507 case 3:
8508 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
8509 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_name(), ptr, ctx, "tensorflow.eager.SendTensorOp.device_name");
8510 CHK_(ptr);
8511 } else goto handle_unusual;
8512 continue;
8513 default: {
8514 handle_unusual:
8515 if ((tag & 7) == 4 || tag == 0) {
8516 ctx->SetLastTag(tag);
8517 goto success;
8518 }
8519 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8520 CHK_(ptr != nullptr);
8521 continue;
8522 }
8523 } // switch
8524 } // while
8525success:
8526 return ptr;
8527failure:
8528 ptr = nullptr;
8529 goto success;
8530#undef CHK_
8531}
8532#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8533bool SendTensorOp::MergePartialFromCodedStream(
8534 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8535#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8536 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8537 // @@protoc_insertion_point(parse_start:tensorflow.eager.SendTensorOp)
8538 for (;;) {
8539 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8540 tag = p.first;
8541 if (!p.second) goto handle_unusual;
8542 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8543 // int64 op_id = 1;
8544 case 1: {
8545 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
8546
8547 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8548 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
8549 input, &op_id_)));
8550 } else {
8551 goto handle_unusual;
8552 }
8553 break;
8554 }
8555
8556 // repeated .tensorflow.TensorProto tensors = 2;
8557 case 2: {
8558 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
8559 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
8560 input, add_tensors()));
8561 } else {
8562 goto handle_unusual;
8563 }
8564 break;
8565 }
8566
8567 // string device_name = 3;
8568 case 3: {
8569 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
8570 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8571 input, this->mutable_device_name()));
8572 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8573 this->device_name().data(), static_cast<int>(this->device_name().length()),
8574 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
8575 "tensorflow.eager.SendTensorOp.device_name"));
8576 } else {
8577 goto handle_unusual;
8578 }
8579 break;
8580 }
8581
8582 default: {
8583 handle_unusual:
8584 if (tag == 0) {
8585 goto success;
8586 }
8587 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8588 input, tag, _internal_metadata_.mutable_unknown_fields()));
8589 break;
8590 }
8591 }
8592 }
8593success:
8594 // @@protoc_insertion_point(parse_success:tensorflow.eager.SendTensorOp)
8595 return true;
8596failure:
8597 // @@protoc_insertion_point(parse_failure:tensorflow.eager.SendTensorOp)
8598 return false;
8599#undef DO_
8600}
8601#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8602
8603void SendTensorOp::SerializeWithCachedSizes(
8604 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8605 // @@protoc_insertion_point(serialize_start:tensorflow.eager.SendTensorOp)
8606 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8607 (void) cached_has_bits;
8608
8609 // int64 op_id = 1;
8610 if (this->op_id() != 0) {
8611 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->op_id(), output);
8612 }
8613
8614 // repeated .tensorflow.TensorProto tensors = 2;
8615 for (unsigned int i = 0,
8616 n = static_cast<unsigned int>(this->tensors_size()); i < n; i++) {
8617 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
8618 2,
8619 this->tensors(static_cast<int>(i)),
8620 output);
8621 }
8622
8623 // string device_name = 3;
8624 if (this->device_name().size() > 0) {
8625 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8626 this->device_name().data(), static_cast<int>(this->device_name().length()),
8627 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8628 "tensorflow.eager.SendTensorOp.device_name");
8629 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
8630 3, this->device_name(), output);
8631 }
8632
8633 if (_internal_metadata_.have_unknown_fields()) {
8634 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8635 _internal_metadata_.unknown_fields(), output);
8636 }
8637 // @@protoc_insertion_point(serialize_end:tensorflow.eager.SendTensorOp)
8638}
8639
8640::PROTOBUF_NAMESPACE_ID::uint8* SendTensorOp::InternalSerializeWithCachedSizesToArray(
8641 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8642 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.SendTensorOp)
8643 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8644 (void) cached_has_bits;
8645
8646 // int64 op_id = 1;
8647 if (this->op_id() != 0) {
8648 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->op_id(), target);
8649 }
8650
8651 // repeated .tensorflow.TensorProto tensors = 2;
8652 for (unsigned int i = 0,
8653 n = static_cast<unsigned int>(this->tensors_size()); i < n; i++) {
8654 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8655 InternalWriteMessageToArray(
8656 2, this->tensors(static_cast<int>(i)), target);
8657 }
8658
8659 // string device_name = 3;
8660 if (this->device_name().size() > 0) {
8661 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8662 this->device_name().data(), static_cast<int>(this->device_name().length()),
8663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8664 "tensorflow.eager.SendTensorOp.device_name");
8665 target =
8666 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
8667 3, this->device_name(), target);
8668 }
8669
8670 if (_internal_metadata_.have_unknown_fields()) {
8671 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8672 _internal_metadata_.unknown_fields(), target);
8673 }
8674 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.SendTensorOp)
8675 return target;
8676}
8677
8678size_t SendTensorOp::ByteSizeLong() const {
8679// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.SendTensorOp)
8680 size_t total_size = 0;
8681
8682 if (_internal_metadata_.have_unknown_fields()) {
8683 total_size +=
8684 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8685 _internal_metadata_.unknown_fields());
8686 }
8687 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8688 // Prevent compiler warnings about cached_has_bits being unused
8689 (void) cached_has_bits;
8690
8691 // repeated .tensorflow.TensorProto tensors = 2;
8692 {
8693 unsigned int count = static_cast<unsigned int>(this->tensors_size());
8694 total_size += 1UL * count;
8695 for (unsigned int i = 0; i < count; i++) {
8696 total_size +=
8697 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8698 this->tensors(static_cast<int>(i)));
8699 }
8700 }
8701
8702 // string device_name = 3;
8703 if (this->device_name().size() > 0) {
8704 total_size += 1 +
8705 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8706 this->device_name());
8707 }
8708
8709 // int64 op_id = 1;
8710 if (this->op_id() != 0) {
8711 total_size += 1 +
8712 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
8713 this->op_id());
8714 }
8715
8716 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8717 SetCachedSize(cached_size);
8718 return total_size;
8719}
8720
8721void SendTensorOp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8722// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.SendTensorOp)
8723 GOOGLE_DCHECK_NE(&from, this);
8724 const SendTensorOp* source =
8725 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendTensorOp>(
8726 &from);
8727 if (source == nullptr) {
8728 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.SendTensorOp)
8729 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8730 } else {
8731 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.SendTensorOp)
8732 MergeFrom(*source);
8733 }
8734}
8735
8736void SendTensorOp::MergeFrom(const SendTensorOp& from) {
8737// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.SendTensorOp)
8738 GOOGLE_DCHECK_NE(&from, this);
8739 _internal_metadata_.MergeFrom(from._internal_metadata_);
8740 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8741 (void) cached_has_bits;
8742
8743 tensors_.MergeFrom(from.tensors_);
8744 if (from.device_name().size() > 0) {
8745
8746 device_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name_);
8747 }
8748 if (from.op_id() != 0) {
8749 set_op_id(from.op_id());
8750 }
8751}
8752
8753void SendTensorOp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8754// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.SendTensorOp)
8755 if (&from == this) return;
8756 Clear();
8757 MergeFrom(from);
8758}
8759
8760void SendTensorOp::CopyFrom(const SendTensorOp& from) {
8761// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.SendTensorOp)
8762 if (&from == this) return;
8763 Clear();
8764 MergeFrom(from);
8765}
8766
8767bool SendTensorOp::IsInitialized() const {
8768 return true;
8769}
8770
8771void SendTensorOp::InternalSwap(SendTensorOp* other) {
8772 using std::swap;
8773 _internal_metadata_.Swap(&other->_internal_metadata_);
8774 CastToBase(&tensors_)->InternalSwap(CastToBase(&other->tensors_));
8775 device_name_.Swap(&other->device_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8776 GetArenaNoVirtual());
8777 swap(op_id_, other->op_id_);
8778}
8779
8780::PROTOBUF_NAMESPACE_ID::Metadata SendTensorOp::GetMetadata() const {
8781 return GetMetadataStatic();
8782}
8783
8784
8785// ===================================================================
8786
8787void SendPackedHandleOp_LocalTensorHandle::InitAsDefaultInstance() {
8788 ::tensorflow::eager::_SendPackedHandleOp_LocalTensorHandle_default_instance_._instance.get_mutable()->tensor_ = const_cast< ::tensorflow::TensorProto*>(
8789 ::tensorflow::TensorProto::internal_default_instance());
8790}
8791class SendPackedHandleOp_LocalTensorHandle::_Internal {
8792 public:
8793 static const ::tensorflow::TensorProto& tensor(const SendPackedHandleOp_LocalTensorHandle* msg);
8794};
8795
8796const ::tensorflow::TensorProto&
8797SendPackedHandleOp_LocalTensorHandle::_Internal::tensor(const SendPackedHandleOp_LocalTensorHandle* msg) {
8798 return *msg->tensor_;
8799}
8800void SendPackedHandleOp_LocalTensorHandle::clear_tensor() {
8801 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
8802 delete tensor_;
8803 }
8804 tensor_ = nullptr;
8805}
8806SendPackedHandleOp_LocalTensorHandle::SendPackedHandleOp_LocalTensorHandle()
8807 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8808 SharedCtor();
8809 // @@protoc_insertion_point(constructor:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8810}
8811SendPackedHandleOp_LocalTensorHandle::SendPackedHandleOp_LocalTensorHandle(const SendPackedHandleOp_LocalTensorHandle& from)
8812 : ::PROTOBUF_NAMESPACE_ID::Message(),
8813 _internal_metadata_(nullptr) {
8814 _internal_metadata_.MergeFrom(from._internal_metadata_);
8815 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8816 if (!from.device().empty()) {
8817 device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_);
8818 }
8819 if (from.has_tensor()) {
8820 tensor_ = new ::tensorflow::TensorProto(*from.tensor_);
8821 } else {
8822 tensor_ = nullptr;
8823 }
8824 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8825}
8826
8827void SendPackedHandleOp_LocalTensorHandle::SharedCtor() {
8828 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8829 device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8830 tensor_ = nullptr;
8831}
8832
8833SendPackedHandleOp_LocalTensorHandle::~SendPackedHandleOp_LocalTensorHandle() {
8834 // @@protoc_insertion_point(destructor:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8835 SharedDtor();
8836}
8837
8838void SendPackedHandleOp_LocalTensorHandle::SharedDtor() {
8839 device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8840 if (this != internal_default_instance()) delete tensor_;
8841}
8842
8843void SendPackedHandleOp_LocalTensorHandle::SetCachedSize(int size) const {
8844 _cached_size_.Set(size);
8845}
8846const SendPackedHandleOp_LocalTensorHandle& SendPackedHandleOp_LocalTensorHandle::default_instance() {
8847 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendPackedHandleOp_LocalTensorHandle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
8848 return *internal_default_instance();
8849}
8850
8851
8852void SendPackedHandleOp_LocalTensorHandle::Clear() {
8853// @@protoc_insertion_point(message_clear_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8854 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8855 // Prevent compiler warnings about cached_has_bits being unused
8856 (void) cached_has_bits;
8857
8858 device_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8859 if (GetArenaNoVirtual() == nullptr && tensor_ != nullptr) {
8860 delete tensor_;
8861 }
8862 tensor_ = nullptr;
8863 _internal_metadata_.Clear();
8864}
8865
8866#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8867const char* SendPackedHandleOp_LocalTensorHandle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8868#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8869 while (!ctx->Done(&ptr)) {
8870 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8871 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8872 CHK_(ptr);
8873 switch (tag >> 3) {
8874 // .tensorflow.TensorProto tensor = 1;
8875 case 1:
8876 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
8877 ptr = ctx->ParseMessage(mutable_tensor(), ptr);
8878 CHK_(ptr);
8879 } else goto handle_unusual;
8880 continue;
8881 // string device = 2;
8882 case 2:
8883 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
8884 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device(), ptr, ctx, "tensorflow.eager.SendPackedHandleOp.LocalTensorHandle.device");
8885 CHK_(ptr);
8886 } else goto handle_unusual;
8887 continue;
8888 default: {
8889 handle_unusual:
8890 if ((tag & 7) == 4 || tag == 0) {
8891 ctx->SetLastTag(tag);
8892 goto success;
8893 }
8894 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8895 CHK_(ptr != nullptr);
8896 continue;
8897 }
8898 } // switch
8899 } // while
8900success:
8901 return ptr;
8902failure:
8903 ptr = nullptr;
8904 goto success;
8905#undef CHK_
8906}
8907#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8908bool SendPackedHandleOp_LocalTensorHandle::MergePartialFromCodedStream(
8909 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8910#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8911 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8912 // @@protoc_insertion_point(parse_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8913 for (;;) {
8914 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8915 tag = p.first;
8916 if (!p.second) goto handle_unusual;
8917 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8918 // .tensorflow.TensorProto tensor = 1;
8919 case 1: {
8920 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
8921 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
8922 input, mutable_tensor()));
8923 } else {
8924 goto handle_unusual;
8925 }
8926 break;
8927 }
8928
8929 // string device = 2;
8930 case 2: {
8931 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
8932 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8933 input, this->mutable_device()));
8934 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8935 this->device().data(), static_cast<int>(this->device().length()),
8936 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
8937 "tensorflow.eager.SendPackedHandleOp.LocalTensorHandle.device"));
8938 } else {
8939 goto handle_unusual;
8940 }
8941 break;
8942 }
8943
8944 default: {
8945 handle_unusual:
8946 if (tag == 0) {
8947 goto success;
8948 }
8949 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
8950 input, tag, _internal_metadata_.mutable_unknown_fields()));
8951 break;
8952 }
8953 }
8954 }
8955success:
8956 // @@protoc_insertion_point(parse_success:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8957 return true;
8958failure:
8959 // @@protoc_insertion_point(parse_failure:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8960 return false;
8961#undef DO_
8962}
8963#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8964
8965void SendPackedHandleOp_LocalTensorHandle::SerializeWithCachedSizes(
8966 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
8967 // @@protoc_insertion_point(serialize_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8968 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8969 (void) cached_has_bits;
8970
8971 // .tensorflow.TensorProto tensor = 1;
8972 if (this->has_tensor()) {
8973 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
8974 1, _Internal::tensor(this), output);
8975 }
8976
8977 // string device = 2;
8978 if (this->device().size() > 0) {
8979 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8980 this->device().data(), static_cast<int>(this->device().length()),
8981 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8982 "tensorflow.eager.SendPackedHandleOp.LocalTensorHandle.device");
8983 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
8984 2, this->device(), output);
8985 }
8986
8987 if (_internal_metadata_.have_unknown_fields()) {
8988 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8989 _internal_metadata_.unknown_fields(), output);
8990 }
8991 // @@protoc_insertion_point(serialize_end:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8992}
8993
8994::PROTOBUF_NAMESPACE_ID::uint8* SendPackedHandleOp_LocalTensorHandle::InternalSerializeWithCachedSizesToArray(
8995 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8996 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
8997 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8998 (void) cached_has_bits;
8999
9000 // .tensorflow.TensorProto tensor = 1;
9001 if (this->has_tensor()) {
9002 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9003 InternalWriteMessageToArray(
9004 1, _Internal::tensor(this), target);
9005 }
9006
9007 // string device = 2;
9008 if (this->device().size() > 0) {
9009 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9010 this->device().data(), static_cast<int>(this->device().length()),
9011 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9012 "tensorflow.eager.SendPackedHandleOp.LocalTensorHandle.device");
9013 target =
9014 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9015 2, this->device(), target);
9016 }
9017
9018 if (_internal_metadata_.have_unknown_fields()) {
9019 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9020 _internal_metadata_.unknown_fields(), target);
9021 }
9022 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9023 return target;
9024}
9025
9026size_t SendPackedHandleOp_LocalTensorHandle::ByteSizeLong() const {
9027// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9028 size_t total_size = 0;
9029
9030 if (_internal_metadata_.have_unknown_fields()) {
9031 total_size +=
9032 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9033 _internal_metadata_.unknown_fields());
9034 }
9035 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9036 // Prevent compiler warnings about cached_has_bits being unused
9037 (void) cached_has_bits;
9038
9039 // string device = 2;
9040 if (this->device().size() > 0) {
9041 total_size += 1 +
9042 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9043 this->device());
9044 }
9045
9046 // .tensorflow.TensorProto tensor = 1;
9047 if (this->has_tensor()) {
9048 total_size += 1 +
9049 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9050 *tensor_);
9051 }
9052
9053 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9054 SetCachedSize(cached_size);
9055 return total_size;
9056}
9057
9058void SendPackedHandleOp_LocalTensorHandle::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9059// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9060 GOOGLE_DCHECK_NE(&from, this);
9061 const SendPackedHandleOp_LocalTensorHandle* source =
9062 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendPackedHandleOp_LocalTensorHandle>(
9063 &from);
9064 if (source == nullptr) {
9065 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9066 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9067 } else {
9068 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9069 MergeFrom(*source);
9070 }
9071}
9072
9073void SendPackedHandleOp_LocalTensorHandle::MergeFrom(const SendPackedHandleOp_LocalTensorHandle& from) {
9074// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9075 GOOGLE_DCHECK_NE(&from, this);
9076 _internal_metadata_.MergeFrom(from._internal_metadata_);
9077 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9078 (void) cached_has_bits;
9079
9080 if (from.device().size() > 0) {
9081
9082 device_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_);
9083 }
9084 if (from.has_tensor()) {
9085 mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor());
9086 }
9087}
9088
9089void SendPackedHandleOp_LocalTensorHandle::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9090// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9091 if (&from == this) return;
9092 Clear();
9093 MergeFrom(from);
9094}
9095
9096void SendPackedHandleOp_LocalTensorHandle::CopyFrom(const SendPackedHandleOp_LocalTensorHandle& from) {
9097// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.SendPackedHandleOp.LocalTensorHandle)
9098 if (&from == this) return;
9099 Clear();
9100 MergeFrom(from);
9101}
9102
9103bool SendPackedHandleOp_LocalTensorHandle::IsInitialized() const {
9104 return true;
9105}
9106
9107void SendPackedHandleOp_LocalTensorHandle::InternalSwap(SendPackedHandleOp_LocalTensorHandle* other) {
9108 using std::swap;
9109 _internal_metadata_.Swap(&other->_internal_metadata_);
9110 device_.Swap(&other->device_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9111 GetArenaNoVirtual());
9112 swap(tensor_, other->tensor_);
9113}
9114
9115::PROTOBUF_NAMESPACE_ID::Metadata SendPackedHandleOp_LocalTensorHandle::GetMetadata() const {
9116 return GetMetadataStatic();
9117}
9118
9119
9120// ===================================================================
9121
9122void SendPackedHandleOp_Handle::InitAsDefaultInstance() {
9123 ::tensorflow::eager::_SendPackedHandleOp_Handle_default_instance_.local_handle_ = const_cast< ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle*>(
9124 ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle::internal_default_instance());
9125 ::tensorflow::eager::_SendPackedHandleOp_Handle_default_instance_.remote_handle_ = const_cast< ::tensorflow::eager::RemoteTensorHandle*>(
9126 ::tensorflow::eager::RemoteTensorHandle::internal_default_instance());
9127}
9128class SendPackedHandleOp_Handle::_Internal {
9129 public:
9130 static const ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle& local_handle(const SendPackedHandleOp_Handle* msg);
9131 static const ::tensorflow::eager::RemoteTensorHandle& remote_handle(const SendPackedHandleOp_Handle* msg);
9132};
9133
9134const ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle&
9135SendPackedHandleOp_Handle::_Internal::local_handle(const SendPackedHandleOp_Handle* msg) {
9136 return *msg->item_.local_handle_;
9137}
9138const ::tensorflow::eager::RemoteTensorHandle&
9139SendPackedHandleOp_Handle::_Internal::remote_handle(const SendPackedHandleOp_Handle* msg) {
9140 return *msg->item_.remote_handle_;
9141}
9142void SendPackedHandleOp_Handle::set_allocated_local_handle(::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle* local_handle) {
9143 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
9144 clear_item();
9145 if (local_handle) {
9146 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
9147 if (message_arena != submessage_arena) {
9148 local_handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
9149 message_arena, local_handle, submessage_arena);
9150 }
9151 set_has_local_handle();
9152 item_.local_handle_ = local_handle;
9153 }
9154 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.SendPackedHandleOp.Handle.local_handle)
9155}
9156void SendPackedHandleOp_Handle::set_allocated_remote_handle(::tensorflow::eager::RemoteTensorHandle* remote_handle) {
9157 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
9158 clear_item();
9159 if (remote_handle) {
9160 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
9161 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(remote_handle)->GetArena();
9162 if (message_arena != submessage_arena) {
9163 remote_handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
9164 message_arena, remote_handle, submessage_arena);
9165 }
9166 set_has_remote_handle();
9167 item_.remote_handle_ = remote_handle;
9168 }
9169 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.SendPackedHandleOp.Handle.remote_handle)
9170}
9171void SendPackedHandleOp_Handle::clear_remote_handle() {
9172 if (has_remote_handle()) {
9173 delete item_.remote_handle_;
9174 clear_has_item();
9175 }
9176}
9177SendPackedHandleOp_Handle::SendPackedHandleOp_Handle()
9178 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9179 SharedCtor();
9180 // @@protoc_insertion_point(constructor:tensorflow.eager.SendPackedHandleOp.Handle)
9181}
9182SendPackedHandleOp_Handle::SendPackedHandleOp_Handle(const SendPackedHandleOp_Handle& from)
9183 : ::PROTOBUF_NAMESPACE_ID::Message(),
9184 _internal_metadata_(nullptr) {
9185 _internal_metadata_.MergeFrom(from._internal_metadata_);
9186 clear_has_item();
9187 switch (from.item_case()) {
9188 case kLocalHandle: {
9189 mutable_local_handle()->::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle::MergeFrom(from.local_handle());
9190 break;
9191 }
9192 case kRemoteHandle: {
9193 mutable_remote_handle()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.remote_handle());
9194 break;
9195 }
9196 case ITEM_NOT_SET: {
9197 break;
9198 }
9199 }
9200 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.SendPackedHandleOp.Handle)
9201}
9202
9203void SendPackedHandleOp_Handle::SharedCtor() {
9204 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
9205 clear_has_item();
9206}
9207
9208SendPackedHandleOp_Handle::~SendPackedHandleOp_Handle() {
9209 // @@protoc_insertion_point(destructor:tensorflow.eager.SendPackedHandleOp.Handle)
9210 SharedDtor();
9211}
9212
9213void SendPackedHandleOp_Handle::SharedDtor() {
9214 if (has_item()) {
9215 clear_item();
9216 }
9217}
9218
9219void SendPackedHandleOp_Handle::SetCachedSize(int size) const {
9220 _cached_size_.Set(size);
9221}
9222const SendPackedHandleOp_Handle& SendPackedHandleOp_Handle::default_instance() {
9223 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendPackedHandleOp_Handle_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
9224 return *internal_default_instance();
9225}
9226
9227
9228void SendPackedHandleOp_Handle::clear_item() {
9229// @@protoc_insertion_point(one_of_clear_start:tensorflow.eager.SendPackedHandleOp.Handle)
9230 switch (item_case()) {
9231 case kLocalHandle: {
9232 delete item_.local_handle_;
9233 break;
9234 }
9235 case kRemoteHandle: {
9236 delete item_.remote_handle_;
9237 break;
9238 }
9239 case ITEM_NOT_SET: {
9240 break;
9241 }
9242 }
9243 _oneof_case_[0] = ITEM_NOT_SET;
9244}
9245
9246
9247void SendPackedHandleOp_Handle::Clear() {
9248// @@protoc_insertion_point(message_clear_start:tensorflow.eager.SendPackedHandleOp.Handle)
9249 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9250 // Prevent compiler warnings about cached_has_bits being unused
9251 (void) cached_has_bits;
9252
9253 clear_item();
9254 _internal_metadata_.Clear();
9255}
9256
9257#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9258const char* SendPackedHandleOp_Handle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9259#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9260 while (!ctx->Done(&ptr)) {
9261 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9262 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9263 CHK_(ptr);
9264 switch (tag >> 3) {
9265 // .tensorflow.eager.SendPackedHandleOp.LocalTensorHandle local_handle = 1;
9266 case 1:
9267 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
9268 ptr = ctx->ParseMessage(mutable_local_handle(), ptr);
9269 CHK_(ptr);
9270 } else goto handle_unusual;
9271 continue;
9272 // .tensorflow.eager.RemoteTensorHandle remote_handle = 2;
9273 case 2:
9274 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
9275 ptr = ctx->ParseMessage(mutable_remote_handle(), ptr);
9276 CHK_(ptr);
9277 } else goto handle_unusual;
9278 continue;
9279 default: {
9280 handle_unusual:
9281 if ((tag & 7) == 4 || tag == 0) {
9282 ctx->SetLastTag(tag);
9283 goto success;
9284 }
9285 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9286 CHK_(ptr != nullptr);
9287 continue;
9288 }
9289 } // switch
9290 } // while
9291success:
9292 return ptr;
9293failure:
9294 ptr = nullptr;
9295 goto success;
9296#undef CHK_
9297}
9298#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9299bool SendPackedHandleOp_Handle::MergePartialFromCodedStream(
9300 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9301#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9302 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9303 // @@protoc_insertion_point(parse_start:tensorflow.eager.SendPackedHandleOp.Handle)
9304 for (;;) {
9305 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9306 tag = p.first;
9307 if (!p.second) goto handle_unusual;
9308 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9309 // .tensorflow.eager.SendPackedHandleOp.LocalTensorHandle local_handle = 1;
9310 case 1: {
9311 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
9312 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9313 input, mutable_local_handle()));
9314 } else {
9315 goto handle_unusual;
9316 }
9317 break;
9318 }
9319
9320 // .tensorflow.eager.RemoteTensorHandle remote_handle = 2;
9321 case 2: {
9322 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
9323 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9324 input, mutable_remote_handle()));
9325 } else {
9326 goto handle_unusual;
9327 }
9328 break;
9329 }
9330
9331 default: {
9332 handle_unusual:
9333 if (tag == 0) {
9334 goto success;
9335 }
9336 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9337 input, tag, _internal_metadata_.mutable_unknown_fields()));
9338 break;
9339 }
9340 }
9341 }
9342success:
9343 // @@protoc_insertion_point(parse_success:tensorflow.eager.SendPackedHandleOp.Handle)
9344 return true;
9345failure:
9346 // @@protoc_insertion_point(parse_failure:tensorflow.eager.SendPackedHandleOp.Handle)
9347 return false;
9348#undef DO_
9349}
9350#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9351
9352void SendPackedHandleOp_Handle::SerializeWithCachedSizes(
9353 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9354 // @@protoc_insertion_point(serialize_start:tensorflow.eager.SendPackedHandleOp.Handle)
9355 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9356 (void) cached_has_bits;
9357
9358 // .tensorflow.eager.SendPackedHandleOp.LocalTensorHandle local_handle = 1;
9359 if (has_local_handle()) {
9360 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9361 1, _Internal::local_handle(this), output);
9362 }
9363
9364 // .tensorflow.eager.RemoteTensorHandle remote_handle = 2;
9365 if (has_remote_handle()) {
9366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9367 2, _Internal::remote_handle(this), output);
9368 }
9369
9370 if (_internal_metadata_.have_unknown_fields()) {
9371 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9372 _internal_metadata_.unknown_fields(), output);
9373 }
9374 // @@protoc_insertion_point(serialize_end:tensorflow.eager.SendPackedHandleOp.Handle)
9375}
9376
9377::PROTOBUF_NAMESPACE_ID::uint8* SendPackedHandleOp_Handle::InternalSerializeWithCachedSizesToArray(
9378 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9379 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.SendPackedHandleOp.Handle)
9380 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9381 (void) cached_has_bits;
9382
9383 // .tensorflow.eager.SendPackedHandleOp.LocalTensorHandle local_handle = 1;
9384 if (has_local_handle()) {
9385 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9386 InternalWriteMessageToArray(
9387 1, _Internal::local_handle(this), target);
9388 }
9389
9390 // .tensorflow.eager.RemoteTensorHandle remote_handle = 2;
9391 if (has_remote_handle()) {
9392 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9393 InternalWriteMessageToArray(
9394 2, _Internal::remote_handle(this), target);
9395 }
9396
9397 if (_internal_metadata_.have_unknown_fields()) {
9398 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9399 _internal_metadata_.unknown_fields(), target);
9400 }
9401 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.SendPackedHandleOp.Handle)
9402 return target;
9403}
9404
9405size_t SendPackedHandleOp_Handle::ByteSizeLong() const {
9406// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.SendPackedHandleOp.Handle)
9407 size_t total_size = 0;
9408
9409 if (_internal_metadata_.have_unknown_fields()) {
9410 total_size +=
9411 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9412 _internal_metadata_.unknown_fields());
9413 }
9414 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9415 // Prevent compiler warnings about cached_has_bits being unused
9416 (void) cached_has_bits;
9417
9418 switch (item_case()) {
9419 // .tensorflow.eager.SendPackedHandleOp.LocalTensorHandle local_handle = 1;
9420 case kLocalHandle: {
9421 total_size += 1 +
9422 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9423 *item_.local_handle_);
9424 break;
9425 }
9426 // .tensorflow.eager.RemoteTensorHandle remote_handle = 2;
9427 case kRemoteHandle: {
9428 total_size += 1 +
9429 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9430 *item_.remote_handle_);
9431 break;
9432 }
9433 case ITEM_NOT_SET: {
9434 break;
9435 }
9436 }
9437 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9438 SetCachedSize(cached_size);
9439 return total_size;
9440}
9441
9442void SendPackedHandleOp_Handle::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9443// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.SendPackedHandleOp.Handle)
9444 GOOGLE_DCHECK_NE(&from, this);
9445 const SendPackedHandleOp_Handle* source =
9446 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendPackedHandleOp_Handle>(
9447 &from);
9448 if (source == nullptr) {
9449 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.SendPackedHandleOp.Handle)
9450 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9451 } else {
9452 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.SendPackedHandleOp.Handle)
9453 MergeFrom(*source);
9454 }
9455}
9456
9457void SendPackedHandleOp_Handle::MergeFrom(const SendPackedHandleOp_Handle& from) {
9458// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.SendPackedHandleOp.Handle)
9459 GOOGLE_DCHECK_NE(&from, this);
9460 _internal_metadata_.MergeFrom(from._internal_metadata_);
9461 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9462 (void) cached_has_bits;
9463
9464 switch (from.item_case()) {
9465 case kLocalHandle: {
9466 mutable_local_handle()->::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle::MergeFrom(from.local_handle());
9467 break;
9468 }
9469 case kRemoteHandle: {
9470 mutable_remote_handle()->::tensorflow::eager::RemoteTensorHandle::MergeFrom(from.remote_handle());
9471 break;
9472 }
9473 case ITEM_NOT_SET: {
9474 break;
9475 }
9476 }
9477}
9478
9479void SendPackedHandleOp_Handle::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9480// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.SendPackedHandleOp.Handle)
9481 if (&from == this) return;
9482 Clear();
9483 MergeFrom(from);
9484}
9485
9486void SendPackedHandleOp_Handle::CopyFrom(const SendPackedHandleOp_Handle& from) {
9487// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.SendPackedHandleOp.Handle)
9488 if (&from == this) return;
9489 Clear();
9490 MergeFrom(from);
9491}
9492
9493bool SendPackedHandleOp_Handle::IsInitialized() const {
9494 return true;
9495}
9496
9497void SendPackedHandleOp_Handle::InternalSwap(SendPackedHandleOp_Handle* other) {
9498 using std::swap;
9499 _internal_metadata_.Swap(&other->_internal_metadata_);
9500 swap(item_, other->item_);
9501 swap(_oneof_case_[0], other->_oneof_case_[0]);
9502}
9503
9504::PROTOBUF_NAMESPACE_ID::Metadata SendPackedHandleOp_Handle::GetMetadata() const {
9505 return GetMetadataStatic();
9506}
9507
9508
9509// ===================================================================
9510
9511void SendPackedHandleOp::InitAsDefaultInstance() {
9512}
9513class SendPackedHandleOp::_Internal {
9514 public:
9515};
9516
9517SendPackedHandleOp::SendPackedHandleOp()
9518 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9519 SharedCtor();
9520 // @@protoc_insertion_point(constructor:tensorflow.eager.SendPackedHandleOp)
9521}
9522SendPackedHandleOp::SendPackedHandleOp(const SendPackedHandleOp& from)
9523 : ::PROTOBUF_NAMESPACE_ID::Message(),
9524 _internal_metadata_(nullptr),
9525 handles_(from.handles_) {
9526 _internal_metadata_.MergeFrom(from._internal_metadata_);
9527 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
9528 if (!from.device_name().empty()) {
9529 device_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name_);
9530 }
9531 op_id_ = from.op_id_;
9532 // @@protoc_insertion_point(copy_constructor:tensorflow.eager.SendPackedHandleOp)
9533}
9534
9535void SendPackedHandleOp::SharedCtor() {
9536 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
9537 device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
9538 op_id_ = PROTOBUF_LONGLONG(0);
9539}
9540
9541SendPackedHandleOp::~SendPackedHandleOp() {
9542 // @@protoc_insertion_point(destructor:tensorflow.eager.SendPackedHandleOp)
9543 SharedDtor();
9544}
9545
9546void SendPackedHandleOp::SharedDtor() {
9547 device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
9548}
9549
9550void SendPackedHandleOp::SetCachedSize(int size) const {
9551 _cached_size_.Set(size);
9552}
9553const SendPackedHandleOp& SendPackedHandleOp::default_instance() {
9554 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendPackedHandleOp_tensorflow_2fcore_2fprotobuf_2feager_5fservice_2eproto.base);
9555 return *internal_default_instance();
9556}
9557
9558
9559void SendPackedHandleOp::Clear() {
9560// @@protoc_insertion_point(message_clear_start:tensorflow.eager.SendPackedHandleOp)
9561 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9562 // Prevent compiler warnings about cached_has_bits being unused
9563 (void) cached_has_bits;
9564
9565 handles_.Clear();
9566 device_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
9567 op_id_ = PROTOBUF_LONGLONG(0);
9568 _internal_metadata_.Clear();
9569}
9570
9571#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9572const char* SendPackedHandleOp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9573#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9574 while (!ctx->Done(&ptr)) {
9575 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9576 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9577 CHK_(ptr);
9578 switch (tag >> 3) {
9579 // int64 op_id = 1;
9580 case 1:
9581 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
9582 op_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9583 CHK_(ptr);
9584 } else goto handle_unusual;
9585 continue;
9586 // repeated .tensorflow.eager.SendPackedHandleOp.Handle handles = 2;
9587 case 2:
9588 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
9589 ptr -= 1;
9590 do {
9591 ptr += 1;
9592 ptr = ctx->ParseMessage(add_handles(), ptr);
9593 CHK_(ptr);
9594 if (!ctx->DataAvailable(ptr)) break;
9595 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
9596 } else goto handle_unusual;
9597 continue;
9598 // string device_name = 3;
9599 case 3:
9600 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
9601 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_device_name(), ptr, ctx, "tensorflow.eager.SendPackedHandleOp.device_name");
9602 CHK_(ptr);
9603 } else goto handle_unusual;
9604 continue;
9605 default: {
9606 handle_unusual:
9607 if ((tag & 7) == 4 || tag == 0) {
9608 ctx->SetLastTag(tag);
9609 goto success;
9610 }
9611 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9612 CHK_(ptr != nullptr);
9613 continue;
9614 }
9615 } // switch
9616 } // while
9617success:
9618 return ptr;
9619failure:
9620 ptr = nullptr;
9621 goto success;
9622#undef CHK_
9623}
9624#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9625bool SendPackedHandleOp::MergePartialFromCodedStream(
9626 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9627#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9628 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9629 // @@protoc_insertion_point(parse_start:tensorflow.eager.SendPackedHandleOp)
9630 for (;;) {
9631 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9632 tag = p.first;
9633 if (!p.second) goto handle_unusual;
9634 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9635 // int64 op_id = 1;
9636 case 1: {
9637 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
9638
9639 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9640 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
9641 input, &op_id_)));
9642 } else {
9643 goto handle_unusual;
9644 }
9645 break;
9646 }
9647
9648 // repeated .tensorflow.eager.SendPackedHandleOp.Handle handles = 2;
9649 case 2: {
9650 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
9651 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9652 input, add_handles()));
9653 } else {
9654 goto handle_unusual;
9655 }
9656 break;
9657 }
9658
9659 // string device_name = 3;
9660 case 3: {
9661 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
9662 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
9663 input, this->mutable_device_name()));
9664 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9665 this->device_name().data(), static_cast<int>(this->device_name().length()),
9666 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
9667 "tensorflow.eager.SendPackedHandleOp.device_name"));
9668 } else {
9669 goto handle_unusual;
9670 }
9671 break;
9672 }
9673
9674 default: {
9675 handle_unusual:
9676 if (tag == 0) {
9677 goto success;
9678 }
9679 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9680 input, tag, _internal_metadata_.mutable_unknown_fields()));
9681 break;
9682 }
9683 }
9684 }
9685success:
9686 // @@protoc_insertion_point(parse_success:tensorflow.eager.SendPackedHandleOp)
9687 return true;
9688failure:
9689 // @@protoc_insertion_point(parse_failure:tensorflow.eager.SendPackedHandleOp)
9690 return false;
9691#undef DO_
9692}
9693#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9694
9695void SendPackedHandleOp::SerializeWithCachedSizes(
9696 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9697 // @@protoc_insertion_point(serialize_start:tensorflow.eager.SendPackedHandleOp)
9698 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9699 (void) cached_has_bits;
9700
9701 // int64 op_id = 1;
9702 if (this->op_id() != 0) {
9703 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->op_id(), output);
9704 }
9705
9706 // repeated .tensorflow.eager.SendPackedHandleOp.Handle handles = 2;
9707 for (unsigned int i = 0,
9708 n = static_cast<unsigned int>(this->handles_size()); i < n; i++) {
9709 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9710 2,
9711 this->handles(static_cast<int>(i)),
9712 output);
9713 }
9714
9715 // string device_name = 3;
9716 if (this->device_name().size() > 0) {
9717 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9718 this->device_name().data(), static_cast<int>(this->device_name().length()),
9719 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9720 "tensorflow.eager.SendPackedHandleOp.device_name");
9721 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9722 3, this->device_name(), output);
9723 }
9724
9725 if (_internal_metadata_.have_unknown_fields()) {
9726 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9727 _internal_metadata_.unknown_fields(), output);
9728 }
9729 // @@protoc_insertion_point(serialize_end:tensorflow.eager.SendPackedHandleOp)
9730}
9731
9732::PROTOBUF_NAMESPACE_ID::uint8* SendPackedHandleOp::InternalSerializeWithCachedSizesToArray(
9733 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9734 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.eager.SendPackedHandleOp)
9735 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9736 (void) cached_has_bits;
9737
9738 // int64 op_id = 1;
9739 if (this->op_id() != 0) {
9740 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->op_id(), target);
9741 }
9742
9743 // repeated .tensorflow.eager.SendPackedHandleOp.Handle handles = 2;
9744 for (unsigned int i = 0,
9745 n = static_cast<unsigned int>(this->handles_size()); i < n; i++) {
9746 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9747 InternalWriteMessageToArray(
9748 2, this->handles(static_cast<int>(i)), target);
9749 }
9750
9751 // string device_name = 3;
9752 if (this->device_name().size() > 0) {
9753 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9754 this->device_name().data(), static_cast<int>(this->device_name().length()),
9755 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9756 "tensorflow.eager.SendPackedHandleOp.device_name");
9757 target =
9758 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9759 3, this->device_name(), target);
9760 }
9761
9762 if (_internal_metadata_.have_unknown_fields()) {
9763 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9764 _internal_metadata_.unknown_fields(), target);
9765 }
9766 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.eager.SendPackedHandleOp)
9767 return target;
9768}
9769
9770size_t SendPackedHandleOp::ByteSizeLong() const {
9771// @@protoc_insertion_point(message_byte_size_start:tensorflow.eager.SendPackedHandleOp)
9772 size_t total_size = 0;
9773
9774 if (_internal_metadata_.have_unknown_fields()) {
9775 total_size +=
9776 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9777 _internal_metadata_.unknown_fields());
9778 }
9779 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9780 // Prevent compiler warnings about cached_has_bits being unused
9781 (void) cached_has_bits;
9782
9783 // repeated .tensorflow.eager.SendPackedHandleOp.Handle handles = 2;
9784 {
9785 unsigned int count = static_cast<unsigned int>(this->handles_size());
9786 total_size += 1UL * count;
9787 for (unsigned int i = 0; i < count; i++) {
9788 total_size +=
9789 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9790 this->handles(static_cast<int>(i)));
9791 }
9792 }
9793
9794 // string device_name = 3;
9795 if (this->device_name().size() > 0) {
9796 total_size += 1 +
9797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9798 this->device_name());
9799 }
9800
9801 // int64 op_id = 1;
9802 if (this->op_id() != 0) {
9803 total_size += 1 +
9804 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
9805 this->op_id());
9806 }
9807
9808 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9809 SetCachedSize(cached_size);
9810 return total_size;
9811}
9812
9813void SendPackedHandleOp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9814// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.eager.SendPackedHandleOp)
9815 GOOGLE_DCHECK_NE(&from, this);
9816 const SendPackedHandleOp* source =
9817 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendPackedHandleOp>(
9818 &from);
9819 if (source == nullptr) {
9820 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.eager.SendPackedHandleOp)
9821 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9822 } else {
9823 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.eager.SendPackedHandleOp)
9824 MergeFrom(*source);
9825 }
9826}
9827
9828void SendPackedHandleOp::MergeFrom(const SendPackedHandleOp& from) {
9829// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.eager.SendPackedHandleOp)
9830 GOOGLE_DCHECK_NE(&from, this);
9831 _internal_metadata_.MergeFrom(from._internal_metadata_);
9832 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9833 (void) cached_has_bits;
9834
9835 handles_.MergeFrom(from.handles_);
9836 if (from.device_name().size() > 0) {
9837
9838 device_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.device_name_);
9839 }
9840 if (from.op_id() != 0) {
9841 set_op_id(from.op_id());
9842 }
9843}
9844
9845void SendPackedHandleOp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9846// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.eager.SendPackedHandleOp)
9847 if (&from == this) return;
9848 Clear();
9849 MergeFrom(from);
9850}
9851
9852void SendPackedHandleOp::CopyFrom(const SendPackedHandleOp& from) {
9853// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.eager.SendPackedHandleOp)
9854 if (&from == this) return;
9855 Clear();
9856 MergeFrom(from);
9857}
9858
9859bool SendPackedHandleOp::IsInitialized() const {
9860 return true;
9861}
9862
9863void SendPackedHandleOp::InternalSwap(SendPackedHandleOp* other) {
9864 using std::swap;
9865 _internal_metadata_.Swap(&other->_internal_metadata_);
9866 CastToBase(&handles_)->InternalSwap(CastToBase(&other->handles_));
9867 device_name_.Swap(&other->device_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9868 GetArenaNoVirtual());
9869 swap(op_id_, other->op_id_);
9870}
9871
9872::PROTOBUF_NAMESPACE_ID::Metadata SendPackedHandleOp::GetMetadata() const {
9873 return GetMetadataStatic();
9874}
9875
9876
9877// @@protoc_insertion_point(namespace_scope)
9878} // namespace eager
9879} // namespace tensorflow
9880PROTOBUF_NAMESPACE_OPEN
9881template<> PROTOBUF_NOINLINE ::tensorflow::eager::Operation_Input* Arena::CreateMaybeMessage< ::tensorflow::eager::Operation_Input >(Arena* arena) {
9882 return Arena::CreateInternal< ::tensorflow::eager::Operation_Input >(arena);
9883}
9884template<> PROTOBUF_NOINLINE ::tensorflow::eager::Operation_AttrsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::eager::Operation_AttrsEntry_DoNotUse >(Arena* arena) {
9885 return Arena::CreateInternal< ::tensorflow::eager::Operation_AttrsEntry_DoNotUse >(arena);
9886}
9887template<> PROTOBUF_NOINLINE ::tensorflow::eager::Operation* Arena::CreateMaybeMessage< ::tensorflow::eager::Operation >(Arena* arena) {
9888 return Arena::CreateInternal< ::tensorflow::eager::Operation >(arena);
9889}
9890template<> PROTOBUF_NOINLINE ::tensorflow::eager::QueueItem* Arena::CreateMaybeMessage< ::tensorflow::eager::QueueItem >(Arena* arena) {
9891 return Arena::CreateInternal< ::tensorflow::eager::QueueItem >(arena);
9892}
9893template<> PROTOBUF_NOINLINE ::tensorflow::eager::QueueResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::QueueResponse >(Arena* arena) {
9894 return Arena::CreateInternal< ::tensorflow::eager::QueueResponse >(arena);
9895}
9896template<> PROTOBUF_NOINLINE ::tensorflow::eager::CreateContextRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::CreateContextRequest >(Arena* arena) {
9897 return Arena::CreateInternal< ::tensorflow::eager::CreateContextRequest >(arena);
9898}
9899template<> PROTOBUF_NOINLINE ::tensorflow::eager::CreateContextResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::CreateContextResponse >(Arena* arena) {
9900 return Arena::CreateInternal< ::tensorflow::eager::CreateContextResponse >(arena);
9901}
9902template<> PROTOBUF_NOINLINE ::tensorflow::eager::UpdateContextRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::UpdateContextRequest >(Arena* arena) {
9903 return Arena::CreateInternal< ::tensorflow::eager::UpdateContextRequest >(arena);
9904}
9905template<> PROTOBUF_NOINLINE ::tensorflow::eager::UpdateContextResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::UpdateContextResponse >(Arena* arena) {
9906 return Arena::CreateInternal< ::tensorflow::eager::UpdateContextResponse >(arena);
9907}
9908template<> PROTOBUF_NOINLINE ::tensorflow::eager::EnqueueRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::EnqueueRequest >(Arena* arena) {
9909 return Arena::CreateInternal< ::tensorflow::eager::EnqueueRequest >(arena);
9910}
9911template<> PROTOBUF_NOINLINE ::tensorflow::eager::EnqueueResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::EnqueueResponse >(Arena* arena) {
9912 return Arena::CreateInternal< ::tensorflow::eager::EnqueueResponse >(arena);
9913}
9914template<> PROTOBUF_NOINLINE ::tensorflow::eager::WaitQueueDoneRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::WaitQueueDoneRequest >(Arena* arena) {
9915 return Arena::CreateInternal< ::tensorflow::eager::WaitQueueDoneRequest >(arena);
9916}
9917template<> PROTOBUF_NOINLINE ::tensorflow::eager::WaitQueueDoneResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::WaitQueueDoneResponse >(Arena* arena) {
9918 return Arena::CreateInternal< ::tensorflow::eager::WaitQueueDoneResponse >(arena);
9919}
9920template<> PROTOBUF_NOINLINE ::tensorflow::eager::RunComponentFunctionRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::RunComponentFunctionRequest >(Arena* arena) {
9921 return Arena::CreateInternal< ::tensorflow::eager::RunComponentFunctionRequest >(arena);
9922}
9923template<> PROTOBUF_NOINLINE ::tensorflow::eager::RunComponentFunctionResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::RunComponentFunctionResponse >(Arena* arena) {
9924 return Arena::CreateInternal< ::tensorflow::eager::RunComponentFunctionResponse >(arena);
9925}
9926template<> PROTOBUF_NOINLINE ::tensorflow::eager::KeepAliveRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::KeepAliveRequest >(Arena* arena) {
9927 return Arena::CreateInternal< ::tensorflow::eager::KeepAliveRequest >(arena);
9928}
9929template<> PROTOBUF_NOINLINE ::tensorflow::eager::KeepAliveResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::KeepAliveResponse >(Arena* arena) {
9930 return Arena::CreateInternal< ::tensorflow::eager::KeepAliveResponse >(arena);
9931}
9932template<> PROTOBUF_NOINLINE ::tensorflow::eager::CloseContextRequest* Arena::CreateMaybeMessage< ::tensorflow::eager::CloseContextRequest >(Arena* arena) {
9933 return Arena::CreateInternal< ::tensorflow::eager::CloseContextRequest >(arena);
9934}
9935template<> PROTOBUF_NOINLINE ::tensorflow::eager::CloseContextResponse* Arena::CreateMaybeMessage< ::tensorflow::eager::CloseContextResponse >(Arena* arena) {
9936 return Arena::CreateInternal< ::tensorflow::eager::CloseContextResponse >(arena);
9937}
9938template<> PROTOBUF_NOINLINE ::tensorflow::eager::RegisterFunctionOp* Arena::CreateMaybeMessage< ::tensorflow::eager::RegisterFunctionOp >(Arena* arena) {
9939 return Arena::CreateInternal< ::tensorflow::eager::RegisterFunctionOp >(arena);
9940}
9941template<> PROTOBUF_NOINLINE ::tensorflow::eager::CleanupFunctionOp* Arena::CreateMaybeMessage< ::tensorflow::eager::CleanupFunctionOp >(Arena* arena) {
9942 return Arena::CreateInternal< ::tensorflow::eager::CleanupFunctionOp >(arena);
9943}
9944template<> PROTOBUF_NOINLINE ::tensorflow::eager::SyncRemoteExecutorForStream* Arena::CreateMaybeMessage< ::tensorflow::eager::SyncRemoteExecutorForStream >(Arena* arena) {
9945 return Arena::CreateInternal< ::tensorflow::eager::SyncRemoteExecutorForStream >(arena);
9946}
9947template<> PROTOBUF_NOINLINE ::tensorflow::eager::SendTensorOp* Arena::CreateMaybeMessage< ::tensorflow::eager::SendTensorOp >(Arena* arena) {
9948 return Arena::CreateInternal< ::tensorflow::eager::SendTensorOp >(arena);
9949}
9950template<> PROTOBUF_NOINLINE ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle* Arena::CreateMaybeMessage< ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle >(Arena* arena) {
9951 return Arena::CreateInternal< ::tensorflow::eager::SendPackedHandleOp_LocalTensorHandle >(arena);
9952}
9953template<> PROTOBUF_NOINLINE ::tensorflow::eager::SendPackedHandleOp_Handle* Arena::CreateMaybeMessage< ::tensorflow::eager::SendPackedHandleOp_Handle >(Arena* arena) {
9954 return Arena::CreateInternal< ::tensorflow::eager::SendPackedHandleOp_Handle >(arena);
9955}
9956template<> PROTOBUF_NOINLINE ::tensorflow::eager::SendPackedHandleOp* Arena::CreateMaybeMessage< ::tensorflow::eager::SendPackedHandleOp >(Arena* arena) {
9957 return Arena::CreateInternal< ::tensorflow::eager::SendPackedHandleOp >(arena);
9958}
9959PROTOBUF_NAMESPACE_CLOSE
9960
9961// @@protoc_insertion_point(global_scope)
9962#include <google/protobuf/port_undef.inc>
9963