1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/master.proto
3
4#include "tensorflow/core/protobuf/master.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_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_CallableOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_ConfigProto_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_RunMetadata_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
26namespace tensorflow {
27class CreateSessionRequestDefaultTypeInternal {
28 public:
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateSessionRequest> _instance;
30} _CreateSessionRequest_default_instance_;
31class CreateSessionResponseDefaultTypeInternal {
32 public:
33 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateSessionResponse> _instance;
34} _CreateSessionResponse_default_instance_;
35class ExtendSessionRequestDefaultTypeInternal {
36 public:
37 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExtendSessionRequest> _instance;
38} _ExtendSessionRequest_default_instance_;
39class ExtendSessionResponseDefaultTypeInternal {
40 public:
41 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExtendSessionResponse> _instance;
42} _ExtendSessionResponse_default_instance_;
43class RunStepRequestDefaultTypeInternal {
44 public:
45 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunStepRequest> _instance;
46} _RunStepRequest_default_instance_;
47class RunStepResponseDefaultTypeInternal {
48 public:
49 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunStepResponse> _instance;
50} _RunStepResponse_default_instance_;
51class PartialRunSetupRequestDefaultTypeInternal {
52 public:
53 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartialRunSetupRequest> _instance;
54} _PartialRunSetupRequest_default_instance_;
55class PartialRunSetupResponseDefaultTypeInternal {
56 public:
57 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartialRunSetupResponse> _instance;
58} _PartialRunSetupResponse_default_instance_;
59class CloseSessionRequestDefaultTypeInternal {
60 public:
61 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CloseSessionRequest> _instance;
62} _CloseSessionRequest_default_instance_;
63class CloseSessionResponseDefaultTypeInternal {
64 public:
65 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CloseSessionResponse> _instance;
66} _CloseSessionResponse_default_instance_;
67class ResetRequestDefaultTypeInternal {
68 public:
69 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResetRequest> _instance;
70} _ResetRequest_default_instance_;
71class ResetResponseDefaultTypeInternal {
72 public:
73 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResetResponse> _instance;
74} _ResetResponse_default_instance_;
75class ListDevicesRequestDefaultTypeInternal {
76 public:
77 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ListDevicesRequest> _instance;
78} _ListDevicesRequest_default_instance_;
79class ListDevicesResponseDefaultTypeInternal {
80 public:
81 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ListDevicesResponse> _instance;
82} _ListDevicesResponse_default_instance_;
83class MakeCallableRequestDefaultTypeInternal {
84 public:
85 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MakeCallableRequest> _instance;
86} _MakeCallableRequest_default_instance_;
87class MakeCallableResponseDefaultTypeInternal {
88 public:
89 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MakeCallableResponse> _instance;
90} _MakeCallableResponse_default_instance_;
91class RunCallableRequestDefaultTypeInternal {
92 public:
93 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunCallableRequest> _instance;
94} _RunCallableRequest_default_instance_;
95class RunCallableResponseDefaultTypeInternal {
96 public:
97 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunCallableResponse> _instance;
98} _RunCallableResponse_default_instance_;
99class ReleaseCallableRequestDefaultTypeInternal {
100 public:
101 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReleaseCallableRequest> _instance;
102} _ReleaseCallableRequest_default_instance_;
103class ReleaseCallableResponseDefaultTypeInternal {
104 public:
105 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReleaseCallableResponse> _instance;
106} _ReleaseCallableResponse_default_instance_;
107} // namespace tensorflow
108static void InitDefaultsscc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
109 GOOGLE_PROTOBUF_VERIFY_VERSION;
110
111 {
112 void* ptr = &::tensorflow::_CloseSessionRequest_default_instance_;
113 new (ptr) ::tensorflow::CloseSessionRequest();
114 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
115 }
116 ::tensorflow::CloseSessionRequest::InitAsDefaultInstance();
117}
118
119::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
120 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
121
122static void InitDefaultsscc_info_CloseSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
123 GOOGLE_PROTOBUF_VERIFY_VERSION;
124
125 {
126 void* ptr = &::tensorflow::_CloseSessionResponse_default_instance_;
127 new (ptr) ::tensorflow::CloseSessionResponse();
128 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
129 }
130 ::tensorflow::CloseSessionResponse::InitAsDefaultInstance();
131}
132
133::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CloseSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
134 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CloseSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
135
136static void InitDefaultsscc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
137 GOOGLE_PROTOBUF_VERIFY_VERSION;
138
139 {
140 void* ptr = &::tensorflow::_CreateSessionRequest_default_instance_;
141 new (ptr) ::tensorflow::CreateSessionRequest();
142 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
143 }
144 ::tensorflow::CreateSessionRequest::InitAsDefaultInstance();
145}
146
147::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
148 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
149 &scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto.base,
150 &scc_info_ConfigProto_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
151
152static void InitDefaultsscc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
153 GOOGLE_PROTOBUF_VERIFY_VERSION;
154
155 {
156 void* ptr = &::tensorflow::_CreateSessionResponse_default_instance_;
157 new (ptr) ::tensorflow::CreateSessionResponse();
158 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
159 }
160 ::tensorflow::CreateSessionResponse::InitAsDefaultInstance();
161}
162
163::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
164 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
165
166static void InitDefaultsscc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
167 GOOGLE_PROTOBUF_VERIFY_VERSION;
168
169 {
170 void* ptr = &::tensorflow::_ExtendSessionRequest_default_instance_;
171 new (ptr) ::tensorflow::ExtendSessionRequest();
172 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
173 }
174 ::tensorflow::ExtendSessionRequest::InitAsDefaultInstance();
175}
176
177::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
178 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
179 &scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto.base,}};
180
181static void InitDefaultsscc_info_ExtendSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
182 GOOGLE_PROTOBUF_VERIFY_VERSION;
183
184 {
185 void* ptr = &::tensorflow::_ExtendSessionResponse_default_instance_;
186 new (ptr) ::tensorflow::ExtendSessionResponse();
187 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
188 }
189 ::tensorflow::ExtendSessionResponse::InitAsDefaultInstance();
190}
191
192::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ExtendSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
193 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ExtendSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
194
195static void InitDefaultsscc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
196 GOOGLE_PROTOBUF_VERIFY_VERSION;
197
198 {
199 void* ptr = &::tensorflow::_ListDevicesRequest_default_instance_;
200 new (ptr) ::tensorflow::ListDevicesRequest();
201 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
202 }
203 ::tensorflow::ListDevicesRequest::InitAsDefaultInstance();
204}
205
206::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
207 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
208
209static void InitDefaultsscc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
210 GOOGLE_PROTOBUF_VERIFY_VERSION;
211
212 {
213 void* ptr = &::tensorflow::_ListDevicesResponse_default_instance_;
214 new (ptr) ::tensorflow::ListDevicesResponse();
215 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
216 }
217 ::tensorflow::ListDevicesResponse::InitAsDefaultInstance();
218}
219
220::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
221 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
222 &scc_info_DeviceAttributes_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.base,}};
223
224static void InitDefaultsscc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
225 GOOGLE_PROTOBUF_VERIFY_VERSION;
226
227 {
228 void* ptr = &::tensorflow::_MakeCallableRequest_default_instance_;
229 new (ptr) ::tensorflow::MakeCallableRequest();
230 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
231 }
232 ::tensorflow::MakeCallableRequest::InitAsDefaultInstance();
233}
234
235::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
236 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
237 &scc_info_CallableOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
238
239static void InitDefaultsscc_info_MakeCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
240 GOOGLE_PROTOBUF_VERIFY_VERSION;
241
242 {
243 void* ptr = &::tensorflow::_MakeCallableResponse_default_instance_;
244 new (ptr) ::tensorflow::MakeCallableResponse();
245 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
246 }
247 ::tensorflow::MakeCallableResponse::InitAsDefaultInstance();
248}
249
250::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MakeCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
251 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MakeCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
252
253static void InitDefaultsscc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
254 GOOGLE_PROTOBUF_VERIFY_VERSION;
255
256 {
257 void* ptr = &::tensorflow::_PartialRunSetupRequest_default_instance_;
258 new (ptr) ::tensorflow::PartialRunSetupRequest();
259 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
260 }
261 ::tensorflow::PartialRunSetupRequest::InitAsDefaultInstance();
262}
263
264::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
265 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
266
267static void InitDefaultsscc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
268 GOOGLE_PROTOBUF_VERIFY_VERSION;
269
270 {
271 void* ptr = &::tensorflow::_PartialRunSetupResponse_default_instance_;
272 new (ptr) ::tensorflow::PartialRunSetupResponse();
273 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
274 }
275 ::tensorflow::PartialRunSetupResponse::InitAsDefaultInstance();
276}
277
278::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
279 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
280
281static void InitDefaultsscc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
282 GOOGLE_PROTOBUF_VERIFY_VERSION;
283
284 {
285 void* ptr = &::tensorflow::_ReleaseCallableRequest_default_instance_;
286 new (ptr) ::tensorflow::ReleaseCallableRequest();
287 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
288 }
289 ::tensorflow::ReleaseCallableRequest::InitAsDefaultInstance();
290}
291
292::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
293 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
294
295static void InitDefaultsscc_info_ReleaseCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
296 GOOGLE_PROTOBUF_VERIFY_VERSION;
297
298 {
299 void* ptr = &::tensorflow::_ReleaseCallableResponse_default_instance_;
300 new (ptr) ::tensorflow::ReleaseCallableResponse();
301 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
302 }
303 ::tensorflow::ReleaseCallableResponse::InitAsDefaultInstance();
304}
305
306::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReleaseCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
307 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ReleaseCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
308
309static void InitDefaultsscc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
310 GOOGLE_PROTOBUF_VERIFY_VERSION;
311
312 {
313 void* ptr = &::tensorflow::_ResetRequest_default_instance_;
314 new (ptr) ::tensorflow::ResetRequest();
315 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
316 }
317 ::tensorflow::ResetRequest::InitAsDefaultInstance();
318}
319
320::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
321 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
322
323static void InitDefaultsscc_info_ResetResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
324 GOOGLE_PROTOBUF_VERIFY_VERSION;
325
326 {
327 void* ptr = &::tensorflow::_ResetResponse_default_instance_;
328 new (ptr) ::tensorflow::ResetResponse();
329 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
330 }
331 ::tensorflow::ResetResponse::InitAsDefaultInstance();
332}
333
334::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResetResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
335 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ResetResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {}};
336
337static void InitDefaultsscc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
338 GOOGLE_PROTOBUF_VERIFY_VERSION;
339
340 {
341 void* ptr = &::tensorflow::_RunCallableRequest_default_instance_;
342 new (ptr) ::tensorflow::RunCallableRequest();
343 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
344 }
345 ::tensorflow::RunCallableRequest::InitAsDefaultInstance();
346}
347
348::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
349 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
350 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
351
352static void InitDefaultsscc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
353 GOOGLE_PROTOBUF_VERIFY_VERSION;
354
355 {
356 void* ptr = &::tensorflow::_RunCallableResponse_default_instance_;
357 new (ptr) ::tensorflow::RunCallableResponse();
358 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
359 }
360 ::tensorflow::RunCallableResponse::InitAsDefaultInstance();
361}
362
363::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
364 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
365 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,
366 &scc_info_RunMetadata_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
367
368static void InitDefaultsscc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
369 GOOGLE_PROTOBUF_VERIFY_VERSION;
370
371 {
372 void* ptr = &::tensorflow::_RunStepRequest_default_instance_;
373 new (ptr) ::tensorflow::RunStepRequest();
374 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
375 }
376 ::tensorflow::RunStepRequest::InitAsDefaultInstance();
377}
378
379::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
380 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
381 &scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto.base,
382 &scc_info_RunOptions_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
383
384static void InitDefaultsscc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto() {
385 GOOGLE_PROTOBUF_VERIFY_VERSION;
386
387 {
388 void* ptr = &::tensorflow::_RunStepResponse_default_instance_;
389 new (ptr) ::tensorflow::RunStepResponse();
390 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
391 }
392 ::tensorflow::RunStepResponse::InitAsDefaultInstance();
393}
394
395::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto =
396 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto}, {
397 &scc_info_NamedTensorProto_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto.base,
398 &scc_info_RunMetadata_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto.base,}};
399
400static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto[20];
401static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto = nullptr;
402static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto = nullptr;
403
404const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
405 ~0u, // no _has_bits_
406 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionRequest, _internal_metadata_),
407 ~0u, // no _extensions_
408 ~0u, // no _oneof_case_
409 ~0u, // no _weak_field_map_
410 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionRequest, graph_def_),
411 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionRequest, config_),
412 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionRequest, target_),
413 ~0u, // no _has_bits_
414 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionResponse, _internal_metadata_),
415 ~0u, // no _extensions_
416 ~0u, // no _oneof_case_
417 ~0u, // no _weak_field_map_
418 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionResponse, session_handle_),
419 PROTOBUF_FIELD_OFFSET(::tensorflow::CreateSessionResponse, graph_version_),
420 ~0u, // no _has_bits_
421 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionRequest, _internal_metadata_),
422 ~0u, // no _extensions_
423 ~0u, // no _oneof_case_
424 ~0u, // no _weak_field_map_
425 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionRequest, session_handle_),
426 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionRequest, graph_def_),
427 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionRequest, current_graph_version_),
428 ~0u, // no _has_bits_
429 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionResponse, _internal_metadata_),
430 ~0u, // no _extensions_
431 ~0u, // no _oneof_case_
432 ~0u, // no _weak_field_map_
433 PROTOBUF_FIELD_OFFSET(::tensorflow::ExtendSessionResponse, new_graph_version_),
434 ~0u, // no _has_bits_
435 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, _internal_metadata_),
436 ~0u, // no _extensions_
437 ~0u, // no _oneof_case_
438 ~0u, // no _weak_field_map_
439 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, session_handle_),
440 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, feed_),
441 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, fetch_),
442 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, target_),
443 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, options_),
444 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, partial_run_handle_),
445 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, store_errors_in_response_body_),
446 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepRequest, request_id_),
447 ~0u, // no _has_bits_
448 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepResponse, _internal_metadata_),
449 ~0u, // no _extensions_
450 ~0u, // no _oneof_case_
451 ~0u, // no _weak_field_map_
452 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepResponse, tensor_),
453 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepResponse, metadata_),
454 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepResponse, status_code_),
455 PROTOBUF_FIELD_OFFSET(::tensorflow::RunStepResponse, status_error_message_),
456 ~0u, // no _has_bits_
457 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, _internal_metadata_),
458 ~0u, // no _extensions_
459 ~0u, // no _oneof_case_
460 ~0u, // no _weak_field_map_
461 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, session_handle_),
462 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, feed_),
463 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, fetch_),
464 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, target_),
465 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupRequest, request_id_),
466 ~0u, // no _has_bits_
467 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupResponse, _internal_metadata_),
468 ~0u, // no _extensions_
469 ~0u, // no _oneof_case_
470 ~0u, // no _weak_field_map_
471 PROTOBUF_FIELD_OFFSET(::tensorflow::PartialRunSetupResponse, partial_run_handle_),
472 ~0u, // no _has_bits_
473 PROTOBUF_FIELD_OFFSET(::tensorflow::CloseSessionRequest, _internal_metadata_),
474 ~0u, // no _extensions_
475 ~0u, // no _oneof_case_
476 ~0u, // no _weak_field_map_
477 PROTOBUF_FIELD_OFFSET(::tensorflow::CloseSessionRequest, session_handle_),
478 ~0u, // no _has_bits_
479 PROTOBUF_FIELD_OFFSET(::tensorflow::CloseSessionResponse, _internal_metadata_),
480 ~0u, // no _extensions_
481 ~0u, // no _oneof_case_
482 ~0u, // no _weak_field_map_
483 ~0u, // no _has_bits_
484 PROTOBUF_FIELD_OFFSET(::tensorflow::ResetRequest, _internal_metadata_),
485 ~0u, // no _extensions_
486 ~0u, // no _oneof_case_
487 ~0u, // no _weak_field_map_
488 PROTOBUF_FIELD_OFFSET(::tensorflow::ResetRequest, container_),
489 PROTOBUF_FIELD_OFFSET(::tensorflow::ResetRequest, device_filters_),
490 ~0u, // no _has_bits_
491 PROTOBUF_FIELD_OFFSET(::tensorflow::ResetResponse, _internal_metadata_),
492 ~0u, // no _extensions_
493 ~0u, // no _oneof_case_
494 ~0u, // no _weak_field_map_
495 ~0u, // no _has_bits_
496 PROTOBUF_FIELD_OFFSET(::tensorflow::ListDevicesRequest, _internal_metadata_),
497 ~0u, // no _extensions_
498 ~0u, // no _oneof_case_
499 ~0u, // no _weak_field_map_
500 PROTOBUF_FIELD_OFFSET(::tensorflow::ListDevicesRequest, session_handle_),
501 ~0u, // no _has_bits_
502 PROTOBUF_FIELD_OFFSET(::tensorflow::ListDevicesResponse, _internal_metadata_),
503 ~0u, // no _extensions_
504 ~0u, // no _oneof_case_
505 ~0u, // no _weak_field_map_
506 PROTOBUF_FIELD_OFFSET(::tensorflow::ListDevicesResponse, local_device_),
507 PROTOBUF_FIELD_OFFSET(::tensorflow::ListDevicesResponse, remote_device_),
508 ~0u, // no _has_bits_
509 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableRequest, _internal_metadata_),
510 ~0u, // no _extensions_
511 ~0u, // no _oneof_case_
512 ~0u, // no _weak_field_map_
513 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableRequest, session_handle_),
514 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableRequest, options_),
515 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableRequest, request_id_),
516 ~0u, // no _has_bits_
517 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableResponse, _internal_metadata_),
518 ~0u, // no _extensions_
519 ~0u, // no _oneof_case_
520 ~0u, // no _weak_field_map_
521 PROTOBUF_FIELD_OFFSET(::tensorflow::MakeCallableResponse, handle_),
522 ~0u, // no _has_bits_
523 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableRequest, _internal_metadata_),
524 ~0u, // no _extensions_
525 ~0u, // no _oneof_case_
526 ~0u, // no _weak_field_map_
527 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableRequest, session_handle_),
528 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableRequest, handle_),
529 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableRequest, feed_),
530 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableRequest, request_id_),
531 ~0u, // no _has_bits_
532 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableResponse, _internal_metadata_),
533 ~0u, // no _extensions_
534 ~0u, // no _oneof_case_
535 ~0u, // no _weak_field_map_
536 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableResponse, fetch_),
537 PROTOBUF_FIELD_OFFSET(::tensorflow::RunCallableResponse, metadata_),
538 ~0u, // no _has_bits_
539 PROTOBUF_FIELD_OFFSET(::tensorflow::ReleaseCallableRequest, _internal_metadata_),
540 ~0u, // no _extensions_
541 ~0u, // no _oneof_case_
542 ~0u, // no _weak_field_map_
543 PROTOBUF_FIELD_OFFSET(::tensorflow::ReleaseCallableRequest, session_handle_),
544 PROTOBUF_FIELD_OFFSET(::tensorflow::ReleaseCallableRequest, handle_),
545 ~0u, // no _has_bits_
546 PROTOBUF_FIELD_OFFSET(::tensorflow::ReleaseCallableResponse, _internal_metadata_),
547 ~0u, // no _extensions_
548 ~0u, // no _oneof_case_
549 ~0u, // no _weak_field_map_
550};
551static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
552 { 0, -1, sizeof(::tensorflow::CreateSessionRequest)},
553 { 8, -1, sizeof(::tensorflow::CreateSessionResponse)},
554 { 15, -1, sizeof(::tensorflow::ExtendSessionRequest)},
555 { 23, -1, sizeof(::tensorflow::ExtendSessionResponse)},
556 { 29, -1, sizeof(::tensorflow::RunStepRequest)},
557 { 42, -1, sizeof(::tensorflow::RunStepResponse)},
558 { 51, -1, sizeof(::tensorflow::PartialRunSetupRequest)},
559 { 61, -1, sizeof(::tensorflow::PartialRunSetupResponse)},
560 { 67, -1, sizeof(::tensorflow::CloseSessionRequest)},
561 { 73, -1, sizeof(::tensorflow::CloseSessionResponse)},
562 { 78, -1, sizeof(::tensorflow::ResetRequest)},
563 { 85, -1, sizeof(::tensorflow::ResetResponse)},
564 { 90, -1, sizeof(::tensorflow::ListDevicesRequest)},
565 { 96, -1, sizeof(::tensorflow::ListDevicesResponse)},
566 { 103, -1, sizeof(::tensorflow::MakeCallableRequest)},
567 { 111, -1, sizeof(::tensorflow::MakeCallableResponse)},
568 { 117, -1, sizeof(::tensorflow::RunCallableRequest)},
569 { 126, -1, sizeof(::tensorflow::RunCallableResponse)},
570 { 133, -1, sizeof(::tensorflow::ReleaseCallableRequest)},
571 { 140, -1, sizeof(::tensorflow::ReleaseCallableResponse)},
572};
573
574static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
575 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CreateSessionRequest_default_instance_),
576 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CreateSessionResponse_default_instance_),
577 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ExtendSessionRequest_default_instance_),
578 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ExtendSessionResponse_default_instance_),
579 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunStepRequest_default_instance_),
580 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunStepResponse_default_instance_),
581 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_PartialRunSetupRequest_default_instance_),
582 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_PartialRunSetupResponse_default_instance_),
583 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CloseSessionRequest_default_instance_),
584 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CloseSessionResponse_default_instance_),
585 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ResetRequest_default_instance_),
586 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ResetResponse_default_instance_),
587 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ListDevicesRequest_default_instance_),
588 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ListDevicesResponse_default_instance_),
589 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MakeCallableRequest_default_instance_),
590 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MakeCallableResponse_default_instance_),
591 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunCallableRequest_default_instance_),
592 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunCallableResponse_default_instance_),
593 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReleaseCallableRequest_default_instance_),
594 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ReleaseCallableResponse_default_instance_),
595};
596
597const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
598 "\n%tensorflow/core/protobuf/master.proto\022"
599 "\ntensorflow\0321tensorflow/core/framework/d"
600 "evice_attributes.proto\032%tensorflow/core/"
601 "framework/graph.proto\032&tensorflow/core/f"
602 "ramework/tensor.proto\032%tensorflow/core/p"
603 "rotobuf/config.proto\032*tensorflow/core/pr"
604 "otobuf/error_codes.proto\032+tensorflow/cor"
605 "e/protobuf/named_tensor.proto\"x\n\024CreateS"
606 "essionRequest\022\'\n\tgraph_def\030\001 \001(\0132\024.tenso"
607 "rflow.GraphDef\022\'\n\006config\030\002 \001(\0132\027.tensorf"
608 "low.ConfigProto\022\016\n\006target\030\003 \001(\t\"F\n\025Creat"
609 "eSessionResponse\022\026\n\016session_handle\030\001 \001(\t"
610 "\022\025\n\rgraph_version\030\002 \001(\003\"v\n\024ExtendSession"
611 "Request\022\026\n\016session_handle\030\001 \001(\t\022\'\n\tgraph"
612 "_def\030\002 \001(\0132\024.tensorflow.GraphDef\022\035\n\025curr"
613 "ent_graph_version\030\003 \001(\003\"2\n\025ExtendSession"
614 "Response\022\031\n\021new_graph_version\030\004 \001(\003\"\363\001\n\016"
615 "RunStepRequest\022\026\n\016session_handle\030\001 \001(\t\022*"
616 "\n\004feed\030\002 \003(\0132\034.tensorflow.NamedTensorPro"
617 "to\022\r\n\005fetch\030\003 \003(\t\022\016\n\006target\030\004 \003(\t\022\'\n\007opt"
618 "ions\030\005 \001(\0132\026.tensorflow.RunOptions\022\032\n\022pa"
619 "rtial_run_handle\030\006 \001(\t\022%\n\035store_errors_i"
620 "n_response_body\030\007 \001(\010\022\022\n\nrequest_id\030\010 \001("
621 "\003\"\265\001\n\017RunStepResponse\022,\n\006tensor\030\001 \003(\0132\034."
622 "tensorflow.NamedTensorProto\022)\n\010metadata\030"
623 "\002 \001(\0132\027.tensorflow.RunMetadata\022+\n\013status"
624 "_code\030\003 \001(\0162\026.tensorflow.error.Code\022\034\n\024s"
625 "tatus_error_message\030\004 \001(\t\"q\n\026PartialRunS"
626 "etupRequest\022\026\n\016session_handle\030\001 \001(\t\022\014\n\004f"
627 "eed\030\002 \003(\t\022\r\n\005fetch\030\003 \003(\t\022\016\n\006target\030\004 \003(\t"
628 "\022\022\n\nrequest_id\030\005 \001(\003\"5\n\027PartialRunSetupR"
629 "esponse\022\032\n\022partial_run_handle\030\001 \001(\t\"-\n\023C"
630 "loseSessionRequest\022\026\n\016session_handle\030\001 \001"
631 "(\t\"\026\n\024CloseSessionResponse\"9\n\014ResetReque"
632 "st\022\021\n\tcontainer\030\001 \003(\t\022\026\n\016device_filters\030"
633 "\002 \003(\t\"\017\n\rResetResponse\",\n\022ListDevicesReq"
634 "uest\022\026\n\016session_handle\030\001 \001(\t\"~\n\023ListDevi"
635 "cesResponse\0222\n\014local_device\030\001 \003(\0132\034.tens"
636 "orflow.DeviceAttributes\0223\n\rremote_device"
637 "\030\002 \003(\0132\034.tensorflow.DeviceAttributes\"o\n\023"
638 "MakeCallableRequest\022\026\n\016session_handle\030\001 "
639 "\001(\t\022,\n\007options\030\002 \001(\0132\033.tensorflow.Callab"
640 "leOptions\022\022\n\nrequest_id\030\003 \001(\003\"&\n\024MakeCal"
641 "lableResponse\022\016\n\006handle\030\001 \001(\003\"w\n\022RunCall"
642 "ableRequest\022\026\n\016session_handle\030\001 \001(\t\022\016\n\006h"
643 "andle\030\002 \001(\003\022%\n\004feed\030\003 \003(\0132\027.tensorflow.T"
644 "ensorProto\022\022\n\nrequest_id\030\004 \001(\003\"h\n\023RunCal"
645 "lableResponse\022&\n\005fetch\030\001 \003(\0132\027.tensorflo"
646 "w.TensorProto\022)\n\010metadata\030\002 \001(\0132\027.tensor"
647 "flow.RunMetadata\"@\n\026ReleaseCallableReque"
648 "st\022\026\n\016session_handle\030\001 \001(\t\022\016\n\006handle\030\002 \001"
649 "(\003\"\031\n\027ReleaseCallableResponseB\222\001\n\032org.te"
650 "nsorflow.distruntimeB\030DistributedRuntime"
651 "ProtosP\001ZUgithub.com/tensorflow/tensorfl"
652 "ow/tensorflow/go/core/protobuf/for_core_"
653 "protos_go_proto\370\001\001b\006proto3"
654 ;
655static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_deps[6] = {
656 &::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto,
657 &::descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto,
658 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
659 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto,
660 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto,
661 &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto,
662};
663static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_sccs[20] = {
664 &scc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
665 &scc_info_CloseSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
666 &scc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
667 &scc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
668 &scc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
669 &scc_info_ExtendSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
670 &scc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
671 &scc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
672 &scc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
673 &scc_info_MakeCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
674 &scc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
675 &scc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
676 &scc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
677 &scc_info_ReleaseCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
678 &scc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
679 &scc_info_ResetResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
680 &scc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
681 &scc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
682 &scc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
683 &scc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base,
684};
685static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_once;
686static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_initialized = false;
687const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto = {
688 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto, "tensorflow/core/protobuf/master.proto", 2226,
689 &descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto_deps, 20, 6,
690 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto::offsets,
691 file_level_metadata_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto, 20, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto,
692};
693
694// Force running AddDescriptors() at dynamic initialization time.
695static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto), true);
696namespace tensorflow {
697
698// ===================================================================
699
700void CreateSessionRequest::InitAsDefaultInstance() {
701 ::tensorflow::_CreateSessionRequest_default_instance_._instance.get_mutable()->graph_def_ = const_cast< ::tensorflow::GraphDef*>(
702 ::tensorflow::GraphDef::internal_default_instance());
703 ::tensorflow::_CreateSessionRequest_default_instance_._instance.get_mutable()->config_ = const_cast< ::tensorflow::ConfigProto*>(
704 ::tensorflow::ConfigProto::internal_default_instance());
705}
706class CreateSessionRequest::_Internal {
707 public:
708 static const ::tensorflow::GraphDef& graph_def(const CreateSessionRequest* msg);
709 static const ::tensorflow::ConfigProto& config(const CreateSessionRequest* msg);
710};
711
712const ::tensorflow::GraphDef&
713CreateSessionRequest::_Internal::graph_def(const CreateSessionRequest* msg) {
714 return *msg->graph_def_;
715}
716const ::tensorflow::ConfigProto&
717CreateSessionRequest::_Internal::config(const CreateSessionRequest* msg) {
718 return *msg->config_;
719}
720void CreateSessionRequest::unsafe_arena_set_allocated_graph_def(
721 ::tensorflow::GraphDef* graph_def) {
722 if (GetArenaNoVirtual() == nullptr) {
723 delete graph_def_;
724 }
725 graph_def_ = graph_def;
726 if (graph_def) {
727
728 } else {
729
730 }
731 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CreateSessionRequest.graph_def)
732}
733void CreateSessionRequest::clear_graph_def() {
734 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
735 delete graph_def_;
736 }
737 graph_def_ = nullptr;
738}
739void CreateSessionRequest::unsafe_arena_set_allocated_config(
740 ::tensorflow::ConfigProto* config) {
741 if (GetArenaNoVirtual() == nullptr) {
742 delete config_;
743 }
744 config_ = config;
745 if (config) {
746
747 } else {
748
749 }
750 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CreateSessionRequest.config)
751}
752void CreateSessionRequest::clear_config() {
753 if (GetArenaNoVirtual() == nullptr && config_ != nullptr) {
754 delete config_;
755 }
756 config_ = nullptr;
757}
758CreateSessionRequest::CreateSessionRequest()
759 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
760 SharedCtor();
761 // @@protoc_insertion_point(constructor:tensorflow.CreateSessionRequest)
762}
763CreateSessionRequest::CreateSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
764 : ::PROTOBUF_NAMESPACE_ID::Message(),
765 _internal_metadata_(arena) {
766 SharedCtor();
767 RegisterArenaDtor(arena);
768 // @@protoc_insertion_point(arena_constructor:tensorflow.CreateSessionRequest)
769}
770CreateSessionRequest::CreateSessionRequest(const CreateSessionRequest& from)
771 : ::PROTOBUF_NAMESPACE_ID::Message(),
772 _internal_metadata_(nullptr) {
773 _internal_metadata_.MergeFrom(from._internal_metadata_);
774 target_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
775 if (!from.target().empty()) {
776 target_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target(),
777 GetArenaNoVirtual());
778 }
779 if (from.has_graph_def()) {
780 graph_def_ = new ::tensorflow::GraphDef(*from.graph_def_);
781 } else {
782 graph_def_ = nullptr;
783 }
784 if (from.has_config()) {
785 config_ = new ::tensorflow::ConfigProto(*from.config_);
786 } else {
787 config_ = nullptr;
788 }
789 // @@protoc_insertion_point(copy_constructor:tensorflow.CreateSessionRequest)
790}
791
792void CreateSessionRequest::SharedCtor() {
793 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
794 target_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
795 ::memset(&graph_def_, 0, static_cast<size_t>(
796 reinterpret_cast<char*>(&config_) -
797 reinterpret_cast<char*>(&graph_def_)) + sizeof(config_));
798}
799
800CreateSessionRequest::~CreateSessionRequest() {
801 // @@protoc_insertion_point(destructor:tensorflow.CreateSessionRequest)
802 SharedDtor();
803}
804
805void CreateSessionRequest::SharedDtor() {
806 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
807 target_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
808 if (this != internal_default_instance()) delete graph_def_;
809 if (this != internal_default_instance()) delete config_;
810}
811
812void CreateSessionRequest::ArenaDtor(void* object) {
813 CreateSessionRequest* _this = reinterpret_cast< CreateSessionRequest* >(object);
814 (void)_this;
815}
816void CreateSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
817}
818void CreateSessionRequest::SetCachedSize(int size) const {
819 _cached_size_.Set(size);
820}
821const CreateSessionRequest& CreateSessionRequest::default_instance() {
822 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
823 return *internal_default_instance();
824}
825
826
827void CreateSessionRequest::Clear() {
828// @@protoc_insertion_point(message_clear_start:tensorflow.CreateSessionRequest)
829 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
830 // Prevent compiler warnings about cached_has_bits being unused
831 (void) cached_has_bits;
832
833 target_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
834 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
835 delete graph_def_;
836 }
837 graph_def_ = nullptr;
838 if (GetArenaNoVirtual() == nullptr && config_ != nullptr) {
839 delete config_;
840 }
841 config_ = nullptr;
842 _internal_metadata_.Clear();
843}
844
845#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
846const char* CreateSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
847#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
848 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
849 while (!ctx->Done(&ptr)) {
850 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
851 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
852 CHK_(ptr);
853 switch (tag >> 3) {
854 // .tensorflow.GraphDef graph_def = 1;
855 case 1:
856 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
857 ptr = ctx->ParseMessage(mutable_graph_def(), ptr);
858 CHK_(ptr);
859 } else goto handle_unusual;
860 continue;
861 // .tensorflow.ConfigProto config = 2;
862 case 2:
863 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
864 ptr = ctx->ParseMessage(mutable_config(), ptr);
865 CHK_(ptr);
866 } else goto handle_unusual;
867 continue;
868 // string target = 3;
869 case 3:
870 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
871 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_target(), ptr, ctx, "tensorflow.CreateSessionRequest.target");
872 CHK_(ptr);
873 } else goto handle_unusual;
874 continue;
875 default: {
876 handle_unusual:
877 if ((tag & 7) == 4 || tag == 0) {
878 ctx->SetLastTag(tag);
879 goto success;
880 }
881 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
882 CHK_(ptr != nullptr);
883 continue;
884 }
885 } // switch
886 } // while
887success:
888 return ptr;
889failure:
890 ptr = nullptr;
891 goto success;
892#undef CHK_
893}
894#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
895bool CreateSessionRequest::MergePartialFromCodedStream(
896 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
897#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
898 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
899 // @@protoc_insertion_point(parse_start:tensorflow.CreateSessionRequest)
900 for (;;) {
901 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
902 tag = p.first;
903 if (!p.second) goto handle_unusual;
904 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
905 // .tensorflow.GraphDef graph_def = 1;
906 case 1: {
907 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
908 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
909 input, mutable_graph_def()));
910 } else {
911 goto handle_unusual;
912 }
913 break;
914 }
915
916 // .tensorflow.ConfigProto config = 2;
917 case 2: {
918 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
919 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
920 input, mutable_config()));
921 } else {
922 goto handle_unusual;
923 }
924 break;
925 }
926
927 // string target = 3;
928 case 3: {
929 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
930 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
931 input, this->mutable_target()));
932 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
933 this->target().data(), static_cast<int>(this->target().length()),
934 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
935 "tensorflow.CreateSessionRequest.target"));
936 } else {
937 goto handle_unusual;
938 }
939 break;
940 }
941
942 default: {
943 handle_unusual:
944 if (tag == 0) {
945 goto success;
946 }
947 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
948 input, tag, _internal_metadata_.mutable_unknown_fields()));
949 break;
950 }
951 }
952 }
953success:
954 // @@protoc_insertion_point(parse_success:tensorflow.CreateSessionRequest)
955 return true;
956failure:
957 // @@protoc_insertion_point(parse_failure:tensorflow.CreateSessionRequest)
958 return false;
959#undef DO_
960}
961#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
962
963void CreateSessionRequest::SerializeWithCachedSizes(
964 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
965 // @@protoc_insertion_point(serialize_start:tensorflow.CreateSessionRequest)
966 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
967 (void) cached_has_bits;
968
969 // .tensorflow.GraphDef graph_def = 1;
970 if (this->has_graph_def()) {
971 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
972 1, _Internal::graph_def(this), output);
973 }
974
975 // .tensorflow.ConfigProto config = 2;
976 if (this->has_config()) {
977 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
978 2, _Internal::config(this), output);
979 }
980
981 // string target = 3;
982 if (this->target().size() > 0) {
983 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
984 this->target().data(), static_cast<int>(this->target().length()),
985 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
986 "tensorflow.CreateSessionRequest.target");
987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
988 3, this->target(), output);
989 }
990
991 if (_internal_metadata_.have_unknown_fields()) {
992 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
993 _internal_metadata_.unknown_fields(), output);
994 }
995 // @@protoc_insertion_point(serialize_end:tensorflow.CreateSessionRequest)
996}
997
998::PROTOBUF_NAMESPACE_ID::uint8* CreateSessionRequest::InternalSerializeWithCachedSizesToArray(
999 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1000 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CreateSessionRequest)
1001 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1002 (void) cached_has_bits;
1003
1004 // .tensorflow.GraphDef graph_def = 1;
1005 if (this->has_graph_def()) {
1006 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1007 InternalWriteMessageToArray(
1008 1, _Internal::graph_def(this), target);
1009 }
1010
1011 // .tensorflow.ConfigProto config = 2;
1012 if (this->has_config()) {
1013 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1014 InternalWriteMessageToArray(
1015 2, _Internal::config(this), target);
1016 }
1017
1018 // string target = 3;
1019 if (this->target().size() > 0) {
1020 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1021 this->target().data(), static_cast<int>(this->target().length()),
1022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1023 "tensorflow.CreateSessionRequest.target");
1024 target =
1025 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1026 3, this->target(), target);
1027 }
1028
1029 if (_internal_metadata_.have_unknown_fields()) {
1030 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1031 _internal_metadata_.unknown_fields(), target);
1032 }
1033 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CreateSessionRequest)
1034 return target;
1035}
1036
1037size_t CreateSessionRequest::ByteSizeLong() const {
1038// @@protoc_insertion_point(message_byte_size_start:tensorflow.CreateSessionRequest)
1039 size_t total_size = 0;
1040
1041 if (_internal_metadata_.have_unknown_fields()) {
1042 total_size +=
1043 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1044 _internal_metadata_.unknown_fields());
1045 }
1046 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1047 // Prevent compiler warnings about cached_has_bits being unused
1048 (void) cached_has_bits;
1049
1050 // string target = 3;
1051 if (this->target().size() > 0) {
1052 total_size += 1 +
1053 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1054 this->target());
1055 }
1056
1057 // .tensorflow.GraphDef graph_def = 1;
1058 if (this->has_graph_def()) {
1059 total_size += 1 +
1060 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1061 *graph_def_);
1062 }
1063
1064 // .tensorflow.ConfigProto config = 2;
1065 if (this->has_config()) {
1066 total_size += 1 +
1067 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1068 *config_);
1069 }
1070
1071 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1072 SetCachedSize(cached_size);
1073 return total_size;
1074}
1075
1076void CreateSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1077// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CreateSessionRequest)
1078 GOOGLE_DCHECK_NE(&from, this);
1079 const CreateSessionRequest* source =
1080 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateSessionRequest>(
1081 &from);
1082 if (source == nullptr) {
1083 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CreateSessionRequest)
1084 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1085 } else {
1086 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CreateSessionRequest)
1087 MergeFrom(*source);
1088 }
1089}
1090
1091void CreateSessionRequest::MergeFrom(const CreateSessionRequest& from) {
1092// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CreateSessionRequest)
1093 GOOGLE_DCHECK_NE(&from, this);
1094 _internal_metadata_.MergeFrom(from._internal_metadata_);
1095 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1096 (void) cached_has_bits;
1097
1098 if (from.target().size() > 0) {
1099 set_target(from.target());
1100 }
1101 if (from.has_graph_def()) {
1102 mutable_graph_def()->::tensorflow::GraphDef::MergeFrom(from.graph_def());
1103 }
1104 if (from.has_config()) {
1105 mutable_config()->::tensorflow::ConfigProto::MergeFrom(from.config());
1106 }
1107}
1108
1109void CreateSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1110// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CreateSessionRequest)
1111 if (&from == this) return;
1112 Clear();
1113 MergeFrom(from);
1114}
1115
1116void CreateSessionRequest::CopyFrom(const CreateSessionRequest& from) {
1117// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CreateSessionRequest)
1118 if (&from == this) return;
1119 Clear();
1120 MergeFrom(from);
1121}
1122
1123bool CreateSessionRequest::IsInitialized() const {
1124 return true;
1125}
1126
1127void CreateSessionRequest::InternalSwap(CreateSessionRequest* other) {
1128 using std::swap;
1129 _internal_metadata_.Swap(&other->_internal_metadata_);
1130 target_.Swap(&other->target_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1131 GetArenaNoVirtual());
1132 swap(graph_def_, other->graph_def_);
1133 swap(config_, other->config_);
1134}
1135
1136::PROTOBUF_NAMESPACE_ID::Metadata CreateSessionRequest::GetMetadata() const {
1137 return GetMetadataStatic();
1138}
1139
1140
1141// ===================================================================
1142
1143void CreateSessionResponse::InitAsDefaultInstance() {
1144}
1145class CreateSessionResponse::_Internal {
1146 public:
1147};
1148
1149CreateSessionResponse::CreateSessionResponse()
1150 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1151 SharedCtor();
1152 // @@protoc_insertion_point(constructor:tensorflow.CreateSessionResponse)
1153}
1154CreateSessionResponse::CreateSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1155 : ::PROTOBUF_NAMESPACE_ID::Message(),
1156 _internal_metadata_(arena) {
1157 SharedCtor();
1158 RegisterArenaDtor(arena);
1159 // @@protoc_insertion_point(arena_constructor:tensorflow.CreateSessionResponse)
1160}
1161CreateSessionResponse::CreateSessionResponse(const CreateSessionResponse& from)
1162 : ::PROTOBUF_NAMESPACE_ID::Message(),
1163 _internal_metadata_(nullptr) {
1164 _internal_metadata_.MergeFrom(from._internal_metadata_);
1165 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1166 if (!from.session_handle().empty()) {
1167 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
1168 GetArenaNoVirtual());
1169 }
1170 graph_version_ = from.graph_version_;
1171 // @@protoc_insertion_point(copy_constructor:tensorflow.CreateSessionResponse)
1172}
1173
1174void CreateSessionResponse::SharedCtor() {
1175 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
1176 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1177 graph_version_ = PROTOBUF_LONGLONG(0);
1178}
1179
1180CreateSessionResponse::~CreateSessionResponse() {
1181 // @@protoc_insertion_point(destructor:tensorflow.CreateSessionResponse)
1182 SharedDtor();
1183}
1184
1185void CreateSessionResponse::SharedDtor() {
1186 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1187 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1188}
1189
1190void CreateSessionResponse::ArenaDtor(void* object) {
1191 CreateSessionResponse* _this = reinterpret_cast< CreateSessionResponse* >(object);
1192 (void)_this;
1193}
1194void CreateSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1195}
1196void CreateSessionResponse::SetCachedSize(int size) const {
1197 _cached_size_.Set(size);
1198}
1199const CreateSessionResponse& CreateSessionResponse::default_instance() {
1200 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
1201 return *internal_default_instance();
1202}
1203
1204
1205void CreateSessionResponse::Clear() {
1206// @@protoc_insertion_point(message_clear_start:tensorflow.CreateSessionResponse)
1207 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1208 // Prevent compiler warnings about cached_has_bits being unused
1209 (void) cached_has_bits;
1210
1211 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1212 graph_version_ = PROTOBUF_LONGLONG(0);
1213 _internal_metadata_.Clear();
1214}
1215
1216#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1217const char* CreateSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1218#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1219 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1220 while (!ctx->Done(&ptr)) {
1221 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1222 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1223 CHK_(ptr);
1224 switch (tag >> 3) {
1225 // string session_handle = 1;
1226 case 1:
1227 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1228 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.CreateSessionResponse.session_handle");
1229 CHK_(ptr);
1230 } else goto handle_unusual;
1231 continue;
1232 // int64 graph_version = 2;
1233 case 2:
1234 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
1235 graph_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1236 CHK_(ptr);
1237 } else goto handle_unusual;
1238 continue;
1239 default: {
1240 handle_unusual:
1241 if ((tag & 7) == 4 || tag == 0) {
1242 ctx->SetLastTag(tag);
1243 goto success;
1244 }
1245 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1246 CHK_(ptr != nullptr);
1247 continue;
1248 }
1249 } // switch
1250 } // while
1251success:
1252 return ptr;
1253failure:
1254 ptr = nullptr;
1255 goto success;
1256#undef CHK_
1257}
1258#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1259bool CreateSessionResponse::MergePartialFromCodedStream(
1260 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1261#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1262 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1263 // @@protoc_insertion_point(parse_start:tensorflow.CreateSessionResponse)
1264 for (;;) {
1265 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1266 tag = p.first;
1267 if (!p.second) goto handle_unusual;
1268 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1269 // string session_handle = 1;
1270 case 1: {
1271 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1272 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1273 input, this->mutable_session_handle()));
1274 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1275 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1276 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1277 "tensorflow.CreateSessionResponse.session_handle"));
1278 } else {
1279 goto handle_unusual;
1280 }
1281 break;
1282 }
1283
1284 // int64 graph_version = 2;
1285 case 2: {
1286 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
1287
1288 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1289 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1290 input, &graph_version_)));
1291 } else {
1292 goto handle_unusual;
1293 }
1294 break;
1295 }
1296
1297 default: {
1298 handle_unusual:
1299 if (tag == 0) {
1300 goto success;
1301 }
1302 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1303 input, tag, _internal_metadata_.mutable_unknown_fields()));
1304 break;
1305 }
1306 }
1307 }
1308success:
1309 // @@protoc_insertion_point(parse_success:tensorflow.CreateSessionResponse)
1310 return true;
1311failure:
1312 // @@protoc_insertion_point(parse_failure:tensorflow.CreateSessionResponse)
1313 return false;
1314#undef DO_
1315}
1316#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1317
1318void CreateSessionResponse::SerializeWithCachedSizes(
1319 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1320 // @@protoc_insertion_point(serialize_start:tensorflow.CreateSessionResponse)
1321 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1322 (void) cached_has_bits;
1323
1324 // string session_handle = 1;
1325 if (this->session_handle().size() > 0) {
1326 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1327 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1328 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1329 "tensorflow.CreateSessionResponse.session_handle");
1330 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1331 1, this->session_handle(), output);
1332 }
1333
1334 // int64 graph_version = 2;
1335 if (this->graph_version() != 0) {
1336 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->graph_version(), output);
1337 }
1338
1339 if (_internal_metadata_.have_unknown_fields()) {
1340 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1341 _internal_metadata_.unknown_fields(), output);
1342 }
1343 // @@protoc_insertion_point(serialize_end:tensorflow.CreateSessionResponse)
1344}
1345
1346::PROTOBUF_NAMESPACE_ID::uint8* CreateSessionResponse::InternalSerializeWithCachedSizesToArray(
1347 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1348 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CreateSessionResponse)
1349 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1350 (void) cached_has_bits;
1351
1352 // string session_handle = 1;
1353 if (this->session_handle().size() > 0) {
1354 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1355 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1357 "tensorflow.CreateSessionResponse.session_handle");
1358 target =
1359 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1360 1, this->session_handle(), target);
1361 }
1362
1363 // int64 graph_version = 2;
1364 if (this->graph_version() != 0) {
1365 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->graph_version(), target);
1366 }
1367
1368 if (_internal_metadata_.have_unknown_fields()) {
1369 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1370 _internal_metadata_.unknown_fields(), target);
1371 }
1372 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CreateSessionResponse)
1373 return target;
1374}
1375
1376size_t CreateSessionResponse::ByteSizeLong() const {
1377// @@protoc_insertion_point(message_byte_size_start:tensorflow.CreateSessionResponse)
1378 size_t total_size = 0;
1379
1380 if (_internal_metadata_.have_unknown_fields()) {
1381 total_size +=
1382 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1383 _internal_metadata_.unknown_fields());
1384 }
1385 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1386 // Prevent compiler warnings about cached_has_bits being unused
1387 (void) cached_has_bits;
1388
1389 // string session_handle = 1;
1390 if (this->session_handle().size() > 0) {
1391 total_size += 1 +
1392 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1393 this->session_handle());
1394 }
1395
1396 // int64 graph_version = 2;
1397 if (this->graph_version() != 0) {
1398 total_size += 1 +
1399 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1400 this->graph_version());
1401 }
1402
1403 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1404 SetCachedSize(cached_size);
1405 return total_size;
1406}
1407
1408void CreateSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1409// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CreateSessionResponse)
1410 GOOGLE_DCHECK_NE(&from, this);
1411 const CreateSessionResponse* source =
1412 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateSessionResponse>(
1413 &from);
1414 if (source == nullptr) {
1415 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CreateSessionResponse)
1416 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1417 } else {
1418 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CreateSessionResponse)
1419 MergeFrom(*source);
1420 }
1421}
1422
1423void CreateSessionResponse::MergeFrom(const CreateSessionResponse& from) {
1424// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CreateSessionResponse)
1425 GOOGLE_DCHECK_NE(&from, this);
1426 _internal_metadata_.MergeFrom(from._internal_metadata_);
1427 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1428 (void) cached_has_bits;
1429
1430 if (from.session_handle().size() > 0) {
1431 set_session_handle(from.session_handle());
1432 }
1433 if (from.graph_version() != 0) {
1434 set_graph_version(from.graph_version());
1435 }
1436}
1437
1438void CreateSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1439// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CreateSessionResponse)
1440 if (&from == this) return;
1441 Clear();
1442 MergeFrom(from);
1443}
1444
1445void CreateSessionResponse::CopyFrom(const CreateSessionResponse& from) {
1446// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CreateSessionResponse)
1447 if (&from == this) return;
1448 Clear();
1449 MergeFrom(from);
1450}
1451
1452bool CreateSessionResponse::IsInitialized() const {
1453 return true;
1454}
1455
1456void CreateSessionResponse::InternalSwap(CreateSessionResponse* other) {
1457 using std::swap;
1458 _internal_metadata_.Swap(&other->_internal_metadata_);
1459 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1460 GetArenaNoVirtual());
1461 swap(graph_version_, other->graph_version_);
1462}
1463
1464::PROTOBUF_NAMESPACE_ID::Metadata CreateSessionResponse::GetMetadata() const {
1465 return GetMetadataStatic();
1466}
1467
1468
1469// ===================================================================
1470
1471void ExtendSessionRequest::InitAsDefaultInstance() {
1472 ::tensorflow::_ExtendSessionRequest_default_instance_._instance.get_mutable()->graph_def_ = const_cast< ::tensorflow::GraphDef*>(
1473 ::tensorflow::GraphDef::internal_default_instance());
1474}
1475class ExtendSessionRequest::_Internal {
1476 public:
1477 static const ::tensorflow::GraphDef& graph_def(const ExtendSessionRequest* msg);
1478};
1479
1480const ::tensorflow::GraphDef&
1481ExtendSessionRequest::_Internal::graph_def(const ExtendSessionRequest* msg) {
1482 return *msg->graph_def_;
1483}
1484void ExtendSessionRequest::unsafe_arena_set_allocated_graph_def(
1485 ::tensorflow::GraphDef* graph_def) {
1486 if (GetArenaNoVirtual() == nullptr) {
1487 delete graph_def_;
1488 }
1489 graph_def_ = graph_def;
1490 if (graph_def) {
1491
1492 } else {
1493
1494 }
1495 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ExtendSessionRequest.graph_def)
1496}
1497void ExtendSessionRequest::clear_graph_def() {
1498 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
1499 delete graph_def_;
1500 }
1501 graph_def_ = nullptr;
1502}
1503ExtendSessionRequest::ExtendSessionRequest()
1504 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1505 SharedCtor();
1506 // @@protoc_insertion_point(constructor:tensorflow.ExtendSessionRequest)
1507}
1508ExtendSessionRequest::ExtendSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1509 : ::PROTOBUF_NAMESPACE_ID::Message(),
1510 _internal_metadata_(arena) {
1511 SharedCtor();
1512 RegisterArenaDtor(arena);
1513 // @@protoc_insertion_point(arena_constructor:tensorflow.ExtendSessionRequest)
1514}
1515ExtendSessionRequest::ExtendSessionRequest(const ExtendSessionRequest& from)
1516 : ::PROTOBUF_NAMESPACE_ID::Message(),
1517 _internal_metadata_(nullptr) {
1518 _internal_metadata_.MergeFrom(from._internal_metadata_);
1519 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1520 if (!from.session_handle().empty()) {
1521 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
1522 GetArenaNoVirtual());
1523 }
1524 if (from.has_graph_def()) {
1525 graph_def_ = new ::tensorflow::GraphDef(*from.graph_def_);
1526 } else {
1527 graph_def_ = nullptr;
1528 }
1529 current_graph_version_ = from.current_graph_version_;
1530 // @@protoc_insertion_point(copy_constructor:tensorflow.ExtendSessionRequest)
1531}
1532
1533void ExtendSessionRequest::SharedCtor() {
1534 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
1535 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1536 ::memset(&graph_def_, 0, static_cast<size_t>(
1537 reinterpret_cast<char*>(&current_graph_version_) -
1538 reinterpret_cast<char*>(&graph_def_)) + sizeof(current_graph_version_));
1539}
1540
1541ExtendSessionRequest::~ExtendSessionRequest() {
1542 // @@protoc_insertion_point(destructor:tensorflow.ExtendSessionRequest)
1543 SharedDtor();
1544}
1545
1546void ExtendSessionRequest::SharedDtor() {
1547 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1548 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1549 if (this != internal_default_instance()) delete graph_def_;
1550}
1551
1552void ExtendSessionRequest::ArenaDtor(void* object) {
1553 ExtendSessionRequest* _this = reinterpret_cast< ExtendSessionRequest* >(object);
1554 (void)_this;
1555}
1556void ExtendSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1557}
1558void ExtendSessionRequest::SetCachedSize(int size) const {
1559 _cached_size_.Set(size);
1560}
1561const ExtendSessionRequest& ExtendSessionRequest::default_instance() {
1562 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExtendSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
1563 return *internal_default_instance();
1564}
1565
1566
1567void ExtendSessionRequest::Clear() {
1568// @@protoc_insertion_point(message_clear_start:tensorflow.ExtendSessionRequest)
1569 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1570 // Prevent compiler warnings about cached_has_bits being unused
1571 (void) cached_has_bits;
1572
1573 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1574 if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) {
1575 delete graph_def_;
1576 }
1577 graph_def_ = nullptr;
1578 current_graph_version_ = PROTOBUF_LONGLONG(0);
1579 _internal_metadata_.Clear();
1580}
1581
1582#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1583const char* ExtendSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1584#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1585 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1586 while (!ctx->Done(&ptr)) {
1587 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1588 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1589 CHK_(ptr);
1590 switch (tag >> 3) {
1591 // string session_handle = 1;
1592 case 1:
1593 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1594 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.ExtendSessionRequest.session_handle");
1595 CHK_(ptr);
1596 } else goto handle_unusual;
1597 continue;
1598 // .tensorflow.GraphDef graph_def = 2;
1599 case 2:
1600 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1601 ptr = ctx->ParseMessage(mutable_graph_def(), ptr);
1602 CHK_(ptr);
1603 } else goto handle_unusual;
1604 continue;
1605 // int64 current_graph_version = 3;
1606 case 3:
1607 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
1608 current_graph_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1609 CHK_(ptr);
1610 } else goto handle_unusual;
1611 continue;
1612 default: {
1613 handle_unusual:
1614 if ((tag & 7) == 4 || tag == 0) {
1615 ctx->SetLastTag(tag);
1616 goto success;
1617 }
1618 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1619 CHK_(ptr != nullptr);
1620 continue;
1621 }
1622 } // switch
1623 } // while
1624success:
1625 return ptr;
1626failure:
1627 ptr = nullptr;
1628 goto success;
1629#undef CHK_
1630}
1631#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1632bool ExtendSessionRequest::MergePartialFromCodedStream(
1633 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1634#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1635 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1636 // @@protoc_insertion_point(parse_start:tensorflow.ExtendSessionRequest)
1637 for (;;) {
1638 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1639 tag = p.first;
1640 if (!p.second) goto handle_unusual;
1641 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1642 // string session_handle = 1;
1643 case 1: {
1644 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1645 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1646 input, this->mutable_session_handle()));
1647 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1648 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1649 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1650 "tensorflow.ExtendSessionRequest.session_handle"));
1651 } else {
1652 goto handle_unusual;
1653 }
1654 break;
1655 }
1656
1657 // .tensorflow.GraphDef graph_def = 2;
1658 case 2: {
1659 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1660 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1661 input, mutable_graph_def()));
1662 } else {
1663 goto handle_unusual;
1664 }
1665 break;
1666 }
1667
1668 // int64 current_graph_version = 3;
1669 case 3: {
1670 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
1671
1672 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1673 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1674 input, &current_graph_version_)));
1675 } else {
1676 goto handle_unusual;
1677 }
1678 break;
1679 }
1680
1681 default: {
1682 handle_unusual:
1683 if (tag == 0) {
1684 goto success;
1685 }
1686 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1687 input, tag, _internal_metadata_.mutable_unknown_fields()));
1688 break;
1689 }
1690 }
1691 }
1692success:
1693 // @@protoc_insertion_point(parse_success:tensorflow.ExtendSessionRequest)
1694 return true;
1695failure:
1696 // @@protoc_insertion_point(parse_failure:tensorflow.ExtendSessionRequest)
1697 return false;
1698#undef DO_
1699}
1700#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1701
1702void ExtendSessionRequest::SerializeWithCachedSizes(
1703 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1704 // @@protoc_insertion_point(serialize_start:tensorflow.ExtendSessionRequest)
1705 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1706 (void) cached_has_bits;
1707
1708 // string session_handle = 1;
1709 if (this->session_handle().size() > 0) {
1710 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1711 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1712 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1713 "tensorflow.ExtendSessionRequest.session_handle");
1714 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1715 1, this->session_handle(), output);
1716 }
1717
1718 // .tensorflow.GraphDef graph_def = 2;
1719 if (this->has_graph_def()) {
1720 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1721 2, _Internal::graph_def(this), output);
1722 }
1723
1724 // int64 current_graph_version = 3;
1725 if (this->current_graph_version() != 0) {
1726 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->current_graph_version(), output);
1727 }
1728
1729 if (_internal_metadata_.have_unknown_fields()) {
1730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1731 _internal_metadata_.unknown_fields(), output);
1732 }
1733 // @@protoc_insertion_point(serialize_end:tensorflow.ExtendSessionRequest)
1734}
1735
1736::PROTOBUF_NAMESPACE_ID::uint8* ExtendSessionRequest::InternalSerializeWithCachedSizesToArray(
1737 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1738 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ExtendSessionRequest)
1739 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1740 (void) cached_has_bits;
1741
1742 // string session_handle = 1;
1743 if (this->session_handle().size() > 0) {
1744 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1745 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
1746 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1747 "tensorflow.ExtendSessionRequest.session_handle");
1748 target =
1749 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1750 1, this->session_handle(), target);
1751 }
1752
1753 // .tensorflow.GraphDef graph_def = 2;
1754 if (this->has_graph_def()) {
1755 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1756 InternalWriteMessageToArray(
1757 2, _Internal::graph_def(this), target);
1758 }
1759
1760 // int64 current_graph_version = 3;
1761 if (this->current_graph_version() != 0) {
1762 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->current_graph_version(), target);
1763 }
1764
1765 if (_internal_metadata_.have_unknown_fields()) {
1766 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1767 _internal_metadata_.unknown_fields(), target);
1768 }
1769 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ExtendSessionRequest)
1770 return target;
1771}
1772
1773size_t ExtendSessionRequest::ByteSizeLong() const {
1774// @@protoc_insertion_point(message_byte_size_start:tensorflow.ExtendSessionRequest)
1775 size_t total_size = 0;
1776
1777 if (_internal_metadata_.have_unknown_fields()) {
1778 total_size +=
1779 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1780 _internal_metadata_.unknown_fields());
1781 }
1782 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1783 // Prevent compiler warnings about cached_has_bits being unused
1784 (void) cached_has_bits;
1785
1786 // string session_handle = 1;
1787 if (this->session_handle().size() > 0) {
1788 total_size += 1 +
1789 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1790 this->session_handle());
1791 }
1792
1793 // .tensorflow.GraphDef graph_def = 2;
1794 if (this->has_graph_def()) {
1795 total_size += 1 +
1796 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1797 *graph_def_);
1798 }
1799
1800 // int64 current_graph_version = 3;
1801 if (this->current_graph_version() != 0) {
1802 total_size += 1 +
1803 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1804 this->current_graph_version());
1805 }
1806
1807 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1808 SetCachedSize(cached_size);
1809 return total_size;
1810}
1811
1812void ExtendSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1813// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ExtendSessionRequest)
1814 GOOGLE_DCHECK_NE(&from, this);
1815 const ExtendSessionRequest* source =
1816 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExtendSessionRequest>(
1817 &from);
1818 if (source == nullptr) {
1819 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ExtendSessionRequest)
1820 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1821 } else {
1822 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ExtendSessionRequest)
1823 MergeFrom(*source);
1824 }
1825}
1826
1827void ExtendSessionRequest::MergeFrom(const ExtendSessionRequest& from) {
1828// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ExtendSessionRequest)
1829 GOOGLE_DCHECK_NE(&from, this);
1830 _internal_metadata_.MergeFrom(from._internal_metadata_);
1831 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1832 (void) cached_has_bits;
1833
1834 if (from.session_handle().size() > 0) {
1835 set_session_handle(from.session_handle());
1836 }
1837 if (from.has_graph_def()) {
1838 mutable_graph_def()->::tensorflow::GraphDef::MergeFrom(from.graph_def());
1839 }
1840 if (from.current_graph_version() != 0) {
1841 set_current_graph_version(from.current_graph_version());
1842 }
1843}
1844
1845void ExtendSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1846// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ExtendSessionRequest)
1847 if (&from == this) return;
1848 Clear();
1849 MergeFrom(from);
1850}
1851
1852void ExtendSessionRequest::CopyFrom(const ExtendSessionRequest& from) {
1853// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ExtendSessionRequest)
1854 if (&from == this) return;
1855 Clear();
1856 MergeFrom(from);
1857}
1858
1859bool ExtendSessionRequest::IsInitialized() const {
1860 return true;
1861}
1862
1863void ExtendSessionRequest::InternalSwap(ExtendSessionRequest* other) {
1864 using std::swap;
1865 _internal_metadata_.Swap(&other->_internal_metadata_);
1866 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1867 GetArenaNoVirtual());
1868 swap(graph_def_, other->graph_def_);
1869 swap(current_graph_version_, other->current_graph_version_);
1870}
1871
1872::PROTOBUF_NAMESPACE_ID::Metadata ExtendSessionRequest::GetMetadata() const {
1873 return GetMetadataStatic();
1874}
1875
1876
1877// ===================================================================
1878
1879void ExtendSessionResponse::InitAsDefaultInstance() {
1880}
1881class ExtendSessionResponse::_Internal {
1882 public:
1883};
1884
1885ExtendSessionResponse::ExtendSessionResponse()
1886 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1887 SharedCtor();
1888 // @@protoc_insertion_point(constructor:tensorflow.ExtendSessionResponse)
1889}
1890ExtendSessionResponse::ExtendSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1891 : ::PROTOBUF_NAMESPACE_ID::Message(),
1892 _internal_metadata_(arena) {
1893 SharedCtor();
1894 RegisterArenaDtor(arena);
1895 // @@protoc_insertion_point(arena_constructor:tensorflow.ExtendSessionResponse)
1896}
1897ExtendSessionResponse::ExtendSessionResponse(const ExtendSessionResponse& from)
1898 : ::PROTOBUF_NAMESPACE_ID::Message(),
1899 _internal_metadata_(nullptr) {
1900 _internal_metadata_.MergeFrom(from._internal_metadata_);
1901 new_graph_version_ = from.new_graph_version_;
1902 // @@protoc_insertion_point(copy_constructor:tensorflow.ExtendSessionResponse)
1903}
1904
1905void ExtendSessionResponse::SharedCtor() {
1906 new_graph_version_ = PROTOBUF_LONGLONG(0);
1907}
1908
1909ExtendSessionResponse::~ExtendSessionResponse() {
1910 // @@protoc_insertion_point(destructor:tensorflow.ExtendSessionResponse)
1911 SharedDtor();
1912}
1913
1914void ExtendSessionResponse::SharedDtor() {
1915 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1916}
1917
1918void ExtendSessionResponse::ArenaDtor(void* object) {
1919 ExtendSessionResponse* _this = reinterpret_cast< ExtendSessionResponse* >(object);
1920 (void)_this;
1921}
1922void ExtendSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1923}
1924void ExtendSessionResponse::SetCachedSize(int size) const {
1925 _cached_size_.Set(size);
1926}
1927const ExtendSessionResponse& ExtendSessionResponse::default_instance() {
1928 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExtendSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
1929 return *internal_default_instance();
1930}
1931
1932
1933void ExtendSessionResponse::Clear() {
1934// @@protoc_insertion_point(message_clear_start:tensorflow.ExtendSessionResponse)
1935 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1936 // Prevent compiler warnings about cached_has_bits being unused
1937 (void) cached_has_bits;
1938
1939 new_graph_version_ = PROTOBUF_LONGLONG(0);
1940 _internal_metadata_.Clear();
1941}
1942
1943#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1944const char* ExtendSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1945#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1946 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1947 while (!ctx->Done(&ptr)) {
1948 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1949 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1950 CHK_(ptr);
1951 switch (tag >> 3) {
1952 // int64 new_graph_version = 4;
1953 case 4:
1954 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
1955 new_graph_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1956 CHK_(ptr);
1957 } else goto handle_unusual;
1958 continue;
1959 default: {
1960 handle_unusual:
1961 if ((tag & 7) == 4 || tag == 0) {
1962 ctx->SetLastTag(tag);
1963 goto success;
1964 }
1965 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1966 CHK_(ptr != nullptr);
1967 continue;
1968 }
1969 } // switch
1970 } // while
1971success:
1972 return ptr;
1973failure:
1974 ptr = nullptr;
1975 goto success;
1976#undef CHK_
1977}
1978#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1979bool ExtendSessionResponse::MergePartialFromCodedStream(
1980 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1981#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1982 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1983 // @@protoc_insertion_point(parse_start:tensorflow.ExtendSessionResponse)
1984 for (;;) {
1985 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1986 tag = p.first;
1987 if (!p.second) goto handle_unusual;
1988 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1989 // int64 new_graph_version = 4;
1990 case 4: {
1991 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
1992
1993 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1994 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1995 input, &new_graph_version_)));
1996 } else {
1997 goto handle_unusual;
1998 }
1999 break;
2000 }
2001
2002 default: {
2003 handle_unusual:
2004 if (tag == 0) {
2005 goto success;
2006 }
2007 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2008 input, tag, _internal_metadata_.mutable_unknown_fields()));
2009 break;
2010 }
2011 }
2012 }
2013success:
2014 // @@protoc_insertion_point(parse_success:tensorflow.ExtendSessionResponse)
2015 return true;
2016failure:
2017 // @@protoc_insertion_point(parse_failure:tensorflow.ExtendSessionResponse)
2018 return false;
2019#undef DO_
2020}
2021#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2022
2023void ExtendSessionResponse::SerializeWithCachedSizes(
2024 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2025 // @@protoc_insertion_point(serialize_start:tensorflow.ExtendSessionResponse)
2026 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2027 (void) cached_has_bits;
2028
2029 // int64 new_graph_version = 4;
2030 if (this->new_graph_version() != 0) {
2031 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->new_graph_version(), output);
2032 }
2033
2034 if (_internal_metadata_.have_unknown_fields()) {
2035 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2036 _internal_metadata_.unknown_fields(), output);
2037 }
2038 // @@protoc_insertion_point(serialize_end:tensorflow.ExtendSessionResponse)
2039}
2040
2041::PROTOBUF_NAMESPACE_ID::uint8* ExtendSessionResponse::InternalSerializeWithCachedSizesToArray(
2042 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2043 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ExtendSessionResponse)
2044 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2045 (void) cached_has_bits;
2046
2047 // int64 new_graph_version = 4;
2048 if (this->new_graph_version() != 0) {
2049 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->new_graph_version(), target);
2050 }
2051
2052 if (_internal_metadata_.have_unknown_fields()) {
2053 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2054 _internal_metadata_.unknown_fields(), target);
2055 }
2056 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ExtendSessionResponse)
2057 return target;
2058}
2059
2060size_t ExtendSessionResponse::ByteSizeLong() const {
2061// @@protoc_insertion_point(message_byte_size_start:tensorflow.ExtendSessionResponse)
2062 size_t total_size = 0;
2063
2064 if (_internal_metadata_.have_unknown_fields()) {
2065 total_size +=
2066 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2067 _internal_metadata_.unknown_fields());
2068 }
2069 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2070 // Prevent compiler warnings about cached_has_bits being unused
2071 (void) cached_has_bits;
2072
2073 // int64 new_graph_version = 4;
2074 if (this->new_graph_version() != 0) {
2075 total_size += 1 +
2076 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
2077 this->new_graph_version());
2078 }
2079
2080 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2081 SetCachedSize(cached_size);
2082 return total_size;
2083}
2084
2085void ExtendSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2086// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ExtendSessionResponse)
2087 GOOGLE_DCHECK_NE(&from, this);
2088 const ExtendSessionResponse* source =
2089 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExtendSessionResponse>(
2090 &from);
2091 if (source == nullptr) {
2092 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ExtendSessionResponse)
2093 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2094 } else {
2095 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ExtendSessionResponse)
2096 MergeFrom(*source);
2097 }
2098}
2099
2100void ExtendSessionResponse::MergeFrom(const ExtendSessionResponse& from) {
2101// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ExtendSessionResponse)
2102 GOOGLE_DCHECK_NE(&from, this);
2103 _internal_metadata_.MergeFrom(from._internal_metadata_);
2104 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2105 (void) cached_has_bits;
2106
2107 if (from.new_graph_version() != 0) {
2108 set_new_graph_version(from.new_graph_version());
2109 }
2110}
2111
2112void ExtendSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2113// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ExtendSessionResponse)
2114 if (&from == this) return;
2115 Clear();
2116 MergeFrom(from);
2117}
2118
2119void ExtendSessionResponse::CopyFrom(const ExtendSessionResponse& from) {
2120// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ExtendSessionResponse)
2121 if (&from == this) return;
2122 Clear();
2123 MergeFrom(from);
2124}
2125
2126bool ExtendSessionResponse::IsInitialized() const {
2127 return true;
2128}
2129
2130void ExtendSessionResponse::InternalSwap(ExtendSessionResponse* other) {
2131 using std::swap;
2132 _internal_metadata_.Swap(&other->_internal_metadata_);
2133 swap(new_graph_version_, other->new_graph_version_);
2134}
2135
2136::PROTOBUF_NAMESPACE_ID::Metadata ExtendSessionResponse::GetMetadata() const {
2137 return GetMetadataStatic();
2138}
2139
2140
2141// ===================================================================
2142
2143void RunStepRequest::InitAsDefaultInstance() {
2144 ::tensorflow::_RunStepRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::tensorflow::RunOptions*>(
2145 ::tensorflow::RunOptions::internal_default_instance());
2146}
2147class RunStepRequest::_Internal {
2148 public:
2149 static const ::tensorflow::RunOptions& options(const RunStepRequest* msg);
2150};
2151
2152const ::tensorflow::RunOptions&
2153RunStepRequest::_Internal::options(const RunStepRequest* msg) {
2154 return *msg->options_;
2155}
2156void RunStepRequest::clear_feed() {
2157 feed_.Clear();
2158}
2159void RunStepRequest::unsafe_arena_set_allocated_options(
2160 ::tensorflow::RunOptions* options) {
2161 if (GetArenaNoVirtual() == nullptr) {
2162 delete options_;
2163 }
2164 options_ = options;
2165 if (options) {
2166
2167 } else {
2168
2169 }
2170 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunStepRequest.options)
2171}
2172void RunStepRequest::clear_options() {
2173 if (GetArenaNoVirtual() == nullptr && options_ != nullptr) {
2174 delete options_;
2175 }
2176 options_ = nullptr;
2177}
2178RunStepRequest::RunStepRequest()
2179 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2180 SharedCtor();
2181 // @@protoc_insertion_point(constructor:tensorflow.RunStepRequest)
2182}
2183RunStepRequest::RunStepRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2184 : ::PROTOBUF_NAMESPACE_ID::Message(),
2185 _internal_metadata_(arena),
2186 feed_(arena),
2187 fetch_(arena),
2188 target_(arena) {
2189 SharedCtor();
2190 RegisterArenaDtor(arena);
2191 // @@protoc_insertion_point(arena_constructor:tensorflow.RunStepRequest)
2192}
2193RunStepRequest::RunStepRequest(const RunStepRequest& from)
2194 : ::PROTOBUF_NAMESPACE_ID::Message(),
2195 _internal_metadata_(nullptr),
2196 feed_(from.feed_),
2197 fetch_(from.fetch_),
2198 target_(from.target_) {
2199 _internal_metadata_.MergeFrom(from._internal_metadata_);
2200 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2201 if (!from.session_handle().empty()) {
2202 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
2203 GetArenaNoVirtual());
2204 }
2205 partial_run_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2206 if (!from.partial_run_handle().empty()) {
2207 partial_run_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partial_run_handle(),
2208 GetArenaNoVirtual());
2209 }
2210 if (from.has_options()) {
2211 options_ = new ::tensorflow::RunOptions(*from.options_);
2212 } else {
2213 options_ = nullptr;
2214 }
2215 ::memcpy(&request_id_, &from.request_id_,
2216 static_cast<size_t>(reinterpret_cast<char*>(&store_errors_in_response_body_) -
2217 reinterpret_cast<char*>(&request_id_)) + sizeof(store_errors_in_response_body_));
2218 // @@protoc_insertion_point(copy_constructor:tensorflow.RunStepRequest)
2219}
2220
2221void RunStepRequest::SharedCtor() {
2222 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
2223 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2224 partial_run_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2225 ::memset(&options_, 0, static_cast<size_t>(
2226 reinterpret_cast<char*>(&store_errors_in_response_body_) -
2227 reinterpret_cast<char*>(&options_)) + sizeof(store_errors_in_response_body_));
2228}
2229
2230RunStepRequest::~RunStepRequest() {
2231 // @@protoc_insertion_point(destructor:tensorflow.RunStepRequest)
2232 SharedDtor();
2233}
2234
2235void RunStepRequest::SharedDtor() {
2236 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2237 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2238 partial_run_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2239 if (this != internal_default_instance()) delete options_;
2240}
2241
2242void RunStepRequest::ArenaDtor(void* object) {
2243 RunStepRequest* _this = reinterpret_cast< RunStepRequest* >(object);
2244 (void)_this;
2245}
2246void RunStepRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2247}
2248void RunStepRequest::SetCachedSize(int size) const {
2249 _cached_size_.Set(size);
2250}
2251const RunStepRequest& RunStepRequest::default_instance() {
2252 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunStepRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
2253 return *internal_default_instance();
2254}
2255
2256
2257void RunStepRequest::Clear() {
2258// @@protoc_insertion_point(message_clear_start:tensorflow.RunStepRequest)
2259 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2260 // Prevent compiler warnings about cached_has_bits being unused
2261 (void) cached_has_bits;
2262
2263 feed_.Clear();
2264 fetch_.Clear();
2265 target_.Clear();
2266 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2267 partial_run_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2268 if (GetArenaNoVirtual() == nullptr && options_ != nullptr) {
2269 delete options_;
2270 }
2271 options_ = nullptr;
2272 ::memset(&request_id_, 0, static_cast<size_t>(
2273 reinterpret_cast<char*>(&store_errors_in_response_body_) -
2274 reinterpret_cast<char*>(&request_id_)) + sizeof(store_errors_in_response_body_));
2275 _internal_metadata_.Clear();
2276}
2277
2278#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2279const char* RunStepRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2280#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2281 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2282 while (!ctx->Done(&ptr)) {
2283 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2284 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2285 CHK_(ptr);
2286 switch (tag >> 3) {
2287 // string session_handle = 1;
2288 case 1:
2289 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2290 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.RunStepRequest.session_handle");
2291 CHK_(ptr);
2292 } else goto handle_unusual;
2293 continue;
2294 // repeated .tensorflow.NamedTensorProto feed = 2;
2295 case 2:
2296 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2297 ptr -= 1;
2298 do {
2299 ptr += 1;
2300 ptr = ctx->ParseMessage(add_feed(), ptr);
2301 CHK_(ptr);
2302 if (!ctx->DataAvailable(ptr)) break;
2303 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
2304 } else goto handle_unusual;
2305 continue;
2306 // repeated string fetch = 3;
2307 case 3:
2308 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2309 ptr -= 1;
2310 do {
2311 ptr += 1;
2312 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_fetch(), ptr, ctx, "tensorflow.RunStepRequest.fetch");
2313 CHK_(ptr);
2314 if (!ctx->DataAvailable(ptr)) break;
2315 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
2316 } else goto handle_unusual;
2317 continue;
2318 // repeated string target = 4;
2319 case 4:
2320 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
2321 ptr -= 1;
2322 do {
2323 ptr += 1;
2324 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_target(), ptr, ctx, "tensorflow.RunStepRequest.target");
2325 CHK_(ptr);
2326 if (!ctx->DataAvailable(ptr)) break;
2327 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
2328 } else goto handle_unusual;
2329 continue;
2330 // .tensorflow.RunOptions options = 5;
2331 case 5:
2332 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
2333 ptr = ctx->ParseMessage(mutable_options(), ptr);
2334 CHK_(ptr);
2335 } else goto handle_unusual;
2336 continue;
2337 // string partial_run_handle = 6;
2338 case 6:
2339 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
2340 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partial_run_handle(), ptr, ctx, "tensorflow.RunStepRequest.partial_run_handle");
2341 CHK_(ptr);
2342 } else goto handle_unusual;
2343 continue;
2344 // bool store_errors_in_response_body = 7;
2345 case 7:
2346 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
2347 store_errors_in_response_body_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2348 CHK_(ptr);
2349 } else goto handle_unusual;
2350 continue;
2351 // int64 request_id = 8;
2352 case 8:
2353 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
2354 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2355 CHK_(ptr);
2356 } else goto handle_unusual;
2357 continue;
2358 default: {
2359 handle_unusual:
2360 if ((tag & 7) == 4 || tag == 0) {
2361 ctx->SetLastTag(tag);
2362 goto success;
2363 }
2364 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2365 CHK_(ptr != nullptr);
2366 continue;
2367 }
2368 } // switch
2369 } // while
2370success:
2371 return ptr;
2372failure:
2373 ptr = nullptr;
2374 goto success;
2375#undef CHK_
2376}
2377#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2378bool RunStepRequest::MergePartialFromCodedStream(
2379 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2380#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2381 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2382 // @@protoc_insertion_point(parse_start:tensorflow.RunStepRequest)
2383 for (;;) {
2384 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2385 tag = p.first;
2386 if (!p.second) goto handle_unusual;
2387 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2388 // string session_handle = 1;
2389 case 1: {
2390 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2391 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2392 input, this->mutable_session_handle()));
2393 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2394 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2396 "tensorflow.RunStepRequest.session_handle"));
2397 } else {
2398 goto handle_unusual;
2399 }
2400 break;
2401 }
2402
2403 // repeated .tensorflow.NamedTensorProto feed = 2;
2404 case 2: {
2405 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2406 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2407 input, add_feed()));
2408 } else {
2409 goto handle_unusual;
2410 }
2411 break;
2412 }
2413
2414 // repeated string fetch = 3;
2415 case 3: {
2416 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2417 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2418 input, this->add_fetch()));
2419 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2420 this->fetch(this->fetch_size() - 1).data(),
2421 static_cast<int>(this->fetch(this->fetch_size() - 1).length()),
2422 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2423 "tensorflow.RunStepRequest.fetch"));
2424 } else {
2425 goto handle_unusual;
2426 }
2427 break;
2428 }
2429
2430 // repeated string target = 4;
2431 case 4: {
2432 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
2433 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2434 input, this->add_target()));
2435 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2436 this->target(this->target_size() - 1).data(),
2437 static_cast<int>(this->target(this->target_size() - 1).length()),
2438 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2439 "tensorflow.RunStepRequest.target"));
2440 } else {
2441 goto handle_unusual;
2442 }
2443 break;
2444 }
2445
2446 // .tensorflow.RunOptions options = 5;
2447 case 5: {
2448 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
2449 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2450 input, mutable_options()));
2451 } else {
2452 goto handle_unusual;
2453 }
2454 break;
2455 }
2456
2457 // string partial_run_handle = 6;
2458 case 6: {
2459 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
2460 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2461 input, this->mutable_partial_run_handle()));
2462 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2463 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
2464 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2465 "tensorflow.RunStepRequest.partial_run_handle"));
2466 } else {
2467 goto handle_unusual;
2468 }
2469 break;
2470 }
2471
2472 // bool store_errors_in_response_body = 7;
2473 case 7: {
2474 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
2475
2476 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2477 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2478 input, &store_errors_in_response_body_)));
2479 } else {
2480 goto handle_unusual;
2481 }
2482 break;
2483 }
2484
2485 // int64 request_id = 8;
2486 case 8: {
2487 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) {
2488
2489 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2490 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
2491 input, &request_id_)));
2492 } else {
2493 goto handle_unusual;
2494 }
2495 break;
2496 }
2497
2498 default: {
2499 handle_unusual:
2500 if (tag == 0) {
2501 goto success;
2502 }
2503 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2504 input, tag, _internal_metadata_.mutable_unknown_fields()));
2505 break;
2506 }
2507 }
2508 }
2509success:
2510 // @@protoc_insertion_point(parse_success:tensorflow.RunStepRequest)
2511 return true;
2512failure:
2513 // @@protoc_insertion_point(parse_failure:tensorflow.RunStepRequest)
2514 return false;
2515#undef DO_
2516}
2517#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2518
2519void RunStepRequest::SerializeWithCachedSizes(
2520 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2521 // @@protoc_insertion_point(serialize_start:tensorflow.RunStepRequest)
2522 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2523 (void) cached_has_bits;
2524
2525 // string session_handle = 1;
2526 if (this->session_handle().size() > 0) {
2527 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2528 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2529 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2530 "tensorflow.RunStepRequest.session_handle");
2531 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2532 1, this->session_handle(), output);
2533 }
2534
2535 // repeated .tensorflow.NamedTensorProto feed = 2;
2536 for (unsigned int i = 0,
2537 n = static_cast<unsigned int>(this->feed_size()); i < n; i++) {
2538 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2539 2,
2540 this->feed(static_cast<int>(i)),
2541 output);
2542 }
2543
2544 // repeated string fetch = 3;
2545 for (int i = 0, n = this->fetch_size(); i < n; i++) {
2546 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2547 this->fetch(i).data(), static_cast<int>(this->fetch(i).length()),
2548 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2549 "tensorflow.RunStepRequest.fetch");
2550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2551 3, this->fetch(i), output);
2552 }
2553
2554 // repeated string target = 4;
2555 for (int i = 0, n = this->target_size(); i < n; i++) {
2556 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2557 this->target(i).data(), static_cast<int>(this->target(i).length()),
2558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2559 "tensorflow.RunStepRequest.target");
2560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2561 4, this->target(i), output);
2562 }
2563
2564 // .tensorflow.RunOptions options = 5;
2565 if (this->has_options()) {
2566 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2567 5, _Internal::options(this), output);
2568 }
2569
2570 // string partial_run_handle = 6;
2571 if (this->partial_run_handle().size() > 0) {
2572 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2573 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
2574 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2575 "tensorflow.RunStepRequest.partial_run_handle");
2576 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2577 6, this->partial_run_handle(), output);
2578 }
2579
2580 // bool store_errors_in_response_body = 7;
2581 if (this->store_errors_in_response_body() != 0) {
2582 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->store_errors_in_response_body(), output);
2583 }
2584
2585 // int64 request_id = 8;
2586 if (this->request_id() != 0) {
2587 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(8, this->request_id(), output);
2588 }
2589
2590 if (_internal_metadata_.have_unknown_fields()) {
2591 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2592 _internal_metadata_.unknown_fields(), output);
2593 }
2594 // @@protoc_insertion_point(serialize_end:tensorflow.RunStepRequest)
2595}
2596
2597::PROTOBUF_NAMESPACE_ID::uint8* RunStepRequest::InternalSerializeWithCachedSizesToArray(
2598 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2599 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunStepRequest)
2600 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2601 (void) cached_has_bits;
2602
2603 // string session_handle = 1;
2604 if (this->session_handle().size() > 0) {
2605 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2606 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
2607 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2608 "tensorflow.RunStepRequest.session_handle");
2609 target =
2610 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2611 1, this->session_handle(), target);
2612 }
2613
2614 // repeated .tensorflow.NamedTensorProto feed = 2;
2615 for (unsigned int i = 0,
2616 n = static_cast<unsigned int>(this->feed_size()); i < n; i++) {
2617 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2618 InternalWriteMessageToArray(
2619 2, this->feed(static_cast<int>(i)), target);
2620 }
2621
2622 // repeated string fetch = 3;
2623 for (int i = 0, n = this->fetch_size(); i < n; i++) {
2624 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2625 this->fetch(i).data(), static_cast<int>(this->fetch(i).length()),
2626 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2627 "tensorflow.RunStepRequest.fetch");
2628 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2629 WriteStringToArray(3, this->fetch(i), target);
2630 }
2631
2632 // repeated string target = 4;
2633 for (int i = 0, n = this->target_size(); i < n; i++) {
2634 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2635 this->target(i).data(), static_cast<int>(this->target(i).length()),
2636 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2637 "tensorflow.RunStepRequest.target");
2638 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2639 WriteStringToArray(4, this->target(i), target);
2640 }
2641
2642 // .tensorflow.RunOptions options = 5;
2643 if (this->has_options()) {
2644 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2645 InternalWriteMessageToArray(
2646 5, _Internal::options(this), target);
2647 }
2648
2649 // string partial_run_handle = 6;
2650 if (this->partial_run_handle().size() > 0) {
2651 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2652 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
2653 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2654 "tensorflow.RunStepRequest.partial_run_handle");
2655 target =
2656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2657 6, this->partial_run_handle(), target);
2658 }
2659
2660 // bool store_errors_in_response_body = 7;
2661 if (this->store_errors_in_response_body() != 0) {
2662 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->store_errors_in_response_body(), target);
2663 }
2664
2665 // int64 request_id = 8;
2666 if (this->request_id() != 0) {
2667 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->request_id(), target);
2668 }
2669
2670 if (_internal_metadata_.have_unknown_fields()) {
2671 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2672 _internal_metadata_.unknown_fields(), target);
2673 }
2674 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunStepRequest)
2675 return target;
2676}
2677
2678size_t RunStepRequest::ByteSizeLong() const {
2679// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunStepRequest)
2680 size_t total_size = 0;
2681
2682 if (_internal_metadata_.have_unknown_fields()) {
2683 total_size +=
2684 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2685 _internal_metadata_.unknown_fields());
2686 }
2687 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2688 // Prevent compiler warnings about cached_has_bits being unused
2689 (void) cached_has_bits;
2690
2691 // repeated .tensorflow.NamedTensorProto feed = 2;
2692 {
2693 unsigned int count = static_cast<unsigned int>(this->feed_size());
2694 total_size += 1UL * count;
2695 for (unsigned int i = 0; i < count; i++) {
2696 total_size +=
2697 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2698 this->feed(static_cast<int>(i)));
2699 }
2700 }
2701
2702 // repeated string fetch = 3;
2703 total_size += 1 *
2704 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->fetch_size());
2705 for (int i = 0, n = this->fetch_size(); i < n; i++) {
2706 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2707 this->fetch(i));
2708 }
2709
2710 // repeated string target = 4;
2711 total_size += 1 *
2712 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->target_size());
2713 for (int i = 0, n = this->target_size(); i < n; i++) {
2714 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2715 this->target(i));
2716 }
2717
2718 // string session_handle = 1;
2719 if (this->session_handle().size() > 0) {
2720 total_size += 1 +
2721 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2722 this->session_handle());
2723 }
2724
2725 // string partial_run_handle = 6;
2726 if (this->partial_run_handle().size() > 0) {
2727 total_size += 1 +
2728 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2729 this->partial_run_handle());
2730 }
2731
2732 // .tensorflow.RunOptions options = 5;
2733 if (this->has_options()) {
2734 total_size += 1 +
2735 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2736 *options_);
2737 }
2738
2739 // int64 request_id = 8;
2740 if (this->request_id() != 0) {
2741 total_size += 1 +
2742 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
2743 this->request_id());
2744 }
2745
2746 // bool store_errors_in_response_body = 7;
2747 if (this->store_errors_in_response_body() != 0) {
2748 total_size += 1 + 1;
2749 }
2750
2751 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2752 SetCachedSize(cached_size);
2753 return total_size;
2754}
2755
2756void RunStepRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2757// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunStepRequest)
2758 GOOGLE_DCHECK_NE(&from, this);
2759 const RunStepRequest* source =
2760 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunStepRequest>(
2761 &from);
2762 if (source == nullptr) {
2763 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunStepRequest)
2764 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2765 } else {
2766 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunStepRequest)
2767 MergeFrom(*source);
2768 }
2769}
2770
2771void RunStepRequest::MergeFrom(const RunStepRequest& from) {
2772// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunStepRequest)
2773 GOOGLE_DCHECK_NE(&from, this);
2774 _internal_metadata_.MergeFrom(from._internal_metadata_);
2775 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2776 (void) cached_has_bits;
2777
2778 feed_.MergeFrom(from.feed_);
2779 fetch_.MergeFrom(from.fetch_);
2780 target_.MergeFrom(from.target_);
2781 if (from.session_handle().size() > 0) {
2782 set_session_handle(from.session_handle());
2783 }
2784 if (from.partial_run_handle().size() > 0) {
2785 set_partial_run_handle(from.partial_run_handle());
2786 }
2787 if (from.has_options()) {
2788 mutable_options()->::tensorflow::RunOptions::MergeFrom(from.options());
2789 }
2790 if (from.request_id() != 0) {
2791 set_request_id(from.request_id());
2792 }
2793 if (from.store_errors_in_response_body() != 0) {
2794 set_store_errors_in_response_body(from.store_errors_in_response_body());
2795 }
2796}
2797
2798void RunStepRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2799// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunStepRequest)
2800 if (&from == this) return;
2801 Clear();
2802 MergeFrom(from);
2803}
2804
2805void RunStepRequest::CopyFrom(const RunStepRequest& from) {
2806// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunStepRequest)
2807 if (&from == this) return;
2808 Clear();
2809 MergeFrom(from);
2810}
2811
2812bool RunStepRequest::IsInitialized() const {
2813 return true;
2814}
2815
2816void RunStepRequest::InternalSwap(RunStepRequest* other) {
2817 using std::swap;
2818 _internal_metadata_.Swap(&other->_internal_metadata_);
2819 CastToBase(&feed_)->InternalSwap(CastToBase(&other->feed_));
2820 fetch_.InternalSwap(CastToBase(&other->fetch_));
2821 target_.InternalSwap(CastToBase(&other->target_));
2822 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2823 GetArenaNoVirtual());
2824 partial_run_handle_.Swap(&other->partial_run_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2825 GetArenaNoVirtual());
2826 swap(options_, other->options_);
2827 swap(request_id_, other->request_id_);
2828 swap(store_errors_in_response_body_, other->store_errors_in_response_body_);
2829}
2830
2831::PROTOBUF_NAMESPACE_ID::Metadata RunStepRequest::GetMetadata() const {
2832 return GetMetadataStatic();
2833}
2834
2835
2836// ===================================================================
2837
2838void RunStepResponse::InitAsDefaultInstance() {
2839 ::tensorflow::_RunStepResponse_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::tensorflow::RunMetadata*>(
2840 ::tensorflow::RunMetadata::internal_default_instance());
2841}
2842class RunStepResponse::_Internal {
2843 public:
2844 static const ::tensorflow::RunMetadata& metadata(const RunStepResponse* msg);
2845};
2846
2847const ::tensorflow::RunMetadata&
2848RunStepResponse::_Internal::metadata(const RunStepResponse* msg) {
2849 return *msg->metadata_;
2850}
2851void RunStepResponse::clear_tensor() {
2852 tensor_.Clear();
2853}
2854void RunStepResponse::unsafe_arena_set_allocated_metadata(
2855 ::tensorflow::RunMetadata* metadata) {
2856 if (GetArenaNoVirtual() == nullptr) {
2857 delete metadata_;
2858 }
2859 metadata_ = metadata;
2860 if (metadata) {
2861
2862 } else {
2863
2864 }
2865 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunStepResponse.metadata)
2866}
2867void RunStepResponse::clear_metadata() {
2868 if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) {
2869 delete metadata_;
2870 }
2871 metadata_ = nullptr;
2872}
2873RunStepResponse::RunStepResponse()
2874 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2875 SharedCtor();
2876 // @@protoc_insertion_point(constructor:tensorflow.RunStepResponse)
2877}
2878RunStepResponse::RunStepResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2879 : ::PROTOBUF_NAMESPACE_ID::Message(),
2880 _internal_metadata_(arena),
2881 tensor_(arena) {
2882 SharedCtor();
2883 RegisterArenaDtor(arena);
2884 // @@protoc_insertion_point(arena_constructor:tensorflow.RunStepResponse)
2885}
2886RunStepResponse::RunStepResponse(const RunStepResponse& from)
2887 : ::PROTOBUF_NAMESPACE_ID::Message(),
2888 _internal_metadata_(nullptr),
2889 tensor_(from.tensor_) {
2890 _internal_metadata_.MergeFrom(from._internal_metadata_);
2891 status_error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2892 if (!from.status_error_message().empty()) {
2893 status_error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.status_error_message(),
2894 GetArenaNoVirtual());
2895 }
2896 if (from.has_metadata()) {
2897 metadata_ = new ::tensorflow::RunMetadata(*from.metadata_);
2898 } else {
2899 metadata_ = nullptr;
2900 }
2901 status_code_ = from.status_code_;
2902 // @@protoc_insertion_point(copy_constructor:tensorflow.RunStepResponse)
2903}
2904
2905void RunStepResponse::SharedCtor() {
2906 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
2907 status_error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2908 ::memset(&metadata_, 0, static_cast<size_t>(
2909 reinterpret_cast<char*>(&status_code_) -
2910 reinterpret_cast<char*>(&metadata_)) + sizeof(status_code_));
2911}
2912
2913RunStepResponse::~RunStepResponse() {
2914 // @@protoc_insertion_point(destructor:tensorflow.RunStepResponse)
2915 SharedDtor();
2916}
2917
2918void RunStepResponse::SharedDtor() {
2919 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2920 status_error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2921 if (this != internal_default_instance()) delete metadata_;
2922}
2923
2924void RunStepResponse::ArenaDtor(void* object) {
2925 RunStepResponse* _this = reinterpret_cast< RunStepResponse* >(object);
2926 (void)_this;
2927}
2928void RunStepResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2929}
2930void RunStepResponse::SetCachedSize(int size) const {
2931 _cached_size_.Set(size);
2932}
2933const RunStepResponse& RunStepResponse::default_instance() {
2934 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunStepResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
2935 return *internal_default_instance();
2936}
2937
2938
2939void RunStepResponse::Clear() {
2940// @@protoc_insertion_point(message_clear_start:tensorflow.RunStepResponse)
2941 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2942 // Prevent compiler warnings about cached_has_bits being unused
2943 (void) cached_has_bits;
2944
2945 tensor_.Clear();
2946 status_error_message_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2947 if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) {
2948 delete metadata_;
2949 }
2950 metadata_ = nullptr;
2951 status_code_ = 0;
2952 _internal_metadata_.Clear();
2953}
2954
2955#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2956const char* RunStepResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2957#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2958 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2959 while (!ctx->Done(&ptr)) {
2960 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2961 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2962 CHK_(ptr);
2963 switch (tag >> 3) {
2964 // repeated .tensorflow.NamedTensorProto tensor = 1;
2965 case 1:
2966 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2967 ptr -= 1;
2968 do {
2969 ptr += 1;
2970 ptr = ctx->ParseMessage(add_tensor(), ptr);
2971 CHK_(ptr);
2972 if (!ctx->DataAvailable(ptr)) break;
2973 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
2974 } else goto handle_unusual;
2975 continue;
2976 // .tensorflow.RunMetadata metadata = 2;
2977 case 2:
2978 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2979 ptr = ctx->ParseMessage(mutable_metadata(), ptr);
2980 CHK_(ptr);
2981 } else goto handle_unusual;
2982 continue;
2983 // .tensorflow.error.Code status_code = 3;
2984 case 3:
2985 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
2986 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2987 CHK_(ptr);
2988 set_status_code(static_cast<::tensorflow::error::Code>(val));
2989 } else goto handle_unusual;
2990 continue;
2991 // string status_error_message = 4;
2992 case 4:
2993 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
2994 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_status_error_message(), ptr, ctx, "tensorflow.RunStepResponse.status_error_message");
2995 CHK_(ptr);
2996 } else goto handle_unusual;
2997 continue;
2998 default: {
2999 handle_unusual:
3000 if ((tag & 7) == 4 || tag == 0) {
3001 ctx->SetLastTag(tag);
3002 goto success;
3003 }
3004 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3005 CHK_(ptr != nullptr);
3006 continue;
3007 }
3008 } // switch
3009 } // while
3010success:
3011 return ptr;
3012failure:
3013 ptr = nullptr;
3014 goto success;
3015#undef CHK_
3016}
3017#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3018bool RunStepResponse::MergePartialFromCodedStream(
3019 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3020#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3021 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3022 // @@protoc_insertion_point(parse_start:tensorflow.RunStepResponse)
3023 for (;;) {
3024 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3025 tag = p.first;
3026 if (!p.second) goto handle_unusual;
3027 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3028 // repeated .tensorflow.NamedTensorProto tensor = 1;
3029 case 1: {
3030 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3031 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3032 input, add_tensor()));
3033 } else {
3034 goto handle_unusual;
3035 }
3036 break;
3037 }
3038
3039 // .tensorflow.RunMetadata metadata = 2;
3040 case 2: {
3041 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3042 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3043 input, mutable_metadata()));
3044 } else {
3045 goto handle_unusual;
3046 }
3047 break;
3048 }
3049
3050 // .tensorflow.error.Code status_code = 3;
3051 case 3: {
3052 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
3053 int value = 0;
3054 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3055 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
3056 input, &value)));
3057 set_status_code(static_cast< ::tensorflow::error::Code >(value));
3058 } else {
3059 goto handle_unusual;
3060 }
3061 break;
3062 }
3063
3064 // string status_error_message = 4;
3065 case 4: {
3066 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3067 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3068 input, this->mutable_status_error_message()));
3069 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3070 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
3071 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3072 "tensorflow.RunStepResponse.status_error_message"));
3073 } else {
3074 goto handle_unusual;
3075 }
3076 break;
3077 }
3078
3079 default: {
3080 handle_unusual:
3081 if (tag == 0) {
3082 goto success;
3083 }
3084 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3085 input, tag, _internal_metadata_.mutable_unknown_fields()));
3086 break;
3087 }
3088 }
3089 }
3090success:
3091 // @@protoc_insertion_point(parse_success:tensorflow.RunStepResponse)
3092 return true;
3093failure:
3094 // @@protoc_insertion_point(parse_failure:tensorflow.RunStepResponse)
3095 return false;
3096#undef DO_
3097}
3098#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3099
3100void RunStepResponse::SerializeWithCachedSizes(
3101 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3102 // @@protoc_insertion_point(serialize_start:tensorflow.RunStepResponse)
3103 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3104 (void) cached_has_bits;
3105
3106 // repeated .tensorflow.NamedTensorProto tensor = 1;
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 1,
3111 this->tensor(static_cast<int>(i)),
3112 output);
3113 }
3114
3115 // .tensorflow.RunMetadata metadata = 2;
3116 if (this->has_metadata()) {
3117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3118 2, _Internal::metadata(this), output);
3119 }
3120
3121 // .tensorflow.error.Code status_code = 3;
3122 if (this->status_code() != 0) {
3123 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
3124 3, this->status_code(), output);
3125 }
3126
3127 // string status_error_message = 4;
3128 if (this->status_error_message().size() > 0) {
3129 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3130 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
3131 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3132 "tensorflow.RunStepResponse.status_error_message");
3133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3134 4, this->status_error_message(), output);
3135 }
3136
3137 if (_internal_metadata_.have_unknown_fields()) {
3138 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3139 _internal_metadata_.unknown_fields(), output);
3140 }
3141 // @@protoc_insertion_point(serialize_end:tensorflow.RunStepResponse)
3142}
3143
3144::PROTOBUF_NAMESPACE_ID::uint8* RunStepResponse::InternalSerializeWithCachedSizesToArray(
3145 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3146 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunStepResponse)
3147 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3148 (void) cached_has_bits;
3149
3150 // repeated .tensorflow.NamedTensorProto tensor = 1;
3151 for (unsigned int i = 0,
3152 n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) {
3153 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3154 InternalWriteMessageToArray(
3155 1, this->tensor(static_cast<int>(i)), target);
3156 }
3157
3158 // .tensorflow.RunMetadata metadata = 2;
3159 if (this->has_metadata()) {
3160 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3161 InternalWriteMessageToArray(
3162 2, _Internal::metadata(this), target);
3163 }
3164
3165 // .tensorflow.error.Code status_code = 3;
3166 if (this->status_code() != 0) {
3167 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
3168 3, this->status_code(), target);
3169 }
3170
3171 // string status_error_message = 4;
3172 if (this->status_error_message().size() > 0) {
3173 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3174 this->status_error_message().data(), static_cast<int>(this->status_error_message().length()),
3175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3176 "tensorflow.RunStepResponse.status_error_message");
3177 target =
3178 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3179 4, this->status_error_message(), target);
3180 }
3181
3182 if (_internal_metadata_.have_unknown_fields()) {
3183 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3184 _internal_metadata_.unknown_fields(), target);
3185 }
3186 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunStepResponse)
3187 return target;
3188}
3189
3190size_t RunStepResponse::ByteSizeLong() const {
3191// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunStepResponse)
3192 size_t total_size = 0;
3193
3194 if (_internal_metadata_.have_unknown_fields()) {
3195 total_size +=
3196 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3197 _internal_metadata_.unknown_fields());
3198 }
3199 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3200 // Prevent compiler warnings about cached_has_bits being unused
3201 (void) cached_has_bits;
3202
3203 // repeated .tensorflow.NamedTensorProto tensor = 1;
3204 {
3205 unsigned int count = static_cast<unsigned int>(this->tensor_size());
3206 total_size += 1UL * count;
3207 for (unsigned int i = 0; i < count; i++) {
3208 total_size +=
3209 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3210 this->tensor(static_cast<int>(i)));
3211 }
3212 }
3213
3214 // string status_error_message = 4;
3215 if (this->status_error_message().size() > 0) {
3216 total_size += 1 +
3217 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3218 this->status_error_message());
3219 }
3220
3221 // .tensorflow.RunMetadata metadata = 2;
3222 if (this->has_metadata()) {
3223 total_size += 1 +
3224 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3225 *metadata_);
3226 }
3227
3228 // .tensorflow.error.Code status_code = 3;
3229 if (this->status_code() != 0) {
3230 total_size += 1 +
3231 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->status_code());
3232 }
3233
3234 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3235 SetCachedSize(cached_size);
3236 return total_size;
3237}
3238
3239void RunStepResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3240// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunStepResponse)
3241 GOOGLE_DCHECK_NE(&from, this);
3242 const RunStepResponse* source =
3243 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunStepResponse>(
3244 &from);
3245 if (source == nullptr) {
3246 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunStepResponse)
3247 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3248 } else {
3249 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunStepResponse)
3250 MergeFrom(*source);
3251 }
3252}
3253
3254void RunStepResponse::MergeFrom(const RunStepResponse& from) {
3255// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunStepResponse)
3256 GOOGLE_DCHECK_NE(&from, this);
3257 _internal_metadata_.MergeFrom(from._internal_metadata_);
3258 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3259 (void) cached_has_bits;
3260
3261 tensor_.MergeFrom(from.tensor_);
3262 if (from.status_error_message().size() > 0) {
3263 set_status_error_message(from.status_error_message());
3264 }
3265 if (from.has_metadata()) {
3266 mutable_metadata()->::tensorflow::RunMetadata::MergeFrom(from.metadata());
3267 }
3268 if (from.status_code() != 0) {
3269 set_status_code(from.status_code());
3270 }
3271}
3272
3273void RunStepResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3274// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunStepResponse)
3275 if (&from == this) return;
3276 Clear();
3277 MergeFrom(from);
3278}
3279
3280void RunStepResponse::CopyFrom(const RunStepResponse& from) {
3281// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunStepResponse)
3282 if (&from == this) return;
3283 Clear();
3284 MergeFrom(from);
3285}
3286
3287bool RunStepResponse::IsInitialized() const {
3288 return true;
3289}
3290
3291void RunStepResponse::InternalSwap(RunStepResponse* other) {
3292 using std::swap;
3293 _internal_metadata_.Swap(&other->_internal_metadata_);
3294 CastToBase(&tensor_)->InternalSwap(CastToBase(&other->tensor_));
3295 status_error_message_.Swap(&other->status_error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3296 GetArenaNoVirtual());
3297 swap(metadata_, other->metadata_);
3298 swap(status_code_, other->status_code_);
3299}
3300
3301::PROTOBUF_NAMESPACE_ID::Metadata RunStepResponse::GetMetadata() const {
3302 return GetMetadataStatic();
3303}
3304
3305
3306// ===================================================================
3307
3308void PartialRunSetupRequest::InitAsDefaultInstance() {
3309}
3310class PartialRunSetupRequest::_Internal {
3311 public:
3312};
3313
3314PartialRunSetupRequest::PartialRunSetupRequest()
3315 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3316 SharedCtor();
3317 // @@protoc_insertion_point(constructor:tensorflow.PartialRunSetupRequest)
3318}
3319PartialRunSetupRequest::PartialRunSetupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3320 : ::PROTOBUF_NAMESPACE_ID::Message(),
3321 _internal_metadata_(arena),
3322 feed_(arena),
3323 fetch_(arena),
3324 target_(arena) {
3325 SharedCtor();
3326 RegisterArenaDtor(arena);
3327 // @@protoc_insertion_point(arena_constructor:tensorflow.PartialRunSetupRequest)
3328}
3329PartialRunSetupRequest::PartialRunSetupRequest(const PartialRunSetupRequest& from)
3330 : ::PROTOBUF_NAMESPACE_ID::Message(),
3331 _internal_metadata_(nullptr),
3332 feed_(from.feed_),
3333 fetch_(from.fetch_),
3334 target_(from.target_) {
3335 _internal_metadata_.MergeFrom(from._internal_metadata_);
3336 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3337 if (!from.session_handle().empty()) {
3338 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
3339 GetArenaNoVirtual());
3340 }
3341 request_id_ = from.request_id_;
3342 // @@protoc_insertion_point(copy_constructor:tensorflow.PartialRunSetupRequest)
3343}
3344
3345void PartialRunSetupRequest::SharedCtor() {
3346 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
3347 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3348 request_id_ = PROTOBUF_LONGLONG(0);
3349}
3350
3351PartialRunSetupRequest::~PartialRunSetupRequest() {
3352 // @@protoc_insertion_point(destructor:tensorflow.PartialRunSetupRequest)
3353 SharedDtor();
3354}
3355
3356void PartialRunSetupRequest::SharedDtor() {
3357 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3358 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3359}
3360
3361void PartialRunSetupRequest::ArenaDtor(void* object) {
3362 PartialRunSetupRequest* _this = reinterpret_cast< PartialRunSetupRequest* >(object);
3363 (void)_this;
3364}
3365void PartialRunSetupRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3366}
3367void PartialRunSetupRequest::SetCachedSize(int size) const {
3368 _cached_size_.Set(size);
3369}
3370const PartialRunSetupRequest& PartialRunSetupRequest::default_instance() {
3371 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartialRunSetupRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
3372 return *internal_default_instance();
3373}
3374
3375
3376void PartialRunSetupRequest::Clear() {
3377// @@protoc_insertion_point(message_clear_start:tensorflow.PartialRunSetupRequest)
3378 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3379 // Prevent compiler warnings about cached_has_bits being unused
3380 (void) cached_has_bits;
3381
3382 feed_.Clear();
3383 fetch_.Clear();
3384 target_.Clear();
3385 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3386 request_id_ = PROTOBUF_LONGLONG(0);
3387 _internal_metadata_.Clear();
3388}
3389
3390#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3391const char* PartialRunSetupRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3392#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3393 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3394 while (!ctx->Done(&ptr)) {
3395 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3396 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3397 CHK_(ptr);
3398 switch (tag >> 3) {
3399 // string session_handle = 1;
3400 case 1:
3401 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3402 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.PartialRunSetupRequest.session_handle");
3403 CHK_(ptr);
3404 } else goto handle_unusual;
3405 continue;
3406 // repeated string feed = 2;
3407 case 2:
3408 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3409 ptr -= 1;
3410 do {
3411 ptr += 1;
3412 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_feed(), ptr, ctx, "tensorflow.PartialRunSetupRequest.feed");
3413 CHK_(ptr);
3414 if (!ctx->DataAvailable(ptr)) break;
3415 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
3416 } else goto handle_unusual;
3417 continue;
3418 // repeated string fetch = 3;
3419 case 3:
3420 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
3421 ptr -= 1;
3422 do {
3423 ptr += 1;
3424 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_fetch(), ptr, ctx, "tensorflow.PartialRunSetupRequest.fetch");
3425 CHK_(ptr);
3426 if (!ctx->DataAvailable(ptr)) break;
3427 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
3428 } else goto handle_unusual;
3429 continue;
3430 // repeated string target = 4;
3431 case 4:
3432 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3433 ptr -= 1;
3434 do {
3435 ptr += 1;
3436 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_target(), ptr, ctx, "tensorflow.PartialRunSetupRequest.target");
3437 CHK_(ptr);
3438 if (!ctx->DataAvailable(ptr)) break;
3439 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
3440 } else goto handle_unusual;
3441 continue;
3442 // int64 request_id = 5;
3443 case 5:
3444 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
3445 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3446 CHK_(ptr);
3447 } else goto handle_unusual;
3448 continue;
3449 default: {
3450 handle_unusual:
3451 if ((tag & 7) == 4 || tag == 0) {
3452 ctx->SetLastTag(tag);
3453 goto success;
3454 }
3455 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3456 CHK_(ptr != nullptr);
3457 continue;
3458 }
3459 } // switch
3460 } // while
3461success:
3462 return ptr;
3463failure:
3464 ptr = nullptr;
3465 goto success;
3466#undef CHK_
3467}
3468#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3469bool PartialRunSetupRequest::MergePartialFromCodedStream(
3470 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3471#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3472 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3473 // @@protoc_insertion_point(parse_start:tensorflow.PartialRunSetupRequest)
3474 for (;;) {
3475 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3476 tag = p.first;
3477 if (!p.second) goto handle_unusual;
3478 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3479 // string session_handle = 1;
3480 case 1: {
3481 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3482 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3483 input, this->mutable_session_handle()));
3484 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3485 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3486 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3487 "tensorflow.PartialRunSetupRequest.session_handle"));
3488 } else {
3489 goto handle_unusual;
3490 }
3491 break;
3492 }
3493
3494 // repeated string feed = 2;
3495 case 2: {
3496 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3497 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3498 input, this->add_feed()));
3499 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3500 this->feed(this->feed_size() - 1).data(),
3501 static_cast<int>(this->feed(this->feed_size() - 1).length()),
3502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3503 "tensorflow.PartialRunSetupRequest.feed"));
3504 } else {
3505 goto handle_unusual;
3506 }
3507 break;
3508 }
3509
3510 // repeated string fetch = 3;
3511 case 3: {
3512 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
3513 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3514 input, this->add_fetch()));
3515 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3516 this->fetch(this->fetch_size() - 1).data(),
3517 static_cast<int>(this->fetch(this->fetch_size() - 1).length()),
3518 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3519 "tensorflow.PartialRunSetupRequest.fetch"));
3520 } else {
3521 goto handle_unusual;
3522 }
3523 break;
3524 }
3525
3526 // repeated string target = 4;
3527 case 4: {
3528 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3529 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3530 input, this->add_target()));
3531 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3532 this->target(this->target_size() - 1).data(),
3533 static_cast<int>(this->target(this->target_size() - 1).length()),
3534 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3535 "tensorflow.PartialRunSetupRequest.target"));
3536 } else {
3537 goto handle_unusual;
3538 }
3539 break;
3540 }
3541
3542 // int64 request_id = 5;
3543 case 5: {
3544 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
3545
3546 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3547 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
3548 input, &request_id_)));
3549 } else {
3550 goto handle_unusual;
3551 }
3552 break;
3553 }
3554
3555 default: {
3556 handle_unusual:
3557 if (tag == 0) {
3558 goto success;
3559 }
3560 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3561 input, tag, _internal_metadata_.mutable_unknown_fields()));
3562 break;
3563 }
3564 }
3565 }
3566success:
3567 // @@protoc_insertion_point(parse_success:tensorflow.PartialRunSetupRequest)
3568 return true;
3569failure:
3570 // @@protoc_insertion_point(parse_failure:tensorflow.PartialRunSetupRequest)
3571 return false;
3572#undef DO_
3573}
3574#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3575
3576void PartialRunSetupRequest::SerializeWithCachedSizes(
3577 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3578 // @@protoc_insertion_point(serialize_start:tensorflow.PartialRunSetupRequest)
3579 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3580 (void) cached_has_bits;
3581
3582 // string session_handle = 1;
3583 if (this->session_handle().size() > 0) {
3584 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3585 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3586 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3587 "tensorflow.PartialRunSetupRequest.session_handle");
3588 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3589 1, this->session_handle(), output);
3590 }
3591
3592 // repeated string feed = 2;
3593 for (int i = 0, n = this->feed_size(); i < n; i++) {
3594 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3595 this->feed(i).data(), static_cast<int>(this->feed(i).length()),
3596 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3597 "tensorflow.PartialRunSetupRequest.feed");
3598 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3599 2, this->feed(i), output);
3600 }
3601
3602 // repeated string fetch = 3;
3603 for (int i = 0, n = this->fetch_size(); i < n; i++) {
3604 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3605 this->fetch(i).data(), static_cast<int>(this->fetch(i).length()),
3606 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3607 "tensorflow.PartialRunSetupRequest.fetch");
3608 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3609 3, this->fetch(i), output);
3610 }
3611
3612 // repeated string target = 4;
3613 for (int i = 0, n = this->target_size(); i < n; i++) {
3614 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3615 this->target(i).data(), static_cast<int>(this->target(i).length()),
3616 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3617 "tensorflow.PartialRunSetupRequest.target");
3618 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3619 4, this->target(i), output);
3620 }
3621
3622 // int64 request_id = 5;
3623 if (this->request_id() != 0) {
3624 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->request_id(), output);
3625 }
3626
3627 if (_internal_metadata_.have_unknown_fields()) {
3628 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3629 _internal_metadata_.unknown_fields(), output);
3630 }
3631 // @@protoc_insertion_point(serialize_end:tensorflow.PartialRunSetupRequest)
3632}
3633
3634::PROTOBUF_NAMESPACE_ID::uint8* PartialRunSetupRequest::InternalSerializeWithCachedSizesToArray(
3635 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3636 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.PartialRunSetupRequest)
3637 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3638 (void) cached_has_bits;
3639
3640 // string session_handle = 1;
3641 if (this->session_handle().size() > 0) {
3642 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3643 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
3644 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3645 "tensorflow.PartialRunSetupRequest.session_handle");
3646 target =
3647 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3648 1, this->session_handle(), target);
3649 }
3650
3651 // repeated string feed = 2;
3652 for (int i = 0, n = this->feed_size(); i < n; i++) {
3653 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3654 this->feed(i).data(), static_cast<int>(this->feed(i).length()),
3655 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3656 "tensorflow.PartialRunSetupRequest.feed");
3657 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3658 WriteStringToArray(2, this->feed(i), target);
3659 }
3660
3661 // repeated string fetch = 3;
3662 for (int i = 0, n = this->fetch_size(); i < n; i++) {
3663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3664 this->fetch(i).data(), static_cast<int>(this->fetch(i).length()),
3665 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3666 "tensorflow.PartialRunSetupRequest.fetch");
3667 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3668 WriteStringToArray(3, this->fetch(i), target);
3669 }
3670
3671 // repeated string target = 4;
3672 for (int i = 0, n = this->target_size(); i < n; i++) {
3673 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3674 this->target(i).data(), static_cast<int>(this->target(i).length()),
3675 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3676 "tensorflow.PartialRunSetupRequest.target");
3677 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3678 WriteStringToArray(4, this->target(i), target);
3679 }
3680
3681 // int64 request_id = 5;
3682 if (this->request_id() != 0) {
3683 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->request_id(), target);
3684 }
3685
3686 if (_internal_metadata_.have_unknown_fields()) {
3687 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3688 _internal_metadata_.unknown_fields(), target);
3689 }
3690 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.PartialRunSetupRequest)
3691 return target;
3692}
3693
3694size_t PartialRunSetupRequest::ByteSizeLong() const {
3695// @@protoc_insertion_point(message_byte_size_start:tensorflow.PartialRunSetupRequest)
3696 size_t total_size = 0;
3697
3698 if (_internal_metadata_.have_unknown_fields()) {
3699 total_size +=
3700 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3701 _internal_metadata_.unknown_fields());
3702 }
3703 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3704 // Prevent compiler warnings about cached_has_bits being unused
3705 (void) cached_has_bits;
3706
3707 // repeated string feed = 2;
3708 total_size += 1 *
3709 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->feed_size());
3710 for (int i = 0, n = this->feed_size(); i < n; i++) {
3711 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3712 this->feed(i));
3713 }
3714
3715 // repeated string fetch = 3;
3716 total_size += 1 *
3717 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->fetch_size());
3718 for (int i = 0, n = this->fetch_size(); i < n; i++) {
3719 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3720 this->fetch(i));
3721 }
3722
3723 // repeated string target = 4;
3724 total_size += 1 *
3725 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->target_size());
3726 for (int i = 0, n = this->target_size(); i < n; i++) {
3727 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3728 this->target(i));
3729 }
3730
3731 // string session_handle = 1;
3732 if (this->session_handle().size() > 0) {
3733 total_size += 1 +
3734 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3735 this->session_handle());
3736 }
3737
3738 // int64 request_id = 5;
3739 if (this->request_id() != 0) {
3740 total_size += 1 +
3741 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
3742 this->request_id());
3743 }
3744
3745 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3746 SetCachedSize(cached_size);
3747 return total_size;
3748}
3749
3750void PartialRunSetupRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3751// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.PartialRunSetupRequest)
3752 GOOGLE_DCHECK_NE(&from, this);
3753 const PartialRunSetupRequest* source =
3754 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartialRunSetupRequest>(
3755 &from);
3756 if (source == nullptr) {
3757 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.PartialRunSetupRequest)
3758 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3759 } else {
3760 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.PartialRunSetupRequest)
3761 MergeFrom(*source);
3762 }
3763}
3764
3765void PartialRunSetupRequest::MergeFrom(const PartialRunSetupRequest& from) {
3766// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.PartialRunSetupRequest)
3767 GOOGLE_DCHECK_NE(&from, this);
3768 _internal_metadata_.MergeFrom(from._internal_metadata_);
3769 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3770 (void) cached_has_bits;
3771
3772 feed_.MergeFrom(from.feed_);
3773 fetch_.MergeFrom(from.fetch_);
3774 target_.MergeFrom(from.target_);
3775 if (from.session_handle().size() > 0) {
3776 set_session_handle(from.session_handle());
3777 }
3778 if (from.request_id() != 0) {
3779 set_request_id(from.request_id());
3780 }
3781}
3782
3783void PartialRunSetupRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3784// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.PartialRunSetupRequest)
3785 if (&from == this) return;
3786 Clear();
3787 MergeFrom(from);
3788}
3789
3790void PartialRunSetupRequest::CopyFrom(const PartialRunSetupRequest& from) {
3791// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.PartialRunSetupRequest)
3792 if (&from == this) return;
3793 Clear();
3794 MergeFrom(from);
3795}
3796
3797bool PartialRunSetupRequest::IsInitialized() const {
3798 return true;
3799}
3800
3801void PartialRunSetupRequest::InternalSwap(PartialRunSetupRequest* other) {
3802 using std::swap;
3803 _internal_metadata_.Swap(&other->_internal_metadata_);
3804 feed_.InternalSwap(CastToBase(&other->feed_));
3805 fetch_.InternalSwap(CastToBase(&other->fetch_));
3806 target_.InternalSwap(CastToBase(&other->target_));
3807 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3808 GetArenaNoVirtual());
3809 swap(request_id_, other->request_id_);
3810}
3811
3812::PROTOBUF_NAMESPACE_ID::Metadata PartialRunSetupRequest::GetMetadata() const {
3813 return GetMetadataStatic();
3814}
3815
3816
3817// ===================================================================
3818
3819void PartialRunSetupResponse::InitAsDefaultInstance() {
3820}
3821class PartialRunSetupResponse::_Internal {
3822 public:
3823};
3824
3825PartialRunSetupResponse::PartialRunSetupResponse()
3826 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3827 SharedCtor();
3828 // @@protoc_insertion_point(constructor:tensorflow.PartialRunSetupResponse)
3829}
3830PartialRunSetupResponse::PartialRunSetupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3831 : ::PROTOBUF_NAMESPACE_ID::Message(),
3832 _internal_metadata_(arena) {
3833 SharedCtor();
3834 RegisterArenaDtor(arena);
3835 // @@protoc_insertion_point(arena_constructor:tensorflow.PartialRunSetupResponse)
3836}
3837PartialRunSetupResponse::PartialRunSetupResponse(const PartialRunSetupResponse& from)
3838 : ::PROTOBUF_NAMESPACE_ID::Message(),
3839 _internal_metadata_(nullptr) {
3840 _internal_metadata_.MergeFrom(from._internal_metadata_);
3841 partial_run_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3842 if (!from.partial_run_handle().empty()) {
3843 partial_run_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partial_run_handle(),
3844 GetArenaNoVirtual());
3845 }
3846 // @@protoc_insertion_point(copy_constructor:tensorflow.PartialRunSetupResponse)
3847}
3848
3849void PartialRunSetupResponse::SharedCtor() {
3850 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
3851 partial_run_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3852}
3853
3854PartialRunSetupResponse::~PartialRunSetupResponse() {
3855 // @@protoc_insertion_point(destructor:tensorflow.PartialRunSetupResponse)
3856 SharedDtor();
3857}
3858
3859void PartialRunSetupResponse::SharedDtor() {
3860 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3861 partial_run_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3862}
3863
3864void PartialRunSetupResponse::ArenaDtor(void* object) {
3865 PartialRunSetupResponse* _this = reinterpret_cast< PartialRunSetupResponse* >(object);
3866 (void)_this;
3867}
3868void PartialRunSetupResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3869}
3870void PartialRunSetupResponse::SetCachedSize(int size) const {
3871 _cached_size_.Set(size);
3872}
3873const PartialRunSetupResponse& PartialRunSetupResponse::default_instance() {
3874 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartialRunSetupResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
3875 return *internal_default_instance();
3876}
3877
3878
3879void PartialRunSetupResponse::Clear() {
3880// @@protoc_insertion_point(message_clear_start:tensorflow.PartialRunSetupResponse)
3881 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3882 // Prevent compiler warnings about cached_has_bits being unused
3883 (void) cached_has_bits;
3884
3885 partial_run_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3886 _internal_metadata_.Clear();
3887}
3888
3889#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3890const char* PartialRunSetupResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3891#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3892 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3893 while (!ctx->Done(&ptr)) {
3894 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3895 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3896 CHK_(ptr);
3897 switch (tag >> 3) {
3898 // string partial_run_handle = 1;
3899 case 1:
3900 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3901 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partial_run_handle(), ptr, ctx, "tensorflow.PartialRunSetupResponse.partial_run_handle");
3902 CHK_(ptr);
3903 } else goto handle_unusual;
3904 continue;
3905 default: {
3906 handle_unusual:
3907 if ((tag & 7) == 4 || tag == 0) {
3908 ctx->SetLastTag(tag);
3909 goto success;
3910 }
3911 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3912 CHK_(ptr != nullptr);
3913 continue;
3914 }
3915 } // switch
3916 } // while
3917success:
3918 return ptr;
3919failure:
3920 ptr = nullptr;
3921 goto success;
3922#undef CHK_
3923}
3924#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3925bool PartialRunSetupResponse::MergePartialFromCodedStream(
3926 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3927#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3928 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3929 // @@protoc_insertion_point(parse_start:tensorflow.PartialRunSetupResponse)
3930 for (;;) {
3931 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3932 tag = p.first;
3933 if (!p.second) goto handle_unusual;
3934 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3935 // string partial_run_handle = 1;
3936 case 1: {
3937 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3938 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3939 input, this->mutable_partial_run_handle()));
3940 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3941 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
3942 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
3943 "tensorflow.PartialRunSetupResponse.partial_run_handle"));
3944 } else {
3945 goto handle_unusual;
3946 }
3947 break;
3948 }
3949
3950 default: {
3951 handle_unusual:
3952 if (tag == 0) {
3953 goto success;
3954 }
3955 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3956 input, tag, _internal_metadata_.mutable_unknown_fields()));
3957 break;
3958 }
3959 }
3960 }
3961success:
3962 // @@protoc_insertion_point(parse_success:tensorflow.PartialRunSetupResponse)
3963 return true;
3964failure:
3965 // @@protoc_insertion_point(parse_failure:tensorflow.PartialRunSetupResponse)
3966 return false;
3967#undef DO_
3968}
3969#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3970
3971void PartialRunSetupResponse::SerializeWithCachedSizes(
3972 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3973 // @@protoc_insertion_point(serialize_start:tensorflow.PartialRunSetupResponse)
3974 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3975 (void) cached_has_bits;
3976
3977 // string partial_run_handle = 1;
3978 if (this->partial_run_handle().size() > 0) {
3979 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3980 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
3981 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3982 "tensorflow.PartialRunSetupResponse.partial_run_handle");
3983 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3984 1, this->partial_run_handle(), output);
3985 }
3986
3987 if (_internal_metadata_.have_unknown_fields()) {
3988 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3989 _internal_metadata_.unknown_fields(), output);
3990 }
3991 // @@protoc_insertion_point(serialize_end:tensorflow.PartialRunSetupResponse)
3992}
3993
3994::PROTOBUF_NAMESPACE_ID::uint8* PartialRunSetupResponse::InternalSerializeWithCachedSizesToArray(
3995 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3996 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.PartialRunSetupResponse)
3997 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3998 (void) cached_has_bits;
3999
4000 // string partial_run_handle = 1;
4001 if (this->partial_run_handle().size() > 0) {
4002 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4003 this->partial_run_handle().data(), static_cast<int>(this->partial_run_handle().length()),
4004 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4005 "tensorflow.PartialRunSetupResponse.partial_run_handle");
4006 target =
4007 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4008 1, this->partial_run_handle(), target);
4009 }
4010
4011 if (_internal_metadata_.have_unknown_fields()) {
4012 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4013 _internal_metadata_.unknown_fields(), target);
4014 }
4015 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.PartialRunSetupResponse)
4016 return target;
4017}
4018
4019size_t PartialRunSetupResponse::ByteSizeLong() const {
4020// @@protoc_insertion_point(message_byte_size_start:tensorflow.PartialRunSetupResponse)
4021 size_t total_size = 0;
4022
4023 if (_internal_metadata_.have_unknown_fields()) {
4024 total_size +=
4025 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4026 _internal_metadata_.unknown_fields());
4027 }
4028 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4029 // Prevent compiler warnings about cached_has_bits being unused
4030 (void) cached_has_bits;
4031
4032 // string partial_run_handle = 1;
4033 if (this->partial_run_handle().size() > 0) {
4034 total_size += 1 +
4035 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4036 this->partial_run_handle());
4037 }
4038
4039 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4040 SetCachedSize(cached_size);
4041 return total_size;
4042}
4043
4044void PartialRunSetupResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4045// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.PartialRunSetupResponse)
4046 GOOGLE_DCHECK_NE(&from, this);
4047 const PartialRunSetupResponse* source =
4048 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartialRunSetupResponse>(
4049 &from);
4050 if (source == nullptr) {
4051 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.PartialRunSetupResponse)
4052 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4053 } else {
4054 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.PartialRunSetupResponse)
4055 MergeFrom(*source);
4056 }
4057}
4058
4059void PartialRunSetupResponse::MergeFrom(const PartialRunSetupResponse& from) {
4060// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.PartialRunSetupResponse)
4061 GOOGLE_DCHECK_NE(&from, this);
4062 _internal_metadata_.MergeFrom(from._internal_metadata_);
4063 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4064 (void) cached_has_bits;
4065
4066 if (from.partial_run_handle().size() > 0) {
4067 set_partial_run_handle(from.partial_run_handle());
4068 }
4069}
4070
4071void PartialRunSetupResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4072// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.PartialRunSetupResponse)
4073 if (&from == this) return;
4074 Clear();
4075 MergeFrom(from);
4076}
4077
4078void PartialRunSetupResponse::CopyFrom(const PartialRunSetupResponse& from) {
4079// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.PartialRunSetupResponse)
4080 if (&from == this) return;
4081 Clear();
4082 MergeFrom(from);
4083}
4084
4085bool PartialRunSetupResponse::IsInitialized() const {
4086 return true;
4087}
4088
4089void PartialRunSetupResponse::InternalSwap(PartialRunSetupResponse* other) {
4090 using std::swap;
4091 _internal_metadata_.Swap(&other->_internal_metadata_);
4092 partial_run_handle_.Swap(&other->partial_run_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4093 GetArenaNoVirtual());
4094}
4095
4096::PROTOBUF_NAMESPACE_ID::Metadata PartialRunSetupResponse::GetMetadata() const {
4097 return GetMetadataStatic();
4098}
4099
4100
4101// ===================================================================
4102
4103void CloseSessionRequest::InitAsDefaultInstance() {
4104}
4105class CloseSessionRequest::_Internal {
4106 public:
4107};
4108
4109CloseSessionRequest::CloseSessionRequest()
4110 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4111 SharedCtor();
4112 // @@protoc_insertion_point(constructor:tensorflow.CloseSessionRequest)
4113}
4114CloseSessionRequest::CloseSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4115 : ::PROTOBUF_NAMESPACE_ID::Message(),
4116 _internal_metadata_(arena) {
4117 SharedCtor();
4118 RegisterArenaDtor(arena);
4119 // @@protoc_insertion_point(arena_constructor:tensorflow.CloseSessionRequest)
4120}
4121CloseSessionRequest::CloseSessionRequest(const CloseSessionRequest& from)
4122 : ::PROTOBUF_NAMESPACE_ID::Message(),
4123 _internal_metadata_(nullptr) {
4124 _internal_metadata_.MergeFrom(from._internal_metadata_);
4125 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4126 if (!from.session_handle().empty()) {
4127 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
4128 GetArenaNoVirtual());
4129 }
4130 // @@protoc_insertion_point(copy_constructor:tensorflow.CloseSessionRequest)
4131}
4132
4133void CloseSessionRequest::SharedCtor() {
4134 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4135 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4136}
4137
4138CloseSessionRequest::~CloseSessionRequest() {
4139 // @@protoc_insertion_point(destructor:tensorflow.CloseSessionRequest)
4140 SharedDtor();
4141}
4142
4143void CloseSessionRequest::SharedDtor() {
4144 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4145 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4146}
4147
4148void CloseSessionRequest::ArenaDtor(void* object) {
4149 CloseSessionRequest* _this = reinterpret_cast< CloseSessionRequest* >(object);
4150 (void)_this;
4151}
4152void CloseSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4153}
4154void CloseSessionRequest::SetCachedSize(int size) const {
4155 _cached_size_.Set(size);
4156}
4157const CloseSessionRequest& CloseSessionRequest::default_instance() {
4158 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CloseSessionRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4159 return *internal_default_instance();
4160}
4161
4162
4163void CloseSessionRequest::Clear() {
4164// @@protoc_insertion_point(message_clear_start:tensorflow.CloseSessionRequest)
4165 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4166 // Prevent compiler warnings about cached_has_bits being unused
4167 (void) cached_has_bits;
4168
4169 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
4170 _internal_metadata_.Clear();
4171}
4172
4173#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4174const char* CloseSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4175#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4176 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4177 while (!ctx->Done(&ptr)) {
4178 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4179 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4180 CHK_(ptr);
4181 switch (tag >> 3) {
4182 // string session_handle = 1;
4183 case 1:
4184 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4185 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.CloseSessionRequest.session_handle");
4186 CHK_(ptr);
4187 } else goto handle_unusual;
4188 continue;
4189 default: {
4190 handle_unusual:
4191 if ((tag & 7) == 4 || tag == 0) {
4192 ctx->SetLastTag(tag);
4193 goto success;
4194 }
4195 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4196 CHK_(ptr != nullptr);
4197 continue;
4198 }
4199 } // switch
4200 } // while
4201success:
4202 return ptr;
4203failure:
4204 ptr = nullptr;
4205 goto success;
4206#undef CHK_
4207}
4208#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4209bool CloseSessionRequest::MergePartialFromCodedStream(
4210 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4211#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4212 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4213 // @@protoc_insertion_point(parse_start:tensorflow.CloseSessionRequest)
4214 for (;;) {
4215 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4216 tag = p.first;
4217 if (!p.second) goto handle_unusual;
4218 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4219 // string session_handle = 1;
4220 case 1: {
4221 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4222 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4223 input, this->mutable_session_handle()));
4224 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4225 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4226 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4227 "tensorflow.CloseSessionRequest.session_handle"));
4228 } else {
4229 goto handle_unusual;
4230 }
4231 break;
4232 }
4233
4234 default: {
4235 handle_unusual:
4236 if (tag == 0) {
4237 goto success;
4238 }
4239 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4240 input, tag, _internal_metadata_.mutable_unknown_fields()));
4241 break;
4242 }
4243 }
4244 }
4245success:
4246 // @@protoc_insertion_point(parse_success:tensorflow.CloseSessionRequest)
4247 return true;
4248failure:
4249 // @@protoc_insertion_point(parse_failure:tensorflow.CloseSessionRequest)
4250 return false;
4251#undef DO_
4252}
4253#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4254
4255void CloseSessionRequest::SerializeWithCachedSizes(
4256 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4257 // @@protoc_insertion_point(serialize_start:tensorflow.CloseSessionRequest)
4258 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4259 (void) cached_has_bits;
4260
4261 // string session_handle = 1;
4262 if (this->session_handle().size() > 0) {
4263 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4264 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4265 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4266 "tensorflow.CloseSessionRequest.session_handle");
4267 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4268 1, this->session_handle(), output);
4269 }
4270
4271 if (_internal_metadata_.have_unknown_fields()) {
4272 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4273 _internal_metadata_.unknown_fields(), output);
4274 }
4275 // @@protoc_insertion_point(serialize_end:tensorflow.CloseSessionRequest)
4276}
4277
4278::PROTOBUF_NAMESPACE_ID::uint8* CloseSessionRequest::InternalSerializeWithCachedSizesToArray(
4279 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4280 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CloseSessionRequest)
4281 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4282 (void) cached_has_bits;
4283
4284 // string session_handle = 1;
4285 if (this->session_handle().size() > 0) {
4286 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4287 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
4288 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4289 "tensorflow.CloseSessionRequest.session_handle");
4290 target =
4291 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4292 1, this->session_handle(), target);
4293 }
4294
4295 if (_internal_metadata_.have_unknown_fields()) {
4296 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4297 _internal_metadata_.unknown_fields(), target);
4298 }
4299 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CloseSessionRequest)
4300 return target;
4301}
4302
4303size_t CloseSessionRequest::ByteSizeLong() const {
4304// @@protoc_insertion_point(message_byte_size_start:tensorflow.CloseSessionRequest)
4305 size_t total_size = 0;
4306
4307 if (_internal_metadata_.have_unknown_fields()) {
4308 total_size +=
4309 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4310 _internal_metadata_.unknown_fields());
4311 }
4312 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4313 // Prevent compiler warnings about cached_has_bits being unused
4314 (void) cached_has_bits;
4315
4316 // string session_handle = 1;
4317 if (this->session_handle().size() > 0) {
4318 total_size += 1 +
4319 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4320 this->session_handle());
4321 }
4322
4323 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4324 SetCachedSize(cached_size);
4325 return total_size;
4326}
4327
4328void CloseSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4329// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CloseSessionRequest)
4330 GOOGLE_DCHECK_NE(&from, this);
4331 const CloseSessionRequest* source =
4332 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CloseSessionRequest>(
4333 &from);
4334 if (source == nullptr) {
4335 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CloseSessionRequest)
4336 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4337 } else {
4338 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CloseSessionRequest)
4339 MergeFrom(*source);
4340 }
4341}
4342
4343void CloseSessionRequest::MergeFrom(const CloseSessionRequest& from) {
4344// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CloseSessionRequest)
4345 GOOGLE_DCHECK_NE(&from, this);
4346 _internal_metadata_.MergeFrom(from._internal_metadata_);
4347 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4348 (void) cached_has_bits;
4349
4350 if (from.session_handle().size() > 0) {
4351 set_session_handle(from.session_handle());
4352 }
4353}
4354
4355void CloseSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4356// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CloseSessionRequest)
4357 if (&from == this) return;
4358 Clear();
4359 MergeFrom(from);
4360}
4361
4362void CloseSessionRequest::CopyFrom(const CloseSessionRequest& from) {
4363// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CloseSessionRequest)
4364 if (&from == this) return;
4365 Clear();
4366 MergeFrom(from);
4367}
4368
4369bool CloseSessionRequest::IsInitialized() const {
4370 return true;
4371}
4372
4373void CloseSessionRequest::InternalSwap(CloseSessionRequest* other) {
4374 using std::swap;
4375 _internal_metadata_.Swap(&other->_internal_metadata_);
4376 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4377 GetArenaNoVirtual());
4378}
4379
4380::PROTOBUF_NAMESPACE_ID::Metadata CloseSessionRequest::GetMetadata() const {
4381 return GetMetadataStatic();
4382}
4383
4384
4385// ===================================================================
4386
4387void CloseSessionResponse::InitAsDefaultInstance() {
4388}
4389class CloseSessionResponse::_Internal {
4390 public:
4391};
4392
4393CloseSessionResponse::CloseSessionResponse()
4394 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4395 SharedCtor();
4396 // @@protoc_insertion_point(constructor:tensorflow.CloseSessionResponse)
4397}
4398CloseSessionResponse::CloseSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4399 : ::PROTOBUF_NAMESPACE_ID::Message(),
4400 _internal_metadata_(arena) {
4401 SharedCtor();
4402 RegisterArenaDtor(arena);
4403 // @@protoc_insertion_point(arena_constructor:tensorflow.CloseSessionResponse)
4404}
4405CloseSessionResponse::CloseSessionResponse(const CloseSessionResponse& from)
4406 : ::PROTOBUF_NAMESPACE_ID::Message(),
4407 _internal_metadata_(nullptr) {
4408 _internal_metadata_.MergeFrom(from._internal_metadata_);
4409 // @@protoc_insertion_point(copy_constructor:tensorflow.CloseSessionResponse)
4410}
4411
4412void CloseSessionResponse::SharedCtor() {
4413}
4414
4415CloseSessionResponse::~CloseSessionResponse() {
4416 // @@protoc_insertion_point(destructor:tensorflow.CloseSessionResponse)
4417 SharedDtor();
4418}
4419
4420void CloseSessionResponse::SharedDtor() {
4421 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4422}
4423
4424void CloseSessionResponse::ArenaDtor(void* object) {
4425 CloseSessionResponse* _this = reinterpret_cast< CloseSessionResponse* >(object);
4426 (void)_this;
4427}
4428void CloseSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4429}
4430void CloseSessionResponse::SetCachedSize(int size) const {
4431 _cached_size_.Set(size);
4432}
4433const CloseSessionResponse& CloseSessionResponse::default_instance() {
4434 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CloseSessionResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4435 return *internal_default_instance();
4436}
4437
4438
4439void CloseSessionResponse::Clear() {
4440// @@protoc_insertion_point(message_clear_start:tensorflow.CloseSessionResponse)
4441 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4442 // Prevent compiler warnings about cached_has_bits being unused
4443 (void) cached_has_bits;
4444
4445 _internal_metadata_.Clear();
4446}
4447
4448#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4449const char* CloseSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4450#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4451 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4452 while (!ctx->Done(&ptr)) {
4453 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4454 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4455 CHK_(ptr);
4456 switch (tag >> 3) {
4457 default: {
4458 if ((tag & 7) == 4 || tag == 0) {
4459 ctx->SetLastTag(tag);
4460 goto success;
4461 }
4462 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4463 CHK_(ptr != nullptr);
4464 continue;
4465 }
4466 } // switch
4467 } // while
4468success:
4469 return ptr;
4470failure:
4471 ptr = nullptr;
4472 goto success;
4473#undef CHK_
4474}
4475#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4476bool CloseSessionResponse::MergePartialFromCodedStream(
4477 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4478#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4479 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4480 // @@protoc_insertion_point(parse_start:tensorflow.CloseSessionResponse)
4481 for (;;) {
4482 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4483 tag = p.first;
4484 if (!p.second) goto handle_unusual;
4485 handle_unusual:
4486 if (tag == 0) {
4487 goto success;
4488 }
4489 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4490 input, tag, _internal_metadata_.mutable_unknown_fields()));
4491 }
4492success:
4493 // @@protoc_insertion_point(parse_success:tensorflow.CloseSessionResponse)
4494 return true;
4495failure:
4496 // @@protoc_insertion_point(parse_failure:tensorflow.CloseSessionResponse)
4497 return false;
4498#undef DO_
4499}
4500#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4501
4502void CloseSessionResponse::SerializeWithCachedSizes(
4503 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4504 // @@protoc_insertion_point(serialize_start:tensorflow.CloseSessionResponse)
4505 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4506 (void) cached_has_bits;
4507
4508 if (_internal_metadata_.have_unknown_fields()) {
4509 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4510 _internal_metadata_.unknown_fields(), output);
4511 }
4512 // @@protoc_insertion_point(serialize_end:tensorflow.CloseSessionResponse)
4513}
4514
4515::PROTOBUF_NAMESPACE_ID::uint8* CloseSessionResponse::InternalSerializeWithCachedSizesToArray(
4516 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4517 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CloseSessionResponse)
4518 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4519 (void) cached_has_bits;
4520
4521 if (_internal_metadata_.have_unknown_fields()) {
4522 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4523 _internal_metadata_.unknown_fields(), target);
4524 }
4525 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CloseSessionResponse)
4526 return target;
4527}
4528
4529size_t CloseSessionResponse::ByteSizeLong() const {
4530// @@protoc_insertion_point(message_byte_size_start:tensorflow.CloseSessionResponse)
4531 size_t total_size = 0;
4532
4533 if (_internal_metadata_.have_unknown_fields()) {
4534 total_size +=
4535 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4536 _internal_metadata_.unknown_fields());
4537 }
4538 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4539 // Prevent compiler warnings about cached_has_bits being unused
4540 (void) cached_has_bits;
4541
4542 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4543 SetCachedSize(cached_size);
4544 return total_size;
4545}
4546
4547void CloseSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4548// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CloseSessionResponse)
4549 GOOGLE_DCHECK_NE(&from, this);
4550 const CloseSessionResponse* source =
4551 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CloseSessionResponse>(
4552 &from);
4553 if (source == nullptr) {
4554 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CloseSessionResponse)
4555 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4556 } else {
4557 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CloseSessionResponse)
4558 MergeFrom(*source);
4559 }
4560}
4561
4562void CloseSessionResponse::MergeFrom(const CloseSessionResponse& from) {
4563// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CloseSessionResponse)
4564 GOOGLE_DCHECK_NE(&from, this);
4565 _internal_metadata_.MergeFrom(from._internal_metadata_);
4566 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4567 (void) cached_has_bits;
4568
4569}
4570
4571void CloseSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4572// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CloseSessionResponse)
4573 if (&from == this) return;
4574 Clear();
4575 MergeFrom(from);
4576}
4577
4578void CloseSessionResponse::CopyFrom(const CloseSessionResponse& from) {
4579// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CloseSessionResponse)
4580 if (&from == this) return;
4581 Clear();
4582 MergeFrom(from);
4583}
4584
4585bool CloseSessionResponse::IsInitialized() const {
4586 return true;
4587}
4588
4589void CloseSessionResponse::InternalSwap(CloseSessionResponse* other) {
4590 using std::swap;
4591 _internal_metadata_.Swap(&other->_internal_metadata_);
4592}
4593
4594::PROTOBUF_NAMESPACE_ID::Metadata CloseSessionResponse::GetMetadata() const {
4595 return GetMetadataStatic();
4596}
4597
4598
4599// ===================================================================
4600
4601void ResetRequest::InitAsDefaultInstance() {
4602}
4603class ResetRequest::_Internal {
4604 public:
4605};
4606
4607ResetRequest::ResetRequest()
4608 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4609 SharedCtor();
4610 // @@protoc_insertion_point(constructor:tensorflow.ResetRequest)
4611}
4612ResetRequest::ResetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4613 : ::PROTOBUF_NAMESPACE_ID::Message(),
4614 _internal_metadata_(arena),
4615 container_(arena),
4616 device_filters_(arena) {
4617 SharedCtor();
4618 RegisterArenaDtor(arena);
4619 // @@protoc_insertion_point(arena_constructor:tensorflow.ResetRequest)
4620}
4621ResetRequest::ResetRequest(const ResetRequest& from)
4622 : ::PROTOBUF_NAMESPACE_ID::Message(),
4623 _internal_metadata_(nullptr),
4624 container_(from.container_),
4625 device_filters_(from.device_filters_) {
4626 _internal_metadata_.MergeFrom(from._internal_metadata_);
4627 // @@protoc_insertion_point(copy_constructor:tensorflow.ResetRequest)
4628}
4629
4630void ResetRequest::SharedCtor() {
4631 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4632}
4633
4634ResetRequest::~ResetRequest() {
4635 // @@protoc_insertion_point(destructor:tensorflow.ResetRequest)
4636 SharedDtor();
4637}
4638
4639void ResetRequest::SharedDtor() {
4640 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4641}
4642
4643void ResetRequest::ArenaDtor(void* object) {
4644 ResetRequest* _this = reinterpret_cast< ResetRequest* >(object);
4645 (void)_this;
4646}
4647void ResetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4648}
4649void ResetRequest::SetCachedSize(int size) const {
4650 _cached_size_.Set(size);
4651}
4652const ResetRequest& ResetRequest::default_instance() {
4653 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResetRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4654 return *internal_default_instance();
4655}
4656
4657
4658void ResetRequest::Clear() {
4659// @@protoc_insertion_point(message_clear_start:tensorflow.ResetRequest)
4660 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4661 // Prevent compiler warnings about cached_has_bits being unused
4662 (void) cached_has_bits;
4663
4664 container_.Clear();
4665 device_filters_.Clear();
4666 _internal_metadata_.Clear();
4667}
4668
4669#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4670const char* ResetRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4671#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4672 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4673 while (!ctx->Done(&ptr)) {
4674 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4675 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4676 CHK_(ptr);
4677 switch (tag >> 3) {
4678 // repeated string container = 1;
4679 case 1:
4680 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4681 ptr -= 1;
4682 do {
4683 ptr += 1;
4684 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_container(), ptr, ctx, "tensorflow.ResetRequest.container");
4685 CHK_(ptr);
4686 if (!ctx->DataAvailable(ptr)) break;
4687 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
4688 } else goto handle_unusual;
4689 continue;
4690 // repeated string device_filters = 2;
4691 case 2:
4692 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4693 ptr -= 1;
4694 do {
4695 ptr += 1;
4696 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_device_filters(), ptr, ctx, "tensorflow.ResetRequest.device_filters");
4697 CHK_(ptr);
4698 if (!ctx->DataAvailable(ptr)) break;
4699 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
4700 } else goto handle_unusual;
4701 continue;
4702 default: {
4703 handle_unusual:
4704 if ((tag & 7) == 4 || tag == 0) {
4705 ctx->SetLastTag(tag);
4706 goto success;
4707 }
4708 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4709 CHK_(ptr != nullptr);
4710 continue;
4711 }
4712 } // switch
4713 } // while
4714success:
4715 return ptr;
4716failure:
4717 ptr = nullptr;
4718 goto success;
4719#undef CHK_
4720}
4721#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4722bool ResetRequest::MergePartialFromCodedStream(
4723 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4724#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4725 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4726 // @@protoc_insertion_point(parse_start:tensorflow.ResetRequest)
4727 for (;;) {
4728 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4729 tag = p.first;
4730 if (!p.second) goto handle_unusual;
4731 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4732 // repeated string container = 1;
4733 case 1: {
4734 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4735 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4736 input, this->add_container()));
4737 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4738 this->container(this->container_size() - 1).data(),
4739 static_cast<int>(this->container(this->container_size() - 1).length()),
4740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4741 "tensorflow.ResetRequest.container"));
4742 } else {
4743 goto handle_unusual;
4744 }
4745 break;
4746 }
4747
4748 // repeated string device_filters = 2;
4749 case 2: {
4750 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
4751 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4752 input, this->add_device_filters()));
4753 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4754 this->device_filters(this->device_filters_size() - 1).data(),
4755 static_cast<int>(this->device_filters(this->device_filters_size() - 1).length()),
4756 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
4757 "tensorflow.ResetRequest.device_filters"));
4758 } else {
4759 goto handle_unusual;
4760 }
4761 break;
4762 }
4763
4764 default: {
4765 handle_unusual:
4766 if (tag == 0) {
4767 goto success;
4768 }
4769 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4770 input, tag, _internal_metadata_.mutable_unknown_fields()));
4771 break;
4772 }
4773 }
4774 }
4775success:
4776 // @@protoc_insertion_point(parse_success:tensorflow.ResetRequest)
4777 return true;
4778failure:
4779 // @@protoc_insertion_point(parse_failure:tensorflow.ResetRequest)
4780 return false;
4781#undef DO_
4782}
4783#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4784
4785void ResetRequest::SerializeWithCachedSizes(
4786 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4787 // @@protoc_insertion_point(serialize_start:tensorflow.ResetRequest)
4788 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4789 (void) cached_has_bits;
4790
4791 // repeated string container = 1;
4792 for (int i = 0, n = this->container_size(); i < n; i++) {
4793 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4794 this->container(i).data(), static_cast<int>(this->container(i).length()),
4795 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4796 "tensorflow.ResetRequest.container");
4797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
4798 1, this->container(i), output);
4799 }
4800
4801 // repeated string device_filters = 2;
4802 for (int i = 0, n = this->device_filters_size(); i < n; i++) {
4803 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4804 this->device_filters(i).data(), static_cast<int>(this->device_filters(i).length()),
4805 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4806 "tensorflow.ResetRequest.device_filters");
4807 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
4808 2, this->device_filters(i), output);
4809 }
4810
4811 if (_internal_metadata_.have_unknown_fields()) {
4812 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4813 _internal_metadata_.unknown_fields(), output);
4814 }
4815 // @@protoc_insertion_point(serialize_end:tensorflow.ResetRequest)
4816}
4817
4818::PROTOBUF_NAMESPACE_ID::uint8* ResetRequest::InternalSerializeWithCachedSizesToArray(
4819 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4820 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ResetRequest)
4821 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4822 (void) cached_has_bits;
4823
4824 // repeated string container = 1;
4825 for (int i = 0, n = this->container_size(); i < n; i++) {
4826 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4827 this->container(i).data(), static_cast<int>(this->container(i).length()),
4828 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4829 "tensorflow.ResetRequest.container");
4830 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4831 WriteStringToArray(1, this->container(i), target);
4832 }
4833
4834 // repeated string device_filters = 2;
4835 for (int i = 0, n = this->device_filters_size(); i < n; i++) {
4836 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4837 this->device_filters(i).data(), static_cast<int>(this->device_filters(i).length()),
4838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4839 "tensorflow.ResetRequest.device_filters");
4840 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4841 WriteStringToArray(2, this->device_filters(i), target);
4842 }
4843
4844 if (_internal_metadata_.have_unknown_fields()) {
4845 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4846 _internal_metadata_.unknown_fields(), target);
4847 }
4848 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ResetRequest)
4849 return target;
4850}
4851
4852size_t ResetRequest::ByteSizeLong() const {
4853// @@protoc_insertion_point(message_byte_size_start:tensorflow.ResetRequest)
4854 size_t total_size = 0;
4855
4856 if (_internal_metadata_.have_unknown_fields()) {
4857 total_size +=
4858 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4859 _internal_metadata_.unknown_fields());
4860 }
4861 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4862 // Prevent compiler warnings about cached_has_bits being unused
4863 (void) cached_has_bits;
4864
4865 // repeated string container = 1;
4866 total_size += 1 *
4867 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->container_size());
4868 for (int i = 0, n = this->container_size(); i < n; i++) {
4869 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4870 this->container(i));
4871 }
4872
4873 // repeated string device_filters = 2;
4874 total_size += 1 *
4875 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->device_filters_size());
4876 for (int i = 0, n = this->device_filters_size(); i < n; i++) {
4877 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4878 this->device_filters(i));
4879 }
4880
4881 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4882 SetCachedSize(cached_size);
4883 return total_size;
4884}
4885
4886void ResetRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4887// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ResetRequest)
4888 GOOGLE_DCHECK_NE(&from, this);
4889 const ResetRequest* source =
4890 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResetRequest>(
4891 &from);
4892 if (source == nullptr) {
4893 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ResetRequest)
4894 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4895 } else {
4896 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ResetRequest)
4897 MergeFrom(*source);
4898 }
4899}
4900
4901void ResetRequest::MergeFrom(const ResetRequest& from) {
4902// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ResetRequest)
4903 GOOGLE_DCHECK_NE(&from, this);
4904 _internal_metadata_.MergeFrom(from._internal_metadata_);
4905 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4906 (void) cached_has_bits;
4907
4908 container_.MergeFrom(from.container_);
4909 device_filters_.MergeFrom(from.device_filters_);
4910}
4911
4912void ResetRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4913// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ResetRequest)
4914 if (&from == this) return;
4915 Clear();
4916 MergeFrom(from);
4917}
4918
4919void ResetRequest::CopyFrom(const ResetRequest& from) {
4920// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ResetRequest)
4921 if (&from == this) return;
4922 Clear();
4923 MergeFrom(from);
4924}
4925
4926bool ResetRequest::IsInitialized() const {
4927 return true;
4928}
4929
4930void ResetRequest::InternalSwap(ResetRequest* other) {
4931 using std::swap;
4932 _internal_metadata_.Swap(&other->_internal_metadata_);
4933 container_.InternalSwap(CastToBase(&other->container_));
4934 device_filters_.InternalSwap(CastToBase(&other->device_filters_));
4935}
4936
4937::PROTOBUF_NAMESPACE_ID::Metadata ResetRequest::GetMetadata() const {
4938 return GetMetadataStatic();
4939}
4940
4941
4942// ===================================================================
4943
4944void ResetResponse::InitAsDefaultInstance() {
4945}
4946class ResetResponse::_Internal {
4947 public:
4948};
4949
4950ResetResponse::ResetResponse()
4951 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4952 SharedCtor();
4953 // @@protoc_insertion_point(constructor:tensorflow.ResetResponse)
4954}
4955ResetResponse::ResetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4956 : ::PROTOBUF_NAMESPACE_ID::Message(),
4957 _internal_metadata_(arena) {
4958 SharedCtor();
4959 RegisterArenaDtor(arena);
4960 // @@protoc_insertion_point(arena_constructor:tensorflow.ResetResponse)
4961}
4962ResetResponse::ResetResponse(const ResetResponse& from)
4963 : ::PROTOBUF_NAMESPACE_ID::Message(),
4964 _internal_metadata_(nullptr) {
4965 _internal_metadata_.MergeFrom(from._internal_metadata_);
4966 // @@protoc_insertion_point(copy_constructor:tensorflow.ResetResponse)
4967}
4968
4969void ResetResponse::SharedCtor() {
4970}
4971
4972ResetResponse::~ResetResponse() {
4973 // @@protoc_insertion_point(destructor:tensorflow.ResetResponse)
4974 SharedDtor();
4975}
4976
4977void ResetResponse::SharedDtor() {
4978 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4979}
4980
4981void ResetResponse::ArenaDtor(void* object) {
4982 ResetResponse* _this = reinterpret_cast< ResetResponse* >(object);
4983 (void)_this;
4984}
4985void ResetResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4986}
4987void ResetResponse::SetCachedSize(int size) const {
4988 _cached_size_.Set(size);
4989}
4990const ResetResponse& ResetResponse::default_instance() {
4991 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResetResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
4992 return *internal_default_instance();
4993}
4994
4995
4996void ResetResponse::Clear() {
4997// @@protoc_insertion_point(message_clear_start:tensorflow.ResetResponse)
4998 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4999 // Prevent compiler warnings about cached_has_bits being unused
5000 (void) cached_has_bits;
5001
5002 _internal_metadata_.Clear();
5003}
5004
5005#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5006const char* ResetResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5007#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5008 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5009 while (!ctx->Done(&ptr)) {
5010 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5011 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5012 CHK_(ptr);
5013 switch (tag >> 3) {
5014 default: {
5015 if ((tag & 7) == 4 || tag == 0) {
5016 ctx->SetLastTag(tag);
5017 goto success;
5018 }
5019 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5020 CHK_(ptr != nullptr);
5021 continue;
5022 }
5023 } // switch
5024 } // while
5025success:
5026 return ptr;
5027failure:
5028 ptr = nullptr;
5029 goto success;
5030#undef CHK_
5031}
5032#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5033bool ResetResponse::MergePartialFromCodedStream(
5034 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5035#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5036 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5037 // @@protoc_insertion_point(parse_start:tensorflow.ResetResponse)
5038 for (;;) {
5039 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5040 tag = p.first;
5041 if (!p.second) goto handle_unusual;
5042 handle_unusual:
5043 if (tag == 0) {
5044 goto success;
5045 }
5046 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5047 input, tag, _internal_metadata_.mutable_unknown_fields()));
5048 }
5049success:
5050 // @@protoc_insertion_point(parse_success:tensorflow.ResetResponse)
5051 return true;
5052failure:
5053 // @@protoc_insertion_point(parse_failure:tensorflow.ResetResponse)
5054 return false;
5055#undef DO_
5056}
5057#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5058
5059void ResetResponse::SerializeWithCachedSizes(
5060 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5061 // @@protoc_insertion_point(serialize_start:tensorflow.ResetResponse)
5062 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5063 (void) cached_has_bits;
5064
5065 if (_internal_metadata_.have_unknown_fields()) {
5066 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5067 _internal_metadata_.unknown_fields(), output);
5068 }
5069 // @@protoc_insertion_point(serialize_end:tensorflow.ResetResponse)
5070}
5071
5072::PROTOBUF_NAMESPACE_ID::uint8* ResetResponse::InternalSerializeWithCachedSizesToArray(
5073 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5074 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ResetResponse)
5075 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5076 (void) cached_has_bits;
5077
5078 if (_internal_metadata_.have_unknown_fields()) {
5079 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5080 _internal_metadata_.unknown_fields(), target);
5081 }
5082 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ResetResponse)
5083 return target;
5084}
5085
5086size_t ResetResponse::ByteSizeLong() const {
5087// @@protoc_insertion_point(message_byte_size_start:tensorflow.ResetResponse)
5088 size_t total_size = 0;
5089
5090 if (_internal_metadata_.have_unknown_fields()) {
5091 total_size +=
5092 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5093 _internal_metadata_.unknown_fields());
5094 }
5095 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5096 // Prevent compiler warnings about cached_has_bits being unused
5097 (void) cached_has_bits;
5098
5099 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5100 SetCachedSize(cached_size);
5101 return total_size;
5102}
5103
5104void ResetResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5105// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ResetResponse)
5106 GOOGLE_DCHECK_NE(&from, this);
5107 const ResetResponse* source =
5108 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResetResponse>(
5109 &from);
5110 if (source == nullptr) {
5111 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ResetResponse)
5112 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5113 } else {
5114 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ResetResponse)
5115 MergeFrom(*source);
5116 }
5117}
5118
5119void ResetResponse::MergeFrom(const ResetResponse& from) {
5120// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ResetResponse)
5121 GOOGLE_DCHECK_NE(&from, this);
5122 _internal_metadata_.MergeFrom(from._internal_metadata_);
5123 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5124 (void) cached_has_bits;
5125
5126}
5127
5128void ResetResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5129// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ResetResponse)
5130 if (&from == this) return;
5131 Clear();
5132 MergeFrom(from);
5133}
5134
5135void ResetResponse::CopyFrom(const ResetResponse& from) {
5136// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ResetResponse)
5137 if (&from == this) return;
5138 Clear();
5139 MergeFrom(from);
5140}
5141
5142bool ResetResponse::IsInitialized() const {
5143 return true;
5144}
5145
5146void ResetResponse::InternalSwap(ResetResponse* other) {
5147 using std::swap;
5148 _internal_metadata_.Swap(&other->_internal_metadata_);
5149}
5150
5151::PROTOBUF_NAMESPACE_ID::Metadata ResetResponse::GetMetadata() const {
5152 return GetMetadataStatic();
5153}
5154
5155
5156// ===================================================================
5157
5158void ListDevicesRequest::InitAsDefaultInstance() {
5159}
5160class ListDevicesRequest::_Internal {
5161 public:
5162};
5163
5164ListDevicesRequest::ListDevicesRequest()
5165 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5166 SharedCtor();
5167 // @@protoc_insertion_point(constructor:tensorflow.ListDevicesRequest)
5168}
5169ListDevicesRequest::ListDevicesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5170 : ::PROTOBUF_NAMESPACE_ID::Message(),
5171 _internal_metadata_(arena) {
5172 SharedCtor();
5173 RegisterArenaDtor(arena);
5174 // @@protoc_insertion_point(arena_constructor:tensorflow.ListDevicesRequest)
5175}
5176ListDevicesRequest::ListDevicesRequest(const ListDevicesRequest& from)
5177 : ::PROTOBUF_NAMESPACE_ID::Message(),
5178 _internal_metadata_(nullptr) {
5179 _internal_metadata_.MergeFrom(from._internal_metadata_);
5180 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5181 if (!from.session_handle().empty()) {
5182 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
5183 GetArenaNoVirtual());
5184 }
5185 // @@protoc_insertion_point(copy_constructor:tensorflow.ListDevicesRequest)
5186}
5187
5188void ListDevicesRequest::SharedCtor() {
5189 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5190 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5191}
5192
5193ListDevicesRequest::~ListDevicesRequest() {
5194 // @@protoc_insertion_point(destructor:tensorflow.ListDevicesRequest)
5195 SharedDtor();
5196}
5197
5198void ListDevicesRequest::SharedDtor() {
5199 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5200 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5201}
5202
5203void ListDevicesRequest::ArenaDtor(void* object) {
5204 ListDevicesRequest* _this = reinterpret_cast< ListDevicesRequest* >(object);
5205 (void)_this;
5206}
5207void ListDevicesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5208}
5209void ListDevicesRequest::SetCachedSize(int size) const {
5210 _cached_size_.Set(size);
5211}
5212const ListDevicesRequest& ListDevicesRequest::default_instance() {
5213 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListDevicesRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5214 return *internal_default_instance();
5215}
5216
5217
5218void ListDevicesRequest::Clear() {
5219// @@protoc_insertion_point(message_clear_start:tensorflow.ListDevicesRequest)
5220 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5221 // Prevent compiler warnings about cached_has_bits being unused
5222 (void) cached_has_bits;
5223
5224 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5225 _internal_metadata_.Clear();
5226}
5227
5228#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5229const char* ListDevicesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5230#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5231 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5232 while (!ctx->Done(&ptr)) {
5233 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5234 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5235 CHK_(ptr);
5236 switch (tag >> 3) {
5237 // string session_handle = 1;
5238 case 1:
5239 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5240 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.ListDevicesRequest.session_handle");
5241 CHK_(ptr);
5242 } else goto handle_unusual;
5243 continue;
5244 default: {
5245 handle_unusual:
5246 if ((tag & 7) == 4 || tag == 0) {
5247 ctx->SetLastTag(tag);
5248 goto success;
5249 }
5250 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5251 CHK_(ptr != nullptr);
5252 continue;
5253 }
5254 } // switch
5255 } // while
5256success:
5257 return ptr;
5258failure:
5259 ptr = nullptr;
5260 goto success;
5261#undef CHK_
5262}
5263#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5264bool ListDevicesRequest::MergePartialFromCodedStream(
5265 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5266#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5267 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5268 // @@protoc_insertion_point(parse_start:tensorflow.ListDevicesRequest)
5269 for (;;) {
5270 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5271 tag = p.first;
5272 if (!p.second) goto handle_unusual;
5273 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5274 // string session_handle = 1;
5275 case 1: {
5276 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5277 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5278 input, this->mutable_session_handle()));
5279 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5280 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
5281 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5282 "tensorflow.ListDevicesRequest.session_handle"));
5283 } else {
5284 goto handle_unusual;
5285 }
5286 break;
5287 }
5288
5289 default: {
5290 handle_unusual:
5291 if (tag == 0) {
5292 goto success;
5293 }
5294 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5295 input, tag, _internal_metadata_.mutable_unknown_fields()));
5296 break;
5297 }
5298 }
5299 }
5300success:
5301 // @@protoc_insertion_point(parse_success:tensorflow.ListDevicesRequest)
5302 return true;
5303failure:
5304 // @@protoc_insertion_point(parse_failure:tensorflow.ListDevicesRequest)
5305 return false;
5306#undef DO_
5307}
5308#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5309
5310void ListDevicesRequest::SerializeWithCachedSizes(
5311 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5312 // @@protoc_insertion_point(serialize_start:tensorflow.ListDevicesRequest)
5313 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5314 (void) cached_has_bits;
5315
5316 // string session_handle = 1;
5317 if (this->session_handle().size() > 0) {
5318 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5319 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
5320 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5321 "tensorflow.ListDevicesRequest.session_handle");
5322 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5323 1, this->session_handle(), output);
5324 }
5325
5326 if (_internal_metadata_.have_unknown_fields()) {
5327 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5328 _internal_metadata_.unknown_fields(), output);
5329 }
5330 // @@protoc_insertion_point(serialize_end:tensorflow.ListDevicesRequest)
5331}
5332
5333::PROTOBUF_NAMESPACE_ID::uint8* ListDevicesRequest::InternalSerializeWithCachedSizesToArray(
5334 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5335 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ListDevicesRequest)
5336 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5337 (void) cached_has_bits;
5338
5339 // string session_handle = 1;
5340 if (this->session_handle().size() > 0) {
5341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5342 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
5343 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5344 "tensorflow.ListDevicesRequest.session_handle");
5345 target =
5346 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5347 1, this->session_handle(), target);
5348 }
5349
5350 if (_internal_metadata_.have_unknown_fields()) {
5351 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5352 _internal_metadata_.unknown_fields(), target);
5353 }
5354 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ListDevicesRequest)
5355 return target;
5356}
5357
5358size_t ListDevicesRequest::ByteSizeLong() const {
5359// @@protoc_insertion_point(message_byte_size_start:tensorflow.ListDevicesRequest)
5360 size_t total_size = 0;
5361
5362 if (_internal_metadata_.have_unknown_fields()) {
5363 total_size +=
5364 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5365 _internal_metadata_.unknown_fields());
5366 }
5367 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5368 // Prevent compiler warnings about cached_has_bits being unused
5369 (void) cached_has_bits;
5370
5371 // string session_handle = 1;
5372 if (this->session_handle().size() > 0) {
5373 total_size += 1 +
5374 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5375 this->session_handle());
5376 }
5377
5378 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5379 SetCachedSize(cached_size);
5380 return total_size;
5381}
5382
5383void ListDevicesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5384// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ListDevicesRequest)
5385 GOOGLE_DCHECK_NE(&from, this);
5386 const ListDevicesRequest* source =
5387 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ListDevicesRequest>(
5388 &from);
5389 if (source == nullptr) {
5390 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ListDevicesRequest)
5391 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5392 } else {
5393 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ListDevicesRequest)
5394 MergeFrom(*source);
5395 }
5396}
5397
5398void ListDevicesRequest::MergeFrom(const ListDevicesRequest& from) {
5399// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ListDevicesRequest)
5400 GOOGLE_DCHECK_NE(&from, this);
5401 _internal_metadata_.MergeFrom(from._internal_metadata_);
5402 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5403 (void) cached_has_bits;
5404
5405 if (from.session_handle().size() > 0) {
5406 set_session_handle(from.session_handle());
5407 }
5408}
5409
5410void ListDevicesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5411// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ListDevicesRequest)
5412 if (&from == this) return;
5413 Clear();
5414 MergeFrom(from);
5415}
5416
5417void ListDevicesRequest::CopyFrom(const ListDevicesRequest& from) {
5418// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ListDevicesRequest)
5419 if (&from == this) return;
5420 Clear();
5421 MergeFrom(from);
5422}
5423
5424bool ListDevicesRequest::IsInitialized() const {
5425 return true;
5426}
5427
5428void ListDevicesRequest::InternalSwap(ListDevicesRequest* other) {
5429 using std::swap;
5430 _internal_metadata_.Swap(&other->_internal_metadata_);
5431 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5432 GetArenaNoVirtual());
5433}
5434
5435::PROTOBUF_NAMESPACE_ID::Metadata ListDevicesRequest::GetMetadata() const {
5436 return GetMetadataStatic();
5437}
5438
5439
5440// ===================================================================
5441
5442void ListDevicesResponse::InitAsDefaultInstance() {
5443}
5444class ListDevicesResponse::_Internal {
5445 public:
5446};
5447
5448void ListDevicesResponse::clear_local_device() {
5449 local_device_.Clear();
5450}
5451void ListDevicesResponse::clear_remote_device() {
5452 remote_device_.Clear();
5453}
5454ListDevicesResponse::ListDevicesResponse()
5455 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5456 SharedCtor();
5457 // @@protoc_insertion_point(constructor:tensorflow.ListDevicesResponse)
5458}
5459ListDevicesResponse::ListDevicesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5460 : ::PROTOBUF_NAMESPACE_ID::Message(),
5461 _internal_metadata_(arena),
5462 local_device_(arena),
5463 remote_device_(arena) {
5464 SharedCtor();
5465 RegisterArenaDtor(arena);
5466 // @@protoc_insertion_point(arena_constructor:tensorflow.ListDevicesResponse)
5467}
5468ListDevicesResponse::ListDevicesResponse(const ListDevicesResponse& from)
5469 : ::PROTOBUF_NAMESPACE_ID::Message(),
5470 _internal_metadata_(nullptr),
5471 local_device_(from.local_device_),
5472 remote_device_(from.remote_device_) {
5473 _internal_metadata_.MergeFrom(from._internal_metadata_);
5474 // @@protoc_insertion_point(copy_constructor:tensorflow.ListDevicesResponse)
5475}
5476
5477void ListDevicesResponse::SharedCtor() {
5478 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5479}
5480
5481ListDevicesResponse::~ListDevicesResponse() {
5482 // @@protoc_insertion_point(destructor:tensorflow.ListDevicesResponse)
5483 SharedDtor();
5484}
5485
5486void ListDevicesResponse::SharedDtor() {
5487 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5488}
5489
5490void ListDevicesResponse::ArenaDtor(void* object) {
5491 ListDevicesResponse* _this = reinterpret_cast< ListDevicesResponse* >(object);
5492 (void)_this;
5493}
5494void ListDevicesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5495}
5496void ListDevicesResponse::SetCachedSize(int size) const {
5497 _cached_size_.Set(size);
5498}
5499const ListDevicesResponse& ListDevicesResponse::default_instance() {
5500 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListDevicesResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5501 return *internal_default_instance();
5502}
5503
5504
5505void ListDevicesResponse::Clear() {
5506// @@protoc_insertion_point(message_clear_start:tensorflow.ListDevicesResponse)
5507 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5508 // Prevent compiler warnings about cached_has_bits being unused
5509 (void) cached_has_bits;
5510
5511 local_device_.Clear();
5512 remote_device_.Clear();
5513 _internal_metadata_.Clear();
5514}
5515
5516#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5517const char* ListDevicesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5518#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5519 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5520 while (!ctx->Done(&ptr)) {
5521 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5522 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5523 CHK_(ptr);
5524 switch (tag >> 3) {
5525 // repeated .tensorflow.DeviceAttributes local_device = 1;
5526 case 1:
5527 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5528 ptr -= 1;
5529 do {
5530 ptr += 1;
5531 ptr = ctx->ParseMessage(add_local_device(), ptr);
5532 CHK_(ptr);
5533 if (!ctx->DataAvailable(ptr)) break;
5534 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
5535 } else goto handle_unusual;
5536 continue;
5537 // repeated .tensorflow.DeviceAttributes remote_device = 2;
5538 case 2:
5539 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5540 ptr -= 1;
5541 do {
5542 ptr += 1;
5543 ptr = ctx->ParseMessage(add_remote_device(), ptr);
5544 CHK_(ptr);
5545 if (!ctx->DataAvailable(ptr)) break;
5546 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
5547 } else goto handle_unusual;
5548 continue;
5549 default: {
5550 handle_unusual:
5551 if ((tag & 7) == 4 || tag == 0) {
5552 ctx->SetLastTag(tag);
5553 goto success;
5554 }
5555 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5556 CHK_(ptr != nullptr);
5557 continue;
5558 }
5559 } // switch
5560 } // while
5561success:
5562 return ptr;
5563failure:
5564 ptr = nullptr;
5565 goto success;
5566#undef CHK_
5567}
5568#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5569bool ListDevicesResponse::MergePartialFromCodedStream(
5570 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5571#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5572 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5573 // @@protoc_insertion_point(parse_start:tensorflow.ListDevicesResponse)
5574 for (;;) {
5575 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5576 tag = p.first;
5577 if (!p.second) goto handle_unusual;
5578 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5579 // repeated .tensorflow.DeviceAttributes local_device = 1;
5580 case 1: {
5581 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5582 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5583 input, add_local_device()));
5584 } else {
5585 goto handle_unusual;
5586 }
5587 break;
5588 }
5589
5590 // repeated .tensorflow.DeviceAttributes remote_device = 2;
5591 case 2: {
5592 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
5593 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5594 input, add_remote_device()));
5595 } else {
5596 goto handle_unusual;
5597 }
5598 break;
5599 }
5600
5601 default: {
5602 handle_unusual:
5603 if (tag == 0) {
5604 goto success;
5605 }
5606 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5607 input, tag, _internal_metadata_.mutable_unknown_fields()));
5608 break;
5609 }
5610 }
5611 }
5612success:
5613 // @@protoc_insertion_point(parse_success:tensorflow.ListDevicesResponse)
5614 return true;
5615failure:
5616 // @@protoc_insertion_point(parse_failure:tensorflow.ListDevicesResponse)
5617 return false;
5618#undef DO_
5619}
5620#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5621
5622void ListDevicesResponse::SerializeWithCachedSizes(
5623 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5624 // @@protoc_insertion_point(serialize_start:tensorflow.ListDevicesResponse)
5625 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5626 (void) cached_has_bits;
5627
5628 // repeated .tensorflow.DeviceAttributes local_device = 1;
5629 for (unsigned int i = 0,
5630 n = static_cast<unsigned int>(this->local_device_size()); i < n; i++) {
5631 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5632 1,
5633 this->local_device(static_cast<int>(i)),
5634 output);
5635 }
5636
5637 // repeated .tensorflow.DeviceAttributes remote_device = 2;
5638 for (unsigned int i = 0,
5639 n = static_cast<unsigned int>(this->remote_device_size()); i < n; i++) {
5640 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5641 2,
5642 this->remote_device(static_cast<int>(i)),
5643 output);
5644 }
5645
5646 if (_internal_metadata_.have_unknown_fields()) {
5647 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5648 _internal_metadata_.unknown_fields(), output);
5649 }
5650 // @@protoc_insertion_point(serialize_end:tensorflow.ListDevicesResponse)
5651}
5652
5653::PROTOBUF_NAMESPACE_ID::uint8* ListDevicesResponse::InternalSerializeWithCachedSizesToArray(
5654 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5655 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ListDevicesResponse)
5656 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5657 (void) cached_has_bits;
5658
5659 // repeated .tensorflow.DeviceAttributes local_device = 1;
5660 for (unsigned int i = 0,
5661 n = static_cast<unsigned int>(this->local_device_size()); i < n; i++) {
5662 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5663 InternalWriteMessageToArray(
5664 1, this->local_device(static_cast<int>(i)), target);
5665 }
5666
5667 // repeated .tensorflow.DeviceAttributes remote_device = 2;
5668 for (unsigned int i = 0,
5669 n = static_cast<unsigned int>(this->remote_device_size()); i < n; i++) {
5670 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5671 InternalWriteMessageToArray(
5672 2, this->remote_device(static_cast<int>(i)), target);
5673 }
5674
5675 if (_internal_metadata_.have_unknown_fields()) {
5676 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5677 _internal_metadata_.unknown_fields(), target);
5678 }
5679 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ListDevicesResponse)
5680 return target;
5681}
5682
5683size_t ListDevicesResponse::ByteSizeLong() const {
5684// @@protoc_insertion_point(message_byte_size_start:tensorflow.ListDevicesResponse)
5685 size_t total_size = 0;
5686
5687 if (_internal_metadata_.have_unknown_fields()) {
5688 total_size +=
5689 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5690 _internal_metadata_.unknown_fields());
5691 }
5692 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5693 // Prevent compiler warnings about cached_has_bits being unused
5694 (void) cached_has_bits;
5695
5696 // repeated .tensorflow.DeviceAttributes local_device = 1;
5697 {
5698 unsigned int count = static_cast<unsigned int>(this->local_device_size());
5699 total_size += 1UL * count;
5700 for (unsigned int i = 0; i < count; i++) {
5701 total_size +=
5702 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5703 this->local_device(static_cast<int>(i)));
5704 }
5705 }
5706
5707 // repeated .tensorflow.DeviceAttributes remote_device = 2;
5708 {
5709 unsigned int count = static_cast<unsigned int>(this->remote_device_size());
5710 total_size += 1UL * count;
5711 for (unsigned int i = 0; i < count; i++) {
5712 total_size +=
5713 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5714 this->remote_device(static_cast<int>(i)));
5715 }
5716 }
5717
5718 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5719 SetCachedSize(cached_size);
5720 return total_size;
5721}
5722
5723void ListDevicesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5724// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ListDevicesResponse)
5725 GOOGLE_DCHECK_NE(&from, this);
5726 const ListDevicesResponse* source =
5727 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ListDevicesResponse>(
5728 &from);
5729 if (source == nullptr) {
5730 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ListDevicesResponse)
5731 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5732 } else {
5733 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ListDevicesResponse)
5734 MergeFrom(*source);
5735 }
5736}
5737
5738void ListDevicesResponse::MergeFrom(const ListDevicesResponse& from) {
5739// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ListDevicesResponse)
5740 GOOGLE_DCHECK_NE(&from, this);
5741 _internal_metadata_.MergeFrom(from._internal_metadata_);
5742 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5743 (void) cached_has_bits;
5744
5745 local_device_.MergeFrom(from.local_device_);
5746 remote_device_.MergeFrom(from.remote_device_);
5747}
5748
5749void ListDevicesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5750// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ListDevicesResponse)
5751 if (&from == this) return;
5752 Clear();
5753 MergeFrom(from);
5754}
5755
5756void ListDevicesResponse::CopyFrom(const ListDevicesResponse& from) {
5757// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ListDevicesResponse)
5758 if (&from == this) return;
5759 Clear();
5760 MergeFrom(from);
5761}
5762
5763bool ListDevicesResponse::IsInitialized() const {
5764 return true;
5765}
5766
5767void ListDevicesResponse::InternalSwap(ListDevicesResponse* other) {
5768 using std::swap;
5769 _internal_metadata_.Swap(&other->_internal_metadata_);
5770 CastToBase(&local_device_)->InternalSwap(CastToBase(&other->local_device_));
5771 CastToBase(&remote_device_)->InternalSwap(CastToBase(&other->remote_device_));
5772}
5773
5774::PROTOBUF_NAMESPACE_ID::Metadata ListDevicesResponse::GetMetadata() const {
5775 return GetMetadataStatic();
5776}
5777
5778
5779// ===================================================================
5780
5781void MakeCallableRequest::InitAsDefaultInstance() {
5782 ::tensorflow::_MakeCallableRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::tensorflow::CallableOptions*>(
5783 ::tensorflow::CallableOptions::internal_default_instance());
5784}
5785class MakeCallableRequest::_Internal {
5786 public:
5787 static const ::tensorflow::CallableOptions& options(const MakeCallableRequest* msg);
5788};
5789
5790const ::tensorflow::CallableOptions&
5791MakeCallableRequest::_Internal::options(const MakeCallableRequest* msg) {
5792 return *msg->options_;
5793}
5794void MakeCallableRequest::unsafe_arena_set_allocated_options(
5795 ::tensorflow::CallableOptions* options) {
5796 if (GetArenaNoVirtual() == nullptr) {
5797 delete options_;
5798 }
5799 options_ = options;
5800 if (options) {
5801
5802 } else {
5803
5804 }
5805 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MakeCallableRequest.options)
5806}
5807void MakeCallableRequest::clear_options() {
5808 if (GetArenaNoVirtual() == nullptr && options_ != nullptr) {
5809 delete options_;
5810 }
5811 options_ = nullptr;
5812}
5813MakeCallableRequest::MakeCallableRequest()
5814 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5815 SharedCtor();
5816 // @@protoc_insertion_point(constructor:tensorflow.MakeCallableRequest)
5817}
5818MakeCallableRequest::MakeCallableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5819 : ::PROTOBUF_NAMESPACE_ID::Message(),
5820 _internal_metadata_(arena) {
5821 SharedCtor();
5822 RegisterArenaDtor(arena);
5823 // @@protoc_insertion_point(arena_constructor:tensorflow.MakeCallableRequest)
5824}
5825MakeCallableRequest::MakeCallableRequest(const MakeCallableRequest& from)
5826 : ::PROTOBUF_NAMESPACE_ID::Message(),
5827 _internal_metadata_(nullptr) {
5828 _internal_metadata_.MergeFrom(from._internal_metadata_);
5829 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5830 if (!from.session_handle().empty()) {
5831 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
5832 GetArenaNoVirtual());
5833 }
5834 if (from.has_options()) {
5835 options_ = new ::tensorflow::CallableOptions(*from.options_);
5836 } else {
5837 options_ = nullptr;
5838 }
5839 request_id_ = from.request_id_;
5840 // @@protoc_insertion_point(copy_constructor:tensorflow.MakeCallableRequest)
5841}
5842
5843void MakeCallableRequest::SharedCtor() {
5844 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5845 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5846 ::memset(&options_, 0, static_cast<size_t>(
5847 reinterpret_cast<char*>(&request_id_) -
5848 reinterpret_cast<char*>(&options_)) + sizeof(request_id_));
5849}
5850
5851MakeCallableRequest::~MakeCallableRequest() {
5852 // @@protoc_insertion_point(destructor:tensorflow.MakeCallableRequest)
5853 SharedDtor();
5854}
5855
5856void MakeCallableRequest::SharedDtor() {
5857 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5858 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5859 if (this != internal_default_instance()) delete options_;
5860}
5861
5862void MakeCallableRequest::ArenaDtor(void* object) {
5863 MakeCallableRequest* _this = reinterpret_cast< MakeCallableRequest* >(object);
5864 (void)_this;
5865}
5866void MakeCallableRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5867}
5868void MakeCallableRequest::SetCachedSize(int size) const {
5869 _cached_size_.Set(size);
5870}
5871const MakeCallableRequest& MakeCallableRequest::default_instance() {
5872 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MakeCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
5873 return *internal_default_instance();
5874}
5875
5876
5877void MakeCallableRequest::Clear() {
5878// @@protoc_insertion_point(message_clear_start:tensorflow.MakeCallableRequest)
5879 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5880 // Prevent compiler warnings about cached_has_bits being unused
5881 (void) cached_has_bits;
5882
5883 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
5884 if (GetArenaNoVirtual() == nullptr && options_ != nullptr) {
5885 delete options_;
5886 }
5887 options_ = nullptr;
5888 request_id_ = PROTOBUF_LONGLONG(0);
5889 _internal_metadata_.Clear();
5890}
5891
5892#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5893const char* MakeCallableRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5894#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5895 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5896 while (!ctx->Done(&ptr)) {
5897 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5898 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5899 CHK_(ptr);
5900 switch (tag >> 3) {
5901 // string session_handle = 1;
5902 case 1:
5903 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5904 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.MakeCallableRequest.session_handle");
5905 CHK_(ptr);
5906 } else goto handle_unusual;
5907 continue;
5908 // .tensorflow.CallableOptions options = 2;
5909 case 2:
5910 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5911 ptr = ctx->ParseMessage(mutable_options(), ptr);
5912 CHK_(ptr);
5913 } else goto handle_unusual;
5914 continue;
5915 // int64 request_id = 3;
5916 case 3:
5917 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
5918 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5919 CHK_(ptr);
5920 } else goto handle_unusual;
5921 continue;
5922 default: {
5923 handle_unusual:
5924 if ((tag & 7) == 4 || tag == 0) {
5925 ctx->SetLastTag(tag);
5926 goto success;
5927 }
5928 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5929 CHK_(ptr != nullptr);
5930 continue;
5931 }
5932 } // switch
5933 } // while
5934success:
5935 return ptr;
5936failure:
5937 ptr = nullptr;
5938 goto success;
5939#undef CHK_
5940}
5941#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5942bool MakeCallableRequest::MergePartialFromCodedStream(
5943 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5944#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5945 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5946 // @@protoc_insertion_point(parse_start:tensorflow.MakeCallableRequest)
5947 for (;;) {
5948 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5949 tag = p.first;
5950 if (!p.second) goto handle_unusual;
5951 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5952 // string session_handle = 1;
5953 case 1: {
5954 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5955 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5956 input, this->mutable_session_handle()));
5957 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5958 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
5959 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
5960 "tensorflow.MakeCallableRequest.session_handle"));
5961 } else {
5962 goto handle_unusual;
5963 }
5964 break;
5965 }
5966
5967 // .tensorflow.CallableOptions options = 2;
5968 case 2: {
5969 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
5970 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5971 input, mutable_options()));
5972 } else {
5973 goto handle_unusual;
5974 }
5975 break;
5976 }
5977
5978 // int64 request_id = 3;
5979 case 3: {
5980 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
5981
5982 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5983 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
5984 input, &request_id_)));
5985 } else {
5986 goto handle_unusual;
5987 }
5988 break;
5989 }
5990
5991 default: {
5992 handle_unusual:
5993 if (tag == 0) {
5994 goto success;
5995 }
5996 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5997 input, tag, _internal_metadata_.mutable_unknown_fields()));
5998 break;
5999 }
6000 }
6001 }
6002success:
6003 // @@protoc_insertion_point(parse_success:tensorflow.MakeCallableRequest)
6004 return true;
6005failure:
6006 // @@protoc_insertion_point(parse_failure:tensorflow.MakeCallableRequest)
6007 return false;
6008#undef DO_
6009}
6010#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6011
6012void MakeCallableRequest::SerializeWithCachedSizes(
6013 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6014 // @@protoc_insertion_point(serialize_start:tensorflow.MakeCallableRequest)
6015 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6016 (void) cached_has_bits;
6017
6018 // string session_handle = 1;
6019 if (this->session_handle().size() > 0) {
6020 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6021 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6023 "tensorflow.MakeCallableRequest.session_handle");
6024 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6025 1, this->session_handle(), output);
6026 }
6027
6028 // .tensorflow.CallableOptions options = 2;
6029 if (this->has_options()) {
6030 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6031 2, _Internal::options(this), output);
6032 }
6033
6034 // int64 request_id = 3;
6035 if (this->request_id() != 0) {
6036 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->request_id(), output);
6037 }
6038
6039 if (_internal_metadata_.have_unknown_fields()) {
6040 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6041 _internal_metadata_.unknown_fields(), output);
6042 }
6043 // @@protoc_insertion_point(serialize_end:tensorflow.MakeCallableRequest)
6044}
6045
6046::PROTOBUF_NAMESPACE_ID::uint8* MakeCallableRequest::InternalSerializeWithCachedSizesToArray(
6047 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6048 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MakeCallableRequest)
6049 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6050 (void) cached_has_bits;
6051
6052 // string session_handle = 1;
6053 if (this->session_handle().size() > 0) {
6054 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6055 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6056 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6057 "tensorflow.MakeCallableRequest.session_handle");
6058 target =
6059 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6060 1, this->session_handle(), target);
6061 }
6062
6063 // .tensorflow.CallableOptions options = 2;
6064 if (this->has_options()) {
6065 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6066 InternalWriteMessageToArray(
6067 2, _Internal::options(this), target);
6068 }
6069
6070 // int64 request_id = 3;
6071 if (this->request_id() != 0) {
6072 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->request_id(), target);
6073 }
6074
6075 if (_internal_metadata_.have_unknown_fields()) {
6076 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6077 _internal_metadata_.unknown_fields(), target);
6078 }
6079 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MakeCallableRequest)
6080 return target;
6081}
6082
6083size_t MakeCallableRequest::ByteSizeLong() const {
6084// @@protoc_insertion_point(message_byte_size_start:tensorflow.MakeCallableRequest)
6085 size_t total_size = 0;
6086
6087 if (_internal_metadata_.have_unknown_fields()) {
6088 total_size +=
6089 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6090 _internal_metadata_.unknown_fields());
6091 }
6092 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6093 // Prevent compiler warnings about cached_has_bits being unused
6094 (void) cached_has_bits;
6095
6096 // string session_handle = 1;
6097 if (this->session_handle().size() > 0) {
6098 total_size += 1 +
6099 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6100 this->session_handle());
6101 }
6102
6103 // .tensorflow.CallableOptions options = 2;
6104 if (this->has_options()) {
6105 total_size += 1 +
6106 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6107 *options_);
6108 }
6109
6110 // int64 request_id = 3;
6111 if (this->request_id() != 0) {
6112 total_size += 1 +
6113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6114 this->request_id());
6115 }
6116
6117 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6118 SetCachedSize(cached_size);
6119 return total_size;
6120}
6121
6122void MakeCallableRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6123// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MakeCallableRequest)
6124 GOOGLE_DCHECK_NE(&from, this);
6125 const MakeCallableRequest* source =
6126 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MakeCallableRequest>(
6127 &from);
6128 if (source == nullptr) {
6129 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MakeCallableRequest)
6130 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6131 } else {
6132 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MakeCallableRequest)
6133 MergeFrom(*source);
6134 }
6135}
6136
6137void MakeCallableRequest::MergeFrom(const MakeCallableRequest& from) {
6138// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MakeCallableRequest)
6139 GOOGLE_DCHECK_NE(&from, this);
6140 _internal_metadata_.MergeFrom(from._internal_metadata_);
6141 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6142 (void) cached_has_bits;
6143
6144 if (from.session_handle().size() > 0) {
6145 set_session_handle(from.session_handle());
6146 }
6147 if (from.has_options()) {
6148 mutable_options()->::tensorflow::CallableOptions::MergeFrom(from.options());
6149 }
6150 if (from.request_id() != 0) {
6151 set_request_id(from.request_id());
6152 }
6153}
6154
6155void MakeCallableRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6156// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MakeCallableRequest)
6157 if (&from == this) return;
6158 Clear();
6159 MergeFrom(from);
6160}
6161
6162void MakeCallableRequest::CopyFrom(const MakeCallableRequest& from) {
6163// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MakeCallableRequest)
6164 if (&from == this) return;
6165 Clear();
6166 MergeFrom(from);
6167}
6168
6169bool MakeCallableRequest::IsInitialized() const {
6170 return true;
6171}
6172
6173void MakeCallableRequest::InternalSwap(MakeCallableRequest* other) {
6174 using std::swap;
6175 _internal_metadata_.Swap(&other->_internal_metadata_);
6176 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6177 GetArenaNoVirtual());
6178 swap(options_, other->options_);
6179 swap(request_id_, other->request_id_);
6180}
6181
6182::PROTOBUF_NAMESPACE_ID::Metadata MakeCallableRequest::GetMetadata() const {
6183 return GetMetadataStatic();
6184}
6185
6186
6187// ===================================================================
6188
6189void MakeCallableResponse::InitAsDefaultInstance() {
6190}
6191class MakeCallableResponse::_Internal {
6192 public:
6193};
6194
6195MakeCallableResponse::MakeCallableResponse()
6196 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6197 SharedCtor();
6198 // @@protoc_insertion_point(constructor:tensorflow.MakeCallableResponse)
6199}
6200MakeCallableResponse::MakeCallableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6201 : ::PROTOBUF_NAMESPACE_ID::Message(),
6202 _internal_metadata_(arena) {
6203 SharedCtor();
6204 RegisterArenaDtor(arena);
6205 // @@protoc_insertion_point(arena_constructor:tensorflow.MakeCallableResponse)
6206}
6207MakeCallableResponse::MakeCallableResponse(const MakeCallableResponse& from)
6208 : ::PROTOBUF_NAMESPACE_ID::Message(),
6209 _internal_metadata_(nullptr) {
6210 _internal_metadata_.MergeFrom(from._internal_metadata_);
6211 handle_ = from.handle_;
6212 // @@protoc_insertion_point(copy_constructor:tensorflow.MakeCallableResponse)
6213}
6214
6215void MakeCallableResponse::SharedCtor() {
6216 handle_ = PROTOBUF_LONGLONG(0);
6217}
6218
6219MakeCallableResponse::~MakeCallableResponse() {
6220 // @@protoc_insertion_point(destructor:tensorflow.MakeCallableResponse)
6221 SharedDtor();
6222}
6223
6224void MakeCallableResponse::SharedDtor() {
6225 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6226}
6227
6228void MakeCallableResponse::ArenaDtor(void* object) {
6229 MakeCallableResponse* _this = reinterpret_cast< MakeCallableResponse* >(object);
6230 (void)_this;
6231}
6232void MakeCallableResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6233}
6234void MakeCallableResponse::SetCachedSize(int size) const {
6235 _cached_size_.Set(size);
6236}
6237const MakeCallableResponse& MakeCallableResponse::default_instance() {
6238 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MakeCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
6239 return *internal_default_instance();
6240}
6241
6242
6243void MakeCallableResponse::Clear() {
6244// @@protoc_insertion_point(message_clear_start:tensorflow.MakeCallableResponse)
6245 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6246 // Prevent compiler warnings about cached_has_bits being unused
6247 (void) cached_has_bits;
6248
6249 handle_ = PROTOBUF_LONGLONG(0);
6250 _internal_metadata_.Clear();
6251}
6252
6253#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6254const char* MakeCallableResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6255#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6256 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6257 while (!ctx->Done(&ptr)) {
6258 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6259 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6260 CHK_(ptr);
6261 switch (tag >> 3) {
6262 // int64 handle = 1;
6263 case 1:
6264 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
6265 handle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6266 CHK_(ptr);
6267 } else goto handle_unusual;
6268 continue;
6269 default: {
6270 handle_unusual:
6271 if ((tag & 7) == 4 || tag == 0) {
6272 ctx->SetLastTag(tag);
6273 goto success;
6274 }
6275 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6276 CHK_(ptr != nullptr);
6277 continue;
6278 }
6279 } // switch
6280 } // while
6281success:
6282 return ptr;
6283failure:
6284 ptr = nullptr;
6285 goto success;
6286#undef CHK_
6287}
6288#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6289bool MakeCallableResponse::MergePartialFromCodedStream(
6290 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6291#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6292 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6293 // @@protoc_insertion_point(parse_start:tensorflow.MakeCallableResponse)
6294 for (;;) {
6295 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6296 tag = p.first;
6297 if (!p.second) goto handle_unusual;
6298 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6299 // int64 handle = 1;
6300 case 1: {
6301 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
6302
6303 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6304 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
6305 input, &handle_)));
6306 } else {
6307 goto handle_unusual;
6308 }
6309 break;
6310 }
6311
6312 default: {
6313 handle_unusual:
6314 if (tag == 0) {
6315 goto success;
6316 }
6317 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6318 input, tag, _internal_metadata_.mutable_unknown_fields()));
6319 break;
6320 }
6321 }
6322 }
6323success:
6324 // @@protoc_insertion_point(parse_success:tensorflow.MakeCallableResponse)
6325 return true;
6326failure:
6327 // @@protoc_insertion_point(parse_failure:tensorflow.MakeCallableResponse)
6328 return false;
6329#undef DO_
6330}
6331#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6332
6333void MakeCallableResponse::SerializeWithCachedSizes(
6334 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6335 // @@protoc_insertion_point(serialize_start:tensorflow.MakeCallableResponse)
6336 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6337 (void) cached_has_bits;
6338
6339 // int64 handle = 1;
6340 if (this->handle() != 0) {
6341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->handle(), output);
6342 }
6343
6344 if (_internal_metadata_.have_unknown_fields()) {
6345 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6346 _internal_metadata_.unknown_fields(), output);
6347 }
6348 // @@protoc_insertion_point(serialize_end:tensorflow.MakeCallableResponse)
6349}
6350
6351::PROTOBUF_NAMESPACE_ID::uint8* MakeCallableResponse::InternalSerializeWithCachedSizesToArray(
6352 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6353 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MakeCallableResponse)
6354 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6355 (void) cached_has_bits;
6356
6357 // int64 handle = 1;
6358 if (this->handle() != 0) {
6359 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->handle(), target);
6360 }
6361
6362 if (_internal_metadata_.have_unknown_fields()) {
6363 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6364 _internal_metadata_.unknown_fields(), target);
6365 }
6366 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MakeCallableResponse)
6367 return target;
6368}
6369
6370size_t MakeCallableResponse::ByteSizeLong() const {
6371// @@protoc_insertion_point(message_byte_size_start:tensorflow.MakeCallableResponse)
6372 size_t total_size = 0;
6373
6374 if (_internal_metadata_.have_unknown_fields()) {
6375 total_size +=
6376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6377 _internal_metadata_.unknown_fields());
6378 }
6379 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6380 // Prevent compiler warnings about cached_has_bits being unused
6381 (void) cached_has_bits;
6382
6383 // int64 handle = 1;
6384 if (this->handle() != 0) {
6385 total_size += 1 +
6386 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6387 this->handle());
6388 }
6389
6390 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6391 SetCachedSize(cached_size);
6392 return total_size;
6393}
6394
6395void MakeCallableResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6396// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MakeCallableResponse)
6397 GOOGLE_DCHECK_NE(&from, this);
6398 const MakeCallableResponse* source =
6399 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MakeCallableResponse>(
6400 &from);
6401 if (source == nullptr) {
6402 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MakeCallableResponse)
6403 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6404 } else {
6405 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MakeCallableResponse)
6406 MergeFrom(*source);
6407 }
6408}
6409
6410void MakeCallableResponse::MergeFrom(const MakeCallableResponse& from) {
6411// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MakeCallableResponse)
6412 GOOGLE_DCHECK_NE(&from, this);
6413 _internal_metadata_.MergeFrom(from._internal_metadata_);
6414 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6415 (void) cached_has_bits;
6416
6417 if (from.handle() != 0) {
6418 set_handle(from.handle());
6419 }
6420}
6421
6422void MakeCallableResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6423// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MakeCallableResponse)
6424 if (&from == this) return;
6425 Clear();
6426 MergeFrom(from);
6427}
6428
6429void MakeCallableResponse::CopyFrom(const MakeCallableResponse& from) {
6430// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MakeCallableResponse)
6431 if (&from == this) return;
6432 Clear();
6433 MergeFrom(from);
6434}
6435
6436bool MakeCallableResponse::IsInitialized() const {
6437 return true;
6438}
6439
6440void MakeCallableResponse::InternalSwap(MakeCallableResponse* other) {
6441 using std::swap;
6442 _internal_metadata_.Swap(&other->_internal_metadata_);
6443 swap(handle_, other->handle_);
6444}
6445
6446::PROTOBUF_NAMESPACE_ID::Metadata MakeCallableResponse::GetMetadata() const {
6447 return GetMetadataStatic();
6448}
6449
6450
6451// ===================================================================
6452
6453void RunCallableRequest::InitAsDefaultInstance() {
6454}
6455class RunCallableRequest::_Internal {
6456 public:
6457};
6458
6459void RunCallableRequest::clear_feed() {
6460 feed_.Clear();
6461}
6462RunCallableRequest::RunCallableRequest()
6463 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6464 SharedCtor();
6465 // @@protoc_insertion_point(constructor:tensorflow.RunCallableRequest)
6466}
6467RunCallableRequest::RunCallableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6468 : ::PROTOBUF_NAMESPACE_ID::Message(),
6469 _internal_metadata_(arena),
6470 feed_(arena) {
6471 SharedCtor();
6472 RegisterArenaDtor(arena);
6473 // @@protoc_insertion_point(arena_constructor:tensorflow.RunCallableRequest)
6474}
6475RunCallableRequest::RunCallableRequest(const RunCallableRequest& from)
6476 : ::PROTOBUF_NAMESPACE_ID::Message(),
6477 _internal_metadata_(nullptr),
6478 feed_(from.feed_) {
6479 _internal_metadata_.MergeFrom(from._internal_metadata_);
6480 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6481 if (!from.session_handle().empty()) {
6482 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
6483 GetArenaNoVirtual());
6484 }
6485 ::memcpy(&handle_, &from.handle_,
6486 static_cast<size_t>(reinterpret_cast<char*>(&request_id_) -
6487 reinterpret_cast<char*>(&handle_)) + sizeof(request_id_));
6488 // @@protoc_insertion_point(copy_constructor:tensorflow.RunCallableRequest)
6489}
6490
6491void RunCallableRequest::SharedCtor() {
6492 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
6493 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6494 ::memset(&handle_, 0, static_cast<size_t>(
6495 reinterpret_cast<char*>(&request_id_) -
6496 reinterpret_cast<char*>(&handle_)) + sizeof(request_id_));
6497}
6498
6499RunCallableRequest::~RunCallableRequest() {
6500 // @@protoc_insertion_point(destructor:tensorflow.RunCallableRequest)
6501 SharedDtor();
6502}
6503
6504void RunCallableRequest::SharedDtor() {
6505 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6506 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6507}
6508
6509void RunCallableRequest::ArenaDtor(void* object) {
6510 RunCallableRequest* _this = reinterpret_cast< RunCallableRequest* >(object);
6511 (void)_this;
6512}
6513void RunCallableRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6514}
6515void RunCallableRequest::SetCachedSize(int size) const {
6516 _cached_size_.Set(size);
6517}
6518const RunCallableRequest& RunCallableRequest::default_instance() {
6519 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
6520 return *internal_default_instance();
6521}
6522
6523
6524void RunCallableRequest::Clear() {
6525// @@protoc_insertion_point(message_clear_start:tensorflow.RunCallableRequest)
6526 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6527 // Prevent compiler warnings about cached_has_bits being unused
6528 (void) cached_has_bits;
6529
6530 feed_.Clear();
6531 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
6532 ::memset(&handle_, 0, static_cast<size_t>(
6533 reinterpret_cast<char*>(&request_id_) -
6534 reinterpret_cast<char*>(&handle_)) + sizeof(request_id_));
6535 _internal_metadata_.Clear();
6536}
6537
6538#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6539const char* RunCallableRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6540#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6541 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6542 while (!ctx->Done(&ptr)) {
6543 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6544 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6545 CHK_(ptr);
6546 switch (tag >> 3) {
6547 // string session_handle = 1;
6548 case 1:
6549 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6550 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.RunCallableRequest.session_handle");
6551 CHK_(ptr);
6552 } else goto handle_unusual;
6553 continue;
6554 // int64 handle = 2;
6555 case 2:
6556 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
6557 handle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6558 CHK_(ptr);
6559 } else goto handle_unusual;
6560 continue;
6561 // repeated .tensorflow.TensorProto feed = 3;
6562 case 3:
6563 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6564 ptr -= 1;
6565 do {
6566 ptr += 1;
6567 ptr = ctx->ParseMessage(add_feed(), ptr);
6568 CHK_(ptr);
6569 if (!ctx->DataAvailable(ptr)) break;
6570 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
6571 } else goto handle_unusual;
6572 continue;
6573 // int64 request_id = 4;
6574 case 4:
6575 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
6576 request_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6577 CHK_(ptr);
6578 } else goto handle_unusual;
6579 continue;
6580 default: {
6581 handle_unusual:
6582 if ((tag & 7) == 4 || tag == 0) {
6583 ctx->SetLastTag(tag);
6584 goto success;
6585 }
6586 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6587 CHK_(ptr != nullptr);
6588 continue;
6589 }
6590 } // switch
6591 } // while
6592success:
6593 return ptr;
6594failure:
6595 ptr = nullptr;
6596 goto success;
6597#undef CHK_
6598}
6599#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6600bool RunCallableRequest::MergePartialFromCodedStream(
6601 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6602#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6603 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6604 // @@protoc_insertion_point(parse_start:tensorflow.RunCallableRequest)
6605 for (;;) {
6606 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6607 tag = p.first;
6608 if (!p.second) goto handle_unusual;
6609 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6610 // string session_handle = 1;
6611 case 1: {
6612 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
6613 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
6614 input, this->mutable_session_handle()));
6615 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6616 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6617 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
6618 "tensorflow.RunCallableRequest.session_handle"));
6619 } else {
6620 goto handle_unusual;
6621 }
6622 break;
6623 }
6624
6625 // int64 handle = 2;
6626 case 2: {
6627 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
6628
6629 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6630 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
6631 input, &handle_)));
6632 } else {
6633 goto handle_unusual;
6634 }
6635 break;
6636 }
6637
6638 // repeated .tensorflow.TensorProto feed = 3;
6639 case 3: {
6640 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
6641 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6642 input, add_feed()));
6643 } else {
6644 goto handle_unusual;
6645 }
6646 break;
6647 }
6648
6649 // int64 request_id = 4;
6650 case 4: {
6651 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
6652
6653 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6654 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
6655 input, &request_id_)));
6656 } else {
6657 goto handle_unusual;
6658 }
6659 break;
6660 }
6661
6662 default: {
6663 handle_unusual:
6664 if (tag == 0) {
6665 goto success;
6666 }
6667 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6668 input, tag, _internal_metadata_.mutable_unknown_fields()));
6669 break;
6670 }
6671 }
6672 }
6673success:
6674 // @@protoc_insertion_point(parse_success:tensorflow.RunCallableRequest)
6675 return true;
6676failure:
6677 // @@protoc_insertion_point(parse_failure:tensorflow.RunCallableRequest)
6678 return false;
6679#undef DO_
6680}
6681#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6682
6683void RunCallableRequest::SerializeWithCachedSizes(
6684 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6685 // @@protoc_insertion_point(serialize_start:tensorflow.RunCallableRequest)
6686 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6687 (void) cached_has_bits;
6688
6689 // string session_handle = 1;
6690 if (this->session_handle().size() > 0) {
6691 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6692 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6693 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6694 "tensorflow.RunCallableRequest.session_handle");
6695 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6696 1, this->session_handle(), output);
6697 }
6698
6699 // int64 handle = 2;
6700 if (this->handle() != 0) {
6701 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->handle(), output);
6702 }
6703
6704 // repeated .tensorflow.TensorProto feed = 3;
6705 for (unsigned int i = 0,
6706 n = static_cast<unsigned int>(this->feed_size()); i < n; i++) {
6707 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6708 3,
6709 this->feed(static_cast<int>(i)),
6710 output);
6711 }
6712
6713 // int64 request_id = 4;
6714 if (this->request_id() != 0) {
6715 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->request_id(), output);
6716 }
6717
6718 if (_internal_metadata_.have_unknown_fields()) {
6719 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6720 _internal_metadata_.unknown_fields(), output);
6721 }
6722 // @@protoc_insertion_point(serialize_end:tensorflow.RunCallableRequest)
6723}
6724
6725::PROTOBUF_NAMESPACE_ID::uint8* RunCallableRequest::InternalSerializeWithCachedSizesToArray(
6726 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6727 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunCallableRequest)
6728 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6729 (void) cached_has_bits;
6730
6731 // string session_handle = 1;
6732 if (this->session_handle().size() > 0) {
6733 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6734 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
6735 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6736 "tensorflow.RunCallableRequest.session_handle");
6737 target =
6738 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6739 1, this->session_handle(), target);
6740 }
6741
6742 // int64 handle = 2;
6743 if (this->handle() != 0) {
6744 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->handle(), target);
6745 }
6746
6747 // repeated .tensorflow.TensorProto feed = 3;
6748 for (unsigned int i = 0,
6749 n = static_cast<unsigned int>(this->feed_size()); i < n; i++) {
6750 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6751 InternalWriteMessageToArray(
6752 3, this->feed(static_cast<int>(i)), target);
6753 }
6754
6755 // int64 request_id = 4;
6756 if (this->request_id() != 0) {
6757 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->request_id(), target);
6758 }
6759
6760 if (_internal_metadata_.have_unknown_fields()) {
6761 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6762 _internal_metadata_.unknown_fields(), target);
6763 }
6764 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunCallableRequest)
6765 return target;
6766}
6767
6768size_t RunCallableRequest::ByteSizeLong() const {
6769// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunCallableRequest)
6770 size_t total_size = 0;
6771
6772 if (_internal_metadata_.have_unknown_fields()) {
6773 total_size +=
6774 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6775 _internal_metadata_.unknown_fields());
6776 }
6777 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6778 // Prevent compiler warnings about cached_has_bits being unused
6779 (void) cached_has_bits;
6780
6781 // repeated .tensorflow.TensorProto feed = 3;
6782 {
6783 unsigned int count = static_cast<unsigned int>(this->feed_size());
6784 total_size += 1UL * count;
6785 for (unsigned int i = 0; i < count; i++) {
6786 total_size +=
6787 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6788 this->feed(static_cast<int>(i)));
6789 }
6790 }
6791
6792 // string session_handle = 1;
6793 if (this->session_handle().size() > 0) {
6794 total_size += 1 +
6795 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6796 this->session_handle());
6797 }
6798
6799 // int64 handle = 2;
6800 if (this->handle() != 0) {
6801 total_size += 1 +
6802 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6803 this->handle());
6804 }
6805
6806 // int64 request_id = 4;
6807 if (this->request_id() != 0) {
6808 total_size += 1 +
6809 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
6810 this->request_id());
6811 }
6812
6813 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6814 SetCachedSize(cached_size);
6815 return total_size;
6816}
6817
6818void RunCallableRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6819// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunCallableRequest)
6820 GOOGLE_DCHECK_NE(&from, this);
6821 const RunCallableRequest* source =
6822 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunCallableRequest>(
6823 &from);
6824 if (source == nullptr) {
6825 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunCallableRequest)
6826 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6827 } else {
6828 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunCallableRequest)
6829 MergeFrom(*source);
6830 }
6831}
6832
6833void RunCallableRequest::MergeFrom(const RunCallableRequest& from) {
6834// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunCallableRequest)
6835 GOOGLE_DCHECK_NE(&from, this);
6836 _internal_metadata_.MergeFrom(from._internal_metadata_);
6837 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6838 (void) cached_has_bits;
6839
6840 feed_.MergeFrom(from.feed_);
6841 if (from.session_handle().size() > 0) {
6842 set_session_handle(from.session_handle());
6843 }
6844 if (from.handle() != 0) {
6845 set_handle(from.handle());
6846 }
6847 if (from.request_id() != 0) {
6848 set_request_id(from.request_id());
6849 }
6850}
6851
6852void RunCallableRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6853// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunCallableRequest)
6854 if (&from == this) return;
6855 Clear();
6856 MergeFrom(from);
6857}
6858
6859void RunCallableRequest::CopyFrom(const RunCallableRequest& from) {
6860// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunCallableRequest)
6861 if (&from == this) return;
6862 Clear();
6863 MergeFrom(from);
6864}
6865
6866bool RunCallableRequest::IsInitialized() const {
6867 return true;
6868}
6869
6870void RunCallableRequest::InternalSwap(RunCallableRequest* other) {
6871 using std::swap;
6872 _internal_metadata_.Swap(&other->_internal_metadata_);
6873 CastToBase(&feed_)->InternalSwap(CastToBase(&other->feed_));
6874 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6875 GetArenaNoVirtual());
6876 swap(handle_, other->handle_);
6877 swap(request_id_, other->request_id_);
6878}
6879
6880::PROTOBUF_NAMESPACE_ID::Metadata RunCallableRequest::GetMetadata() const {
6881 return GetMetadataStatic();
6882}
6883
6884
6885// ===================================================================
6886
6887void RunCallableResponse::InitAsDefaultInstance() {
6888 ::tensorflow::_RunCallableResponse_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::tensorflow::RunMetadata*>(
6889 ::tensorflow::RunMetadata::internal_default_instance());
6890}
6891class RunCallableResponse::_Internal {
6892 public:
6893 static const ::tensorflow::RunMetadata& metadata(const RunCallableResponse* msg);
6894};
6895
6896const ::tensorflow::RunMetadata&
6897RunCallableResponse::_Internal::metadata(const RunCallableResponse* msg) {
6898 return *msg->metadata_;
6899}
6900void RunCallableResponse::clear_fetch() {
6901 fetch_.Clear();
6902}
6903void RunCallableResponse::unsafe_arena_set_allocated_metadata(
6904 ::tensorflow::RunMetadata* metadata) {
6905 if (GetArenaNoVirtual() == nullptr) {
6906 delete metadata_;
6907 }
6908 metadata_ = metadata;
6909 if (metadata) {
6910
6911 } else {
6912
6913 }
6914 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RunCallableResponse.metadata)
6915}
6916void RunCallableResponse::clear_metadata() {
6917 if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) {
6918 delete metadata_;
6919 }
6920 metadata_ = nullptr;
6921}
6922RunCallableResponse::RunCallableResponse()
6923 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6924 SharedCtor();
6925 // @@protoc_insertion_point(constructor:tensorflow.RunCallableResponse)
6926}
6927RunCallableResponse::RunCallableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6928 : ::PROTOBUF_NAMESPACE_ID::Message(),
6929 _internal_metadata_(arena),
6930 fetch_(arena) {
6931 SharedCtor();
6932 RegisterArenaDtor(arena);
6933 // @@protoc_insertion_point(arena_constructor:tensorflow.RunCallableResponse)
6934}
6935RunCallableResponse::RunCallableResponse(const RunCallableResponse& from)
6936 : ::PROTOBUF_NAMESPACE_ID::Message(),
6937 _internal_metadata_(nullptr),
6938 fetch_(from.fetch_) {
6939 _internal_metadata_.MergeFrom(from._internal_metadata_);
6940 if (from.has_metadata()) {
6941 metadata_ = new ::tensorflow::RunMetadata(*from.metadata_);
6942 } else {
6943 metadata_ = nullptr;
6944 }
6945 // @@protoc_insertion_point(copy_constructor:tensorflow.RunCallableResponse)
6946}
6947
6948void RunCallableResponse::SharedCtor() {
6949 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
6950 metadata_ = nullptr;
6951}
6952
6953RunCallableResponse::~RunCallableResponse() {
6954 // @@protoc_insertion_point(destructor:tensorflow.RunCallableResponse)
6955 SharedDtor();
6956}
6957
6958void RunCallableResponse::SharedDtor() {
6959 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6960 if (this != internal_default_instance()) delete metadata_;
6961}
6962
6963void RunCallableResponse::ArenaDtor(void* object) {
6964 RunCallableResponse* _this = reinterpret_cast< RunCallableResponse* >(object);
6965 (void)_this;
6966}
6967void RunCallableResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6968}
6969void RunCallableResponse::SetCachedSize(int size) const {
6970 _cached_size_.Set(size);
6971}
6972const RunCallableResponse& RunCallableResponse::default_instance() {
6973 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
6974 return *internal_default_instance();
6975}
6976
6977
6978void RunCallableResponse::Clear() {
6979// @@protoc_insertion_point(message_clear_start:tensorflow.RunCallableResponse)
6980 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6981 // Prevent compiler warnings about cached_has_bits being unused
6982 (void) cached_has_bits;
6983
6984 fetch_.Clear();
6985 if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) {
6986 delete metadata_;
6987 }
6988 metadata_ = nullptr;
6989 _internal_metadata_.Clear();
6990}
6991
6992#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6993const char* RunCallableResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6994#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6995 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6996 while (!ctx->Done(&ptr)) {
6997 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6998 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6999 CHK_(ptr);
7000 switch (tag >> 3) {
7001 // repeated .tensorflow.TensorProto fetch = 1;
7002 case 1:
7003 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7004 ptr -= 1;
7005 do {
7006 ptr += 1;
7007 ptr = ctx->ParseMessage(add_fetch(), ptr);
7008 CHK_(ptr);
7009 if (!ctx->DataAvailable(ptr)) break;
7010 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
7011 } else goto handle_unusual;
7012 continue;
7013 // .tensorflow.RunMetadata metadata = 2;
7014 case 2:
7015 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
7016 ptr = ctx->ParseMessage(mutable_metadata(), ptr);
7017 CHK_(ptr);
7018 } else goto handle_unusual;
7019 continue;
7020 default: {
7021 handle_unusual:
7022 if ((tag & 7) == 4 || tag == 0) {
7023 ctx->SetLastTag(tag);
7024 goto success;
7025 }
7026 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7027 CHK_(ptr != nullptr);
7028 continue;
7029 }
7030 } // switch
7031 } // while
7032success:
7033 return ptr;
7034failure:
7035 ptr = nullptr;
7036 goto success;
7037#undef CHK_
7038}
7039#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7040bool RunCallableResponse::MergePartialFromCodedStream(
7041 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7042#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7043 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7044 // @@protoc_insertion_point(parse_start:tensorflow.RunCallableResponse)
7045 for (;;) {
7046 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7047 tag = p.first;
7048 if (!p.second) goto handle_unusual;
7049 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7050 // repeated .tensorflow.TensorProto fetch = 1;
7051 case 1: {
7052 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
7053 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7054 input, add_fetch()));
7055 } else {
7056 goto handle_unusual;
7057 }
7058 break;
7059 }
7060
7061 // .tensorflow.RunMetadata metadata = 2;
7062 case 2: {
7063 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
7064 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7065 input, mutable_metadata()));
7066 } else {
7067 goto handle_unusual;
7068 }
7069 break;
7070 }
7071
7072 default: {
7073 handle_unusual:
7074 if (tag == 0) {
7075 goto success;
7076 }
7077 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7078 input, tag, _internal_metadata_.mutable_unknown_fields()));
7079 break;
7080 }
7081 }
7082 }
7083success:
7084 // @@protoc_insertion_point(parse_success:tensorflow.RunCallableResponse)
7085 return true;
7086failure:
7087 // @@protoc_insertion_point(parse_failure:tensorflow.RunCallableResponse)
7088 return false;
7089#undef DO_
7090}
7091#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7092
7093void RunCallableResponse::SerializeWithCachedSizes(
7094 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7095 // @@protoc_insertion_point(serialize_start:tensorflow.RunCallableResponse)
7096 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7097 (void) cached_has_bits;
7098
7099 // repeated .tensorflow.TensorProto fetch = 1;
7100 for (unsigned int i = 0,
7101 n = static_cast<unsigned int>(this->fetch_size()); i < n; i++) {
7102 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7103 1,
7104 this->fetch(static_cast<int>(i)),
7105 output);
7106 }
7107
7108 // .tensorflow.RunMetadata metadata = 2;
7109 if (this->has_metadata()) {
7110 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7111 2, _Internal::metadata(this), output);
7112 }
7113
7114 if (_internal_metadata_.have_unknown_fields()) {
7115 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7116 _internal_metadata_.unknown_fields(), output);
7117 }
7118 // @@protoc_insertion_point(serialize_end:tensorflow.RunCallableResponse)
7119}
7120
7121::PROTOBUF_NAMESPACE_ID::uint8* RunCallableResponse::InternalSerializeWithCachedSizesToArray(
7122 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7123 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunCallableResponse)
7124 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7125 (void) cached_has_bits;
7126
7127 // repeated .tensorflow.TensorProto fetch = 1;
7128 for (unsigned int i = 0,
7129 n = static_cast<unsigned int>(this->fetch_size()); i < n; i++) {
7130 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7131 InternalWriteMessageToArray(
7132 1, this->fetch(static_cast<int>(i)), target);
7133 }
7134
7135 // .tensorflow.RunMetadata metadata = 2;
7136 if (this->has_metadata()) {
7137 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7138 InternalWriteMessageToArray(
7139 2, _Internal::metadata(this), target);
7140 }
7141
7142 if (_internal_metadata_.have_unknown_fields()) {
7143 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7144 _internal_metadata_.unknown_fields(), target);
7145 }
7146 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunCallableResponse)
7147 return target;
7148}
7149
7150size_t RunCallableResponse::ByteSizeLong() const {
7151// @@protoc_insertion_point(message_byte_size_start:tensorflow.RunCallableResponse)
7152 size_t total_size = 0;
7153
7154 if (_internal_metadata_.have_unknown_fields()) {
7155 total_size +=
7156 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7157 _internal_metadata_.unknown_fields());
7158 }
7159 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7160 // Prevent compiler warnings about cached_has_bits being unused
7161 (void) cached_has_bits;
7162
7163 // repeated .tensorflow.TensorProto fetch = 1;
7164 {
7165 unsigned int count = static_cast<unsigned int>(this->fetch_size());
7166 total_size += 1UL * count;
7167 for (unsigned int i = 0; i < count; i++) {
7168 total_size +=
7169 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7170 this->fetch(static_cast<int>(i)));
7171 }
7172 }
7173
7174 // .tensorflow.RunMetadata metadata = 2;
7175 if (this->has_metadata()) {
7176 total_size += 1 +
7177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7178 *metadata_);
7179 }
7180
7181 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7182 SetCachedSize(cached_size);
7183 return total_size;
7184}
7185
7186void RunCallableResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7187// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunCallableResponse)
7188 GOOGLE_DCHECK_NE(&from, this);
7189 const RunCallableResponse* source =
7190 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunCallableResponse>(
7191 &from);
7192 if (source == nullptr) {
7193 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunCallableResponse)
7194 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7195 } else {
7196 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunCallableResponse)
7197 MergeFrom(*source);
7198 }
7199}
7200
7201void RunCallableResponse::MergeFrom(const RunCallableResponse& from) {
7202// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunCallableResponse)
7203 GOOGLE_DCHECK_NE(&from, this);
7204 _internal_metadata_.MergeFrom(from._internal_metadata_);
7205 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7206 (void) cached_has_bits;
7207
7208 fetch_.MergeFrom(from.fetch_);
7209 if (from.has_metadata()) {
7210 mutable_metadata()->::tensorflow::RunMetadata::MergeFrom(from.metadata());
7211 }
7212}
7213
7214void RunCallableResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7215// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunCallableResponse)
7216 if (&from == this) return;
7217 Clear();
7218 MergeFrom(from);
7219}
7220
7221void RunCallableResponse::CopyFrom(const RunCallableResponse& from) {
7222// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunCallableResponse)
7223 if (&from == this) return;
7224 Clear();
7225 MergeFrom(from);
7226}
7227
7228bool RunCallableResponse::IsInitialized() const {
7229 return true;
7230}
7231
7232void RunCallableResponse::InternalSwap(RunCallableResponse* other) {
7233 using std::swap;
7234 _internal_metadata_.Swap(&other->_internal_metadata_);
7235 CastToBase(&fetch_)->InternalSwap(CastToBase(&other->fetch_));
7236 swap(metadata_, other->metadata_);
7237}
7238
7239::PROTOBUF_NAMESPACE_ID::Metadata RunCallableResponse::GetMetadata() const {
7240 return GetMetadataStatic();
7241}
7242
7243
7244// ===================================================================
7245
7246void ReleaseCallableRequest::InitAsDefaultInstance() {
7247}
7248class ReleaseCallableRequest::_Internal {
7249 public:
7250};
7251
7252ReleaseCallableRequest::ReleaseCallableRequest()
7253 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7254 SharedCtor();
7255 // @@protoc_insertion_point(constructor:tensorflow.ReleaseCallableRequest)
7256}
7257ReleaseCallableRequest::ReleaseCallableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7258 : ::PROTOBUF_NAMESPACE_ID::Message(),
7259 _internal_metadata_(arena) {
7260 SharedCtor();
7261 RegisterArenaDtor(arena);
7262 // @@protoc_insertion_point(arena_constructor:tensorflow.ReleaseCallableRequest)
7263}
7264ReleaseCallableRequest::ReleaseCallableRequest(const ReleaseCallableRequest& from)
7265 : ::PROTOBUF_NAMESPACE_ID::Message(),
7266 _internal_metadata_(nullptr) {
7267 _internal_metadata_.MergeFrom(from._internal_metadata_);
7268 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7269 if (!from.session_handle().empty()) {
7270 session_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_handle(),
7271 GetArenaNoVirtual());
7272 }
7273 handle_ = from.handle_;
7274 // @@protoc_insertion_point(copy_constructor:tensorflow.ReleaseCallableRequest)
7275}
7276
7277void ReleaseCallableRequest::SharedCtor() {
7278 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
7279 session_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7280 handle_ = PROTOBUF_LONGLONG(0);
7281}
7282
7283ReleaseCallableRequest::~ReleaseCallableRequest() {
7284 // @@protoc_insertion_point(destructor:tensorflow.ReleaseCallableRequest)
7285 SharedDtor();
7286}
7287
7288void ReleaseCallableRequest::SharedDtor() {
7289 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7290 session_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7291}
7292
7293void ReleaseCallableRequest::ArenaDtor(void* object) {
7294 ReleaseCallableRequest* _this = reinterpret_cast< ReleaseCallableRequest* >(object);
7295 (void)_this;
7296}
7297void ReleaseCallableRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7298}
7299void ReleaseCallableRequest::SetCachedSize(int size) const {
7300 _cached_size_.Set(size);
7301}
7302const ReleaseCallableRequest& ReleaseCallableRequest::default_instance() {
7303 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReleaseCallableRequest_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
7304 return *internal_default_instance();
7305}
7306
7307
7308void ReleaseCallableRequest::Clear() {
7309// @@protoc_insertion_point(message_clear_start:tensorflow.ReleaseCallableRequest)
7310 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7311 // Prevent compiler warnings about cached_has_bits being unused
7312 (void) cached_has_bits;
7313
7314 session_handle_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
7315 handle_ = PROTOBUF_LONGLONG(0);
7316 _internal_metadata_.Clear();
7317}
7318
7319#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7320const char* ReleaseCallableRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7321#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7322 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7323 while (!ctx->Done(&ptr)) {
7324 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7325 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7326 CHK_(ptr);
7327 switch (tag >> 3) {
7328 // string session_handle = 1;
7329 case 1:
7330 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7331 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_handle(), ptr, ctx, "tensorflow.ReleaseCallableRequest.session_handle");
7332 CHK_(ptr);
7333 } else goto handle_unusual;
7334 continue;
7335 // int64 handle = 2;
7336 case 2:
7337 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
7338 handle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7339 CHK_(ptr);
7340 } else goto handle_unusual;
7341 continue;
7342 default: {
7343 handle_unusual:
7344 if ((tag & 7) == 4 || tag == 0) {
7345 ctx->SetLastTag(tag);
7346 goto success;
7347 }
7348 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7349 CHK_(ptr != nullptr);
7350 continue;
7351 }
7352 } // switch
7353 } // while
7354success:
7355 return ptr;
7356failure:
7357 ptr = nullptr;
7358 goto success;
7359#undef CHK_
7360}
7361#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7362bool ReleaseCallableRequest::MergePartialFromCodedStream(
7363 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7364#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7365 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7366 // @@protoc_insertion_point(parse_start:tensorflow.ReleaseCallableRequest)
7367 for (;;) {
7368 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7369 tag = p.first;
7370 if (!p.second) goto handle_unusual;
7371 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7372 // string session_handle = 1;
7373 case 1: {
7374 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
7375 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7376 input, this->mutable_session_handle()));
7377 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7378 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
7379 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
7380 "tensorflow.ReleaseCallableRequest.session_handle"));
7381 } else {
7382 goto handle_unusual;
7383 }
7384 break;
7385 }
7386
7387 // int64 handle = 2;
7388 case 2: {
7389 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
7390
7391 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7392 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
7393 input, &handle_)));
7394 } else {
7395 goto handle_unusual;
7396 }
7397 break;
7398 }
7399
7400 default: {
7401 handle_unusual:
7402 if (tag == 0) {
7403 goto success;
7404 }
7405 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7406 input, tag, _internal_metadata_.mutable_unknown_fields()));
7407 break;
7408 }
7409 }
7410 }
7411success:
7412 // @@protoc_insertion_point(parse_success:tensorflow.ReleaseCallableRequest)
7413 return true;
7414failure:
7415 // @@protoc_insertion_point(parse_failure:tensorflow.ReleaseCallableRequest)
7416 return false;
7417#undef DO_
7418}
7419#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7420
7421void ReleaseCallableRequest::SerializeWithCachedSizes(
7422 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7423 // @@protoc_insertion_point(serialize_start:tensorflow.ReleaseCallableRequest)
7424 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7425 (void) cached_has_bits;
7426
7427 // string session_handle = 1;
7428 if (this->session_handle().size() > 0) {
7429 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7430 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
7431 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7432 "tensorflow.ReleaseCallableRequest.session_handle");
7433 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7434 1, this->session_handle(), output);
7435 }
7436
7437 // int64 handle = 2;
7438 if (this->handle() != 0) {
7439 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->handle(), output);
7440 }
7441
7442 if (_internal_metadata_.have_unknown_fields()) {
7443 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7444 _internal_metadata_.unknown_fields(), output);
7445 }
7446 // @@protoc_insertion_point(serialize_end:tensorflow.ReleaseCallableRequest)
7447}
7448
7449::PROTOBUF_NAMESPACE_ID::uint8* ReleaseCallableRequest::InternalSerializeWithCachedSizesToArray(
7450 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7451 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReleaseCallableRequest)
7452 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7453 (void) cached_has_bits;
7454
7455 // string session_handle = 1;
7456 if (this->session_handle().size() > 0) {
7457 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7458 this->session_handle().data(), static_cast<int>(this->session_handle().length()),
7459 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7460 "tensorflow.ReleaseCallableRequest.session_handle");
7461 target =
7462 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
7463 1, this->session_handle(), target);
7464 }
7465
7466 // int64 handle = 2;
7467 if (this->handle() != 0) {
7468 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->handle(), target);
7469 }
7470
7471 if (_internal_metadata_.have_unknown_fields()) {
7472 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7473 _internal_metadata_.unknown_fields(), target);
7474 }
7475 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReleaseCallableRequest)
7476 return target;
7477}
7478
7479size_t ReleaseCallableRequest::ByteSizeLong() const {
7480// @@protoc_insertion_point(message_byte_size_start:tensorflow.ReleaseCallableRequest)
7481 size_t total_size = 0;
7482
7483 if (_internal_metadata_.have_unknown_fields()) {
7484 total_size +=
7485 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7486 _internal_metadata_.unknown_fields());
7487 }
7488 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7489 // Prevent compiler warnings about cached_has_bits being unused
7490 (void) cached_has_bits;
7491
7492 // string session_handle = 1;
7493 if (this->session_handle().size() > 0) {
7494 total_size += 1 +
7495 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7496 this->session_handle());
7497 }
7498
7499 // int64 handle = 2;
7500 if (this->handle() != 0) {
7501 total_size += 1 +
7502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
7503 this->handle());
7504 }
7505
7506 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7507 SetCachedSize(cached_size);
7508 return total_size;
7509}
7510
7511void ReleaseCallableRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7512// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReleaseCallableRequest)
7513 GOOGLE_DCHECK_NE(&from, this);
7514 const ReleaseCallableRequest* source =
7515 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReleaseCallableRequest>(
7516 &from);
7517 if (source == nullptr) {
7518 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReleaseCallableRequest)
7519 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7520 } else {
7521 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReleaseCallableRequest)
7522 MergeFrom(*source);
7523 }
7524}
7525
7526void ReleaseCallableRequest::MergeFrom(const ReleaseCallableRequest& from) {
7527// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReleaseCallableRequest)
7528 GOOGLE_DCHECK_NE(&from, this);
7529 _internal_metadata_.MergeFrom(from._internal_metadata_);
7530 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7531 (void) cached_has_bits;
7532
7533 if (from.session_handle().size() > 0) {
7534 set_session_handle(from.session_handle());
7535 }
7536 if (from.handle() != 0) {
7537 set_handle(from.handle());
7538 }
7539}
7540
7541void ReleaseCallableRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7542// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReleaseCallableRequest)
7543 if (&from == this) return;
7544 Clear();
7545 MergeFrom(from);
7546}
7547
7548void ReleaseCallableRequest::CopyFrom(const ReleaseCallableRequest& from) {
7549// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReleaseCallableRequest)
7550 if (&from == this) return;
7551 Clear();
7552 MergeFrom(from);
7553}
7554
7555bool ReleaseCallableRequest::IsInitialized() const {
7556 return true;
7557}
7558
7559void ReleaseCallableRequest::InternalSwap(ReleaseCallableRequest* other) {
7560 using std::swap;
7561 _internal_metadata_.Swap(&other->_internal_metadata_);
7562 session_handle_.Swap(&other->session_handle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
7563 GetArenaNoVirtual());
7564 swap(handle_, other->handle_);
7565}
7566
7567::PROTOBUF_NAMESPACE_ID::Metadata ReleaseCallableRequest::GetMetadata() const {
7568 return GetMetadataStatic();
7569}
7570
7571
7572// ===================================================================
7573
7574void ReleaseCallableResponse::InitAsDefaultInstance() {
7575}
7576class ReleaseCallableResponse::_Internal {
7577 public:
7578};
7579
7580ReleaseCallableResponse::ReleaseCallableResponse()
7581 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7582 SharedCtor();
7583 // @@protoc_insertion_point(constructor:tensorflow.ReleaseCallableResponse)
7584}
7585ReleaseCallableResponse::ReleaseCallableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7586 : ::PROTOBUF_NAMESPACE_ID::Message(),
7587 _internal_metadata_(arena) {
7588 SharedCtor();
7589 RegisterArenaDtor(arena);
7590 // @@protoc_insertion_point(arena_constructor:tensorflow.ReleaseCallableResponse)
7591}
7592ReleaseCallableResponse::ReleaseCallableResponse(const ReleaseCallableResponse& from)
7593 : ::PROTOBUF_NAMESPACE_ID::Message(),
7594 _internal_metadata_(nullptr) {
7595 _internal_metadata_.MergeFrom(from._internal_metadata_);
7596 // @@protoc_insertion_point(copy_constructor:tensorflow.ReleaseCallableResponse)
7597}
7598
7599void ReleaseCallableResponse::SharedCtor() {
7600}
7601
7602ReleaseCallableResponse::~ReleaseCallableResponse() {
7603 // @@protoc_insertion_point(destructor:tensorflow.ReleaseCallableResponse)
7604 SharedDtor();
7605}
7606
7607void ReleaseCallableResponse::SharedDtor() {
7608 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7609}
7610
7611void ReleaseCallableResponse::ArenaDtor(void* object) {
7612 ReleaseCallableResponse* _this = reinterpret_cast< ReleaseCallableResponse* >(object);
7613 (void)_this;
7614}
7615void ReleaseCallableResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7616}
7617void ReleaseCallableResponse::SetCachedSize(int size) const {
7618 _cached_size_.Set(size);
7619}
7620const ReleaseCallableResponse& ReleaseCallableResponse::default_instance() {
7621 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReleaseCallableResponse_tensorflow_2fcore_2fprotobuf_2fmaster_2eproto.base);
7622 return *internal_default_instance();
7623}
7624
7625
7626void ReleaseCallableResponse::Clear() {
7627// @@protoc_insertion_point(message_clear_start:tensorflow.ReleaseCallableResponse)
7628 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7629 // Prevent compiler warnings about cached_has_bits being unused
7630 (void) cached_has_bits;
7631
7632 _internal_metadata_.Clear();
7633}
7634
7635#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7636const char* ReleaseCallableResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7637#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7638 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7639 while (!ctx->Done(&ptr)) {
7640 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7641 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7642 CHK_(ptr);
7643 switch (tag >> 3) {
7644 default: {
7645 if ((tag & 7) == 4 || tag == 0) {
7646 ctx->SetLastTag(tag);
7647 goto success;
7648 }
7649 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7650 CHK_(ptr != nullptr);
7651 continue;
7652 }
7653 } // switch
7654 } // while
7655success:
7656 return ptr;
7657failure:
7658 ptr = nullptr;
7659 goto success;
7660#undef CHK_
7661}
7662#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7663bool ReleaseCallableResponse::MergePartialFromCodedStream(
7664 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7665#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7666 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7667 // @@protoc_insertion_point(parse_start:tensorflow.ReleaseCallableResponse)
7668 for (;;) {
7669 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7670 tag = p.first;
7671 if (!p.second) goto handle_unusual;
7672 handle_unusual:
7673 if (tag == 0) {
7674 goto success;
7675 }
7676 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7677 input, tag, _internal_metadata_.mutable_unknown_fields()));
7678 }
7679success:
7680 // @@protoc_insertion_point(parse_success:tensorflow.ReleaseCallableResponse)
7681 return true;
7682failure:
7683 // @@protoc_insertion_point(parse_failure:tensorflow.ReleaseCallableResponse)
7684 return false;
7685#undef DO_
7686}
7687#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7688
7689void ReleaseCallableResponse::SerializeWithCachedSizes(
7690 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7691 // @@protoc_insertion_point(serialize_start:tensorflow.ReleaseCallableResponse)
7692 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7693 (void) cached_has_bits;
7694
7695 if (_internal_metadata_.have_unknown_fields()) {
7696 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7697 _internal_metadata_.unknown_fields(), output);
7698 }
7699 // @@protoc_insertion_point(serialize_end:tensorflow.ReleaseCallableResponse)
7700}
7701
7702::PROTOBUF_NAMESPACE_ID::uint8* ReleaseCallableResponse::InternalSerializeWithCachedSizesToArray(
7703 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7704 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ReleaseCallableResponse)
7705 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7706 (void) cached_has_bits;
7707
7708 if (_internal_metadata_.have_unknown_fields()) {
7709 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7710 _internal_metadata_.unknown_fields(), target);
7711 }
7712 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ReleaseCallableResponse)
7713 return target;
7714}
7715
7716size_t ReleaseCallableResponse::ByteSizeLong() const {
7717// @@protoc_insertion_point(message_byte_size_start:tensorflow.ReleaseCallableResponse)
7718 size_t total_size = 0;
7719
7720 if (_internal_metadata_.have_unknown_fields()) {
7721 total_size +=
7722 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7723 _internal_metadata_.unknown_fields());
7724 }
7725 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7726 // Prevent compiler warnings about cached_has_bits being unused
7727 (void) cached_has_bits;
7728
7729 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7730 SetCachedSize(cached_size);
7731 return total_size;
7732}
7733
7734void ReleaseCallableResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7735// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ReleaseCallableResponse)
7736 GOOGLE_DCHECK_NE(&from, this);
7737 const ReleaseCallableResponse* source =
7738 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReleaseCallableResponse>(
7739 &from);
7740 if (source == nullptr) {
7741 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ReleaseCallableResponse)
7742 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7743 } else {
7744 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ReleaseCallableResponse)
7745 MergeFrom(*source);
7746 }
7747}
7748
7749void ReleaseCallableResponse::MergeFrom(const ReleaseCallableResponse& from) {
7750// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ReleaseCallableResponse)
7751 GOOGLE_DCHECK_NE(&from, this);
7752 _internal_metadata_.MergeFrom(from._internal_metadata_);
7753 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7754 (void) cached_has_bits;
7755
7756}
7757
7758void ReleaseCallableResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7759// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ReleaseCallableResponse)
7760 if (&from == this) return;
7761 Clear();
7762 MergeFrom(from);
7763}
7764
7765void ReleaseCallableResponse::CopyFrom(const ReleaseCallableResponse& from) {
7766// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ReleaseCallableResponse)
7767 if (&from == this) return;
7768 Clear();
7769 MergeFrom(from);
7770}
7771
7772bool ReleaseCallableResponse::IsInitialized() const {
7773 return true;
7774}
7775
7776void ReleaseCallableResponse::InternalSwap(ReleaseCallableResponse* other) {
7777 using std::swap;
7778 _internal_metadata_.Swap(&other->_internal_metadata_);
7779}
7780
7781::PROTOBUF_NAMESPACE_ID::Metadata ReleaseCallableResponse::GetMetadata() const {
7782 return GetMetadataStatic();
7783}
7784
7785
7786// @@protoc_insertion_point(namespace_scope)
7787} // namespace tensorflow
7788PROTOBUF_NAMESPACE_OPEN
7789template<> PROTOBUF_NOINLINE ::tensorflow::CreateSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::CreateSessionRequest >(Arena* arena) {
7790 return Arena::CreateMessageInternal< ::tensorflow::CreateSessionRequest >(arena);
7791}
7792template<> PROTOBUF_NOINLINE ::tensorflow::CreateSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::CreateSessionResponse >(Arena* arena) {
7793 return Arena::CreateMessageInternal< ::tensorflow::CreateSessionResponse >(arena);
7794}
7795template<> PROTOBUF_NOINLINE ::tensorflow::ExtendSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::ExtendSessionRequest >(Arena* arena) {
7796 return Arena::CreateMessageInternal< ::tensorflow::ExtendSessionRequest >(arena);
7797}
7798template<> PROTOBUF_NOINLINE ::tensorflow::ExtendSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::ExtendSessionResponse >(Arena* arena) {
7799 return Arena::CreateMessageInternal< ::tensorflow::ExtendSessionResponse >(arena);
7800}
7801template<> PROTOBUF_NOINLINE ::tensorflow::RunStepRequest* Arena::CreateMaybeMessage< ::tensorflow::RunStepRequest >(Arena* arena) {
7802 return Arena::CreateMessageInternal< ::tensorflow::RunStepRequest >(arena);
7803}
7804template<> PROTOBUF_NOINLINE ::tensorflow::RunStepResponse* Arena::CreateMaybeMessage< ::tensorflow::RunStepResponse >(Arena* arena) {
7805 return Arena::CreateMessageInternal< ::tensorflow::RunStepResponse >(arena);
7806}
7807template<> PROTOBUF_NOINLINE ::tensorflow::PartialRunSetupRequest* Arena::CreateMaybeMessage< ::tensorflow::PartialRunSetupRequest >(Arena* arena) {
7808 return Arena::CreateMessageInternal< ::tensorflow::PartialRunSetupRequest >(arena);
7809}
7810template<> PROTOBUF_NOINLINE ::tensorflow::PartialRunSetupResponse* Arena::CreateMaybeMessage< ::tensorflow::PartialRunSetupResponse >(Arena* arena) {
7811 return Arena::CreateMessageInternal< ::tensorflow::PartialRunSetupResponse >(arena);
7812}
7813template<> PROTOBUF_NOINLINE ::tensorflow::CloseSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::CloseSessionRequest >(Arena* arena) {
7814 return Arena::CreateMessageInternal< ::tensorflow::CloseSessionRequest >(arena);
7815}
7816template<> PROTOBUF_NOINLINE ::tensorflow::CloseSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::CloseSessionResponse >(Arena* arena) {
7817 return Arena::CreateMessageInternal< ::tensorflow::CloseSessionResponse >(arena);
7818}
7819template<> PROTOBUF_NOINLINE ::tensorflow::ResetRequest* Arena::CreateMaybeMessage< ::tensorflow::ResetRequest >(Arena* arena) {
7820 return Arena::CreateMessageInternal< ::tensorflow::ResetRequest >(arena);
7821}
7822template<> PROTOBUF_NOINLINE ::tensorflow::ResetResponse* Arena::CreateMaybeMessage< ::tensorflow::ResetResponse >(Arena* arena) {
7823 return Arena::CreateMessageInternal< ::tensorflow::ResetResponse >(arena);
7824}
7825template<> PROTOBUF_NOINLINE ::tensorflow::ListDevicesRequest* Arena::CreateMaybeMessage< ::tensorflow::ListDevicesRequest >(Arena* arena) {
7826 return Arena::CreateMessageInternal< ::tensorflow::ListDevicesRequest >(arena);
7827}
7828template<> PROTOBUF_NOINLINE ::tensorflow::ListDevicesResponse* Arena::CreateMaybeMessage< ::tensorflow::ListDevicesResponse >(Arena* arena) {
7829 return Arena::CreateMessageInternal< ::tensorflow::ListDevicesResponse >(arena);
7830}
7831template<> PROTOBUF_NOINLINE ::tensorflow::MakeCallableRequest* Arena::CreateMaybeMessage< ::tensorflow::MakeCallableRequest >(Arena* arena) {
7832 return Arena::CreateMessageInternal< ::tensorflow::MakeCallableRequest >(arena);
7833}
7834template<> PROTOBUF_NOINLINE ::tensorflow::MakeCallableResponse* Arena::CreateMaybeMessage< ::tensorflow::MakeCallableResponse >(Arena* arena) {
7835 return Arena::CreateMessageInternal< ::tensorflow::MakeCallableResponse >(arena);
7836}
7837template<> PROTOBUF_NOINLINE ::tensorflow::RunCallableRequest* Arena::CreateMaybeMessage< ::tensorflow::RunCallableRequest >(Arena* arena) {
7838 return Arena::CreateMessageInternal< ::tensorflow::RunCallableRequest >(arena);
7839}
7840template<> PROTOBUF_NOINLINE ::tensorflow::RunCallableResponse* Arena::CreateMaybeMessage< ::tensorflow::RunCallableResponse >(Arena* arena) {
7841 return Arena::CreateMessageInternal< ::tensorflow::RunCallableResponse >(arena);
7842}
7843template<> PROTOBUF_NOINLINE ::tensorflow::ReleaseCallableRequest* Arena::CreateMaybeMessage< ::tensorflow::ReleaseCallableRequest >(Arena* arena) {
7844 return Arena::CreateMessageInternal< ::tensorflow::ReleaseCallableRequest >(arena);
7845}
7846template<> PROTOBUF_NOINLINE ::tensorflow::ReleaseCallableResponse* Arena::CreateMaybeMessage< ::tensorflow::ReleaseCallableResponse >(Arena* arena) {
7847 return Arena::CreateMessageInternal< ::tensorflow::ReleaseCallableResponse >(arena);
7848}
7849PROTOBUF_NAMESPACE_CLOSE
7850
7851// @@protoc_insertion_point(global_scope)
7852#include <google/protobuf/port_undef.inc>
7853