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